+ NfInstModel(nfinstid='12345',
+ nf_name='VNF1',
+ nf_desc="VNF DESC",
+ vnfdid="1",
+ netype="XGW",
+ vendor="ZTE",
+ vnfSoftwareVersion="V1",
+ version="V1",
+ package_id="2",
+ status='NOT_INSTANTIATED').save()
+ NfInstModel(nfinstid='123',
+ nf_name='VNF1',
+ nf_desc="VNF DESC",
+ vnfdid="1",
+ netype="XGW",
+ vendor="ZTE",
+ vnfSoftwareVersion="V1",
+ version="V1",
+ package_id="2",
+ status='INSTANTIATED').save()
+ self.req_data = {
+ "extVirtualLinks": [{
+ "id": "string",
+ "resourceId": "329efb86-5cbb-4fc0-bc7c-6ea28f9d7389",
+ "resourceSubnetId": "429efb86-5cbb-4fc0-bc7c-6ea28f9d7389",
+ "extCps": [{
+ "cpdId": "ext_cp",
+ "cpConfig": [{
+ "cpInstanceId": "",
+ "cpProtocolData": [{
+ "layerProtocol": "IP_OVER_ETHERNET",
+ "ipOverEthernet": {
+ "ipAddresses": [{
+ "type": "IPV4",
+ "numDynamicAddresses": 0,
+ "subnetId": "59e9ffa9-b67e-4c05-b191-ed179007536e"
+ }]
+ }
+ }]
+ }]
+ }],
+ "extLinkPorts": []
+ }],
+ "vimConnectionInfo": [{
+ "id": "tecs_RegionOne",
+ "vimType": "openstack",
+ "vimId": "tecs_RegionOne",
+ "accessInfo": {
+ "tenant": "admin"
+ }
+ }],
+ "additionalParams": {
+ "vmid": "552ea058-6441-4de5-b4c1-b0a52c7557e8"
+ }
+ }