|
|
Line 1: |
Line 1: |
− | = Huawei Switch ML2 Driver =
| |
| | | |
− | == Overview ==
| |
− |
| |
− | Huawei Switch ML2 Driver implement ML2 Plugin Mechanism Driver API.
| |
− | This driver can manage all types of Huawei switches.
| |
− | For further details, please refer to Huawei Switch OpenStack Deployment Guide provided by Huawei.
| |
− |
| |
− | Note: Initial version of this driver supports single network type and multi-segmented networks.
| |
− |
| |
− | +–––––––––––––––––––––––––+
| |
− | | |
| |
− | | Neutron Server |
| |
− | | with ML2 Plugin |
| |
− | | |
| |
− | | +–––––––––––––––––+
| |
− | +–––––––+ | |
| |
− | | | | Huawei Switch +––––––––––––––––––––––+
| |
− | | | | Mechanism | NETCONF |
| |
− | | +––––+ | Driver +––––––––––––––––––––––––––+
| |
− | | | | | | | |
| |
− | | | +–––––––+–––––––––––––––––+ | |
| |
− | | | | |
| |
− | | | | |
| |
− | | | +–––––––––––+––––––––––––––+ | |
| |
− | | +––––+ L2 Agent | Open vSwitch +–––––+ | |
| |
− | | +–––––––––––+––––––––––––––+ | | |
| |
− | | | | | | |
| |
− | | | HOST 1 | | | |
| |
− | | | | | +––––––––+–––|––––––+
| |
− | | +––––––––––––––––––––––––––+ | | | |
| |
− | | +––––––+ +–––––––––+––––––+––+
| |
− | | | | |
| |
− | | +––––––––––+–––––––––––––––+ | | Huawei |
| |
− | +–––––––+ L2 Agent | Open vSwitch +––––––––––––+ | switches |
| |
− | +––––––––––+–––––––––––––––+ | | |
| |
− | | | +––+ |
| |
− | | HOST 2 | | |
| |
− | | | +–––––––––––––––––––+
| |
− | +––––––––––––––––––––––––––+
| |
− |
| |
− | == 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 Switch ML2 Driver can be downloaded from the repository located at:
| |
− |
| |
− | <pre><nowiki>
| |
− | https://github.com/huaweiswitch/neutron
| |
− | </nowiki></pre>
| |
− | (see https://github.com/huaweiswitch/neutron)
| |
− |
| |
− |
| |
− | This repository represents code that will be put into the huawei directory as:
| |
− |
| |
− | <pre><nowiki>
| |
− | /master/neutron/plugins/ml2/drivers/huawei
| |
− | </nowiki></pre>
| |
− |
| |
− | == Configuration ==
| |
− | === Huawei Driver configuration ===
| |
− | * Edit /etc/neutron/neutron.conf:
| |
− |
| |
− | <pre><nowiki>
| |
− | core_plugin = ml2
| |
− | </nowiki></pre>
| |
− |
| |
− |
| |
− | * Edit /etc/neutron/plugins/ml2/ml2_conf.ini:
| |
− |
| |
− | <pre><nowiki>
| |
− | type_drivers = vlan
| |
− | tenant_network_types = vlan
| |
− | mechanism_drivers = openvswitch,huawei_switch
| |
− | </nowiki></pre>
| |
− |
| |
− |
| |
− | * Edit /etc/neutron/plugins/ml2/ml2_conf_huawei.ini:
| |
− |
| |
− | <pre><nowiki>
| |
− | hostaddr = 192.168.0.1
| |
− | username = admin
| |
− | password = password
| |
− | portname = 10GE1/0/1
| |
− | </nowiki></pre>
| |
− |
| |
− |
| |
− | * 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
| |
− | </nowiki></pre>
| |
− |
| |
− |
| |
− | * Finally, restart neutron-server:
| |
− |
| |
− | <pre><nowiki>
| |
− | service neutron-server restart
| |
− | </nowiki></pre>
| |
− |
| |
− | [[category:neutron]]
| |