Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
What is the motivation for this PR?
Fix issue: #6479

How did you do it?
Replace duthost.hostname it with duthost.mgmt_ip

How did you verify/test it?
Run Test_syslog_source_ip

Any platform specific information?
Any
  • Loading branch information
JibinBao authored Jun 14, 2024
1 parent 0a60b61 commit ca453cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/syslog/test_syslog_source_ip.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,9 @@ def configure_mgmt_vrf_test_data(self, localhost):
logger.info("Create mgmt vrf")
create_vrf(self.duthost, VRF_LIST[2])
# when create mgmt vrf, dut connection will be lost for a while
localhost.wait_for(host=self.duthost.hostname, port=SONIC_SSH_PORT, search_regex=SONIC_SSH_REGEX,
localhost.wait_for(host=self.duthost.mgmt_ip, port=SONIC_SSH_PORT, search_regex=SONIC_SSH_REGEX,
state='absent', delay=1, timeout=30)
localhost.wait_for(host=self.duthost.hostname, port=SONIC_SSH_PORT, search_regex=SONIC_SSH_REGEX,
localhost.wait_for(host=self.duthost.mgmt_ip, port=SONIC_SSH_PORT, search_regex=SONIC_SSH_REGEX,
state='started', delay=2, timeout=180)

for k, v in list(MGMT_IP_ADDRESSES.items()):
Expand Down

0 comments on commit ca453cd

Please sign in to comment.