#NEWLINE# def _process_port_create_security_group( self , context , port , security_group_ids ) : #NEWLINE# #INDENT# if validators . is_attr_set ( security_group_ids ) : #NEWLINE# #INDENT# for security_group_id in security_group_ids : #NEWLINE# #INDENT# self . _create_port_security_group_binding ( context , port [ 'id' ] , security_group_id ) #NEWLINE# #UNINDENT# #UNINDENT# port [ ext_sg . SECURITYGROUPS ] = ( ( security_group_ids and list ( security_group_ids ) ) or [ ] )