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
5 changes: 3 additions & 2 deletions tests/common/helpers/bgp.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,9 @@ def teardown_session(self):
self.ptfhost.exabgp(name=self.name, state="stopped")
if not self.is_passive:
for asichost in self.duthost.asics:
logging.debug("update CONFIG_DB admin_status to down")
asichost.run_sonic_db_cli_cmd("CONFIG_DB hset 'BGP_NEIGHBOR|{}' admin_status down".format(self.ip))
if asichost.namespace == self.namespace:
logging.debug("update CONFIG_DB admin_status to down on {}".format(asichost.namespace))
asichost.run_sonic_db_cli_cmd("CONFIG_DB hset 'BGP_NEIGHBOR|{}' admin_status down".format(self.ip))

def announce_route(self, route):
if "aspath" in route:
Expand Down