FlowEntryMgr { public void addOpenFlowEntry(String nodeId, String flowEntryLabel, Object flowEntry) throws Exception { try { assertConnectorNotNull(); StringBuilder urlPrefix = constructFlowUrlPrefix(nodeId, flowEntryLabel); connector.putToController(urlPrefix.toString(), flowEntry); } catch (Throwable e) { String msg = "Excepted trying to addOpenFlowEntry for " + nodeId + " " + flowEntryLabel + " " + flowEntry; log.error(msg, e); throw new Exception(msg, e); } } FlowEntryMgr(); void setOdl(Odl odl); ReceivedFlowConfig getOpenFlowEntry(String nodeId, String flowEntryLabel); void addOpenFlowEntry(String nodeId, String flowEntryLabel, Object flowEntry); void toggleOpenFlowEntry(String nodeId, String flowEntryLabel); void deleteOpenFlowEntry(String nodeId, String flowEntryLabel); FlowStatistics getOpenFlowStats(String nodeId); Nodes getNodes(); void reset(); public Connector connector; public Odl odl; }
@Test public void testAddOpenFlowEntry() throws Exception { }