From ef65141a1dd545a6a1a4777f72c389117bf98579 Mon Sep 17 00:00:00 2001 From: Josip Rodin Date: Sun, 15 Nov 2009 21:28:47 +0100 Subject: [PATCH] prebacio interface upping u specificnu konfiguraciju, plus provjera s getIfcOperState kao i drugdje --- linux/quagga.tcl | 7 +++++++ quaggaboot.sh | 11 ----------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/linux/quagga.tcl b/linux/quagga.tcl index 25fbd30..d399eb4 100755 --- a/linux/quagga.tcl +++ b/linux/quagga.tcl @@ -242,6 +242,13 @@ proc $MODULE.start { eid node } { l3node.start $eid $node + # FIXME: Quagga unatoc svemu ne moze sama podici sucelja, pa moramo rucno + foreach ifc [ifcList $node] { + if { [getIfcOperState $node $ifc] == "up" } { + nexec vzctl exec $node_id ip link set up dev $ifc + } + } + upvar 0 ::cf::[set ::curcfg]::[set node]::node_id node_id nexec vzctl exec $node_id sysctl -w net/ipv4/ip_forward=1 diff --git a/quaggaboot.sh b/quaggaboot.sh index 5ace1dc..72fb93f 100755 --- a/quaggaboot.sh +++ b/quaggaboot.sh @@ -1,16 +1,5 @@ #!/bin/sh -# UGLY hack jer Quagga nezna sama podici interface -# pohvata sva sucelja -IFACES=`ip a | grep "" | awk '{ print $2}' | cut -c1-4` - -# i sve ih proba podici -for iface in $IFACES; do - ip link set up dev $iface - echo "Setting INTERFACE=$iface to UP" -done - - export PATH=$PATH:/usr/lib/quagga zebra -dP0 -- 2.39.5