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

quattor/functions/network get_subnet_params: allow to return subnet #237

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

jouvin
Copy link
Contributor

@jouvin jouvin commented Dec 8, 2024

By default, get_subnet_params() return value is compatible with the interface schema (/system/network/interfaces). Thus the subnet parameter which is part of the get_subnet_params() input is removed. Sometimes, it may be desirable to get it returned. To make it possible, a third optional argument has been added (boolean). When true, the subnet is return. Default is unchanged (subnet not returned to be compatible with the interface schema).

@jouvin jouvin added this to the 25.next milestone Dec 8, 2024
@jouvin jouvin requested a review from jrha December 8, 2024 14:28
@jouvin jouvin force-pushed the functions_network_get_subnet_params_3args branch from 7db5000 to 3a15f56 Compare December 8, 2024 14:29
@jouvin
Copy link
Contributor Author

jouvin commented Dec 8, 2024

test-library error is due to the master branch renaming... I need to fix get_template_library.

- Third argument added (boolean): default unchanged (subnet not returned to be compatible with
  the interface schema)
@jouvin jouvin force-pushed the functions_network_get_subnet_params_3args branch from 3a15f56 to ecdcc35 Compare December 11, 2024 14:23
@jouvin
Copy link
Contributor Author

jouvin commented Dec 11, 2024

I need to fix the problem with test-library. Part of the problems where related to the fact that the default OS version was still SL6.4, so removing them caused errors. The obvious fix is to update the default version and/or define an explicit version for all test nodes.

Another issue is related to quattor/configuration-modules-core#1787. For some reasons, it seems there is no systemd unit defined in some profiles which looks strange and probably hides another issue.

@jouvin
Copy link
Contributor Author

jouvin commented Dec 11, 2024

See quattor/template-library-examples#42 for the details on the errors here. In summary:

@jrha jrha merged commit 5f34fc4 into quattor:main Dec 17, 2024
3 of 4 checks passed
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.

2 participants