Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions tests/common/devices/sonic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2415,11 +2415,12 @@ def active_ip_interfaces(self, ip_ifs, tbinfo, ns_arg=DEFAULT_NAMESPACE, intf_nu
"""
active_ip_intf_cnt = 0
mg_facts = self.get_extended_minigraph_facts(tbinfo, ns_arg)
config_facts_ports = self.config_facts(host=self.hostname, source="running")["ansible_facts"].get("PORT", {})
ip_ifaces = {}
for k, v in list(ip_ifs.items()):
if ((k.startswith("Ethernet") and (not k.startswith("Ethernet-BP")) and not is_inband_port(k)) or
(k.startswith("PortChannel") and not
self.is_backend_portchannel(k, mg_facts))):
if ((k.startswith("Ethernet") and config_facts_ports.get(k, {}).get("role", "") != "Dpc" and
(not k.startswith("Ethernet-BP")) and not is_inband_port(k)) or
(k.startswith("PortChannel") and not self.is_backend_portchannel(k, mg_facts))):
# Ping for some time to get ARP Re-learnt.
# We might have to tune it further if needed.
if (v["admin"] == "up" and v["oper_state"] == "up" and
Expand Down