diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-04-01 14:56:22 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-04-08 15:07:17 +0200 |
commit | 337dcbb9132910550a0700ce65b0363b0496520a (patch) | |
tree | 4d08efa598568a9af6334f6ff9fd2380c49b501e /tests | |
parent | Merge pull request #6166 from volta-networks/fix_isis_lsp_timers (diff) | |
download | frr-337dcbb9132910550a0700ce65b0363b0496520a.tar.xz frr-337dcbb9132910550a0700ce65b0363b0496520a.zip |
tests: Add a couple more static route tests
Add a couple more tests to static route installation
Do some very very basic work to make sure that they are working
the way we want.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/topotests/all-protocol-startup/r1/ipv4_routes.ref | 3 | ||||
-rw-r--r-- | tests/topotests/all-protocol-startup/r1/zebra.conf | 11 |
2 files changed, 13 insertions, 1 deletions
diff --git a/tests/topotests/all-protocol-startup/r1/ipv4_routes.ref b/tests/topotests/all-protocol-startup/r1/ipv4_routes.ref index e13912f10..993b4df6a 100644 --- a/tests/topotests/all-protocol-startup/r1/ipv4_routes.ref +++ b/tests/topotests/all-protocol-startup/r1/ipv4_routes.ref @@ -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 diff --git a/tests/topotests/all-protocol-startup/r1/zebra.conf b/tests/topotests/all-protocol-startup/r1/zebra.conf index fbf827604..f283590dd 100644 --- a/tests/topotests/all-protocol-startup/r1/zebra.conf +++ b/tests/topotests/all-protocol-startup/r1/zebra.conf @@ -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 |