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

KEA: custom DNS for reservation #7310 - basic GUI and conf implementa… #7564

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Reiner030
Copy link

…tion.

First implementation try for #7310

NOT FOR PRODUCTION USAGE yet.

Basic GUI / conf implementation works "as usual" ... with several "copied" bugs where I am wondering where QA/community checks were failing to find this basic misbehavior yet since months:

  • if you copy entry similar to subnet definition with "Auto collect option data" unchecked
    the content of ALL option_data is GONE after save
  • if you check again "Auto collect option data" then you got still the option_data entries set previously
    (this commit can be yet the only "stable" one)

I was wondering why in subnet4 a dedicated "data-option" array was setup.
Especially for "plain" CSV export/import and also "array dump to json" it doesn't make much sense.
But maybe it's a workaround for the "not nested arrays implemented" code checks in which I trapped while trying to implement export/import CSV enhancments for reservations.

The import and exports handles modifies basic model templates so it must be used very carefully/checked against all other usages of this models. But I am not a PHP dev but more administrator with basic programming skills... ^^

Reiner030 added 3 commits June 27, 2024 16:26
…lementation.

Problem: neither is_array() nor is_iterable() which seems to be the right
function call recognises the itarable $node content.

Additional this is implemented in Base models so it has to be proofed to
be interoperable with all other model usages.
…lementation.

Problem: stream import is done correctly with all variables.
But in validation step the new variables were thrown out
and I have no clue where to add them as "valid".

Additional this is implemented in Base model so it has to be
proofed to be interoperable with all other model usages or
rewritten to other function call.
@AdSchellevis
Copy link
Member

if you copy entry similar to subnet definition with "Auto collect option data" unchecked
the content of ALL option_data is GONE after save

#7521

@Reiner030
Copy link
Author

Thanks for hint - wasn't checking last 3 weeks for updates of this problem.
Just tested and also works for reservations fine like for subnet4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants