Make get_info caclulate ebtables chain names
[snf-network] / vif-custom
index ed1e705..dd32f9a 100755 (executable)
@@ -18,9 +18,8 @@ source $GANETI_NIC_DIR/$domname/$devid
 INTERFACE=$dev
 INSTANCE=$domname
 
-FROM=FROM${INTERFACE^^}
-TO=TO${INTERFACE^^}
-
+GANETI_INSTANCE_NAME=$INSTANCE
+get_info
 
 try clear_routed_setup_ipv4
 try clear_routed_setup_ipv6
@@ -46,8 +45,6 @@ elif [ "$MODE" = "bridged" ]; then
   DROPDHCPREQCMD="runlocked $RUNLOCKED_OPTS ebtables -A $FROM -p ipv4 --ip-protocol udp --ip-destination-port 67 -j DROP"
 fi
 
-get_info
-
 for tag in $NETWORK_TAGS; do
   case $tag in
   $IP_LESS_ROUTED_TAG)