]> git.puffer.fish Git - matthieu/frr.git/commitdiff
tests: Add a couple more static route tests
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 1 Apr 2020 12:56:22 +0000 (08:56 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 8 Apr 2020 13:07:17 +0000 (09:07 -0400)
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>
tests/topotests/all-protocol-startup/r1/ipv4_routes.ref
tests/topotests/all-protocol-startup/r1/zebra.conf

index e13912f109a31b497a2ec5c025617f171f9c71c7..993b4df6a216dc800ac755e3e386d1de53ee5b41 100644 (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
index fbf827604f2f1e43ff6e0d56324d0427e55cb1db..f283590ddf51067bfa6cefc028dfe53469ea9a7e 100644 (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