Commit 3fe804cb authored by Jay Lepreau's avatar Jay Lepreau

Add HACK to allocate and bind a parent pc host for each ixp-bv allocated.

Parent host is "<ixpname>host" (for now).  Should be done in the ns
front end, but this is something quick for Abhijeet's demo.
parent 643e71ae
......@@ -507,6 +507,13 @@ public class WorkArea {
0 != s.compareTo("")) {
r += "tb-set-hardware $" + n + " " + s + "\n";
}
// Hack! This should be done in the ns parser.
// Should match on "ixp*".
if (0 == s.compareTo("ixp-bv")) {
r += "# Create a host for the ixp and associate them.\n";
r += "set " + n + "host" + " [$ns node]\n";
r += "tb-bind-parent $" + n + " $" + n + "host\n";
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment