-
Notifications
You must be signed in to change notification settings - Fork 73
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
Adding feature to top level container doesn't work #322
Comments
I think your db example is wrong. I think it is supposed to look like this?
Is that correct? |
If so, I get the following error when loading that content as s startup-db:
|
This may be the same consequence that you pointed out with CREATE. |
Some info here: https://www.rfc-editor.org/rfc/rfc7950.html#section-7.20.1
Which could indicate that clixon throwing an error is wrong, the presence should just be "ignored" |
This is correct. The expected behavior should be that foo-container should be ignored. |
Changing to enhancement: "Not supported features should be ignored, not throw errors" |
* Instead of removing YANG which is disabled by `if-feature`, replace it with an yang `anydata` node. * This means XML specified by such YANG is ignored, and it is not an error to access it * Note the similarity with `CLICON_YANG_UNKNOWN_ANYDATA`
Fixed. Please verify. |
Let's say I have the following two yang files (one has a feature and the other doesn't).
I do not add to my config file
<CLICON_FEATURE>module-foo:feature-foo</CLICON_FEATURE>
.My database looks like this
I then want to bind the database with
xmldb_put
usingOP_CREATE
but this function fails due to an unknown element from the foo module. There is no binding done prior to using this function.I think it's connected to the fact that the only info in the module is not enabled due to the feature that is not set.
P.S. We do not want to enable
CLICON_YANG_UNKNOWN_ANYDATA
to avoid problems in the future.The text was updated successfully, but these errors were encountered: