Add network role bond0_ab_ceph_control_backend
Add role for ceph OSD nodes with two networks:
- ceph public network, use openstack control_vlan
- ceph cluster network, use backend_vlan
Change-Id: I8a1173da428e41fee290d64c1d1661ebcf590ad7
diff --git "a/\173\043 interfaces \043\175/bond0_ab_ceph_control_backend" "b/\173\043 interfaces \043\175/bond0_ab_ceph_control_backend"
new file mode 100644
index 0000000..ddccf20
--- /dev/null
+++ "b/\173\043 interfaces \043\175/bond0_ab_ceph_control_backend"
@@ -0,0 +1,58 @@
+{#- Tenant over VXLAN. For gateway and compute nodes #}
+{#- Provides: #}
+{#- br_ctl (OVS bridge) + control address #}
+{#- br_mesh (OVS bridge) + tenant address #}
+{#- Requirements: #}
+{#- _param:single_address #}
+{#- _param:control_network_netmask #}
+{#- _param:control_vlan #}
+{#- _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: bond0 # ?
+ name: {{ interface_name }}
+ proto: manual
+ type: slave # ?
+ ipflush_onchange: true
+ {%- endfor %}
+ bond0:
+ enabled: true
+ mode: active-backup
+ 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 %}
+ # bond for cluster communication on _param:public_network
+ bond0.1:
+ name: bond1.${_param:control_vlan}
+ enabled: true
+ type: vlan
+ proto: static
+ address: ${_param:single_address}
+ netmask: ${_param:control_network_netmask}
+ use_interfaces:
+ - bond0
+ mesh: control
+ bond1.2:
+ name: bond1.${_param:backend_vlan}
+ enabled: true
+ type: vlan
+ proto: static
+ address: ${_param:backend_address}
+ netmask: ${_param:backend_network_netmask}
+ use_interfaces:
+ - bond1
+ mesh: storage_replication
\ No newline at end of file