@@ -37,14 +37,21 @@ operating system.
3737If the configure-ips flag is not passed, the IP addresses will be assigned, and
3838routing will be allowed. However the IP(s) will not be automatically configured
3939in the guest operating system. In this scenario, it will be up to the system
40- administrator to add the IP(s) to the network configuration.` ,
40+ administrator to add the IP(s) to the network configuration.
41+
42+ IPv6 Notes:
43+
44+ Only /64s will be given out, and new-ips refers to how many /64's to assign.
45+ There is a limit of one /64 per Cloud Server. If you need more than this, you
46+ can contact support.` ,
4147 Run : func (cmd * cobra.Command , args []string ) {
4248 params := & instance.CloudNetworkPublicAddParams {}
4349
4450 params .UniqId , _ = cmd .Flags ().GetString ("uniq-id" )
4551 params .ConfigureIps , _ = cmd .Flags ().GetBool ("configure-ips" )
4652 params .NewIps , _ = cmd .Flags ().GetInt64 ("new-ips" )
4753 params .PoolIps = cloudNetworkPublicAddCmdPoolIpsFlag
54+ params .IpVersion , _ = cmd .Flags ().GetInt ("ip-version" )
4855
4956 status , err := lwCliInst .CloudNetworkPublicAdd (params )
5057 if err != nil {
@@ -64,6 +71,8 @@ func init() {
6471 cloudNetworkPublicAddCmd .Flags ().StringSliceVar (& cloudNetworkPublicAddCmdPoolIpsFlag , "pool-ips" , []string {},
6572 "ips from your IP Pool separated by ',' to assign to the Cloud Server" )
6673
74+ cloudNetworkPublicAddCmd .Flags ().Int ("ip-version" , 4 , "IP version 4 or 6" )
75+
6776 if err := cloudNetworkPublicAddCmd .MarkFlagRequired ("uniq-id" ); err != nil {
6877 lwCliInst .Die (err )
6978 }
0 commit comments