"IP forwarding status.";
}
leaf ipv6-forwarding {
- type enumeration {
- enum unknown {
- value -1;
- description
- "Unknown state.";
- }
- enum off {
- value 0;
- description
- "IPv6 forwarding disabled.";
- }
- enum on {
- value 1;
- description
- "IPv6 forwarding enabled.";
- }
- }
- description
+ type boolean;
+ description
"IPv6 forwarding status.";
}
leaf workqueue-hold-timer {
description
"IP forwarding status.";
}
+ leaf ipv6-forwarding {
+ type boolean;
+ description
+ "IPv6 forwarding status.";
+ }
}
// End of operational / state container
}
.destroy = zebra_ipv6_forwarding_destroy,
}
},
+ {
+ .xpath = "/frr-zebra:zebra/state/ipv6-forwarding",
+ .cbs = {
+ .get_elem = zebra_ipv6_forwarding_get_elem,
+ }
+ },
{
.xpath = "/frr-zebra:zebra/workqueue-hold-timer",
.cbs = {
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);
+struct yang_data *zebra_ipv6_forwarding_get_elem(struct nb_cb_get_elem_args *args);
int zebra_zapi_packets_modify(struct nb_cb_modify_args *args);
int zebra_import_kernel_table_table_id_modify(struct nb_cb_modify_args *args);
int zebra_import_kernel_table_table_id_destroy(struct nb_cb_destroy_args *args);
{
return yang_data_new_bool(args->xpath, ipforward());
}
+
+
+/*
+ * XPath:
+ * /frr-zebra:zebra/ipv6_forwarding
+ */
+struct yang_data *zebra_ipv6_forwarding_get_elem(struct nb_cb_get_elem_args *args)
+{
+ return yang_data_new_bool(args->xpath, ipforward_ipv6());
+}