Selaa lähdekoodia

Fixing dpdk disabled case for pillars with ovs_dpdk_port

Prod-Related: EME-405

Change-Id: Id9a8ebefb227c4b0a99d8cdd955c39401720bbee
pull/138/merge
Dzmitry Stremkouski 6 vuotta sitten
vanhempi
commit
73f29d733f
1 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. +3
    -2
      linux/network/interface.sls

+ 3
- 2
linux/network/interface.sls Näytä tiedosto

@@ -2,7 +2,8 @@
{%- from "linux/map.jinja" import system with context %}
{%- if network.enabled %}

{%- if network.get('dpdk', {}).get('enabled', False) %}
{%- set dpdk_enabled = network.get('dpdk', {}).get('enabled', False) %}
{%- if dpdk_enabled %}
include:
- linux.network.dpdk
{%- endif %}
@@ -117,7 +118,7 @@ ovs_port_{{ interface_name }}:
- name: {{ interface_name }}
- bridge: {{ interface.bridge }}
- require:
{%- if network.interface.get(interface.bridge, {}).get('type', 'ovs_bridge') == 'dpdk_ovs_bridge' %}
{%- if dpdk_enabled and network.interface.get(interface.bridge, {}).get('type', 'ovs_bridge') == 'dpdk_ovs_bridge' %}
- cmd: linux_network_dpdk_bridge_interface_{{ interface.bridge }}
{%- else %}
- openvswitch_bridge: ovs_bridge_{{ interface.bridge }}

Loading…
Peruuta
Tallenna