-
Notifications
You must be signed in to change notification settings - Fork 72
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
Bug that happens when having the same container name in .cli file and yang file #309
Comments
I see the same text in #301? |
I cannot recreate. Maybe this was fixed by some recent bugfixes which means it may work in HEAD, or there is something in your clixon config file that is different?
I append the complete example test below.
|
After long research, I managed to pinpoint the issue that I saw on our devices. I changed the description and the name of the bug accordingly. |
This is because @ acts as a macro and expands all top-level symbols in @datamodel. |
This is a major issue for us since we relied on the previous behavior that we had in the 5.2 version. |
I think that was the same behavior before. Are you sure that this has changed? |
Yes. We had a .cli file with the same container name as in a yang file, and it worked fine in version 5.2. When we moved to 5.5 it stopped working. |
OK, will have a look on what has changed from 5.2 |
…file and yang file](clicon/clixon#309)
Fixed by patch above. |
If one has a
.cli
file with the following definitionAnd in the yang file, he has the following module
Then if
foo1
is not saved with a value in the startup db before booting the cli, then one can't setfoo1
. The following is an example.But if foo1 is set in the startup db then one can change it. For example, if
foo1
has the value ofsoo
in the startup db then one can do the followingI think that this is a bug that is caused by cligen that it doesn't know how to deal with two definitions that are mentioned in the
.cli
file and the yang file. I also know that this behavior did not happen in the 5.2 version.The text was updated successfully, but these errors were encountered: