summaryrefslogtreecommitdiffstats
path: root/lcm/lcm/nf/vnfs/const.py
diff options
context:
space:
mode:
authorying.yunlong <ying.yunlong@zte.com.cn>2017-03-02 14:53:37 +0800
committerying.yunlong <ying.yunlong@zte.com.cn>2017-03-02 14:53:37 +0800
commitb51f79348b419a755dd08f758c45ed56c2ea0a10 (patch)
tree28e892099e9b830bed1c9e6b40b8cbf8cd4d21be /lcm/lcm/nf/vnfs/const.py
parent062226977de3e506f31d2473f28f6409d5c81125 (diff)
Update vnf instaniation code of gvnfm vnflcm
Change-Id: I79e55ea322a95e3fbfcf793b64e06279e37cf27d Issue-Id: GVNFM-42 Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
Diffstat (limited to 'lcm/lcm/nf/vnfs/const.py')
-rw-r--r--lcm/lcm/nf/vnfs/const.py79
1 files changed, 44 insertions, 35 deletions
diff --git a/lcm/lcm/nf/vnfs/const.py b/lcm/lcm/nf/vnfs/const.py
index a3a2f5f8..f368271e 100644
--- a/lcm/lcm/nf/vnfs/const.py
+++ b/lcm/lcm/nf/vnfs/const.py
@@ -22,43 +22,52 @@ inst_req_data = {
"flavourId": "flavour_1",
"instantiationLevelId": "instantiationLevel_1",
"extVirtualLinks": [
+ # {
+ # "vlInstanceId": "1",
+ # "vim": {
+ # "vimInfoId": "1",
+ # "vimId": "1",
+ # "interfaceInfo": {
+ # "vimType": "vim",
+ # "apiVersion": "v2",
+ # "protocolType": "http"
+ # },
+ # "accessInfo": {
+ # "tenant": "tenant_vCPE",
+ # "username": "vCPE",
+ # "password": "vCPE_321"
+ # },
+ # "interfaceEndpoint": "http://10.43.21.105:80/"
+ # },
+ # "resourceId": "1246",
+ # "extCps": [
+ # {
+ # "cpdId": "11",
+ # "addresses": [
+ # {
+ # "addressType": "MAC",
+ # "l2AddressData": "00:f3:43:20:a2:a3"
+ # },
+ # {
+ # "addressType": "IP",
+ # "l3AddressData": {
+ # "iPAddressType": "IPv4",
+ # "iPAddress": "192.168.104.2"
+ # }
+ # }
+ # ],
+ # "numDynamicAddresses": 0
+ # }
+ # ]
+ # },
{
- "vlInstanceId": "1",
+ "vlInstanceId": '55',
+ "resourceId": '55_network',
+ "resourceSubnetId": '55_subnet',
+ "cpdId": 'cpId1',
"vim": {
- "vimInfoId": "1",
- "vimId": "1",
- "interfaceInfo": {
- "vimType": "vim",
- "apiVersion": "v2",
- "protocolType": "http"
- },
- "accessInfo": {
- "tenant": "tenant_vCPE",
- "username": "vCPE",
- "password": "vCPE_321"
- },
- "interfaceEndpoint": "http://10.43.21.105:80/"
- },
- "resourceId": "1246",
- "extCps": [
- {
- "cpdId": "11",
- "addresses": [
- {
- "addressType": "MAC",
- "l2AddressData": "00:f3:43:20:a2:a3"
- },
- {
- "addressType": "IP",
- "l3AddressData": {
- "iPAddressType": "IPv4",
- "iPAddress": "192.168.104.2"
- }
- }
- ],
- "numDynamicAddresses": 0
- }
- ]
+ "vimid": '55_vimid'
+ }
}
],
"localizationLanguage": "en_US",