Add lacp roles for interfaces
Change-Id: Id79b25133202dabafdc73451165d8a0fb5cc1314
(cherry picked from commit e2a392f35e70eeffb1f03f588c1470742a815fa4)
diff --git "a/\173\043 interfaces \043\175/bond_prv_lacp" "b/\173\043 interfaces \043\175/bond_prv_lacp"
new file mode 100644
index 0000000..99cd832
--- /dev/null
+++ "b/\173\043 interfaces \043\175/bond_prv_lacp"
@@ -0,0 +1,49 @@
+{#- Tenant over VXLAN. For gateway nodes and computes with dvr #}
+{#- Provides: #}
+{#- br_mesh (OVS bridge) + tenant address #}
+{#- br_floating (OVS bridge) #}
+{#- Requirements: #}
+{#- _param:tenant_address #}
+{#- _param:tenant_netmask #}
+{#- _param:tenant_vlan #}
+ # {{ interfaces_role }}
+ {{- set_param('linux_network_bridge', 'openvswitch') }}
+ {%- for interface_name, interface in interfaces.items() %}
+ {{ interface_name }}:
+ mtu: 9000
+ enabled: true
+ master: bond1 # ?
+ name: {{ interface_name }}
+ proto: manual
+ type: slave # ?
+ ipflush_onchange: true
+ {%- endfor %}
+ bond1:
+ enabled: true
+ mode: '802.3ad'
+ ovs_bridge: br-floating
+ ovs_type: OVSPort
+ proto: manual
+ slaves: {{ ' '.join(interfaces.keys()) }}
+ type: bond
+ use_interfaces:
+ {%- for interface_name in interfaces.keys() %}
+ - {{ interface_name }}
+ {%- endfor %}
+ require_interfaces:
+ {%- for interface_name in interfaces.keys() %}
+ - {{ interface_name }}
+ {%- endfor %}
+ br-floating:
+ enabled: true
+ type: ovs_bridge
+ br-mesh:
+ enabled: true
+ type: ovs_port
+ bridge: br-floating
+ proto: static
+ ovs_options: tag=${_param:_esc}{_param:tenant_vlan}
+ address: ${_param:_esc}{_param:tenant_address}
+ netmask: ${_param:_esc}{_param:tenant_network_netmask}
+ require_interfaces:
+ - br-floating
\ No newline at end of file