# 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"