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
After building a KVM and removing the file /usr/local/yang-models/sonic-bgp-neighbor.yang, and validating config using yang-mgmt and we get an error:
sonic_yang(3):All Keys are not parsed in VLAN
dict_keys(['Vlan1000'])
sonic_yang(3):exceptionList:["'dhcpv6_servers'"]
sonic_yang(3):Data Loading Failed:All Keys are not parsed in VLAN
dict_keys(['Vlan1000'])
admin@vlab-01:~$ python3 test.py
Note: Below table(s) have no YANG models:
BGP_NEIGHBOR, BGP_PEER_RANGE, BUFFER_PG, BUFFER_POOL, BUFFER_PROFILE, BUFFER_QUEUE, CABLE_LENGTH, CONSOLE_SWITCH, DEVICE_METADATA, DEVICE_NEIGHBOR_METADATA, DHCP_RELAY, DHCP_SERVER, DSCP_TO_TC_MAP, FEATURE, KDUMP, MAP_PFC_PRIORITY_TO_QUEUE, PORT_QOS_MAP, QUEUE, RESTAPI, SCHEDULER, SNMP, SNMP_COMMUNITY, SYSLOG_SERVER, TC_TO_PRIORITY_GROUP_MAP, TC_TO_QUEUE_MAP, TELEMETRY, WRED_PROFILE,
sonic_yang(3):All Keys are not parsed in VLAN
dict_keys(['Vlan1000'])
sonic_yang(3):exceptionList:["'dhcpv6_servers'"]
sonic_yang(3):Data Loading Failed:All Keys are not parsed in VLAN
dict_keys(['Vlan1000'])
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/sonic_yang_ext.py", line 716, in loadData
self._xlateConfigDB(xlateFile=xlateFile)
File "/usr/local/lib/python3.7/dist-packages/sonic_yang_ext.py", line 432, in _xlateConfigDB
self._xlateConfigDBtoYang(jIn, yangJ)
File "/usr/local/lib/python3.7/dist-packages/sonic_yang_ext.py", line 420, in _xlateConfigDBtoYang
jIn[table], table)
File "/usr/local/lib/python3.7/dist-packages/sonic_yang_ext.py", line 400, in _xlateContainer
configC.keys())))
Exception: All Keys are not parsed in VLAN
dict_keys(['Vlan1000'])
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "test.py", line 12, in<module>
sy.loadData(configDbJson )
File "/usr/local/lib/python3.7/dist-packages/sonic_yang_ext.py", line 726, in loadData
raise SonicYangException("Data Loading Failed\n{}".format(str(e)))
sonic_yang_ext.SonicYangException: Data Loading Failed
All Keys are not parsed in VLAN
dict_keys(['Vlan1000'])```
Description
After building a KVM and removing the file
/usr/local/yang-models/sonic-bgp-neighbor.yang
, and validating config using yang-mgmt and we get an error:Steps to reproduce the issue:
sudo rm /usr/local/yang-models/sonic-bgp-neighbor.yang
Describe the results you received:
Describe the results you expected:
Successfully loading configDb into sonic_yang
Output of
show version
:The text was updated successfully, but these errors were encountered: