Skip to content

Commit

Permalink
Add mikrotik routeros ipv6 neighbor print template (#1146)
Browse files Browse the repository at this point in the history
  • Loading branch information
k-ribot authored Nov 15, 2022
1 parent 9e82d84 commit bfe7b01
Show file tree
Hide file tree
Showing 4 changed files with 49 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 @@ -507,6 +507,7 @@ mikrotik_routeros_ip_dhcp-server_lease_print_without-paging.textfsm, .*, mikroti
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_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
mikrotik_routeros_system_routerboard_print.textfsm, .*, mikrotik_routeros, [[/]]system routerboard print
mikrotik_routeros_ip_route_print_terse.textfsm, .*, mikrotik_routeros, [[/]]ip(v6)? route print terse
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Value Key INDEX (\d+)
Value FLAGS ([R]+)
Value IP (\S+)
Value INTERFACE (\S+)
Value MAC ([0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5})
Value STATUS (noarp|incomplete|stale|reachable|delay|probe|failed)

Start
^Flags:.*$$ -> NeighborsTable

NeighborsTable
^\s*${INDEX}\s*(${FLAGS}\s+)?address=${IP}\s+interface=${INTERFACE}\s+(mac-address=${MAC}\s+)?status="${STATUS}"\s*$$ -> Record
^\s*$$
^. -> Error
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Flags: R - router
0 address=ff02::5 interface=main mac-address=33:33:00:00:00:05 status="noarp"

1 address=ff02::1 interface=main mac-address=33:33:00:00:00:01 status="noarp"

2 R address=fe80::d7:4cff:fec1:2e32 interface=main mac-address=00:0C:42:28:79:45 status="stale"

3 address=2a05:c100:1d::351c interface=bridge-lan status="failed"
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
parsed_sample:
- index: "0"
flags: ""
ip: "ff02::5"
interface: "main"
mac: "33:33:00:00:00:05"
status: "noarp"
- index: "1"
flags: ""
ip: "ff02::1"
interface: "main"
mac: "33:33:00:00:00:01"
status: "noarp"
- index: "2"
flags: "R"
ip: "fe80::d7:4cff:fec1:2e32"
interface: "main"
mac: "00:0C:42:28:79:45"
status: "stale"
- index: "3"
flags: ""
ip: "2a05:c100:1d::351c"
interface: "bridge-lan"
mac: ""
status: "failed"

0 comments on commit bfe7b01

Please sign in to comment.