Skip to content

Commit

Permalink
Merge pull request #974 from zshi-redhat/macvlan-ipv6-ndisc
Browse files Browse the repository at this point in the history
macvlan: enable ipv6 ndisc_notify
  • Loading branch information
squeed committed Nov 13, 2023
2 parents dad27e9 + 999ca15 commit 2eee7ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/main/macvlan/macvlan.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ func cmdAdd(args *skel.CmdArgs) error {

err = netns.Do(func(_ ns.NetNS) error {
_, _ = sysctl.Sysctl(fmt.Sprintf("net/ipv4/conf/%s/arp_notify", args.IfName), "1")
_, _ = sysctl.Sysctl(fmt.Sprintf("net/ipv6/conf/%s/ndisc_notify", args.IfName), "1")

return ipam.ConfigureIface(args.IfName, result)
})
Expand Down

0 comments on commit 2eee7ce

Please sign in to comment.