Merge pull request #6128 from donaldsharp/more_static_routes_tests

tests: Add a couple more static route tests
This commit is contained in:
Renato Westphal 2020-04-08 11:59:15 -03:00 committed by GitHub
commit d50b4fe718
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View File

@ -18,6 +18,9 @@ S>* 4.5.6.12/32 [1/0] is directly connected, r1-eth0, weight 1, XX:XX:XX
S>* 4.5.6.13/32 [1/0] unreachable (blackhole), weight 1, XX:XX:XX
S>* 4.5.6.14/32 [1/0] unreachable (blackhole), weight 1, XX:XX:XX
S 4.5.6.15/32 [255/0] via 192.168.0.2, r1-eth0, weight 1, XX:XX:XX
S 4.5.6.16/32 [10/0] via 192.168.0.4, r1-eth0, weight 1, XX:XX:XX
S>* 4.5.6.16/32 [5/0] via 192.168.0.2, r1-eth0, weight 1, XX:XX:XX
S>* 4.5.6.17/32 [1/0] via 192.168.0.2, r1-eth0, weight 1, XX:XX:XX
S>* 4.5.6.7/32 [1/0] unreachable (blackhole), weight 1, XX:XX:XX
S>* 4.5.6.8/32 [1/0] unreachable (blackhole), weight 1, XX:XX:XX
S>* 4.5.6.9/32 [1/0] unreachable (ICMP unreachable), weight 1, XX:XX:XX

View File

@ -26,11 +26,20 @@ ipv6 route 4:5::6:12/128 r1-eth0
# by zebra but not installed.
ip route 4.5.6.15/32 192.168.0.2 255
ipv6 route 4:5::6:15/128 fc00:0:0:0::2 255
# Routes to put into a nexthop-group
ip route 1.1.1.1/32 r1-eth0
ip route 1.1.1.2/32 r1-eth1
# Create a route that has overlapping distance
# so we have backups
ip route 4.5.6.16/32 192.168.0.2 5
ip route 4.5.6.16/32 192.168.0.4 10
# Create routes that have different tags
# and how we handle it
ip route 4.5.6.17/32 192.168.0.2 tag 9000
ip route 4.5.6.17/32 192.168.0.2 tag 10000
!
interface r1-eth0
description to sw0 - no routing protocol