Commit ae022807 authored by nanahira's avatar nanahira

fix too long

parent b248559e
...@@ -7,8 +7,8 @@ export BRIDGE_NAME={{br.name}} ...@@ -7,8 +7,8 @@ export BRIDGE_NAME={{br.name}}
# macvlans # macvlans
{% for link in br.links %} {% for link in br.links %}
# macvlan {{br.name}}{{link | regex_replace('\.', '-')}} of {{link}} # macvlan {{br.name}}{{link | regex_replace('\.', '')}} of {{link}}
ip link del dev {{br.name}}{{link | regex_replace('\.', '-')}} ip link del dev {{br.name}}{{link | regex_replace('\.', '')}}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
......
...@@ -14,9 +14,9 @@ export BRIDGE_NAME={{br.name}} ...@@ -14,9 +14,9 @@ export BRIDGE_NAME={{br.name}}
_wait_for_interface_online "{{link}}" _wait_for_interface_online "{{link}}"
{% if br.macvlan is defined and br.macvlan %} {% if br.macvlan is defined and br.macvlan %}
## macvlan {{br.name}}{{link | regex_replace('\.', '-')}} of {{link}} ## macvlan {{br.name}}{{link | regex_replace('\.', '')}} of {{link}}
ip link add link {{link}} dev {{br.name}}{{link | regex_replace('\.', '-')}} type macvlan ip link add link {{link}} dev {{br.name}}{{link | regex_replace('\.', '')}} type macvlan
ip link set {{br.name}}{{link | regex_replace('\.', '-')}} up ip link set {{br.name}}{{link | regex_replace('\.', '')}} up
{% endif %} {% endif %}
{% endfor %} {% endfor %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment