#NEWLINE# def dp_flow_mod( dp , table , command , priority , match , instructions , out_port = None ) : #NEWLINE# #INDENT# ofproto = dp . ofproto #NEWLINE# ofproto_parser = dp . ofproto_parser #NEWLINE# if ( out_port is None ) : #NEWLINE# #INDENT# out_port = out_port . OFPP_ANY #NEWLINE# #UNINDENT# flow_mod = ofproto_parser . OFPFlowMod ( dp , 0 , 0 , table , command , 0 , 0 , priority , 4294967295 , out_port , ofproto . OFPG_ANY , ofproto . OFPFF_CHECK_OVERLAP , match , instructions ) #NEWLINE# dp . send_msg ( flow_mod )