Skip to content

Commit 2eee7ce

Browse files
authored
Merge pull request #974 from zshi-redhat/macvlan-ipv6-ndisc
macvlan: enable ipv6 ndisc_notify
2 parents dad27e9 + 999ca15 commit 2eee7ce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugins/main/macvlan/macvlan.go

+1
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ func cmdAdd(args *skel.CmdArgs) error {
351351

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

355356
return ipam.ConfigureIface(args.IfName, result)
356357
})

0 commit comments

Comments
 (0)