-
Notifications
You must be signed in to change notification settings - Fork 674
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
Adding new resources to support BGP Route Filters in direct link gateway #4294
Conversation
…dified existing direct link gateway to add BGP Route filter
…dified existing direct link gateway to add BGP Route filter
…dified existing direct link gateway to add BGP Route filter
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.
Please also add "specific_prefixes" in example. prefix may become deprecated.
ibm/service/directlink/data_source_ibm_dl_export_route_filter.go
Outdated
Show resolved
Hide resolved
cisDomainSettingsSecurityHeaderPreload: { | ||
Type: schema.TypeBool, | ||
Description: "security header preload", | ||
Required: true, |
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.
This will be breaking change we can't include Required directly mark it as optional
…way (IBM-Cloud#4294) * Added new data blocks to support Direct Link BGP Route filters and modified existing direct link gateway to add BGP Route filter * Added new data blocks to support Direct Link BGP Route filters and modified existing direct link gateway to add BGP Route filter * Added new data blocks to support Direct Link BGP Route filters and modified existing direct link gateway to add BGP Route filter * addressed reveiw comments * addressed review comments * Fixed review comments * addressed review comments * addressed review comments * addressed review comments --------- Co-authored-by: sushmitha M <sushmitham@sushmithas-MacBook-Pro.local>
TC-After-Comments-Fix.pdf
Description of the Changes
As part of the addition of the BGP Route Filter to the direct link, do support the terraform to add the export/import filter to the direct link gateway.
As part of this implementation, we have modified the existing direct link gateway resource block used to create a direct link.
And added 4 new data blocks to read all export/import route filters and to read the given export/import filter.
And addressed the delta changes with respect to terraform and API Spec, As part of these changes, below attributes are added to the gateway creation resources ( ibm_dl_gateway )and respected data blocks.(ibm_dl_gateways & ibm_dl_gateway)
Reference API Spec
APISpec
Modified the resources
Modified the data blocks
New datasources
Output from acceptance testing:
Test Result
Sample_terrafrom.txt
TEstResult-BGPRouteFilters.pdf
TR-New-att-GW.pdf
Changes with respect to CIS
Added Preload option to Security Headers of Zone Settings for CIS.
"preload": Whether or not to permit browsers to preload security_header config.
CLI documentation for the same -https://cloud.ibm.com/docs/cli?topic=cli-cis-cli#update-domain-settings
Output from acceptance testing:
arpit-mac@Arpits-MacBook-Pro terraform-provider-ibm % make testacc TEST=./ibm/service/cis TESTARGS='-run=TestAccIBMCisSettings_Basic'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./ibm/service/cis -v -run=TestAccIBMCisSettings_Basic -timeout 700m
=== RUN TestAccIBMCisSettings_Basic
--- PASS: TestAccIBMCisSettings_Basic (1.603s)
PASS
ok github.com/IBM-Cloud/terraform-provider-ibm/ibm/service/cis 1.603s