From: Josip Rodin Date: Sun, 13 Sep 2009 13:29:59 +0000 (+0200) Subject: multi-exper support X-Git-Url: https://git.entuzijast.net/?a=commitdiff_plain;h=864bc1a2d090fd8d6b9b05238fdabd43fb8ff6e8;p=imunes.git multi-exper support --- diff --git a/linux/quagga.tcl b/linux/quagga.tcl index d71499b..2c27493 100755 --- a/linux/quagga.tcl +++ b/linux/quagga.tcl @@ -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"