Debian Codegraph @

ntc_templates/templates/checkpoint_gaia_show_route.textfsm

raw
1 Value PROTOCOL (C|S|R|B|O|A|K|H|P|U|i)
2 Value NETWORK ([0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3})
3 Value MASK (\d{1,2})
4 Value NEXTHOPIP ([0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3})
5 Value INTERFACE (\S+)
6 Value COMMENT (\S.*)
7
8
9 Start
10 ^\S\s -> Continue.Record
11 # Match regular routes
12 ^${PROTOCOL}\s+${NETWORK}/${MASK}\s+via\s${NEXTHOPIP},\s${INTERFACE},
13 # Match directly connected networks
14 ^${PROTOCOL}\s+${NETWORK}/${MASK}\s+is directly connected,\s${INTERFACE}
15 # Match optional comment, ignore trailing whitespace
16 ^\s{34}${COMMENT}\s*$$