Comment 0 for bug 1045248

Revision history for this message
Ian Wells (ijw-ubuntu) wrote : dhcp server defaults to gateway fo filtering when unset

network/model.py converts new-style models to old ones.

When it's trying to identify the IP address of a DHCP server, it uses the DHCP server address, if set, and the gateway if not.

There's no documentation of this functionality in the code, so I don't know why it's there. However, I believe the DHCP server address should always be set to the correct address and, if it's unset, then there is no DHCP server - so the fallback should be removed from the code. (I'd appreciate someone confirming that.)

This bug will affect the libvirt driver (which at present uses legacy()-style models) and anything that uses virt/firewall.py (which converts new models to legacy form).