Skip to content

Commit

Permalink
macvlan: enable ipv6 ndisc_notify
Browse files Browse the repository at this point in the history
Signed-off-by: Zenghui Shi <zshi@redhat.com>
  • Loading branch information
zshi-redhat committed Nov 7, 2023
1 parent dad27e9 commit 999ca15
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 999ca15

Please sign in to comment.