Repository navigation
[dhcp-server] Match mode address assignment test plan - #28933
Conversation
Signed-off-by: Nishant Sharma <nshntsharma86@gmail.com>
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
|
/azp run |
|
Azure Pipelines: 1 pipeline(s) were filtered out due to trigger conditions. |
There was a problem hiding this comment.
🟡 Changes recommended
C10 incorrectly expects deletion of a referenced range to skip the entire binding, contradicting the linked implementation and test that retain remaining usable pools.
1 open issue
What changed in this PR
Adds a documentation-only test plan for DHCPv4 MATCH mode, defining acceptance coverage for Circuit ID (Option 82) and Vendor Class Identifier (Option 60) matching in sonic-mgmt. Automated tests will follow separately.
Changes:
- Defines 43 scenarios covering address assignment, runtime changes, CLI validation, lease clearing, persistence, coexistence and scale.
- Specifies topology requirements, shared setup, verification and cleanup guidance.
- Links the design and implementation dependencies and proposes test module locations.
| File | Description |
|---|---|
| docs/testplan/IPv4-Match-Condition-Based-DHCP-Server-test-plan.md | Adds MATCH-mode test scenarios, expected results and testbed guidance. |
Review effort: Balanced
|
/azp run |
|
Azure Pipelines: 1 pipeline(s) were filtered out due to trigger conditions. |
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved test-plan gaps in setup, expected behavior, success criteria, and teardown can produce misleading results or leave the original configuration unrestored.
6 open issues
Restore running and saved DHCP configuration and original state · New Start with empty bindings and create range r1 · New Do not skip bindings when usable pools remain · New Use a lease duration longer than reboot recovery · New Use mode-specific binding setup for PORT and MATCH · New Require matching clients to receive offers · New
1 resolved since last review
Review effort: Balanced
Signed-off-by: Nishant Sharma <nshntsharma86@gmail.com>
2222432 to
2e6061b
Compare
|
/azp run |
|
Azure Pipelines: 1 pipeline(s) were filtered out due to trigger conditions. |
|
@nishant111 Reviewed head The updated plan addresses the earlier feedback on missing-range behavior, independent restoration of running/saved configuration and feature/relay state, runtime prerequisites, persistence lease duration, mode-specific lease-clear setup, and stress expectations requiring correct offers within five seconds. Optional coverage improvement: add scenarios for the two integration concerns identified in sonic-net/sonic-buildimage#30361:
The Azure.sonic-mgmt pipeline is skipped because no pipeline path filters matched the documentation-only change; it should not be treated as DHCP runtime evidence. |

Description of PR
Summary:
Add a test plan for IPv4 DHCP server MATCH mode, covering Circuit ID (Option 82) and Vendor Class Identifier (Option 60) matching.
The plan defines 43 scenarios covering address assignment, AND/OR matching, specificity and exhaustion, runtime configuration changes, CLI validation, lease clearing, persistence, PORT/MATCH coexistence, and scale.
This PR contains documentation only; automated tests will follow separately.
Related design and implementation:
Executing the planned tests requires an image containing the applicable model, CLI and core implementation changes.
Fixes # (issue): N/A — feature test-plan documentation.
Type of change
Documentation only
Back port request
Tracking issue/work item for backport/cherry-pick request (GitHub issue or Microsoft ADO):
Failure type:
Tested branch
Test result
Approach
What is the motivation for this PR?
Define end-to-end acceptance and regression coverage for DHCP server MATCH mode before implementing sonic-mgmt tests. The plan complements product unit tests by covering real relay behaviour, packaged Kea, SWSS/State DB synchronization, and lease deletion persistenc
How did you do it?
Reviewed the MATCH HLD, product model/CLI/core changes, and existing DHCP server tests. Organized the coverage into compact scenario tables with expected results, shared setup guidance, and topology requirements.
How did you verify/test it?
na
Any platform specific information?
na
Supported testbed topology if it's a new test case?
na
Documentation
na