diff options
author | 2019-10-04 18:56:33 +0000 | |
---|---|---|
committer | 2019-10-04 18:59:46 +0000 | |
commit | 7d4013cb9893bf04cb97216a1b196f135199b17a (patch) | |
tree | 17479c339c064e6eef11e1fe89d2f385cd402db8 /products/onap-elalto/features/sdnc | |
parent | a52f00e9d0af1181d3e9c87508789fb4ced022f5 (diff) |
Bug fixes in CLI
- Fixed Bugs in vnf-create and vf-module-create commands
- Added sample files
Signed-off-by: Itohan Ukponmwan <itohan.ukponmwan@intel.com>
Issue-ID: CLI-229
Change-Id: Ib5ae987709aa2cf3a6edba1691d3ead34ea746a4
Diffstat (limited to 'products/onap-elalto/features/sdnc')
2 files changed, 165 insertions, 0 deletions
diff --git a/products/onap-elalto/features/sdnc/src/main/resources/open-cli-sample/vf-preload-schema-elalto-moco.json b/products/onap-elalto/features/sdnc/src/main/resources/open-cli-sample/vf-preload-schema-elalto-moco.json new file mode 100644 index 00000000..45113fd4 --- /dev/null +++ b/products/onap-elalto/features/sdnc/src/main/resources/open-cli-sample/vf-preload-schema-elalto-moco.json @@ -0,0 +1,156 @@ +[ { + "request" : { + "method" : "post", + "uri" : "/restconf/operations/VNF-API:preload-vnf-topology-operation", + "headers" : { + "Authorization" : "Basic YWRtaW46S3A4Yko0U1hzek0wV1hsaGFrM2VIbGNzZTJnQXc4NHZhb0dHbUp2VXkyVQ==", + "X-FromAppId" : "ONAP CLI", + "Accept" : "application/json", + "X-TransactionId" : "req-e9172de6-46e0-4758-9348-66f5b46e9e00", + "Content-Type" : "application/json" + }, + "json" : { + "input" : { + "request-information" : { + "notification-url" : "openecomp.org", + "order-number" : "1", + "order-version" : "1", + "request-action" : "PreloadVNFRequest", + "request-id" : "test" + }, + "sdnc-request-header" : { + "svc-action" : "reserve", + "svc-notification-url" : "http://openecomp.org:8080/adapters/rest/SDNCNotify", + "svc-request-id" : "test" + }, + "vnf-topology-information" : { + "vnf-assignments" : { + "availability-zones" : [ ], + "vnf-networks" : [ ], + "vnf-vms" : [ ] + }, + "vnf-parameters" : [ { + "vnf-parameter-name" : "vfw_image_name", + "vnf-parameter-value" : "ubuntu-16.04" + }, { + "vnf-parameter-name" : "firewall_flavor_name", + "vnf-parameter-value" : "a" + }, { + "vnf-parameter-name" : "sink_flavor_name", + "vnf-parameter-value" : "b" + }, { + "vnf-parameter-name" : "packetgen_flavor_name", + "vnf-parameter-value" : "c" + }, { + "vnf-parameter-name" : "public_net_id", + "vnf-parameter-value" : "external" + }, { + "vnf-parameter-name" : "unprotected_private_net_id", + "vnf-parameter-value" : "unprotected_private_net_11" + }, { + "vnf-parameter-name" : "protected_private_net_id", + "vnf-parameter-value" : "protected_private_net_11" + }, { + "vnf-parameter-name" : "onap_private_net_id", + "vnf-parameter-value" : "oam_onap_vnf_test" + }, { + "vnf-parameter-name" : "protected_private_provider_net", + "vnf-parameter-value" : "private-0" + }, { + "vnf-parameter-name" : "unprotected_private_provider_net", + "vnf-parameter-value" : "private-0" + }, { + "vnf-parameter-name" : "onap_private_subnet_id", + "vnf-parameter-value" : "oam_onap_vnf_test" + }, { + "vnf-parameter-name" : "unprotected_private_net_cidr", + "vnf-parameter-value" : "192.168.10.0/24" + }, { + "vnf-parameter-name" : "protected_private_net_cidr", + "vnf-parameter-value" : "192.168.20.0/24" + }, { + "vnf-parameter-name" : "onap_private_net_cidr", + "vnf-parameter-value" : "10.0.0.0/16" + }, { + "vnf-parameter-name" : "vfw_private_ip_0", + "vnf-parameter-value" : "192.168.10.100" + }, { + "vnf-parameter-name" : "vfw_private_ip_1", + "vnf-parameter-value" : "192.168.20.100" + }, { + "vnf-parameter-name" : "vfw_private_ip_2", + "vnf-parameter-value" : "10.0.100.11" + }, { + "vnf-parameter-name" : "vpg_private_ip_0", + "vnf-parameter-value" : "192.168.10.200" + }, { + "vnf-parameter-name" : "vpg_private_ip_1", + "vnf-parameter-value" : "10.0.100.12" + }, { + "vnf-parameter-name" : "vsn_private_ip_0", + "vnf-parameter-value" : "192.168.20.250" + }, { + "vnf-parameter-name" : "vsn_private_ip_1", + "vnf-parameter-value" : "10.0.100.13" + }, { + "vnf-parameter-name" : "vfw_name_0", + "vnf-parameter-value" : "vfw" + }, { + "vnf-parameter-name" : "vpg_name_0", + "vnf-parameter-value" : "vpktgen" + }, { + "vnf-parameter-name" : "vsn_name_0", + "vnf-parameter-value" : "vsink" + }, { + "vnf-parameter-name" : "vfw_private_0_port_vnic_type", + "vnf-parameter-value" : "normal" + }, { + "vnf-parameter-name" : "vfw_private_1_port_vnic_type", + "vnf-parameter-value" : "normal" + }, { + "vnf-parameter-name" : "vfw_private_2_port_vnic_type", + "vnf-parameter-value" : "normal" + }, { + "vnf-parameter-name" : "vpg_private_0_port_vnic_type", + "vnf-parameter-value" : "normal" + }, { + "vnf-parameter-name" : "vpg_private_1_port_vnic_type", + "vnf-parameter-value" : "normal" + }, { + "vnf-parameter-name" : "vsn_private_0_port_vnic_type", + "vnf-parameter-value" : "normal" + }, { + "vnf-parameter-name" : "vsn_private_1_port_vnic_type", + "vnf-parameter-value" : "normal" + }, { + "vnf-parameter-name" : "vf_module_id", + "vnf-parameter-value" : "HpaVf0..base_vfw..module-0" + }, { + "vnf-parameter-name" : "sec_group", + "vnf-parameter-value" : "default" + }, { + "vnf-parameter-name" : "template_type", + "vnf-parameter-value" : "heat" + } ], + "vnf-topology-identifier" : { + "generic-vnf-name" : "vfw-hpa-vnf", + "generic-vnf-type" : "hpa-vf-0 0", + "service-type" : "9545d48f-03da-467e-8994-ae0716e7372d", + "vnf-name" : "vfw-sriov-cli", + "vnf-type" : "HpaVf0..base_vfw..module-0" + } + } + } + } + }, + "response" : { + "status" : 200, + "json" : { + "output" : { + "svc-request-id" : "test", + "response-code" : "200", + "ack-final-indicator" : "Y" + } + } + } +} ]
\ No newline at end of file diff --git a/products/onap-elalto/features/sdnc/src/main/resources/open-cli-sample/vf-preload-schema-elalto-sample.yaml b/products/onap-elalto/features/sdnc/src/main/resources/open-cli-sample/vf-preload-schema-elalto-sample.yaml new file mode 100644 index 00000000..2db81d5a --- /dev/null +++ b/products/onap-elalto/features/sdnc/src/main/resources/open-cli-sample/vf-preload-schema-elalto-sample.yaml @@ -0,0 +1,9 @@ +open_cli_sample_version: 1.0 +name: vf-preload +version: onap-elalto +samples: + sample1: + name: vf-preload + input: -u admin -p Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U -y /root/automation_stuff/integration/test/hpa_automation/heat/sample_vfw_hpa_preload_sriov_fake.txt -m http://10.12.5.110:30059 + moco: vf-preload-schema-elalto-moco.json + output:
\ No newline at end of file |