Un-hardcode control_network_cidr
The patch un-hardcode control_network_cidr paramter to make it
possible to pass via env file.
Related-PROD: PRODX-5854
Change-Id: I199b2b08a9810686a7fa26db43d378861abc9ecc
diff --git a/de/heat-templates/fragments/NetworkAccBM.yaml b/de/heat-templates/fragments/NetworkAccBM.yaml
index 3ebfb3b..a5c02c8 100644
--- a/de/heat-templates/fragments/NetworkAccBM.yaml
+++ b/de/heat-templates/fragments/NetworkAccBM.yaml
@@ -3,6 +3,8 @@
parameters:
public_net_id:
type: string
+ control_network_cidr:
+ type: string
resources:
diff --git a/de/heat-templates/fragments/NetworkAccVM.yaml b/de/heat-templates/fragments/NetworkAccVM.yaml
index 8b03070..66515d2 100644
--- a/de/heat-templates/fragments/NetworkAccVM.yaml
+++ b/de/heat-templates/fragments/NetworkAccVM.yaml
@@ -3,6 +3,8 @@
parameters:
public_net_id:
type: string
+ control_network_cidr:
+ type: string
resources:
@@ -13,7 +15,7 @@
properties:
network: { get_resource: network }
enable_dhcp: true
- cidr: '10.10.0.0/24'
+ cidr: { get_param: control_network_cidr }
dns_nameservers:
- 172.18.224.6
- 172.18.176.6
diff --git a/de/heat-templates/top.yaml b/de/heat-templates/top.yaml
index e14423c..34dcde7 100644
--- a/de/heat-templates/top.yaml
+++ b/de/heat-templates/top.yaml
@@ -228,6 +228,7 @@
type: MCP2::NetworkAcc
properties:
public_net_id: { get_param: public_net_id }
+ control_network_cidr: { get_param: control_network_cidr }
private_floating_network:
type: MCP2::NetworkPrvFl