|
|
(29 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| | | |
− | == 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 ==
| |
− |
| |
− | * RDO install OpenStack Icehouse for CentOS6.5
| |
− | * Install the ncclient Python library for NETCONF client on the Neutron server
| |
− |
| |
− | <pre><nowiki>
| |
− | https://github.com/leopoul/ncclient
| |
− | </nowiki></pre>
| |
− |
| |
− | == Directory Structure ==
| |
− |
| |
− | The Huawei Neutron ML2 Driver can be downloaded from the repository located at:
| |
− |
| |
− | <pre><nowiki>
| |
− | https://github.com/huaweiswitch/neutron
| |
− | </nowiki></pre>
| |
− |
| |
− |
| |
− | This repository represents code that will be put into the huawei directory as:
| |
− |
| |
− | <pre><nowiki>
| |
− | /master/neutron/plugins/ml2/drivers/huawei
| |
− | </nowiki></pre>
| |
− |
| |
− | == 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
| |