beautypg.com

Brocade Network OS Administrator’s Guide v4.1.1 User Manual

Page 95

background image

3. The physical switch configuration parameters and the Brocade-specific database configuration is

specified in the brocade.ini configuration file.

% cat /etc/neutron/plugins/brocade/brocade.ini

[SWITCH]

username = admin

password = password

address =

ostype = NOS

[DATABASE]

sql_connection = mysql://root:pass@localhost/brcd_Neutron?charset=utf8

4. Run setup.py with the appropriate permissions to copy the default configuration file to /etc/Neutron/

plugins/brocade/brocade.ini. This file must be edited to suit your setup and environment.

% cd /opt/stack/neutron/neutron/plugins/brocade

% python setup.py

5. DevStack is normally run by a non-root user stack. It is advisable to create a user id called stack on

your Linux machine.

% cd /home/stack

% git clone https://www.github.com/brocade/devstack

% cd devstack

6. Add the following lines to the localrc file. If the localrc file does not exist you must create one.

ENABLED_SERVICES=g-api,g-reg,key,n-api,n-crt,n-obj,n-cpu,n-net,n-cond,cinder,c-

sch,c-api,c-vol,n-sch,n-novnc,n-xvnc,

n-cauth,horizon,rabbit,neutron,q-svc,q-agt

Q_PLUGIN=brocade

7. Copy the brocade.ini and neutron.conf files to their final destination. All configuration changes must

be complete before copying the files.

/opt/stack/neutron/etc/neutron.conf -> /etc/neutron/neutron.conf

/opt/stack/neutron/etc/neutron/plugins/brocade/brocade.ini -> /etc/neutron/plugins/

brocade/brocade.ini

8. Activate DevStack with the devstack command.

% cd /home/stack/devstack; ./stack.sh

Basic Switch Management

Network OS Administrator’s Guide

95

53-1003225-04