Skip to content

Commit 21fab39

Browse files
authored
disable ipv6 forward for zdbs (#102)
Signed-off-by: Ashraf Fouda <ashraf.m.fouda@gmail.com>
1 parent ef5352b commit 21fab39

2 files changed

Lines changed: 0 additions & 9 deletions

File tree

pkg/netlight/resource/resource.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -433,10 +433,6 @@ func (r *Resource) AttachMyceliumZDB(id string, zdbNS ns.NetNS) (err error) {
433433
return fmt.Errorf("failed to set lo up for namespace '%s': %w", nsName, err)
434434
}
435435

436-
if err := options.SetIPv6Forwarding(true); err != nil {
437-
return fmt.Errorf("failed to enable ipv6 forwarding in namespace %q: %w", nsName, err)
438-
}
439-
440436
return netlink.RouteAdd(&netlink.Route{
441437
Dst: &net.IPNet{
442438
IP: net.ParseIP("400::"),

pkg/network/networker.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import (
2727
"github.com/threefoldtech/zosbase/pkg/network/iperf"
2828
"github.com/threefoldtech/zosbase/pkg/network/mycelium"
2929
"github.com/threefoldtech/zosbase/pkg/network/ndmz"
30-
"github.com/threefoldtech/zosbase/pkg/network/options"
3130
"github.com/threefoldtech/zosbase/pkg/network/public"
3231
"github.com/threefoldtech/zosbase/pkg/network/tuntap"
3332
"github.com/threefoldtech/zosbase/pkg/network/yggdrasil"
@@ -274,10 +273,6 @@ func attachWithVeth(ifName, bridge string, netNs ns.NetNS, ip *net.IPNet, routes
274273
return fmt.Errorf("failed to set lo up for namespace '%s': %w", nsName, err)
275274
}
276275

277-
if err := options.SetIPv6Forwarding(true); err != nil {
278-
return fmt.Errorf("failed to enable ipv6 forwarding in namespace %q: %w", nsName, err)
279-
}
280-
281276
for _, route := range routes {
282277
if err := netlink.RouteAdd(&route); err != nil {
283278
return fmt.Errorf("failed to add route %q: %w", nsName, err)

0 commit comments

Comments
 (0)