diff --git a/plugins/main/ptp/ptp.go b/plugins/main/ptp/ptp.go index a9464351..2e9bf5af 100644 --- a/plugins/main/ptp/ptp.go +++ b/plugins/main/ptp/ptp.go @@ -228,7 +228,7 @@ func cmdAdd(args *skel.CmdArgs) error { } defer netns.Close() - hostInterface, containerInterface, err := setupContainerVeth(netns, args.IfName, conf.MTU, result) + hostInterface, _, err := setupContainerVeth(netns, args.IfName, conf.MTU, result) if err != nil { return err } @@ -254,8 +254,6 @@ func cmdAdd(args *skel.CmdArgs) error { result.DNS = conf.DNS } - result.Interfaces = []*current.Interface{hostInterface, containerInterface} - return types.PrintResult(result, conf.CNIVersion) }