Jump to: navigation, search

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

(Step 2:)
Line 9: Line 9:
 
== Directory Structure ==
 
== Directory Structure ==
 
The Huawei Neutron ML2 Driver can be downloaded from the repository located at:
 
The Huawei Neutron ML2 Driver can be downloaded from the repository located at:
{| class="wikitable"
+
https://github.com/huaweiswitch/neutron/tree/master/neutron/plugins/ml2/drivers/huawei
|-
+
 
| https://github.com/huaweiswitch/neutron/tree/master/neutron/plugins/ml2/drivers/huawei
 
|}
 
  
 
== Configuration ==
 
== Configuration ==
 
=== Step 1: ===
 
=== Step 1: ===
 
Edit /etc/neutron/neutron.conf:
 
Edit /etc/neutron/neutron.conf:
{| class="wikitable"
+
core_plugin = ml2
|-
 
| core_plugin = ml2
 
|}
 
  
 
=== Step 2: ===
 
=== Step 2: ===
 
Edit /etc/neutron/plugins/ml2/ml2_conf.ini:
 
Edit /etc/neutron/plugins/ml2/ml2_conf.ini:
{| class="wikitable"
+
type_drivers = vlan
|-
+
tenant_network_types = vlan
| type_drivers = vlan || tenant_network_types = vlan || mechanism_drivers = openvswitch,huawei
+
mechanism_drivers = openvswitch,huawei
|}
 
  
 
=== Step 3: ===
 
=== Step 3: ===
 
Edit /etc/neutron/plugins/ml2/ml2_conf_huawei.ini:
 
Edit /etc/neutron/plugins/ml2/ml2_conf_huawei.ini:
<gallery>
 
 
hostaddr  = Switch IP address
 
hostaddr  = Switch IP address
 
username = admin
 
username = admin
 
password  = password
 
password  = password
 
portname  = Switch port name
 
portname  = Switch port name
</gallery>
+
 
 
=== Step 4: ===
 
=== Step 4: ===
Start the neutron service by providing the relevant configuration files
+
Start the neutron service by providing the relevant configuration files:
<gallery>
 
 
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
</gallery>
+
 
 
=== Step 5: ===
 
=== Step 5: ===
 
Finally, restart neutron-server:
 
Finally, restart neutron-server:
<gallery>
 
 
service neutron-server restart
 
service neutron-server restart
</gallery>
 

Revision as of 12:55, 18 November 2014

Overview

Huawei ML2 Mechanism Driver implement ML2 Plugin Mechanism Driver API. This driver can manage all types of Huawei switches.

Prerequisites

RDO install OpenStack Icehouse for CentOS6.5 Install the ncclient Python library for NETCONF client (see https://github.com/leopoul/ncclient) on the Neutron server.

Directory Structure

The Huawei Neutron ML2 Driver can be downloaded from the repository located at: https://github.com/huaweiswitch/neutron/tree/master/neutron/plugins/ml2/drivers/huawei


Configuration

Step 1:

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

Step 2:

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

Step 3:

Edit /etc/neutron/plugins/ml2/ml2_conf_huawei.ini: hostaddr = Switch IP address username = admin password = password portname = Switch port name

Step 4:

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

Step 5:

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