Make network name unique to the job 83/75783/2
authorThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 5 Sep 2018 23:04:50 +0000 (19:04 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 5 Sep 2018 23:13:12 +0000 (19:13 -0400)
Use the passed in variables to create a unique network name.

Change-Id: Icebf8e0567f9ad11bd6e529bf3779ca472ad080a
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
openstack-hot/csit-apex-3-instance-type.yaml

index 8dedd74d67e6ae78a41481737bd50151424cbdfa..facdcdb0847df236dc34eb0d4814c5ba08e8b21c 100644 (file)
@@ -39,17 +39,28 @@ parameters:
         type: string
 
 resources:
-
     192_network:
         type: OS::Neutron::Net
         properties:
-            name: APEX_192_network
+            name:
+                str_replace:
+                    template: SILO-JOB_NAME-NET
+                    params:
+                        "SILO": {get_param: silo}
+                        "JOB_NAME": {get_param: job_name}
+                        "NET": 'APEX_192_network'
             port_security_enabled: false
 
     192_subnet:
         type: OS::Neutron::Subnet
         properties:
-            name: APEX_192_subnet
+            name:
+                str_replace:
+                    template: SILO-JOB_NAME-SUBNET
+                    params:
+                        "SILO": {get_param: silo}
+                        "JOB_NAME": {get_param: job_name}
+                        "SUBNET": 'APEX_192_subnet'
             network_id: {get_resource: 192_network}
             cidr: 192.0.2.0/24
             allocation_pools: