-
Notifications
You must be signed in to change notification settings - Fork 668
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
[GCU] apply-patch failed to get token from 'using' group #2041
Comments
4 tasks
ghooo
added a commit
that referenced
this issue
Feb 23, 2022
#### What I did Fixes #2041 Supporting groupings during `config-db path` <-> `config-yang xpath` translation This mimics the `config-db` <-> `config-yang` translation as added by sonic-net/sonic-buildimage#8318 #### How I did it Handled groupings of leaf commands only as that's what is supported in sonic-yang-mgmt #### How to verify it unit-test #### Previous command output (if the output of a command-line utility has changed) #### New command output (if the output of a command-line utility has changed)
stepanblyschak
pushed a commit
to stepanblyschak/sonic-utilities
that referenced
this issue
Apr 18, 2022
includes: 320591a [DualToR] Handle race condition between tunnel_decap and mux orchestrator (sonic-net#2114) 5027a8f Handling Invalid CRM configuration gracefully (sonic-net#2109) 0b120fa [ci]: use native arm64 and armhf pool (sonic-net#2013) 394e88a Don't handle buffer pool watermark during warm reboot reconciling (sonic-net#1987) 9008a01 patch for issue sonic-net#1971 - enable Rx Drop handling for cisco-8000 (sonic-net#2041) 2723ee3 create debug_shell_enable config to enable debug shell (sonic-net#2060) d7be0b9 [request parser] Add unit tests for request parser for multiple values (sonic-net#1766)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
When
apply-patch
a json file which yang has grouping member, the method cannot grab token.Steps to reproduce the issue
https://github.com/Azure/sonic-buildimage/blob/master/src/sonic-yang-models/yang-models/sonic-bgp-monitor.yang#L43
raise ValueError("Token not found model {} token_index {} path_tokens {}".format(model, token_index, path_tokens))
The token is only got from
leaf
not fromusing
Describe the results you received
See above.
Describe the results you expected
Fix in two ways:
using
keyword in yang model.Additional information you deem important (e.g. issue happens only occasionally)
Output of
show version
The text was updated successfully, but these errors were encountered: