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: implement the changes to enable/update the BFD config for the DirectLink gateways #3194

Merged
merged 5 commits into from
Oct 27, 2021

Conversation

ajay-malhotra1
Copy link
Contributor

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Implement the following changes for Direct Link Gateways:

  1. Allow the user to add bfd_interval and bfd_multiplier for BFD configuration
  2. Show the status, interval, multiplier and bfd status updated at for DirectLink Gateways

Output from acceptance testing:

$ make testacc TEST=./ibm TESTARGS='-run=TestAccIBMDLGateway_basic'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./ibm -v -run=TestAccIBMDLGateway_basic -timeout 700m
…
…
=== RUN   TestAccIBMDLGateway_basic
--- PASS: TestAccIBMDLGateway_basic (69.23s)
PASS
ok      github.com/IBM-Cloud/terraform-provider-ibm/ibm 70.828s
$ make testacc TEST=./ibm TESTARGS='-run=TestAccIBMDLGatewayDataSource_basic'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./ibm -v -run=TestAccIBMDLGatewayDataSource_basic -timeout 700m
…
…
=== RUN   TestAccIBMDLGatewayDataSource_basic
--- PASS: TestAccIBMDLGatewayDataSource_basic (70.46s)
PASS
ok      github.com/IBM-Cloud/terraform-provider-ibm/ibm 71.945s
$ make testacc TEST=./ibm TESTARGS='-run=TestAccIBMDLGatewaysDataSource_basic'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./ibm -v -run=TestAccIBMDLGatewaysDataSource_basic -timeout 700m
…
…
=== RUN   TestAccIBMDLGatewaysDataSource_basic
--- PASS: TestAccIBMDLGatewaysDataSource_basic (110.35s)
PASS
ok      github.com/IBM-Cloud/terraform-provider-ibm/ibm 111.912s

…irectlink gateways

* allow the user to add bfd_interval and bfd_multiplier for BFD configuration

* show the status, interval, multiplier and bfd status updated at for Directlink Gateways
},
dlBfdStatusUpdatedAt: {
Type: schema.TypeString,
Computed: true,
Copy link
Collaborator

Choose a reason for hiding this comment

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

can bfd_status_updated_at this be optional field

Copy link
Contributor Author

Choose a reason for hiding this comment

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

BFD status updated at has been created as an optional field for ibm_dl_gateway resource at L123

},
dlBfdStatus: {
Type: schema.TypeString,
Computed: true,
Copy link
Collaborator

Choose a reason for hiding this comment

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

status can be a optional field

Copy link
Contributor Author

Choose a reason for hiding this comment

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

BFD status has been created as an optional field for ibm_dl_gateway resource at L117

@@ -59,6 +59,8 @@ resource "ibm_dl_gateway" "test_dl_connect" {
Review the argument reference that you can specify for your resource.

- `authentication_key` - (Optional, String) BGP MD5 authentication key.
- `bfd_interval` - (String) Minimum interval in milliseconds at which the local routing device transmits hello packets and then expects to receive a reply from a neighbor with which it has established a BFD session.
- `bfd_multiplier` - (String) The number of hello packets not received by a neighbor that causes the originating interface to be declared down.
Copy link
Collaborator

Choose a reason for hiding this comment

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

The other two attributes bfd_status_updated_at and status one need to be added to attribute section

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added to attribute section here

@hkantare hkantare merged commit 5d6a601 into IBM-Cloud:master Oct 27, 2021
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