diff options
| author | Donna Sharp <dksharp5@gmail.com> | 2025-02-24 16:04:56 -0500 |
|---|---|---|
| committer | Donna Sharp <dksharp5@gmail.com> | 2025-03-01 14:39:07 -0500 |
| commit | 453154497e0944e8bfbc7cdcc62931bcfa0d8b0c (patch) | |
| tree | b460f3e4b2709e95ec2ba445da4fa6217326eecb /zebra/zebra_nb.c | |
| parent | 311bd23ccbf79fa671f1979b26ec8059cbe87e85 (diff) | |
zebra: allow retrieval of ip forwarding state
There was no ability to retrieve the ip-forwarding state
of zebra. Add this to yang under the state container.
Signed-off-by: Donna Sharp <dksharp5@gmail.com>
Diffstat (limited to 'zebra/zebra_nb.c')
| -rw-r--r-- | zebra/zebra_nb.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/zebra/zebra_nb.c b/zebra/zebra_nb.c index 81fe2ab6a0..83d89fa7b7 100644 --- a/zebra/zebra_nb.c +++ b/zebra/zebra_nb.c @@ -39,6 +39,12 @@ const struct frr_yang_module_info frr_zebra_info = { } }, { + .xpath = "/frr-zebra:zebra/state/ip-forwarding", + .cbs = { + .get_elem = zebra_ip_forwarding_get_elem, + } + }, + { .xpath = "/frr-zebra:zebra/ipv6-forwarding", .cbs = { .modify = zebra_ipv6_forwarding_modify, |
