Skip to content

Commit aeda86a

Browse files
authored
Record and warn tables which not covered by YANG (sonic-net#3583)
What I did Sent a warn syslog if there are tables not covered by yang. How I did it Sent a warn syslog if there are tables not covered by yang. How to verify it Manual test
1 parent dd34d7c commit aeda86a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

config/main.py

+3
Original file line numberDiff line numberDiff line change
@@ -2323,6 +2323,9 @@ def validate_config_by_cm_alerting(cm, config_json, jname):
23232323
except Exception as ex:
23242324
log.log_warning("Failed to validate {}. Alerting: {}".format(jname, ex))
23252325

2326+
if len(cm.tablesWithOutYang()):
2327+
log.log_warning("YANG failed to cover tables: {}.".format(str(cm.tablesWithOutYang)))
2328+
23262329

23272330
def override_config_db(config_db, config_input):
23282331
# Deserialized golden config to DB recognized format

0 commit comments

Comments
 (0)