def hp_flow_set_dst_port(self, dst_port):
     from utils import port_check
     if port_check(dst_port) != None :
         m_src_port = {"dst_port":dst_port}
         self.list_match_field.append(m_dst_port)
     else :
         print "invalid dst port"
     return
 def onos_flow_set_src_port(self, src_port):
     from utils import port_check
     if port_check(src_port) != None:
         m_src_port = {"src_port":src_port}
         self.list_match_field.append(m_src_port)
     else:
         print "invalid src port"
         return