#NEWLINE# def authorize_security_group( self , context , rule_body ) : #NEWLINE# #INDENT# neutron = clients . neutron ( context ) #NEWLINE# try : #NEWLINE# #INDENT# os_security_group_rule = neutron . create_security_group_rule ( { #NEWLINE# #INDENT# 'security_group_rule' : rule_body , #NEWLINE# #UNINDENT# } ) [ 'security_group_rule' ] #NEWLINE# #UNINDENT# except neutron_exception . OverQuotaClient : #NEWLINE# #INDENT# raise exception . RulesPerSecurityGroupLimitExceeded ( ) #NEWLINE# #UNINDENT# except neutron_exception . Conflict as ex : #NEWLINE# #INDENT# raise exception . InvalidPermissionDuplicate ( )