From f61494f89fd35a53e59478a7f8f856b9b6b0d2fd Mon Sep 17 00:00:00 2001 From: dlg Date: Mon, 21 Feb 2022 00:36:22 +0000 Subject: [PATCH] vxlan sending to a mcast group needs an interface specified for that group ok anton@ --- regress/sys/net/vxlan/vxlan_2.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/regress/sys/net/vxlan/vxlan_2.sh b/regress/sys/net/vxlan/vxlan_2.sh index c2bd70752c1..b4ed27245be 100644 --- a/regress/sys/net/vxlan/vxlan_2.sh +++ b/regress/sys/net/vxlan/vxlan_2.sh @@ -1,5 +1,5 @@ #!/bin/ksh -# $Id: vxlan_2.sh,v 1.2 2016/11/30 22:21:20 vgross Exp $ +# $Id: vxlan_2.sh,v 1.3 2022/02/21 00:36:22 dlg Exp $ CAPFILE=$(mktemp -t regress_vxlan.XXXXXXX) @@ -22,6 +22,7 @@ do_ping() { local source="$1" local dest="${VXLAN_NETID}${2}" + $PING -q -c 1 -w 1 -V "$source" "$dest" > /dev/null # warm up arp $PING -q -c 3 -w 1 -V "$source" "$dest" | grep -q ' 0.0% packet loss' && return echo "Failed to ping $dest from vstack $source" STATUS=1 @@ -96,7 +97,7 @@ vstack_add() { $SUDO ifconfig "$vstack_pairname" rdomain "$vstack" $IFCONFIG_OPTS $SUDO ifconfig "$vstack_pairname" "$AF" "${vstack_tunsrc}${PAIR_PREFX}" up $SUDO ifconfig "vxlan$vstack" rdomain "$vstack" tunneldomain "$vstack" $IFCONFIG_OPTS - $SUDO ifconfig "vxlan$vstack" vnetid "$VNETID" tunnel "$vstack_tunsrc" "${VXLAN_TUNDST}${tundst_sufx}" up + $SUDO ifconfig "vxlan$vstack" vnetid "$VNETID" tunnel "$vstack_tunsrc" "${VXLAN_TUNDST}${tundst_sufx}" parent "$vstack_pairname" up [[ -n $DYNAMIC ]] && $SUDO ifconfig "bridge$vstack" rdomain "$vstack" add "vxlan$vstack" $IFCONFIG_OPTS up } -- 2.20.1