#NEWLINE# def create_network( self , context , network ) : #NEWLINE# #INDENT# tenant_id = network [ 'network' ] . get ( 'tenant_id' ) #NEWLINE# self . _ensure_default_security_group ( context , tenant_id ) #NEWLINE# with context . session . begin ( subtransactions = True ) : #NEWLINE# #INDENT# neutron_db = super ( PortSecurityTestPlugin , self ) . create_network ( context , network ) #NEWLINE# neutron_db . update ( network [ 'network' ] ) #NEWLINE# self . _process_network_port_security_create ( network , network [ 'network' ] , neutron_db ) #NEWLINE# #UNINDENT# return neutron_db