config false;
description
"Operational data.";
+ leaf ip-forwarding {
+ type boolean;
+ description
+ "IP forwarding status.";
+ }
}
// End of operational / state container
}
.destroy = zebra_ip_forwarding_destroy,
}
},
+ {
+ .xpath = "/frr-zebra:zebra/state/ip-forwarding",
+ .cbs = {
+ .get_elem = zebra_ip_forwarding_get_elem,
+ }
+ },
{
.xpath = "/frr-zebra:zebra/ipv6-forwarding",
.cbs = {
int zebra_mcast_rpf_lookup_modify(struct nb_cb_modify_args *args);
int zebra_ip_forwarding_modify(struct nb_cb_modify_args *args);
int zebra_ip_forwarding_destroy(struct nb_cb_destroy_args *args);
+struct yang_data *zebra_ip_forwarding_get_elem(struct nb_cb_get_elem_args *args);
int zebra_ipv6_forwarding_modify(struct nb_cb_modify_args *args);
int zebra_ipv6_forwarding_destroy(struct nb_cb_destroy_args *args);
int zebra_workqueue_hold_timer_modify(struct nb_cb_modify_args *args);
#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
{
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());
+}