-
Notifications
You must be signed in to change notification settings - Fork 726
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Corrected Ubiquiti EdgeRouter show_ip_route template (#1895)
- Loading branch information
Showing
3 changed files
with
79 additions
and
5 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
15 changes: 15 additions & 0 deletions
15
tests/ubiquiti_edgerouter/show_ip_route/ubiquiti_edgerouter_show_ip_route2.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 @@ | ||
Codes: K - kernel, C - connected, S - static, R - RIP, B - BGP | ||
O - OSPF, IA - OSPF inter area | ||
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 | ||
E1 - OSPF external type 1, E2 - OSPF external type 2 | ||
> - selected route, * - FIB route, p - stale info | ||
|
||
IP Route Table for VRF "default" | ||
S *> 0.0.0.0/0 [50/0] via 100.100.34.45, eth9 | ||
C *> 100.100.34.44/30 is directly connected, eth9 | ||
B *> 100.100.34.48/30 [20/0] via 100.100.34.45, eth9, 1d05h38m | ||
C *> 127.0.0.0/8 is directly connected, lo | ||
B *> 192.168.2.0/24 [20/0] via 100.100.34.45, eth9, 01:16:38 | ||
C *> 192.168.6.0/24 is directly connected, switch0.1 | ||
C 192.168.6.0/24 is directly connected, switch0.1 | ||
B *> 100.100.34.32/30 [20/0] via 100.100.34.45, eth9, 03w0d00h |
58 changes: 58 additions & 0 deletions
58
tests/ubiquiti_edgerouter/show_ip_route/ubiquiti_edgerouter_show_ip_route2.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,58 @@ | ||
--- | ||
parsed_sample: | ||
- code: "S" | ||
distance: "50" | ||
interface: "eth9" | ||
ip_address: "0.0.0.0" | ||
metric: "0" | ||
nexthop_ip: "100.100.34.45" | ||
prefix_length: "0" | ||
- code: "C" | ||
distance: "" | ||
interface: "eth9" | ||
ip_address: "100.100.34.44" | ||
metric: "" | ||
nexthop_ip: "" | ||
prefix_length: "30" | ||
- code: "B" | ||
distance: "20" | ||
interface: "eth9" | ||
ip_address: "100.100.34.48" | ||
metric: "0" | ||
nexthop_ip: "100.100.34.45" | ||
prefix_length: "30" | ||
- code: "C" | ||
distance: "" | ||
interface: "lo" | ||
ip_address: "127.0.0.0" | ||
metric: "" | ||
nexthop_ip: "" | ||
prefix_length: "8" | ||
- code: "B" | ||
distance: "20" | ||
interface: "eth9" | ||
ip_address: "192.168.2.0" | ||
metric: "0" | ||
nexthop_ip: "100.100.34.45" | ||
prefix_length: "24" | ||
- code: "C" | ||
distance: "" | ||
interface: "switch0" | ||
ip_address: "192.168.6.0" | ||
metric: "" | ||
nexthop_ip: "" | ||
prefix_length: "24" | ||
- code: "C" | ||
distance: "" | ||
interface: "switch0" | ||
ip_address: "192.168.6.0" | ||
metric: "" | ||
nexthop_ip: "" | ||
prefix_length: "24" | ||
- code: "B" | ||
distance: "20" | ||
interface: "eth9" | ||
ip_address: "100.100.34.32" | ||
metric: "0" | ||
nexthop_ip: "100.100.34.45" | ||
prefix_length: "30" |