Note: a recent change to quantum made sure that ports created by DHCP have a particular device_owner, which should let us query them given a subnet-id. However, there may be a race condition here, if we need the dhcp_server to be populated right after the port is created. If its the first port on a subnet, the dhcp agent may not have created the corresponding port yet. This could be an issue, as the DHCP server IP may be needed at VM boot time.
Note: a recent change to quantum made sure that ports created by DHCP have a particular device_owner, which should let us query them given a subnet-id. However, there may be a race condition here, if we need the dhcp_server to be populated right after the port is created. If its the first port on a subnet, the dhcp agent may not have created the corresponding port yet. This could be an issue, as the DHCP server IP may be needed at VM boot time.