Debian Codegraph @

ntc_templates/templates/cisco_ios_show_object-group.textfsm

raw
1 Value Required,Filldown TYPE (Service|Network)
2 Value Required,Filldown NAME (\S+)
3 Value DESCRIPTION (.+)
4 Value NESTED_GROUPS (\S+)
5 Value ANY (any)
6 Value HOST (\d+\.\d+\.\d+\.\d+)
7 Value HOST_RANGE_START (\d+\.\d+\.\d+\.\d+)
8 Value HOST_RANGE_END (\d+\.\d+\.\d+\.\d+)
9 Value NETWORK (\d+\.\d+\.\d+\.\d+)
10 Value NETMASK (\d+\.\d+\.\d+\.\d+)
11 Value PROTOCOL (\S+)
12 Value PORT_MATCH (eq|neq|range|lt|gt)
13 Value PORT ((?<!range\s)\S+)
14 Value PORT_RANGE_START ((?<=range\s)\S+)
15 Value PORT_RANGE_END (\S+)
16 Value ICMP_TYPE (echo|echo-reply|administratively-prohibited|unreachable|port-unreachable|redirect|router-advertisement|router-solicitation|packet-too-big|time-exceeded|ttl-exceeded|parameter-problem)
17
18 Start
19 ^(Service|Network) -> Continue.Clearall
20 ^${TYPE}\s+object\s+group\s+${NAME}\s*$$ -> Record
21 ^\s+Description\s+${DESCRIPTION}$$ -> Record
22 ^\s+group-object\s+${NESTED_GROUPS}\s*$$ -> Record
23 ^\s+(host\s+${HOST}|range\s+${HOST_RANGE_START}\s+${HOST_RANGE_END}|${ANY}|${NETWORK}\s+${NETMASK})\s*$$ -> Record
24 ^\s+icmp\s+${ICMP_TYPE}\s*$$ -> Record
25 ^\s+${PROTOCOL}\s+${PORT_MATCH}\s+(${PORT_RANGE_START}\s+${PORT_RANGE_END}|${PORT})\s*$$ -> Record
26 ^\s+${PROTOCOL}\s*$$ -> Record
27 ^\s*$$
28 ^. -> Error
29
30 EOF
31