Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…19546) ### Why I did it The load_mgmt_config generated lo_v6 is missing standalone entry which fail YANG validation ##### Work item tracking - Microsoft ADO **(number only)**:28665800 #### How I did it Add the standalone entry #### How to verify it Manual test in DUT Before change: ``` admin@str-msn2700a1-03:~$ sonic-cfggen -M /etc/sonic/device_desc.xml --print-data { "DEVICE_METADATA": { "localhost": { "hostname": "CPQ21-0101-0509-04T0", "hwsku": "Arista-7260CX3-D108C8" } }, "LOOPBACK_INTERFACE": { "lo_v6|2603:10d0:e:5eb::/128": {} <==== missing standalone entry which fail YANG }, "MGMT_INTERFACE": { "eth0|100.84.101.139/26": { "gwaddr": "100.84.101.129" }, "eth0|2603:10e2:f0:7478::b/64": { "gwaddr": "2603:10e2:f0:7478::1" } } } ``` After change: ``` admin@str-msn2700a1-03:~$ sonic-cfggen -M /etc/sonic/device_desc.xml --print-data { "DEVICE_METADATA": { "localhost": { "hostname": "CPQ21-0101-0509-04T0", "hwsku": "Arista-7260CX3-D108C8" } }, "LOOPBACK_INTERFACE": { "lo_v6": {}, <=== added standalone entry "lo_v6|2603:10d0:e:5eb::/128": {} }, "MGMT_INTERFACE": { "eth0|100.84.101.139/26": { "gwaddr": "100.84.101.129" }, "eth0|2603:10e2:f0:7478::b/64": { "gwaddr": "2603:10e2:f0:7478::1" } } } ``` Co-authored-by: jingwenxie <jingwenxie@microsoft.com>
- Loading branch information