[sonic-cfggen]: Feature should use 'state' to replace 'status' (#9796)

Why I did it
ConfigDB schema generated by minigraph parser can't pass yang validation.

How I did it
Modify minigraph.py, and use 'state' to replace 'status'.

How to verify it
Run UT for sonic-config-engine.
Use minigraph parser to generate ConfigDB schema, and run yang validation.

Signed-off-by: Gang Lv ganglv@microsoft.com
This commit is contained in:
ganglv 2022-01-20 08:51:56 +08:00 committed by GitHub
parent dde5f37496
commit d3c39d5324
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1624,7 +1624,7 @@ def parse_xml(filename, platform=None, port_config_file=None, asic_name=None, hw
results['ACL_TABLE'] = filter_acl_table_bindings(acls, neighbors, pcs, sub_role) results['ACL_TABLE'] = filter_acl_table_bindings(acls, neighbors, pcs, sub_role)
results['FEATURE'] = { results['FEATURE'] = {
'telemetry': { 'telemetry': {
'status': 'enabled' 'state': 'enabled'
} }
} }
results['TELEMETRY'] = { results['TELEMETRY'] = {