Skip to content

Commit

Permalink
topotests:Add test fo bgp l3vpn over srv6 te policy
Browse files Browse the repository at this point in the history
Signed-off-by: guozhongfeng.gzf <guozhongfeng.gzf@alibaba-inc.com>
  • Loading branch information
guoguojia2021 committed Dec 9, 2024
1 parent e6ad904 commit 35d0023
Show file tree
Hide file tree
Showing 31 changed files with 1,587 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/topotests/bgp_srv6l3vpn_te_policy/ce1/bgpd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
frr defaults traditional
!
hostname ce1
password zebra
!
log stdout notifications
log commands
log file bgpd.log
16 changes: 16 additions & 0 deletions tests/topotests/bgp_srv6l3vpn_te_policy/ce1/zebra.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
log file zebra.log
!
hostname ce1
!
interface eth0
ip address 192.168.1.2/24
ipv6 address 1001:1::2/64
!
ip forwarding
ipv6 forwarding
!
ip route 0.0.0.0/0 192.168.1.1
ipv6 route ::/0 1001:1::1
!
line vty
!
8 changes: 8 additions & 0 deletions tests/topotests/bgp_srv6l3vpn_te_policy/ce2/bgpd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
frr defaults traditional
!
hostname ce2
password zebra
!
log stdout notifications
log commands
log file bgpd.log
16 changes: 16 additions & 0 deletions tests/topotests/bgp_srv6l3vpn_te_policy/ce2/zebra.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
log file zebra.log
!
hostname ce2
!
interface eth0
ip address 192.168.2.2/24
ipv6 address 1001:2::2/64
!
ip forwarding
ipv6 forwarding
!
ip route 0.0.0.0/0 192.168.2.1
ipv6 route ::/0 1001:2::1
!
line vty
!
8 changes: 8 additions & 0 deletions tests/topotests/bgp_srv6l3vpn_te_policy/ce3/bgpd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
frr defaults traditional
!
hostname ce3
password zebra
!
log stdout notifications
log commands
log file bgpd.log
16 changes: 16 additions & 0 deletions tests/topotests/bgp_srv6l3vpn_te_policy/ce3/zebra.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
log file zebra.log
!
hostname ce3
!
interface eth0
ip address 192.168.3.2/24
ipv6 address 1001:3::2/64
!
ip forwarding
ipv6 forwarding
!
ip route 0.0.0.0/0 192.168.3.1
ipv6 route ::/0 1001:3::1
!
line vty
!
8 changes: 8 additions & 0 deletions tests/topotests/bgp_srv6l3vpn_te_policy/ce4/bgpd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
frr defaults traditional
!
hostname ce4
password zebra
!
log stdout notifications
log commands
log file bgpd.log
16 changes: 16 additions & 0 deletions tests/topotests/bgp_srv6l3vpn_te_policy/ce4/zebra.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
log file zebra.log
!
hostname ce4
!
interface eth0
ip address 192.168.4.2/24
ipv6 address 1001:4::2/64
!
ip forwarding
ipv6 forwarding
!
ip route 0.0.0.0/0 192.168.4.1
ipv6 route ::/0 1001:4::1
!
line vty
!
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"1:10":{
"prefix":"192.168.1.0/24",
"version":1,
"advertisedTo":{
"1000::1":{
"hostname":"pe1"
}
},
"paths":[
{
"aspath":{
"string":"1",
"segments":[
{
"type":"as-sequence",
"list":[
1
]
}
],
"length":1
},
"origin":"incomplete",
"metric":0,
"valid":true,
"version":1,
"bestpath":{
"overall":true,
"selectionReason":"First path received"
},
"extendedCommunity":{
"string":"RT:99:99 Color:01:100"
},
"remoteLabel":"*",
"remoteSid":"2001:db8:1:1::",
"lastUpdate":{
"epoch":"*",
"string":"*"
},
"nexthops":[
{
"ip":"0.0.0.0",
"hostname":"pe1",
"afi":"ipv4",
"metric":0,
"accessible":true,
"used":true
}
],
"peer":{
"peerId":"1000::1",
"routerId":"1.1.1.1",
"hostname":"pe1",
"type":"external"
}
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"1:20":{
"prefix":"192.168.2.0/24",
"version":1,
"advertisedTo":{
"1000::1":{
"hostname":"pe1"
}
},
"paths":[
{
"aspath":{
"string":"1",
"segments":[
{
"type":"as-sequence",
"list":[
1
]
}
],
"length":1
},
"origin":"incomplete",
"metric":0,
"valid":true,
"version":1,
"bestpath":{
"overall":true,
"selectionReason":"First path received"
},
"extendedCommunity":{
"string":"RT:88:88 Color:01:200"
},
"remoteLabel":"*",
"remoteSid":"2001:db8:1:1::",
"lastUpdate":{
"epoch":"*",
"string":"*"
},
"nexthops":[
{
"ip":"0.0.0.0",
"hostname":"pe1",
"afi":"ipv4",
"metric":0,
"accessible":true,
"used":true
}
],
"peer":{
"peerId":"1000::1",
"routerId":"1.1.1.1",
"hostname":"pe1",
"type":"external"
}
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"1:10":{
"prefix":"1001:1::/64",
"version":1,
"advertisedTo":{
"1000::1":{
"hostname":"pe1"
}
},
"paths":[
{
"aspath":{
"string":"1",
"segments":[
{
"type":"as-sequence",
"list":[
1
]
}
],
"length":1
},
"origin":"incomplete",
"metric":0,
"valid":true,
"version":1,
"bestpath":{
"overall":true,
"selectionReason":"First path received"
},
"extendedCommunity":{
"string":"RT:99:99 Color:01:100"
},
"remoteLabel":"*",
"remoteSid":"2001:db8:1:1::",
"lastUpdate":{
"epoch":"*",
"string":"*"
},
"nexthops":[
{
"ip":"1000::1",
"hostname":"pe1",
"afi":"ipv6",
"scope":"global",
"metric":0,
"accessible":true,
"used":true
}
],
"peer":{
"peerId":"1000::1",
"routerId":"1.1.1.1",
"hostname":"pe1",
"type":"external"
}
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"1:20":{
"prefix":"1001:2::/64",
"version":1,
"advertisedTo":{
"1000::1":{
"hostname":"pe1"
}
},
"paths":[
{
"aspath":{
"string":"1",
"segments":[
{
"type":"as-sequence",
"list":[
1
]
}
],
"length":1
},
"origin":"incomplete",
"metric":0,
"valid":true,
"version":1,
"bestpath":{
"overall":true,
"selectionReason":"First path received"
},
"extendedCommunity":{
"string":"RT:88:88 Color:01:200"
},
"remoteLabel":"*",
"remoteSid":"2001:db8:1:1::",
"lastUpdate":{
"epoch":"*",
"string":"*"
},
"nexthops":[
{
"ip":"1000::1",
"hostname":"pe1",
"afi":"ipv6",
"scope":"global",
"metric":0,
"accessible":true,
"used":true
}
],
"peer":{
"peerId":"1000::1",
"routerId":"1.1.1.1",
"hostname":"pe1",
"type":"external"
}
}
]
}
}
Loading

0 comments on commit 35d0023

Please sign in to comment.