Add new role for lacp contail bond
Change-Id: I75742ac8ea0c38d3debd468e740b43df12b9b572
diff --git "a/\173\043 interfaces \043\175/bond_ctl_contrail_lacp" "b/\173\043 interfaces \043\175/bond_ctl_contrail_lacp"
new file mode 100644
index 0000000..92d03d3
--- /dev/null
+++ "b/\173\043 interfaces \043\175/bond_ctl_contrail_lacp"
@@ -0,0 +1,53 @@
+{#- Control network with bond. For control plane nodes #}
+{#- Provides: #}
+{#- br_ctl (linux bridge) + control address #}
+{#- _param:keepalived_vip_interface = 'br_ctl' #}
+{#- Requirements: #}
+{#- _param:single_address #}
+{#- _param:control_network_netmask #}
+{#- _param:control_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'
+ 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_ctl:
+ address: ${_param:_esc}{_param:single_address}
+ enabled: true
+ netmask: ${_param:_esc}{_param:control_network_netmask}
+ proto: static
+ type: bridge
+ use_interfaces:
+ - bond1.${_param:_esc}{_param:control_vlan}
+ require_interfaces:
+ - bond1.${_param:_esc}{_param:control_vlan}
+ bond1.control_vlan:
+ name: bond1.${_param:_esc}{_param:control_vlan}
+ enabled: true
+ proto: manual
+ type: vlan
+ use_interfaces:
+ - bond1
+ require_interfaces:
+ - bond1