add DHCP IPAM plugin
authorEugene Yakubovich <eugene.yakubovich@coreos.com>
Tue, 19 May 2015 19:02:41 +0000 (12:02 -0700)
committerEugene Yakubovich <eugene.yakubovich@coreos.com>
Thu, 21 May 2015 20:36:51 +0000 (13:36 -0700)
commita6a822268c637bc99ff5f7967e3a9d757e504ea0
treec55a4dc17c261d047dd86d3c4aca0e6ec89992ae
parente59e2fd890e9ba680ad5390fb8f64797db5b356b
add DHCP IPAM plugin

The plugin binary actually functions in two modes. The first mode
is a regular CNI plugin. The second mode (when stared with "daemon" arg)
runs a DHCP client daemon. When executed as a CNI plugin, it issues
an RPC request to the daemon for actual processing. The daemon is
required since a DHCP lease needs to be maintained by periodically
renewing it. One instance of the daemon can server arbitrary number
of containers/leases.
ns/ns.go