use of org.openkilda.topo.PortQueue in project open-kilda by telstra.
the class TestTopologyBuilder method linkSwitches.
private static final void linkSwitches(Map<String, Link> links, Switch s1, Switch s2) {
Port p1 = new Port(s1, String.format("PORTAA%03d", 1));
Port p2 = new Port(s2, String.format("PORTBB%03d", 1));
;
PortQueue q1 = new PortQueue(p1, String.format("QUEUE%03d", 1));
PortQueue q2 = new PortQueue(p2, String.format("QUEUE%03d", 1));
;
LinkEndpoint e1 = new LinkEndpoint(q1);
LinkEndpoint e2 = new LinkEndpoint(q2);
Link link1 = new Link(e1, e2);
Link link2 = new Link(e2, e1);
links.put(link1.getShortSlug(), link1);
links.put(link2.getShortSlug(), link2);
}
Aggregations