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/isis_topo1/r2/isisd.conf | 17 ++++ tests/topotests/isis_topo1/r2/r2_route.json | 68 +++++++++++++++ tests/topotests/isis_topo1/r2/r2_route6.json | 66 +++++++++++++++ tests/topotests/isis_topo1/r2/r2_route6_linux.json | 14 ++++ tests/topotests/isis_topo1/r2/r2_route_linux.json | 14 ++++ tests/topotests/isis_topo1/r2/r2_topology.json | 96 ++++++++++++++++++++++ tests/topotests/isis_topo1/r2/zebra.conf | 9 ++ 7 files changed, 284 insertions(+) create mode 100644 tests/topotests/isis_topo1/r2/isisd.conf create mode 100644 tests/topotests/isis_topo1/r2/r2_route.json create mode 100644 tests/topotests/isis_topo1/r2/r2_route6.json create mode 100644 tests/topotests/isis_topo1/r2/r2_route6_linux.json create mode 100644 tests/topotests/isis_topo1/r2/r2_route_linux.json create mode 100644 tests/topotests/isis_topo1/r2/r2_topology.json create mode 100644 tests/topotests/isis_topo1/r2/zebra.conf (limited to 'tests/topotests/isis_topo1/r2') diff --git a/tests/topotests/isis_topo1/r2/isisd.conf b/tests/topotests/isis_topo1/r2/isisd.conf new file mode 100644 index 0000000..e8b5789 --- /dev/null +++ b/tests/topotests/isis_topo1/r2/isisd.conf @@ -0,0 +1,17 @@ +hostname r2 +! debug isis adj-packets +! debug isis events +! debug isis update-packets +interface r2-eth0 + ip router isis 1 + isis hello-interval 2 + ipv6 router isis 1 + isis circuit-type level-2-only +! +router isis 1 + lsp-gen-interval 2 + net 10.0000.0000.0000.0000.0000.0000.0000.0000.0001.00 + metric-style wide + redistribute ipv4 connected level-2 + redistribute ipv6 connected level-2 +! diff --git a/tests/topotests/isis_topo1/r2/r2_route.json b/tests/topotests/isis_topo1/r2/r2_route.json new file mode 100644 index 0000000..aab651e --- /dev/null +++ b/tests/topotests/isis_topo1/r2/r2_route.json @@ -0,0 +1,68 @@ +{ + "10.0.11.0/24": [ + { + "distance": 115, + "metric": 10, + "nexthops": [ + { + "active": true, + "afi": "ipv4", + "fib": true, + "interfaceName": "r2-eth0", + "ip": "10.0.21.1" + } + ], + "prefix": "10.0.11.0/24", + "protocol": "isis", + "selected": true + } + ], + "10.0.21.0/24": [ + { + "nexthops": [ + { + "active": true, + "directlyConnected": true, + "fib": true, + "interfaceName": "r2-eth0" + } + ], + "prefix": "10.0.21.0/24", + "protocol": "connected", + "selected": true + } + ], + "10.254.0.2/32": [ + { + "nexthops": [ + { + "active": true, + "directlyConnected": true, + "fib": true, + "interfaceName": "lo" + } + ], + "prefix": "10.254.0.2/32", + "protocol": "connected", + "selected": true + } + ], + "10.254.0.4/32": [ + { + "distance": 115, + "metric": 10, + "nexthops": [ + { + "active": true, + "afi": "ipv4", + "fib": true, + "interfaceName": "r2-eth0", + "ip": "10.0.21.1" + } + ], + "prefix": "10.254.0.4/32", + "protocol": "isis", + "selected": true + } + ] +} diff --git a/tests/topotests/isis_topo1/r2/r2_route6.json b/tests/topotests/isis_topo1/r2/r2_route6.json new file mode 100644 index 0000000..78c31b3 --- /dev/null +++ b/tests/topotests/isis_topo1/r2/r2_route6.json @@ -0,0 +1,66 @@ +{ + "2001:db8:1:2::/64": [ + { + "nexthops": [ + { + "active": true, + "directlyConnected": true, + "fib": true, + "interfaceName": "r2-eth0" + } + ], + "prefix": "2001:db8:1:2::/64", + "protocol": "connected", + "selected": true + } + ], + "2001:db8:2:2::/64": [ + { + "distance": 115, + "metric": 10, + "nexthops": [ + { + "active": true, + "afi": "ipv6", + "fib": true, + "interfaceName": "r2-eth0" + } + ], + "prefix": "2001:db8:2:2::/64", + "protocol": "isis", + "selected": true + } + ], + "2001:db8:f::2/128": [ + { + "nexthops": [ + { + "active": true, + "directlyConnected": true, + "fib": true, + "interfaceName": "lo" + } + ], + "prefix": "2001:db8:f::2/128", + "protocol": "connected", + "selected": true + } + ], + "2001:db8:f::4/128": [ + { + "distance": 115, + "metric": 10, + "nexthops": [ + { + "active": true, + "afi": "ipv6", + "fib": true, + "interfaceName": "r2-eth0" + } + ], + "prefix": "2001:db8:f::4/128", + "protocol": "isis", + "selected": true + } + ] +} diff --git a/tests/topotests/isis_topo1/r2/r2_route6_linux.json b/tests/topotests/isis_topo1/r2/r2_route6_linux.json new file mode 100644 index 0000000..5068861 --- /dev/null +++ b/tests/topotests/isis_topo1/r2/r2_route6_linux.json @@ -0,0 +1,14 @@ +{ + "2001:db8:2:2::/64": { + "dev": "r2-eth0", + "metric": "20", + "pref": "medium", + "proto": "187" + }, + "2001:db8:f::4": { + "dev": "r2-eth0", + "metric": "20", + "pref": "medium", + "proto": "187" + } +} diff --git a/tests/topotests/isis_topo1/r2/r2_route_linux.json b/tests/topotests/isis_topo1/r2/r2_route_linux.json new file mode 100644 index 0000000..dd3035a --- /dev/null +++ b/tests/topotests/isis_topo1/r2/r2_route_linux.json @@ -0,0 +1,14 @@ +{ + "10.0.11.0/24": { + "dev": "r2-eth0", + "metric": "20", + "proto": "187", + "via": "10.0.21.1" + }, + "10.254.0.4": { + "dev": "r2-eth0", + "metric": "20", + "proto": "187", + "via": "10.0.21.1" + } +} diff --git a/tests/topotests/isis_topo1/r2/r2_topology.json b/tests/topotests/isis_topo1/r2/r2_topology.json new file mode 100644 index 0000000..de90fb5 --- /dev/null +++ b/tests/topotests/isis_topo1/r2/r2_topology.json @@ -0,0 +1,96 @@ +{ + "1": { + "level-1": { + "ipv4": [ + { + "vertex": "r2" + } + ], + "ipv6": [ + { + "vertex": "r2" + } + ] + }, + "level-2": { + "ipv4": [ + { + "vertex": "r2" + }, + { + "metric": "0", + "parent": "r2(4)", + "type": "IP internal", + "vertex": "10.0.21.0/24" + }, + { + "interface": "r2-eth0", + "metric": "10", + "next-hop": "r4", + "parent": "r2(4)", + "type": "TE-IS", + "vertex": "r4" + }, + { + "interface": "r2-eth0", + "metric": "10", + "next-hop": "r4", + "parent": "r4(4)", + "type": "IP TE", + "vertex": "10.0.11.0/24" + }, + { + "interface": "r2-eth0", + "metric": "10", + "next-hop": "r4", + "parent": "r4(4)", + "type": "IP TE", + "vertex": "10.0.21.0/24" + }, + { + "interface": "r2-eth0", + "metric": "10", + "next-hop": "r4", + "parent": "r4(4)", + "type": "IP TE", + "vertex": "10.254.0.4/32" + } + ], + "ipv6": [ + { + "vertex": "r2" + }, + { + "metric": "0", + "parent": "r2(4)", + "type": "IP6 internal", + "vertex": "2001:db8:1:2::/64" + }, + { + "interface": "r2-eth0", + "metric": "10", + "next-hop": "r4", + "parent": "r2(4)", + "type": "TE-IS", + "vertex": "r4" + }, + { + "metric": "10", + "interface": "r2-eth0", + "next-hop": "r4", + "parent": "r4(4)", + "type": "IP6 internal", + "vertex": "2001:db8:2:2::/64" + }, + { + "metric": "10", + "interface": "r2-eth0", + "next-hop": "r4", + "parent": "r4(4)", + "type": "IP6 internal", + "vertex": "2001:db8:f::4/128" + } + ] + } + } +} diff --git a/tests/topotests/isis_topo1/r2/zebra.conf b/tests/topotests/isis_topo1/r2/zebra.conf new file mode 100644 index 0000000..cf6f8f6 --- /dev/null +++ b/tests/topotests/isis_topo1/r2/zebra.conf @@ -0,0 +1,9 @@ +hostname r2 +interface r2-eth0 + ip address 10.0.21.2/24 + ipv6 address 2001:db8:1:2::2/64 +! +interface lo + ip address 10.254.0.2/32 + ipv6 address 2001:db8:F::2/128 +! -- cgit v1.2.3