1 # Copyright 2016-2017 ZTE Corporation.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
18 from django.test import TestCase, Client
19 from rest_framework import status
21 from lcm.ns.vnfs import create_vnfs
22 from lcm.ns.vnfs.const import VNF_STATUS, INST_TYPE
23 from lcm.ns.vnfs.create_vnfs import CreateVnfs
24 from lcm.ns.vnfs.heal_vnfs import NFHealService
25 from lcm.ns.vnfs.scale_vnfs import NFManualScaleService
26 from lcm.ns.vnfs.terminate_nfs import TerminateVnfs
27 from lcm.pub.database.models import NfInstModel, JobModel, NfPackageModel, NSInstModel, VmInstModel
28 from lcm.pub.exceptions import NSLCMException
29 from lcm.pub.utils import restcall
30 from lcm.pub.utils.jobutil import JOB_MODEL_STATUS
31 from lcm.pub.utils.jobutil import JobUtil, JOB_TYPE
32 from lcm.pub.utils.timeutil import now_time
33 from lcm.pub.utils.values import ignore_case_get
36 class TestGetVnfViews(TestCase):
38 self.client = Client()
39 self.nf_inst_id = str(uuid.uuid4())
40 NfInstModel(nfinstid=self.nf_inst_id, nf_name='vnf1', vnfm_inst_id='1', vnf_id='vnf_id1',
41 status=VNF_STATUS.ACTIVE, create_time=now_time(), lastuptime=now_time()).save()
44 NfInstModel.objects.all().delete()
46 def test_get_vnf(self):
47 response = self.client.get("/api/nslcm/v1/ns/vnfs/%s" % self.nf_inst_id)
48 self.failUnlessEqual(status.HTTP_200_OK, response.status_code)
49 context = json.loads(response.content)
50 self.failUnlessEqual(self.nf_inst_id, context['vnfInstId'])
53 class TestCreateVnfViews(TestCase):
55 self.ns_inst_id = str(uuid.uuid4())
56 self.job_id = str(uuid.uuid4())
58 "nsInstanceId": self.ns_inst_id,
59 "additionalParamForNs": {
60 "inputs": json.dumps({
64 "additionalParamForVnf": [
66 "vnfprofileid": "VBras",
68 "inputs": json.dumps({
72 "vnfminstanceid": "1",
79 self.client = Client()
80 NfPackageModel(uuid=str(uuid.uuid4()), nfpackageid='package_id1', vnfdid='zte_vbras', vendor='zte',
81 vnfdversion='1.0.0', vnfversion='1.0.0', vnfdmodel=json.dumps(vnfd_model_dict)).save()
82 NSInstModel(id=self.ns_inst_id, name='ns', nspackage_id='1', nsd_id='nsd_id', description='description',
83 status='instantiating', nsd_model=json.dumps(nsd_model_dict), create_time=now_time(),
84 lastuptime=now_time()).save()
87 NfInstModel.objects.all().delete()
88 JobModel.objects.all().delete()
90 @mock.patch.object(CreateVnfs, 'run')
91 def test_create_vnf(self, mock_run):
92 response = self.client.post("/api/nslcm/v1/ns/vnfs", data=self.data)
93 self.failUnlessEqual(status.HTTP_202_ACCEPTED, response.status_code)
94 context = json.loads(response.content)
95 self.assertTrue(NfInstModel.objects.filter(nfinstid=context['vnfInstId']).exists())
97 @mock.patch.object(restcall, 'call_req')
98 def test_create_vnf_thread(self, mock_call_req):
99 nf_inst_id, job_id = create_vnfs.prepare_create_params()
101 "/api/ztevmanagerdriver/v1/1/vnfs":
102 [0, json.JSONEncoder().encode({"jobId": self.job_id, "vnfInstanceId": 3}), '200'],
103 "/external-system/esr-vnfm-list/esr-vnfm/1?depth=all":
104 [0, json.JSONEncoder().encode(vnfm_info), '200'],
105 "/api/resmgr/v1/vnf":
106 [0, json.JSONEncoder().encode({}), '200'],
107 "/api/resmgr/v1/vnfinfo":
108 [0, json.JSONEncoder().encode({}), '200'],
109 "/network/generic-vnfs/generic-vnf/%s" % nf_inst_id:
110 [0, json.JSONEncoder().encode({}), '201'],
111 "/cloud-infrastructure/cloud-regions/cloud-region/zte/test?depth=all":
112 [0, json.JSONEncoder().encode(vim_info), '201'],
113 "/cloud-infrastructure/cloud-regions/cloud-region/zte/test/tenants/tenant/admin/vservers/vserver/1":
114 [0, json.JSONEncoder().encode({}), '201'],
115 "/api/ztevmanagerdriver/v1/1/jobs/" + self.job_id + "?responseId=0":
116 [0, json.JSONEncoder().encode({"jobid": self.job_id,
117 "responsedescriptor": {"progress": "100",
118 "status": JOB_MODEL_STATUS.FINISHED,
120 "statusdescription": "creating",
122 "responsehistorylist": [
124 "status": JOB_MODEL_STATUS.PROCESSING,
126 "statusdescription": "creating",
127 "errorcode": "0"}]}}), '200']}
129 def side_effect(*args):
130 return mock_vals[args[4]]
131 mock_call_req.side_effect = side_effect
133 'ns_instance_id': ignore_case_get(self.data, 'nsInstanceId'),
134 'additional_param_for_ns': ignore_case_get(self.data, 'additionalParamForNs'),
135 'additional_param_for_vnf': ignore_case_get(self.data, 'additionalParamForVnf'),
136 'vnf_index': ignore_case_get(self.data, 'vnfIndex')
138 CreateVnfs(data, nf_inst_id, job_id).run()
139 self.assertTrue(NfInstModel.objects.get(nfinstid=nf_inst_id).status, VNF_STATUS.ACTIVE)
142 class TestTerminateVnfViews(TestCase):
144 self.client = Client()
145 self.ns_inst_id = str(uuid.uuid4())
146 self.nf_inst_id = '1'
147 self.vnffg_id = str(uuid.uuid4())
148 self.vim_id = str(uuid.uuid4())
149 self.job_id = str(uuid.uuid4())
151 self.tenant = "tenantname"
155 "vnfdName": "PGW001",
156 "vnfProvider": "zte",
157 "vnfdVersion": "V00001",
158 "vnfVersion": "V5.10.20",
161 "description": "PGW VNFD description",
163 "vnfExtendType": "driver"
166 NSInstModel.objects.all().delete()
167 NfInstModel.objects.all().delete()
168 VmInstModel.objects.all().delete()
169 NSInstModel(id=self.ns_inst_id, name="ns_name").save()
170 NfInstModel.objects.create(nfinstid=self.nf_inst_id,
174 ns_inst_id='111,2-2-2',
181 mnfinstid=self.nf_uuid,
183 vnfd_model=self.vnfd_model)
184 VmInstModel.objects.create(vmid="1",
187 insttype=INST_TYPE.VNF,
188 instid=self.nf_inst_id,
193 NSInstModel.objects.all().delete()
194 NfInstModel.objects.all().delete()
196 @mock.patch.object(TerminateVnfs, 'run')
197 def test_terminate_vnf_url(self, mock_run):
199 "terminationType": "forceful",
200 "gracefulTerminationTimeout": "600"}
202 response = self.client.post("/api/nslcm/v1/ns/vnfs/%s" % self.nf_inst_id, data=req_data)
203 self.failUnlessEqual(status.HTTP_201_CREATED, response.status_code)
206 @mock.patch.object(restcall, 'call_req')
207 def test_terminate_vnf(self, mock_call_req):
208 job_id = JobUtil.create_job("VNF", JOB_TYPE.TERMINATE_VNF, self.nf_inst_id)
210 nfinst = NfInstModel.objects.filter(nfinstid=self.nf_inst_id)
212 self.failUnlessEqual(1, 1)
214 self.failUnlessEqual(1, 0)
217 "vnf-id": "vnf-id-test111",
218 "vnf-name": "vnf-name-test111",
219 "vnf-type": "vnf-type-test111",
221 "is-closed-loop-disabled": False,
222 "resource-version": "1505465356262"
226 "responsedescriptor": {
228 "status": JOB_MODEL_STATUS.FINISHED,
230 "statusdescription": "creating",
232 "responsehistorylist": [
235 "status": JOB_MODEL_STATUS.PROCESSING,
237 "statusdescription": "creating",
245 "/external-system/esr-vnfm-list/esr-vnfm/1?depth=all":
246 [0, json.JSONEncoder().encode(vnfm_info), '200'],
247 "/api/ztevmanagerdriver/v1/1/vnfs/111/terminate":
248 [0, json.JSONEncoder().encode({"jobId": job_id}), '200'],
249 "/api/resmgr/v1/vnf/1":
250 [0, json.JSONEncoder().encode({"jobId": job_id}), '200'],
251 "/cloud-infrastructure/cloud-regions/cloud-region/zte/test?depth=all":
252 [0, json.JSONEncoder().encode(vim_info), '201'],
253 "/cloud-infrastructure/cloud-regions/cloud-region/zte/test/tenants/tenant/admin/vservers/vserver/1?depth=all":
254 [0, json.JSONEncoder().encode(vserver_info), '201'],
255 "/cloud-infrastructure/cloud-regions/cloud-region/zte/test/tenants/tenant/admin/vservers/vserver/1?resource-version=1505465356263":
256 [0, json.JSONEncoder().encode({}), '200'],
257 "/api/ztevmanagerdriver/v1/1/jobs/" + job_id + "?responseId=0":
258 [0, json.JSONEncoder().encode(job_info), '200'],
259 "/network/generic-vnfs/generic-vnf/1?depth=all":
260 [0, json.JSONEncoder().encode(vnf_info), '200'],
261 "/network/generic-vnfs/generic-vnf/1?resource-version=1505465356262":
262 [0, json.JSONEncoder().encode({}), '200']
265 def side_effect(*args):
266 return mock_vals[args[4]]
267 mock_call_req.side_effect = side_effect
270 "terminationType": "forceful",
271 "gracefulTerminationTimeout": "600"
274 TerminateVnfs(req_data, self.nf_inst_id, job_id).run()
275 nfinst = NfInstModel.objects.filter(nfinstid=self.nf_inst_id)
277 self.failUnlessEqual(1, 0)
279 self.failUnlessEqual(1, 1)
281 class TestScaleVnfViews(TestCase):
283 self.client = Client()
284 self.ns_inst_id = str(uuid.uuid4())
285 self.nf_inst_id = str(uuid.uuid4())
286 self.vnffg_id = str(uuid.uuid4())
287 self.vim_id = str(uuid.uuid4())
288 self.job_id = str(uuid.uuid4())
290 self.tenant = "tenantname"
291 NSInstModel(id=self.ns_inst_id, name="ns_name").save()
292 NfInstModel.objects.create(nfinstid=self.nf_inst_id, nf_name='name_1', vnf_id='1',
293 vnfm_inst_id='1', ns_inst_id='111,2-2-2',
294 max_cpu='14', max_ram='12296', max_hd='101', max_shd="20", max_net=10,
295 status='active', mnfinstid=self.nf_uuid, package_id='pkg1',
296 vnfd_model='{"metadata": {"vnfdId": "1","vnfdName": "PGW001",'
297 '"vnfProvider": "zte","vnfdVersion": "V00001","vnfVersion": "V5.10.20",'
298 '"productType": "CN","vnfType": "PGW",'
299 '"description": "PGW VNFD description",'
300 '"isShared":true,"vnfExtendType":"driver"}}')
303 NSInstModel.objects.all().delete()
304 NfInstModel.objects.all().delete()
306 @mock.patch.object(restcall, "call_req")
307 def test_scale_vnf(self, mock_call_req):
308 job_id = JobUtil.create_job("VNF", JOB_TYPE.TERMINATE_VNF, self.nf_inst_id)
313 "flavour_id":"flavour1",
318 "instances_minimum_number": 1,
319 "instances_maximum_number": 4,
320 "local_affinity_antiaffinity_rule":[
322 "affinity_antiaffinity":"affinity",
331 "name": "demo_aspect",
332 "description": "demo_aspect",
333 "associated_group": "elementGroup1",
341 "group_id": "elementGroup1",
344 "name": "elementGroup1",
346 "members": ["gsu_vm","pfu_vm"],
355 "aspectId":"demo_aspect1",
357 "additionalParam":vnfd_info
361 "aspectId":"demo_aspect2",
363 "additionalParam":vnfd_info
370 "/api/ztevmanagerdriver/v1/1/vnfs/111/terminate":
371 [0, json.JSONEncoder().encode({"jobId": job_id}), '200'],
372 "/api/ztevmanagerdriver/v1/1/vnfs/111/terminate":
373 [0, json.JSONEncoder().encode({"jobId": job_id}), '200']
375 def side_effect(*args):
376 return mock_vals[args[4]]
377 mock_call_req.side_effect = side_effect
379 NFManualScaleService(self.nf_inst_id, req_data).run()
380 nsIns = NfInstModel.objects.filter(nfinstid=self.nf_inst_id)
382 self.failUnlessEqual(1, 1)
384 self.failUnlessEqual(1, 0)
387 class TestHealVnfViews(TestCase):
389 self.client = Client()
390 self.ns_inst_id = str(uuid.uuid4())
391 self.nf_inst_id = str(uuid.uuid4())
394 self.job_id = JobUtil.create_job("VNF", JOB_TYPE.HEAL_VNF, self.nf_inst_id)
396 NSInstModel(id=self.ns_inst_id, name="ns_name").save()
397 NfInstModel.objects.create(nfinstid=self.nf_inst_id, nf_name='name_1', vnf_id='1',
398 vnfm_inst_id='1', ns_inst_id='111,2-2-2',
399 max_cpu='14', max_ram='12296', max_hd='101', max_shd="20", max_net=10,
400 status='active', mnfinstid=self.nf_uuid, package_id='pkg1',
401 vnfd_model='{"metadata": {"vnfdId": "1","vnfdName": "PGW001",'
402 '"vnfProvider": "zte","vnfdVersion": "V00001","vnfVersion": "V5.10.20",'
403 '"productType": "CN","vnfType": "PGW",'
404 '"description": "PGW VNFD description",'
405 '"isShared":true,"vnfExtendType":"driver"}}')
408 NSInstModel.objects.all().delete()
409 NfInstModel.objects.all().delete()
411 @mock.patch.object(restcall, "call_req")
412 def test_heal_vnf(self, mock_call_req):
416 "/api/ztevmanagerdriver/v1/1/vnfs/111/heal":
417 [0, json.JSONEncoder().encode({"jobId": self.job_id}), '200'],
418 "/external-system/esr-vnfm-list/esr-vnfm/1":
419 [0, json.JSONEncoder().encode(vnfm_info), '200'],
420 "/api/resmgr/v1/vnf/1":
421 [0, json.JSONEncoder().encode({"jobId": self.job_id}), '200'],
422 "/api/ztevmanagerdriver/v1/1/jobs/" + self.job_id + "?responseId=0":
423 [0, json.JSONEncoder().encode({"jobId": self.job_id,
424 "responsedescriptor": {"progress": "100",
425 "status": JOB_MODEL_STATUS.FINISHED,
427 "statusdescription": "creating",
429 "responsehistorylist": [
431 "status": JOB_MODEL_STATUS.PROCESSING,
433 "statusdescription": "creating",
434 "errorcode": "0"}]}}), '200']}
436 def side_effect(*args):
437 return mock_vals[args[4]]
439 mock_call_req.side_effect = side_effect
450 NFHealService(self.nf_inst_id, req_data).run()
452 self.assertEqual(NfInstModel.objects.get(nfinstid=self.nf_inst_id).status, VNF_STATUS.ACTIVE)
454 @mock.patch.object(NFHealService, "run")
455 def test_heal_vnf_non_existing_vnf(self, mock_biz):
456 mock_biz.side_effect = NSLCMException("VNF Not Found")
469 self.assertRaises(NSLCMException, NFHealService(nf_inst_id, req_data).run)
470 self.assertEqual(len(NfInstModel.objects.filter(nfinstid=nf_inst_id)), 0)
472 class TestGetVnfmInfoViews(TestCase):
474 self.client = Client()
475 self.vnfm_id = str(uuid.uuid4())
480 @mock.patch.object(restcall, "call_req")
481 def test_get_vnfm_info(self, mock_call_req):
483 "vnfm-id": "example-vnfm-id-val-62576",
484 "vim-id": "example-vim-id-val-35114",
485 "certificate-url": "example-certificate-url-val-90242",
486 "esr-system-info-list": {
489 "esr-system-info-id": "example-esr-system-info-id-val-78484",
490 "system-name": "example-system-name-val-23790",
491 "type": "example-type-val-52596",
492 "vendor": "example-vendor-val-47399",
493 "version": "example-version-val-42051",
494 "service-url": "example-service-url-val-10731",
495 "user-name": "example-user-name-val-65946",
496 "password": "example-password-val-22505",
497 "system-type": "example-system-type-val-27221",
498 "protocal": "example-protocal-val-54632",
499 "ssl-cacert": "example-ssl-cacert-val-45965",
500 "ssl-insecure": True,
501 "ip-address": "example-ip-address-val-19212",
502 "port": "example-port-val-57641",
503 "cloud-domain": "example-cloud-domain-val-26296",
504 "default-tenant": "example-default-tenant-val-87724"
509 r1 = [0, json.JSONEncoder().encode(vnfm_info_aai), '200']
510 mock_call_req.side_effect = [r1]
511 esr_system_info = ignore_case_get(ignore_case_get(vnfm_info_aai, "esr-system-info-list"), "esr-system-info")
513 "vnfmId": vnfm_info_aai["vnfm-id"],
514 "name": vnfm_info_aai["vnfm-id"],
515 "type": ignore_case_get(esr_system_info[0], "type"),
516 "vimId": vnfm_info_aai["vim-id"],
517 "vendor": ignore_case_get(esr_system_info[0], "vendor"),
518 "version": ignore_case_get(esr_system_info[0], "version"),
519 "description": "vnfm",
520 "certificateUrl": vnfm_info_aai["certificate-url"],
521 "url": ignore_case_get(esr_system_info[0], "service-url"),
522 "userName": ignore_case_get(esr_system_info[0], "user-name"),
523 "password": ignore_case_get(esr_system_info[0], "password"),
524 "createTime": "2016-07-06 15:33:18"
527 response = self.client.get("/api/nslcm/v1/vnfms/%s" % self.vnfm_id)
528 self.failUnlessEqual(status.HTTP_200_OK, response.status_code)
529 context = json.loads(response.content)
530 self.assertEqual(expect_data, context)
532 class TestGetVimInfoViews(TestCase):
534 self.client = Client()
535 self.vim_id = "zte_test"
540 @mock.patch.object(restcall, "call_req")
541 def test_get_vim_info(self, mock_call_req):
542 r1 = [0, json.JSONEncoder().encode(vim_info), '200']
543 mock_call_req.side_effect = [r1]
544 esr_system_info = ignore_case_get(ignore_case_get(vim_info, "esr-system-info-list"), "esr-system-info")
546 "vimId": self.vim_id,
548 "url": ignore_case_get(esr_system_info[0], "service-url"),
549 "userName": ignore_case_get(esr_system_info[0], "user-name"),
550 "password": ignore_case_get(esr_system_info[0], "password"),
551 # "tenant": ignore_case_get(tenants[0], "tenant-id"),
552 "tenant": ignore_case_get(esr_system_info[0], "default-tenant"),
553 "vendor": ignore_case_get(esr_system_info[0], "vendor"),
554 "version": ignore_case_get(esr_system_info[0], "version"),
555 "description": "vim",
557 "type": ignore_case_get(esr_system_info[0], "type"),
558 "createTime": "2016-07-18 12:22:53"
561 response = self.client.get("/api/nslcm/v1/vims/%s" % self.vim_id)
562 self.failUnlessEqual(status.HTTP_200_OK, response.status_code)
563 context = json.loads(response.content)
564 self.assertEqual(expect_data["url"], context["url"])
582 'vdu_id': u'vdu_omm.001',
583 'image_file': u'opencos_sss_omm_img_release_20150723-1-disk1',
595 'support_scaling': False,
598 'storage_policy': '',
601 'availability_zone': '',
607 'inject_data_list': [
614 'local_affinity_antiaffinity_rule': {
617 'template_id': u'omm.001',
618 'manual_scale_select_vim': False
620 'description': u'singleommvm'
634 'image_file': u'sss',
646 'support_scaling': False,
649 'storage_policy': '',
652 'availability_zone': '',
658 'inject_data_list': [
665 'local_affinity_antiaffinity_rule': {
669 'manual_scale_select_vim': False
671 'description': u'ompvm'
685 'image_file': u'sss',
697 'support_scaling': False,
700 'storage_policy': '',
703 'availability_zone': '',
709 'inject_data_list': [
716 'local_affinity_antiaffinity_rule': {
720 'manual_scale_select_vim': False
722 'description': u'ompvm'
736 'image_file': u'sss',
748 'support_scaling': False,
751 'storage_policy': '',
754 'availability_zone': '',
760 'inject_data_list': [
767 'local_affinity_antiaffinity_rule': {
771 'manual_scale_select_vim': False
773 'description': u'ompvm'
787 'image_file': u'sss',
799 'support_scaling': False,
802 'storage_policy': '',
805 'availability_zone': '',
811 'inject_data_list': [
818 'local_affinity_antiaffinity_rule': {
821 'template_id': u'10',
822 'manual_scale_select_vim': False
824 'description': u'ppvm'
838 'image_file': u'sss',
850 'support_scaling': False,
853 'storage_policy': '',
856 'availability_zone': '',
862 'inject_data_list': [
869 'local_affinity_antiaffinity_rule': {
872 'template_id': u'11',
873 'manual_scale_select_vim': False
875 'description': u'ppvm'
889 'image_file': u'sss',
901 'support_scaling': False,
904 'storage_policy': '',
907 'availability_zone': '',
913 'inject_data_list': [
920 'local_affinity_antiaffinity_rule': {
923 'template_id': u'12',
924 'manual_scale_select_vim': False
926 'description': u'ppvm'
937 'policy_id': u'policy_scale_sss-vnf-template',
939 'policy_file': '*-vnfd.zip/*-vnf-policy.xml'
948 'name': u'opencos_sss_omm_img_release_20150723-1-disk1.vmdk',
950 'disk_format': u'VMDK',
951 'file_url': u'./zte-cn-sss-main-image/OMM/opencos_sss_omm_img_release_20150723-1-disk1.vmdk',
952 'container_type': 'vm',
954 'hypervisor_type': 'kvm'
956 'image_file_id': u'opencos_sss_omm_img_release_20150723-1-disk1'
963 'disk_format': u'VMDK',
964 'file_url': u'./zte-cn-sss-main-image/NE/sss.vmdk',
965 'container_type': 'vm',
967 'hypervisor_type': 'kvm'
969 'image_file_id': u'sss'
982 'domain_type': u'CN',
983 'version': u'v4.14.10',
984 'vmnumber_overquota_alarm': False,
987 'vnfd_version': u'V00000001',
988 'id': u'sss-vnf-template',
989 'name': u'sss-vnf-template'
998 "externalDataNetworkName": {
1022 "plugin_info": "vbrasplugin_1.0",
1024 "is_shared": "False",
1025 "request_reclassification": "False",
1026 "vnfd_version": "1.0.0",
1028 "nsh_aware": "True",
1029 "cross_dc": "False",
1030 "externalDataNetworkName": {
1031 "get_input": "externalDataNetworkName"
1053 "vl_id": "ext_mnet_network",
1056 "network_type": "vlan",
1057 "name": "externalMNetworkName",
1058 "dhcp_enabled": False,
1066 "end_ip": "190.168.100.100",
1067 "gateway_ip": "190.168.100.1",
1068 "start_ip": "190.168.100.2",
1069 "cidr": "190.168.100.0/24",
1071 "network_name": "sub_mnet",
1083 "invariant_id": "vbras_ns",
1084 "description": "vbras_ns",
1093 "vserver-id": "example-vserver-id-val-70924",
1094 "vserver-name": "example-vserver-name-val-61674",
1095 "vserver-name2": "example-vserver-name2-val-19234",
1096 "prov-status": "example-prov-status-val-94916",
1097 "vserver-selflink": "example-vserver-selflink-val-26562",
1099 "is-closed-loop-disabled": True,
1100 "resource-version": "1505465356263",
1104 "volume-id": "example-volume-id-val-71854",
1105 "volume-selflink": "example-volume-selflink-val-22433"
1112 "interface-name": "example-interface-name-val-24351",
1113 "interface-role": "example-interface-role-val-43242",
1114 "v6-wan-link-ip": "example-v6-wan-link-ip-val-4196",
1115 "selflink": "example-selflink-val-61295",
1116 "interface-id": "example-interface-id-val-95879",
1117 "macaddr": "example-macaddr-val-37302",
1118 "network-name": "example-network-name-val-44254",
1119 "management-option": "example-management-option-val-49009",
1120 "interface-description": "example-interface-description-val-99923",
1121 "is-port-mirrored": True,
1123 "prov-status": "example-prov-status-val-4698",
1124 "is-ip-unnumbered": True,
1125 "allowed-address-pairs": "example-allowed-address-pairs-val-5762",
1129 "vlan-interface": "example-vlan-interface-val-58193",
1130 "vlan-id-inner": 54452151,
1131 "vlan-id-outer": 70239293,
1132 "speed-value": "example-speed-value-val-18677",
1133 "speed-units": "example-speed-units-val-46185",
1134 "vlan-description": "example-vlan-description-val-81675",
1135 "backdoor-connection": "example-backdoor-connection-val-44608",
1136 "vpn-key": "example-vpn-key-val-7946",
1137 "orchestration-status": "example-orchestration-status-val-33611",
1139 "prov-status": "example-prov-status-val-8288",
1140 "is-ip-unnumbered": True,
1141 "l3-interface-ipv4-address-list": [
1143 "l3-interface-ipv4-address": "example-l3-interface-ipv4-address-val-25520",
1144 "l3-interface-ipv4-prefix-length": 69931928,
1145 "vlan-id-inner": 86628520,
1146 "vlan-id-outer": 62729236,
1147 "is-floating": True,
1148 "neutron-network-id": "example-neutron-network-id-val-64021",
1149 "neutron-subnet-id": "example-neutron-subnet-id-val-95049"
1152 "l3-interface-ipv6-address-list": [
1154 "l3-interface-ipv6-address": "example-l3-interface-ipv6-address-val-64310",
1155 "l3-interface-ipv6-prefix-length": 57919834,
1156 "vlan-id-inner": 79150122,
1157 "vlan-id-outer": 59789973,
1158 "is-floating": True,
1159 "neutron-network-id": "example-neutron-network-id-val-31713",
1160 "neutron-subnet-id": "example-neutron-subnet-id-val-89568"
1169 "pci-id": "example-pci-id-val-16747",
1170 "vf-vlan-filter": "example-vf-vlan-filter-val-4613",
1171 "vf-mac-filter": "example-vf-mac-filter-val-68168",
1172 "vf-vlan-strip": True,
1173 "vf-vlan-anti-spoof-check": True,
1174 "vf-mac-anti-spoof-check": True,
1175 "vf-mirrors": "example-vf-mirrors-val-6270",
1176 "vf-broadcast-allow": True,
1177 "vf-unknown-multicast-allow": True,
1178 "vf-unknown-unicast-allow": True,
1179 "vf-insert-stag": True,
1180 "vf-link-status": "example-vf-link-status-val-49266",
1181 "neutron-network-id": "example-neutron-network-id-val-29493"
1188 "interface-name": "example-interface-name-val-98222",
1189 "interface-role": "example-interface-role-val-78360",
1190 "v6-wan-link-ip": "example-v6-wan-link-ip-val-76921",
1191 "selflink": "example-selflink-val-27117",
1192 "interface-id": "example-interface-id-val-11260",
1193 "macaddr": "example-macaddr-val-60378",
1194 "network-name": "example-network-name-val-16258",
1195 "management-option": "example-management-option-val-35097",
1196 "interface-description": "example-interface-description-val-10475",
1197 "is-port-mirrored": True,
1199 "prov-status": "example-prov-status-val-65203",
1200 "is-ip-unnumbered": True,
1201 "allowed-address-pairs": "example-allowed-address-pairs-val-65028"
1205 "l3-interface-ipv4-address-list": [
1207 "l3-interface-ipv4-address": "example-l3-interface-ipv4-address-val-72779",
1208 "l3-interface-ipv4-prefix-length": 55956636,
1209 "vlan-id-inner": 98174431,
1210 "vlan-id-outer": 20372128,
1211 "is-floating": True,
1212 "neutron-network-id": "example-neutron-network-id-val-39596",
1213 "neutron-subnet-id": "example-neutron-subnet-id-val-51109"
1216 "l3-interface-ipv6-address-list": [
1218 "l3-interface-ipv6-address": "example-l3-interface-ipv6-address-val-95203",
1219 "l3-interface-ipv6-prefix-length": 57454747,
1220 "vlan-id-inner": 53421060,
1221 "vlan-id-outer": 16006050,
1222 "is-floating": True,
1223 "neutron-network-id": "example-neutron-network-id-val-54216",
1224 "neutron-subnet-id": "example-neutron-subnet-id-val-1841"
1234 "vnfm-id": "example-vnfm-id-val-97336",
1235 "vim-id": "zte_test",
1236 "certificate-url": "example-certificate-url-val-18046",
1237 "resource-version": "example-resource-version-val-42094",
1238 "esr-system-info-list": {
1239 "esr-system-info": [
1241 "esr-system-info-id": "example-esr-system-info-id-val-7713",
1242 "system-name": "example-system-name-val-19801",
1243 "type": "ztevmanagerdriver",
1244 "vendor": "example-vendor-val-50079",
1245 "version": "example-version-val-93146",
1246 "service-url": "example-service-url-val-68090",
1247 "user-name": "example-user-name-val-14470",
1248 "password": "example-password-val-84190",
1249 "system-type": "example-system-type-val-42773",
1250 "protocal": "example-protocal-val-85736",
1251 "ssl-cacert": "example-ssl-cacert-val-33989",
1252 "ssl-insecure": True,
1253 "ip-address": "example-ip-address-val-99038",
1254 "port": "example-port-val-27323",
1255 "cloud-domain": "example-cloud-domain-val-55163",
1256 "default-tenant": "example-default-tenant-val-99383",
1257 "resource-version": "example-resource-version-val-15424"
1264 "cloud-owner": "example-cloud-owner-val-97336",
1265 "cloud-region-id": "example-cloud-region-id-val-35532",
1266 "cloud-type": "example-cloud-type-val-18046",
1267 "owner-defined-type": "example-owner-defined-type-val-9413",
1268 "cloud-region-version": "example-cloud-region-version-val-85706",
1269 "identity-url": "example-identity-url-val-71252",
1270 "cloud-zone": "example-cloud-zone-val-27112",
1271 "complex-name": "example-complex-name-val-85283",
1272 "sriov-automation": True,
1273 "cloud-extra-info": "example-cloud-extra-info-val-90854",
1274 "cloud-epa-caps": "example-cloud-epa-caps-val-2409",
1275 "resource-version": "example-resource-version-val-42094",
1276 "esr-system-info-list": {
1277 "esr-system-info": [
1279 "esr-system-info-id": "example-esr-system-info-id-val-7713",
1280 "system-name": "example-system-name-val-19801",
1281 "type": "example-type-val-24477",
1282 "vendor": "example-vendor-val-50079",
1283 "version": "example-version-val-93146",
1284 "service-url": "example-service-url-val-68090",
1285 "user-name": "example-user-name-val-14470",
1286 "password": "example-password-val-84190",
1287 "system-type": "example-system-type-val-42773",
1288 "protocal": "example-protocal-val-85736",
1289 "ssl-cacert": "example-ssl-cacert-val-33989",
1290 "ssl-insecure": True,
1291 "ip-address": "example-ip-address-val-99038",
1292 "port": "example-port-val-27323",
1293 "cloud-domain": "example-cloud-domain-val-55163",
1294 "default-tenant": "admin",
1295 "resource-version": "example-resource-version-val-15424"