[config][generic-update] Implementing patch sorting#1599
[config][generic-update] Implementing patch sorting#1599ghooo merged 4 commits intosonic-net:masterfrom
Conversation
|
This pull request introduces 10 alerts when merging ba2b1d6bf6a1ddf011327887a697d89b778e1dea into 9a88cb6 - view on LGTM.com new alerts:
|
|
This pull request introduces 10 alerts when merging 97bc24c4c75dc1b37ecf7bd9d79337c71aba7c08 into ad801bf - view on LGTM.com new alerts:
|
|
This pull request introduces 1 alert when merging d61839670813af4455476e788c10fa70280cca82 into ad801bf - view on LGTM.com new alerts:
|
2cad759 to
c20679f
Compare
There was a problem hiding this comment.
Remove unused code or comments. #Closed
There was a problem hiding this comment.
remove unused code. #Closed
generic_config_updater/gu_common.py
Outdated
There was a problem hiding this comment.
# meanings in JSON Pointer, '~' needs to be encoded as '~0' and '/'
Did you try https://pypi.org/project/jsonpointer/ ? #Closed
There was a problem hiding this comment.
still looking into this
generic_config_updater/gu_common.py
Outdated
generic_config_updater/gu_common.py
Outdated
generic_config_updater/gu_common.py
Outdated
There was a problem hiding this comment.
# It is OK to have null backlinks if there is no backlinks.
Could you create a Github issue or submit a PR if you already know how to fix? #Closed
There was a problem hiding this comment.
PR submitted: sonic-net/sonic-buildimage#7939
There was a problem hiding this comment.
NOTE: unit-tests in the current PR (patch-sorting) will fail until the PR submitted above is completed
There was a problem hiding this comment.
created PR on forked repo: sonic-net/sonic-buildimage#8187
generic_config_updater/gu_common.py
Outdated
There was a problem hiding this comment.
code removed locally
generic_config_updater/gu_common.py
Outdated
There was a problem hiding this comment.
code removed locally
generic_config_updater/gu_common.py
Outdated
There was a problem hiding this comment.
good catch, updated locally
generic_config_updater/gu_common.py
Outdated
There was a problem hiding this comment.
To get a leaf-list instance with the value 'val'
/module-name:container/leaf-list[.='val']
Source: Check examples in https://netopeer.liberouter.org/doc/libyang/master/html/howto_x_path.html
Added a comment to explain this '.' locally.
generic_config_updater/gu_common.py
Outdated
generic_config_updater/gu_common.py
Outdated
d3d04d2 to
c554f6d
Compare
|
@ghooo , please note since this pr is causing unit testing failure, it has been reverted. Please check the error here. https://dev.azure.com/mssonic/build/_build/results?buildId=29578&view=logs&j=cef3d8a9-152e-5193-620b-567dc18af272&t=359769c4-8b5e-5976-a793-85da132e0a6f&s=ff05ad62-bb9a-53b6-ce9f-72f329a63e7c please check attempt #1 |
…onic-net#1599)"" This reverts commit e6122e9.
) #### What I did Implemented [JSON Patch Ordering using YANG Models Design Doc](https://github.com/Azure/SONiC/blob/master/doc/config-generic-update-rollback/Json_Patch_Ordering_using_YANG_Models_Design.md) #### How to verify it Unit-Tests **NOTE: The code in this PR was [reverted](github.com/Azure/sonic-utilities/commit/0a145e8027380e8d4decb36bdfc647062c722612) before because of some [build issues](#1761). Build issues have been fixed [here](sonic-net/sonic-buildimage#8632). To check the original PR comments please go [here](#1599
…794) #### What I did Implemented [JSON Patch Ordering using YANG Models Design Doc](https://github.com/Azure/SONiC/blob/master/doc/config-generic-update-rollback/Json_Patch_Ordering_using_YANG_Models_Design.md) #### How to verify it Unit-Tests **NOTE: The code in this PR was [reverted](github.com/Azure/sonic-utilities/commit/0a145e8027380e8d4decb36bdfc647062c722612) before because of some [build issues](sonic-net/sonic-utilities#1761). Build issues have been fixed [here](sonic-net/sonic-buildimage#8632). To check the original PR comments please go [here](sonic-net/sonic-utilities#1599
What I did
Implemented JSON Patch Ordering using YANG Models Design Doc
How I did it
How to verify it
Unit-Tests
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)