From ab5ffc1c9fc37c64b35005067ba66ddca28db0ba Mon Sep 17 00:00:00 2001 From: patrapritish1 <59195856+patrapritish1@users.noreply.github.com> Date: Thu, 2 Mar 2023 20:33:18 +0530 Subject: [PATCH 1/2] Update cluster.go --- service/ocean/providers/aws/cluster.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/service/ocean/providers/aws/cluster.go b/service/ocean/providers/aws/cluster.go index e373c840..3a96ffb0 100644 --- a/service/ocean/providers/aws/cluster.go +++ b/service/ocean/providers/aws/cluster.go @@ -163,6 +163,7 @@ type Filters struct { type LaunchSpecification struct { AssociatePublicIPAddress *bool `json:"associatePublicIpAddress,omitempty"` + AssociateIPv6Address *bool `json:"associateIpv6Address,omitempty"` SecurityGroupIDs []string `json:"securityGroupIds,omitempty"` ImageID *string `json:"imageId,omitempty"` KeyPair *string `json:"keyPair,omitempty"` @@ -1401,6 +1402,13 @@ func (o *LaunchSpecification) SetAssociatePublicIPAddress(v *bool) *LaunchSpecif return o } +func (o *LaunchSpecification) SetAssociateIPv6Address(v *bool) *LaunchSpecification { + if o.AssociateIPv6Address = v; o.AssociateIPv6Address == nil { + o.nullFields = append(o.nullFields, "AssociateIPv6Address") + } + return o +} + func (o *LaunchSpecification) SetSecurityGroupIDs(v []string) *LaunchSpecification { if o.SecurityGroupIDs = v; o.SecurityGroupIDs == nil { o.nullFields = append(o.nullFields, "SecurityGroupIDs") From 986d2e973006dfbf8dbe522f97493ed661cac32a Mon Sep 17 00:00:00 2001 From: patrapritish1 <59195856+patrapritish1@users.noreply.github.com> Date: Mon, 6 Mar 2023 18:31:47 +0530 Subject: [PATCH 2/2] added ipv6 parameter in example file --- examples/service/ocean/providers/aws/create/main.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/service/ocean/providers/aws/create/main.go b/examples/service/ocean/providers/aws/create/main.go index 6c3b112f..043f1399 100644 --- a/examples/service/ocean/providers/aws/create/main.go +++ b/examples/service/ocean/providers/aws/create/main.go @@ -73,9 +73,10 @@ func main() { "subnet-67890", }, LaunchSpecification: &aws.LaunchSpecification{ - ImageID: spotinst.String("ami-12345"), - Monitoring: spotinst.Bool(false), - SecurityGroupIDs: []string{"sg-foo"}, + ImageID: spotinst.String("ami-12345"), + Monitoring: spotinst.Bool(false), + SecurityGroupIDs: []string{"sg-foo"}, + AssociateIPv6Address: spotinst.Bool(true), }, }, },