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

dhcp: T5846: Refactor and simplify DUID definition #2664

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

indrajitr
Copy link
Contributor

@indrajitr indrajitr commented Dec 20, 2023

Change Summary

Refactor DUID XML definition in conf-mode to be reusable. Additionally, remove explicit call to a separate validator ipv6-duid and inline the regex into the XML definition.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Migration from an old Vyatta component to vyos-1x, please link to related PR inside obsoleted component
  • Other (please describe):

Related Task(s)

Related PR(s)

dhcp client/server

Component(s) name

Proposed changes

How to test

Smoketest result

Checklist:

  • I have read the CONTRIBUTING document
  • I have linked this PR to one or more Phabricator Task(s)
  • I have run the components SMOKETESTS if applicable
  • My commit headlines contain a valid Task id
  • My change requires a change to the documentation
  • I have updated the documentation accordingly

@vyosbot vyosbot requested review from a team, dmbaturin, sarthurdev, zdc, jestabro, sever-sever and c-po and removed request for a team December 20, 2023 21:56
<!-- include start from interface/duid.xml.i -->
<leafNode name="duid">
<properties>
<help>DHCP unique identifier (DUID) to be sent by DHCP client</help>
Copy link
Member

Choose a reason for hiding this comment

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

DHCP unique identifier (DUID) to be sent by client second DHCP word is redundant.

interface-definitions/include/interface/duid.xml.i Outdated Show resolved Hide resolved
interface-definitions/include/interface/duid.xml.i Outdated Show resolved Hide resolved
Refactor DUID XML definition in conf-mode to be reusable. Additionally, remove
explicit call to a separate validator `ipv6-duid` and inline the regex into the
XML definition.
@c-po c-po merged commit ea2e81e into vyos:current Dec 21, 2023
5 checks passed
@c-po
Copy link
Member

c-po commented Dec 21, 2023

@Mergifyio backport sagitta

Copy link
Contributor

mergify bot commented Dec 21, 2023

backport sagitta

✅ Backports have been created

@indrajitr indrajitr mentioned this pull request Dec 21, 2023
12 tasks
c-po added a commit that referenced this pull request Dec 21, 2023
dhcp: T5846: Refactor and simplify DUID definition (backport #2664)
@indrajitr indrajitr deleted the duid-refactor-T5846 branch December 27, 2023 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants