clicon / clixon

YANG-based toolchain including NETCONF and RESTCONF interfaces and an interactive CLI
http://www.clicon.org/
Other
206 stars 69 forks source link

Startup and default of same object causes too-many-elements error #503

Closed olofhagsand closed 3 months ago

olofhagsand commented 4 months ago

On startup of the backend, if startup-db contains an object (eg <x>17</x>) and there is a default value for one symbol (eg <x>42</x>), then both objects will appear and cause a too-many-elements error and fail to come up. For example:

clixon_backend: 58724 <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"><rpc-error><error-type>protocol</error-type><error-tag>operation-failed</error-tag><error-app-tag>too-many-elements</error-app-tag><error-severity>error</error-severity><error-path>/myconfig</error-path></rpc-error></rpc-reply>
clixon_backend[58724]: Mar 14 16:03:54.878824: load_failsafe: 1124: Database error: Startup failed and no Failsafe database found, exiting
clixon_backend[58724]: Mar 14 16:03:54.878828: clixon_backend: 58724 Terminated retval:-1