Bug 49913 - Subnet range is legacy
Subnet range is legacy
Status: NEW
Product: UCS
Classification: Unclassified
Component: UMC - DHCP
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on: 49919
Blocks:
  Show dependency treegraph
 
Reported: 2019-07-24 13:12 CEST by Nico Stöckigt
Modified: 2020-06-12 10:15 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 2: Improvement: Would be a product improvement
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.069
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2019071821000201
Bug group (optional):
Max CVSS v3 score:


Attachments
Convert legacy dhcp ranges to pools (575 bytes, text/plain)
2019-07-25 09:37 CEST, Philipp Hahn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nico Stöckigt univentionstaff 2019-07-24 13:12:10 CEST
DHCP Subnet range is a legacy config over-seeded by the Pools configuration which is more feature rich.
Is this setting still relevant - if not why not remove it?
At least the UMC should have a hint that explains the situation and points towards the Pool-Config
Comment 1 Philipp Hahn univentionstaff 2019-07-25 09:15:19 CEST
(In reply to Nico Stöckigt from comment #0)
> DHCP Subnet range is a legacy config over-seeded by the Pools configuration
> which is more feature rich.
> Is this setting still relevant - if not why not remove it?

Backward compatibility¹
Easier if the extra functionality of pools is not needed

¹: We would need to a script to convert those legacy setups: create a new dhcp/pool object and remove the old setting.
See attachment 10133 [details] for a script, which does not work yet due to Bug #49919 in the UDM Python API.
Here is some code to create a test environment for that script:
#!/bin/sh
lb="$(ucr get ldap/base)"
udm dhcp/service create --set service=test ; service="cn=test,$lb"
udm dhcp/subnet create --superordina "$service" --set subnet=192.0.2.0 --set subnetmask=24 --set range='192.0.2.2 192.0.2.253'
udm dhcp/shared create --superordina "$service" --set name=shared ; shared="cn=shared,$service"
udm dhcp/sharedsubnet create --superordinate "$shared" --set subnet=198.51.100.0 --set subnetmask=24 --set range='198.51.100.2 198.51.100.253'
Comment 2 Philipp Hahn univentionstaff 2019-07-25 09:37:11 CEST
Created attachment 10134 [details]
Convert legacy dhcp ranges to pools

Contains work-around for Bug #49919
Comment 3 Nico Stöckigt univentionstaff 2019-07-25 11:51:59 CEST
*PUSH*
> At least the UMC should have a hint that explains the situation and points towards the Pool-Config