]> git.proxmox.com Git - mirror_frr.git/commit - lib/yang.c
lib: make it possible to create YANG data nodes containing state data
authorRenato Westphal <renato@opensourcerouting.org>
Fri, 2 Nov 2018 23:57:20 +0000 (21:57 -0200)
committerRenato Westphal <renato@opensourcerouting.org>
Mon, 26 Nov 2018 19:35:58 +0000 (17:35 -0200)
commit5e02643a64fb6aaaf95f6f9049020f392b5563d5
treedfb4c936b5ed11d9cfb0f9f6e8a2daf02e41f3e5
parent80243aef050c1f882a169b402ff5c50fed63b451
lib: make it possible to create YANG data nodes containing state data

By default the data nodes created by yang_dnode_new() could contain
only configuration data (LYD_OPT_CONFIG). Add a 'config_only' option
to yang_dnode_new() so that it can create data nodes containing both
configuration and state data.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
lib/northbound.c
lib/yang.c
lib/yang.h
lib/yang_translator.c