mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-04 10:54:24 +08:00
add network name from cli
This commit is contained in:
parent
31da842b97
commit
f926f4c379
1 changed files with 2 additions and 2 deletions
|
@ -150,7 +150,7 @@ func Connect(cfg config.ClientConfig) error {
|
|||
if networkName == "" {
|
||||
networkName = cfg.Node.Network
|
||||
}
|
||||
if networkName == "" {
|
||||
if networkName == "all" {
|
||||
return fmt.Errorf("no network specified")
|
||||
}
|
||||
return functions.Connect(networkName)
|
||||
|
@ -162,7 +162,7 @@ func Disconnect(cfg config.ClientConfig) error {
|
|||
if networkName == "" {
|
||||
networkName = cfg.Node.Network
|
||||
}
|
||||
if networkName == "" {
|
||||
if networkName == "all" {
|
||||
return fmt.Errorf("no network specified")
|
||||
}
|
||||
return functions.Disconnect(networkName)
|
||||
|
|
Loading…
Add table
Reference in a new issue