diff options
Diffstat (limited to 'tests/topotests/nhrp_topo/r2')
-rw-r--r-- | tests/topotests/nhrp_topo/r2/nhrp4_cache.json | 29 | ||||
-rw-r--r-- | tests/topotests/nhrp_topo/r2/nhrp_route4.json | 25 | ||||
-rw-r--r-- | tests/topotests/nhrp_topo/r2/nhrpd.conf | 10 | ||||
-rw-r--r-- | tests/topotests/nhrp_topo/r2/zebra.conf | 12 |
4 files changed, 76 insertions, 0 deletions
diff --git a/tests/topotests/nhrp_topo/r2/nhrp4_cache.json b/tests/topotests/nhrp_topo/r2/nhrp4_cache.json new file mode 100644 index 0000000..34558e0 --- /dev/null +++ b/tests/topotests/nhrp_topo/r2/nhrp4_cache.json @@ -0,0 +1,29 @@ +{ + "attr":{ + "entriesCount":2 + }, + "table":[ + { + "interface":"r2-gre0", + "type":"local", + "protocol":"10.255.255.2", + "nbma":"10.2.1.2", + "claimed_nbma":"10.2.1.2", + "used":false, + "timeout":false, + "auth":false, + "identity":"-" + }, + { + "interface":"r2-gre0", + "type":"dynamic", + "protocol":"10.255.255.1", + "nbma":"10.1.1.1", + "claimed_nbma":"10.1.1.1", + "used":false, + "timeout":true, + "auth":false, + "identity":"" + } + ] +} diff --git a/tests/topotests/nhrp_topo/r2/nhrp_route4.json b/tests/topotests/nhrp_topo/r2/nhrp_route4.json new file mode 100644 index 0000000..7393cba --- /dev/null +++ b/tests/topotests/nhrp_topo/r2/nhrp_route4.json @@ -0,0 +1,25 @@ +{ + "10.255.255.1\/32":[ + { + "prefix":"10.255.255.1\/32", + "protocol":"nhrp", + "vrfId":0, + "vrfName":"default", + "selected":true, + "destSelected":true, + "distance":10, + "metric":0, + "installed":true, + "internalNextHopNum":1, + "internalNextHopActiveNum":1, + "nexthops":[ + { + "fib":true, + "directlyConnected":true, + "interfaceName":"r2-gre0", + "active":true + } + ] + } + ] +} diff --git a/tests/topotests/nhrp_topo/r2/nhrpd.conf b/tests/topotests/nhrp_topo/r2/nhrpd.conf new file mode 100644 index 0000000..f9185f9 --- /dev/null +++ b/tests/topotests/nhrp_topo/r2/nhrpd.conf @@ -0,0 +1,10 @@ +! debug nhrp all +log stdout debugging +nhrp nflog-group 1 +interface r2-gre0 + ip nhrp holdtime 500 + ip nhrp redirect + ip nhrp network-id 42 + ip nhrp registration no-unique + tunnel source r2-eth0 +exit diff --git a/tests/topotests/nhrp_topo/r2/zebra.conf b/tests/topotests/nhrp_topo/r2/zebra.conf new file mode 100644 index 0000000..9f40d4d --- /dev/null +++ b/tests/topotests/nhrp_topo/r2/zebra.conf @@ -0,0 +1,12 @@ +interface r2-eth0 + ip address 10.2.1.2/24 +! +ip route 10.1.1.0/24 10.2.1.3 +interface r2-gre0 + ip address 10.255.255.2/32 + no link-detect + ipv6 nd suppress-ra +! +interface r2-eth1 + ip address 192.168.2.2/24 +! |