Don't let DHCP delete fail on missing lease
authorRoman Mohr <rmohr@redhat.com>
Wed, 11 Oct 2017 09:38:36 +0000 (11:38 +0200)
committerRoman Mohr <rmohr@redhat.com>
Wed, 11 Oct 2017 12:29:16 +0000 (14:29 +0200)
commitcc714265926d48ae626b776dc3ffed41d1aab101
tree06ad2ea9f21b297004a7fcafcf985c3b1027eb1d
parente256564546e8d1ca8a36911f8445c11929043221
Don't let DHCP delete fail on missing lease

There are at least two reasons why a lease is not present:

 * The dhcp ipam daemon was restarted
 * On add the IPAM plugin failed

Don't fail the IPAM invocation when the lease is not present, to allow
proper device cleanup on CNI delete invocations.
plugins/ipam/dhcp/daemon.go