[sonic-utilities] fixes #5795 show vnet [neighbors | routes [all | tunnel]] c…#1263
Merged
prsunny merged 1 commit intosonic-net:masterfrom Nov 23, 2020
CLUDev:fix_show_vnet_issue
Merged
[sonic-utilities] fixes #5795 show vnet [neighbors | routes [all | tunnel]] c…#1263prsunny merged 1 commit intosonic-net:masterfrom CLUDev:fix_show_vnet_issue
prsunny merged 1 commit intosonic-net:masterfrom
CLUDev:fix_show_vnet_issue
Conversation
prsunny
approved these changes
Nov 23, 2020
Contributor
|
retest this please |
stepanblyschak
pushed a commit
to stepanblyschak/sonic-utilities
that referenced
this pull request
Apr 28, 2022
[routeorch] Handle the empty "nexthop" field for backward compatibility (sonic-net#1263) [vnet] Set MTU for the VNET bridge RIF in BITMAP implementation (sonic-net#1271) [vnet] Verify if BITMAP route exists before creating new one to avoid dublication (sonic-net#1272)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
- What I did
When query "NEIGH_TABLE*" or "VNET_ROUTE_TUNNEL_TABLE*" from APPDB,
it may contain a combination of table names with and without ":"
127.0.0.1:6379> keys NEIGH_TABLE*
127.0.0.1:6379> keys VNET_ROUTE_TUNNEL_TABLE*
However, /src/sonic-utilities/show/main.py split the table name with ":"
without checking if the table name contains ":" or not,
which caused the cli command yields an exception.
tbl, intf, ip = nbr.split(":", 2)- How I did it
Modify file: "show/main.py"
Add ":" in the regex for querying "NEIGH_TABLE" and "VNET_ROUTE_TUNNEL_TABLE" in the following functional definitions.
- How to verify it
- Previous command output (if the output of a command-line utility has changed)
- New command output (if the output of a command-line utility has changed)