Merge pull request #974 from zshi-redhat/macvlan-ipv6-ndisc

macvlan: enable ipv6 ndisc_notify
This commit is contained in:
Casey Callendrello 2023-11-13 17:08:56 +01:00 committed by GitHub
commit 2eee7cef35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
})