Cleanup vFW/vPacketGen templates for closed loop 17/22117/1
authorMarco Platania <platania@research.att.com>
Sat, 4 Nov 2017 21:05:29 +0000 (17:05 -0400)
committerMarco Platania <platania@research.att.com>
Sat, 4 Nov 2017 21:05:29 +0000 (17:05 -0400)
- Parameters renaming
- Remove redundancy
- Remove unused parameters

Change-Id: I978e3a815d321e831481e7755ce59c514fc90b86
Issue-ID: POLICY-409
Signed-off-by: Marco Platania <platania@research.att.com>
heat/vFW/base_vfw.yaml
heat/vFWCL/vFWSNK/MANIFEST.json
heat/vFWCL/vFWSNK/base_vfw.env
heat/vFWCL/vFWSNK/base_vfw.yaml
heat/vFWCL/vPKG/MANIFEST.json [new file with mode: 0644]
heat/vFWCL/vPKG/base_vpkg.env [moved from heat/vFWCL/vPNG/base_vpng.env with 74% similarity]
heat/vFWCL/vPKG/base_vpkg.yaml [moved from heat/vFWCL/vPNG/base_vpng.yaml with 90% similarity]
heat/vFWCL/vPNG/MANIFEST.json [deleted file]

index 4fb19c0..3d5a22d 100644 (file)
@@ -1,7 +1,7 @@
 ##########################################################################\r
 #\r
 #==================LICENSE_START==========================================\r
-# \r
+#\r
 #\r
 # Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.\r
 #\r
@@ -256,7 +256,7 @@ resources:
             __cloud_env__ : { get_param: cloud_env }\r
           template: |\r
             #!/bin/bash\r
-            \r
+\r
             # Create configuration files\r
             mkdir /opt/config\r
             echo "__dcae_collector_ip__" > /opt/config/dcae_collector_ip.txt\r
@@ -272,7 +272,7 @@ resources:
             echo "__protected_private_net_cidr__" > /opt/config/protected_private_net_cidr.txt\r
             echo "__onap_private_net_cidr__" > /opt/config/onap_private_net_cidr.txt\r
             echo "__cloud_env__" > /opt/config/cloud_env.txt\r
-            \r
+\r
             # Download and run install script\r
             curl -k __repo_url_blob__/org.onap.demo/vnfs/vfw/__install_script_version__/v_firewall_install.sh -o /opt/v_firewall_install.sh\r
             cd /opt\r
@@ -323,7 +323,7 @@ resources:
             __cloud_env__ : { get_param: cloud_env }\r
           template: |\r
             #!/bin/bash\r
-            \r
+\r
             # Create configuration files\r
             mkdir /opt/config\r
             echo "__fw_ipaddr__" > /opt/config/fw_ipaddr.txt\r
@@ -338,7 +338,7 @@ resources:
             echo "__unprotected_private_net_cidr__" > /opt/config/unprotected_private_net_cidr.txt\r
             echo "__onap_private_net_cidr__" > /opt/config/onap_private_net_cidr.txt\r
             echo "__cloud_env__" > /opt/config/cloud_env.txt\r
-            \r
+\r
             # Download and run install script\r
             curl -k __repo_url_blob__/org.onap.demo/vnfs/vfw/__install_script_version__/v_packetgen_install.sh -o /opt/v_packetgen_install.sh\r
             cd /opt\r
@@ -387,7 +387,7 @@ resources:
             __cloud_env__ : { get_param: cloud_env }\r
           template: |\r
             #!/bin/bash\r
-            \r
+\r
             # Create configuration files\r
             mkdir /opt/config\r
             echo "__protected_net_gw__" > /opt/config/protected_net_gw.txt\r
@@ -399,7 +399,7 @@ resources:
             echo "__protected_private_net_cidr__" > /opt/config/protected_private_net_cidr.txt\r
             echo "__onap_private_net_cidr__" > /opt/config/onap_private_net_cidr.txt\r
             echo "__cloud_env__" > /opt/config/cloud_env.txt\r
-            \r
+\r
             # Download and run install script\r
             curl -k __repo_url_blob__/org.onap.demo/vnfs/vfw/__install_script_version__/v_sink_install.sh -o /opt/v_sink_install.sh\r
             cd /opt\r
index 9f4dc52..4938378 100644 (file)
@@ -1,14 +1,14 @@
 {
-    "name": "", 
-    "description": "", 
+    "name": "",
+    "description": "",
     "data": [
         {
-            "file": "base_vfw.yaml", 
-            "type": "HEAT", 
-            "isBase": "true", 
+            "file": "base_vfw.yaml",
+            "type": "HEAT",
+            "isBase": "true",
             "data": [
                 {
-                    "file": "base_vfw.env", 
+                    "file": "base_vfw.env",
                     "type": "HEAT_ENV"
                 }
             ]
index 56228cc..84ed850 100644 (file)
@@ -1,29 +1,32 @@
-parameters:\r
-  vfw_image_name: PUT THE VM IMAGE NAME HERE\r
-  vfw_flavor_name: PUT THE VM FLAVOR NAME HERE\r
-  public_net_id: PUT THE PUBLIC NETWORK ID HERE\r
-  unprotected_private_net_id: zdfw1fwl01_unprotected\r
-  protected_private_net_id: zdfw1fwl01_protected\r
-  onap_private_net_id: PUT THE ONAP PRIVATE NETWORK NAME HERE\r
-  onap_private_subnet_id: PUT THE ONAP PRIVATE NETWORK NAME HERE\r
-  unprotected_private_net_cidr: 192.168.10.0/24\r
-  protected_private_net_cidr: 192.168.20.0/24\r
-  onap_private_net_cidr: 10.0.0.0/16\r
-  vfw_private_ip_0: 192.168.10.100\r
-  vfw_private_ip_1: 192.168.20.100\r
-  vfw_private_ip_2: 10.0.100.1\r
-  vsn_private_ip_0: 192.168.20.250\r
-  vsn_private_ip_1: 10.0.100.3\r
-  vfw_name_0: zdfw1fwl01fwl01\r
-  vsn_name_0: zdfw1fwl01snk01\r
-  vnf_id: vFirewall_demo_app\r
-  vf_module_id: vFirewallCL\r
-  dcae_collector_ip: 10.0.4.102\r
-  dcae_collector_port: 8080\r
-  repo_url_blob: https://nexus.onap.org/content/sites/raw\r
-  repo_url_artifacts: https://nexus.onap.org/content/groups/staging\r
+parameters:
+  image_name: PUT THE VM IMAGE NAME HERE
+  flavor_name: PUT THE VM FLAVOR NAME HERE
+  public_net_id: PUT THE PUBLIC NETWORK ID HERE
+  unprotected_private_net_id: zdfw1fwl01_unprotected
+  unprotected_private_subnet_id: zdfw1fwl01_unprotected_sub
+  unprotected_private_net_cidr: 192.168.10.0/24
+  protected_private_net_id: zdfw1fwl01_protected
+  protected_private_subnet_id: zdfw1fwl01_protected_sub
+  protected_private_net_cidr: 192.168.20.0/24
+  onap_private_net_id: PUT THE ONAP PRIVATE NETWORK NAME HERE
+  onap_private_subnet_id: PUT THE ONAP PRIVATE NETWORK NAME HERE
+  onap_private_net_cidr: 10.0.0.0/16
+  vfw_private_ip_0: 192.168.10.100
+  vfw_private_ip_1: 192.168.20.100
+  vfw_private_ip_2: 10.0.100.1
+  vpg_private_ip_0: 192.168.10.200
+  vsn_private_ip_0: 192.168.20.250
+  vsn_private_ip_1: 10.0.100.3
+  vfw_name_0: zdfw1fwl01fwl01
+  vsn_name_0: zdfw1fwl01snk01
+  vnf_id: vFirewall_demo_app
+  vf_module_id: vFirewallCL
+  dcae_collector_ip: PUT THE ADDRESS OF THE DCAE COLLECTOR HERE
+  dcae_collector_port: 8080
+  repo_url_blob: https://nexus.onap.org/content/sites/raw
+  repo_url_artifacts: https://nexus.onap.org/content/groups/staging
   demo_artifacts_version: 1.1.0
-  install_script_version: 1.1.0-SNAPSHOT\r
-  key_name: vfw_key\r
-  pub_key: PUT YOUR KEY HEERE
-  cloud_env: PUT openstack OR rackspace HERE\r
+  install_script_version: 1.1.0-SNAPSHOT
+  key_name: vfw_key
+  pub_key: PUT YOUR KEY HERE
+  cloud_env: PUT openstack OR rackspace HERE
index 514de34..c82e2e5 100644 (file)
@@ -1,7 +1,7 @@
 ##########################################################################\r
 #\r
 #==================LICENSE_START==========================================\r
-# \r
+#\r
 #\r
 # Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.\r
 #\r
@@ -24,7 +24,7 @@
 \r
 heat_template_version: 2013-05-23\r
 \r
-description: Heat template that deploys vFirewall Closed Loop demo app (FW and Sink) for ONAP\r
+description: Heat template that deploys vFirewall Closed Loop demo app (vFW and vSink) for ONAP\r
 \r
 ##############\r
 #            #\r
@@ -33,11 +33,11 @@ description: Heat template that deploys vFirewall Closed Loop demo app (FW and S
 ##############\r
 \r
 parameters:\r
-  vfw_image_name:\r
+  image_name:\r
     type: string\r
     label: Image name or ID\r
     description: Image to be used for compute instance\r
-  vfw_flavor_name:\r
+  flavor_name:\r
     type: string\r
     label: Flavor\r
     description: Type of instance (flavor) to be used\r
@@ -49,10 +49,26 @@ parameters:
     type: string\r
     label: Unprotected private network name or ID\r
     description: Private network that connects vPacketGenerator with vFirewall\r
+  unprotected_private_subnet_id:\r
+    type: string\r
+    label: Unprotected private subnetwork name or ID\r
+    description: Private subnetwork of the protected network\r
+  unprotected_private_net_cidr:\r
+    type: string\r
+    label: Unprotected private network CIDR\r
+    description: The CIDR of the unprotected private network\r
   protected_private_net_id:\r
     type: string\r
     label: Protected private network name or ID\r
     description: Private network that connects vFirewall with vSink\r
+  protected_private_subnet_id:\r
+    type: string\r
+    label: Protected private subnetwork name or ID\r
+    description: Private subnetwork of the unprotected network\r
+  protected_private_net_cidr:\r
+    type: string\r
+    label: Protected private network CIDR\r
+    description: The CIDR of the protected private network\r
   onap_private_net_id:\r
     type: string\r
     label: ONAP management network name or ID\r
@@ -61,14 +77,6 @@ parameters:
     type: string\r
     label: ONAP management sub-network name or ID\r
     description: Private sub-network that connects ONAP components and the VNF\r
-  unprotected_private_net_cidr:\r
-    type: string\r
-    label: Unprotected private network CIDR\r
-    description: The CIDR of the unprotected private network\r
-  protected_private_net_cidr:\r
-    type: string\r
-    label: Protected private network CIDR\r
-    description: The CIDR of the protected private network\r
   onap_private_net_cidr:\r
     type: string\r
     label: ONAP private network CIDR\r
@@ -179,11 +187,6 @@ resources:
     properties:\r
       name: { get_param: unprotected_private_net_id }\r
 \r
-  protected_private_network:\r
-    type: OS::Neutron::Net\r
-    properties:\r
-      name: { get_param: protected_private_net_id }\r
-\r
   unprotected_private_subnet:\r
     type: OS::Neutron::Subnet\r
     properties:\r
@@ -191,6 +194,11 @@ resources:
       network_id: { get_resource: unprotected_private_network }\r
       cidr: { get_param: unprotected_private_net_cidr }\r
 \r
+  protected_private_network:\r
+    type: OS::Neutron::Net\r
+    properties:\r
+      name: { get_param: protected_private_net_id }\r
+\r
   protected_private_subnet:\r
     type: OS::Neutron::Subnet\r
     properties:\r
@@ -221,8 +229,8 @@ resources:
   vfw_0:\r
     type: OS::Nova::Server\r
     properties:\r
-      image: { get_param: vfw_image_name }\r
-      flavor: { get_param: vfw_flavor_name }\r
+      image: { get_param: image_name }\r
+      flavor: { get_param: flavor_name }\r
       name: { get_param: vfw_name_0 }\r
       key_name: { get_resource: my_keypair }\r
       networks:\r
@@ -250,7 +258,7 @@ resources:
             __cloud_env__ : { get_param: cloud_env }\r
           template: |\r
             #!/bin/bash\r
-            \r
+\r
             # Create configuration files\r
             mkdir /opt/config\r
             echo "__dcae_collector_ip__" > /opt/config/dcae_collector_ip.txt\r
@@ -266,7 +274,7 @@ resources:
             echo "__protected_private_net_cidr__" > /opt/config/protected_private_net_cidr.txt\r
             echo "__onap_private_net_cidr__" > /opt/config/onap_private_net_cidr.txt\r
             echo "__cloud_env__" > /opt/config/cloud_env.txt\r
-            \r
+\r
             # Download and run install script\r
             curl -k __repo_url_blob__/org.onap.demo/vnfs/vfw/__install_script_version__/v_firewall_install.sh -o /opt/v_firewall_install.sh\r
             cd /opt\r
@@ -290,8 +298,8 @@ resources:
   vsn_0:\r
     type: OS::Nova::Server\r
     properties:\r
-      image: { get_param: vfw_image_name }\r
-      flavor: { get_param: vfw_flavor_name }\r
+      image: { get_param: image_name }\r
+      flavor: { get_param: flavor_name }\r
       name: { get_param: vsn_name_0 }\r
       key_name: { get_resource: my_keypair }\r
       networks:\r
@@ -315,7 +323,7 @@ resources:
             __cloud_env__ : { get_param: cloud_env }\r
           template: |\r
             #!/bin/bash\r
-            \r
+\r
             # Create configuration files\r
             mkdir /opt/config\r
             echo "__protected_net_gw__" > /opt/config/protected_net_gw.txt\r
@@ -327,7 +335,7 @@ resources:
             echo "__protected_private_net_cidr__" > /opt/config/protected_private_net_cidr.txt\r
             echo "__onap_private_net_cidr__" > /opt/config/onap_private_net_cidr.txt\r
             echo "__cloud_env__" > /opt/config/cloud_env.txt\r
-            \r
+\r
             # Download and run install script\r
             curl -k __repo_url_blob__/org.onap.demo/vnfs/vfw/__install_script_version__/v_sink_install.sh -o /opt/v_sink_install.sh\r
             cd /opt\r
diff --git a/heat/vFWCL/vPKG/MANIFEST.json b/heat/vFWCL/vPKG/MANIFEST.json
new file mode 100644 (file)
index 0000000..482b429
--- /dev/null
@@ -0,0 +1,17 @@
+{
+    "name": "",
+    "description": "",
+    "data": [
+        {
+            "file": "base_vpkg.yaml",
+            "type": "HEAT",
+            "isBase": "true",
+            "data": [
+                {
+                    "file": "base_vpkg.env",
+                    "type": "HEAT_ENV"
+                }
+            ]
+        }
+    ]
+}
similarity index 74%
rename from heat/vFWCL/vPNG/base_vpng.env
rename to heat/vFWCL/vPKG/base_vpkg.env
index 1749fc5..a7a30e3 100644 (file)
@@ -1,27 +1,25 @@
-parameters:\r
-  vfw_image_name: PUT THE VM IMAGE NAME HERE\r
-  vfw_flavor_name: PUT THE VM FLAVOR NAME HERE\r
-  public_net_id: PUT THE PUBLIC NETWORK ID HERE\r
-  unprotected_private_network_id: zdfw1fwl01_unprotected\r
-  unprotected_private_subnet_id: zdfw1fwl01_unprotected\r
-  onap_private_net_id: PUT THE ONAP PRIVATE NETWORK NAME HERE\r
-  onap_private_subnet_id: PUT THE ONAP PRIVATE NETWORK NAME HERE\r
-  unprotected_private_net_cidr: 192.168.10.0/24\r
-  protected_private_net_cidr: 192.168.20.0/24\r
-  onap_private_net_cidr: 10.0.0.0/16\r
-  vfw_private_ip_0: 192.168.10.100\r
-  vpg_private_ip_0: 192.168.10.200\r
-  vpg_private_ip_1: 10.0.100.2\r
-  vsn_private_ip_0: 192.168.20.250\r
-  vpg_name_0: zdfw1fwl01pgn01\r
-  vnf_id: vPNG_Firewall_demo_app\r
-  vf_module_id: vTrafficPNG\r
-  dcae_collector_ip: 10.0.4.102\r
-  dcae_collector_port: 8080\r
-  repo_url_blob: https://nexus.onap.org/content/sites/raw\r
-  repo_url_artifacts: https://nexus.onap.org/content/groups/staging\r
+parameters:
+  image_name: PUT THE VM IMAGE NAME HERE
+  flavor_name: PUT THE VM FLAVOR NAME HERE
+  public_net_id: PUT THE PUBLIC NETWORK ID HERE
+  unprotected_private_net_id: zdfw1fwl01_unprotected
+  unprotected_private_subnet_id: zdfw1fwl01_unprotected_sub
+  unprotected_private_net_cidr: 192.168.10.0/24
+  onap_private_net_id: PUT THE ONAP PRIVATE NETWORK NAME HERE
+  onap_private_subnet_id: PUT THE ONAP PRIVATE NETWORK NAME HERE
+  onap_private_net_cidr: 10.0.0.0/16
+  protected_private_net_cidr: 192.168.20.0/24
+  vfw_private_ip_0: 192.168.10.100
+  vpg_private_ip_0: 192.168.10.200
+  vpg_private_ip_1: 10.0.100.2
+  vsn_private_ip_0: 192.168.20.250
+  vpg_name_0: zdfw1fwl01pgn01
+  vnf_id: vPNG_Firewall_demo_app
+  vf_module_id: vTrafficPNG
+  repo_url_blob: https://nexus.onap.org/content/sites/raw
+  repo_url_artifacts: https://nexus.onap.org/content/groups/staging
   demo_artifacts_version: 1.1.0
-  install_script_version: 1.1.0-SNAPSHOT\r
-  key_name: vfw_key\r
+  install_script_version: 1.1.0-SNAPSHOT
+  key_name: vfw_key
   pub_key: PUT YOUR PUBLIC KEY HERE
-  cloud_env: PUT openstack OR rackspace HERE\r
+  cloud_env: PUT openstack OR rackspace HERE
similarity index 90%
rename from heat/vFWCL/vPNG/base_vpng.yaml
rename to heat/vFWCL/vPKG/base_vpkg.yaml
index 7243f10..79d35bd 100644 (file)
@@ -1,7 +1,7 @@
 ##########################################################################\r
 #\r
 #==================LICENSE_START==========================================\r
-# \r
+#\r
 #\r
 # Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.\r
 #\r
@@ -24,7 +24,7 @@
 \r
 heat_template_version: 2013-05-23\r
 \r
-description: Heat template that deploys vFirewall Traffic Generator demo app for ONAP\r
+description: Heat template that deploys the vFirewall Traffic Generator demo app for ONAP\r
 \r
 ##############\r
 #            #\r
@@ -33,11 +33,11 @@ description: Heat template that deploys vFirewall Traffic Generator demo app for
 ##############\r
 \r
 parameters:\r
-  vfw_image_name:\r
+  image_name:\r
     type: string\r
     label: Image name or ID\r
     description: Image to be used for compute instance\r
-  vfw_flavor_name:\r
+  flavor_name:\r
     type: string\r
     label: Flavor\r
     description: Type of instance (flavor) to be used\r
@@ -45,14 +45,22 @@ parameters:
     type: string\r
     label: Public network name or ID\r
     description: Public network that enables remote connection to VNF\r
-  unprotected_private_network_id:\r
+  unprotected_private_net_id:\r
     type: string\r
     label: Unprotected private network name or ID\r
     description: Private network that connects vPacketGenerator with vFirewall\r
   unprotected_private_subnet_id:\r
     type: string\r
     label: Unprotected private sub-network name or ID\r
-    description: Private sub-network that connects vPacketGenerator with vFirewall\r
+    description: Private subnetwork for the unprotected network\r
+  unprotected_private_net_cidr:\r
+    type: string\r
+    label: Unprotected private network CIDR\r
+    description: The CIDR of the unprotected private network\r
+  protected_private_net_cidr:\r
+    type: string\r
+    label: Protected private network CIDR\r
+    description: The CIDR of the protected private network\r
   onap_private_net_id:\r
     type: string\r
     label: ONAP management network name or ID\r
@@ -61,30 +69,18 @@ parameters:
     type: string\r
     label: ONAP management sub-network name or ID\r
     description: Private sub-network that connects ONAP components and the VNF\r
-  unprotected_private_net_cidr:\r
-    type: string\r
-    label: Unprotected private network CIDR\r
-    description: The CIDR of the unprotected private network\r
   onap_private_net_cidr:\r
     type: string\r
     label: ONAP private network CIDR\r
     description: The CIDR of the protected private network\r
-\r
   vfw_private_ip_0:\r
     type: string\r
     label: vFirewall private IP address towards the unprotected network\r
     description: Private IP address that is assigned to the vFirewall to communicate with the vPacketGenerator\r
-\r
-  protected_private_net_cidr:\r
-    type: string\r
-    label: Protected private network CIDR\r
-    description: The CIDR of the protected private network\r
-\r
   vsn_private_ip_0:\r
     type: string\r
     label: vSink private IP address towards the protected network\r
     description: Private IP address that is assigned to the vSink to communicate with the vFirewall\r
-\r
   vpg_private_ip_0:\r
     type: string\r
     label: vPacketGenerator private IP address towards the unprotected network\r
@@ -105,14 +101,6 @@ parameters:
     type: string\r
     label: vPNG Traffic Generator module ID\r
     description: The vPNG Module ID is provided by ONAP\r
-  dcae_collector_ip:\r
-    type: string\r
-    label: DCAE collector IP address\r
-    description: IP address of the DCAE collector\r
-  dcae_collector_port:\r
-    type: string\r
-    label: DCAE collector port\r
-    description: Port of the DCAE collector\r
   key_name:\r
     type: string\r
     label: Key pair name\r
@@ -171,7 +159,7 @@ resources:
   vpg_private_0_port:\r
     type: OS::Neutron::Port\r
     properties:\r
-      network: { get_param: unprotected_private_network_id }\r
+      network: { get_param: unprotected_private_net_id }\r
       fixed_ips: [{"subnet": { get_param: unprotected_private_subnet_id }, "ip_address": { get_param: vpg_private_ip_0 }}]\r
 \r
   vpg_private_1_port:\r
@@ -183,8 +171,8 @@ resources:
   vpg_0:\r
     type: OS::Nova::Server\r
     properties:\r
-      image: { get_param: vfw_image_name }\r
-      flavor: { get_param: vfw_flavor_name }\r
+      image: { get_param: image_name }\r
+      flavor: { get_param: flavor_name }\r
       name: { get_param: vpg_name_0 }\r
       key_name: { get_resource: my_keypair }\r
       networks:\r
@@ -210,7 +198,7 @@ resources:
             __cloud_env__ : { get_param: cloud_env }\r
           template: |\r
             #!/bin/bash\r
-            \r
+\r
             # Create configuration files\r
             mkdir /opt/config\r
             echo "__fw_ipaddr__" > /opt/config/fw_ipaddr.txt\r
@@ -225,7 +213,7 @@ resources:
             echo "__unprotected_private_net_cidr__" > /opt/config/unprotected_private_net_cidr.txt\r
             echo "__onap_private_net_cidr__" > /opt/config/onap_private_net_cidr.txt\r
             echo "__cloud_env__" > /opt/config/cloud_env.txt\r
-            \r
+\r
             # Download and run install script\r
             curl -k __repo_url_blob__/org.onap.demo/vnfs/vfw/__install_script_version__/v_packetgen_install.sh -o /opt/v_packetgen_install.sh\r
             cd /opt\r
diff --git a/heat/vFWCL/vPNG/MANIFEST.json b/heat/vFWCL/vPNG/MANIFEST.json
deleted file mode 100644 (file)
index ecb6fe7..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-{
-    "name": "", 
-    "description": "", 
-    "data": [
-        {
-            "file": "base_vpng.yaml", 
-            "type": "HEAT", 
-            "isBase": "true", 
-            "data": [
-                {
-                    "file": "base_vpng.env", 
-                    "type": "HEAT_ENV"
-                }
-            ]
-        }
-    ]
-}