Debian Codegraph @

ntc_templates/templates/cisco_asa_show_xlate.textfsm

raw
1 Value SOURCE_INTF (\S+)
2 Value List SOURCE ([0-9a-fA-F:\./]{7,})
3 Value DESTINATION_INTF (\S+)
4 Value List DESTINATION ([0-9a-fA-F:\./]{7,})
5
6 Start
7 ^\d+\s+in\s+use
8 ^Flags:
9 ^\S+\s+-\s+\S+
10 ^NAT\s+from\s+${SOURCE_INTF}:${SOURCE} -> Continue
11 ^NAT\s+from\s+\S+:[0-9a-fA-F:\./]+,\s+${SOURCE} -> Continue
12 ^NAT\s+from\s+\S+:(?:[0-9a-fA-F:\./]+,\s+){2}${SOURCE},\s*$$
13 ^NAT\s+from\s+\S+:(?:[0-9a-fA-F:\./]+,\s+){2}${SOURCE} -> Continue
14 ^${SOURCE} -> Continue
15 ^[0-9a-fA-F:\./]+,\s+${SOURCE} -> Continue
16 ^(?:[0-9a-fA-F:\./]+,\s+){2}${SOURCE}
17 ^.+to\s+${DESTINATION_INTF}:${DESTINATION}\s*$$ -> Dest
18 ^.+to\s+${DESTINATION_INTF}:${DESTINATION} -> Continue
19 ^.+to\s+\S+:[0-9a-fA-F:\./]+\s+${DESTINATION}\s*$$ -> Dest
20 ^.+to\s+\S+:[0-9a-fA-F:\./]+\s+${DESTINATION} -> Continue
21 ^.+to\s+\S+:(?:[0-9a-fA-F:\./]+\s+){2}${DESTINATION}\s*$$ -> Dest
22 ^.*flags -> Record
23 ^\s*$$
24 ^. -> Error
25
26 Dest
27 ^${DESTINATION} -> Continue
28 ^[0-9a-fA-F:\./]+,\s+${DESTINATION} -> Continue
29 ^(?:[0-9a-fA-F:\./]+,\s+){2}${DESTINATION}\s*$$
30 ^(?:[0-9a-fA-F:\./]+,\s+){2}${DESTINATION}
31 ^.*flags -> Record Start
32 ^\s*$$
33 ^. -> Error