Merge pull request #979 from s1061123/fix/ndisc_ipvlan

Add ndisc_notify in ipvlan for ipv6 ndp
This commit is contained in:
Casey Callendrello 2023-11-14 00:27:01 +01:00 committed by GitHub
commit 93a1b3d0e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -293,6 +293,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)
})