]> git.entuzijast.net Git - imunes.git/commitdiff
Unbreak instatiation of physical interface (aka RJ-45) nodes.
authormarko <marko>
Mon, 28 Jan 2008 19:03:34 +0000 (19:03 +0000)
committermarko <marko>
Mon, 28 Jan 2008 19:03:34 +0000 (19:03 +0000)
The problem was an artifact of introduction of per-experiment top level
vimage containers, so now we need to assign physical interfaces to top
level vimages first, before attempting to connect them via netgraph to
other nodes in a virtual topology.

Bug found by: Florian PONROY <at> fr.thalesgroup.com
Submitted by:
Reviewed by:
Approved by:
Obtained from:

rj45.tcl

index 684b65c2e5d2ebfe369d870aade79405f610329b..a65e1ebbe71f667545c228cb51f68fce4e4a4dd9 100755 (executable)
--- a/rj45.tcl
+++ b/rj45.tcl
@@ -26,7 +26,7 @@
 # and Technology through the research contract #IP-2003-143.
 #
 
-# $Id: rj45.tcl,v 1.12 2008/01/05 18:06:25 marko Exp $
+# $Id: rj45.tcl,v 1.13 2008/01/28 19:03:34 marko Exp $
 
 
 #****h* imunes/rj45.tcl
@@ -76,7 +76,8 @@ proc $MODULE.instantiate { eid node } {
 
     set ifname [getNodeName $node]
     set ngnodemap($ifname) $ifname
-    nexec ifconfig $ifname up promisc
+    nexec vimage -i $eid $ifname $ifname
+    nexec vimage $eid ifconfig $ifname up promisc
 }