use of org.projectfloodlight.openflow.protocol.ver13.OFFactoryVer13 in project open-kilda by telstra.
the class IngressServer42FlowInstallCommandTest method getOfSwitch.
private OFSwitch getOfSwitch() {
OFSwitch sw = mock(OFSwitch.class);
expect(sw.getOFFactory()).andReturn(new OFFactoryVer13()).anyTimes();
expect(sw.getId()).andReturn(DatapathId.of(INGRESS_SWITCH_ID.getId())).anyTimes();
replay(sw);
return sw;
}
use of org.projectfloodlight.openflow.protocol.ver13.OFFactoryVer13 in project open-kilda by telstra.
the class IngressFlowLoopSegmentInstallCommandTest method getOfSwitch.
private OFSwitch getOfSwitch() {
OFSwitch sw = mock(OFSwitch.class);
expect(sw.getOFFactory()).andReturn(new OFFactoryVer13()).anyTimes();
expect(sw.getId()).andReturn(DatapathId.of(SWITCH_ID_1.getId())).anyTimes();
replay(sw);
return sw;
}
Aggregations