Skip to content

Resource bd dhcp policy (DCNE-1022) - #581

Merged
samiib merged 10 commits into
CiscoDevNet:developfrom
akinross:resource_bd_dhcp_policy
Nov 26, 2026
Merged

samiib merged 10 commits into
CiscoDevNet:developfrom
akinross:resource_bd_dhcp_policy

Conversation

@akinross

@akinross akinross commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Test pass on all instances in CI

DCNE-1022

=== RUN   TestAccMSOSchemaTemplateBdDHCPPolicyDataSource
Test: Schema Template BD DHCP Policy Data Source - Not Found
Test: Schema Template BD DHCP Policy Data Source
Test: Find a standalone DHCP policy by UUID
--- PASS: TestAccMSOSchemaTemplateBdDHCPPolicyDataSource (26.83s)
=== RUN   TestAccMSOSchemaTemplateBdDataSource
Test: Schema Template BD Data Source - Not Found
Test: Schema Template BD Data Source
Test: Read inline DHCP policy UUIDs from the Bridge Domain data source
--- PASS: TestAccMSOSchemaTemplateBdDataSource (18.87s)
=== RUN   TestAccMSOSchemaTemplateBdDHCPPolicyResource
Test: Reject a standalone DHCP association with both relay identifiers
Test: Require a standalone DHCP association relay identifier
Test: Reject both DHCP Option Policy identifiers
Test: Create a standalone DHCP policy with an option policy
Test: Change the DHCP Option Policy association and detect external changes
Test: Add a second standalone DHCP policy without an option policy
Test: Detect an externally removed standalone DHCP policy association
Test: Recreate an externally removed standalone DHCP policy association
Test: Update the first standalone DHCP policy to remove its option policy
Test: Verify standalone DHCP policies leave the unconfigured BD unchanged
Test: Plan with one DHCP policy inline and another standalone
Test: Import standalone DHCP policy
Test: Delete one standalone DHCP policy and retain its sibling
Test: Verify the remaining standalone DHCP policy has no diff
Test: Create standalone DHCP associations using UUID inputs
Test: Update the DHCP Option Policy using its UUID
Test: Verify UUID-managed DHCP associations have no diff
--- PASS: TestAccMSOSchemaTemplateBdDHCPPolicyResource (104.92s)
=== RUN   TestAccMSOSchemaTemplateBdResource
Test: Create Schema Template BD
Test: Update Schema Template BD layer2_unknown_unicast to proxy
Test: Update Schema Template BD description and enable layer3_multicast
Test: Update Schema Template BD flooding fields
Test: Update Schema Template BD remaining attributes
Test: Update Schema Template BD by removing description and virtual_mac_address
Test: Import BD
Test: Recreate BD after manual deletion from NDO
Test: Add subnet child to BD
Test: Update BD description with children present
Test: Remove children from BD
Test: Add one DHCP policy to BD
Test: Update BD to two DHCP policies
Test: Update BD back to one DHCP policy
Test: Remove all DHCP policies from BD
--- PASS: TestAccMSOSchemaTemplateBdResource (68.67s)
=== RUN   TestAccMSOSchemaTemplateBdDHCPPoliciesUUID
Test: Require an identifier for each inline DHCP policy
Test: Reject both inline DHCP Relay Policy identifiers
Test: Reject both inline DHCP Option Policy identifiers
Test: Configure inline DHCP associations using UUID inputs
Test: Update inline DHCP Option Policy using its UUID
Test: Verify inline UUID-managed DHCP policies have no diff
--- PASS: TestAccMSOSchemaTemplateBdDHCPPoliciesUUID (20.92s)
PASS
ok  	github.com/CiscoDevNet/terraform-provider-mso/mso	240.231s

@akinross akinross self-assigned this Nov 23, 2026
@akinross akinross added enhancement New feature or request customer_request labels Nov 23, 2026
@akinross
akinross force-pushed the resource_bd_dhcp_policy branch from f6bcf2a to ede9583 Compare November 23, 2026 17:42
@akinross
akinross force-pushed the resource_bd_dhcp_policy branch 2 times, most recently from 4ff2b5f to 08af9f0 Compare November 23, 2026 21:23
@akinross
akinross force-pushed the resource_bd_dhcp_policy branch from 08af9f0 to 0890bd6 Compare November 23, 2026 22:35
@akinross
akinross marked this pull request as ready for review November 24, 2026 08:51
@akinross akinross linked an issue Nov 24, 2026 that may be closed by this pull request
@akinross akinross changed the title Resource bd dhcp policy Resource bd dhcp policy (DCNE-1022) Nov 24, 2026
@akinross
akinross requested a review from sajagana November 24, 2026 16:05
sajagana
sajagana previously approved these changes Nov 24, 2026

@sajagana sajagana left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM!

Comment thread mso/resource_mso_schema_template_bd.go Resolved
@akinross
akinross force-pushed the resource_bd_dhcp_policy branch from cc3eafd to e8974fd Compare November 26, 2026 06:43
@akinross
akinross requested a review from samiib November 26, 2026 06:44

@sajagana sajagana left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM!

@samiib samiib left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@samiib
samiib merged commit dbbfc58 into CiscoDevNet:develop Nov 26, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

customer_request enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Schema Bridge Domain Dhcp Relay Policy new resource (DCNE-1022)

3 participants