#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# super ( SampleNetworks , self ) . setUp ( ) #NEWLINE# ctxt = context . get_admin_context ( ) #NEWLINE# network = network_manager . VlanManager ( host = self . host ) #NEWLINE# bridge_interface = ( CONF . flat_interface or CONF . vlan_interface ) #NEWLINE# network . create_networks ( ctxt , label = 'test' , cidr = '10.0.0.0/8' , multi_host = CONF . multi_host , num_networks = CONF . num_networks , network_size = CONF . network_size , cidr_v6 = CONF . fixed_range_v6 , gateway = CONF . gateway , gateway_v6 = CONF . gateway_v6 , bridge = CONF . flat_network_bridge , bridge_interface = bridge_interface , vpn_start = CONF . vpn_start , vlan_start = CONF . vlan_start , dns1 = CONF . flat_network_dns ) #NEWLINE# for net in db . network_get_all ( ctxt ) : #NEWLINE# #INDENT# network . set_network_host ( ctxt , net )