#NEWLINE# @ rest_utils . ajax ( data_required = True ) #NEWLINE# def post( self , request ) : #NEWLINE# #INDENT# 'Create a network\n\n        :param  admin_state_up (optional): The administrative state of the\n                network, which is up (true) or down (false).\n        :param name (optional): The network name. A request body is optional:\n                If you include it, it can specify this optional attribute.\n        :param net_profile_id (optional): network profile id\n        :param shared (optional): Indicates whether this network is shared\n                across all tenants. By default, only administrative users can\n                change this value.\n        :param tenant_id (optional): Admin-only. The UUID of the tenant that\n                will own the network. This tenant can be different from the\n                tenant that makes the create network request. However, only\n                administrative users can specify a tenant ID other than their\n                own. You cannot change this value through authorization\n                policies.\n\n         :return: JSON representation of a Network\n         ' #NEWLINE# if ( not api . neutron . is_port_profiles_supported ( ) ) : #NEWLINE# #INDENT# request . DATA . pop ( 'net_profile_id' , None ) #NEWLINE# #UNINDENT# new_network = api . neutron . network_create ( request , ** request . DATA ) #NEWLINE# return rest_utils . CreatedResponse ( ( '/api/neutron/networks/%s' % new_network . id ) , new_network . to_dict ( ) )