isis-topo1: make isis topology match .dot file

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>
This commit is contained in:
Mark Stapp 2018-07-24 16:49:46 -04:00 committed by Donald Sharp
parent 4b1f7a62db
commit cf38bed97a
7 changed files with 54 additions and 90 deletions

View File

@ -1,27 +1,13 @@
{ {
"2001:db8:1:1::/64": [ "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": [ "nexthops": [
{ {
"active": true, "active": true,
"directlyConnected": true, "directlyConnected": true,
"fib": true, "fib": true,
"interfaceIndex": 3, "interfaceIndex": 2,
"interfaceName": "r3-eth1" "interfaceName": "r3-eth0"
} }
], ],
"prefix": "2001:db8:1:1::/64", "prefix": "2001:db8:1:1::/64",
@ -32,7 +18,7 @@
"2001:db8:1:2::/64": [ "2001:db8:1:2::/64": [
{ {
"distance": 115, "distance": 115,
"metric": 10, "metric": 20,
"nexthops": [ "nexthops": [
{ {
"active": true, "active": true,
@ -54,8 +40,8 @@
"active": true, "active": true,
"directlyConnected": true, "directlyConnected": true,
"fib": true, "fib": true,
"interfaceIndex": 2, "interfaceIndex": 3,
"interfaceName": "r3-eth0" "interfaceName": "r3-eth1"
} }
], ],
"prefix": "2001:db8:2:1::/64", "prefix": "2001:db8:2:1::/64",
@ -66,7 +52,7 @@
"2001:db8:2:2::/64": [ "2001:db8:2:2::/64": [
{ {
"distance": 115, "distance": 115,
"metric": 20, "metric": 10,
"nexthops": [ "nexthops": [
{ {
"active": true, "active": true,

View File

@ -1,11 +1,11 @@
hostname r3 hostname r3
interface r3-eth0 interface r3-eth0
ip address 10.0.20.1/24 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 interface r3-eth1
ip address 10.0.10.2/24 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 interface lo
ip address 10.254.0.3/32 ip address 10.254.0.3/32

View File

@ -2,7 +2,7 @@
"2001:db8:1:1::/64": [ "2001:db8:1:1::/64": [
{ {
"distance": 115, "distance": 115,
"metric": 10, "metric": 20,
"nexthops": [ "nexthops": [
{ {
"active": true, "active": true,
@ -18,20 +18,6 @@
} }
], ],
"2001:db8:1:2::/64": [ "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": [ "nexthops": [
{ {
@ -50,7 +36,7 @@
"2001:db8:2:1::/64": [ "2001:db8:2:1::/64": [
{ {
"distance": 115, "distance": 115,
"metric": 20, "metric": 10,
"nexthops": [ "nexthops": [
{ {
"active": true, "active": true,

View File

@ -108,15 +108,7 @@
"next-hop": "10", "next-hop": "10",
"parent": "r4-eth1", "parent": "r4-eth1",
"type": "IP6", "type": "IP6",
"vertex": "2001:db8:1:1::/64" "vertex": "2001:db8:2:1::/64"
},
{
"interface": "r5",
"metric": "internal",
"next-hop": "10",
"parent": "r4-eth1",
"type": "IP6",
"vertex": "2001:db8:1:2::/64"
}, },
{ {
"interface": "r5", "interface": "r5",

View File

@ -1,55 +1,55 @@
{ {
"2001:db8:1:1::/64": [
{
"nexthops": [
{
"active": true,
"directlyConnected": true,
"fib": true,
"interfaceIndex": 2,
"interfaceName": "r5-eth0"
}
],
"prefix": "2001:db8:1:1::/64",
"protocol": "connected",
"selected": true
}
],
"2001:db8:1:2::/64": [
{
"nexthops": [
{
"active": true,
"directlyConnected": true,
"fib": true,
"interfaceIndex": 3,
"interfaceName": "r5-eth1"
}
],
"prefix": "2001:db8:1:2::/64",
"protocol": "connected",
"selected": true
}
],
"2001:db8:2:1::/64": [ "2001:db8:2:1::/64": [
{ {
"distance": 115,
"metric": 10,
"nexthops": [ "nexthops": [
{ {
"active": true, "active": true,
"afi": "ipv6", "directlyConnected": true,
"fib": true, "fib": true,
"interfaceIndex": 2, "interfaceIndex": 2,
"interfaceName": "r5-eth0" "interfaceName": "r5-eth0"
} }
], ],
"prefix": "2001:db8:2:1::/64", "prefix": "2001:db8:2:1::/64",
"protocol": "isis", "protocol": "connected",
"selected": true "selected": true
} }
], ],
"2001:db8:2:2::/64": [ "2001:db8:2:2::/64": [
{
"nexthops": [
{
"active": true,
"directlyConnected": true,
"fib": true,
"interfaceIndex": 3,
"interfaceName": "r5-eth1"
}
],
"prefix": "2001:db8:2:2::/64",
"protocol": "connected",
"selected": true
}
],
"2001:db8:1:1::/64": [
{
"distance": 115,
"metric": 10,
"nexthops": [
{
"active": true,
"afi": "ipv6",
"fib": true,
"interfaceIndex": 2,
"interfaceName": "r5-eth0"
}
],
"prefix": "2001:db8:1:1::/64",
"protocol": "isis",
"selected": true
}
],
"2001:db8:1:2::/64": [
{ {
"distance": 115, "distance": 115,
"metric": 10, "metric": 10,
@ -62,7 +62,7 @@
"interfaceName": "r5-eth1" "interfaceName": "r5-eth1"
} }
], ],
"prefix": "2001:db8:2:2::/64", "prefix": "2001:db8:1:2::/64",
"protocol": "isis", "protocol": "isis",
"selected": true "selected": true
} }

View File

@ -1,15 +1,15 @@
{ {
"2001:db8:2:1::/64": { "2001:db8:2:1::/64": {
"dev": "r5-eth0", "dev": "r5-eth0",
"metric": "20", "metric": "256",
"pref": "medium", "pref": "medium",
"proto": "187" "proto": "kernel"
}, },
"2001:db8:2:2::/64": { "2001:db8:2:2::/64": {
"dev": "r5-eth1", "dev": "r5-eth1",
"metric": "20", "metric": "256",
"pref": "medium", "pref": "medium",
"proto": "187" "proto": "kernel"
}, },
"2001:db8:f::3": { "2001:db8:f::3": {
"dev": "r5-eth0", "dev": "r5-eth0",

View File

@ -1,11 +1,11 @@
hostname r5 hostname r5
interface r5-eth0 interface r5-eth0
ip address 10.0.10.1/24 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 interface r5-eth1
ip address 10.0.11.1/24 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 interface lo
ip address 10.254.0.5/32 ip address 10.254.0.5/32