Creating a basic ML2 mechanism driver
The first step in the journey to write an ML2 mechanism driver is to create a basic driver class. This will also help us understand the code structure.
Getting ready
As mentioned earlier, we will use DevStack in order to write and test our plugin. So, ensure that the DevStack environment is up and running successfully.
How to do it…
- With the appropriate credentials, SSH into your DevStack setup.
- Ensure that all the driver files from the GitHub repository are copied to
/opt/stack/neutron/neutron/plugins/ml2/drivers
. - The
ch10_ml2_mech_driver.py
file will be our main mechanism driver file, as follows: - The
CookbookMechanismDriver ...
Get OpenStack Networking Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.