Skip to content

Commit 2db0888

Browse files
authored
Revert "Revert "Updating test_techsupport_commands to align with updated list of frr commands"" (#11392)
1 parent 0c99199 commit 2db0888

File tree

2 files changed

+62
-2
lines changed

2 files changed

+62
-2
lines changed

tests/show_techsupport/tech_support_cmds.py

Lines changed: 61 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,31 @@
6363

6464
frr_cmds = [
6565
"vtysh{} -c 'show running-config'",
66-
"vtysh{} -c 'show ip route vrf all'",
67-
"vtysh{} -c 'show ipv6 route vrf all'",
66+
"vtysh{} -c 'show ip route vrf all nexthop-group'",
67+
"vtysh{} -c 'show ipv6 route vrf all nexthop-group'",
6868
"vtysh{} -c 'show zebra fpm stats'",
6969
"vtysh{} -c 'show zebra dplane detailed'",
7070
"vtysh{} -c 'show interface vrf all'",
71+
"vtysh{} -c 'show zebra'",
72+
"vtysh{} -c 'show zebra client'",
7173
"vtysh{} -c 'show zebra client summary'",
74+
"vtysh{} -c 'show zebra router table summary'",
75+
"vtysh{} -c 'show vrf'",
76+
"vtysh{} -c 'show vrf vni'",
77+
"vtysh{} -c 'show ip nht vrf all'",
78+
"vtysh{} -c 'show ipv6 nht vrf all'",
79+
"vtysh{} -c 'show mpls table'",
80+
"vtysh{} -c 'show mpls fec'",
81+
"vtysh{} -c 'show nexthop-group rib'",
82+
"vtysh{} -c 'show thread cpu'",
83+
"vtysh{} -c 'show thread poll'",
84+
"vtysh{} -c 'show debugging hashtable'",
85+
"vtysh{} -c 'show work-queues'",
86+
"vtysh{} -c 'show memory'",
87+
"vtysh{} -c 'show modules'",
88+
"vtysh{} -c 'show version'",
89+
"vtysh{} -c 'show debugging'",
90+
"vtysh{} -c 'show logging'",
7291
]
7392

7493

@@ -79,12 +98,52 @@
7998
"vtysh{} -c 'show bgp ipv6 summary'",
8099
"vtysh{} -c 'show bgp ipv6 neighbors'",
81100
"vtysh{} -c 'show bgp ipv6'",
101+
"vtysh{} -c 'show ip bgp vrf all'",
102+
"vtysh{} -c 'show ip bgp vrf all summary json'",
103+
"vtysh{} -c 'show ip bgp vrf all neighbors json'",
104+
"vtysh{} -c 'show ip bgp vrf all nexthop'",
105+
"vtysh{} -c 'show ip bgp vrf all update-group'",
106+
"vtysh{} -c 'show bgp vrfs json'",
107+
"vtysh{} -c 'show bgp vrf all ipv4 unicast summary json'",
108+
"vtysh{} -c 'show bgp vrf all ipv6 unicast summary json'",
109+
"vtysh{} -c 'show bgp vrf all ipv4 unicast detail json'",
110+
"vtysh{} -c 'show bgp vrf all ipv6 unicast detail json'",
111+
"vtysh{} -c 'show bgp vrf all ipv4 unicast update-group'",
112+
"vtysh{} -c 'show bgp vrf all ipv6 unicast update-group'",
113+
"vtysh{} -c 'show bgp vrf all ipv4 unicast route-leak json'",
114+
"vtysh{} -c 'show bgp vrf all ipv6 unicast route-leak json'",
115+
"vtysh{} -c 'show bgp ipv4 labeled-unicast'",
116+
"vtysh{} -c 'show bgp ipv6 labeled-unicast'",
117+
"vtysh{} -c 'show bgp mac hash'",
82118
re.compile(r'vtysh{}\s+-c "show ip bgp neighbors .* advertised-routes"'),
83119
re.compile(r'vtysh{}\s+-c "show ip bgp neighbors .* routes"'),
84120
re.compile(r'vtysh{}\s+-c "show bgp ipv6 neighbors .* advertised-routes"'),
85121
re.compile(r'vtysh{}\s+-c "show bgp ipv6 neighbors .* routes"'),
86122
]
87123

124+
evpn_cmds = [
125+
"vtysh{} -c 'show bgp l2vpn evpn'",
126+
"vtysh{} -c 'show bgp l2vpn evpn summary json'",
127+
"vtysh{} -c 'show bgp l2vpn evpn route'",
128+
"vtysh{} -c 'show bgp l2vpn evpn route detail'",
129+
"vtysh{} -c 'show bgp l2vpn evpn vni json'",
130+
"vtysh{} -c 'show bgp l2vpn evpn import-rt json'",
131+
"vtysh{} -c 'show bgp l2vpn evpn vrf-import-rt json'",
132+
"vtysh{} -c 'show bgp l2vpn evpn update-groups'",
133+
"vtysh{} -c 'show bgp l2vpn evpn next-hops json'",
134+
"vtysh{} -c 'show bgp vni all'",
135+
"vtysh{} -c 'show bgp vni all detail'",
136+
"vtysh{} -c 'show evpn vni detail json'",
137+
"vtysh{} -c 'show evpn access-vlan json'",
138+
"vtysh{} -c 'show evpn arp-cache vni all'",
139+
"vtysh{} -c 'show evpn json'",
140+
"vtysh{} -c 'show evpn l2-nh json'",
141+
"vtysh{} -c 'show evpn mac vni all'",
142+
"vtysh{} -c 'show evpn arp-cache vni all'",
143+
"vtysh{} -c 'show evpn rmac vni all json'",
144+
"vtysh{} -c 'show evpn next-hops vni all json'",
145+
]
146+
88147
nat_cmds = [
89148
"iptables -t nat -nv -L",
90149
"conntrack -j -L",

tests/show_techsupport/test_techsupport.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@ def commands_to_check(duthosts, enum_rand_one_per_hwsku_frontend_hostname):
394394
"bridge_cmds": cmds.bridge_cmds,
395395
"frr_cmds": add_asic_arg(" -n {}", cmds.frr_cmds, num),
396396
"bgp_cmds": add_asic_arg(" -n {}", cmds.bgp_cmds, num),
397+
"evpn_cmds": add_asic_arg(" -n {}", cmds.evpn_cmds, num),
397398
"nat_cmds": cmds.nat_cmds,
398399
"bfd_cmds": add_asic_arg(" -n {}", cmds.bfd_cmds, num),
399400
"redis_db_cmds": add_asic_arg("asic{} ", cmds.redis_db_cmds, num),

0 commit comments

Comments
 (0)