From e1eac9c8c713fce8d629e07ffc181d41eec541a5 Mon Sep 17 00:00:00 2001 From: toby Date: Fri, 26 Apr 2019 18:34:16 +0000 Subject: [PATCH] quick if test so one can just synlink trunk uplinks using qemu-ifup-TRUNKNAME syntax and be done with it --- files/qemu-ifup | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/files/qemu-ifup b/files/qemu-ifup index c8051a9..cd85457 100755 --- a/files/qemu-ifup +++ b/files/qemu-ifup @@ -6,6 +6,10 @@ if [ ${#IFACE} -gt 15 ]; then echo "interface name too long, mac 14 char: $IFACE" exit 10 fi +if [[ ${0##*/} == qemu-ifup-* ]]; then + PARENTIF="${0##*-}" + echo "legacy VLAN trunk mode using $PARENTIF as uplink" +fi VNI=$(printf '%d' $((16#${IFACE##*.})))