diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-08-21 17:44:48 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-08-21 17:44:48 +0200 |
commit | a7e52bd7b66b354967f4de71273ac2599c2a1157 (patch) | |
tree | 2712c96e59e5665cca1a5bc74d71749838899e6e /tests | |
parent | Merge pull request #4835 from vishaldhingra/ipv4_linklocal (diff) | |
download | frr-a7e52bd7b66b354967f4de71273ac2599c2a1157.tar.xz frr-a7e52bd7b66b354967f4de71273ac2599c2a1157.zip |
tests: Add a couple simple Null0 spelling tests
Add a bit of code to test different spelling of Null0 routes.
This was broken at some point in the past and with recent
changes is working again, but it would be nice to
know when this breaks again.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/topotests/all-protocol-startup/r1/ipv4_routes.ref | 2 | ||||
-rw-r--r-- | tests/topotests/all-protocol-startup/r1/zebra.conf | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/topotests/all-protocol-startup/r1/ipv4_routes.ref b/tests/topotests/all-protocol-startup/r1/ipv4_routes.ref index 1fb70a0e2..0a2023137 100644 --- a/tests/topotests/all-protocol-startup/r1/ipv4_routes.ref +++ b/tests/topotests/all-protocol-startup/r1/ipv4_routes.ref @@ -13,6 +13,8 @@ O 192.168.3.0/26 [110/10] is directly connected, r1-eth3, XX:XX:XX S>* 4.5.6.10/32 [1/0] via 192.168.0.2, r1-eth0, XX:XX:XX S>* 4.5.6.11/32 [1/0] via 192.168.0.2, r1-eth0, XX:XX:XX S>* 4.5.6.12/32 [1/0] is directly connected, r1-eth0, XX:XX:XX +S>* 4.5.6.13/32 [1/0] unreachable (blackhole), XX:XX:XX +S>* 4.5.6.14/32 [1/0] unreachable (blackhole), XX:XX:XX S>* 4.5.6.7/32 [1/0] unreachable (blackhole), XX:XX:XX S>* 4.5.6.8/32 [1/0] unreachable (blackhole), XX:XX:XX S>* 4.5.6.9/32 [1/0] unreachable (ICMP unreachable), XX:XX:XX diff --git a/tests/topotests/all-protocol-startup/r1/zebra.conf b/tests/topotests/all-protocol-startup/r1/zebra.conf index 30e05f01e..c621593ef 100644 --- a/tests/topotests/all-protocol-startup/r1/zebra.conf +++ b/tests/topotests/all-protocol-startup/r1/zebra.conf @@ -9,6 +9,9 @@ ip route 4.5.6.8/32 Null0 ipv6 route 4:5::6:8/128 Null0 ip route 4.5.6.9/32 reject ipv6 route 4:5::6:9/128 reject +# Test various spellings of NULL0 to make sure we accept them +ip route 4.5.6.13/32 null0 +ip route 4.5.6.14/32 NULL0 # Create normal gateway routes ip route 4.5.6.10/32 192.168.0.2 ipv6 route 4:5::6:10/128 fc00:0:0:0::2 |