O'Reilly logo

OpenStack Networking Cookbook by Chandan Dutta Chowdhury, Sriram Subramanian

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

Processing API requests for a Subnet

The previous recipe showed you how Neutron invokes methods in a mechanism driver for Network-related operations. In this recipe, we will see how to process API requests for Subnets.

Getting ready

In this recipe, we will enhance our driver and implement the methods that will process API requests for a Subnet. Ensure that your DevStack setup is up and running, with cookbook as one of the mechanism drivers, as shown in the earlier recipe.

How to do it…

  1. With the appropriate credentials, SSH into your DevStack setup.
  2. Open /opt/stack/neutron/neutron/plugins/ml2/drivers/ ch10_ml2_mech_driver.py using an editor.
  3. Add a new import statement, as highlighted in the following image:
  4. Update the class declaration statement to include ...

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