-
Notifications
You must be signed in to change notification settings - Fork 745
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Mikrotik routing ospf neighbor print template (#1496)
Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”>
- Loading branch information
1 parent
c8729ec
commit 44abe04
Showing
4 changed files
with
29 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
11 changes: 11 additions & 0 deletions
11
ntc_templates/templates/mikrotik_routeros_routing_ospf_neighbor_print.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,11 @@ | ||
Value NEIGHBOR_ID (\S+) | ||
Value PRIORITY (\d+) | ||
Value STATE (\S+) | ||
Value UP_TIME (\S+) | ||
Value ADDRESS (\S+) | ||
Value INTERFACE (\S+) | ||
|
||
Start | ||
^.*router-id=${NEIGHBOR_ID}.*address=${ADDRESS}.*interface=${INTERFACE}.*priority=${PRIORITY}.*state=\"${STATE}\".*adjacency=${UP_TIME}.*$$ -> Record | ||
^\s*$$ | ||
^. -> Error |
3 changes: 3 additions & 0 deletions
3
...ik_routeros/routing_ospf_neighbor_print/mikrotik_routeros_routing_ospf_neighbor_print.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,3 @@ | ||
0 instance=default router-id=89.188.172.2 address=89.188.172.81 interface=vlan68 priority=128 dr-address=0.0.0.0 backup-dr-address=0.0.0.0 state="Full" state-changes=5 ls-retransmits=0 ls-requests=0 db-summaries=0 adjacency=7w5d8h40m21s | ||
|
||
1 instance=default router-id=89.188.172.3 address=89.188.172.93 interface=vlan71 priority=128 dr-address=0.0.0.0 backup-dr-address=0.0.0.0 state="Full" state-changes=5 ls-retransmits=0 ls-requests=0 db-summaries=0 adjacency=7w5d8h40m21s |
14 changes: 14 additions & 0 deletions
14
...ik_routeros/routing_ospf_neighbor_print/mikrotik_routeros_routing_ospf_neighbor_print.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,14 @@ | ||
--- | ||
parsed_sample: | ||
- address: "89.188.172.81" | ||
interface: "vlan68" | ||
neighbor_id: "89.188.172.2" | ||
priority: "128" | ||
state: "Full" | ||
up_time: "7w5d8h40m21s" | ||
- address: "89.188.172.93" | ||
interface: "vlan71" | ||
neighbor_id: "89.188.172.3" | ||
priority: "128" | ||
state: "Full" | ||
up_time: "7w5d8h40m21s" |