Fix dhcp multiple default gateways issue

The system only adds one gateway and if it receives default gateway from
incorrect interface (like control plane primary interface), the instance loses
access to external network.

Fixing by making primary interfaces (control plane) static.

Change-Id: I511f6721c2ecac29eccbdd63160f748c1cc2ee07
diff --git a/classes/cluster/virtual-mcp-ocata-dvr/infra/config.yml b/classes/cluster/virtual-mcp-ocata-dvr/infra/config.yml
index 0d85bae..1353739 100644
--- a/classes/cluster/virtual-mcp-ocata-dvr/infra/config.yml
+++ b/classes/cluster/virtual-mcp-ocata-dvr/infra/config.yml
@@ -41,7 +41,9 @@
         ens4:
           enabled: true
           type: eth
-          proto: dhcp
+          proto: static
+          address: ${_param:single_address}
+          netmask: 255.255.255.0
   nginx:
     server:
       site:
diff --git a/classes/cluster/virtual-mcp-ocata-dvr/openstack/control.yml b/classes/cluster/virtual-mcp-ocata-dvr/openstack/control.yml
index df120a0..02ca8ae 100644
--- a/classes/cluster/virtual-mcp-ocata-dvr/openstack/control.yml
+++ b/classes/cluster/virtual-mcp-ocata-dvr/openstack/control.yml
@@ -45,7 +45,9 @@
         ens4:
           enabled: true
           type: eth
-          proto: dhcp
+          proto: static
+          address: ${_param:single_address}
+          netmask: 255.255.255.0
   keepalived:
     cluster:
       instance:
diff --git a/classes/cluster/virtual-mcp-ocata-dvr/openstack/dashboard.yml b/classes/cluster/virtual-mcp-ocata-dvr/openstack/dashboard.yml
index 36697db..fba1f30 100644
--- a/classes/cluster/virtual-mcp-ocata-dvr/openstack/dashboard.yml
+++ b/classes/cluster/virtual-mcp-ocata-dvr/openstack/dashboard.yml
@@ -11,4 +11,6 @@
         ens4:
           enabled: true
           type: eth
-          proto: dhcp
+          proto: static
+          address: ${_param:single_address}
+          netmask: 255.255.255.0
diff --git a/classes/cluster/virtual-mcp-ocata-dvr/stacklight/server.yml b/classes/cluster/virtual-mcp-ocata-dvr/stacklight/server.yml
index 338c914..fb2bf0d 100644
--- a/classes/cluster/virtual-mcp-ocata-dvr/stacklight/server.yml
+++ b/classes/cluster/virtual-mcp-ocata-dvr/stacklight/server.yml
@@ -40,4 +40,6 @@
         ens4:
           enabled: true
           type: eth
-          proto: dhcp
+          proto: static
+          address: ${_param:single_address}
+          netmask: 255.255.255.0