When connecting a network in routed mode pass the routing table
and not the vlan as link. The link will be choosen depending the
network type and the cluster/node infrastructure.
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
source $NETFILE
if [ "$MODE" == "routed" ]; then
- VLAN=$LINK
TABLE=rt_$NETWORK
if [ "$TYPE" == "public" ]; then
+ VLAN=$PUBLIC_VLAN
ARP_IP=$(ipcalc $SUBNET | grep HostMax | awk '{print $2}')
ip link set $VLAN up
source $NODEMAPFILE
if [ "$MODE" == "routed" ]; then
- VLAN=$LINK
TABLE=rt_$NETWORK
if [ "$TYPE" == "public" ]; then
+ VLAN=$PUBLIC_VLAN
ARP_IP=$(ipcalc $SUBNET | grep HostMax | awk '{print $2}')
arptables -D OUTPUT -o $VLAN --opcode request -j mangle --mangle-ip-s $ARP_IP