Book Image

OpenStack Networking Cookbook

Book Image

OpenStack Networking Cookbook

Overview of this book

Table of Contents (19 chapters)
OpenStack Networking Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Registering your ML2 mechanism driver with the Neutron server


Once the driver code is added, the next step is to register the driver with Neutron. In this recipe, we will see how to register the new mechanism driver with Neutron. We will also check whether our mechanism driver has been loaded and initialized successfully as we restart the Neutron server.

Getting ready

The previous recipe is the prerequisite for this recipe. The basic ML2 driver code is required to be placed at the location mentioned in the previous recipe.

How to do it…

  1. With the appropriate credentials, SSH into your DevStack setup.

  2. Open the /etc/neutron/plugins/ml2/ml2_conf.ini configuration file using your desired editor. For example, the command for the vi editor will be as follows:

  3. In the [ml2] section of the file, configure mechanism_drivers, as follows:

  4. Next, open the /opt/stack/neutron/neutron.egg-info/entry_points.txt file using your desired editor. For example, the command for the vi editor will be as follows:

  5. In the [neutron...