瀏覽代碼

Merge "Add dependency between ovs-port and dpdk bridge."

pull/148/head
Petr Jediny 6 年之前
父節點
當前提交
9e9123cea8
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. +9
    -0
      linux/network/interface.sls

+ 9
- 0
linux/network/interface.sls 查看文件

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

{%- if network.get('dpdk', {}).get('enabled', False) %}
include:
- linux.network.dpdk
{%- endif %}

{%- macro set_param(param_name, param_dict) -%}
{%- if param_dict.get(param_name, False) -%}
- {{ param_name }}: {{ param_dict[param_name] }}
@@ -93,7 +98,11 @@ ovs_port_{{ interface_name }}:
- name: {{ interface_name }}
- bridge: {{ interface.bridge }}
- require:
{%- if 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 }}
{%- endif %}

ovs_port_set_type_{{ interface_name }}:
cmd.run:

Loading…
取消
儲存