diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:53:30 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:53:30 +0000 |
commit | 2c7cac91ed6e7db0f6937923d2b57f97dbdbc337 (patch) | |
tree | c05dc0f8e6aa3accc84e3e5cffc933ed94941383 /tests/topotests/isis_topo1/r2 | |
parent | Initial commit. (diff) | |
download | frr-2c7cac91ed6e7db0f6937923d2b57f97dbdbc337.tar.xz frr-2c7cac91ed6e7db0f6937923d2b57f97dbdbc337.zip |
Adding upstream version 8.4.4.upstream/8.4.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/topotests/isis_topo1/r2')
-rw-r--r-- | tests/topotests/isis_topo1/r2/isisd.conf | 17 | ||||
-rw-r--r-- | tests/topotests/isis_topo1/r2/r2_route.json | 68 | ||||
-rw-r--r-- | tests/topotests/isis_topo1/r2/r2_route6.json | 66 | ||||
-rw-r--r-- | tests/topotests/isis_topo1/r2/r2_route6_linux.json | 14 | ||||
-rw-r--r-- | tests/topotests/isis_topo1/r2/r2_route_linux.json | 14 | ||||
-rw-r--r-- | tests/topotests/isis_topo1/r2/r2_topology.json | 96 | ||||
-rw-r--r-- | tests/topotests/isis_topo1/r2/zebra.conf | 9 |
7 files changed, 284 insertions, 0 deletions
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 +! |