-
Notifications
You must be signed in to change notification settings - Fork 47
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: add a resource for VRF BGP dynamic neighbors #746
Conversation
6fe89e8
to
0832b40
Compare
0832b40
to
f26180a
Compare
internal/resources/metal/vrf_bgp_dynamic_neighbor/datasource_schema.go
Outdated
Show resolved
Hide resolved
Description: "This resource manages BGP dynamic neighbor ranges for an Equinix Metal VRF", | ||
MarkdownDescription: "This resource manages BGP dynamic neighbor ranges for an Equinix Metal VRF, but with markdown", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need better descriptions here, and we do not need MarkdownDescription
if we aren't going to include markdown; Description
feeds into the docs if MarkdownDescription
isn't specified.
f26180a
to
e22a366
Compare
e22a366
to
817a120
Compare
// TODO: should we do something with the neighbor object returned here? | ||
// For example: do we need to poll the API until neighbor.GetState() has | ||
// as particular value? | ||
_, _, err := client.VRFsApi.DeleteBgpDynamicNeighborById(ctx, data.ID.ValueString()). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like the status can be deleting
but not deleted
, which probably means we need a wait function here to poll the BgpDynamicNeighborsIdGet
endpoint until it 404s.
return | ||
} | ||
|
||
neighbor, _, err := client.VRFsApi.BgpDynamicNeighborsIdGet(ctx, data.ID.ValueString()). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to wait for a particular status here? If so, do we wait for active
or ready
? I'm assuming pending
is the initial state but I don't see a description in the spec.
b6bd796
to
d98ebfd
Compare
d98ebfd
to
e5a3cb3
Compare
e5a3cb3
to
bef5e56
Compare
|
||
# equinix_metal_vrf_bgp_dynamic_neighbor (Resource) | ||
|
||
This resource manages BGP dynamic neighbor ranges for an Equinix Metal VRF, but with markdown |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"but with markdown"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Related to this comment thread
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #746 +/- ##
==========================================
- Coverage 52.38% 52.25% -0.14%
==========================================
Files 154 154
Lines 21080 21033 -47
==========================================
- Hits 11043 10991 -52
+ Misses 9607 9602 -5
- Partials 430 440 +10 ☔ View full report in Codecov by Sentry. |
bef5e56
to
85e3d38
Compare
Relates to #697.
This adds a resource for managing VRF BGP dynamic neighbor ranges with accompanying docs. Data sources are left for future contribution.
Fixes #652.