Skip to content

Commit

Permalink
tests: Use IPv6 prefix reserved for documentation.
Browse files Browse the repository at this point in the history
The test suite currently have references to 2001:1db8:: prefixes,
while RFC 3849 reserves 2001:db8::/32 for documentation.

Signed-off-by: Frode Nordahl <[email protected]>
Signed-off-by: Dumitru Ceara <[email protected]>
(cherry picked from commit 2998012)
  • Loading branch information
fnordahl authored and dceara committed Jan 17, 2025
1 parent e37046c commit e7d8d5d
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions tests/system-common-macros.at
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,8 @@ ADD_NAMESPACES(sw11)
ADD_VETH(sw11, sw11, br-int, "192.168.2.2/24", "f0:00:00:02:02:03", \
"192.168.2.1")
ADD_NAMESPACES(server)
ADD_VETH(s1, server, br-ext, "2001:1db8:3333::2/64", "f0:00:00:01:02:05", \
"2001:1db8:3333::1", "nodad")
ADD_VETH(s1, server, br-ext, "2001:db8:3333::2/64", "f0:00:00:01:02:05", \
"2001:db8:3333::1", "nodad")

if test X"$1" = X"GR"; then
check_uuid ovn-nbctl create Logical_Router name=R1 options:chassis=hv1
Expand Down Expand Up @@ -449,8 +449,8 @@ check ovn-nbctl --wait=hv sync
cat > /etc/dhcp/dhcpd.conf <<EOF
option dhcp-rebinding-time 10;
option dhcp-renewal-time 5;
subnet6 2001:1db8:3333::/56 {
prefix6 2001:1db8:3333:100:: 2001:1db8:3333:111:: /64;
subnet6 2001:db8:3333::/56 {
prefix6 2001:db8:3333:100:: 2001:db8:3333:111:: /64;
}
EOF
rm -f /var/lib/dhcp/dhcpd6.leases
Expand All @@ -466,14 +466,14 @@ check ovn-nbctl --wait=hv sync
OVS_WAIT_WHILE([test "$(ovn-nbctl get logical_router_port rp-public ipv6_prefix | cut -c4-15)" = ""])
OVS_WAIT_WHILE([test "$(ovn-nbctl get logical_router_port rp-sw0 ipv6_prefix | cut -c4-15)" = ""])

AT_CHECK([ovn-nbctl get logical_router_port rp-public ipv6_prefix | cut -c3-16], [0], [dnl
[2001:1db8:3333]
AT_CHECK([ovn-nbctl get logical_router_port rp-public ipv6_prefix | cut -c3-15], [0], [dnl
[2001:db8:3333]
])
AT_CHECK([ovn-nbctl get logical_router_port rp-sw0 ipv6_prefix | cut -c3-16], [0], [dnl
[2001:1db8:3333]
AT_CHECK([ovn-nbctl get logical_router_port rp-sw0 ipv6_prefix | cut -c3-15], [0], [dnl
[2001:db8:3333]
])

hex_prefix=0x20011db8
hex_prefix=0x20010db8
ovn-nbctl list logical_router_port rp-public > /tmp/rp-public

# Wait for 2 renew on each port.
Expand Down Expand Up @@ -509,8 +509,8 @@ OVS_WAIT_UNTIL([

check ovn-nbctl set logical_router_port rp-sw0 options:prefix=false
check ovn-nbctl clear logical_router_port rp-sw0 ipv6_prefix
OVS_WAIT_WHILE([test "$(ovn-nbctl get logical_router_port rp-sw0 ipv6_prefix | cut -c3-16)" = "[2001:1db8:3333]"])
AT_CHECK([ovn-nbctl get logical_router_port rp-sw0 ipv6_prefix | cut -c3-16], [0], [dnl
OVS_WAIT_WHILE([test "$(ovn-nbctl get logical_router_port rp-sw0 ipv6_prefix | cut -c3-15)" = "[2001:db8:3333]"])
AT_CHECK([ovn-nbctl get logical_router_port rp-sw0 ipv6_prefix | cut -c3-15], [0], [dnl
[]
])

Expand Down

0 comments on commit e7d8d5d

Please sign in to comment.