You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: Migrate gateways command from packngo to metal-go client (equinix#376)
Issue Task as part of migrating metal-cli from packngo to metal-go
client, added the support of gateways subcommand to use metal-go
Fixes: equinix#333
---------
Signed-off-by: Ayush Rangwala <[email protected]>
-r, --ip-reservation-id string UUID of the Public or VRF IP Reservation to assign.
28
-
-s, --private-subnet-size int Size of the private subnet to request (8 for /29)
29
-
-p, --project-id string The project's UUID. This flag is required, unless specified in the config created by metal init or set as METAL_PROJECT_ID environment variable.
30
-
-v, --virtual-network string UUID of the Virtual Network to assign.
26
+
-h, --help help for create
27
+
-r, --ip-reservation-id string UUID of the Public or VRF IP Reservation to assign.
28
+
-s, --private-subnet-size int32 Size of the private subnet to request (8 for /29)
29
+
-p, --project-id string The project's UUID. This flag is required, unless specified in the config created by metal init or set as METAL_PROJECT_ID environment variable.
30
+
-v, --virtual-network string UUID of the Virtual Network to assign.
createMetalGatewayCmd.Flags().StringVarP(&projectID, "project-id", "p", "", "The project's UUID. This flag is required, unless specified in the config created by metal init or set as METAL_PROJECT_ID environment variable.")
76
96
createMetalGatewayCmd.Flags().StringVarP(&reservationID, "ip-reservation-id", "r", "", "UUID of the Public or VRF IP Reservation to assign.")
77
97
createMetalGatewayCmd.Flags().StringVarP(&vnID, "virtual-network", "v", "", "UUID of the Virtual Network to assign.")
78
-
createMetalGatewayCmd.Flags().IntVarP(&netSize, "private-subnet-size", "s", 0, "Size of the private subnet to request (8 for /29)")
98
+
createMetalGatewayCmd.Flags().Int32VarP(&netSize, "private-subnet-size", "s", 0, "Size of the private subnet to request (8 for /29)")
retrieveMetalGatewaysCmd.Flags().StringVarP(&projectID, "project-id", "p", "", "The project's UUID. This flag is required, unless specified in the config created by metal init or set as METAL_PROJECT_ID environment variable.")
0 commit comments