diff options
Diffstat (limited to 'tests/topotests/bfd_vrf_topo1/r2')
-rw-r--r-- | tests/topotests/bfd_vrf_topo1/r2/bfdd.conf | 23 | ||||
-rw-r--r-- | tests/topotests/bfd_vrf_topo1/r2/bgp_prefixes.json | 52 | ||||
-rw-r--r-- | tests/topotests/bfd_vrf_topo1/r2/bgp_summary.json | 19 | ||||
-rw-r--r-- | tests/topotests/bfd_vrf_topo1/r2/bgpd.conf | 16 | ||||
-rw-r--r-- | tests/topotests/bfd_vrf_topo1/r2/peers.json | 17 | ||||
-rw-r--r-- | tests/topotests/bfd_vrf_topo1/r2/zebra.conf | 9 |
6 files changed, 136 insertions, 0 deletions
diff --git a/tests/topotests/bfd_vrf_topo1/r2/bfdd.conf b/tests/topotests/bfd_vrf_topo1/r2/bfdd.conf new file mode 100644 index 0000000..69edd15 --- /dev/null +++ b/tests/topotests/bfd_vrf_topo1/r2/bfdd.conf @@ -0,0 +1,23 @@ +! +! debug bfd network +! debug bfd peer +! debug bfd zebra +! +bfd + peer 192.168.0.1 vrf r2-bfd-cust1 + receive-interval 1000 + transmit-interval 1000 + echo-mode + echo transmit-interval 1000 + echo receive-interval 1000 + no shutdown + ! + peer 192.168.1.1 vrf r2-bfd-cust1 + receive-interval 1000 + transmit-interval 1000 + echo-mode + echo transmit-interval 1000 + echo receive-interval 1000 + no shutdown + ! +! diff --git a/tests/topotests/bfd_vrf_topo1/r2/bgp_prefixes.json b/tests/topotests/bfd_vrf_topo1/r2/bgp_prefixes.json new file mode 100644 index 0000000..0d47c0f --- /dev/null +++ b/tests/topotests/bfd_vrf_topo1/r2/bgp_prefixes.json @@ -0,0 +1,52 @@ +{ + "routes": { + "10.254.254.1/32": [ + { + "path": "101", + "prefix": "10.254.254.1", + "valid": true, + "peerId": "192.168.0.1", + "prefixLen": 32, + "nexthops": [ + { + "ip": "192.168.0.1", + "used": true, + "afi": "ipv4" + } + ] + } + ], + "10.254.254.3/32": [ + { + "path": "103", + "prefix": "10.254.254.3", + "valid": true, + "peerId": "192.168.1.1", + "prefixLen": 32, + "nexthops": [ + { + "ip": "192.168.1.1", + "used": true, + "afi": "ipv4" + } + ] + } + ], + "10.254.254.4/32": [ + { + "path": "104", + "prefix": "10.254.254.4", + "valid": true, + "peerId": "192.168.2.1", + "prefixLen": 32, + "nexthops": [ + { + "ip": "192.168.2.1", + "used": true, + "afi": "ipv4" + } + ] + } + ] + } +} diff --git a/tests/topotests/bfd_vrf_topo1/r2/bgp_summary.json b/tests/topotests/bfd_vrf_topo1/r2/bgp_summary.json new file mode 100644 index 0000000..c0ef11a --- /dev/null +++ b/tests/topotests/bfd_vrf_topo1/r2/bgp_summary.json @@ -0,0 +1,19 @@ +{ + "ipv4Unicast": { + "as": 102, + "peers": { + "192.168.0.1": { + "remoteAs": 101, + "state": "Established" + }, + "192.168.1.1": { + "remoteAs": 103, + "state": "Established" + }, + "192.168.2.1": { + "remoteAs": 104, + "state": "Established" + } + } + } +} diff --git a/tests/topotests/bfd_vrf_topo1/r2/bgpd.conf b/tests/topotests/bfd_vrf_topo1/r2/bgpd.conf new file mode 100644 index 0000000..132011c --- /dev/null +++ b/tests/topotests/bfd_vrf_topo1/r2/bgpd.conf @@ -0,0 +1,16 @@ +router bgp 102 vrf r2-bfd-cust1 + no bgp ebgp-requires-policy + no bgp network import-check + neighbor 192.168.0.1 remote-as 101 + neighbor 192.168.0.1 timers 3 10 + neighbor 192.168.0.1 bfd + neighbor 192.168.1.1 remote-as 103 + neighbor 192.168.1.1 timers 3 10 + neighbor 192.168.1.1 bfd + neighbor 192.168.2.1 remote-as 104 + neighbor 192.168.2.1 timers 3 10 + neighbor 192.168.2.1 bfd + address-family ipv4 unicast + network 10.254.254.2/32 + exit-address-family +! diff --git a/tests/topotests/bfd_vrf_topo1/r2/peers.json b/tests/topotests/bfd_vrf_topo1/r2/peers.json new file mode 100644 index 0000000..0a1c342 --- /dev/null +++ b/tests/topotests/bfd_vrf_topo1/r2/peers.json @@ -0,0 +1,17 @@ +[ + { + "peer": "192.168.0.1", + "status": "up" + }, + { + "remote-echo-receive-interval": 1000, + "peer": "192.168.1.1", + "status": "up" + }, + { + "remote-transmit-interval": 2000, + "remote-receive-interval": 2000, + "peer": "192.168.2.1", + "status": "up" + } +] diff --git a/tests/topotests/bfd_vrf_topo1/r2/zebra.conf b/tests/topotests/bfd_vrf_topo1/r2/zebra.conf new file mode 100644 index 0000000..1e817b1 --- /dev/null +++ b/tests/topotests/bfd_vrf_topo1/r2/zebra.conf @@ -0,0 +1,9 @@ +interface r2-eth0 vrf r2-bfd-cust1 + ip address 192.168.0.2/24 +! +interface r2-eth1 vrf r2-bfd-cust1 + ip address 192.168.1.2/24 +! +interface r2-eth2 vrf r2-bfd-cust1 + ip address 192.168.2.2/24 +! |