Skip to content

[show] Allow system with no ports in config db run without errors#1754

Merged
qiluo-msft merged 2 commits intosonic-net:masterfrom
liorghub:zero_ports_2
Sep 1, 2021
Merged

[show] Allow system with no ports in config db run without errors#1754
qiluo-msft merged 2 commits intosonic-net:masterfrom
liorghub:zero_ports_2

Conversation

@liorghub
Copy link
Copy Markdown
Contributor

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

Previous command output (if the output of a command-line utility has changed)
root@r-leopard-41:/home/admin# show interfaces status
Warning: failed to retrieve PORT table from ConfigDB!
Warning: failed to retrieve PORT table from ConfigDB!
Interface Lanes Speed MTU FEC Alias Vlan Oper Admin Type Asym PFC
*----------- ------- ------- ----- ----- ------- ------ ------ ------- ------ ----------
root@r-leopard-41:/home/admin#

New command output (if the output of a command-line utility has changed)
root@r-leopard-41:/home/admin# show interfaces status
Interface Lanes Speed MTU FEC Alias Vlan Oper Admin Type Asym PFC
*----------- ------- ------- ----- ----- ------- ------ ------ ------- ------ ----------
root@r-leopard-41:/home/admin#

dgsudharsan
dgsudharsan previously approved these changes Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants