<s> from rally import consts <EOL> from rally . plugins . openstack import scenario <EOL> from rally . plugins . openstack . scenarios . nova import utils <EOL> from rally . task import validation <EOL> class NovaNetworks ( utils . NovaScenario ) : <EOL> """<STR_LIT>""" <EOL> @ validation . restricted_parameters ( "<STR_LIT:label>" ) <EOL> @ validation . required_parameters ( "<STR_LIT>" ) <EOL> @ validation . required_services ( consts . Service . NOVA , consts . Service . NOVA_NET ) <EOL> @ validation . required_openstack ( admin = True ) <EOL> @ scenario . configure ( context = { "<STR_LIT>" : [ "<STR_LIT>" ] } ) <EOL> def create_and_list_networks ( self , start_cidr , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> self . _create_network ( start_cidr , ** kwargs ) <EOL> self . _list_networks ( ) <EOL> @ validation . restricted_parameters ( "<STR_LIT:label>" ) <EOL> @ validation . required_parameters ( "<STR_LIT>" ) <EOL> @ validation . required_services ( consts . Service . NOVA , consts . Service . NOVA_NET ) <EOL> @ validation . required_openstack ( admin = True ) <EOL> @ scenario . configure ( context = { "<STR_LIT>" : [ "<STR_LIT>" ] } ) <EOL> def create_and_delete_network ( self , start_cidr , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> net_id = self . _create_network ( start_cidr , ** kwargs ) <EOL> self . _delete_network ( net_id ) </s>
