Skip to content

Commit 7ed9a91

Browse files
authored
[show] Allow system with no ports in config db run without errors (#1754)
What I did Allow system with no ports in config db run without errors. This is needed for modular system which should boot properly without line cards. How I did it Do not raise warning if ports dictionary is empty. How to verify it Run show interfaces status
1 parent 720b650 commit 7ed9a91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utilities_common/cli.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def __init__(self, db=None):
131131

132132

133133
if not self.port_dict:
134-
click.echo(message="Warning: failed to retrieve PORT table from ConfigDB!", err=True)
134+
click.echo(message="Configuration database contains no ports")
135135
self.port_dict = {}
136136

137137
for port_name in self.port_dict:

0 commit comments

Comments
 (0)