2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-19 14:37:21 +00:00

system-common-macros: Add macros to create IPv6 tunnels

Add simple macros to wrap existing tunnel create macros, but lowers the
MTU enough to allow IPv6 underlay.

Signed-off-by: Eric Garver <e@erig.me>
Signed-off-by: Joe Stringer <joe@ovn.org>
This commit is contained in:
Eric Garver
2017-06-07 19:54:25 -04:00
committed by Joe Stringer
parent 84f72cae37
commit ecd6e7890c

View File

@@ -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], # ADD_NATIVE_TUNNEL([type], [port], [namespace], [remote-addr], [overlay-addr],
# [type-args], [link-args]) # [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([]) # FORMAT_PING([])
# #
# Strip variant pieces from ping output so the output can be reliably compared. # Strip variant pieces from ping output so the output can be reliably compared.