]> git.proxmox.com Git - mirror_frr.git/commitdiff
isis-topo1: make isis topology match .dot file
authorMark Stapp <mjs@voltanet.io>
Tue, 24 Jul 2018 20:49:46 +0000 (16:49 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 28 Nov 2018 01:22:14 +0000 (20:22 -0500)
The v6 isis topology didn't really match the illustration. Fix
the configs and the test expectations so that all the parts
agree.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
tests/topotests/isis-topo1/r3/r3_route6.json
tests/topotests/isis-topo1/r3/zebra.conf
tests/topotests/isis-topo1/r4/r4_route6.json
tests/topotests/isis-topo1/r4/r4_topology.json
tests/topotests/isis-topo1/r5/r5_route6.json
tests/topotests/isis-topo1/r5/r5_route6_linux.json
tests/topotests/isis-topo1/r5/zebra.conf

index 3b9605bd249ab1322ed8644f15a48e59ccd258b5..7bb2be0aef58069dedd11e203efe7ea01e131b20 100644 (file)
@@ -1,27 +1,13 @@
 {
   "2001:db8:1:1::/64": [
-    {
-      "distance": 115,
-      "metric": 10,
-      "nexthops": [
-        {
-          "active": true,
-          "afi": "ipv6",
-          "interfaceIndex": 2,
-          "interfaceName": "r3-eth0"
-        }
-      ],
-      "prefix": "2001:db8:1:1::/64",
-      "protocol": "isis"
-    },
     {
       "nexthops": [
         {
           "active": true,
           "directlyConnected": true,
           "fib": true,
-          "interfaceIndex": 3,
-          "interfaceName": "r3-eth1"
+          "interfaceIndex": 2,
+          "interfaceName": "r3-eth0"
         }
       ],
       "prefix": "2001:db8:1:1::/64",
@@ -32,7 +18,7 @@
   "2001:db8:1:2::/64": [
     {
       "distance": 115,
-      "metric": 10,
+      "metric": 20,
       "nexthops": [
         {
           "active": true,
@@ -54,8 +40,8 @@
           "active": true,
           "directlyConnected": true,
           "fib": true,
-          "interfaceIndex": 2,
-          "interfaceName": "r3-eth0"
+          "interfaceIndex": 3,
+          "interfaceName": "r3-eth1"
         }
       ],
       "prefix": "2001:db8:2:1::/64",
@@ -66,7 +52,7 @@
   "2001:db8:2:2::/64": [
     {
       "distance": 115,
-      "metric": 20,
+      "metric": 10,
       "nexthops": [
         {
           "active": true,
index 051a5cf5658b615188d1565d498b719ea4a65170..1e4c0d752ec38a9f86054b2275904cfe86ba18be 100644 (file)
@@ -1,11 +1,11 @@
 hostname r3
 interface r3-eth0
  ip address 10.0.20.1/24
- ipv6 address 2001:db8:2:1::1/64
+ ipv6 address 2001:db8:1:1::1/64
 !
 interface r3-eth1
  ip address 10.0.10.2/24
- ipv6 address 2001:db8:1:1::2/64
+ ipv6 address 2001:db8:2:1::2/64
 !
 interface lo
  ip address 10.254.0.3/32
index 8107b50753975f90118e753c62ffe8afc9431640..8f52bcea2c499859558d885a9d4943019c851ac2 100644 (file)
@@ -2,7 +2,7 @@
   "2001:db8:1:1::/64": [
     {
       "distance": 115,
-      "metric": 10,
+      "metric": 20,
       "nexthops": [
         {
           "active": true,
     }
   ],
   "2001:db8:1:2::/64": [
-    {
-      "distance": 115,
-      "metric": 10,
-      "nexthops": [
-        {
-          "active": true,
-          "afi": "ipv6",
-          "interfaceIndex": 3,
-          "interfaceName": "r4-eth1"
-        }
-      ],
-      "prefix": "2001:db8:1:2::/64",
-      "protocol": "isis"
-    },
     {
       "nexthops": [
         {
@@ -50,7 +36,7 @@
   "2001:db8:2:1::/64": [
     {
       "distance": 115,
-      "metric": 20,
+      "metric": 10,
       "nexthops": [
         {
           "active": true,
index ad857fee1bd7235fd85d13dba2917afc20f8b7bb..0152c7d3c496f4c2f9126f9e09c074767bab52e4 100644 (file)
           "next-hop": "10",
           "parent": "r4-eth1",
           "type": "IP6",
-          "vertex": "2001:db8:1:1::/64"
-        },
-        {
-          "interface": "r5",
-          "metric": "internal",
-          "next-hop": "10",
-          "parent": "r4-eth1",
-          "type": "IP6",
-          "vertex": "2001:db8:1:2::/64"
+          "vertex": "2001:db8:2:1::/64"
         },
         {
           "interface": "r5",
index 860104f8d0293699a8f6cce86abbafb24e8588d6..694d8c88142c91f42739ea993ad19588f1198b56 100644 (file)
@@ -1,5 +1,5 @@
 {
-  "2001:db8:1:1::/64": [
+  "2001:db8:2:1::/64": [
     {
       "nexthops": [
         {
           "interfaceName": "r5-eth0"
         }
       ],
-      "prefix": "2001:db8:1:1::/64",
+      "prefix": "2001:db8:2:1::/64",
       "protocol": "connected",
       "selected": true
     }
   ],
-  "2001:db8:1:2::/64": [
+  "2001:db8:2:2::/64": [
     {
       "nexthops": [
         {
           "interfaceName": "r5-eth1"
         }
       ],
-      "prefix": "2001:db8:1:2::/64",
+      "prefix": "2001:db8:2:2::/64",
       "protocol": "connected",
       "selected": true
     }
   ],
-  "2001:db8:2:1::/64": [
+  "2001:db8:1:1::/64": [
     {
       "distance": 115,
       "metric": 10,
           "interfaceName": "r5-eth0"
         }
       ],
-      "prefix": "2001:db8:2:1::/64",
+      "prefix": "2001:db8:1:1::/64",
       "protocol": "isis",
       "selected": true
     }
   ],
-  "2001:db8:2:2::/64": [
+  "2001:db8:1:2::/64": [
     {
       "distance": 115,
       "metric": 10,
@@ -62,7 +62,7 @@
           "interfaceName": "r5-eth1"
         }
       ],
-      "prefix": "2001:db8:2:2::/64",
+      "prefix": "2001:db8:1:2::/64",
       "protocol": "isis",
       "selected": true
     }
index ad8632e2d4f581f8bcc124695276ecba2a323fce..a7343b53309f0189a94bba16e47bbb3592dc27c5 100644 (file)
@@ -1,15 +1,15 @@
 {
   "2001:db8:2:1::/64": {
     "dev": "r5-eth0",
-    "metric": "20",
+    "metric": "256",
     "pref": "medium",
-    "proto": "187"
+    "proto": "kernel"
   },
   "2001:db8:2:2::/64": {
     "dev": "r5-eth1",
-    "metric": "20",
+    "metric": "256",
     "pref": "medium",
-    "proto": "187"
+    "proto": "kernel"
   },
   "2001:db8:f::3": {
     "dev": "r5-eth0",
index aecfc4922995f903ccf0c20723d8257198a7cf7a..48fed69662d21697025c8c4a2061988894b22e4f 100644 (file)
@@ -1,11 +1,11 @@
 hostname r5
 interface r5-eth0
  ip address 10.0.10.1/24
- ipv6 address 2001:db8:1:1::4/64
+ ipv6 address 2001:db8:2:1::1/64
 !
 interface r5-eth1
  ip address 10.0.11.1/24
- ipv6 address 2001:db8:1:2::4/64
+ ipv6 address 2001:db8:2:2::1/64
 !
 interface lo
  ip address 10.254.0.5/32