def setInOut(self, switch_id, action, port_in, port_out, flowname_suffix): if self.__match is None: self.__match = Match() new_act = Action(action) if port_out is not None: new_act.setOutputAction(port_out, 65535) self.__actions.append(new_act) self.__match.setInputMatch(port_in) self.__switch_id = switch_id self.__flow_name = self.__flow_name + flowname_suffix
def getNffgAction(self): base_action = Action() return base_action.getNffgAction(self.__actions, self.__nffg_flowrule)