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)
commitc70320b5ed11300abc5dc9ec33e382acc068bfc8
tree21de0a3c70c9bda5bff66ebb6b310101f68c9146
parent7a8ee49891682b6ba2c99efd2df782e4145919e8
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.
15 files changed:
Godeps/_workspace/src/github.com/coreos/rkt/pkg/lock/dir.go [deleted file]
Godeps/_workspace/src/github.com/coreos/rkt/pkg/lock/dir_test.go [deleted file]
Godeps/_workspace/src/github.com/coreos/rkt/pkg/lock/keylock.go [deleted file]
Godeps/_workspace/src/github.com/coreos/rkt/pkg/lock/keylock_test.go [deleted file]
pkg/ns/ns.go
plugins/ipam/dhcp/daemon.go [new file with mode: 0644]
plugins/ipam/dhcp/lease.go [new file with mode: 0644]
plugins/ipam/dhcp/main.go [new file with mode: 0644]
plugins/ipam/dhcp/options.go [new file with mode: 0644]
plugins/ipam/dhcp/options_test.go [new file with mode: 0644]
plugins/main/bridge/bridge.go
plugins/main/ipvlan/ipvlan.go
plugins/main/macvlan/macvlan.go
plugins/main/veth/veth.go
scripts/priv-net-run.sh