Fix a bug in snf-network-build-node-infra
authorDimitris Aragiorgis <dimara@grnet.gr>
Tue, 10 Jul 2012 12:31:53 +0000 (15:31 +0300)
committerDimitris Aragiorgis <dimara@grnet.gr>
Tue, 10 Jul 2012 12:31:53 +0000 (15:31 +0300)
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

snf-network-build-node-infra

index bb86a9e..29b0612 100755 (executable)
@@ -7,13 +7,15 @@ source $CONF
 
 case $SETUP in
 GRNET)
-  DEFINFRA=/etc/snf-network/grnet.conf
+  INFRA=/etc/snf-network/grnet.conf
   ;;
 GENERIC)
-  DEFINFRA=/etc/snf-network/generic.conf
+  INFRA=/etc/snf-network/generic.conf
   ;;
 esac
 
+source $INFRA
+
 HOSTINFRA=$STATE_DIR/infra
 
 NODE_IFACE=$(ip route | grep default | awk '{print $5}')
@@ -23,7 +25,7 @@ NODE_GW=$(ip route | grep default | awk '{print $3}')
 
 (
 
-cat $DEFINFRA
+cat $INFRA
 
 echo
 echo "# node's interface"