Debian Codegraph @

ntc_templates/templates/zyxel_os_cfg_nat_get.textfsm

raw
1 Value INDEX (\d+)
2 Value NAME (.+?)
3 Value ENABLED (0|1)
4 Value ORIGINATING_IP (\d+\.\d+\.\d+\.\d+|N\/A)
5 Value SERVER_IP (.+?)
6 Value WAN_INTERFACE (.+?)
7 Value START_PORT (\d+)
8 Value END_PORT (\d+)
9 Value TRANSL_START_PORT (\d+)
10 Value TRANSL_END_PORT (\d+)
11 Value PROTOCOL (.+?)
12
13 Start
14 ^Index\s+Description\s+Enable\s+Originating\sIP\s+Server\sIP\sAddress\s+WAN\sInterface\s+Start\sPort\s+End\sPort\s+Translation\sStart\sPort\s+Translation\sEnd\sPort\s+Protocol\s*$$ -> NATTable
15 ^\s*$$
16 ^. -> Error
17
18 NATTable
19 ^${INDEX}\s+${NAME}\s+${ENABLED}\s+${ORIGINATING_IP}\s+${SERVER_IP}\s+${WAN_INTERFACE}\s+${START_PORT}\s+${END_PORT}\s+${TRANSL_START_PORT}\s+${TRANSL_END_PORT}\s+${PROTOCOL}\s*$$ -> Record
20 ^Command Successful.\s*$$
21 ^\s*$$
22 ^. -> Error