-
Notifications
You must be signed in to change notification settings - Fork 17
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
aii-dhcp: support optional hostname ip verification #299
base: master
Are you sure you want to change the base?
Conversation
@@ -20,4 +20,6 @@ type structure_dhcp_dhcp_info = { | |||
the value you specify in templates. | |||
} | |||
"options" ? string{} | |||
@{Verify hostname in DNS} | |||
"verifyhostname" ? boolean |
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 think this should be choice("yes", "no", "strict")
instead of a boolean, where strict
would cause the component to fail if gethostbyname()
below fails. Usually, not having a hard dependency on DNS being up-to-date is good, but I can think of a few use cases where it would be useful if AII could send the message: You need to wait for DNS to get updated, because otherwise the build will fail later anyway
.
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.
@stdweird any thoughts?
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.
wow, this is long time ago.
sure, but perhaps then choice("yes", "no", "warning")
or something. or check_only
instead of warning
.
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.
Yeah too long ago really, sorry 😞
My vote is for "warn".
9b1fa8c
to
b94cb6d
Compare
b94cb6d
to
8d55082
Compare
Add tests, adapted from aii-core. Replace bare open() with CAF::FileReader to make the tests work. Include some improvements which accumulated on our side.
8d55082
to
8d90658
Compare
Includes #296, based on #280