[openstack-dev] Quantum dhcp code questions

Wojciech Dec wdec.ietf at gmail.com
Thu Jan 3 09:11:18 UTC 2013

Hi All,

I wonder if someone could help out with a few newbie questions regarding
the Quantum code, specifically the dhcp agent parts thereof as in:

1. In general who instantiates/uses the DhcpBase class (a trawl through the
Quantum and base openstack code didn't find any references past the test
suite, but it clearly is needed to get things going)?

Then, a couple of questions on the some of the remaining code in dhcp.py: A
number of functions (eg spawn_process() ) use the following pattern to
decide what/if to configure something:
*for i, subnet in enumerate(self.network.subnets):*

2. Am I correct in reading that network.subnets above is effectively out of
the dict type as defined in RESOURCE_ATTRIBUTE_MAP in
Side note: If so then, I must admit that  the use of the "dot notation" for
dict access is something that caught me out, as at least to me it does not
appear to be widely known python feature.

3. In this type of function, where/how are the "subnets" getter and setter
defined for the dhcp paramaters (ie where do the actual values come in from
the config file that, say, is being used when configuring the dhcp

4. In terms of design, what if any were the reasons why the dhcp component
not been designed more like a plugin?

W. Dec
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130103/5a0859e5/attachment.html>

More information about the OpenStack-dev mailing list