-
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
T6068: dhcp-server: add split option to dhcp-server configuration. #3168
Conversation
…is adds the hability to the user to specify load balancing towards dhcp servers defined in failover.
This will need to also be looked into for 1.5 or it will fail on migration. |
<constraint> | ||
<validator name="numeric" argument="--range 0-256"/> | ||
</constraint> | ||
</properties> |
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.
Any reason to not use <defaultValue>128</defaultValue>
?
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.
As I understand In the "secondary" node shouldn't be any split
option
That's why we cannot use default
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.
Yes I've seen this. We have a lot of other places where default values are only set if certain preconditions match. It's a bit more complicated but then we have a non disconnect between XML (help) and CLI/implementation.
Inspiration:
# git grep "del default_values"
src/conf_mode/pki.py: del default_values['certificate'][name]['acme']
src/conf_mode/protocols_ospf.py: del default_values['default_information']
src/conf_mode/protocols_ospf.py: del default_values['mpls_te']
src/conf_mode/protocols_ospf.py: del default_values['graceful_restart']
src/conf_mode/protocols_ospf.py: del default_values['area'][area_num]['area_type']['nssa']
src/conf_mode/protocols_ospf.py: del default_values['redistribute'][protocol]
src/conf_mode/protocols_ospf.py: del default_values['redistribute']
src/conf_mode/protocols_ospf.py: del default_values['interface'][interface]['dead_interval']
src/conf_mode/protocols_ospfv3.py: del default_values['default_information']
src/conf_mode/protocols_ospfv3.py: del default_values['graceful_restart']
src/conf_mode/protocols_ospfv3.py: del default_values['redistribute'][protocol]
src/conf_mode/protocols_ospfv3.py: del default_values['redistribute']
src/conf_mode/protocols_pim.py: del default_values['interface'][interface]['igmp']
src/conf_mode/service_https.py: del default_values['api']
src/conf_mode/system_flow-accounting.py: del default_values[flow_type]
I'm closing this PR. |
Change Summary
Add split option to dhcp-server configuration.This adds the hability to the user to specify load balancing towards dhcp servers defined in failover.
Types of changes
Related Task(s)
https://vyos.dev/T6068
Related PR(s)
Component(s) name
dhcp-server
Proposed changes
How to test
Config
Config file:
And error check if setting it to server
secondary
dhcp-server:Smoketest result
Checklist: