mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 18:42:48 +00:00
Merge pull request #7827 from GalaxyGorilla/ospf_sr_topotests
tests: enhance OSPF SR topotests
This commit is contained in:
commit
7c760bb60d
0
tests/topotests/ospf-sr-topo1/__init__.py
Executable file → Normal file
0
tests/topotests/ospf-sr-topo1/__init__.py
Executable file → Normal file
@ -1,161 +0,0 @@
|
||||
{
|
||||
"srdbID":"10.0.255.1",
|
||||
"srNodes":[
|
||||
{
|
||||
"routerID":"10.0.255.2",
|
||||
"srgbSize":8000,
|
||||
"srgbLabel":16000,
|
||||
"srlbSize":1000,
|
||||
"srlbLabel":15000,
|
||||
"algorithms":[
|
||||
{
|
||||
"0":"SPF"
|
||||
}
|
||||
],
|
||||
"extendedPrefix":[
|
||||
{
|
||||
"prefix":"10.0.255.2\/32",
|
||||
"sid":200,
|
||||
"inputLabel":20200,
|
||||
"prefixRoute":[
|
||||
{
|
||||
"outputLabel":3,
|
||||
"interface":"r1-eth0",
|
||||
"nexthop":"10.0.0.2"
|
||||
},
|
||||
{
|
||||
"outputLabel":3,
|
||||
"interface":"r1-eth1",
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"routerID":"10.0.255.4",
|
||||
"srgbSize":10000,
|
||||
"srgbLabel":10000,
|
||||
"srlbSize":1000,
|
||||
"srlbLabel":5000,
|
||||
"algorithms":[
|
||||
{
|
||||
"0":"SPF"
|
||||
}
|
||||
],
|
||||
"nodeMsd":12,
|
||||
"extendedPrefix":[
|
||||
{
|
||||
"prefix":"10.0.255.4\/32",
|
||||
"sid":400,
|
||||
"inputLabel":20400,
|
||||
"prefixRoute":[
|
||||
{
|
||||
"outputLabel":16400,
|
||||
"interface":"r1-eth0",
|
||||
"nexthop":"10.0.0.2"
|
||||
},
|
||||
{
|
||||
"outputLabel":16400,
|
||||
"interface":"r1-eth1",
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"routerID":"10.0.255.3",
|
||||
"srgbSize":10000,
|
||||
"srgbLabel":10000,
|
||||
"srlbSize":1000,
|
||||
"srlbLabel":5000,
|
||||
"algorithms":[
|
||||
{
|
||||
"0":"SPF"
|
||||
}
|
||||
],
|
||||
"nodeMsd":8,
|
||||
"extendedPrefix":[
|
||||
{
|
||||
"prefix":"10.0.255.3\/32",
|
||||
"sid":300,
|
||||
"inputLabel":20300,
|
||||
"prefixRoute":[
|
||||
{
|
||||
"outputLabel":16300,
|
||||
"interface":"r1-eth0",
|
||||
"nexthop":"10.0.0.2"
|
||||
},
|
||||
{
|
||||
"outputLabel":16300,
|
||||
"interface":"r1-eth1",
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"routerID":"10.0.255.1",
|
||||
"srgbSize":10000,
|
||||
"srgbLabel":20000,
|
||||
"srlbSize":1000,
|
||||
"srlbLabel":15000,
|
||||
"algorithms":[
|
||||
{
|
||||
"0":"SPF"
|
||||
}
|
||||
],
|
||||
"nodeMsd":16,
|
||||
"extendedPrefix":[
|
||||
{
|
||||
"prefix":"10.0.255.1\/32",
|
||||
"sid":100,
|
||||
"inputLabel":0,
|
||||
"prefixRoute":[
|
||||
{
|
||||
"outputLabel":0,
|
||||
"interface":"lo",
|
||||
"nexthop":"10.0.255.1"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"extendedLink":[
|
||||
{
|
||||
"prefix":"10.0.0.1\/32",
|
||||
"sid":"*",
|
||||
"inputLabel":"*",
|
||||
"outputLabel":3,
|
||||
"interface":"r1-eth0",
|
||||
"nexthop":"10.0.0.2"
|
||||
},
|
||||
{
|
||||
"prefix":"10.0.0.1\/32",
|
||||
"sid":"*",
|
||||
"inputLabel":"*",
|
||||
"outputLabel":3,
|
||||
"interface":"r1-eth0",
|
||||
"nexthop":"10.0.0.2"
|
||||
},
|
||||
{
|
||||
"prefix":"10.0.1.1\/32",
|
||||
"sid":"*",
|
||||
"inputLabel":"*",
|
||||
"outputLabel":3,
|
||||
"interface":"r1-eth1",
|
||||
"nexthop":"10.0.1.2"
|
||||
},
|
||||
{
|
||||
"prefix":"10.0.1.1\/32",
|
||||
"sid":"*",
|
||||
"inputLabel":"*",
|
||||
"outputLabel":3,
|
||||
"interface":"r1-eth1",
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
@ -1,27 +0,0 @@
|
||||
debug ospf sr
|
||||
!
|
||||
interface lo
|
||||
ip ospf area 0.0.0.0
|
||||
!
|
||||
interface r1-eth0
|
||||
ip ospf network point-to-point
|
||||
ip ospf hello-interval 2
|
||||
ip ospf dead-interval 10
|
||||
ip ospf area 0.0.0.0
|
||||
!
|
||||
interface r1-eth1
|
||||
ip ospf network point-to-point
|
||||
ip ospf hello-interval 2
|
||||
ip ospf dead-interval 10
|
||||
ip ospf area 0.0.0.0
|
||||
!
|
||||
router ospf
|
||||
ospf router-id 10.0.255.1
|
||||
capability opaque
|
||||
router-info area 0.0.0.0
|
||||
segment-routing on
|
||||
segment-routing node-msd 16
|
||||
segment-routing global-block 20000 29999
|
||||
segment-routing prefix 10.0.255.1/32 index 100 explicit-null
|
||||
!
|
||||
|
@ -1,12 +0,0 @@
|
||||
!
|
||||
interface lo
|
||||
ip address 10.0.255.1/32
|
||||
!
|
||||
interface r1-eth0
|
||||
ip address 10.0.0.1/24
|
||||
!
|
||||
interface r1-eth1
|
||||
ip address 10.0.1.1/24
|
||||
!
|
||||
ip forwarding
|
||||
!
|
@ -1,115 +0,0 @@
|
||||
[
|
||||
{
|
||||
"inLabel":20200,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"outLabelStack":[
|
||||
3
|
||||
],
|
||||
"distance":150,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"distance":150,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.0.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"inLabel":20300,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16300,
|
||||
"outLabelStack":[
|
||||
16300
|
||||
],
|
||||
"distance":150,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"inLabel":20400,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16400,
|
||||
"outLabelStack":[
|
||||
16400
|
||||
],
|
||||
"distance":150,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"inLabel":"*",
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"distance":150,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.0.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"inLabel":"*",
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"distance":150,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.0.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"inLabel":"*",
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"outLabelStack":[
|
||||
3
|
||||
],
|
||||
"distance":150,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"inLabel":"*",
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"outLabelStack":[
|
||||
3
|
||||
],
|
||||
"distance":150,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.2"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
@ -1,183 +0,0 @@
|
||||
{
|
||||
"srdbID":"10.0.255.2",
|
||||
"srNodes":[
|
||||
{
|
||||
"routerID":"10.0.255.2",
|
||||
"srgbSize":8000,
|
||||
"srgbLabel":16000,
|
||||
"srlbSize":1000,
|
||||
"srlbLabel":15000,
|
||||
"algorithms":[
|
||||
{
|
||||
"0":"SPF"
|
||||
}
|
||||
],
|
||||
"extendedPrefix":[
|
||||
{
|
||||
"prefix":"10.0.255.2\/32",
|
||||
"sid":200,
|
||||
"inputLabel":0,
|
||||
"prefixRoute":[
|
||||
{
|
||||
"outputLabel":0,
|
||||
"interface":"lo",
|
||||
"nexthop":"10.0.255.2"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"extendedLink":[
|
||||
{
|
||||
"prefix":"10.0.4.2\/32",
|
||||
"sid":"*",
|
||||
"inputLabel":"*",
|
||||
"outputLabel":3,
|
||||
"interface":"r2-eth3",
|
||||
"nexthop":"10.0.4.1"
|
||||
},
|
||||
{
|
||||
"prefix":"10.0.4.2\/32",
|
||||
"sid":"*",
|
||||
"inputLabel":"*",
|
||||
"outputLabel":3,
|
||||
"interface":"r2-eth3",
|
||||
"nexthop":"10.0.4.1"
|
||||
},
|
||||
{
|
||||
"prefix":"10.0.0.2\/32",
|
||||
"sid":"*",
|
||||
"inputLabel":"*",
|
||||
"outputLabel":3,
|
||||
"interface":"r2-eth0",
|
||||
"nexthop":"10.0.0.1"
|
||||
},
|
||||
{
|
||||
"prefix":"10.0.0.2\/32",
|
||||
"sid":"*",
|
||||
"inputLabel":"*",
|
||||
"outputLabel":3,
|
||||
"interface":"r2-eth0",
|
||||
"nexthop":"10.0.0.1"
|
||||
},
|
||||
{
|
||||
"prefix":"10.0.1.2\/32",
|
||||
"sid":"*",
|
||||
"inputLabel":"*",
|
||||
"outputLabel":3,
|
||||
"interface":"r2-eth1",
|
||||
"nexthop":"10.0.1.1"
|
||||
},
|
||||
{
|
||||
"prefix":"10.0.1.2\/32",
|
||||
"sid":"*",
|
||||
"inputLabel":"*",
|
||||
"outputLabel":3,
|
||||
"interface":"r2-eth1",
|
||||
"nexthop":"10.0.1.1"
|
||||
},
|
||||
{
|
||||
"prefix":"10.0.3.2\/32",
|
||||
"sid":"*",
|
||||
"inputLabel":"*",
|
||||
"outputLabel":3,
|
||||
"interface":"r2-eth2",
|
||||
"nexthop":"10.0.3.1"
|
||||
},
|
||||
{
|
||||
"prefix":"10.0.3.2\/32",
|
||||
"sid":"*",
|
||||
"inputLabel":"*",
|
||||
"outputLabel":3,
|
||||
"interface":"r2-eth2",
|
||||
"nexthop":"10.0.3.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"routerID":"10.0.255.4",
|
||||
"srgbSize":10000,
|
||||
"srgbLabel":10000,
|
||||
"srlbSize":1000,
|
||||
"srlbLabel":5000,
|
||||
"algorithms":[
|
||||
{
|
||||
"0":"SPF"
|
||||
}
|
||||
],
|
||||
"nodeMsd":12,
|
||||
"extendedPrefix":[
|
||||
{
|
||||
"prefix":"10.0.255.4\/32",
|
||||
"sid":400,
|
||||
"inputLabel":16400,
|
||||
"prefixRoute":[
|
||||
{
|
||||
"outputLabel":10400,
|
||||
"interface":"r2-eth3",
|
||||
"nexthop":"10.0.4.1"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"routerID":"10.0.255.3",
|
||||
"srgbSize":10000,
|
||||
"srgbLabel":10000,
|
||||
"srlbSize":1000,
|
||||
"srlbLabel":5000,
|
||||
"algorithms":[
|
||||
{
|
||||
"0":"SPF"
|
||||
}
|
||||
],
|
||||
"nodeMsd":8,
|
||||
"extendedPrefix":[
|
||||
{
|
||||
"prefix":"10.0.255.3\/32",
|
||||
"sid":300,
|
||||
"inputLabel":16300,
|
||||
"prefixRoute":[
|
||||
{
|
||||
"outputLabel":3,
|
||||
"interface":"r2-eth2",
|
||||
"nexthop":"10.0.3.1"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"routerID":"10.0.255.1",
|
||||
"srgbSize":10000,
|
||||
"srgbLabel":20000,
|
||||
"srlbSize":1000,
|
||||
"srlbLabel":15000,
|
||||
"algorithms":[
|
||||
{
|
||||
"0":"SPF"
|
||||
}
|
||||
],
|
||||
"nodeMsd":16,
|
||||
"extendedPrefix":[
|
||||
{
|
||||
"prefix":"10.0.255.1\/32",
|
||||
"sid":100,
|
||||
"inputLabel":16100,
|
||||
"prefixRoute":[
|
||||
{
|
||||
"outputLabel":0,
|
||||
"interface":"r2-eth0",
|
||||
"nexthop":"10.0.0.1"
|
||||
},
|
||||
{
|
||||
"outputLabel":0,
|
||||
"interface":"r2-eth1",
|
||||
"nexthop":"10.0.1.1"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
@ -1,36 +0,0 @@
|
||||
!
|
||||
debug ospf sr
|
||||
!
|
||||
interface lo
|
||||
ip ospf area 0.0.0.0
|
||||
!
|
||||
interface r2-eth0
|
||||
ip ospf network point-to-point
|
||||
ip ospf hello-interval 2
|
||||
ip ospf dead-interval 10
|
||||
ip ospf area 0.0.0.0
|
||||
!
|
||||
interface r2-eth1
|
||||
ip ospf network point-to-point
|
||||
ip ospf hello-interval 2
|
||||
ip ospf dead-interval 10
|
||||
ip ospf area 0.0.0.0
|
||||
!
|
||||
interface r2-eth2
|
||||
ip ospf area 0.0.0.0
|
||||
ip ospf hello-interval 2
|
||||
ip ospf dead-interval 10
|
||||
!
|
||||
interface r2-eth3
|
||||
ip ospf network point-to-point
|
||||
ip ospf hello-interval 2
|
||||
ip ospf dead-interval 10
|
||||
ip ospf area 0.0.0.0
|
||||
!
|
||||
router ospf
|
||||
ospf router-id 10.0.255.2
|
||||
capability opaque
|
||||
router-info area 0.0.0.0
|
||||
segment-routing on
|
||||
segment-routing prefix 10.0.255.2/32 index 200
|
||||
!
|
@ -1,18 +0,0 @@
|
||||
!
|
||||
interface lo
|
||||
ip address 10.0.255.2/32
|
||||
!
|
||||
interface r2-eth0
|
||||
ip address 10.0.0.2/24
|
||||
!
|
||||
interface r2-eth1
|
||||
ip address 10.0.1.2/24
|
||||
!
|
||||
interface r2-eth2
|
||||
ip address 10.0.3.2/24
|
||||
!
|
||||
interface r2-eth3
|
||||
ip address 10.0.4.2/24
|
||||
!
|
||||
ip forwarding
|
||||
!
|
@ -1,179 +0,0 @@
|
||||
[
|
||||
{
|
||||
"inLabel":16100,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":0,
|
||||
"outLabelStack":[
|
||||
0
|
||||
],
|
||||
"distance":150,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.1"
|
||||
},
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":0,
|
||||
"distance":150,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.0.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"inLabel":16300,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"outLabelStack":[
|
||||
3
|
||||
],
|
||||
"distance":150,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"inLabel":16400,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":10400,
|
||||
"outLabelStack":[
|
||||
10400
|
||||
],
|
||||
"distance":150,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"inLabel":"*",
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"outLabelStack":[
|
||||
3
|
||||
],
|
||||
"distance":150,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"inLabel":"*",
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"outLabelStack":[
|
||||
3
|
||||
],
|
||||
"distance":150,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"inLabel":"*",
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"outLabelStack":[
|
||||
3
|
||||
],
|
||||
"distance":150,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.0.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"inLabel":"*",
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"outLabelStack":[
|
||||
3
|
||||
],
|
||||
"distance":150,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.0.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"inLabel":"*",
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"outLabelStack":[
|
||||
3
|
||||
],
|
||||
"distance":150,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"inLabel":"*",
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"outLabelStack":[
|
||||
3
|
||||
],
|
||||
"distance":150,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.1.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"inLabel":"*",
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"distance":150,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"inLabel":"*",
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"distance":150,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.1"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
@ -1,130 +0,0 @@
|
||||
{
|
||||
"srdbID":"10.0.255.3",
|
||||
"srNodes":[
|
||||
{
|
||||
"routerID":"10.0.255.2",
|
||||
"srgbSize":8000,
|
||||
"srgbLabel":16000,
|
||||
"srlbSize":1000,
|
||||
"srlbLabel":15000,
|
||||
"algorithms":[
|
||||
{
|
||||
"0":"SPF"
|
||||
}
|
||||
],
|
||||
"extendedPrefix":[
|
||||
{
|
||||
"prefix":"10.0.255.2\/32",
|
||||
"sid":200,
|
||||
"inputLabel":10200,
|
||||
"prefixRoute":[
|
||||
{
|
||||
"outputLabel":3,
|
||||
"interface":"r3-eth0",
|
||||
"nexthop":"10.0.3.2"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"routerID":"10.0.255.4",
|
||||
"srgbSize":10000,
|
||||
"srgbLabel":10000,
|
||||
"srlbSize":1000,
|
||||
"srlbLabel":5000,
|
||||
"algorithms":[
|
||||
{
|
||||
"0":"SPF"
|
||||
}
|
||||
],
|
||||
"nodeMsd":12,
|
||||
"extendedPrefix":[
|
||||
{
|
||||
"prefix":"10.0.255.4\/32",
|
||||
"sid":400,
|
||||
"inputLabel":10400,
|
||||
"prefixRoute":[
|
||||
{
|
||||
"outputLabel":16400,
|
||||
"interface":"r3-eth0",
|
||||
"nexthop":"10.0.3.2"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"routerID":"10.0.255.3",
|
||||
"srgbSize":10000,
|
||||
"srgbLabel":10000,
|
||||
"srlbSize":1000,
|
||||
"srlbLabel":5000,
|
||||
"algorithms":[
|
||||
{
|
||||
"0":"SPF"
|
||||
}
|
||||
],
|
||||
"nodeMsd":8,
|
||||
"extendedPrefix":[
|
||||
{
|
||||
"prefix":"10.0.255.3\/32",
|
||||
"sid":300,
|
||||
"inputLabel":0,
|
||||
"prefixRoute":[
|
||||
{
|
||||
"outputLabel":0,
|
||||
"interface":"lo",
|
||||
"nexthop":"10.0.255.3"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"extendedLink":[
|
||||
{
|
||||
"prefix":"10.0.3.1\/32",
|
||||
"sid":"*",
|
||||
"inputLabel":"*",
|
||||
"outputLabel":3,
|
||||
"interface":"r3-eth0",
|
||||
"nexthop":"10.0.3.2"
|
||||
},
|
||||
{
|
||||
"prefix":"10.0.3.1\/32",
|
||||
"sid":"*",
|
||||
"inputLabel":"*",
|
||||
"outputLabel":3,
|
||||
"interface":"r3-eth0",
|
||||
"nexthop":"10.0.3.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"routerID":"10.0.255.1",
|
||||
"srgbSize":10000,
|
||||
"srgbLabel":20000,
|
||||
"srlbSize":1000,
|
||||
"srlbLabel":15000,
|
||||
"algorithms":[
|
||||
{
|
||||
"0":"SPF"
|
||||
}
|
||||
],
|
||||
"nodeMsd":16,
|
||||
"extendedPrefix":[
|
||||
{
|
||||
"prefix":"10.0.255.1\/32",
|
||||
"sid":100,
|
||||
"inputLabel":10100,
|
||||
"prefixRoute":[
|
||||
{
|
||||
"outputLabel":16100,
|
||||
"interface":"r3-eth0",
|
||||
"nexthop":"10.0.3.2"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
@ -1,22 +0,0 @@
|
||||
!
|
||||
interface lo
|
||||
ip ospf area 0.0.0.0
|
||||
ip ospf hello-interval 2
|
||||
ip ospf dead-interval 10
|
||||
!
|
||||
interface r3-eth0
|
||||
ip ospf area 0.0.0.0
|
||||
ip ospf hello-interval 2
|
||||
ip ospf dead-interval 10
|
||||
!
|
||||
!
|
||||
router ospf
|
||||
ospf router-id 10.0.255.3
|
||||
capability opaque
|
||||
router-info area 0.0.0.0
|
||||
segment-routing on
|
||||
segment-routing local-block 5000 5999
|
||||
segment-routing global-block 10000 19999
|
||||
segment-routing node-msd 8
|
||||
segment-routing prefix 10.0.255.3/32 index 300
|
||||
!
|
@ -1,9 +0,0 @@
|
||||
!
|
||||
interface lo
|
||||
ip address 10.0.255.3/32
|
||||
!
|
||||
interface r3-eth0
|
||||
ip address 10.0.3.1/24
|
||||
!
|
||||
ip forwarding
|
||||
!
|
@ -1,130 +0,0 @@
|
||||
{
|
||||
"srdbID":"10.0.255.4",
|
||||
"srNodes":[
|
||||
{
|
||||
"routerID":"10.0.255.2",
|
||||
"srgbSize":8000,
|
||||
"srgbLabel":16000,
|
||||
"srlbSize":1000,
|
||||
"srlbLabel":15000,
|
||||
"algorithms":[
|
||||
{
|
||||
"0":"SPF"
|
||||
}
|
||||
],
|
||||
"extendedPrefix":[
|
||||
{
|
||||
"prefix":"10.0.255.2\/32",
|
||||
"sid":200,
|
||||
"inputLabel":10200,
|
||||
"prefixRoute":[
|
||||
{
|
||||
"outputLabel":3,
|
||||
"interface":"r4-eth0",
|
||||
"nexthop":"10.0.4.2"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"routerID":"10.0.255.4",
|
||||
"srgbSize":10000,
|
||||
"srgbLabel":10000,
|
||||
"srlbSize":1000,
|
||||
"srlbLabel":5000,
|
||||
"algorithms":[
|
||||
{
|
||||
"0":"SPF"
|
||||
}
|
||||
],
|
||||
"nodeMsd":12,
|
||||
"extendedPrefix":[
|
||||
{
|
||||
"prefix":"10.0.255.4\/32",
|
||||
"sid":400,
|
||||
"inputLabel":10400,
|
||||
"prefixRoute":[
|
||||
{
|
||||
"outputLabel":3,
|
||||
"interface":"lo",
|
||||
"nexthop":"10.0.255.4"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"extendedLink":[
|
||||
{
|
||||
"prefix":"10.0.4.1\/32",
|
||||
"sid":"*",
|
||||
"inputLabel":"*",
|
||||
"outputLabel":3,
|
||||
"interface":"r4-eth0",
|
||||
"nexthop":"10.0.4.2"
|
||||
},
|
||||
{
|
||||
"prefix":"10.0.4.1\/32",
|
||||
"sid":"*",
|
||||
"inputLabel":"*",
|
||||
"outputLabel":3,
|
||||
"interface":"r4-eth0",
|
||||
"nexthop":"10.0.4.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"routerID":"10.0.255.3",
|
||||
"srgbSize":10000,
|
||||
"srgbLabel":10000,
|
||||
"srlbSize":1000,
|
||||
"srlbLabel":5000,
|
||||
"algorithms":[
|
||||
{
|
||||
"0":"SPF"
|
||||
}
|
||||
],
|
||||
"nodeMsd":8,
|
||||
"extendedPrefix":[
|
||||
{
|
||||
"prefix":"10.0.255.3\/32",
|
||||
"sid":300,
|
||||
"inputLabel":10300,
|
||||
"prefixRoute":[
|
||||
{
|
||||
"outputLabel":16300,
|
||||
"interface":"r4-eth0",
|
||||
"nexthop":"10.0.4.2"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"routerID":"10.0.255.1",
|
||||
"srgbSize":10000,
|
||||
"srgbLabel":20000,
|
||||
"srlbSize":1000,
|
||||
"srlbLabel":15000,
|
||||
"algorithms":[
|
||||
{
|
||||
"0":"SPF"
|
||||
}
|
||||
],
|
||||
"nodeMsd":16,
|
||||
"extendedPrefix":[
|
||||
{
|
||||
"prefix":"10.0.255.1\/32",
|
||||
"sid":100,
|
||||
"inputLabel":10100,
|
||||
"prefixRoute":[
|
||||
{
|
||||
"outputLabel":16100,
|
||||
"interface":"r4-eth0",
|
||||
"nexthop":"10.0.4.2"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
!
|
||||
interface lo
|
||||
ip ospf area 0.0.0.0
|
||||
ip ospf hello-interval 2
|
||||
ip ospf dead-interval 10
|
||||
!
|
||||
interface r4-eth0
|
||||
ip ospf network point-to-point
|
||||
ip ospf hello-interval 2
|
||||
ip ospf dead-interval 10
|
||||
ip ospf area 0.0.0.0
|
||||
!
|
||||
!
|
||||
router ospf
|
||||
ospf router-id 10.0.255.4
|
||||
capability opaque
|
||||
router-info area 0.0.0.0
|
||||
segment-routing on
|
||||
segment-routing local-block 5000 5999
|
||||
segment-routing global-block 10000 19999
|
||||
segment-routing node-msd 12
|
||||
segment-routing prefix 10.0.255.4/32 index 400 no-php-flag
|
||||
!
|
@ -1,9 +0,0 @@
|
||||
!
|
||||
interface lo
|
||||
ip address 10.0.255.4/32
|
||||
!
|
||||
interface r4-eth0
|
||||
ip address 10.0.4.1/24
|
||||
!
|
||||
ip forwarding
|
||||
!
|
@ -1,97 +0,0 @@
|
||||
[
|
||||
{
|
||||
"inLabel":10100,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16100,
|
||||
"outLabelStack":[
|
||||
16100
|
||||
],
|
||||
"distance":150,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"inLabel":10200,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"outLabelStack":[
|
||||
3
|
||||
],
|
||||
"distance":150,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"inLabel":10300,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16300,
|
||||
"outLabelStack":[
|
||||
16300
|
||||
],
|
||||
"distance":150,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"inLabel":10400,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"outLabelStack":[
|
||||
3
|
||||
],
|
||||
"distance":150,
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"inLabel":"*",
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"outLabelStack":[
|
||||
3
|
||||
],
|
||||
"distance":150,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"inLabel":"*",
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"outLabelStack":[
|
||||
3
|
||||
],
|
||||
"distance":150,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.4.2"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
29
tests/topotests/ospf-sr-topo1/rt1/ospfd.conf
Normal file
29
tests/topotests/ospf-sr-topo1/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-topo1/rt1/step1/show_ip_route.ref
Normal file
289
tests/topotests/ospf-sr-topo1/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-topo1/rt1/step1/show_mpls_table.ref
Normal file
68
tests/topotests/ospf-sr-topo1/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-topo1/rt1/step10/show_ip_route.ref
Normal file
282
tests/topotests/ospf-sr-topo1/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-topo1/rt1/step10/show_mpls_table.ref
Normal file
79
tests/topotests/ospf-sr-topo1/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-topo1/rt1/step2/show_ip_route.ref
Normal file
282
tests/topotests/ospf-sr-topo1/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-topo1/rt1/step2/show_mpls_table.ref
Normal file
68
tests/topotests/ospf-sr-topo1/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-topo1/rt1/step3/show_ip_route.ref
Normal file
249
tests/topotests/ospf-sr-topo1/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-topo1/rt1/step3/show_mpls_table.ref
Normal file
50
tests/topotests/ospf-sr-topo1/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-topo1/rt1/step4/show_ip_route.ref
Normal file
282
tests/topotests/ospf-sr-topo1/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-topo1/rt1/step4/show_mpls_table.ref
Normal file
68
tests/topotests/ospf-sr-topo1/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-topo1/rt1/step5/show_ip_route.ref
Normal file
276
tests/topotests/ospf-sr-topo1/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-topo1/rt1/step5/show_mpls_table.ref
Normal file
50
tests/topotests/ospf-sr-topo1/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-topo1/rt1/step6/show_ip_route.ref
Normal file
282
tests/topotests/ospf-sr-topo1/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-topo1/rt1/step6/show_mpls_table.ref
Normal file
68
tests/topotests/ospf-sr-topo1/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-topo1/rt1/step7/show_ip_route.ref
Normal file
282
tests/topotests/ospf-sr-topo1/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-topo1/rt1/step7/show_mpls_table.ref
Normal file
68
tests/topotests/ospf-sr-topo1/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-topo1/rt1/step8/show_ip_route.ref
Normal file
282
tests/topotests/ospf-sr-topo1/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-topo1/rt1/step8/show_mpls_table.ref
Normal file
68
tests/topotests/ospf-sr-topo1/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-topo1/rt1/step9/show_ip_route.ref
Normal file
282
tests/topotests/ospf-sr-topo1/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-topo1/rt1/step9/show_mpls_table.ref
Normal file
79
tests/topotests/ospf-sr-topo1/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-topo1/rt1/zebra.conf
Normal file
18
tests/topotests/ospf-sr-topo1/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-topo1/rt2/ospfd.conf
Normal file
35
tests/topotests/ospf-sr-topo1/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-topo1/rt2/step1/show_ip_route.ref
Normal file
330
tests/topotests/ospf-sr-topo1/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-topo1/rt2/step1/show_mpls_table.ref
Normal file
97
tests/topotests/ospf-sr-topo1/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-topo1/rt2/step10/show_ip_route.ref
Normal file
254
tests/topotests/ospf-sr-topo1/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-topo1/rt2/step10/show_mpls_table.ref
Normal file
73
tests/topotests/ospf-sr-topo1/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-topo1/rt2/step2/show_ip_route.ref
Normal file
303
tests/topotests/ospf-sr-topo1/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-topo1/rt2/step2/show_mpls_table.ref
Normal file
85
tests/topotests/ospf-sr-topo1/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-topo1/rt2/step3/show_ip_route.ref
Normal file
256
tests/topotests/ospf-sr-topo1/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-topo1/rt2/step3/show_mpls_table.ref
Normal file
67
tests/topotests/ospf-sr-topo1/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-topo1/rt2/step4/show_ip_route.ref
Normal file
303
tests/topotests/ospf-sr-topo1/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-topo1/rt2/step4/show_mpls_table.ref
Normal file
85
tests/topotests/ospf-sr-topo1/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-topo1/rt2/step5/show_ip_route.ref
Normal file
297
tests/topotests/ospf-sr-topo1/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-topo1/rt2/step5/show_mpls_table.ref
Normal file
67
tests/topotests/ospf-sr-topo1/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-topo1/rt2/step6/show_ip_route.ref
Normal file
303
tests/topotests/ospf-sr-topo1/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-topo1/rt2/step6/show_mpls_table.ref
Normal file
85
tests/topotests/ospf-sr-topo1/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-topo1/rt2/step7/show_ip_route.ref
Normal file
300
tests/topotests/ospf-sr-topo1/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-topo1/rt2/step7/show_mpls_table.ref
Normal file
73
tests/topotests/ospf-sr-topo1/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-topo1/rt2/step8/show_ip_route.ref
Normal file
303
tests/topotests/ospf-sr-topo1/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-topo1/rt2/step8/show_mpls_table.ref
Normal file
85
tests/topotests/ospf-sr-topo1/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-topo1/rt2/step9/show_ip_route.ref
Normal file
303
tests/topotests/ospf-sr-topo1/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-topo1/rt2/step9/show_mpls_table.ref
Normal file
85
tests/topotests/ospf-sr-topo1/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-topo1/rt2/zebra.conf
Normal file
24
tests/topotests/ospf-sr-topo1/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-topo1/rt3/ospfd.conf
Normal file
35
tests/topotests/ospf-sr-topo1/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-topo1/rt3/step1/show_ip_route.ref
Normal file
330
tests/topotests/ospf-sr-topo1/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-topo1/rt3/step1/show_mpls_table.ref
Normal file
97
tests/topotests/ospf-sr-topo1/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-topo1/rt3/step10/show_ip_route.ref
Normal file
310
tests/topotests/ospf-sr-topo1/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-topo1/rt3/step10/show_mpls_table.ref
Normal file
85
tests/topotests/ospf-sr-topo1/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-topo1/rt3/step2/show_ip_route.ref
Normal file
310
tests/topotests/ospf-sr-topo1/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-topo1/rt3/step2/show_mpls_table.ref
Normal file
85
tests/topotests/ospf-sr-topo1/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-topo1/rt3/step3/show_ip_route.ref
Normal file
263
tests/topotests/ospf-sr-topo1/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-topo1/rt3/step3/show_mpls_table.ref
Normal file
67
tests/topotests/ospf-sr-topo1/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-topo1/rt3/step4/show_ip_route.ref
Normal file
310
tests/topotests/ospf-sr-topo1/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-topo1/rt3/step4/show_mpls_table.ref
Normal file
85
tests/topotests/ospf-sr-topo1/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-topo1/rt3/step5/show_ip_route.ref
Normal file
304
tests/topotests/ospf-sr-topo1/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-topo1/rt3/step5/show_mpls_table.ref
Normal file
67
tests/topotests/ospf-sr-topo1/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-topo1/rt3/step6/show_ip_route.ref
Normal file
310
tests/topotests/ospf-sr-topo1/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-topo1/rt3/step6/show_mpls_table.ref
Normal file
85
tests/topotests/ospf-sr-topo1/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-topo1/rt3/step7/show_ip_route.ref
Normal file
307
tests/topotests/ospf-sr-topo1/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-topo1/rt3/step7/show_mpls_table.ref
Normal file
73
tests/topotests/ospf-sr-topo1/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-topo1/rt3/step8/show_ip_route.ref
Normal file
310
tests/topotests/ospf-sr-topo1/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-topo1/rt3/step8/show_mpls_table.ref
Normal file
85
tests/topotests/ospf-sr-topo1/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-topo1/rt3/step9/show_ip_route.ref
Normal file
310
tests/topotests/ospf-sr-topo1/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-topo1/rt3/step9/show_mpls_table.ref
Normal file
85
tests/topotests/ospf-sr-topo1/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-topo1/rt3/zebra.conf
Normal file
24
tests/topotests/ospf-sr-topo1/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-topo1/rt4/ospfd.conf
Normal file
38
tests/topotests/ospf-sr-topo1/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-topo1/rt4/step1/show_ip_route.ref
Normal file
311
tests/topotests/ospf-sr-topo1/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-topo1/rt4/step1/show_mpls_table.ref
Normal file
97
tests/topotests/ospf-sr-topo1/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-topo1/rt4/step10/show_ip_route.ref
Normal file
278
tests/topotests/ospf-sr-topo1/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
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
@ -1,82 +1,73 @@
|
||||
[
|
||||
{
|
||||
"inLabel":10100,
|
||||
{
|
||||
"16010":{
|
||||
"inLabel":16010,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16100,
|
||||
"outLabelStack":[
|
||||
16100
|
||||
],
|
||||
"distance":150,
|
||||
"outLabel":16010,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"inLabel":10200,
|
||||
"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,
|
||||
"outLabelStack":[
|
||||
3
|
||||
],
|
||||
"distance":150,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.2"
|
||||
"installed":true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"inLabel":10400,
|
||||
"16050":{
|
||||
"inLabel":16050,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":16400,
|
||||
"outLabelStack":[
|
||||
16400
|
||||
],
|
||||
"distance":150,
|
||||
"outLabel":18050,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.2"
|
||||
"nexthop":"10.0.7.6"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"inLabel":"*",
|
||||
"16060":{
|
||||
"inLabel":16060,
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"outLabelStack":[
|
||||
3
|
||||
],
|
||||
"distance":150,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"inLabel":"*",
|
||||
"installed":true,
|
||||
"nexthops":[
|
||||
{
|
||||
"type":"SR (OSPF)",
|
||||
"outLabel":3,
|
||||
"outLabelStack":[
|
||||
3
|
||||
],
|
||||
"distance":150,
|
||||
"installed":true,
|
||||
"nexthop":"10.0.3.2"
|
||||
"nexthop":"10.0.7.6"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
324
tests/topotests/ospf-sr-topo1/rt4/step2/show_ip_route.ref
Normal file
324
tests/topotests/ospf-sr-topo1/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-topo1/rt4/step2/show_mpls_table.ref
Normal file
91
tests/topotests/ospf-sr-topo1/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-topo1/rt4/step3/show_ip_route.ref
Normal file
296
tests/topotests/ospf-sr-topo1/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-topo1/rt4/step3/show_mpls_table.ref
Normal file
85
tests/topotests/ospf-sr-topo1/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-topo1/rt4/step4/show_ip_route.ref
Normal file
324
tests/topotests/ospf-sr-topo1/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-topo1/rt4/step4/show_mpls_table.ref
Normal file
91
tests/topotests/ospf-sr-topo1/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-topo1/rt4/step5/show_ip_route.ref
Normal file
318
tests/topotests/ospf-sr-topo1/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-topo1/rt4/step5/show_mpls_table.ref
Normal file
67
tests/topotests/ospf-sr-topo1/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-topo1/rt4/step6/show_ip_route.ref
Normal file
324
tests/topotests/ospf-sr-topo1/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-topo1/rt4/step6/show_mpls_table.ref
Normal file
91
tests/topotests/ospf-sr-topo1/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-topo1/rt4/step7/show_ip_route.ref
Normal file
318
tests/topotests/ospf-sr-topo1/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-topo1/rt4/step7/show_mpls_table.ref
Normal file
73
tests/topotests/ospf-sr-topo1/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-topo1/rt4/step8/show_ip_route.ref
Normal file
324
tests/topotests/ospf-sr-topo1/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
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user