diff --git a/tests/bgp/test_bgp_dual_asn.py b/tests/bgp/test_bgp_dual_asn.py index 1fc60b5885..b1e079173f 100644 --- a/tests/bgp/test_bgp_dual_asn.py +++ b/tests/bgp/test_bgp_dual_asn.py @@ -282,7 +282,7 @@ def dual_asn_teardown(self, duthosts, rand_one_dut_hostname, ptfhost): logger.info("exabgp stopped") for port in self.ptf_ports: - ptfhost.shell("ip addr flush dev %s" % port) + ptfhost.shell("ip addr flush dev {} scope global".format(port)) duthost.command("sonic-clear arp") duthost.command("sonic-clear ndp") duthost.command("sonic-clear fdb all")