-
Notifications
You must be signed in to change notification settings - Fork 347
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: T7052: Refactor kea dhcp op-mode functions to vyos.kea #4307
Conversation
👍 |
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.
I wonder if it's a good idea to move warning text to constants, if it appears in more than one place.
Of course! I missed that part. Update coming up shortly. |
f5b23de
to
db74f89
Compare
Relocate the kea dhcp op-mode functions to kea helper functions in vyos.kea. This allows the functions to be reused by other scripts, not just op-mode wrappers. This moves the source of truth for the op-mode commands to the actual running kea instance, rather than VyOS config path. Also, apply some minor code cleanup and make some of the mappings consistent across the functions.
db74f89
to
5f06e1c
Compare
CI integration 👍 passed! Details
|
Relocate the kea dhcp op-mode functions to kea helper functions in vyos.kea. This allows the functions to be reused by other scripts, not just op-mode wrappers.
This moves the source of truth for the op-mode commands to the actual running kea instance, rather than VyOS config path.
Also, apply some minor code cleanup, rename
show_pool_statistics
toshow_server_pool_statistics
, and make some of the mappings consistent across the functions.Change summary
Types of changes
Related Task(s)
Related PR(s)
How to test / Smoketest result
Try op-mode commands:
Checklist: