dhcp: make netns path absolute prior to RPC
authorEugene Yakubovich <eugene.yakubovich@coreos.com>
Mon, 15 Jun 2015 19:31:07 +0000 (12:31 -0700)
committerEugene Yakubovich <eugene.yakubovich@coreos.com>
Mon, 15 Jun 2015 19:44:43 +0000 (12:44 -0700)
commit30316e3fa9afd65cbdc629c56740f79b30459827
tree7c3dace942b0b2ebed6518ed8f5424c21ad69dfe
parentd4d3f914e74fee50fe6dbb947e0239e84a8e69f0
dhcp: make netns path absolute prior to RPC

The dhcp daemon may be running with a different cwd
and so the netns paths need to be absolute. This patch
also refactors the code to pull out the common, RPC
parts, out into a separate function.
plugins/ipam/dhcp/main.go