Skip to content

Commit e0f5333

Browse files
authored
[SY] Adding exceptlionList to validation exception (#10699)
#### Why I did it Adding exceptlionList to validation exception #### How I did it Check code. #### How to verify it Ran manually. - Run full config validation from a KVM - Print the thrown exception **Before** ``` Error: Data Loading Failed All Keys are not parsed in FEATURE dict_keys(['telemetry']) ``` **After** ``` Error: Data Loading Failed All Keys are not parsed in FEATURE dict_keys(['telemetry']) exceptionList:["'status'"] ``` #### Which release branch to backport (provide reason below if selected) <!-- - Note we only backport fixes to a release branch, *not* features! - Please also provide a reason for the backporting below. - e.g. - [x] 202006 --> - [ ] 201811 - [ ] 201911 - [ ] 202006 - [ ] 202012 - [ ] 202106 - [ ] 202111 #### Description for the changelog <!-- Write a short (one line) summary that describes the changes in this pull request for inclusion in the changelog: --> #### Link to config_db schema for YANG module changes <!-- Provide a link to config_db schema for the table for which YANG model is defined Link should point to correct section on https://github.com/Azure/SONiC/wiki/Configuration. --> #### A picture of a cute animal (not mandatory but encouraged)
1 parent 6e88f05 commit e0f5333

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sonic-yang-mgmt/sonic_yang_ext.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -661,8 +661,8 @@ def _xlateContainer(self, model, yang, config, table):
661661
configC.keys()), debug=syslog.LOG_ERR, doPrint=True)
662662
self.sysLog(msg="exceptionList:{}".format(exceptionList), \
663663
debug=syslog.LOG_ERR, doPrint=True)
664-
raise(Exception("All Keys are not parsed in {}\n{}".format(table, \
665-
configC.keys())))
664+
raise(Exception("All Keys are not parsed in {}\n{}\nexceptionList:{}".format(table, \
665+
configC.keys(), exceptionList)))
666666

667667
return
668668

0 commit comments

Comments
 (0)