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

feat: Introduce Optional field (diverseFromDeviceUuid )in create device - Single(non HA) #592

Merged
merged 11 commits into from
Feb 28, 2024

Conversation

kpdhulipala
Copy link
Contributor

feat: Introduce Optional field (diverseFromDeviceUuid )in create device - Single/non HA
Closes: ne-go module PR- equinix/ne-go#31
https://developer.equinix.com/catalog/network-edgev1#operation/createVirtualDeviceUsingPOST

@codecov-commenter
Copy link

codecov-commenter commented Feb 24, 2024

Codecov Report

Attention: Patch coverage is 20.00000% with 12 lines in your changes are missing coverage. Please review.

Project coverage is 42.07%. Comparing base (bc4e26d) to head (cc76868).

Files Patch % Lines
equinix/data_source_network_device.go 0.00% 6 Missing ⚠️
equinix/resource_network_device.go 33.33% 4 Missing and 2 partials ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #592      +/-   ##
==========================================
- Coverage   42.09%   42.07%   -0.02%     
==========================================
  Files          98       98              
  Lines       18397    18412      +15     
==========================================
+ Hits         7744     7747       +3     
- Misses      10449    10459      +10     
- Partials      204      206       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -298,6 +299,9 @@ device configurations. See [Secondary Device](#secondary-device) below for more
If not specified, default will be INTERNET-ACCESS
* `project_id` - (Optional) Unique Identifier for the project resource where the device is scoped to.If you
leave it out, the device will be created under the default project id of your organization.
* `diverse_device_id` - (Optional) Unique ID of an existing device.
Use this field to let Equinix know if you want your new device to be in a different location from any existing virtual
device. This field is only meaningful for single devices.

Copy link
Member

@displague displague Feb 26, 2024

Choose a reason for hiding this comment

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

the diverse_device_name field must be documented

Copy link
Member

@displague displague Feb 26, 2024

Choose a reason for hiding this comment

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

Both fields must also be added to the docs/data-sources/equinix_network_device.md attributes list.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

addressed them, pls check and let me know @displague

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sorry, I got it now, added them in data source equinix_network_device.md

Copy link
Contributor

@rling-equinix rling-equinix left a comment

Choose a reason for hiding this comment

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

Could you please add the test cases for data source network device?

docs/resources/equinix_network_device.md Outdated Show resolved Hide resolved
neDeviceSchemaNames["DiverseFromDeviceName"]: {
Type: schema.TypeString,
Computed: true,
Optional: true,
Copy link
Contributor

Choose a reason for hiding this comment

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

Optional field should be removed here since it's purely a computed field. We are not sending this field as part of request.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

addressed

equinix/resource_network_device.go Outdated Show resolved Hide resolved
equinix/resource_network_device_test.go Outdated Show resolved Hide resolved
Copy link
Contributor

@rling-equinix rling-equinix left a comment

Choose a reason for hiding this comment

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

Lgtm

Signed-off-by: kpdhulipala <84343462+kpdhulipala@users.noreply.github.com>
@displague displague merged commit 12c5b6b into equinix:main Feb 28, 2024
2 of 3 checks passed
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.

None yet

4 participants