From 3c1b3b70f0b2ca6a4de2141e9e195366212d2c6b Mon Sep 17 00:00:00 2001 From: Michael Polenchuk Date: Wed, 19 Sep 2018 11:52:15 +0400 Subject: Use common way to detect dpdk feature Change-Id: I55a3c10f275079b11b7456b28a2c846cb33c204a Signed-off-by: Michael Polenchuk --- mcp/reclass/classes/cluster/mcp-odl-noha/openstack/compute.yml.j2 | 4 ++-- mcp/reclass/classes/cluster/mcp-odl-noha/openstack/gateway.yml.j2 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'mcp/reclass/classes/cluster/mcp-odl-noha') diff --git a/mcp/reclass/classes/cluster/mcp-odl-noha/openstack/compute.yml.j2 b/mcp/reclass/classes/cluster/mcp-odl-noha/openstack/compute.yml.j2 index 1c4ee7a19..d57a4b7c1 100644 --- a/mcp/reclass/classes/cluster/mcp-odl-noha/openstack/compute.yml.j2 +++ b/mcp/reclass/classes/cluster/mcp-odl-noha/openstack/compute.yml.j2 @@ -12,7 +12,7 @@ classes: - service.neutron.compute.single - service.neutron.compute.opendaylight.single -{%- if conf.MCP_DPDK_MODE %} +{%- if '-ovs-' in conf.MCP_DEPLOY_SCENARIO %} - system.nova.compute.nfv.hugepages - system.neutron.compute.nfv.dpdk {%- endif %} @@ -22,7 +22,7 @@ parameters: linux: network: interface: -{%- if conf.MCP_DPDK_MODE %} +{%- if '-ovs-' in conf.MCP_DEPLOY_SCENARIO %} dpdk0: name: ${_param:dpdk0_name} pci: ${_param:dpdk0_pci} diff --git a/mcp/reclass/classes/cluster/mcp-odl-noha/openstack/gateway.yml.j2 b/mcp/reclass/classes/cluster/mcp-odl-noha/openstack/gateway.yml.j2 index 0a345f42c..bbd70caa5 100644 --- a/mcp/reclass/classes/cluster/mcp-odl-noha/openstack/gateway.yml.j2 +++ b/mcp/reclass/classes/cluster/mcp-odl-noha/openstack/gateway.yml.j2 @@ -17,7 +17,7 @@ parameters: linux: network: interface: -{%- if conf.MCP_DPDK_MODE %} +{%- if '-ovs-' in conf.MCP_DEPLOY_SCENARIO %} {{ nm.cmp001.nic_private }}: ovs_bridge: br-prv br-prv: -- cgit 1.2.3-korg