Skip to content

Conversation

@gottliebjo
Copy link

@gottliebjo gottliebjo commented Jan 8, 2026

Add the optional bool flag "dynamic_routes" to the routing_table resource.

Description

Checklist

  • Issue was linked above
  • Code format was applied: make fmt
  • Examples were added / adjusted (see examples/ directory)
  • Docs are up-to-date: make generate-docs (will be checked by CI)
  • Unit tests got implemented or updated
  • Acceptance tests got implemented or updated (see e.g. here)
  • Unit tests are passing: make test (will be checked by CI)
  • No linter issues: make lint (will be checked by CI)

Add the optional bool flag "dynamic_routes" to the routing_table resource.
@gottliebjo gottliebjo requested a review from a team as a code owner January 8, 2026 11:29
@gottliebjo gottliebjo force-pushed the feat/add-dynamic-routes-to-RTs branch from bf34b1c to 16c916a Compare January 8, 2026 11:33
marceljk
marceljk previously approved these changes Jan 9, 2026
resource.TestCheckResourceAttr("data.stackit_routing_table.routing_table", "region", testutil.Region),
resource.TestCheckNoResourceAttr("data.stackit_routing_table.routing_table", "description"),
resource.TestCheckResourceAttr("data.stackit_routing_table.routing_table", "system_routes", "true"),
resource.TestCheckResourceAttr("stackit_routing_table.routing_table", "dynamic_routes", "true"),
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
resource.TestCheckResourceAttr("stackit_routing_table.routing_table", "dynamic_routes", "true"),
resource.TestCheckResourceAttr("data.stackit_routing_table.routing_table", "dynamic_routes", "true"),

I guess you want to test the datasource here? Currently you're testing the resource 😄

Copy link
Author

Choose a reason for hiding this comment

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

Yes, fixed

"dynamic_routes": schema.BoolAttribute{
Description: "This controls whether dynamic routes are propagated to this routing table",
Optional: true,
Computed: true,
Copy link
Member

Choose a reason for hiding this comment

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

Why is it marked as computed? 😅

Copy link
Author

Choose a reason for hiding this comment

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

If you do not provide a value it is provided by the provider. Same as with system_routes where it is handled the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants