Skip to content

Commit

Permalink
Fix: mikrotik_routeros_ip_address_print (#1918)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwood92 authored Dec 9, 2024
1 parent b6b030d commit 602f6f2
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Value NETWORK (\S+)
Value INTERFACE (.*?)

Start
^\s*Flags:\s*(?:X\s*-\s*disabled,)?\s*(?:I\s*-\s*invalid,)?\s*(?:D\s*-\s*(?:DYNAMIC|dynamic))?\s*$$
^\s*Flags:
^\s*Columns:\s*ADDRESS,\s*NETWORK,\s*INTERFACE\s*$$
^\s*#\s+ADDRESS\s+NETWORK\s+INTERFACE\s*$$ -> IPsTable
^\s*$$
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Flags: X - DISABLED, I - INVALID, D - DYNAMIC
Columns: ADDRESS, NETWORK, INTERFACE
# ADDRESS NETWORK INTERFACE
;;; Tech Access
0 192.168.10.1/24 192.168.10.0 sfp-sfpplus10
;;; BACKHAUL DISABLED
2 X 1.1.1.1/29 1.1.1.0 vlan4009@bond1
;;; FIBRE BACKHAUL
3 X 1.1.1.1/30 1.1.1.0 sfp-sfpplus2
;;; BACKHAUL DISABLED
4 I 1.1.1.1/29 1.1.1.0 vlan4011@bond1
5 D 1.1.1.1/32 1.1.1.1 pppoe-out1
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
parsed_sample:
- comment: "Tech Access"
flags: ""
interface: "sfp-sfpplus10"
ip: "192.168.10.1"
network: "192.168.10.0"
num: "0"
subnet: "24"
- comment: "BACKHAUL DISABLED"
flags: "X"
interface: "vlan4009@bond1"
ip: "1.1.1.1"
network: "1.1.1.0"
num: "2"
subnet: "29"
- comment: "FIBRE BACKHAUL"
flags: "X"
interface: "sfp-sfpplus2"
ip: "1.1.1.1"
network: "1.1.1.0"
num: "3"
subnet: "30"
- comment: "BACKHAUL DISABLED"
flags: "I"
interface: "vlan4011@bond1"
ip: "1.1.1.1"
network: "1.1.1.0"
num: "4"
subnet: "29"
- comment: ""
flags: "D"
interface: "pppoe-out1"
ip: "1.1.1.1"
network: "1.1.1.1"
num: "5"
subnet: "32"

0 comments on commit 602f6f2

Please sign in to comment.