瀏覽代碼

hotfix interface name

tags/2016.12
Jakub Pavlik 8 年之前
父節點
當前提交
376af20441
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      linux/network/interface.sls

+ 3
- 1
linux/network/interface.sls 查看文件

@@ -22,6 +22,8 @@ linux_network_bridge_pkgs:

{%- for interface_name, interface in network.interface.iteritems() %}

{%- set interface_name = interface.get('name', interface_name) %}

{%- if interface.get('managed', True) %}

{%- if grains.os_family in ['RedHat', 'Debian'] %}
@@ -83,7 +85,7 @@ ovs_port_up_{{ interface_name }}:
linux_interface_{{ interface_name }}:
network.managed:
- enabled: {{ interface.enabled }}
- name: {{ interface.get('name', interface_name) }}
- name: {{ interface_name }}
- type: {{ interface.type }}
{%- if interface.address is defined %}
{%- if grains.os_family == 'Debian' %}

Loading…
取消
儲存