Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mikrotik routeros ip address print FLAGS value fix #1574

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Value NUM (\d+)
Value FLAGS (X|I|D)
Value FLAGS ((?:X|I|D)+)
Value COMMENT (.*)
Value IP (\S+)
Value SUBNET (\d+)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 1.2.3.6/30 1.2.3.4 ether1
1 ;;; test ip1
192.167.1.5/27 192.167.1.0 eth2_vlan1
2 D 192.168.1.53/24 192.168.1.0 lte1
3 X ;;; test ip2
192.167.1.99/27 192.167.1.0 eth2_vlan2
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
parsed_sample:
- num: "0"
flags: ""
comment: ""
ip: "1.2.3.6"
subnet: "30"
network: "1.2.3.4"
interface: "ether1"
- num: "1"
flags: ""
comment: "test ip1"
ip: "192.167.1.5"
subnet: "27"
network: "192.167.1.0"
interface: "eth2_vlan1"
- num: "2"
flags: "D"
comment: ""
ip: "192.168.1.53"
subnet: "24"
network: "192.168.1.0"
interface: "lte1"
- num: "3"
flags: "X"
comment: "test ip2"
ip: "192.167.1.99"
subnet: "27"
network: "192.167.1.0"
interface: "eth2_vlan2"
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 10.156.1.229/30 10.156.1.228 ether4_CiscoPhone3
1 10.152.1.229/30 10.152.1.228 ether5_KFCcisco
2 10.160.1.229/30 10.160.1.228 ether2_BOX
3 XI 10.100.3.200/27 10.100.3.192 bridge70
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
parsed_sample:
- comment: ""
flags: ""
interface: "ether4_CiscoPhone3"
ip: "10.156.1.229"
network: "10.156.1.228"
num: "0"
subnet: "30"
- comment: ""
flags: ""
interface: "ether5_KFCcisco"
ip: "10.152.1.229"
network: "10.152.1.228"
num: "1"
subnet: "30"
- comment: ""
flags: ""
interface: "ether2_BOX"
ip: "10.160.1.229"
network: "10.160.1.228"
num: "2"
subnet: "30"
- comment: ""
flags: "XI"
interface: "bridge70"
ip: "10.100.3.200"
network: "10.100.3.192"
num: "3"
subnet: "27"