#NEWLINE# def _create_subnet_db( self , context , subnet ) : #NEWLINE# #INDENT# session = context . session #NEWLINE# with session . begin ( subtransactions = True ) : #NEWLINE# #INDENT# result = super ( Ml2Plugin , self ) . create_subnet ( context , subnet ) #NEWLINE# self . extension_manager . process_create_subnet ( context , subnet [ attributes . SUBNET ] , result ) #NEWLINE# network = self . get_network ( context , result [ 'network_id' ] ) #NEWLINE# mech_context = driver_context . SubnetContext ( self , context , result , network ) #NEWLINE# self . mechanism_manager . create_subnet_precommit ( mech_context ) #NEWLINE# #UNINDENT# return ( result , mech_context )