Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion ansible/roles/test/files/helpers/remove_ip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ INTF_LIST=$(ls /sys/class/net | grep -E "^eth[0-9]+(\.[0-9]+)?$")

for INTF in ${INTF_LIST}; do
echo "Flush ${INTF} IP address"
ip addr flush dev ${INTF}
ip addr flush dev ${INTF} scope global
done
2 changes: 1 addition & 1 deletion tests/bgp/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ def _setup_interfaces_t0_or_mx(mg_facts, peer_count):

finally:
for conn in connections:
ptfhost.shell("ip address flush %s" % conn["neighbor_intf"])
ptfhost.shell("ip address flush %s scope global" % conn["neighbor_intf"])

@contextlib.contextmanager
def _setup_interfaces_t1_or_t2(mg_facts, peer_count):
Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/remove_ip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ INTF_LIST=$(ls /sys/class/net | grep -E "^eth[0-9]+(\.[0-9]+)?$")

for INTF in ${INTF_LIST}; do
echo "Flush ${INTF} IP address"
ip addr flush dev ${INTF}
ip addr flush dev ${INTF} scope global
done
4 changes: 2 additions & 2 deletions tests/vrf/test_vrf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1404,8 +1404,8 @@ def setup_vrf_capacity(self, duthosts, rand_one_dut_hostname, ptfhost, localhost
# -------- Teardown ----------

# remove cfg on ptf
ptfhost.shell("ip address flush dev eth{}".format(ptf_port1))
ptfhost.shell("ip address flush dev eth{}".format(ptf_port2))
ptfhost.shell("ip address flush dev eth{} scope global".format(ptf_port1))
ptfhost.shell("ip address flush dev eth{} scope global".format(ptf_port2))
ptfhost.template(src='vrf/vrf_capacity_del_ptf_cfg.j2',
dest='/tmp/vrf_capacity_del_ptf_cfg.sh', mode="0755")
ptfhost.shell('/tmp/vrf_capacity_del_ptf_cfg.sh')
Expand Down