remove host-local-ptp plugin

This commit is contained in:
Eugene Yakubovich
2015-09-17 14:56:13 -07:00
committed by Stefan Junker
parent 7d8d6b2a7e
commit 60be55a7d1
3 changed files with 1 additions and 73 deletions

View File

@ -15,8 +15,6 @@
package main
import (
"errors"
"github.com/appc/cni/plugins/ipam/host-local/backend/disk"
"github.com/appc/cni/pkg/skel"
@ -51,17 +49,7 @@ func cmdAdd(args *skel.CmdArgs) error {
return err
}
var ipConf *types.IPConfig
switch ipamConf.Type {
case "host-local":
ipConf, err = allocator.Get(args.ContainerID)
case "host-local-ptp":
ipConf, err = allocator.GetPtP(args.ContainerID)
default:
return errors.New("Unsupported IPAM plugin type")
}
ipConf, err := allocator.Get(args.ContainerID)
if err != nil {
return err
}