diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2024-01-14 00:41:54 +0200 |
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2024-01-15 10:27:33 +0200 |
| commit | 10eac0a54dd943cabe43c59bce3f880b2e43b367 (patch) | |
| tree | 1eecfeb90f48427ee20ea85dcb7d06a040526264 /lib/vty.c | |
| parent | 05c6081099d1e25e35ab57efb6c2c42d76cab44c (diff) | |
lib: fix oper data leaf creation
When creating an initial tree trunk for oper data walk, if the xpath
represents a leaf, the leaf is created with an incorrect empty value.
If it doesn't actually exist in daemon's oper data, its value is not
overwritten later and an empty value is returned in the result.
For example, when requesting
`/frr-interface:lib/interface[name='eth0']/description`, the result is:
```
{
"frr-interface:lib": {
"interface": [
{
"name": "eth0",
"description": ""
}
]
}
}
```
instead of an empty JSON that it should be.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/vty.c')
0 files changed, 0 insertions, 0 deletions
