mirror of
https://github.com/rancher/plugins.git
synced 2025-07-16 16:21:18 +00:00
Merge pull request #32 from eyakubovich/ipvlan-fix
ipvlan: wrong name was used during link creation
This commit is contained in:
commit
77fc4ad0d6
@ -86,7 +86,7 @@ func createIpvlan(conf *NetConf, ifName string, netns *os.File) error {
|
|||||||
mv := &netlink.IPVlan{
|
mv := &netlink.IPVlan{
|
||||||
LinkAttrs: netlink.LinkAttrs{
|
LinkAttrs: netlink.LinkAttrs{
|
||||||
MTU: conf.MTU,
|
MTU: conf.MTU,
|
||||||
Name: ifName,
|
Name: tmpName,
|
||||||
ParentIndex: m.Attrs().Index,
|
ParentIndex: m.Attrs().Index,
|
||||||
Namespace: netlink.NsFd(int(netns.Fd())),
|
Namespace: netlink.NsFd(int(netns.Fd())),
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user