#NEWLINE# @ validation . required_services ( consts . Service . NEUTRON ) #NEWLINE# @ validation . required_openstack ( users = True ) #NEWLINE# @ scenario . configure ( context = { #NEWLINE# #INDENT# 'cleanup' : [ 'neutron' ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# def create_and_update_networks( self , network_update_args , network_create_args = None ) : #NEWLINE# #INDENT# 'Create and update a network.\n\n        Measure the "neutron net-create and net-update" command performance.\n\n        :param network_update_args: dict, PUT /v2.0/networks update request\n        :param network_create_args: dict, POST /v2.0/networks request options\n        ' #NEWLINE# network = self . _create_network ( ( network_create_args or { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ) #NEWLINE# self . _update_network ( network , self )