From 2c7cac91ed6e7db0f6937923d2b57f97dbdbc337 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 11:53:30 +0200 Subject: Adding upstream version 8.4.4. Signed-off-by: Daniel Baumann --- tests/topotests/bfd_topo1/r3/bfdd.conf | 12 ++++++ tests/topotests/bfd_topo1/r3/bgp_prefixes.json | 52 ++++++++++++++++++++++++++ tests/topotests/bfd_topo1/r3/bgp_summary.json | 11 ++++++ tests/topotests/bfd_topo1/r3/bgpd.conf | 10 +++++ tests/topotests/bfd_topo1/r3/peers.json | 6 +++ tests/topotests/bfd_topo1/r3/zebra.conf | 3 ++ 6 files changed, 94 insertions(+) create mode 100644 tests/topotests/bfd_topo1/r3/bfdd.conf create mode 100644 tests/topotests/bfd_topo1/r3/bgp_prefixes.json create mode 100644 tests/topotests/bfd_topo1/r3/bgp_summary.json create mode 100644 tests/topotests/bfd_topo1/r3/bgpd.conf create mode 100644 tests/topotests/bfd_topo1/r3/peers.json create mode 100644 tests/topotests/bfd_topo1/r3/zebra.conf (limited to 'tests/topotests/bfd_topo1/r3') diff --git a/tests/topotests/bfd_topo1/r3/bfdd.conf b/tests/topotests/bfd_topo1/r3/bfdd.conf new file mode 100644 index 0000000..e091a1c --- /dev/null +++ b/tests/topotests/bfd_topo1/r3/bfdd.conf @@ -0,0 +1,12 @@ +! +! debug bfd network +! debug bfd peer +! debug bfd zebra +! +bfd + peer 192.168.1.2 + echo-interval 100 + echo-mode + no shutdown + ! +! diff --git a/tests/topotests/bfd_topo1/r3/bgp_prefixes.json b/tests/topotests/bfd_topo1/r3/bgp_prefixes.json new file mode 100644 index 0000000..36fca17 --- /dev/null +++ b/tests/topotests/bfd_topo1/r3/bgp_prefixes.json @@ -0,0 +1,52 @@ +{ + "routes": { + "10.254.254.1/32": [ + { + "path": "102 101", + "prefix": "10.254.254.1", + "valid": true, + "peerId": "192.168.1.2", + "prefixLen": 32, + "nexthops": [ + { + "ip": "192.168.1.2", + "used": true, + "afi": "ipv4" + } + ] + } + ], + "10.254.254.2/32": [ + { + "path": "102", + "prefix": "10.254.254.2", + "valid": true, + "peerId": "192.168.1.2", + "prefixLen": 32, + "nexthops": [ + { + "ip": "192.168.1.2", + "used": true, + "afi": "ipv4" + } + ] + } + ], + "10.254.254.4/32": [ + { + "path": "102 104", + "prefix": "10.254.254.4", + "valid": true, + "peerId": "192.168.1.2", + "prefixLen": 32, + "nexthops": [ + { + "ip": "192.168.1.2", + "used": true, + "afi": "ipv4" + } + ] + } + ] + } +} diff --git a/tests/topotests/bfd_topo1/r3/bgp_summary.json b/tests/topotests/bfd_topo1/r3/bgp_summary.json new file mode 100644 index 0000000..d478333 --- /dev/null +++ b/tests/topotests/bfd_topo1/r3/bgp_summary.json @@ -0,0 +1,11 @@ +{ + "ipv4Unicast": { + "as": 103, + "peers": { + "192.168.1.2": { + "remoteAs": 102, + "state": "Established" + } + } + } +} diff --git a/tests/topotests/bfd_topo1/r3/bgpd.conf b/tests/topotests/bfd_topo1/r3/bgpd.conf new file mode 100644 index 0000000..ce6055d --- /dev/null +++ b/tests/topotests/bfd_topo1/r3/bgpd.conf @@ -0,0 +1,10 @@ +router bgp 103 + no bgp ebgp-requires-policy + no bgp network import-check + neighbor 192.168.1.2 remote-as 102 + neighbor 192.168.1.2 timers 3 10 + neighbor 192.168.1.2 bfd + address-family ipv4 unicast + network 10.254.254.3/32 + exit-address-family +! diff --git a/tests/topotests/bfd_topo1/r3/peers.json b/tests/topotests/bfd_topo1/r3/peers.json new file mode 100644 index 0000000..ef38008 --- /dev/null +++ b/tests/topotests/bfd_topo1/r3/peers.json @@ -0,0 +1,6 @@ +[ + { + "peer": "192.168.1.2", + "status": "up" + } +] diff --git a/tests/topotests/bfd_topo1/r3/zebra.conf b/tests/topotests/bfd_topo1/r3/zebra.conf new file mode 100644 index 0000000..b4fd80f --- /dev/null +++ b/tests/topotests/bfd_topo1/r3/zebra.conf @@ -0,0 +1,3 @@ +interface r3-eth0 + ip address 192.168.1.1/24 +! -- cgit v1.2.3