-
Notifications
You must be signed in to change notification settings - Fork 672
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
[config/config_mgmt.py]: Fix dpb issue with upper case mac in device_metadata. #2066
Conversation
9768648
to
8fcfda7
Compare
Look like a issue while running VS test in Pipeline. Any POC who can help to resolve it.
|
/azpw run Azure.sonic-utilities |
/AzurePipelines run Azure.sonic-utilities |
Azure Pipelines successfully started running 1 pipeline(s). |
Had a look at test failures, the test are not DPB related. Need to re-run Pipeline. |
/azpw run Azure.sonic-utilities |
/AzurePipelines run Azure.sonic-utilities |
Azure Pipelines successfully started running 1 pipeline(s). |
/azpw run Azure.sonic-utilities |
/AzurePipelines run Azure.sonic-utilities |
Azure Pipelines successfully started running 1 pipeline(s). |
@qiluo-msft Can you please review these changes? |
@praveen-li Can you please sync to the latest master? The vs-tests shouldn't run there and it should unblock this PR |
Need @praveen-li help to fix the build failure. |
/azpw run Azure.sonic-utilities |
/AzurePipelines run Azure.sonic-utilities |
Azure Pipelines successfully started running 1 pipeline(s). |
@praveen-li Can you please sync to latest sonic-utilities? The pipeline will not have vstests |
device_metadata. libYang converts ietf yang types to lower case internally,which creates false config diff for us while DPB. This PR fixes the issue by not precessing false diff. Related issue" sonic-net/sonic-buildimage#9478 Signed-off-by: Praveen Chaudhary <[email protected]>
8fcfda7
to
53b19bd
Compare
@qiluo-msft The pipelines pass now. Can you please help in merging this? |
Did this PR fix "Related issue"? |
Yes it did |
device_metadata. libYang converts ietf yang types to lower case internally,which creates false config diff for us while DPB. This PR fixes the issue by not precessing false diff. Related issue" sonic-net/sonic-buildimage#9478 #### What I did fixes issue: sonic-net/sonic-buildimage#9478 #### How I did it libYang converts ietf yang types to lower case internally,which creates false config diff for us while DPB. Example: For DEVICE_METADATA['localhost']['mac'] type is yang:mac-address. Libyang converts from 'XX:XX:XX:E4:B3:DD' -> 'xx:xx:xx:e4:b3:dd' so args for function _recurCreateConfig in this case will be: diff = DEVICE_METADATA['localhost']['mac'] where DEVICE_METADATA': {'localhost': {'mac': ['XX:XX:XX:E4:B3:DD', 'xx:xx:xx:e4:b3:dd']}}} Note: above dict is representation of diff in config given by diffJson library. out = 'XX:XX:XX:e4:b3:dd' inp = 'xx:xx:xx:E4:B3:DD' I add a check to avoid processing of such config diff for DPB. #### How to verify it Added a unit test. Build time.
libYang converts ietf yang types to lower case internally,which
creates false config diff for us while DPB.
This PR fixes the issue by not precessing false diff.
Related issue"
sonic-net/sonic-buildimage#9478
Signed-off-by: Praveen Chaudhary [email protected]
What I did
fixes issue: sonic-net/sonic-buildimage#9478
How I did it
How to verify it
Added a unit test. Build time.
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)