sonic-utilities icon indicating copy to clipboard operation
sonic-utilities copied to clipboard

T2: Ifacenaming mode failures with “show ip route <IP>” for v4 or v6.

Open rajendrat opened this issue 3 years ago • 1 comments

Description

Ifacenaming mode failures with “show ip route <IP>” for v4 or v6.   “show ip route <IP>” for v4 or v6 is NOT supported in ifacenaming mode in utilities_commom/cli.py in sonic-utilities. https://github.com/sonic-net/sonic-utilities/blob/master/utilities_common/cli.py This test is skipped in T1, as the script expects a routed_interface.

Without the support, we see the EthernetX interface, instead of the TestAliasX name, and the sonic-mgmt script expects the alias and asserts an error.

Steps to reproduce the issue

  1. Running sonic-mgmt suite for ifacenaming mode, with TestShowIP():, with show ip route for v4 and v6.

  2. root@sfd-t2-lc0:/home/cisco# SONIC_CLI_IFACE_MODE=alias show ip route 192.168.1.1 { "0.0.0.0/0":[ {

       "flags":3,
       "fib":true,
       "ip":"10.0.0.33",
       "afi":"ipv4",
       "interfaceIndex":143,
       "interfaceName":"Ethernet12",
       "active":true,
       "weight":1
     },
    

Output of show version

See in the latest 202205 cisco@sfd-t2-lc0:~$ show vers

SONiC Software Version: SONiC.202205.2469-dirty-20221105.052548 Distribution: Debian 11.5 Kernel: 5.10.0-12-2-amd64 Build commit: 9d7c23b85 Build date: Sat Nov 5 16:44:19 UTC 2022 Built by: sonicci@sonic-ci-17-lnx

rajendrat avatar Nov 08 '22 04:11 rajendrat

@abdosi tagging for your reference

rajendrat avatar Nov 08 '22 04:11 rajendrat