-
Notifications
You must be signed in to change notification settings - Fork 739
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add mikrotik routeros ipv6 neighbor print template (#1146)
- Loading branch information
Showing
4 changed files
with
49 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
14 changes: 14 additions & 0 deletions
14
ntc_templates/templates/mikrotik_routeros_ipv6_neighbor_print_without-paging.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,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 |
8 changes: 8 additions & 0 deletions
8
...v6_neighbor_print_without-paging/mikrotik_routeros_ipv6_neighbor_print_without-paging.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 @@ | ||
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" |
26 changes: 26 additions & 0 deletions
26
...v6_neighbor_print_without-paging/mikrotik_routeros_ipv6_neighbor_print_without-paging.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,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" |