diff options
Diffstat (limited to 'zebra/zebra_nb_state.c')
| -rw-r--r-- | zebra/zebra_nb_state.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/zebra/zebra_nb_state.c b/zebra/zebra_nb_state.c index a7091821b5..9b9991c182 100644 --- a/zebra/zebra_nb_state.c +++ b/zebra/zebra_nb_state.c @@ -14,6 +14,7 @@ #include "printfrr.h" #include "zebra/zebra_vxlan.h" #include "zebra/zebra_vxlan_if.h" +#include "zebra/ipforward.h" /* * XPath: /frr-interface:lib/interface/frr-zebra:zebra/state/up-count @@ -1166,3 +1167,12 @@ struct yang_data *zebra_max_multipath_get_elem(struct nb_cb_get_elem_args *args) { return yang_data_new_uint16(args->xpath, zrouter.multipath_num); } + +/* + * XPath: + * /frr-zebra:zebra/ip_forwarding + */ +struct yang_data *zebra_ip_forwarding_get_elem(struct nb_cb_get_elem_args *args) +{ + return yang_data_new_bool(args->xpath, ipforward()); +} |
