def test_admin_vip_is_reserved_but_not_created(self):
        net_role = {
            'id': 'admin/vip',
            'default_mapping': consts.NETWORKS.fuelweb_admin,
            'properties': {
                'subnet': True,
                'gateway': False,
                'vip': [{
                    'name': 'my-vip',
                    'namespace': 'test-namespace'
                }]
            }
        }

        self.cluster.release.network_roles_metadata.append(net_role)
        self.cluster.release.version = '2015.1-8.0'
        self.db.flush()

        resp = self.env.neutron_networks_put(self.cluster.id, {})
        self.assertEqual(200, resp.status_code)

        reserved_vip = resp.json_body['vips'].get('my-vip')

        self.assertIsNotNone(reserved_vip)

        self.assertEqual(reserved_vip['namespace'], 'test-namespace')
        self.assertEqual(reserved_vip['network_role'], net_role['id'])

        self.assertIsNone(reserved_vip['ipaddr'])
        self.assertFalse(reserved_vip['is_user_defined'])

        vip_db = objects.IPAddrCollection.get_by_cluster_id(
            self.cluster.id
        ).filter(objects.IPAddr.model.vip_name == 'my-vip').first()
        self.assertIsNone(vip_db)
dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/integration/test_network_configuration.py/TestNeutronNetworkConfigurationHandler.test_admin_vip_is_reserved_but_not_created/original