summaryrefslogtreecommitdiff
path: root/zebra/zebra_nb.c
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2023-07-09 21:44:03 +0200
committerPhilippe Guibert <philippe.guibert@6wind.com>2023-08-10 18:13:21 +0200
commit7832bbcc30cd770e2f85b0b96fb0a4f09e29095e (patch)
tree1bb30be0c68d4804a1c951ce6078410e8ecd42b3 /zebra/zebra_nb.c
parent8291e3a3138163b169441dbb321b863cb7b6a345 (diff)
zebra, yang: add an mpls leaf to interface
The yang NB API does not handle the mpls configuration on its leaf. Add an mpls leaf to stick to the mpls configuration. - true or false to mean if config - not defined, means no config. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'zebra/zebra_nb.c')
-rw-r--r--zebra/zebra_nb.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/zebra/zebra_nb.c b/zebra/zebra_nb.c
index d94547cffc..a0ef08273c 100644
--- a/zebra/zebra_nb.c
+++ b/zebra/zebra_nb.c
@@ -339,6 +339,13 @@ const struct frr_yang_module_info frr_zebra_info = {
}
},
{
+ .xpath = "/frr-interface:lib/interface/frr-zebra:zebra/mpls",
+ .cbs = {
+ .modify = lib_interface_zebra_mpls_modify,
+ .destroy = lib_interface_zebra_mpls_destroy,
+ }
+ },
+ {
.xpath = "/frr-interface:lib/interface/frr-zebra:zebra/bandwidth",
.cbs = {
.modify = lib_interface_zebra_bandwidth_modify,