Add simple macros to wrap existing tunnel create macros, but lowers the MTU enough to allow IPv6 underlay.
Signed-off-by: Eric Garver <[email protected]> --- tests/system-common-macros.at | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tests/system-common-macros.at b/tests/system-common-macros.at index f45463ab6957..8de356dcd63e 100644 --- a/tests/system-common-macros.at +++ b/tests/system-common-macros.at @@ -178,6 +178,16 @@ m4_define([ADD_OVS_TUNNEL], ] ) +# ADD_OVS_TUNNEL6([type], [bridge], [port], [remote-addr], [overlay-addr]) +# +# Same as ADD_OVS_TUNNEL, but drops MTU enough for the IPv6 underlay. +# +m4_define([ADD_OVS_TUNNEL6], + [ADD_OVS_TUNNEL([$1], [$2], [$3], [$4], [$5]) + AT_CHECK([ip link set dev $2 mtu 1430]) + ] +) + # ADD_NATIVE_TUNNEL([type], [port], [namespace], [remote-addr], [overlay-addr], # [type-args], [link-args]) # @@ -199,6 +209,17 @@ m4_define([ADD_NATIVE_TUNNEL], ] ) +# ADD_NATIVE_TUNNEL6([type], [port], [namespace], [remote-addr], [overlay-addr], +# [type-args], [link-args]) +# +# Same as ADD_NATIVE_TUNNEL, but drops MTU enough for the IPv6 underlay. +# +m4_define([ADD_NATIVE_TUNNEL6], + [ADD_NATIVE_TUNNEL([$1], [$2], [$3], [$4], [$5], [$6], [$7]) + NS_CHECK_EXEC([$3], [ip link set dev $2 mtu 1430]) + ] +) + # FORMAT_PING([]) # # Strip variant pieces from ping output so the output can be reliably compared. -- 2.12.0 _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
