def test_update_networks_and_net_manager(self):
        network = self.db.query(models.NetworkGroup).filter(
            not_(models.NetworkGroup.name == consts.NETWORKS.fuelweb_admin)
        ).first()
        new_vlan_id = 500  # non-used vlan id
        new_net = {
            'networking_parameters': {
                'net_manager': consts.NOVA_NET_MANAGERS.VlanManager
            },
            'networks': [{'id': network.id, 'vlan_start': new_vlan_id}]
        }
        self.env.nova_networks_put(self.cluster.id, new_net)

        self.db.refresh(self.cluster)
        self.db.refresh(network)
        self.assertEqual(
            self.cluster.network_config.net_manager,
            new_net['networking_parameters']['net_manager'])
        self.assertEqual(network.vlan_start, new_vlan_id)
dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/integration/test_network_configuration.py/TestNovaNetworkConfigurationHandler.test_update_networks_and_net_manager/original