Comment 5 for bug 1015148

Revision history for this message
dan wendlandt (danwent) wrote : Re: [Bug 1015148] Re: v2 validity checks

On Thu, Jun 21, 2012 at 4:55 AM, Harsh Prasad <email address hidden>wrote:

> Can anyone suggest how to start developing a plugin using v2 apis? Cant
> find any documentation related other than v2Api Intro.
>

Hi Harsh,

You'll want to sub-class or otherwise utilize the capabilities in
quantum/db/db_plugin_base.py . This class will store all of the basic L2
network and IPAM data for you, and handle allocation logic. Anything
special that your plugin does beyond this (e.g., allocate a VLAN used to
implement a network, contact remote switches) is plugin specific, and would
be added by your sub-class. Make sense?

For F-2 we'll be updating the OVS plugin to work with v2 API, as its a very
simple example. I expect most other people to work on updating more complex
plugins during F-3, and they can use the OVS plugin as an example.

Dan

>
> --
> You received this bug notification because you are a member of Netstack
> Core Developers, which is subscribed to quantum.
> https://bugs.launchpad.net/bugs/1015148
>
> Title:
> v2 validity checks
>
> Status in OpenStack Quantum (virtual network service):
> Confirmed
>
> Bug description:
> The user is now able to configure ip adresses, macs, etc.
> There should be validity checks for the input.
>
> Below is an exmaple how the client created a subnet 1/1.
>
> (quantumv2) create_subnet --tenant-id admin
> 24a0efdb-5f5a-4ee5-98a1-c23cc05618cc 1/1
> Created a new subnet:
> +------------+--------------------------------------+
> | Field | Value |
> +------------+--------------------------------------+
> | cidr | 1/1 |
> | gateway_ip | 0.0.0.1 |
> | id | 9c59da47-bf61-4a5e-a854-588f61f3b553 |
> | ip_version | 4 |
> | network_id | 24a0efdb-5f5a-4ee5-98a1-c23cc05618cc |
> +------------+--------------------------------------+
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/quantum/+bug/1015148/+subscriptions
>

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dan Wendlandt
Nicira, Inc: www.nicira.com
twitter: danwendlandt
~~~~~~~~~~~~~~~~~~~~~~~~~~~