-
Notifications
You must be signed in to change notification settings - Fork 56
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
ncm-network: nmstate - add additional route rule parameters #1659
Conversation
@jrha created this for discussion on if there will a way to create sperate schemas for nmstate only options. something to think about. as discussed before. this isnt urgent but at some point we may need to create unreachable routes and only way to do this with nmstate is through route-rules. |
f47225c
to
1450ec3
Compare
I'll try and do some testing to establish a way of making the schema modular, but otherwise having these options as a separate |
1450ec3
to
b5de236
Compare
@aka7 I've had a look at how to deal with the schema and it's probably easiest for me to open a PR against your branch. |
@jrha @aka7 let me know about the PR. but should be something like in the profile:
you should be able to do this for at least all el9 hosts. once you did this, you can start to customise the backend schemas:
and in the nmstate backend https://github.com/quattor/configuration-modules-core/blob/master/ncm-network/src/main/pan/components/network/types/network/backend/nmstate.pan you define what you want
these special backend templates are included very early in https://github.com/quattor/configuration-modules-core/blob/master/ncm-network/src/main/pan/components/network/types/network.pan (this is used insetad of the core-legacy schema if you set the previous variables). then eg in the "shared" route schema https://github.com/quattor/configuration-modules-core/blob/master/ncm-network/src/main/pan/components/network/types/network/route.pan you add it like
and now the nmstate profiles will have support for the woohoo attribute make sure you have a very unique type name for the type you want to include. the should not have the backend in it (even if it is only implemented for a single backend). (anyway, untested ;) |
Schema migration in #1720. |
b5de236
to
554c477
Compare
Rebased and updated to use new schema. |
12deca5
to
fd12f22
Compare
ncm-network/src/main/pan/components/network/types/network/backend/nmstate.pan
Outdated
Show resolved
Hide resolved
thank you so much @jrha , LGTM |
1b2eedd
to
e0aa8c4
Compare
- provide additional route rule parameters for nmstate config as defined in https://nmstate.io/devel/yaml_api.html#routes
@aka7 I've locked down the types as per my previous comments, if it all makes sense then I'm happy to try and also get this into 24.10. |
provide additional route rule parameters for nmstate config as defined in https://nmstate.io/devel/yaml_api.html#routes
allow creation of route rules with all options.
none.