Package net.floodlightcontroller.routing

Examples of net.floodlightcontroller.routing.Route


     deviceManager.learnEntity(Ethernet.toLong(dataLayerDest2),
                               null, networkDest2,
                               1L, 4);

     // in bound #1
     Route route1 = new Route(1L, 1L);
     List<NodePortTuple> nptList1 = new ArrayList<NodePortTuple>();
     nptList1.add(new NodePortTuple(1L, (short)1));
     nptList1.add(new NodePortTuple(1L, (short)3));
     route1.setPath(nptList1);
     expect(routingEngine.getRoute(1L, (short)1, 1L, (short)3, 0)).andReturn(route1).atLeastOnce();

     // outbound #1
     Route route2 = new Route(1L, 1L);
     List<NodePortTuple> nptList2 = new ArrayList<NodePortTuple>();
     nptList2.add(new NodePortTuple(1L, (short)3));
     nptList2.add(new NodePortTuple(1L, (short)1));
     route2.setPath(nptList2);
     expect(routingEngine.getRoute(1L, (short)3, 1L, (short)1, 0)).andReturn(route2).atLeastOnce();

     // inbound #2
     Route route3 = new Route(1L, 1L);
     List<NodePortTuple> nptList3 = new ArrayList<NodePortTuple>();
     nptList3.add(new NodePortTuple(1L, (short)2));
     nptList3.add(new NodePortTuple(1L, (short)4));
     route3.setPath(nptList3);
     expect(routingEngine.getRoute(1L, (short)2, 1L, (short)4, 0)).andReturn(route3).atLeastOnce();

     // outbound #2
     Route route4 = new Route(1L, 1L);
     List<NodePortTuple> nptList4 = new ArrayList<NodePortTuple>();
     nptList4.add(new NodePortTuple(1L, (short)4));
     nptList4.add(new NodePortTuple(1L, (short)2));
     route4.setPath(nptList3);
     expect(routingEngine.getRoute(1L, (short)4, 1L, (short)2, 0)).andReturn(route4).atLeastOnce();

     replay(routingEngine);

     wc1.reset();
View Full Code Here

TOP

Related Classes of net.floodlightcontroller.routing.Route

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.