Debian Codegraph @

ntc_templates/templates/zyxel_os_cfg_firewall_acl_get.textfsm

raw
1 Value INDEX (\d+)
2 Value ENABLE (true|false)
3 Value ORDER (\d+)
4 Value NAME (.+\S)
5 Value SOURCE_IP ((Any|\d+\.\d+\.\d+\.\d+)/\d+)
6 Value DESTINATION_IP ((Any|\d+\.\d+\.\d+\.\d+)/\d+)
7 Value PROTOCOL (ALL|ICMP|TCP|UDP|TCP/UDP)
8 Value PORTS ((\d+|Any)(:\d+)?)
9 Value ACTION (Accept|Drop)
10
11 Start
12 ^Index\s+(Enable\s+)?Order\s+Name\s+Source\sIP\s+Destination\sIP\s+Service\s+Action\s*$$ -> FIREWALLTable
13 ^\s*$$
14 ^. -> Error
15
16 FIREWALLTable
17 ^${INDEX}\s+(${ENABLE}\s+)?${ORDER}\s+${NAME}\s+${SOURCE_IP}\s+${DESTINATION_IP}\s+${PROTOCOL}(:Any-->${PORTS})?\s+${ACTION}\s*$$ -> Record
18 ^Command\sSuccessful.\s*$$
19 ^\s*$$
20 ^. -> Error