O'Reilly logo

Learning OpenStack Networking (Neutron) by James Denton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Configuring the ML2 plugin

The ML2 plugin has its own configuration file, which can be found at /etc/neutron/plugins/ml2/ml2_conf.ini. The LinuxBridge and Open vSwitch agents continue to rely on their respective configuration files, which were configured previously in this book.

To implement ML2 with the LinuxBridge agent based on prior configuration documented in earlier chapters, use the following configuration in /etc/neutron/plugins/ml2/ml2_conf.ini:

[ml2] 
type_drivers = local,flat,vlan
tenant_network_types = vlan
mechanism_drivers = linuxbridge

[ml2_type_flat]
flat_networks = physnet1

[ml2_type_vlan]
network_vlan_ranges = physnet1:30:33

[database]
connection = mysql://neutron:neutron@controller/neutron_ml2

[securitygroup]
firewall_driver ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required