-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KeyError: 'alias' when we try to use "show" command after shut / unshut the interface using config interface [InterfaceName] [shutdown | startup] #268
Comments
A couple questions:
P.S. I modified your original post to format the output for easier reading. |
Yes, show command is working fine before shutdown / startup the interface. Yes, I have alias column in my port_config.ini file, see below snippet of my port_config.ini file.
|
I tried on mellanox target, and it's working fine. root@test-bed-1: Ethernet0 0 25G N/A Ethernet0 down N/A Ethernet0 0 25G N/A Ethernet0 down N/A |
root@test-bed-1:~# show version |
I am having this issue on DELL S 6000 device. |
Should be fixed with sonic-net/sonic-utilities#362. PR open here: sonic-net/sonic-buildimage#2252 to update the sonic-utilites submodule. Once this PR is merged, please check again and provide your feedback. |
@chaitanc: The PR has been merged. Can you please try imaging with a new build from the head of the master branch and confirm this is fixed for you? |
Verified on build:
Issue not seen. Hence closing the issue. |
Issue observed in below scenario
root@AG9032V1-Leaf-23:~# show interface status TO BE DONE:
Hence reopening the issue. |
Though the interface name is invalid, the interface is getting added into the PORT_TABLE in Config DB, with admin status attribute only. Later during show commands when we query the PORT_TABLE it is throwing error on missing alias. We should prevent adding invalid interface names into the PORT_TABLE during config commands. ==========
@@ -823,6 +822,10 @@ def startup(ctx):
|
Hi Joe, I am submitting the config prevention fix (error checking) as mentioned above as part of pull request sonic-net/sonic-utilities#424 |
Fixed by sonic-net/sonic-utilities#424 |
Observed below error log when I try to use the "show" command after shut / unshut the interface using
config interface [InterfaceName] [shutdown | startup]
This error log is getting cleared when we do config reload or reboot. This is a blocker, even though we have an workaround which is time consuming.
SONIC Version:
The text was updated successfully, but these errors were encountered: