Skip to content

Commit

Permalink
MikroTik RouterOs add management of entry without flags in ip-firewal…
Browse files Browse the repository at this point in the history
…l-address-list template
  • Loading branch information
k-ribot committed Mar 16, 2023
1 parent d060903 commit aec5da9
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ Value TIMEOUT (\S+)
Value DYNAMIC (yes|no)

Start
^\s*${INDEX}\s${FLAGS}\slist=${LIST}\saddress=${ADDRESS}(\screation-time=${CREATION_TIME})?(\stimeout=${TIMEOUT})?(\sdynamic=${DYNAMIC})?.*$$ -> Record
^\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
Expand Up @@ -13,3 +13,4 @@
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
Expand Up @@ -105,3 +105,10 @@ parsed_sample:
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
Expand Up @@ -5,3 +5,4 @@
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
Expand Up @@ -49,3 +49,10 @@ parsed_sample:
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 aec5da9

Please sign in to comment.