#NEWLINE# def _generate_protocol_and_port_args( self , sg_rule ) : #NEWLINE# #INDENT# args = self . _protocol_arg ( sg_rule . get ( 'protocol' ) ) #NEWLINE# args += self . _port_arg ( 'sport' , sg_rule . get ( 'protocol' ) , sg_rule . get ( 'source_port_range_min' ) , sg_rule . get ( 'source_port_range_max' ) ) #NEWLINE# args += self . _port_arg ( 'dport' , sg_rule . get ( 'protocol' ) , sg_rule . get ( 'port_range_min' ) , sg_rule . get ( 'port_range_max' ) ) #NEWLINE# return args