-
Notifications
You must be signed in to change notification settings - Fork 735
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mikrotik routeros - ip firewall address-list print terse (#1160)
- Loading branch information
Showing
6 changed files
with
208 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
ntc_templates/templates/mikrotik_routeros_ip_firewall_address-list_print_terse.textfsm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
16 changes: 16 additions & 0 deletions
16
...l_address-list_print_terse/mikrotik_routeros_ip_firewall_address-list_print_terseIPv4.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
114 changes: 114 additions & 0 deletions
114
...l_address-list_print_terse/mikrotik_routeros_ip_firewall_address-list_print_terseIPv4.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: "" |
8 changes: 8 additions & 0 deletions
8
...l_address-list_print_terse/mikrotik_routeros_ip_firewall_address-list_print_terseIPv6.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
58 changes: 58 additions & 0 deletions
58
...l_address-list_print_terse/mikrotik_routeros_ip_firewall_address-list_print_terseIPv6.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |