mirror of
https://github.com/gravitl/netmaker.git
synced 2024-09-20 15:26:04 +08:00
NET-1050: change ingress refs in NMCTL to remote access gateways (#2852)
This commit is contained in:
parent
8175a0e240
commit
3b533952df
|
@ -6,10 +6,11 @@ import (
|
|||
)
|
||||
|
||||
var nodeCreateIngressCmd = &cobra.Command{
|
||||
Use: "create_ingress [NETWORK NAME] [NODE ID]",
|
||||
Args: cobra.ExactArgs(2),
|
||||
Short: "Turn a Node into a Ingress",
|
||||
Long: `Turn a Node into a Ingress`,
|
||||
Use: "create_remote_access_gateway [NETWORK NAME] [NODE ID]",
|
||||
Args: cobra.ExactArgs(2),
|
||||
Short: "Turn a Node into a Remote Access Gateway (Ingress)",
|
||||
Long: `Turn a Node into a Remote Access Gateway (Ingress) for a Network.`,
|
||||
Aliases: []string{"create_rag"},
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
functions.PrettyPrint(functions.CreateIngress(args[0], args[1], failover))
|
||||
},
|
||||
|
|
|
@ -6,10 +6,11 @@ import (
|
|||
)
|
||||
|
||||
var nodeDeleteIngressCmd = &cobra.Command{
|
||||
Use: "delete_ingress [NETWORK NAME] [NODE ID]",
|
||||
Args: cobra.ExactArgs(2),
|
||||
Short: "Delete Ingress role from a Node",
|
||||
Long: `Delete Ingress role from a Node`,
|
||||
Use: "delete_remote_access_gateway [NETWORK NAME] [NODE ID]",
|
||||
Args: cobra.ExactArgs(2),
|
||||
Short: "Delete Remote Access Gateway role from a Node",
|
||||
Long: `Delete Remote Access Gateway role from a Node`,
|
||||
Aliases: []string{"delete_rag"},
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
functions.PrettyPrint(functions.DeleteIngress(args[0], args[1]))
|
||||
},
|
||||
|
|
|
@ -29,7 +29,7 @@ var nodeListCmd = &cobra.Command{
|
|||
functions.PrettyPrint(data)
|
||||
default:
|
||||
table := tablewriter.NewWriter(os.Stdout)
|
||||
table.SetHeader([]string{"ID", "Addresses", "Network", "Egress", "Ingress", "Relay"})
|
||||
table.SetHeader([]string{"ID", "Addresses", "Network", "Egress", "Remote Access Gateway", "Relay"})
|
||||
for _, d := range data {
|
||||
addresses := ""
|
||||
if d.Address != "" {
|
||||
|
|
Loading…
Reference in a new issue