-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
SONIC_CLI_IFACE_MODE=alias show ip route returns output in json format #8498
Labels
Comments
abdosi
pushed a commit
to sonic-net/sonic-utilities
that referenced
this issue
Nov 18, 2022
… mode issue (#2422) There are many issues with the "SONIC_CLI_IFACE_MODE=aliasshow ip/ipv6 route [json]" commands on both single asic platform and multiasic platform Doesn't show the interface alias on single asic platform Display the route info twice either in Json format or default format on the single asic platform Doesn't show the interface alias on multiasic platform Display the route info in the Json format even if Json is not specified in the CLI command Resolves# sonic-net/sonic-buildimage#8498
preetham-singh
pushed a commit
to preetham-singh/sonic-utilities
that referenced
this issue
Nov 21, 2022
… mode issue (sonic-net#2422) There are many issues with the "SONIC_CLI_IFACE_MODE=aliasshow ip/ipv6 route [json]" commands on both single asic platform and multiasic platform Doesn't show the interface alias on single asic platform Display the route info twice either in Json format or default format on the single asic platform Doesn't show the interface alias on multiasic platform Display the route info in the Json format even if Json is not specified in the CLI command Resolves# sonic-net/sonic-buildimage#8498
mdanish-kh
pushed a commit
to mdanish-kh/sonic-utilities
that referenced
this issue
Nov 23, 2022
… mode issue (sonic-net#2422) There are many issues with the "SONIC_CLI_IFACE_MODE=aliasshow ip/ipv6 route [json]" commands on both single asic platform and multiasic platform Doesn't show the interface alias on single asic platform Display the route info twice either in Json format or default format on the single asic platform Doesn't show the interface alias on multiasic platform Display the route info in the Json format even if Json is not specified in the CLI command Resolves# sonic-net/sonic-buildimage#8498
yxieca
pushed a commit
to sonic-net/sonic-utilities
that referenced
this issue
Nov 29, 2022
… mode issue (#2422) There are many issues with the "SONIC_CLI_IFACE_MODE=aliasshow ip/ipv6 route [json]" commands on both single asic platform and multiasic platform Doesn't show the interface alias on single asic platform Display the route info twice either in Json format or default format on the single asic platform Doesn't show the interface alias on multiasic platform Display the route info in the Json format even if Json is not specified in the CLI command Resolves# sonic-net/sonic-buildimage#8498
malletvapid23
added a commit
to malletvapid23/Sonic-Utility
that referenced
this issue
Aug 3, 2023
… mode issue (#2422) There are many issues with the "SONIC_CLI_IFACE_MODE=aliasshow ip/ipv6 route [json]" commands on both single asic platform and multiasic platform Doesn't show the interface alias on single asic platform Display the route info twice either in Json format or default format on the single asic platform Doesn't show the interface alias on multiasic platform Display the route info in the Json format even if Json is not specified in the CLI command Resolves# sonic-net/sonic-buildimage#8498
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
If we set interface naming mode to 'alias', and run the 'show ip route' command, the output is shown in json format. If we don't set SONIC_CLI_IFACE_MODE or set it to 'default', then the output is not in JSON format
Because of this, sonic-mgmt test test_show_ip_route_v4(https://github.com/Azure/sonic-mgmt/blob/master/tests/iface_namingmode/test_iface_namingmode.py#L921) and test_show_ip_route_v6 are failing when run in alias mode.
Steps to reproduce the issue:
Describe the results you received:
The output of 'SONIC_IFACE_CLI_MODE=alias show ip route 192.168.1.1 is:
Describe the results you expected:
Expect the output to be the same format as with SONIC_IFACE_CLI_MODE set to default
Output of
show version
:On a multi-asic KVM
Output of
show techsupport
:Additional information you deem important (e.g. issue happens only occasionally):
The text was updated successfully, but these errors were encountered: