Skip to content

Commit

Permalink
bgpd: Align SRv6 topotests with new SID Manager
Browse files Browse the repository at this point in the history
Signed-off-by: Carmine Scarpitta <[email protected]>
  • Loading branch information
cscarpitta committed May 6, 2024
1 parent 5219085 commit eea365a
Show file tree
Hide file tree
Showing 42 changed files with 81 additions and 90 deletions.
4 changes: 2 additions & 2 deletions tests/topotests/bgp_srv6_sid_reachability/r1/bgpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ router bgp 65001 vrf vrf10
!
address-family ipv4 unicast
redistribute connected
sid vpn export 1
sid vpn export 65280
rd vpn export 65001:10
rt vpn both 0:10
import vpn
Expand All @@ -45,7 +45,7 @@ router bgp 65001 vrf vrf20
!
address-family ipv4 unicast
redistribute connected
sid vpn export 2
sid vpn export 65281
rd vpn export 65001:20
rt vpn both 0:20
import vpn
Expand Down
4 changes: 2 additions & 2 deletions tests/topotests/bgp_srv6_sid_reachability/r2/bgpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ router bgp 65002 vrf vrf10
!
address-family ipv4 unicast
redistribute connected
sid vpn export 1
sid vpn export 65280
rd vpn export 65002:10
rt vpn both 0:10
import vpn
Expand All @@ -40,7 +40,7 @@ router bgp 65002 vrf vrf20
!
address-family ipv4 unicast
redistribute connected
sid vpn export 2
sid vpn export 65281
rd vpn export 65002:20
rt vpn both 0:20
import vpn
Expand Down
4 changes: 2 additions & 2 deletions tests/topotests/bgp_srv6_sid_reachability/r3/bgpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ router bgp 65001 vrf vrf10
!
address-family ipv4 unicast
redistribute connected
sid vpn export 1
sid vpn export 65280
rd vpn export 65001:10
rt vpn both 0:10
import vpn
Expand All @@ -40,7 +40,7 @@ router bgp 65001 vrf vrf20
!
address-family ipv4 unicast
redistribute connected
sid vpn export 2
sid vpn export 65281
rd vpn export 65001:20
rt vpn both 0:20
import vpn
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def test_sid_unreachable_bgp_update():
exit
router bgp 65002 vrf vrf10
address-family ipv4 unicast
no sid vpn export 1
no sid vpn export 65280
"""
)
check_ping("c11", "192.168.2.1", False, 10, 1)
Expand All @@ -158,7 +158,7 @@ def test_sid_reachable_again_bgp_update():
exit
router bgp 65002 vrf vrf10
address-family ipv4 unicast
sid vpn export 1
sid vpn export 65280
"""
)
check_ping("c11", "192.168.2.1", True, 10, 1)
Expand Down
4 changes: 2 additions & 2 deletions tests/topotests/bgp_srv6l3vpn_over_ipv6/r1/bgpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ router bgp 65001 vrf vrf10
!
address-family ipv4 unicast
redistribute connected
sid vpn export 1
sid vpn export 65280
rd vpn export 65001:10
rt vpn both 0:10
import vpn
Expand All @@ -46,7 +46,7 @@ router bgp 65001 vrf vrf20
!
address-family ipv4 unicast
redistribute connected
sid vpn export 2
sid vpn export 65281
rd vpn export 65001:20
rt vpn both 0:20
import vpn
Expand Down
4 changes: 2 additions & 2 deletions tests/topotests/bgp_srv6l3vpn_over_ipv6/r2/bgpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ router bgp 65002 vrf vrf10
!
address-family ipv4 unicast
redistribute connected
sid vpn export 1
sid vpn export 65280
rd vpn export 65002:10
rt vpn both 0:10
import vpn
Expand All @@ -41,7 +41,7 @@ router bgp 65002 vrf vrf20
!
address-family ipv4 unicast
redistribute connected
sid vpn export 2
sid vpn export 65281
rd vpn export 65002:20
rt vpn both 0:20
import vpn
Expand Down
4 changes: 2 additions & 2 deletions tests/topotests/bgp_srv6l3vpn_over_ipv6/r3/bgpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ router bgp 65001 vrf vrf10
!
address-family ipv4 unicast
redistribute connected
sid vpn export 1
sid vpn export 65280
rd vpn export 65001:10
rt vpn both 0:10
import vpn
Expand All @@ -41,7 +41,7 @@ router bgp 65001 vrf vrf20
!
address-family ipv4 unicast
redistribute connected
sid vpn export 2
sid vpn export 65281
rd vpn export 65001:20
rt vpn both 0:20
import vpn
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@
"fib":true,
"afi":"ipv6",
"labels":[
16
1024
],
"weight":1,
"seg6local":{
"action":"unspec"
},
"seg6":{
"segs":"2001:db8:2:2:1::"
"segs":"2001:db8:2:2:40::"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@
"ip":"2001::2",
"afi":"ipv6",
"labels":[
128
1044480
],
"weight":1,
"seg6local":{
"action":"unspec"
},
"seg6":{
"segs":"2001:db8:2:2:8::"
"segs":"2001:db8:2:2:ff00::"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@
"fib":true,
"afi":"ipv6",
"labels":[
32
1040
],
"weight":1,
"seg6local":{
"action":"unspec"
},
"seg6":{
"segs":"2001:db8:2:2:2::"
"segs":"2001:db8:2:2:41::"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@
"fib":true,
"afi":"ipv6",
"labels":[
128
1044480
],
"weight":1,
"seg6local":{
"action":"unspec"
},
"seg6":{
"segs":"2001:db8:2:2:8::"
"segs":"2001:db8:2:2:ff00::"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@
"ip":"2001::2",
"afi":"ipv6",
"labels":[
16
1024
],
"weight":1,
"seg6local":{
"action":"unspec"
},
"seg6":{
"segs":"2001:db8:2:2:1::"
"segs":"2001:db8:2:2:40::"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@
"ip":"2001::2",
"afi":"ipv6",
"labels":[
128
1044480
],
"weight":1,
"seg6local":{
"action":"unspec"
},
"seg6":{
"segs":"2001:db8:2:2:8::"
"segs":"2001:db8:2:2:ff00::"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@
"fib":true,
"afi":"ipv6",
"labels":[
16
1024
],
"weight":1,
"seg6local":{
"action":"unspec"
},
"seg6":{
"segs":"2001:db8:2:2:1::"
"segs":"2001:db8:2:2:40::"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@
"fib":true,
"afi":"ipv6",
"labels":[
128
1044480
],
"weight":1,
"seg6local":{
"action":"unspec"
},
"seg6":{
"segs":"2001:db8:2:2:8::"
"segs":"2001:db8:2:2:ff00::"
}
}
]
Expand Down
4 changes: 2 additions & 2 deletions tests/topotests/bgp_srv6l3vpn_sid/r1/vrf10_rib.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@
"vrf":"default",
"active":true,
"labels":[
32
1040
],
"weight":1,
"seg6local":{
"action":"unspec"
},
"seg6":{
"segs":"2001:db8:2:2:2::"
"segs":"2001:db8:2:2:41::"
}
}
]
Expand Down
8 changes: 4 additions & 4 deletions tests/topotests/bgp_srv6l3vpn_sid/r1/vrf20_rib.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
"vrf":"default",
"active":true,
"labels":[
48
1056
],
"weight":1,
"seg6local":{
"action":"unspec"
},
"seg6":{
"segs":"2001:db8:2:2:3::"
"segs":"2001:db8:2:2:42::"
}
}
]
Expand Down Expand Up @@ -71,14 +71,14 @@
"vrf":"default",
"active":true,
"labels":[
48
1056
],
"weight":1,
"seg6local":{
"action":"unspec"
},
"seg6":{
"segs":"2001:db8:2:2:3::"
"segs":"2001:db8:2:2:42::"
}
}
]
Expand Down
8 changes: 4 additions & 4 deletions tests/topotests/bgp_srv6l3vpn_sid/r2/vrf10_rib.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
"vrf":"default",
"active":true,
"labels":[
32
1040
],
"weight":1,
"seg6local":{
"action":"unspec"
},
"seg6":{
"segs":"2001:db8:1:1:2::"
"segs":"2001:db8:1:1:41::"
}
}
]
Expand Down Expand Up @@ -71,14 +71,14 @@
"vrf":"default",
"active":true,
"labels":[
32
1040
],
"weight":1,
"seg6local":{
"action":"unspec"
},
"seg6":{
"segs":"2001:db8:1:1:2::"
"segs":"2001:db8:1:1:41::"
}
}
]
Expand Down
4 changes: 2 additions & 2 deletions tests/topotests/bgp_srv6l3vpn_sid/r2/vrf20_rib.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@
"vrf":"default",
"active":true,
"labels":[
48
1056
],
"weight":1,
"seg6local":{
"action":"unspec"
},
"seg6":{
"segs":"2001:db8:1:1:3::"
"segs":"2001:db8:1:1:42::"
}
}
]
Expand Down
Loading

0 comments on commit eea365a

Please sign in to comment.