use of net.floodlightcontroller.core.internal.OFSwitchManager in project open-kilda by telstra.
the class BfdFeatureTest method createSwitchWithDescription.
private static IOFSwitch createSwitchWithDescription(SwitchDescription description) {
OFFactory factory = new OFFactoryVer13();
DatapathId dpid = DatapathId.of("1");
OFConnection connection = new OFConnection(dpid, factory, new LocalChannel(), OFAuxId.MAIN, new MockDebugCounterService(), new HashedWheelTimer());
OFSwitch sw = new OFSwitch(connection, factory, new OFSwitchManager(), dpid);
sw.setSwitchProperties(description);
return sw;
}
Aggregations