SfcScfOfUtils { public static boolean deleteClassifierFlow(String nodeName, String flowKey) { if ((nodeName == null) || (flowKey == null)) { return false; } return SfcOpenflowUtils.removeFlowFromDataStore(nodeName, new TableKey(TABLE_INDEX_CLASSIFIER), new FlowKey(new FlowId(flowKey))); }  static FlowBuilder initClassifierTable(); static FlowBuilder initClassifierDpdkOutputFlow(Long outPort); static FlowBuilder initClassifierDpdkInputFlow(String nodeName, Long inPort); static FlowBuilder createClassifierOutFlow(String flowKey, Match match, SfcNshHeader sfcNshHeader,
                                                  Long outPort); static FlowBuilder createClassifierInFlow(String flowKey, SfcNshHeader sfcNshHeader, Long outPort); static FlowBuilder createClassifierRelayFlow(String flowKey, SfcNshHeader sfcNshHeader); static boolean deleteClassifierFlow(String nodeName, String flowKey); static final int FLOW_PRIORITY_CLASSIFIER; static final int FLOW_PRIORITY_MATCH_ANY; static final short NSH_MDTYPE_ONE; static final short NSH_NP_ETH; static final short TUN_GPE_NP_NSH; }
@Test public void testDeleteClassifierFlow() { assertFalse(SfcScfOfUtils.deleteClassifierFlow(null, null)); assertFalse(SfcScfOfUtils.deleteClassifierFlow(null, "flow")); assertFalse(SfcScfOfUtils.deleteClassifierFlow("node", null)); assertTrue(SfcScfOfUtils.deleteClassifierFlow("node", "flow")); }