File tree 2 files changed +11
-3
lines changed
2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,12 @@ import (
11
11
"github.com/containernetworking/plugins/pkg/ns"
12
12
"github.com/pkg/errors"
13
13
localPkg "github.com/threefoldtech/zosbase/pkg"
14
+ "github.com/threefoldtech/zosbase/pkg/netbase/nft"
14
15
"github.com/threefoldtech/zosbase/pkg/netlight/bridge"
15
16
"github.com/threefoldtech/zosbase/pkg/netlight/ifaceutil"
16
17
"github.com/threefoldtech/zosbase/pkg/netlight/namespace"
17
18
"github.com/threefoldtech/zosbase/pkg/netlight/options"
18
19
"github.com/threefoldtech/zosbase/pkg/netlight/tuntap"
19
- "github.com/threefoldtech/zosbase/pkg/netbase/nft"
20
20
"github.com/threefoldtech/zosbase/pkg/zinit"
21
21
"github.com/vishvananda/netlink"
22
22
)
Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ import (
39
39
40
40
const (
41
41
myceliumInterfaceName = "br-my"
42
+ publicNamespaceName = "public"
43
+ publicInterfaceName = "public"
42
44
)
43
45
44
46
var (
@@ -308,8 +310,14 @@ func (nr *NetResource) SetMycelium() (err error) {
308
310
"--peers" ,
309
311
}
310
312
311
- // set mycelium public addresses are the private peers
312
- ips , err := baseifaceutil .GetIPsForIFace (ndmz .DmzPub4 , ndmz .DmzNamespace )
313
+ // set mycelium public addresses as the private peers
314
+ mycNamespace , mycInterface := ndmz .DmzNamespace , ndmz .DmzPub4
315
+ if namespace .Exists (publicNamespaceName ) {
316
+ mycNamespace = publicNamespaceName
317
+ mycInterface = publicInterfaceName
318
+ }
319
+
320
+ ips , err := baseifaceutil .GetIPsForIFace (mycInterface , mycNamespace )
313
321
if err != nil {
314
322
return errors .Wrap (err , "failed to get IPs for npub4" )
315
323
}
You can’t perform that action at this time.
0 commit comments