-
Notifications
You must be signed in to change notification settings - Fork 743
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ubiquiti): add show ipv6 route template
- Loading branch information
1 parent
8eb554c
commit 8260fc7
Showing
4 changed files
with
82 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
16 changes: 16 additions & 0 deletions
16
ntc_templates/templates/ubiquiti_edgerouter_show_ipv6_route.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,16 @@ | ||
Value Filldown CODE (\w{1,2}) | ||
Value IP ([A-Za-z0-9:]+) | ||
Value PREFIX_LENGTH (\d{1,3}) | ||
Value DISTANCE (\d+) | ||
Value METRIC (\d+) | ||
Value NEXTHOP_IP ([A-F0-9:]+) | ||
Value INTERFACE (\w+) | ||
Value UPTIME (\d[\w:\.]+) | ||
|
||
Start | ||
^${CODE}\s+${IP}/${PREFIX_LENGTH}\s\[${DISTANCE}/${METRIC}\]\svia\s${NEXTHOP_IP},\s${INTERFACE},\s${UPTIME}\s* -> Record | ||
^${CODE}\s+${IP}/${PREFIX_LENGTH}\svia\s${NEXTHOP_IP},\s${INTERFACE},\s${UPTIME}\s* -> Record | ||
^\s* -> Clearall | ||
^. -> Error | ||
|
||
EOF |
15 changes: 15 additions & 0 deletions
15
tests/ubiquiti_edgerouter/show_ipv6_route/ubiquiti_edgerouter_show_ipv6_route.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,15 @@ | ||
IPv6 Routing Table | ||
Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF, | ||
IA - OSPF inter area, E1 - OSPF external type 1, | ||
E2 - OSPF external type 2, N1 - OSPF NSSA external type 1, | ||
N2 - OSPF NSSA external type 2, B - BGP | ||
Timers: Uptime | ||
|
||
IP Route Table for VRF "default" | ||
S ::/0 [50/0] via ::, pppoe4, 01w0d05h | ||
C ::1/128 via ::, lo, 01w0d05h | ||
C 2a05:b780:0:1d::/64 via ::, pppoe4, 01w0d05h | ||
C 2a05:c100:1d::/64 via ::, eth1, 01:11:26 | ||
C fe80::/10 via ::, pppoe4, 01w0d05h | ||
C fe80::/64 via ::, eth1, 01:11:25 | ||
|
50 changes: 50 additions & 0 deletions
50
tests/ubiquiti_edgerouter/show_ipv6_route/ubiquiti_edgerouter_show_ipv6_route.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,50 @@ | ||
--- | ||
parsed_sample: | ||
- code: "S" | ||
ip: "::" | ||
prefix_length: "0" | ||
distance: "50" | ||
metric: "0" | ||
nexthop_ip: "::" | ||
interface: "pppoe4" | ||
uptime: "01w0d05h" | ||
- code: "C" | ||
ip: "::1" | ||
prefix_length: "128" | ||
distance: "" | ||
metric: "" | ||
nexthop_ip: "::" | ||
interface: "lo" | ||
uptime: "01w0d05h" | ||
- code: "C" | ||
ip: "2a05:b780:0:1d::" | ||
prefix_length: "64" | ||
distance: "" | ||
metric: "" | ||
nexthop_ip: "::" | ||
interface: "pppoe4" | ||
uptime: "01w0d05h" | ||
- code: "C" | ||
ip: "2a05:c100:1d::" | ||
prefix_length: "64" | ||
distance: "" | ||
metric: "" | ||
nexthop_ip: "::" | ||
interface: "eth1" | ||
uptime: "01:11:26" | ||
- code: "C" | ||
ip: "fe80::" | ||
prefix_length: "10" | ||
distance: "" | ||
metric: "" | ||
nexthop_ip: "::" | ||
interface: "pppoe4" | ||
uptime: "01w0d05h" | ||
- code: "C" | ||
ip: "fe80::" | ||
prefix_length: "64" | ||
distance: "" | ||
metric: "" | ||
nexthop_ip: "::" | ||
interface: "eth1" | ||
uptime: "01:11:25" |