quick if test so one can just synlink trunk uplinks using qemu-ifup-TRUNKNAME syntax and be done with it
This commit is contained in:
parent
0493a328ff
commit
e1eac9c8c7
|
@ -6,6 +6,10 @@ if [ ${#IFACE} -gt 15 ]; then
|
||||||
echo "interface name too long, mac 14 char: $IFACE"
|
echo "interface name too long, mac 14 char: $IFACE"
|
||||||
exit 10
|
exit 10
|
||||||
fi
|
fi
|
||||||
|
if [[ ${0##*/} == qemu-ifup-* ]]; then
|
||||||
|
PARENTIF="${0##*-}"
|
||||||
|
echo "legacy VLAN trunk mode using $PARENTIF as uplink"
|
||||||
|
fi
|
||||||
|
|
||||||
VNI=$(printf '%d' $((16#${IFACE##*.})))
|
VNI=$(printf '%d' $((16#${IFACE##*.})))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue