Skip to content

Commit

Permalink
编译错误问题
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyd1988 committed Oct 25, 2023
1 parent 47dd4e2 commit a32d87a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/router/bin/route_add.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package bin

import (
"encoding/json"
"fmt"
"github.com/Inspur-Data/ipamwrapper/pkg/logging"
"github.com/containernetworking/plugins/pkg/ns"
"github.com/vishvananda/netlink"
Expand Down Expand Up @@ -75,10 +74,10 @@ func CmdAdd(args *skel.CmdArgs) (err error) {
//var v6Gw net.IP
logging.Debugf("ifName :%v", args.IfName)
// get ip by interface name
link, err := netlink.LinkByName(args.IfName)
/*link, err := netlink.LinkByName(args.IfName)
if err != nil {
return logging.Errorf("Failed to get link:", err.Error())
}
}*/

// 获取 IP 地址列表
/*addrs, err := netlink.AddrList(link, netlink.FAMILY_V4)
Expand Down

0 comments on commit a32d87a

Please sign in to comment.