]> git.entuzijast.net Git - imunes.git/commitdiff
multi-exper support
authorJosip Rodin <joy@numa-ubuntu-vm.(none)>
Sun, 13 Sep 2009 13:29:59 +0000 (15:29 +0200)
committerJosip Rodin <joy@numa-ubuntu-vm.(none)>
Sun, 13 Sep 2009 13:29:59 +0000 (15:29 +0200)
linux/quagga.tcl

index d71499bb27d212d42474de9525a5d0e3c42b7698..2c27493de56f5e5e2607dc47ad796dab06868b61 100755 (executable)
@@ -187,11 +187,11 @@ proc $MODULE.shellcmd { node } {
 #   and routing model is quagga)
 #****
 proc $MODULE.instantiate { eid node } {
-    set node_id "$eid\.$node"
     l3node.instantiate $eid $node
-    
-    nexec vzctl exec $node sysctl -w net/ipv4/ip_forward=1
-    nexec vzctl exec $node sysctl -w net/ipv6/conf/all/forwarding=1
+
+    upvar 0 ::cf::[set ::curcfg]::[set node]::node_id node_id
+    nexec vzctl exec $node_id sysctl -w net/ipv4/ip_forward=1
+    nexec vzctl exec $node_id sysctl -w net/ipv6/conf/all/forwarding=1
 
     puts " $eid $node ima aktivan IPv4 & IPv6 forwarding"