Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DS: VPC Floating IP #1794

Merged
merged 1 commit into from
Aug 13, 2020
Merged

Conversation

umarali-nagoor
Copy link
Collaborator

Test Results:

Uploading Screenshot 2020-08-12 at 1.33.43 PM.png…
Screenshot 2020-08-12 at 1 34 01 PM
Screenshot 2020-08-12 at 2 12 16 PM

floatingIPZone: {
Type: schema.TypeString,
Computed: true,
ConflictsWith: []string{isFloatingIPTarget},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove ConflictsWith..its a computed field

floatingIPTarget: {
Type: schema.TypeString,
Computed: true,
ConflictsWith: []string{isFloatingIPZone},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove ConflictsWith

return err
}

floatingIPOptions := &vpcclassicv1.ListFloatingIpsOptions{}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the option start parameter....which we added for other datasources for List

start
string

A server-supplied token determining what resource to start the page on

check other datasources

return err
}

floatingIPOptions := &vpcv1.ListFloatingIpsOptions{}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above comment

}
}

return nil
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If not name matches return fmt.Error("No floatingIP found with name....")

}
}

return nil
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If not name matches return fmt.Error("No floatingIP found with name....")

}

```

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add Argument Reference section (required variables)


The following attributes are exported:
* `id` - An alphanumeric value identifying the floating ip.
* `name` - Name for the floating IP address.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove name from attribute reference section

keys = [ibm_is_ssh_key.testacc_sshkey.id]
}

data "ibm_is_floating_ip" "test" {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove all other resources just keep data "ibm_is_floating_ip"

@hkantare hkantare merged commit 8f38568 into IBM-Cloud:master Aug 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants