|
@@ -15,9 +15,7 @@ var (
|
|
|
endpoint string
|
|
|
name string
|
|
|
listenPort int
|
|
|
- proxyListenPort int
|
|
|
mtu int
|
|
|
- proxyEnabled bool
|
|
|
isStatic bool
|
|
|
isDefault bool
|
|
|
)
|
|
@@ -42,9 +40,7 @@ var hostUpdateCmd = &cobra.Command{
|
|
|
apiHost.EndpointIP = endpoint
|
|
|
apiHost.Name = name
|
|
|
apiHost.ListenPort = listenPort
|
|
|
- apiHost.ProxyListenPort = proxyListenPort
|
|
|
apiHost.MTU = mtu
|
|
|
- apiHost.ProxyEnabled = proxyEnabled
|
|
|
apiHost.IsStatic = isStatic
|
|
|
apiHost.IsDefault = isDefault
|
|
|
}
|
|
@@ -57,9 +53,7 @@ func init() {
|
|
|
hostUpdateCmd.Flags().StringVar(&endpoint, "endpoint", "", "Endpoint of the Host")
|
|
|
hostUpdateCmd.Flags().StringVar(&name, "name", "", "Host name")
|
|
|
hostUpdateCmd.Flags().IntVar(&listenPort, "listen_port", 0, "Listen port of the host")
|
|
|
- hostUpdateCmd.Flags().IntVar(&proxyListenPort, "proxy_listen_port", 0, "Proxy listen port of the host")
|
|
|
hostUpdateCmd.Flags().IntVar(&mtu, "mtu", 0, "Host MTU size")
|
|
|
- hostUpdateCmd.Flags().BoolVar(&proxyEnabled, "proxy", false, "Enable proxy ?")
|
|
|
hostUpdateCmd.Flags().BoolVar(&isStatic, "static", false, "Make Host Static ?")
|
|
|
hostUpdateCmd.Flags().BoolVar(&isDefault, "default", false, "Make Host Default ?")
|
|
|
rootCmd.AddCommand(hostUpdateCmd)
|