**** CubicPower OpenStack Study ****
# Copyright 2014 Alcatel-Lucent USA Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# @author: Ronak Shah, Aniket Dandekar, Nuage Networks, Alcatel-Lucent USA Inc.
import uuid
**** CubicPower OpenStack Study ****
class FakeNuageClient(object):
**** CubicPower OpenStack Study ****
def __init__(self, server, base_uri, serverssl,
serverauth, auth_resource, organization):
pass
**** CubicPower OpenStack Study ****
def rest_call(self, action, resource, data, extra_headers=None):
pass
**** CubicPower OpenStack Study ****
def vms_on_l2domain(self, l2dom_id):
pass
**** CubicPower OpenStack Study ****
def create_subnet(self, neutron_subnet, params):
nuage_subnet = {
'nuage_l2template_id': str(uuid.uuid4()),
'nuage_userid': str(uuid.uuid4()),
'nuage_groupid': str(uuid.uuid4()),
'nuage_l2domain_id': str(uuid.uuid4())
}
return nuage_subnet
**** CubicPower OpenStack Study ****
def delete_subnet(self, id, template_id):
pass
**** CubicPower OpenStack Study ****
def create_router(self, neutron_router, router, params):
nuage_router = {
'nuage_userid': str(uuid.uuid4()),
'nuage_groupid': str(uuid.uuid4()),
'nuage_domain_id': str(uuid.uuid4()),
'nuage_def_zone_id': str(uuid.uuid4()),
}
return nuage_router
**** CubicPower OpenStack Study ****
def delete_router(self, id):
pass
**** CubicPower OpenStack Study ****
def delete_user(self, id):
pass
**** CubicPower OpenStack Study ****
def delete_group(self, id):
pass
**** CubicPower OpenStack Study ****
def create_domain_subnet(self, neutron_subnet, params):
pass
**** CubicPower OpenStack Study ****
def delete_domain_subnet(self, id):
pass
**** CubicPower OpenStack Study ****
def create_net_partition(self, params):
fake_net_partition = {
'nuage_entid': str(uuid.uuid4()),
'l3dom_id': str(uuid.uuid4()),
'l2dom_id': str(uuid.uuid4()),
}
return fake_net_partition
**** CubicPower OpenStack Study ****
def delete_net_partition(self, id, l3dom_id=None, l2dom_id=None):
pass
**** CubicPower OpenStack Study ****
def check_del_def_net_partition(self, ent_name):
pass
**** CubicPower OpenStack Study ****
def create_vms(self, params):
pass
**** CubicPower OpenStack Study ****
def delete_vms(self, params):
pass