summaryrefslogtreecommitdiffstats
path: root/bin/stack
diff options
context:
space:
mode:
authorBrad Hall <brad@nicira.com>2011-11-04 20:11:53 -0700
committerBrad Hall <brad@nicira.com>2011-11-04 20:11:53 -0700
commit38172d55876e78ff3c4326368de9ea9ddb99e76b (patch)
tree69ddf240eb08fc2847fa194c4b72db29da5ca078 /bin/stack
parentf89f27b184eb950f4487002a821b2e9c0f8315c7 (diff)
downloadnova-38172d55876e78ff3c4326368de9ea9ddb99e76b.tar.gz
nova-38172d55876e78ff3c4326368de9ea9ddb99e76b.tar.xz
nova-38172d55876e78ff3c4326368de9ea9ddb99e76b.zip
Add DHCP support to the QuantumManager and break apart dhcp/gateway
This introduces a new flag "quantum_use_dhcp=<boolean>" which indicates whether or not to enable dhcp for all of the networks. If it is set then we start dnsmasq (and provide it with the IP/MACs from Melange) similar to how this was done in linux_net before. Prior to this if you enabled dhcp then you would also get a gateway device.. some people may not want that so we now require that you specify the gateway when creating the network in order to end up with a device that will act as a gateway. If you're using Melange IPAM and you don't specify the gateway you still end up with one because it doesn't allow you to not have one. This lays the groundwork for the option of not having one in the future, at least :) Also, fix quantum/melange ipam interaction We now query for the subnets by net_id/vif_id instead of searching through all the blocks to find the right one. Both of the allocate and deallocate for instance calls are now using the vif_id -> network_id mapping instead of searching the quantum networks. get_port_by_attachment was also changed to take a net_id so that we don't have to search through all of the quantum networks to find the corresponding port. Change-Id: I6a84da35237b6c5f5cdee91ada92642103439a97
Diffstat (limited to 'bin/stack')
0 files changed, 0 insertions, 0 deletions