Skip to content

Commit

Permalink
fix the comment for 'autoneg is not supported'
Browse files Browse the repository at this point in the history
Signed-off-by: Dante Su <[email protected]>
  • Loading branch information
ds952811 committed Jul 12, 2022
1 parent 69b023b commit 21dd927
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion orchagent/portsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3108,7 +3108,7 @@ void PortsOrch::doPortTask(Consumer &consumer)
if (p.m_cap_an < 1)
{
SWSS_LOG_ERROR("%s: autoneg is not supported", p.m_alias.c_str());
// Invalid auto negotiation mode configured, don't retry
// autoneg is not supported, don't retry
it = consumer.m_toSync.erase(it);
continue;
}
Expand Down
3 changes: 2 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,8 @@ def __init__(

def create_servers(self):
for i in range(NUM_PORTS):
server = VirtualServer(self.ctn_sw.name, self.ctn_sw_pid, i)
name = self.ctn_sw.name if hasattr(self, 'ctn_sw') else self.dvsname
server = VirtualServer(name, self.ctn_sw_pid, i)
self.servers.append(server)

def reset_dbs(self):
Expand Down

0 comments on commit 21dd927

Please sign in to comment.