Skip to content

Commit 4de5990

Browse files
committed
config/routes: changed service definition for sonic devices
it separate sonic in a list to be able to differentiate between versions higher than 4.2 and lower than that. It add for sonic 4.2 the command to retrive the vrfs name associated with ids Signed-off-by: AndryNick98 <[email protected]>
1 parent c41bba9 commit 4de5990

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

suzieq/config/routes.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,16 @@ apply:
2525
copy: cumulus
2626

2727
sonic:
28-
copy: cumulus
28+
- version: '>= 4.2.0'
29+
merge: False
30+
command:
31+
- command: ip vrf show
32+
textfsm: textfsm_templates/sonic_vrf_show.tfsm
33+
- command: ip route show table all
34+
textfsm: textfsm_templates/sonic_routes_v42.tfsm
35+
- version: all
36+
command: ip route show table all
37+
textfsm: textfsm_templates/linux_routes.tfsm
2938

3039
eos:
3140
version: all

0 commit comments

Comments
 (0)