Arista-neutron-ml2-driver

= Arista Neutron ML2 Driver =

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

Note: Initial version of this driver supports only single network type - i.e. VLANs. Future version is being worked on to support multi-segmented networks.

Directory Structure
The Arista Neutron ML2 Driver can be downloaded from the repository located at:

https://github.com/openstack/networking-arista (branch: master)

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

/opt/stack/neutron/neutron/plugins/ml2/drivers/arista

Requirements

 * Prior to enabling Arista Driver, Arista EAPI Host (see configuration example below) must be up and running. For details, please see Arista OpenStack Deployment Guide
 * Ensure that jsonrpclib is installed (see Arista OpenStack Deployment Guide)

Arista Driver configuration (Neutron server node)

 * Edit /etc/neutron/plugins/ml2/ml2_conf_arista.ini:

[ml2_arista]
 * 1) (StrOpt) EOS IP address. This is required field. If not set, all
 * 2)          communications to Arista EOS will fail
 * 3) eapi_host =
 * 4) Example: eapi_host = 192.168.0.1
 * 5) (StrOpt) EOS command API username. This is required field.
 * 6)          if not set, all communications to Arista EOS will fail.
 * 7) eapi_username =
 * 8) Example: arista_eapi_username = admin
 * 9) (StrOpt) EOS command API password. This is required field.
 * 10)          if not set, all communications to Arista EOS will fail.
 * 11) eapi_password =
 * 12) Example: eapi_password = my_password
 * 13) (StrOpt) Defines if hostnames are sent to Arista EOS as FQDNs
 * 14)          ("node1.domain.com") or as short names ("node1"). This is
 * 15)          optional. If not set, a value of "True" is assumed.
 * 16) use_fqdn =
 * 17) Example: use_fqdn = True
 * 18) (IntOpt) Sync interval in seconds between Quantum plugin and EOS.
 * 19)          This field defines how often the synchronization is performed.
 * 20)          This is an optional field. If not set, a value of 180 seconds
 * 21)          is assumed.
 * 22) sync_interval =
 * 23) Example: sync_interval = 60
 * 24) (StrOpt) Defines Region Name that is assigned to this OpenStack Controller.
 * 25)          This is useful when multiple OpenStack/Neutron controllers are
 * 26)          managing the same Arista HW clusters. Note that this name must
 * 27)          match with the region name registered (or known) to keystone
 * 28)          service. Authentication with Keysotne is performed by EOS.
 * 29)          This is optional. If not set, a value of "RegionOne" is assumed.
 * 30) region_name =
 * 31) Example: region_name = RegionOne
 * 1) Example: sync_interval = 60
 * 2) (StrOpt) Defines Region Name that is assigned to this OpenStack Controller.
 * 3)          This is useful when multiple OpenStack/Neutron controllers are
 * 4)          managing the same Arista HW clusters. Note that this name must
 * 5)          match with the region name registered (or known) to keystone
 * 6)          service. Authentication with Keysotne is performed by EOS.
 * 7)          This is optional. If not set, a value of "RegionOne" is assumed.
 * 8) region_name =
 * 9) Example: region_name = RegionOne
 * 1) region_name =
 * 2) Example: region_name = RegionOne

Start the neutron service by providing the relevant configuration files

cd  && python /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_arista.ini