-
Notifications
You must be signed in to change notification settings - Fork 552
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* revert relays * initial relay commit * get relayed allowed ips * add more relay validation checks, peer logic cleanup * rm relayed nodes from relay node when relayed node is deleted * fix egress updates for relayed nodes * rm unused func * remove debug logs * avoid adding egress ranges on the relayed gw node --------- Co-authored-by: Matthew R Kasun <mkasun@nusak.ca>
- Loading branch information
1 parent
20998dd
commit 6c25826
Showing
21 changed files
with
399 additions
and
649 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package node | ||
|
||
import ( | ||
"strings" | ||
|
||
"github.com/gravitl/netmaker/cli/functions" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var hostCreateRelayCmd = &cobra.Command{ | ||
Use: "create_relay [NETWORK][NODE ID] [RELAYED NODE IDS (comma separated)]", | ||
Args: cobra.ExactArgs(3), | ||
Short: "Turn a Node into a Relay", | ||
Long: `Turn a Node into a Relay`, | ||
Run: func(cmd *cobra.Command, args []string) { | ||
functions.PrettyPrint(functions.CreateRelay(args[0], args[1], strings.Split(args[2], ","))) | ||
}, | ||
} | ||
|
||
func init() { | ||
rootCmd.AddCommand(hostCreateRelayCmd) | ||
} |
12 changes: 6 additions & 6 deletions
12
cli/cmd/host/delete_relay.go → cli/cmd/node/delete_relay.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.