From e674716ab279ebdfae692fc40791d15e4cf6e4b2 Mon Sep 17 00:00:00 2001 From: Yue Ko Date: Thu, 22 Sep 2016 19:53:39 +0000 Subject: [PATCH] Incompatible infoblox-go-client changes Update due to incompatible infoblox-go-client changes. Update due to changes in cni/pkg/skel. --- infoblox-ipam.go | 4 ++-- plugin.go | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/infoblox-ipam.go b/infoblox-ipam.go index f29b383..9dca01a 100644 --- a/infoblox-ipam.go +++ b/infoblox-ipam.go @@ -55,7 +55,7 @@ func (ibDrv *InfobloxDriver) RequestAddress(netviewName string, cidr string, ipA if len(macAddr) == 0 { log.Printf("RequestAddressRequest contains empty MAC Address. '00:00:00:00:00:00' will be used.") } else { - fixedAddr, _ = ibDrv.objMgr.GetFixedAddress(netviewName, ipAddr, macAddr) + fixedAddr, _ = ibDrv.objMgr.GetFixedAddress(netviewName, cidr, ipAddr, macAddr) } if fixedAddr == nil { @@ -70,7 +70,7 @@ func (ibDrv *InfobloxDriver) ReleaseAddress(netviewName string, ipAddr string, m if netviewName == "" { netviewName = ibDrv.networkView } - ref, err = ibDrv.objMgr.ReleaseIP(netviewName, ipAddr, macAddr) + ref, err = ibDrv.objMgr.ReleaseIP(netviewName, "", ipAddr, macAddr) if ref == "" { log.Printf("ReleaseAddress: ***** IP Cannot be deleted '%s', '%s', '%s'! *******", netviewName, ipAddr, macAddr) } diff --git a/plugin.go b/plugin.go index 431c263..8ecedd6 100644 --- a/plugin.go +++ b/plugin.go @@ -26,10 +26,11 @@ import ( "github.com/containernetworking/cni/pkg/ns" "github.com/containernetworking/cni/pkg/skel" "github.com/containernetworking/cni/pkg/types" + "github.com/containernetworking/cni/pkg/version" ) func main() { - skel.PluginMain(cmdAdd, cmdDel) + skel.PluginMain(cmdAdd, cmdDel, version.Legacy) } type InterfaceInfo struct {