Jump to: navigation, search

Difference between revisions of "Ml2-huawei-switch-mech-driver"

(Prerequisites)
(Configuration)
Line 29: Line 29:
  
 
== Configuration ==
 
== Configuration ==
=== Step 1: ===
+
=== Huawei Driver configuration ===
Edit /etc/neutron/neutron.conf:
+
* Edit /etc/neutron/neutron.conf:
 +
 
 +
<pre><nowiki>
 
core_plugin = ml2
 
core_plugin = ml2
 +
</nowiki></pre>
  
=== Step 2: ===
+
 
Edit /etc/neutron/plugins/ml2/ml2_conf.ini:
+
* Edit /etc/neutron/plugins/ml2/ml2_conf.ini:
 +
 
 +
<pre><nowiki>
 
type_drivers = vlan
 
type_drivers = vlan
 
tenant_network_types = vlan
 
tenant_network_types = vlan
 
mechanism_drivers = openvswitch,huawei
 
mechanism_drivers = openvswitch,huawei
 +
</nowiki></pre>
  
=== Step 3: ===
+
 
Edit /etc/neutron/plugins/ml2/ml2_conf_huawei.ini:
+
* Edit /etc/neutron/plugins/ml2/ml2_conf_huawei.ini:
hostaddr   = Switch IP address
+
 
 +
<pre><nowiki>
 +
hostaddr = 192.168.0.1
 
username = admin
 
username = admin
password = password
+
password = password
portname = Switch port name
+
portname = 10GE1/0/1
 +
</nowiki></pre>
  
=== Step 4: ===
+
 
Start the neutron service by providing the relevant configuration files:
+
* Start the neutron service by providing the relevant configuration files:
 +
 
 +
<pre><nowiki>
 
cd <neutron_path> && python <neutron_path>/bin/neutron-server --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini --config-file /etc/neutron/plugins/ml2/ml2_conf_huawei.ini
 
cd <neutron_path> && python <neutron_path>/bin/neutron-server --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini --config-file /etc/neutron/plugins/ml2/ml2_conf_huawei.ini
 +
</nowiki></pre>
 +
 +
 +
* Finally, restart neutron-server:
  
=== Step 5: ===
+
<pre><nowiki>
Finally, restart neutron-server:
 
 
service neutron-server restart
 
service neutron-server restart
 +
</nowiki></pre>

Revision as of 03:16, 19 November 2014

Overview

Huawei ML2 Mechanism Driver implement ML2 Plugin Mechanism Driver API. This driver can manage all types of Huawei switches. For further details, please refer to Huawei OpenStack Deployment Guide provided by Huawei.

Note: Initial version of this driver supports single network type and multi-segmented networks.

Prerequisites

Directory Structure

The Huawei Neutron ML2 Driver can be downloaded from the repository located at:

https://github.com/huaweiswitch/neutron


This repository represents code that will be put into the huawei directory as:

/master/neutron/plugins/ml2/drivers/huawei

Configuration

Huawei Driver configuration

  • Edit /etc/neutron/neutron.conf:
core_plugin = ml2


  • Edit /etc/neutron/plugins/ml2/ml2_conf.ini:
type_drivers = vlan
tenant_network_types = vlan
mechanism_drivers = openvswitch,huawei


  • Edit /etc/neutron/plugins/ml2/ml2_conf_huawei.ini:
hostaddr = 192.168.0.1
username = admin
password = password
portname = 10GE1/0/1


  • Start the neutron service by providing the relevant configuration files:
cd <neutron_path> && python <neutron_path>/bin/neutron-server --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini --config-file /etc/neutron/plugins/ml2/ml2_conf_huawei.ini


  • Finally, restart neutron-server:
service neutron-server restart