diff options
author | Lovett, Trevor <trevor.lovett@att.com> | 2019-07-30 08:50:48 -0700 |
---|---|---|
committer | Lovett, Trevor (tl2972) <tl2972@att.com> | 2019-08-16 16:42:09 -0500 |
commit | 940ae7b0283191d590de40b71a9136bebc80e83c (patch) | |
tree | 8924052bded9411f87212969e1e51ee388e2be20 /ice_validator/preload_vnfapi/vnfapi_data | |
parent | 14c5243cbbb0652ee9ad99519d7d456f5a6c88f4 (diff) |
[VVP] Adding preload generation functionality
preload.py discovers and loads implementations of
AbstractPreloadGenerator from any module on sys.path prefixed with
preload_*
Initial support is provided for VNF-API and GR-API. The templates
will provide a guide for users to provide their values.
Known limitations:
- No support for Contrail. Preload will be created, but contrail
parameters will be skipped. This will be addressed in the future.
Issue-ID: VVP-227
Signed-off-by: stark, steven <steven.stark@att.com>
Change-Id: I081d50ac379062fbf1bffebd687e920220d32571
Signed-off-by: Lovett, Trevor <trevor.lovett@att.com>
Signed-off-by: Lovett, Trevor (tl2972) <tl2972@att.com>
Diffstat (limited to 'ice_validator/preload_vnfapi/vnfapi_data')
5 files changed, 58 insertions, 0 deletions
diff --git a/ice_validator/preload_vnfapi/vnfapi_data/preload_template.json b/ice_validator/preload_vnfapi/vnfapi_data/preload_template.json new file mode 100644 index 0000000..dfa6cf2 --- /dev/null +++ b/ice_validator/preload_vnfapi/vnfapi_data/preload_template.json @@ -0,0 +1,30 @@ +{ + "input": { + "request-information": { + "request-id": "robot12", + "order-version": "1", + "notification-url": "openecomp.org", + "order-number": "1", + "request-action": "PreloadVNFRequest" + }, + "sdnc-request-header": { + "svc-request-id": "robot12", + "svc-notification-url": "http://openecomp.org:8080/adapters/rest/SDNCNotify", + "svc-action": "reserve" + }, + "vnf-topology-information": { + "vnf-topology-identifier": { + "vnf-name": "", + "vnf-type": "", + "generic-vnf-type": "", + "generic-vnf-name": "" + }, + "vnf-assignments": { + "availability-zones": [], + "vnf-networks": [], + "vnf-vms": [] + }, + "vnf-parameters": [] + } + } +}
\ No newline at end of file diff --git a/ice_validator/preload_vnfapi/vnfapi_data/vf-module-parameter.json b/ice_validator/preload_vnfapi/vnfapi_data/vf-module-parameter.json new file mode 100644 index 0000000..a7ad3b8 --- /dev/null +++ b/ice_validator/preload_vnfapi/vnfapi_data/vf-module-parameter.json @@ -0,0 +1,4 @@ +{ + "vnf-parameter-name": "", + "vnf-parameter-value": "" +} diff --git a/ice_validator/preload_vnfapi/vnfapi_data/vm-network.json b/ice_validator/preload_vnfapi/vnfapi_data/vm-network.json new file mode 100644 index 0000000..52231c3 --- /dev/null +++ b/ice_validator/preload_vnfapi/vnfapi_data/vm-network.json @@ -0,0 +1,12 @@ +{ + "network-role": "", + "network-role-tag": "", + "ip-count": 0, + "ip-count-ipv6": 0, + "floating-ip": "", + "floating-ip-v6": "", + "network-ips": [], + "network-ips-v6": [], + "network-macs": [], + "interface-route-prefixes": [] +} diff --git a/ice_validator/preload_vnfapi/vnfapi_data/vm.json b/ice_validator/preload_vnfapi/vnfapi_data/vm.json new file mode 100644 index 0000000..d00e048 --- /dev/null +++ b/ice_validator/preload_vnfapi/vnfapi_data/vm.json @@ -0,0 +1,8 @@ +{ + "vm-type": "", + "vm-count": 0, + "vm-names": { + "vm-name": [] + }, + "vm-networks": [] +} diff --git a/ice_validator/preload_vnfapi/vnfapi_data/vnf-network.json b/ice_validator/preload_vnfapi/vnfapi_data/vnf-network.json new file mode 100644 index 0000000..89af15f --- /dev/null +++ b/ice_validator/preload_vnfapi/vnfapi_data/vnf-network.json @@ -0,0 +1,4 @@ +{ + "network-role": "", + "network-name": "" +} |