Changes between Version 19 and Version 20 of GENIEducation/HyperNets


Ignore:
Timestamp:
08/19/13 11:48:13 (11 years ago)
Author:
shuang@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GENIEducation/HyperNets

    v19 v20  
    175175 - ArrayList<Node> addTunnel(String pvnName, Node pr1, Node pr2): adds a link between two Nodes pr1 and pr2. This link can be a VLAN link or a GRE tunnel, depending on the two nodes it is connecting. (e.g., if the two nodes are from different aggregates, then a GRE tunnel is created; otherwise a normal VLAN link is created)
    176176{{{
    177  Node node1 = new Node();
    178  node1.node_cm = "urn:publicid:IDN+emulab.net+authority+cm";
    179  Node node2 = new Node();
    180  node2.node_cm = "urn:publicid:IDN+uky.emulab.net+authority+cm";
    181  addTunnel(node1, node2); //this will create a GRE tunnel between node1 and node2 since they are from different aggregates.
     177 Node node1 = new Node(); //node1 is in KY
     178 node1.node_type = "pc";
     179 node1.node_cm = "urn:publicid:IDN+uky.emulab.net+authority+cm";
     180 Node node2 = new Node(); //node2 is in Utah
     181 node2.node_type = "pc";
     182 node2.node_cm = "urn:publicid:IDN+emulab.net+authority+cm";
     183
     184 node1 = myPVN.addPR(myConfig.PVNName, node1, "pc");
     185 node2 = myPVN.addPR(myConfig.PVNName, node2, "pc");
     186 myPVN.addTunnel(myConfig.PVNName, node1, node2); //this will create a GRE tunnel between node1 and node2 since they are from different aggregates.
    182187}}}
    183188