David Stevens/Beaverton/IBM@IBMUS wrote on 03/22/2012 01:27:10 PM:
This patch adds DHCP snooping support to libvirt. The learning method
for
IP addresses is specified by setting the "ip_learning"
variable to one
of
"any" [default] (existing IP learning code),
"none" (static only
addresses)
or "dhcp" (DHCP snooping).
Active leases are saved in a lease file and reloaded on restart or HUP.
Changes since v5:
- use VMUUID+MAC to identify interfaces for leases
- use direct pthread_cancel to kill snooper threads to avoid races with
re-used host interfaces
I tried it. It doesn't apply more than one IP address. The code also
doesn't apply cleanly to the tip.
Stefan