diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2022-02-16 23:28:37 -0300 |
|---|---|---|
| committer | Rafael F. Zalamena <rzalamena@opensourcerouting.org> | 2022-03-02 16:32:05 -0300 |
| commit | 9b40fa1eae24b8aadac141f65ee025198018d00b (patch) | |
| tree | 29aa3f5f1116575c8aa76f044cf0488e48bdc59a /lib/northbound_cli.c | |
| parent | 852dfb3013cb122567834c77796921f0e0643107 (diff) | |
lib: fix iteration over YANG presence containers
State-only and configuration presence-containers need to be treated
differently when iterating over YANG operational data. Currently the
get_elem() callback is used to know when a state-only p-container
exists or not, and configuration p-containers are assumed to always
exist, which is clearly wrong. Fix this by checking the running
configuration to know whether a rw p-container exists or not.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib/northbound_cli.c')
0 files changed, 0 insertions, 0 deletions
