Skip to content

Commit

Permalink
tests: ipv6 global removal in bgp_nexthop_mp_ipv4_6
Browse files Browse the repository at this point in the history
Test ipv6 global removal in bgp_nexthop_mp_ipv4_6

Signed-off-by: Louis Scalbert <[email protected]>
  • Loading branch information
louis-6wind committed Apr 23, 2024
1 parent 2de4dfc commit 04c220b
Show file tree
Hide file tree
Showing 10 changed files with 542 additions and 0 deletions.
90 changes: 90 additions & 0 deletions tests/topotests/bgp_nexthop_mp_ipv4_6/r1/bgp_ipv6_step2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
{
"routes": {
"fd00:100::/64": [
{
"valid": true,
"bestpath": true,
"path": "",
"nexthops": [
{
"ip": "::",
"afi": "ipv6",
"used": true
}
]
}
],
"fd00:700::/64": [
{
"valid": true,
"multipath": true,
"path": "65000 65700",
"nexthops": [
{
"ip": "fd00:0:2::3",
"afi": "ipv6",
"scope": "global"
},
{
"afi": "ipv6",
"scope": "link-local",
"used": true
}
]
},
{
"valid": true,
"bestpath": true,
"path": "65000 65700",
"nexthops": [
{
"ip": "fd00:0:1::2",
"afi": "ipv6",
"scope": "global"
},
{
"afi": "ipv6",
"scope": "link-local",
"used": true
}
]
}
],
"fd00:800::/64": [
{
"valid": true,
"multipath": true,
"path": "65000 65800",
"nexthops": [
{
"ip": "fd00:0:2::3",
"afi": "ipv6",
"scope": "global"
},
{
"afi": "ipv6",
"scope": "link-local",
"used": true
}
]
},
{
"valid": true,
"bestpath": true,
"path": "65000 65800",
"nexthops": [
{
"ip": "fd00:0:1::2",
"afi": "ipv6",
"scope": "global"
},
{
"afi": "ipv6",
"scope": "link-local",
"used": true
}
]
}
]
}
}
48 changes: 48 additions & 0 deletions tests/topotests/bgp_nexthop_mp_ipv4_6/r2/bgp_ipv6_step2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"routes": {
"fd00:100::/64": [
{
"valid": true,
"bestpath": true,
"path": "65100",
"nexthops": [
{
"afi": "ipv6",
"scope": "link-local",
"used": true
}
]
}
],
"fd00:700::/64": [
{
"valid": true,
"bestpath": true,
"path": "65700",
"nexthops": [
{
"ip": "fd00:0:9::7",
"scope": "global",
"afi": "ipv6",
"used": true
}
]
}
],
"fd00:800::/64": [
{
"valid": true,
"bestpath": true,
"path": "65800",
"nexthops": [
{
"ip": "fd00:0:9::8",
"scope": "global",
"afi": "ipv6",
"used": true
}
]
}
]
}
}
48 changes: 48 additions & 0 deletions tests/topotests/bgp_nexthop_mp_ipv4_6/r3/bgp_ipv6_step2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"routes": {
"fd00:100::/64": [
{
"valid": true,
"bestpath": true,
"path": "65100",
"nexthops": [
{
"afi": "ipv6",
"scope": "link-local",
"used": true
}
]
}
],
"fd00:700::/64": [
{
"valid": true,
"bestpath": true,
"path": "65700",
"nexthops": [
{
"ip": "fd00:0:9::7",
"scope": "global",
"afi": "ipv6",
"used": true
}
]
}
],
"fd00:800::/64": [
{
"valid": true,
"bestpath": true,
"path": "65800",
"nexthops": [
{
"ip": "fd00:0:9::8",
"scope": "global",
"afi": "ipv6",
"used": true
}
]
}
]
}
}
49 changes: 49 additions & 0 deletions tests/topotests/bgp_nexthop_mp_ipv4_6/r4/bgp_ipv6_step2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"routes": {
"fd00:100::/64": [
{
"valid": true,
"bestpath": true,
"path": "65100",
"nexthops": [
{
"ip": "2001:db8::2",
"afi": "ipv6",
"scope": "global",
"used": true
}
]
}
],
"fd00:700::/64": [
{
"valid": true,
"bestpath": true,
"path": "65700",
"nexthops": [
{
"ip": "fd00:0:9::7",
"scope": "global",
"afi": "ipv6",
"used": true
}
]
}
],
"fd00:800::/64": [
{
"valid": true,
"bestpath": true,
"path": "65800",
"nexthops": [
{
"ip": "fd00:0:9::8",
"scope": "global",
"afi": "ipv6",
"used": true
}
]
}
]
}
}
49 changes: 49 additions & 0 deletions tests/topotests/bgp_nexthop_mp_ipv4_6/r5/bgp_ipv6_step2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"routes": {
"fd00:100::/64": [
{
"valid": true,
"bestpath": true,
"path": "65100",
"nexthops": [
{
"ip": "2001:db8::2",
"afi": "ipv6",
"scope": "global",
"used": true
}
]
}
],
"fd00:700::/64": [
{
"valid": true,
"bestpath": true,
"path": "65700",
"nexthops": [
{
"ip": "fd00:0:9::7",
"scope": "global",
"afi": "ipv6",
"used": true
}
]
}
],
"fd00:800::/64": [
{
"valid": true,
"bestpath": true,
"path": "65800",
"nexthops": [
{
"ip": "fd00:0:9::8",
"scope": "global",
"afi": "ipv6",
"used": true
}
]
}
]
}
}
48 changes: 48 additions & 0 deletions tests/topotests/bgp_nexthop_mp_ipv4_6/r6/bgp_ipv6_step2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"routes": {
"fd00:100::/64": [
{
"valid": true,
"bestpath": true,
"nexthops": [
{
"ip": "2001:db8::2",
"afi": "ipv6",
"scope": "global",
"used": true
}
]
}
],
"fd00:700::/64": [
{
"valid": true,
"bestpath": true,
"path": "65700",
"nexthops": [
{
"ip": "fd00:0:9::7",
"afi": "ipv6",
"scope": "global",
"used": true
}
]
}
],
"fd00:800::/64": [
{
"valid": true,
"bestpath": true,
"path": "65800",
"nexthops": [
{
"ip": "fd00:0:9::8",
"afi": "ipv6",
"scope": "global",
"used": true
}
]
}
]
}
}
48 changes: 48 additions & 0 deletions tests/topotests/bgp_nexthop_mp_ipv4_6/r7/bgp_ipv6_step2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"routes": {
"fd00:100::/64": [
{
"valid": true,
"bestpath": true,
"path": "65000 65100",
"nexthops": [
{
"ip": "fd00:0:9::6",
"afi": "ipv6",
"scope": "global",
"used": true
}
]
}
],
"fd00:700::/64": [
{
"valid": true,
"bestpath": true,
"path": "",
"nexthops": [
{
"ip": "::",
"afi": "ipv6",
"used": true
}
]
}
],
"fd00:800::/64": [
{
"valid": true,
"bestpath": true,
"path": "65800",
"nexthops": [
{
"ip": "fd00:0:9::8",
"afi": "ipv6",
"scope": "global",
"used": true
}
]
}
]
}
}
Loading

0 comments on commit 04c220b

Please sign in to comment.