Skip to content

Commit

Permalink
Mikrotik routeros - ip firewall address-list print terse (#1160)
Browse files Browse the repository at this point in the history
  • Loading branch information
elavaud authored Apr 3, 2023
1 parent 8f3c15f commit 9130d53
Show file tree
Hide file tree
Showing 6 changed files with 208 additions and 0 deletions.
1 change: 1 addition & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,7 @@ mikrotik_routeros_ip_firewall_filter_print_all_without-paging.textfsm, .*, mikro
mikrotik_routeros_ip_dhcp-server_lease_print_without-paging.textfsm, .*, mikrotik_routeros, [[/]]ip dhcp-server lease print without-paging
mikrotik_routeros_ip_firewall_nat_print_all_without-paging.textfsm, .*, mikrotik_routeros, [[/]]ip(v6)? firewall nat print all without-paging
mikrotik_routeros_interface_ethernet_monitor_name_once.textfsm, .*, mikrotik_routeros, [[/]]interface ethernet monitor (\S+) once
mikrotik_routeros_ip_firewall_address-list_print_terse.textfsm, .*, mikrotik_routeros, [[/]]ip(v6)? firewall address-list print terse
mikrotik_routeros_snmp_community_print_without-paging.textfsm, .*, mikrotik_routeros, [[/]]snmp community print without-paging
mikrotik_routeros_ipv6_neighbor_print_without-paging.textfsm, .*, mikrotik_routeros, [[/]]ipv6 neighbor print without-paging
mikrotik_routeros_ip_arp_print_without-paging.textfsm, .*, mikrotik_routeros, [[/]]ip arp print without-paging
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Value Key INDEX (\d+)
Value FLAGS ([XD])
Value LIST (\S+)
Value ADDRESS (\S+)
Value CREATION_TIME (\S+\s\S+)
Value TIMEOUT (\S+)
Value DYNAMIC (yes|no)

Start
^\s*${INDEX}\s+(${FLAGS}\s)?list=${LIST}\saddress=${ADDRESS}(\screation-time=${CREATION_TIME})?(\stimeout=${TIMEOUT})?(\sdynamic=${DYNAMIC})?.*$$ -> Record
^. -> Error
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
0 list=Eqinoxe address=185.48.253.0/27 creation-time=jan/01/2002 01:00:25
1 list=Eqinoxe address=185.48.254.0/28 creation-time=jan/01/2002 01:00:25
2 list=Eqinoxe address=185.163.212.64/28 creation-time=jan/01/2002 01:00:25
3 list=Eqinoxe address=185.163.212.48/28 creation-time=jan/01/2002 01:00:25
4 list=Eqinoxe address=185.197.109.16/28 creation-time=jan/01/2002 01:00:25
5 list=Supervision address=185.132.66.240 creation-time=jan/01/2002 01:00:25
6 list=Supervision address=85.14.167.232/29 creation-time=jan/01/2002 01:00:25
7 list=Supervision address=185.48.254.16/29 creation-time=jan/01/2002 01:00:25
8 list=Supervision address=5.10.130.152/30 creation-time=jan/01/2002 01:00:25
9 list=Supervision address=85.14.167.193 creation-time=jan/01/2002 01:00:25
10 list=azeazeaze address=192.168.1.1 creation-time=jun/14/2022 06:34:30
11 list=azeazeaze address=192.168.1.2 creation-time=jun/14/2022 06:44:09
12 list=azeazeaze address=192.168.1.3 creation-time=jun/14/2022 06:44:51
13 X list=azeazeaze address=192.168.3.0/24 creation-time=jun/14/2022 07:53:30
14 D list=azeazeaze address=192.168.3.0/24 creation-time=jun/14/2022 07:53:49 timeout=4m52s
15 list=snmp-monitoring-address-list address=85.14.167.234 creation-time=mar/01/2023 13:59:33
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
---
parsed_sample:
- index: "0"
flags: ""
list: "Eqinoxe"
address: "185.48.253.0/27"
creation_time: "jan/01/2002 01:00:25"
timeout: ""
dynamic: ""
- index: "1"
flags: ""
list: "Eqinoxe"
address: "185.48.254.0/28"
creation_time: "jan/01/2002 01:00:25"
timeout: ""
dynamic: ""
- index: "2"
flags: ""
list: "Eqinoxe"
address: "185.163.212.64/28"
creation_time: "jan/01/2002 01:00:25"
timeout: ""
dynamic: ""
- index: "3"
flags: ""
list: "Eqinoxe"
address: "185.163.212.48/28"
creation_time: "jan/01/2002 01:00:25"
timeout: ""
dynamic: ""
- index: "4"
flags: ""
list: "Eqinoxe"
address: "185.197.109.16/28"
creation_time: "jan/01/2002 01:00:25"
timeout: ""
dynamic: ""
- index: "5"
flags: ""
list: "Supervision"
address: "185.132.66.240"
creation_time: "jan/01/2002 01:00:25"
timeout: ""
dynamic: ""
- index: "6"
flags: ""
list: "Supervision"
address: "85.14.167.232/29"
creation_time: "jan/01/2002 01:00:25"
timeout: ""
dynamic: ""
- index: "7"
flags: ""
list: "Supervision"
address: "185.48.254.16/29"
creation_time: "jan/01/2002 01:00:25"
timeout: ""
dynamic: ""
- index: "8"
flags: ""
list: "Supervision"
address: "5.10.130.152/30"
creation_time: "jan/01/2002 01:00:25"
timeout: ""
dynamic: ""
- index: "9"
flags: ""
list: "Supervision"
address: "85.14.167.193"
creation_time: "jan/01/2002 01:00:25"
timeout: ""
dynamic: ""
- index: "10"
flags: ""
list: "azeazeaze"
address: "192.168.1.1"
creation_time: "jun/14/2022 06:34:30"
timeout: ""
dynamic: ""
- index: "11"
flags: ""
list: "azeazeaze"
address: "192.168.1.2"
creation_time: "jun/14/2022 06:44:09"
timeout: ""
dynamic: ""
- index: "12"
flags: ""
list: "azeazeaze"
address: "192.168.1.3"
creation_time: "jun/14/2022 06:44:51"
timeout: ""
dynamic: ""
- index: "13"
flags: "X"
list: "azeazeaze"
address: "192.168.3.0/24"
creation_time: "jun/14/2022 07:53:30"
timeout: ""
dynamic: ""
- index: "14"
flags: "D"
list: "azeazeaze"
address: "192.168.3.0/24"
creation_time: "jun/14/2022 07:53:49"
timeout: "4m52s"
dynamic: ""
- index: "15"
flags: ""
list: "snmp-monitoring-address-list"
address: "85.14.167.234"
creation_time: "mar/01/2023 13:59:33"
timeout: ""
dynamic: ""
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
0 list=Supervision address=2a05:c100::/48 dynamic=no
1 list=Supervision address=2a00:41e0::/48 dynamic=no
2 list=azeazeaze address=b620::/11 dynamic=no
3 D list=azeazeaze address=63b6:67c3:da8b:2848:4a5c:851b:96a5:6b40/124 dynamic=yes
4 D list=azeazeaze address=d4de:e2c0::/26 timeout=7m49s dynamic=yes
5 list=azeazeaze address=e7ba:6ba4:5eb9:4014:37f:d1ab:6d74:ad62/128 dynamic=no
6 X list=azeazeaze address=e7ba:6ba4:5eb9:4014:37f:d1ab:6d74:0/128 dynamic=no
7 list=ertyhgfgf address=e7bb:6ba4:5eb9:4014:37f:d1ab:6d74:0/128 dynamic=no
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
parsed_sample:
- index: "0"
flags: ""
list: "Supervision"
address: "2a05:c100::/48"
creation_time: ""
timeout: ""
dynamic: "no"
- index: "1"
flags: ""
list: "Supervision"
address: "2a00:41e0::/48"
creation_time: ""
timeout: ""
dynamic: "no"
- index: "2"
flags: ""
list: "azeazeaze"
address: "b620::/11"
creation_time: ""
timeout: ""
dynamic: "no"
- index: "3"
flags: "D"
list: "azeazeaze"
address: "63b6:67c3:da8b:2848:4a5c:851b:96a5:6b40/124"
creation_time: ""
timeout: ""
dynamic: "yes"
- index: "4"
flags: "D"
list: "azeazeaze"
address: "d4de:e2c0::/26"
creation_time: ""
timeout: "7m49s"
dynamic: "yes"
- index: "5"
flags: ""
list: "azeazeaze"
address: "e7ba:6ba4:5eb9:4014:37f:d1ab:6d74:ad62/128"
creation_time: ""
timeout: ""
dynamic: "no"
- index: "6"
flags: "X"
list: "azeazeaze"
address: "e7ba:6ba4:5eb9:4014:37f:d1ab:6d74:0/128"
creation_time: ""
timeout: ""
dynamic: "no"
- index: "7"
flags: ""
list: "ertyhgfgf"
address: "e7bb:6ba4:5eb9:4014:37f:d1ab:6d74:0/128"
creation_time: ""
timeout: ""
dynamic: "no"

0 comments on commit 9130d53

Please sign in to comment.