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
6 changes: 6 additions & 0 deletions tests/arp/test_wr_arp.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,12 @@ def setupFerret(self, duthost, ptfhost):
logger.info('Refreshing supervisor control with ferret configuration')
ptfhost.shell('supervisorctl reread && supervisorctl update')

@pytest.fixture(scope='class', autouse=True)
def clean_dut(self, duthost):
yield
logger.info("Clear ARP cache on DUT")
duthost.command('sonic-clear arp')

@pytest.fixture(scope='class', autouse=True)
def setupRouteToPtfhost(self, duthost, ptfhost):
'''
Expand Down
2 changes: 2 additions & 0 deletions tests/bgp/test_bgp_speaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ def common_setup_teardown(duthost, ptfhost, localhost):
ptfhost.shell("ip route flush %s/%d" % (lo_addr, lo_addr_prefixlen))
ptfhost.shell("ip route add %s/%d via %s" % (lo_addr, lo_addr_prefixlen, vlan_addr))

logging.info("clear ARP cache on DUT")
duthost.command("sonic-clear arp")
for ip in vlan_ips:
duthost.command("ip route flush %s/32" % ip.ip)
# The ping here is workaround for known issue:
Expand Down