summaryrefslogtreecommitdiffstats
path: root/tests/topotests/eigrp_topo1/r1
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 09:53:30 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 09:53:30 +0000
commit2c7cac91ed6e7db0f6937923d2b57f97dbdbc337 (patch)
treec05dc0f8e6aa3accc84e3e5cffc933ed94941383 /tests/topotests/eigrp_topo1/r1
parentInitial commit. (diff)
downloadfrr-upstream.tar.xz
frr-upstream.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/eigrp_topo1/r1')
-rw-r--r--tests/topotests/eigrp_topo1/r1/eigrpd.conf8
-rw-r--r--tests/topotests/eigrp_topo1/r1/show_ip_eigrp.json32
-rw-r--r--tests/topotests/eigrp_topo1/r1/show_ip_eigrp.ref14
-rw-r--r--tests/topotests/eigrp_topo1/r1/show_ip_route.json_ref90
-rw-r--r--tests/topotests/eigrp_topo1/r1/zebra.conf20
5 files changed, 164 insertions, 0 deletions
diff --git a/tests/topotests/eigrp_topo1/r1/eigrpd.conf b/tests/topotests/eigrp_topo1/r1/eigrpd.conf
new file mode 100644
index 0000000..6c800ab
--- /dev/null
+++ b/tests/topotests/eigrp_topo1/r1/eigrpd.conf
@@ -0,0 +1,8 @@
+log file eigrpd.log
+!
+router eigrp 1
+ network 0.0.0.0/0
+!
+line vty
+!
+
diff --git a/tests/topotests/eigrp_topo1/r1/show_ip_eigrp.json b/tests/topotests/eigrp_topo1/r1/show_ip_eigrp.json
new file mode 100644
index 0000000..be0fdcf
--- /dev/null
+++ b/tests/topotests/eigrp_topo1/r1/show_ip_eigrp.json
@@ -0,0 +1,32 @@
+{
+ "P": {
+ "192.168.1.0/24": {
+ "fd": "28160",
+ "interface": " r1-eth0",
+ "serno": "0",
+ "successors": "1",
+ "via": "Connected"
+ },
+ "192.168.3.0/24": {
+ "fd": "33280",
+ "interface": " r1-eth1",
+ "serno": "0",
+ "successors": "1",
+ "via": "193.1.1.2 (33280/30720)"
+ },
+ "193.1.1.0/26": {
+ "fd": "28160",
+ "interface": " r1-eth1",
+ "serno": "0",
+ "successors": "1",
+ "via": "Connected"
+ },
+ "193.1.2.0/24": {
+ "fd": "30720",
+ "interface": " r1-eth1",
+ "serno": "0",
+ "successors": "1",
+ "via": "193.1.1.2 (30720/28160)"
+ }
+ }
+}
diff --git a/tests/topotests/eigrp_topo1/r1/show_ip_eigrp.ref b/tests/topotests/eigrp_topo1/r1/show_ip_eigrp.ref
new file mode 100644
index 0000000..a2d7b33
--- /dev/null
+++ b/tests/topotests/eigrp_topo1/r1/show_ip_eigrp.ref
@@ -0,0 +1,14 @@
+
+EIGRP Topology Table for AS(1)/ID(193.1.1.1)
+
+Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply
+ r - reply Status, s - sia Status
+
+P 193.1.1.0/26, 1 successors, FD is 28160, serno: 0
+ via Connected, r1-eth1
+P 192.168.1.0/24, 1 successors, FD is 28160, serno: 0
+ via Connected, r1-eth0
+P 193.1.2.0/24, 1 successors, FD is 30720, serno: 0
+ via 193.1.1.2 (30720/28160), r1-eth1
+P 192.168.3.0/24, 1 successors, FD is 33280, serno: 0
+ via 193.1.1.2 (33280/30720), r1-eth1
diff --git a/tests/topotests/eigrp_topo1/r1/show_ip_route.json_ref b/tests/topotests/eigrp_topo1/r1/show_ip_route.json_ref
new file mode 100644
index 0000000..26fa7ca
--- /dev/null
+++ b/tests/topotests/eigrp_topo1/r1/show_ip_route.json_ref
@@ -0,0 +1,90 @@
+{
+ "192.168.1.0/24":[
+ {
+ "prefix":"192.168.1.0/24",
+ "protocol":"eigrp",
+ "metric":28160,
+ "nexthops":[
+ {
+ "directlyConnected":true,
+ "interfaceName":"r1-eth0",
+ "active":true
+ }
+ ]
+ },
+ {
+ "prefix":"192.168.1.0/24",
+ "protocol":"connected",
+ "selected":true,
+ "nexthops":[
+ {
+ "fib":true,
+ "directlyConnected":true,
+ "interfaceName":"r1-eth0",
+ "active":true
+ }
+ ]
+ }
+ ],
+ "192.168.3.0/24":[
+ {
+ "prefix":"192.168.3.0/24",
+ "protocol":"eigrp",
+ "selected":true,
+ "metric":33280,
+ "nexthops":[
+ {
+ "fib":true,
+ "ip":"193.1.1.2",
+ "afi":"ipv4",
+ "interfaceName":"r1-eth1",
+ "active":true
+ }
+ ]
+ }
+ ],
+ "193.1.1.0/26":[
+ {
+ "prefix":"193.1.1.0/26",
+ "protocol":"eigrp",
+ "metric":28160,
+ "nexthops":[
+ {
+ "directlyConnected":true,
+ "interfaceName":"r1-eth1",
+ "active":true
+ }
+ ]
+ },
+ {
+ "prefix":"193.1.1.0/26",
+ "protocol":"connected",
+ "selected":true,
+ "nexthops":[
+ {
+ "fib":true,
+ "directlyConnected":true,
+ "interfaceName":"r1-eth1",
+ "active":true
+ }
+ ]
+ }
+ ],
+ "193.1.2.0/24":[
+ {
+ "prefix":"193.1.2.0/24",
+ "protocol":"eigrp",
+ "selected":true,
+ "metric":30720,
+ "nexthops":[
+ {
+ "fib":true,
+ "ip":"193.1.1.2",
+ "afi":"ipv4",
+ "interfaceName":"r1-eth1",
+ "active":true
+ }
+ ]
+ }
+ ]
+}
diff --git a/tests/topotests/eigrp_topo1/r1/zebra.conf b/tests/topotests/eigrp_topo1/r1/zebra.conf
new file mode 100644
index 0000000..51579a7
--- /dev/null
+++ b/tests/topotests/eigrp_topo1/r1/zebra.conf
@@ -0,0 +1,20 @@
+log file zebra.log
+! debug zebra rib detail
+!
+hostname r1
+!
+interface r1-eth0
+ ip address 192.168.1.1/24
+!
+interface r1-eth1
+ description to sw2 - RIPv2 interface
+ ip address 193.1.1.1/26
+ no link-detect
+!
+ip forwarding
+ipv6 forwarding
+!
+!
+line vty
+!
+