#NEWLINE# @ validation . required_parameters ( 'subnets_per_network' ) #NEWLINE# @ validation . required_services ( consts . Service . NEUTRON ) #NEWLINE# @ scenario . configure ( context = { #NEWLINE# #INDENT# 'cleanup' : [ 'neutron' ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# def create_and_delete_routers( self , network_create_args = None , subnet_create_args = None , subnet_cidr_start = None , subnets_per_network = None , router_create_args = None ) : #NEWLINE# #INDENT# 'Create and delete a given number of routers.\n\n        Create a network, a given number of subnets and routers\n        and then delete all routers.\n\n        :param network_create_args: dict, POST /v2.0/networks request\n                                    options. Deprecated.\n        :param subnet_create_args: dict, POST /v2.0/subnets request options\n        :param subnet_cidr_start: str, start value for subnets CIDR\n        :param subnets_per_network: int, number of subnets for one network\n        :param router_create_args: dict, POST /v2.0/routers request options\n        ' #NEWLINE# ( network , subnets , routers ) = self . _create_network_structure ( network_create_args , subnet_create_args , subnet_cidr_start , subnets_per_network , router_create_args ) #NEWLINE# for e in range ( subnets_per_network ) : #NEWLINE# #INDENT# router = routers [ e ] #NEWLINE# subnet = subnets [ subnet_cidr_start ] #NEWLINE# self . _remove_interface_router ( subnet [ 'subnet' ] , router [ 'router' ] ) #NEWLINE# self . _delete_router ( router )