mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 02:30:38 +00:00
tests: OSPF SR topotests (ospf-sr-topo2)
Signed-off-by: GalaxyGorilla <sascha@netdef.org>
This commit is contained in:
parent
5e6f90eec5
commit
9dd6fc9ded
0
tests/topotests/ospf-sr-topo2/__init__.py
Normal file
0
tests/topotests/ospf-sr-topo2/__init__.py
Normal file
29
tests/topotests/ospf-sr-topo2/rt1/ospfd.conf
Normal file
29
tests/topotests/ospf-sr-topo2/rt1/ospfd.conf
Normal file
@ -0,0 +1,29 @@
|
||||
password 1
|
||||
hostname rt1
|
||||
log file ospfd.log
|
||||
!
|
||||
debug ospf sr
|
||||
debug ospf te
|
||||
debug ospf event
|
||||
debug ospf lsa
|
||||
debug ospf zebra
|
||||
!
|
||||
interface lo
|
||||
!
|
||||
interface eth-sw1
|
||||
ip ospf network broadcast
|
||||
!
|
||||
router ospf
|
||||
ospf router-id 1.1.1.1
|
||||
network 1.1.1.1/32 area 0.0.0.0
|
||||
network 10.0.0.0/16 area 0.0.0.0
|
||||
capability opaque
|
||||
mpls-te on
|
||||
mpls-te router-address 1.1.1.1
|
||||
router-info area 0.0.0.0
|
||||
passive-interface lo
|
||||
segment-routing on
|
||||
segment-routing global-block 16000 23999
|
||||
segment-routing node-msd 8
|
||||
segment-routing prefix 1.1.1.1/32 index 10
|
||||
!
|
289
tests/topotests/ospf-sr-topo2/rt1/step1/show_ip_route.ref
Normal file
289
tests/topotests/ospf-sr-topo2/rt1/step1/show_ip_route.ref
Normal file
@ -0,0 +1,289 @@
|
||||
{
|
||||
"2.2.2.2\/32":[
|
||||
{
|
||||
"prefix":"2.2.2.2\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"3.3.3.3\/32":[
|
||||
{
|
||||
"prefix":"3.3.3.3\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17030
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"4.4.4.4\/32":[
|
||||
{
|
||||
"prefix":"4.4.4.4\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17060
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
68
tests/topotests/ospf-sr-topo2/rt1/step1/show_mpls_table.ref
Normal file
68
tests/topotests/ospf-sr-topo2/rt1/step1/show_mpls_table.ref
Normal file
@ -0,0 +1,68 @@
|
||||
{
|
||||
"16020":{
|
||||
"inLabel":16020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16030":{
|
||||
"inLabel":16030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16040":{
|
||||
"inLabel":16040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16050":{
|
||||
"inLabel":16050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16060":{
|
||||
"inLabel":16060,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
282
tests/topotests/ospf-sr-topo2/rt1/step10/show_ip_route.ref
Normal file
282
tests/topotests/ospf-sr-topo2/rt1/step10/show_ip_route.ref
Normal file
@ -0,0 +1,282 @@
|
||||
{
|
||||
"2.2.2.2\/32":[
|
||||
{
|
||||
"prefix":"2.2.2.2\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"3.3.3.3\/32":[
|
||||
{
|
||||
"prefix":"3.3.3.3\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17030
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"4.4.4.4\/32":[
|
||||
{
|
||||
"prefix":"4.4.4.4\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17060
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
79
tests/topotests/ospf-sr-topo2/rt1/step10/show_mpls_table.ref
Normal file
79
tests/topotests/ospf-sr-topo2/rt1/step10/show_mpls_table.ref
Normal file
@ -0,0 +1,79 @@
|
||||
{
|
||||
"16010":{
|
||||
"inLabel":16010,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
},
|
||||
"16020":{
|
||||
"inLabel":16020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16030":{
|
||||
"inLabel":16030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16040":{
|
||||
"inLabel":16040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16050":{
|
||||
"inLabel":16050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16060":{
|
||||
"inLabel":16060,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
282
tests/topotests/ospf-sr-topo2/rt1/step2/show_ip_route.ref
Normal file
282
tests/topotests/ospf-sr-topo2/rt1/step2/show_ip_route.ref
Normal file
@ -0,0 +1,282 @@
|
||||
{
|
||||
"2.2.2.2\/32":[
|
||||
{
|
||||
"prefix":"2.2.2.2\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"3.3.3.3\/32":[
|
||||
{
|
||||
"prefix":"3.3.3.3\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17030
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"4.4.4.4\/32":[
|
||||
{
|
||||
"prefix":"4.4.4.4\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17060
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
68
tests/topotests/ospf-sr-topo2/rt1/step2/show_mpls_table.ref
Normal file
68
tests/topotests/ospf-sr-topo2/rt1/step2/show_mpls_table.ref
Normal file
@ -0,0 +1,68 @@
|
||||
{
|
||||
"16020":{
|
||||
"inLabel":16020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16030":{
|
||||
"inLabel":16030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16040":{
|
||||
"inLabel":16040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16050":{
|
||||
"inLabel":16050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16060":{
|
||||
"inLabel":16060,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
249
tests/topotests/ospf-sr-topo2/rt1/step3/show_ip_route.ref
Normal file
249
tests/topotests/ospf-sr-topo2/rt1/step3/show_ip_route.ref
Normal file
@ -0,0 +1,249 @@
|
||||
{
|
||||
"2.2.2.2\/32":[
|
||||
{
|
||||
"prefix":"2.2.2.2\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"3.3.3.3\/32":[
|
||||
{
|
||||
"prefix":"3.3.3.3\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17030
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"4.4.4.4\/32":[
|
||||
{
|
||||
"prefix":"4.4.4.4\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
50
tests/topotests/ospf-sr-topo2/rt1/step3/show_mpls_table.ref
Normal file
50
tests/topotests/ospf-sr-topo2/rt1/step3/show_mpls_table.ref
Normal file
@ -0,0 +1,50 @@
|
||||
{
|
||||
"16020":{
|
||||
"inLabel":16020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16030":{
|
||||
"inLabel":16030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16040":{
|
||||
"inLabel":16040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16050":{
|
||||
"inLabel":16050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
282
tests/topotests/ospf-sr-topo2/rt1/step4/show_ip_route.ref
Normal file
282
tests/topotests/ospf-sr-topo2/rt1/step4/show_ip_route.ref
Normal file
@ -0,0 +1,282 @@
|
||||
{
|
||||
"2.2.2.2\/32":[
|
||||
{
|
||||
"prefix":"2.2.2.2\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"3.3.3.3\/32":[
|
||||
{
|
||||
"prefix":"3.3.3.3\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17030
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"4.4.4.4\/32":[
|
||||
{
|
||||
"prefix":"4.4.4.4\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17060
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
68
tests/topotests/ospf-sr-topo2/rt1/step4/show_mpls_table.ref
Normal file
68
tests/topotests/ospf-sr-topo2/rt1/step4/show_mpls_table.ref
Normal file
@ -0,0 +1,68 @@
|
||||
{
|
||||
"16020":{
|
||||
"inLabel":16020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16030":{
|
||||
"inLabel":16030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16040":{
|
||||
"inLabel":16040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16050":{
|
||||
"inLabel":16050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16060":{
|
||||
"inLabel":16060,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
276
tests/topotests/ospf-sr-topo2/rt1/step5/show_ip_route.ref
Normal file
276
tests/topotests/ospf-sr-topo2/rt1/step5/show_ip_route.ref
Normal file
@ -0,0 +1,276 @@
|
||||
{
|
||||
"2.2.2.2\/32":[
|
||||
{
|
||||
"prefix":"2.2.2.2\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"3.3.3.3\/32":[
|
||||
{
|
||||
"prefix":"3.3.3.3\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17030
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"4.4.4.4\/32":[
|
||||
{
|
||||
"prefix":"4.4.4.4\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
50
tests/topotests/ospf-sr-topo2/rt1/step5/show_mpls_table.ref
Normal file
50
tests/topotests/ospf-sr-topo2/rt1/step5/show_mpls_table.ref
Normal file
@ -0,0 +1,50 @@
|
||||
{
|
||||
"16020":{
|
||||
"inLabel":16020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16030":{
|
||||
"inLabel":16030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16040":{
|
||||
"inLabel":16040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16050":{
|
||||
"inLabel":16050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
282
tests/topotests/ospf-sr-topo2/rt1/step6/show_ip_route.ref
Normal file
282
tests/topotests/ospf-sr-topo2/rt1/step6/show_ip_route.ref
Normal file
@ -0,0 +1,282 @@
|
||||
{
|
||||
"2.2.2.2\/32":[
|
||||
{
|
||||
"prefix":"2.2.2.2\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"3.3.3.3\/32":[
|
||||
{
|
||||
"prefix":"3.3.3.3\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17030
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"4.4.4.4\/32":[
|
||||
{
|
||||
"prefix":"4.4.4.4\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17060
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
68
tests/topotests/ospf-sr-topo2/rt1/step6/show_mpls_table.ref
Normal file
68
tests/topotests/ospf-sr-topo2/rt1/step6/show_mpls_table.ref
Normal file
@ -0,0 +1,68 @@
|
||||
{
|
||||
"16020":{
|
||||
"inLabel":16020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16030":{
|
||||
"inLabel":16030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16040":{
|
||||
"inLabel":16040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16050":{
|
||||
"inLabel":16050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16060":{
|
||||
"inLabel":16060,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
282
tests/topotests/ospf-sr-topo2/rt1/step7/show_ip_route.ref
Normal file
282
tests/topotests/ospf-sr-topo2/rt1/step7/show_ip_route.ref
Normal file
@ -0,0 +1,282 @@
|
||||
{
|
||||
"2.2.2.2\/32":[
|
||||
{
|
||||
"prefix":"2.2.2.2\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"3.3.3.3\/32":[
|
||||
{
|
||||
"prefix":"3.3.3.3\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17030
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"4.4.4.4\/32":[
|
||||
{
|
||||
"prefix":"4.4.4.4\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17060
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
68
tests/topotests/ospf-sr-topo2/rt1/step7/show_mpls_table.ref
Normal file
68
tests/topotests/ospf-sr-topo2/rt1/step7/show_mpls_table.ref
Normal file
@ -0,0 +1,68 @@
|
||||
{
|
||||
"16020":{
|
||||
"inLabel":16020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16030":{
|
||||
"inLabel":16030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16040":{
|
||||
"inLabel":16040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16050":{
|
||||
"inLabel":16050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16060":{
|
||||
"inLabel":16060,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
282
tests/topotests/ospf-sr-topo2/rt1/step8/show_ip_route.ref
Normal file
282
tests/topotests/ospf-sr-topo2/rt1/step8/show_ip_route.ref
Normal file
@ -0,0 +1,282 @@
|
||||
{
|
||||
"2.2.2.2\/32":[
|
||||
{
|
||||
"prefix":"2.2.2.2\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"3.3.3.3\/32":[
|
||||
{
|
||||
"prefix":"3.3.3.3\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17030
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"4.4.4.4\/32":[
|
||||
{
|
||||
"prefix":"4.4.4.4\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17060
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
68
tests/topotests/ospf-sr-topo2/rt1/step8/show_mpls_table.ref
Normal file
68
tests/topotests/ospf-sr-topo2/rt1/step8/show_mpls_table.ref
Normal file
@ -0,0 +1,68 @@
|
||||
{
|
||||
"16020":{
|
||||
"inLabel":16020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16030":{
|
||||
"inLabel":16030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16040":{
|
||||
"inLabel":16040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16050":{
|
||||
"inLabel":16050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16060":{
|
||||
"inLabel":16060,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
282
tests/topotests/ospf-sr-topo2/rt1/step9/show_ip_route.ref
Normal file
282
tests/topotests/ospf-sr-topo2/rt1/step9/show_ip_route.ref
Normal file
@ -0,0 +1,282 @@
|
||||
{
|
||||
"2.2.2.2\/32":[
|
||||
{
|
||||
"prefix":"2.2.2.2\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"3.3.3.3\/32":[
|
||||
{
|
||||
"prefix":"3.3.3.3\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17030
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"4.4.4.4\/32":[
|
||||
{
|
||||
"prefix":"4.4.4.4\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17060
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
79
tests/topotests/ospf-sr-topo2/rt1/step9/show_mpls_table.ref
Normal file
79
tests/topotests/ospf-sr-topo2/rt1/step9/show_mpls_table.ref
Normal file
@ -0,0 +1,79 @@
|
||||
{
|
||||
"16010":{
|
||||
"inLabel":16010,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
},
|
||||
"16020":{
|
||||
"inLabel":16020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16030":{
|
||||
"inLabel":16030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16040":{
|
||||
"inLabel":16040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16050":{
|
||||
"inLabel":16050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16060":{
|
||||
"inLabel":16060,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
18
tests/topotests/ospf-sr-topo2/rt1/zebra.conf
Normal file
18
tests/topotests/ospf-sr-topo2/rt1/zebra.conf
Normal file
@ -0,0 +1,18 @@
|
||||
log file zebra.log
|
||||
!
|
||||
hostname rt1
|
||||
!
|
||||
debug zebra kernel
|
||||
debug zebra packet
|
||||
debug zebra mpls
|
||||
!
|
||||
interface lo
|
||||
ip address 1.1.1.1/32
|
||||
!
|
||||
interface eth-sw1
|
||||
ip address 10.0.1.1/24
|
||||
!
|
||||
ip forwarding
|
||||
!
|
||||
line vty
|
||||
!
|
35
tests/topotests/ospf-sr-topo2/rt2/ospfd.conf
Normal file
35
tests/topotests/ospf-sr-topo2/rt2/ospfd.conf
Normal file
@ -0,0 +1,35 @@
|
||||
password 1
|
||||
hostname rt2
|
||||
log file ospfd.log
|
||||
!
|
||||
debug ospf sr
|
||||
debug ospf te
|
||||
debug ospf event
|
||||
debug ospf lsa
|
||||
debug ospf zebra
|
||||
!
|
||||
interface lo
|
||||
!
|
||||
interface eth-sw1
|
||||
ip ospf network broadcast
|
||||
!
|
||||
interface eth-rt4-1
|
||||
ip ospf network point-to-point
|
||||
!
|
||||
interface eth-rt4-2
|
||||
ip ospf network point-to-point
|
||||
!
|
||||
router ospf
|
||||
ospf router-id 2.2.2.2
|
||||
network 2.2.2.2/32 area 0.0.0.0
|
||||
network 10.0.0.0/16 area 0.0.0.0
|
||||
capability opaque
|
||||
mpls-te on
|
||||
mpls-te router-address 2.2.2.2
|
||||
router-info area 0.0.0.0
|
||||
passive-interface lo
|
||||
segment-routing on
|
||||
segment-routing global-block 16000 23999
|
||||
segment-routing node-msd 8
|
||||
segment-routing prefix 2.2.2.2/32 index 20 no-php-flag
|
||||
!
|
330
tests/topotests/ospf-sr-topo2/rt2/step1/show_ip_route.ref
Normal file
330
tests/topotests/ospf-sr-topo2/rt2/step1/show_ip_route.ref
Normal file
@ -0,0 +1,330 @@
|
||||
{
|
||||
"1.1.1.1\/32":[
|
||||
{
|
||||
"prefix":"1.1.1.1\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.1",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
3
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"3.3.3.3\/32":[
|
||||
{
|
||||
"prefix":"3.3.3.3\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17030
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"4.4.4.4\/32":[
|
||||
{
|
||||
"prefix":"4.4.4.4\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17050
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16050
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
97
tests/topotests/ospf-sr-topo2/rt2/step1/show_mpls_table.ref
Normal file
97
tests/topotests/ospf-sr-topo2/rt2/step1/show_mpls_table.ref
Normal file
@ -0,0 +1,97 @@
|
||||
{
|
||||
"16010":{
|
||||
"inLabel":16010,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16020":{
|
||||
"inLabel":16020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
},
|
||||
"16030":{
|
||||
"inLabel":16030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16040":{
|
||||
"inLabel":16040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.4"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.4"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16050":{
|
||||
"inLabel":16050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.4"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.4"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16060":{
|
||||
"inLabel":16060,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.4"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.4"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
254
tests/topotests/ospf-sr-topo2/rt2/step10/show_ip_route.ref
Normal file
254
tests/topotests/ospf-sr-topo2/rt2/step10/show_ip_route.ref
Normal file
@ -0,0 +1,254 @@
|
||||
{
|
||||
"1.1.1.1\/32":[
|
||||
{
|
||||
"prefix":"1.1.1.1\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.1",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16010
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"3.3.3.3\/32":[
|
||||
{
|
||||
"prefix":"3.3.3.3\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17030
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"4.4.4.4\/32":[
|
||||
{
|
||||
"prefix":"4.4.4.4\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
73
tests/topotests/ospf-sr-topo2/rt2/step10/show_mpls_table.ref
Normal file
73
tests/topotests/ospf-sr-topo2/rt2/step10/show_mpls_table.ref
Normal file
@ -0,0 +1,73 @@
|
||||
{
|
||||
"16010":{
|
||||
"inLabel":16010,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16010,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16020":{
|
||||
"inLabel":16020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
},
|
||||
"16030":{
|
||||
"inLabel":16030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16040":{
|
||||
"inLabel":16040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.4"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16050":{
|
||||
"inLabel":16050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16060":{
|
||||
"inLabel":16060,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.4"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
303
tests/topotests/ospf-sr-topo2/rt2/step2/show_ip_route.ref
Normal file
303
tests/topotests/ospf-sr-topo2/rt2/step2/show_ip_route.ref
Normal file
@ -0,0 +1,303 @@
|
||||
{
|
||||
"1.1.1.1\/32":[
|
||||
{
|
||||
"prefix":"1.1.1.1\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.1",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
3
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"3.3.3.3\/32":[
|
||||
{
|
||||
"prefix":"3.3.3.3\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17030
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"4.4.4.4\/32":[
|
||||
{
|
||||
"prefix":"4.4.4.4\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
85
tests/topotests/ospf-sr-topo2/rt2/step2/show_mpls_table.ref
Normal file
85
tests/topotests/ospf-sr-topo2/rt2/step2/show_mpls_table.ref
Normal file
@ -0,0 +1,85 @@
|
||||
{
|
||||
"16010":{
|
||||
"inLabel":16010,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16020":{
|
||||
"inLabel":16020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
},
|
||||
"16030":{
|
||||
"inLabel":16030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16040":{
|
||||
"inLabel":16040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.4"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.4"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16050":{
|
||||
"inLabel":16050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16060":{
|
||||
"inLabel":16060,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.4"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.4"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
256
tests/topotests/ospf-sr-topo2/rt2/step3/show_ip_route.ref
Normal file
256
tests/topotests/ospf-sr-topo2/rt2/step3/show_ip_route.ref
Normal file
@ -0,0 +1,256 @@
|
||||
{
|
||||
"1.1.1.1\/32":[
|
||||
{
|
||||
"prefix":"1.1.1.1\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.1",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
3
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"3.3.3.3\/32":[
|
||||
{
|
||||
"prefix":"3.3.3.3\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17030
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"4.4.4.4\/32":[
|
||||
{
|
||||
"prefix":"4.4.4.4\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
67
tests/topotests/ospf-sr-topo2/rt2/step3/show_mpls_table.ref
Normal file
67
tests/topotests/ospf-sr-topo2/rt2/step3/show_mpls_table.ref
Normal file
@ -0,0 +1,67 @@
|
||||
{
|
||||
"16010":{
|
||||
"inLabel":16010,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16020":{
|
||||
"inLabel":16020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
},
|
||||
"16030":{
|
||||
"inLabel":16030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16040":{
|
||||
"inLabel":16040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.4"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.4"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16050":{
|
||||
"inLabel":16050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
303
tests/topotests/ospf-sr-topo2/rt2/step4/show_ip_route.ref
Normal file
303
tests/topotests/ospf-sr-topo2/rt2/step4/show_ip_route.ref
Normal file
@ -0,0 +1,303 @@
|
||||
{
|
||||
"1.1.1.1\/32":[
|
||||
{
|
||||
"prefix":"1.1.1.1\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.1",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
3
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"3.3.3.3\/32":[
|
||||
{
|
||||
"prefix":"3.3.3.3\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17030
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"4.4.4.4\/32":[
|
||||
{
|
||||
"prefix":"4.4.4.4\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
85
tests/topotests/ospf-sr-topo2/rt2/step4/show_mpls_table.ref
Normal file
85
tests/topotests/ospf-sr-topo2/rt2/step4/show_mpls_table.ref
Normal file
@ -0,0 +1,85 @@
|
||||
{
|
||||
"16010":{
|
||||
"inLabel":16010,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16020":{
|
||||
"inLabel":16020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
},
|
||||
"16030":{
|
||||
"inLabel":16030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16040":{
|
||||
"inLabel":16040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.4"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.4"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16050":{
|
||||
"inLabel":16050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16060":{
|
||||
"inLabel":16060,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.4"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.4"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
297
tests/topotests/ospf-sr-topo2/rt2/step5/show_ip_route.ref
Normal file
297
tests/topotests/ospf-sr-topo2/rt2/step5/show_ip_route.ref
Normal file
@ -0,0 +1,297 @@
|
||||
{
|
||||
"1.1.1.1\/32":[
|
||||
{
|
||||
"prefix":"1.1.1.1\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.1",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
3
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"3.3.3.3\/32":[
|
||||
{
|
||||
"prefix":"3.3.3.3\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17030
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"4.4.4.4\/32":[
|
||||
{
|
||||
"prefix":"4.4.4.4\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
67
tests/topotests/ospf-sr-topo2/rt2/step5/show_mpls_table.ref
Normal file
67
tests/topotests/ospf-sr-topo2/rt2/step5/show_mpls_table.ref
Normal file
@ -0,0 +1,67 @@
|
||||
{
|
||||
"16010":{
|
||||
"inLabel":16010,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16020":{
|
||||
"inLabel":16020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
},
|
||||
"16030":{
|
||||
"inLabel":16030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16040":{
|
||||
"inLabel":16040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.4"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.4"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16050":{
|
||||
"inLabel":16050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
303
tests/topotests/ospf-sr-topo2/rt2/step6/show_ip_route.ref
Normal file
303
tests/topotests/ospf-sr-topo2/rt2/step6/show_ip_route.ref
Normal file
@ -0,0 +1,303 @@
|
||||
{
|
||||
"1.1.1.1\/32":[
|
||||
{
|
||||
"prefix":"1.1.1.1\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.1",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
3
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"3.3.3.3\/32":[
|
||||
{
|
||||
"prefix":"3.3.3.3\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17030
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"4.4.4.4\/32":[
|
||||
{
|
||||
"prefix":"4.4.4.4\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
85
tests/topotests/ospf-sr-topo2/rt2/step6/show_mpls_table.ref
Normal file
85
tests/topotests/ospf-sr-topo2/rt2/step6/show_mpls_table.ref
Normal file
@ -0,0 +1,85 @@
|
||||
{
|
||||
"16010":{
|
||||
"inLabel":16010,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16020":{
|
||||
"inLabel":16020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
},
|
||||
"16030":{
|
||||
"inLabel":16030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16040":{
|
||||
"inLabel":16040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.4"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.4"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16050":{
|
||||
"inLabel":16050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16060":{
|
||||
"inLabel":16060,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.4"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.4"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
300
tests/topotests/ospf-sr-topo2/rt2/step7/show_ip_route.ref
Normal file
300
tests/topotests/ospf-sr-topo2/rt2/step7/show_ip_route.ref
Normal file
@ -0,0 +1,300 @@
|
||||
{
|
||||
"1.1.1.1\/32":[
|
||||
{
|
||||
"prefix":"1.1.1.1\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.1",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"3.3.3.3\/32":[
|
||||
{
|
||||
"prefix":"3.3.3.3\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17030
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"4.4.4.4\/32":[
|
||||
{
|
||||
"prefix":"4.4.4.4\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
73
tests/topotests/ospf-sr-topo2/rt2/step7/show_mpls_table.ref
Normal file
73
tests/topotests/ospf-sr-topo2/rt2/step7/show_mpls_table.ref
Normal file
@ -0,0 +1,73 @@
|
||||
{
|
||||
"16020":{
|
||||
"inLabel":16020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
},
|
||||
"16030":{
|
||||
"inLabel":16030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16040":{
|
||||
"inLabel":16040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.4"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.4"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16050":{
|
||||
"inLabel":16050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16060":{
|
||||
"inLabel":16060,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.4"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.4"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
303
tests/topotests/ospf-sr-topo2/rt2/step8/show_ip_route.ref
Normal file
303
tests/topotests/ospf-sr-topo2/rt2/step8/show_ip_route.ref
Normal file
@ -0,0 +1,303 @@
|
||||
{
|
||||
"1.1.1.1\/32":[
|
||||
{
|
||||
"prefix":"1.1.1.1\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.1",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
3
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"3.3.3.3\/32":[
|
||||
{
|
||||
"prefix":"3.3.3.3\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17030
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"4.4.4.4\/32":[
|
||||
{
|
||||
"prefix":"4.4.4.4\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
85
tests/topotests/ospf-sr-topo2/rt2/step8/show_mpls_table.ref
Normal file
85
tests/topotests/ospf-sr-topo2/rt2/step8/show_mpls_table.ref
Normal file
@ -0,0 +1,85 @@
|
||||
{
|
||||
"16010":{
|
||||
"inLabel":16010,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16020":{
|
||||
"inLabel":16020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
},
|
||||
"16030":{
|
||||
"inLabel":16030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16040":{
|
||||
"inLabel":16040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.4"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.4"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16050":{
|
||||
"inLabel":16050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16060":{
|
||||
"inLabel":16060,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.4"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.4"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
303
tests/topotests/ospf-sr-topo2/rt2/step9/show_ip_route.ref
Normal file
303
tests/topotests/ospf-sr-topo2/rt2/step9/show_ip_route.ref
Normal file
@ -0,0 +1,303 @@
|
||||
{
|
||||
"1.1.1.1\/32":[
|
||||
{
|
||||
"prefix":"1.1.1.1\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.1",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16010
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"3.3.3.3\/32":[
|
||||
{
|
||||
"prefix":"3.3.3.3\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17030
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"4.4.4.4\/32":[
|
||||
{
|
||||
"prefix":"4.4.4.4\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
85
tests/topotests/ospf-sr-topo2/rt2/step9/show_mpls_table.ref
Normal file
85
tests/topotests/ospf-sr-topo2/rt2/step9/show_mpls_table.ref
Normal file
@ -0,0 +1,85 @@
|
||||
{
|
||||
"16010":{
|
||||
"inLabel":16010,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16010,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16020":{
|
||||
"inLabel":16020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
},
|
||||
"16030":{
|
||||
"inLabel":16030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16040":{
|
||||
"inLabel":16040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.4"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.4"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16050":{
|
||||
"inLabel":16050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16060":{
|
||||
"inLabel":16060,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.4"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.4"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
24
tests/topotests/ospf-sr-topo2/rt2/zebra.conf
Normal file
24
tests/topotests/ospf-sr-topo2/rt2/zebra.conf
Normal file
@ -0,0 +1,24 @@
|
||||
log file zebra.log
|
||||
!
|
||||
hostname rt2
|
||||
!
|
||||
debug zebra kernel
|
||||
debug zebra packet
|
||||
debug zebra mpls
|
||||
!
|
||||
interface lo
|
||||
ip address 2.2.2.2/32
|
||||
!
|
||||
interface eth-sw1
|
||||
ip address 10.0.1.2/24
|
||||
!
|
||||
interface eth-rt4-1
|
||||
ip address 10.0.2.2/24
|
||||
!
|
||||
interface eth-rt4-2
|
||||
ip address 10.0.3.2/24
|
||||
!
|
||||
ip forwarding
|
||||
!
|
||||
line vty
|
||||
!
|
35
tests/topotests/ospf-sr-topo2/rt3/ospfd.conf
Normal file
35
tests/topotests/ospf-sr-topo2/rt3/ospfd.conf
Normal file
@ -0,0 +1,35 @@
|
||||
password 1
|
||||
hostname rt3
|
||||
log file ospfd.log
|
||||
!
|
||||
debug ospf sr
|
||||
debug ospf te
|
||||
debug ospf event
|
||||
debug ospf lsa
|
||||
debug ospf zebra
|
||||
!
|
||||
interface lo
|
||||
!
|
||||
interface eth-sw1
|
||||
ip ospf network broadcast
|
||||
!
|
||||
interface eth-rt5-1
|
||||
ip ospf network point-to-point
|
||||
!
|
||||
interface eth-rt5-2
|
||||
ip ospf network point-to-point
|
||||
!
|
||||
router ospf
|
||||
ospf router-id 3.3.3.3
|
||||
network 3.3.3.3/32 area 0.0.0.0
|
||||
network 10.0.0.0/16 area 0.0.0.0
|
||||
capability opaque
|
||||
mpls-te on
|
||||
mpls-te router-address 3.3.3.3
|
||||
router-info area 0.0.0.0
|
||||
passive-interface lo
|
||||
segment-routing on
|
||||
segment-routing global-block 17000 24999
|
||||
segment-routing node-msd 8
|
||||
segment-routing prefix 3.3.3.3/32 index 30 no-php-flag
|
||||
!
|
330
tests/topotests/ospf-sr-topo2/rt3/step1/show_ip_route.ref
Normal file
330
tests/topotests/ospf-sr-topo2/rt3/step1/show_ip_route.ref
Normal file
@ -0,0 +1,330 @@
|
||||
{
|
||||
"1.1.1.1\/32":[
|
||||
{
|
||||
"prefix":"1.1.1.1\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.1",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
3
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"2.2.2.2\/32":[
|
||||
{
|
||||
"prefix":"2.2.2.2\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"4.4.4.4\/32":[
|
||||
{
|
||||
"prefix":"4.4.4.4\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16050
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
97
tests/topotests/ospf-sr-topo2/rt3/step1/show_mpls_table.ref
Normal file
97
tests/topotests/ospf-sr-topo2/rt3/step1/show_mpls_table.ref
Normal file
@ -0,0 +1,97 @@
|
||||
{
|
||||
"17010":{
|
||||
"inLabel":17010,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
"17020":{
|
||||
"inLabel":17020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"17030":{
|
||||
"inLabel":17030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
},
|
||||
"17040":{
|
||||
"inLabel":17040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.5.5"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.5"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"17050":{
|
||||
"inLabel":17050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.5.5"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.5"
|
||||
}
|
||||
]
|
||||
},
|
||||
"17060":{
|
||||
"inLabel":17060,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.5.5"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.5"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
310
tests/topotests/ospf-sr-topo2/rt3/step10/show_ip_route.ref
Normal file
310
tests/topotests/ospf-sr-topo2/rt3/step10/show_ip_route.ref
Normal file
@ -0,0 +1,310 @@
|
||||
{
|
||||
"1.1.1.1\/32":[
|
||||
{
|
||||
"prefix":"1.1.1.1\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.1",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16010
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"2.2.2.2\/32":[
|
||||
{
|
||||
"prefix":"2.2.2.2\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"4.4.4.4\/32":[
|
||||
{
|
||||
"prefix":"4.4.4.4\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16050
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
85
tests/topotests/ospf-sr-topo2/rt3/step10/show_mpls_table.ref
Normal file
85
tests/topotests/ospf-sr-topo2/rt3/step10/show_mpls_table.ref
Normal file
@ -0,0 +1,85 @@
|
||||
{
|
||||
"17010":{
|
||||
"inLabel":17010,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16010,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
"17020":{
|
||||
"inLabel":17020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"17030":{
|
||||
"inLabel":17030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
},
|
||||
"17040":{
|
||||
"inLabel":17040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"17050":{
|
||||
"inLabel":17050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.5.5"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.5"
|
||||
}
|
||||
]
|
||||
},
|
||||
"17060":{
|
||||
"inLabel":17060,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.5.5"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.5"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
310
tests/topotests/ospf-sr-topo2/rt3/step2/show_ip_route.ref
Normal file
310
tests/topotests/ospf-sr-topo2/rt3/step2/show_ip_route.ref
Normal file
@ -0,0 +1,310 @@
|
||||
{
|
||||
"1.1.1.1\/32":[
|
||||
{
|
||||
"prefix":"1.1.1.1\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.1",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
3
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"2.2.2.2\/32":[
|
||||
{
|
||||
"prefix":"2.2.2.2\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"4.4.4.4\/32":[
|
||||
{
|
||||
"prefix":"4.4.4.4\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16050
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
85
tests/topotests/ospf-sr-topo2/rt3/step2/show_mpls_table.ref
Normal file
85
tests/topotests/ospf-sr-topo2/rt3/step2/show_mpls_table.ref
Normal file
@ -0,0 +1,85 @@
|
||||
{
|
||||
"17010":{
|
||||
"inLabel":17010,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
"17020":{
|
||||
"inLabel":17020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"17030":{
|
||||
"inLabel":17030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
},
|
||||
"17040":{
|
||||
"inLabel":17040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"17050":{
|
||||
"inLabel":17050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.5.5"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.5"
|
||||
}
|
||||
]
|
||||
},
|
||||
"17060":{
|
||||
"inLabel":17060,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.5.5"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.5"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
263
tests/topotests/ospf-sr-topo2/rt3/step3/show_ip_route.ref
Normal file
263
tests/topotests/ospf-sr-topo2/rt3/step3/show_ip_route.ref
Normal file
@ -0,0 +1,263 @@
|
||||
{
|
||||
"1.1.1.1\/32":[
|
||||
{
|
||||
"prefix":"1.1.1.1\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.1",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
3
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"2.2.2.2\/32":[
|
||||
{
|
||||
"prefix":"2.2.2.2\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"4.4.4.4\/32":[
|
||||
{
|
||||
"prefix":"4.4.4.4\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16050
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
67
tests/topotests/ospf-sr-topo2/rt3/step3/show_mpls_table.ref
Normal file
67
tests/topotests/ospf-sr-topo2/rt3/step3/show_mpls_table.ref
Normal file
@ -0,0 +1,67 @@
|
||||
{
|
||||
"17010":{
|
||||
"inLabel":17010,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
"17020":{
|
||||
"inLabel":17020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"17030":{
|
||||
"inLabel":17030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
},
|
||||
"17040":{
|
||||
"inLabel":17040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"17050":{
|
||||
"inLabel":17050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.5.5"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.5"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
310
tests/topotests/ospf-sr-topo2/rt3/step4/show_ip_route.ref
Normal file
310
tests/topotests/ospf-sr-topo2/rt3/step4/show_ip_route.ref
Normal file
@ -0,0 +1,310 @@
|
||||
{
|
||||
"1.1.1.1\/32":[
|
||||
{
|
||||
"prefix":"1.1.1.1\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.1",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
3
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"2.2.2.2\/32":[
|
||||
{
|
||||
"prefix":"2.2.2.2\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"4.4.4.4\/32":[
|
||||
{
|
||||
"prefix":"4.4.4.4\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16050
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
85
tests/topotests/ospf-sr-topo2/rt3/step4/show_mpls_table.ref
Normal file
85
tests/topotests/ospf-sr-topo2/rt3/step4/show_mpls_table.ref
Normal file
@ -0,0 +1,85 @@
|
||||
{
|
||||
"17010":{
|
||||
"inLabel":17010,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
"17020":{
|
||||
"inLabel":17020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"17030":{
|
||||
"inLabel":17030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
},
|
||||
"17040":{
|
||||
"inLabel":17040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"17050":{
|
||||
"inLabel":17050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.5.5"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.5"
|
||||
}
|
||||
]
|
||||
},
|
||||
"17060":{
|
||||
"inLabel":17060,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.5.5"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.5"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
304
tests/topotests/ospf-sr-topo2/rt3/step5/show_ip_route.ref
Normal file
304
tests/topotests/ospf-sr-topo2/rt3/step5/show_ip_route.ref
Normal file
@ -0,0 +1,304 @@
|
||||
{
|
||||
"1.1.1.1\/32":[
|
||||
{
|
||||
"prefix":"1.1.1.1\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.1",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
3
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"2.2.2.2\/32":[
|
||||
{
|
||||
"prefix":"2.2.2.2\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"4.4.4.4\/32":[
|
||||
{
|
||||
"prefix":"4.4.4.4\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16050
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
67
tests/topotests/ospf-sr-topo2/rt3/step5/show_mpls_table.ref
Normal file
67
tests/topotests/ospf-sr-topo2/rt3/step5/show_mpls_table.ref
Normal file
@ -0,0 +1,67 @@
|
||||
{
|
||||
"17010":{
|
||||
"inLabel":17010,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
"17020":{
|
||||
"inLabel":17020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"17030":{
|
||||
"inLabel":17030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
},
|
||||
"17040":{
|
||||
"inLabel":17040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"17050":{
|
||||
"inLabel":17050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.5.5"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.5"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
310
tests/topotests/ospf-sr-topo2/rt3/step6/show_ip_route.ref
Normal file
310
tests/topotests/ospf-sr-topo2/rt3/step6/show_ip_route.ref
Normal file
@ -0,0 +1,310 @@
|
||||
{
|
||||
"1.1.1.1\/32":[
|
||||
{
|
||||
"prefix":"1.1.1.1\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.1",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
3
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"2.2.2.2\/32":[
|
||||
{
|
||||
"prefix":"2.2.2.2\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"4.4.4.4\/32":[
|
||||
{
|
||||
"prefix":"4.4.4.4\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16050
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
85
tests/topotests/ospf-sr-topo2/rt3/step6/show_mpls_table.ref
Normal file
85
tests/topotests/ospf-sr-topo2/rt3/step6/show_mpls_table.ref
Normal file
@ -0,0 +1,85 @@
|
||||
{
|
||||
"17010":{
|
||||
"inLabel":17010,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
"17020":{
|
||||
"inLabel":17020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"17030":{
|
||||
"inLabel":17030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
},
|
||||
"17040":{
|
||||
"inLabel":17040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"17050":{
|
||||
"inLabel":17050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.5.5"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.5"
|
||||
}
|
||||
]
|
||||
},
|
||||
"17060":{
|
||||
"inLabel":17060,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.5.5"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.5"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
307
tests/topotests/ospf-sr-topo2/rt3/step7/show_ip_route.ref
Normal file
307
tests/topotests/ospf-sr-topo2/rt3/step7/show_ip_route.ref
Normal file
@ -0,0 +1,307 @@
|
||||
{
|
||||
"1.1.1.1\/32":[
|
||||
{
|
||||
"prefix":"1.1.1.1\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.1",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"2.2.2.2\/32":[
|
||||
{
|
||||
"prefix":"2.2.2.2\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"4.4.4.4\/32":[
|
||||
{
|
||||
"prefix":"4.4.4.4\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16050
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
73
tests/topotests/ospf-sr-topo2/rt3/step7/show_mpls_table.ref
Normal file
73
tests/topotests/ospf-sr-topo2/rt3/step7/show_mpls_table.ref
Normal file
@ -0,0 +1,73 @@
|
||||
{
|
||||
"17020":{
|
||||
"inLabel":17020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"17030":{
|
||||
"inLabel":17030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
},
|
||||
"17040":{
|
||||
"inLabel":17040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"17050":{
|
||||
"inLabel":17050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.5.5"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.5"
|
||||
}
|
||||
]
|
||||
},
|
||||
"17060":{
|
||||
"inLabel":17060,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.5.5"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.5"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
310
tests/topotests/ospf-sr-topo2/rt3/step8/show_ip_route.ref
Normal file
310
tests/topotests/ospf-sr-topo2/rt3/step8/show_ip_route.ref
Normal file
@ -0,0 +1,310 @@
|
||||
{
|
||||
"1.1.1.1\/32":[
|
||||
{
|
||||
"prefix":"1.1.1.1\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.1",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
3
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"2.2.2.2\/32":[
|
||||
{
|
||||
"prefix":"2.2.2.2\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"4.4.4.4\/32":[
|
||||
{
|
||||
"prefix":"4.4.4.4\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16050
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
85
tests/topotests/ospf-sr-topo2/rt3/step8/show_mpls_table.ref
Normal file
85
tests/topotests/ospf-sr-topo2/rt3/step8/show_mpls_table.ref
Normal file
@ -0,0 +1,85 @@
|
||||
{
|
||||
"17010":{
|
||||
"inLabel":17010,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
"17020":{
|
||||
"inLabel":17020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"17030":{
|
||||
"inLabel":17030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
},
|
||||
"17040":{
|
||||
"inLabel":17040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"17050":{
|
||||
"inLabel":17050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.5.5"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.5"
|
||||
}
|
||||
]
|
||||
},
|
||||
"17060":{
|
||||
"inLabel":17060,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.5.5"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.5"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
310
tests/topotests/ospf-sr-topo2/rt3/step9/show_ip_route.ref
Normal file
310
tests/topotests/ospf-sr-topo2/rt3/step9/show_ip_route.ref
Normal file
@ -0,0 +1,310 @@
|
||||
{
|
||||
"1.1.1.1\/32":[
|
||||
{
|
||||
"prefix":"1.1.1.1\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.1",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16010
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"2.2.2.2\/32":[
|
||||
{
|
||||
"prefix":"2.2.2.2\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"4.4.4.4\/32":[
|
||||
{
|
||||
"prefix":"4.4.4.4\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16050
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16060
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.1.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-sw1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
85
tests/topotests/ospf-sr-topo2/rt3/step9/show_mpls_table.ref
Normal file
85
tests/topotests/ospf-sr-topo2/rt3/step9/show_mpls_table.ref
Normal file
@ -0,0 +1,85 @@
|
||||
{
|
||||
"17010":{
|
||||
"inLabel":17010,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16010,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
"17020":{
|
||||
"inLabel":17020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"17030":{
|
||||
"inLabel":17030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
},
|
||||
"17040":{
|
||||
"inLabel":17040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"17050":{
|
||||
"inLabel":17050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.5.5"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.5"
|
||||
}
|
||||
]
|
||||
},
|
||||
"17060":{
|
||||
"inLabel":17060,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.5.5"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16060,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.5"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
24
tests/topotests/ospf-sr-topo2/rt3/zebra.conf
Normal file
24
tests/topotests/ospf-sr-topo2/rt3/zebra.conf
Normal file
@ -0,0 +1,24 @@
|
||||
log file zebra.log
|
||||
!
|
||||
hostname rt3
|
||||
!
|
||||
debug zebra kernel
|
||||
debug zebra packet
|
||||
debug zebra mpls
|
||||
!
|
||||
interface lo
|
||||
ip address 3.3.3.3/32
|
||||
!
|
||||
interface eth-sw1
|
||||
ip address 10.0.1.3/24
|
||||
!
|
||||
interface eth-rt5-1
|
||||
ip address 10.0.4.3/24
|
||||
!
|
||||
interface eth-rt5-2
|
||||
ip address 10.0.5.3/24
|
||||
!
|
||||
ip forwarding
|
||||
!
|
||||
line vty
|
||||
!
|
38
tests/topotests/ospf-sr-topo2/rt4/ospfd.conf
Normal file
38
tests/topotests/ospf-sr-topo2/rt4/ospfd.conf
Normal file
@ -0,0 +1,38 @@
|
||||
password 1
|
||||
hostname rt4
|
||||
log file ospfd.log
|
||||
!
|
||||
debug ospf sr
|
||||
debug ospf te
|
||||
debug ospf event
|
||||
debug ospf lsa
|
||||
debug ospf zebra
|
||||
!
|
||||
interface lo
|
||||
!
|
||||
interface eth-rt2-1
|
||||
ip ospf network point-to-point
|
||||
!
|
||||
interface eth-rt2-2
|
||||
ip ospf network point-to-point
|
||||
!
|
||||
interface eth-rt5
|
||||
ip ospf network point-to-point
|
||||
!
|
||||
interface eth-rt6
|
||||
ip ospf network point-to-point
|
||||
!
|
||||
router ospf
|
||||
ospf router-id 4.4.4.4
|
||||
network 4.4.4.4/32 area 0.0.0.0
|
||||
network 10.0.0.0/16 area 0.0.0.0
|
||||
capability opaque
|
||||
mpls-te on
|
||||
mpls-te router-address 4.4.4.4
|
||||
router-info area 0.0.0.0
|
||||
passive-interface lo
|
||||
segment-routing on
|
||||
segment-routing global-block 16000 23999
|
||||
segment-routing node-msd 8
|
||||
segment-routing prefix 4.4.4.4/32 index 40 no-php-flag
|
||||
!
|
311
tests/topotests/ospf-sr-topo2/rt4/step1/show_ip_route.ref
Normal file
311
tests/topotests/ospf-sr-topo2/rt4/step1/show_ip_route.ref
Normal file
@ -0,0 +1,311 @@
|
||||
{
|
||||
"1.1.1.1\/32":[
|
||||
{
|
||||
"prefix":"1.1.1.1\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16010
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16010
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"2.2.2.2\/32":[
|
||||
{
|
||||
"prefix":"2.2.2.2\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"3.3.3.3\/32":[
|
||||
{
|
||||
"prefix":"3.3.3.3\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16030
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16030
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.6.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16030
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.6.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true,
|
||||
"labels":[
|
||||
0
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.6.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.6.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt5",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.6.5",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt5",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
97
tests/topotests/ospf-sr-topo2/rt4/step1/show_mpls_table.ref
Normal file
97
tests/topotests/ospf-sr-topo2/rt4/step1/show_mpls_table.ref
Normal file
@ -0,0 +1,97 @@
|
||||
{
|
||||
"16010":{
|
||||
"inLabel":16010,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16010,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.2"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16010,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16020":{
|
||||
"inLabel":16020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.2"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16030":{
|
||||
"inLabel":16030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.2"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.2"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.6.5"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16040":{
|
||||
"inLabel":16040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
},
|
||||
"16050":{
|
||||
"inLabel":16050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.6.5"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16060":{
|
||||
"inLabel":16060,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":0,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.7.6"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
278
tests/topotests/ospf-sr-topo2/rt4/step10/show_ip_route.ref
Normal file
278
tests/topotests/ospf-sr-topo2/rt4/step10/show_ip_route.ref
Normal file
@ -0,0 +1,278 @@
|
||||
{
|
||||
"1.1.1.1\/32":[
|
||||
{
|
||||
"prefix":"1.1.1.1\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16010
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"2.2.2.2\/32":[
|
||||
{
|
||||
"prefix":"2.2.2.2\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"3.3.3.3\/32":[
|
||||
{
|
||||
"prefix":"3.3.3.3\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16030
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true,
|
||||
"labels":[
|
||||
18050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true,
|
||||
"labels":[
|
||||
3
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
73
tests/topotests/ospf-sr-topo2/rt4/step10/show_mpls_table.ref
Normal file
73
tests/topotests/ospf-sr-topo2/rt4/step10/show_mpls_table.ref
Normal file
@ -0,0 +1,73 @@
|
||||
{
|
||||
"16010":{
|
||||
"inLabel":16010,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16010,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16020":{
|
||||
"inLabel":16020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16030":{
|
||||
"inLabel":16030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16040":{
|
||||
"inLabel":16040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
},
|
||||
"16050":{
|
||||
"inLabel":16050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":18050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.7.6"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16060":{
|
||||
"inLabel":16060,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.7.6"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
324
tests/topotests/ospf-sr-topo2/rt4/step2/show_ip_route.ref
Normal file
324
tests/topotests/ospf-sr-topo2/rt4/step2/show_ip_route.ref
Normal file
@ -0,0 +1,324 @@
|
||||
{
|
||||
"1.1.1.1\/32":[
|
||||
{
|
||||
"prefix":"1.1.1.1\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16010
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16010
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"2.2.2.2\/32":[
|
||||
{
|
||||
"prefix":"2.2.2.2\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"3.3.3.3\/32":[
|
||||
{
|
||||
"prefix":"3.3.3.3\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16030
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16030
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true,
|
||||
"labels":[
|
||||
0
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
91
tests/topotests/ospf-sr-topo2/rt4/step2/show_mpls_table.ref
Normal file
91
tests/topotests/ospf-sr-topo2/rt4/step2/show_mpls_table.ref
Normal file
@ -0,0 +1,91 @@
|
||||
{
|
||||
"16010":{
|
||||
"inLabel":16010,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16010,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.2"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16010,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16020":{
|
||||
"inLabel":16020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.2"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16030":{
|
||||
"inLabel":16030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.2"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16040":{
|
||||
"inLabel":16040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
},
|
||||
"16050":{
|
||||
"inLabel":16050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.7.6"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16060":{
|
||||
"inLabel":16060,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":0,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.7.6"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
296
tests/topotests/ospf-sr-topo2/rt4/step3/show_ip_route.ref
Normal file
296
tests/topotests/ospf-sr-topo2/rt4/step3/show_ip_route.ref
Normal file
@ -0,0 +1,296 @@
|
||||
{
|
||||
"1.1.1.1\/32":[
|
||||
{
|
||||
"prefix":"1.1.1.1\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16010
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16010
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"2.2.2.2\/32":[
|
||||
{
|
||||
"prefix":"2.2.2.2\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"3.3.3.3\/32":[
|
||||
{
|
||||
"prefix":"3.3.3.3\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16030
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16030
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16050
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":40,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":40,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
85
tests/topotests/ospf-sr-topo2/rt4/step3/show_mpls_table.ref
Normal file
85
tests/topotests/ospf-sr-topo2/rt4/step3/show_mpls_table.ref
Normal file
@ -0,0 +1,85 @@
|
||||
{
|
||||
"16010":{
|
||||
"inLabel":16010,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16010,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.2"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16010,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16020":{
|
||||
"inLabel":16020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.2"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16030":{
|
||||
"inLabel":16030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.2"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16040":{
|
||||
"inLabel":16040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
},
|
||||
"16050":{
|
||||
"inLabel":16050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.2"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.2"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
324
tests/topotests/ospf-sr-topo2/rt4/step4/show_ip_route.ref
Normal file
324
tests/topotests/ospf-sr-topo2/rt4/step4/show_ip_route.ref
Normal file
@ -0,0 +1,324 @@
|
||||
{
|
||||
"1.1.1.1\/32":[
|
||||
{
|
||||
"prefix":"1.1.1.1\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16010
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16010
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"2.2.2.2\/32":[
|
||||
{
|
||||
"prefix":"2.2.2.2\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"3.3.3.3\/32":[
|
||||
{
|
||||
"prefix":"3.3.3.3\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16030
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16030
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true,
|
||||
"labels":[
|
||||
18050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true,
|
||||
"labels":[
|
||||
0
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
91
tests/topotests/ospf-sr-topo2/rt4/step4/show_mpls_table.ref
Normal file
91
tests/topotests/ospf-sr-topo2/rt4/step4/show_mpls_table.ref
Normal file
@ -0,0 +1,91 @@
|
||||
{
|
||||
"16010":{
|
||||
"inLabel":16010,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16010,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.2"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16010,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16020":{
|
||||
"inLabel":16020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.2"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16030":{
|
||||
"inLabel":16030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.2"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16040":{
|
||||
"inLabel":16040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
},
|
||||
"16050":{
|
||||
"inLabel":16050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":18050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.7.6"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16060":{
|
||||
"inLabel":16060,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":0,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.7.6"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
318
tests/topotests/ospf-sr-topo2/rt4/step5/show_ip_route.ref
Normal file
318
tests/topotests/ospf-sr-topo2/rt4/step5/show_ip_route.ref
Normal file
@ -0,0 +1,318 @@
|
||||
{
|
||||
"1.1.1.1\/32":[
|
||||
{
|
||||
"prefix":"1.1.1.1\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16010
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16010
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"2.2.2.2\/32":[
|
||||
{
|
||||
"prefix":"2.2.2.2\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"3.3.3.3\/32":[
|
||||
{
|
||||
"prefix":"3.3.3.3\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16030
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16030
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
67
tests/topotests/ospf-sr-topo2/rt4/step5/show_mpls_table.ref
Normal file
67
tests/topotests/ospf-sr-topo2/rt4/step5/show_mpls_table.ref
Normal file
@ -0,0 +1,67 @@
|
||||
{
|
||||
"16010":{
|
||||
"inLabel":16010,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16010,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.2"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16010,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16020":{
|
||||
"inLabel":16020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.2"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16030":{
|
||||
"inLabel":16030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.2"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16040":{
|
||||
"inLabel":16040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
324
tests/topotests/ospf-sr-topo2/rt4/step6/show_ip_route.ref
Normal file
324
tests/topotests/ospf-sr-topo2/rt4/step6/show_ip_route.ref
Normal file
@ -0,0 +1,324 @@
|
||||
{
|
||||
"1.1.1.1\/32":[
|
||||
{
|
||||
"prefix":"1.1.1.1\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16010
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16010
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"2.2.2.2\/32":[
|
||||
{
|
||||
"prefix":"2.2.2.2\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"3.3.3.3\/32":[
|
||||
{
|
||||
"prefix":"3.3.3.3\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16030
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16030
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true,
|
||||
"labels":[
|
||||
18050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true,
|
||||
"labels":[
|
||||
0
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
91
tests/topotests/ospf-sr-topo2/rt4/step6/show_mpls_table.ref
Normal file
91
tests/topotests/ospf-sr-topo2/rt4/step6/show_mpls_table.ref
Normal file
@ -0,0 +1,91 @@
|
||||
{
|
||||
"16010":{
|
||||
"inLabel":16010,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16010,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.2"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16010,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16020":{
|
||||
"inLabel":16020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.2"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16030":{
|
||||
"inLabel":16030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.2"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16040":{
|
||||
"inLabel":16040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
},
|
||||
"16050":{
|
||||
"inLabel":16050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":18050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.7.6"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16060":{
|
||||
"inLabel":16060,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":0,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.7.6"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
318
tests/topotests/ospf-sr-topo2/rt4/step7/show_ip_route.ref
Normal file
318
tests/topotests/ospf-sr-topo2/rt4/step7/show_ip_route.ref
Normal file
@ -0,0 +1,318 @@
|
||||
{
|
||||
"1.1.1.1\/32":[
|
||||
{
|
||||
"prefix":"1.1.1.1\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"2.2.2.2\/32":[
|
||||
{
|
||||
"prefix":"2.2.2.2\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"3.3.3.3\/32":[
|
||||
{
|
||||
"prefix":"3.3.3.3\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16030
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16030
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true,
|
||||
"labels":[
|
||||
18050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true,
|
||||
"labels":[
|
||||
0
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
73
tests/topotests/ospf-sr-topo2/rt4/step7/show_mpls_table.ref
Normal file
73
tests/topotests/ospf-sr-topo2/rt4/step7/show_mpls_table.ref
Normal file
@ -0,0 +1,73 @@
|
||||
{
|
||||
"16020":{
|
||||
"inLabel":16020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.2"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16030":{
|
||||
"inLabel":16030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.2"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16040":{
|
||||
"inLabel":16040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
},
|
||||
"16050":{
|
||||
"inLabel":16050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":18050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.7.6"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16060":{
|
||||
"inLabel":16060,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":0,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.7.6"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
324
tests/topotests/ospf-sr-topo2/rt4/step8/show_ip_route.ref
Normal file
324
tests/topotests/ospf-sr-topo2/rt4/step8/show_ip_route.ref
Normal file
@ -0,0 +1,324 @@
|
||||
{
|
||||
"1.1.1.1\/32":[
|
||||
{
|
||||
"prefix":"1.1.1.1\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16010
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16010
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"2.2.2.2\/32":[
|
||||
{
|
||||
"prefix":"2.2.2.2\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"3.3.3.3\/32":[
|
||||
{
|
||||
"prefix":"3.3.3.3\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16030
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16030
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true,
|
||||
"labels":[
|
||||
18050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true,
|
||||
"labels":[
|
||||
0
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
91
tests/topotests/ospf-sr-topo2/rt4/step8/show_mpls_table.ref
Normal file
91
tests/topotests/ospf-sr-topo2/rt4/step8/show_mpls_table.ref
Normal file
@ -0,0 +1,91 @@
|
||||
{
|
||||
"16010":{
|
||||
"inLabel":16010,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16010,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.2"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16010,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16020":{
|
||||
"inLabel":16020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.2"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16030":{
|
||||
"inLabel":16030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.2"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16040":{
|
||||
"inLabel":16040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
},
|
||||
"16050":{
|
||||
"inLabel":16050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":18050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.7.6"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16060":{
|
||||
"inLabel":16060,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":0,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.7.6"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
324
tests/topotests/ospf-sr-topo2/rt4/step9/show_ip_route.ref
Normal file
324
tests/topotests/ospf-sr-topo2/rt4/step9/show_ip_route.ref
Normal file
@ -0,0 +1,324 @@
|
||||
{
|
||||
"1.1.1.1\/32":[
|
||||
{
|
||||
"prefix":"1.1.1.1\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16010
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16010
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"2.2.2.2\/32":[
|
||||
{
|
||||
"prefix":"2.2.2.2\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"3.3.3.3\/32":[
|
||||
{
|
||||
"prefix":"3.3.3.3\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16030
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16030
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"5.5.5.5\/32":[
|
||||
{
|
||||
"prefix":"5.5.5.5\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true,
|
||||
"labels":[
|
||||
18050
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true,
|
||||
"labels":[
|
||||
3
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.2.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.3.2",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt2-2",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.7.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
91
tests/topotests/ospf-sr-topo2/rt4/step9/show_mpls_table.ref
Normal file
91
tests/topotests/ospf-sr-topo2/rt4/step9/show_mpls_table.ref
Normal file
@ -0,0 +1,91 @@
|
||||
{
|
||||
"16010":{
|
||||
"inLabel":16010,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16010,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.2"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16010,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16020":{
|
||||
"inLabel":16020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.2"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16030":{
|
||||
"inLabel":16030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.2.2"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16040":{
|
||||
"inLabel":16040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
},
|
||||
"16050":{
|
||||
"inLabel":16050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":18050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.7.6"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16060":{
|
||||
"inLabel":16060,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.7.6"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
27
tests/topotests/ospf-sr-topo2/rt4/zebra.conf
Normal file
27
tests/topotests/ospf-sr-topo2/rt4/zebra.conf
Normal file
@ -0,0 +1,27 @@
|
||||
log file zebra.log
|
||||
!
|
||||
hostname rt4
|
||||
!
|
||||
debug zebra kernel
|
||||
debug zebra packet
|
||||
debug zebra mpls
|
||||
!
|
||||
interface lo
|
||||
ip address 4.4.4.4/32
|
||||
!
|
||||
interface eth-rt2-1
|
||||
ip address 10.0.2.4/24
|
||||
!
|
||||
interface eth-rt2-2
|
||||
ip address 10.0.3.4/24
|
||||
!
|
||||
interface eth-rt5
|
||||
ip address 10.0.6.4/24
|
||||
!
|
||||
interface eth-rt6
|
||||
ip address 10.0.7.4/24
|
||||
!
|
||||
ip forwarding
|
||||
!
|
||||
line vty
|
||||
!
|
38
tests/topotests/ospf-sr-topo2/rt5/ospfd.conf
Normal file
38
tests/topotests/ospf-sr-topo2/rt5/ospfd.conf
Normal file
@ -0,0 +1,38 @@
|
||||
password 1
|
||||
hostname rt5
|
||||
log file ospfd.log
|
||||
!
|
||||
debug ospf sr
|
||||
debug ospf te
|
||||
debug ospf event
|
||||
debug ospf lsa
|
||||
debug ospf zebra
|
||||
!
|
||||
interface lo
|
||||
!
|
||||
interface eth-rt3-1
|
||||
ip ospf network point-to-point
|
||||
!
|
||||
interface eth-rt3-2
|
||||
ip ospf network point-to-point
|
||||
!
|
||||
interface eth-rt4
|
||||
ip ospf network point-to-point
|
||||
!
|
||||
interface eth-rt6
|
||||
ip ospf network point-to-point
|
||||
!
|
||||
router ospf
|
||||
ospf router-id 5.5.5.5
|
||||
network 5.5.5.5/32 area 0.0.0.0
|
||||
network 10.0.0.0/16 area 0.0.0.0
|
||||
capability opaque
|
||||
mpls-te on
|
||||
mpls-te router-address 5.5.5.5
|
||||
router-info area 0.0.0.0
|
||||
passive-interface lo
|
||||
segment-routing on
|
||||
segment-routing global-block 16000 23999
|
||||
segment-routing node-msd 8
|
||||
segment-routing prefix 5.5.5.5/32 index 50 no-php-flag
|
||||
!
|
311
tests/topotests/ospf-sr-topo2/rt5/step1/show_ip_route.ref
Normal file
311
tests/topotests/ospf-sr-topo2/rt5/step1/show_ip_route.ref
Normal file
@ -0,0 +1,311 @@
|
||||
{
|
||||
"1.1.1.1\/32":[
|
||||
{
|
||||
"prefix":"1.1.1.1\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17010
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17010
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"2.2.2.2\/32":[
|
||||
{
|
||||
"prefix":"2.2.2.2\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17020
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17020
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.6.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16020
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"3.3.3.3\/32":[
|
||||
{
|
||||
"prefix":"3.3.3.3\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17030
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17030
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"4.4.4.4\/32":[
|
||||
{
|
||||
"prefix":"4.4.4.4\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.6.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.8.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true,
|
||||
"labels":[
|
||||
0
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.6.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.6.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt3-1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt3-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.6.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.6.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt4",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.6.4",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt4",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.8.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
97
tests/topotests/ospf-sr-topo2/rt5/step1/show_mpls_table.ref
Normal file
97
tests/topotests/ospf-sr-topo2/rt5/step1/show_mpls_table.ref
Normal file
@ -0,0 +1,97 @@
|
||||
{
|
||||
"16010":{
|
||||
"inLabel":16010,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17010,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.5.3"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17010,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16020":{
|
||||
"inLabel":16020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.5.3"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.3"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.6.4"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16030":{
|
||||
"inLabel":16030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.5.3"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16040":{
|
||||
"inLabel":16040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.6.4"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16050":{
|
||||
"inLabel":16050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
},
|
||||
"16060":{
|
||||
"inLabel":16060,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":0,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.8.6"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
300
tests/topotests/ospf-sr-topo2/rt5/step10/show_ip_route.ref
Normal file
300
tests/topotests/ospf-sr-topo2/rt5/step10/show_ip_route.ref
Normal file
@ -0,0 +1,300 @@
|
||||
{
|
||||
"1.1.1.1\/32":[
|
||||
{
|
||||
"prefix":"1.1.1.1\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17010
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17010
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"2.2.2.2\/32":[
|
||||
{
|
||||
"prefix":"2.2.2.2\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17020
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17020
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"3.3.3.3\/32":[
|
||||
{
|
||||
"prefix":"3.3.3.3\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17030
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17030
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"4.4.4.4\/32":[
|
||||
{
|
||||
"prefix":"4.4.4.4\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.8.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true,
|
||||
"labels":[
|
||||
18040
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.8.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true,
|
||||
"labels":[
|
||||
3
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-2",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.8.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt3-1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt3-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.8.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
91
tests/topotests/ospf-sr-topo2/rt5/step10/show_mpls_table.ref
Normal file
91
tests/topotests/ospf-sr-topo2/rt5/step10/show_mpls_table.ref
Normal file
@ -0,0 +1,91 @@
|
||||
{
|
||||
"16010":{
|
||||
"inLabel":16010,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17010,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.5.3"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17010,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16020":{
|
||||
"inLabel":16020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.5.3"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16030":{
|
||||
"inLabel":16030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.5.3"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16040":{
|
||||
"inLabel":16040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":18040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.8.6"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16050":{
|
||||
"inLabel":16050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
},
|
||||
"16060":{
|
||||
"inLabel":16060,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.8.6"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
307
tests/topotests/ospf-sr-topo2/rt5/step2/show_ip_route.ref
Normal file
307
tests/topotests/ospf-sr-topo2/rt5/step2/show_ip_route.ref
Normal file
@ -0,0 +1,307 @@
|
||||
{
|
||||
"1.1.1.1\/32":[
|
||||
{
|
||||
"prefix":"1.1.1.1\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17010
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17010
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"2.2.2.2\/32":[
|
||||
{
|
||||
"prefix":"2.2.2.2\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17020
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17020
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"3.3.3.3\/32":[
|
||||
{
|
||||
"prefix":"3.3.3.3\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17030
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17030
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"4.4.4.4\/32":[
|
||||
{
|
||||
"prefix":"4.4.4.4\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.8.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true,
|
||||
"labels":[
|
||||
16040
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.8.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true,
|
||||
"labels":[
|
||||
0
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-2",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.8.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-2",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.8.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt3-1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt3-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.8.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
91
tests/topotests/ospf-sr-topo2/rt5/step2/show_mpls_table.ref
Normal file
91
tests/topotests/ospf-sr-topo2/rt5/step2/show_mpls_table.ref
Normal file
@ -0,0 +1,91 @@
|
||||
{
|
||||
"16010":{
|
||||
"inLabel":16010,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17010,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.5.3"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17010,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16020":{
|
||||
"inLabel":16020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.5.3"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16030":{
|
||||
"inLabel":16030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.5.3"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16040":{
|
||||
"inLabel":16040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.8.6"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16050":{
|
||||
"inLabel":16050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
},
|
||||
"16060":{
|
||||
"inLabel":16060,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":0,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.8.6"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
272
tests/topotests/ospf-sr-topo2/rt5/step3/show_ip_route.ref
Normal file
272
tests/topotests/ospf-sr-topo2/rt5/step3/show_ip_route.ref
Normal file
@ -0,0 +1,272 @@
|
||||
{
|
||||
"1.1.1.1\/32":[
|
||||
{
|
||||
"prefix":"1.1.1.1\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17010
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17010
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"2.2.2.2\/32":[
|
||||
{
|
||||
"prefix":"2.2.2.2\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17020
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17020
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"3.3.3.3\/32":[
|
||||
{
|
||||
"prefix":"3.3.3.3\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17030
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17030
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"4.4.4.4\/32":[
|
||||
{
|
||||
"prefix":"4.4.4.4\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17040
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17040
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt3-1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt3-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":40,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
85
tests/topotests/ospf-sr-topo2/rt5/step3/show_mpls_table.ref
Normal file
85
tests/topotests/ospf-sr-topo2/rt5/step3/show_mpls_table.ref
Normal file
@ -0,0 +1,85 @@
|
||||
{
|
||||
"16010":{
|
||||
"inLabel":16010,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17010,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.5.3"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17010,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16020":{
|
||||
"inLabel":16020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.5.3"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16030":{
|
||||
"inLabel":16030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.5.3"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16040":{
|
||||
"inLabel":16040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.5.3"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16050":{
|
||||
"inLabel":16050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
307
tests/topotests/ospf-sr-topo2/rt5/step4/show_ip_route.ref
Normal file
307
tests/topotests/ospf-sr-topo2/rt5/step4/show_ip_route.ref
Normal file
@ -0,0 +1,307 @@
|
||||
{
|
||||
"1.1.1.1\/32":[
|
||||
{
|
||||
"prefix":"1.1.1.1\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17010
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17010
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"2.2.2.2\/32":[
|
||||
{
|
||||
"prefix":"2.2.2.2\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17020
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17020
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"3.3.3.3\/32":[
|
||||
{
|
||||
"prefix":"3.3.3.3\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-1",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17030
|
||||
]
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-2",
|
||||
"active":true,
|
||||
"labels":[
|
||||
17030
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"4.4.4.4\/32":[
|
||||
{
|
||||
"prefix":"4.4.4.4\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.8.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true,
|
||||
"labels":[
|
||||
18040
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"6.6.6.6\/32":[
|
||||
{
|
||||
"prefix":"6.6.6.6\/32",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.8.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true,
|
||||
"labels":[
|
||||
0
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.1.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.1.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.2.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.2.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-2",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.8.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.3.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.3.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":30,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.4.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-1",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.5.3",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt3-2",
|
||||
"active":true
|
||||
},
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.8.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.4.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.4.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt3-1",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.5.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.5.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt3-2",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.7.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.7.0\/24",
|
||||
"protocol":"ospf",
|
||||
"selected":true,
|
||||
"destSelected":true,
|
||||
"distance":110,
|
||||
"metric":20,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"fib":true,
|
||||
"ip":"10.0.8.6",
|
||||
"afi":"ipv4",
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"10.0.8.0\/24":[
|
||||
{
|
||||
"prefix":"10.0.8.0\/24",
|
||||
"protocol":"ospf",
|
||||
"distance":110,
|
||||
"metric":10,
|
||||
"nexthops":[
|
||||
{
|
||||
"directlyConnected":true,
|
||||
"interfaceName":"eth-rt6",
|
||||
"active":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
91
tests/topotests/ospf-sr-topo2/rt5/step4/show_mpls_table.ref
Normal file
91
tests/topotests/ospf-sr-topo2/rt5/step4/show_mpls_table.ref
Normal file
@ -0,0 +1,91 @@
|
||||
{
|
||||
"16010":{
|
||||
"inLabel":16010,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17010,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.5.3"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17010,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16020":{
|
||||
"inLabel":16020,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.5.3"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17020,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16030":{
|
||||
"inLabel":16030,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.5.3"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":17030,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16040":{
|
||||
"inLabel":16040,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":18040,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.8.6"
|
||||
}
|
||||
]
|
||||
},
|
||||
"16050":{
|
||||
"inLabel":16050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
},
|
||||
"16060":{
|
||||
"inLabel":16060,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":0,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.8.6"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user