commit | 7c077f64b62a2c4c5cac980e8f61786f745b4dc3 | [log] [tgz] |
---|---|---|
author | Michel Nederlof <mnederlof@cloudvps.com> | Tue Jan 31 11:19:37 2017 +0100 |
committer | Michel Nederlof <mnederlof@cloudvps.com> | Tue Jan 31 11:19:37 2017 +0100 |
tree | 85ae8add3c49c7804b52da79fbcf9416631a6cfa | |
parent | fb9736ddbdc6aeb12bd6736c2573f0f1b5107433 [diff] |
Only add the interface to the ovs_bridge, if the name in ovs_bridge is the same.
diff --git a/linux/network/interface.sls b/linux/network/interface.sls index 0a87091..75bae60 100644 --- a/linux/network/interface.sls +++ b/linux/network/interface.sls
@@ -39,7 +39,7 @@ {%- set int_name = int.get('name', int_name) %} -{%- if int.ovs_bridge is defined %} +{%- if int.ovs_bridge is defined and interface_name == int.ovs_bridge %} add_int_to_ovs_bridge_{{ interface_name }}: cmd.run: