You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[config/config_mgmt.py]: Fix dpb issue with upper case mac in (#2066)
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.
0 commit comments