summaryrefslogtreecommitdiffstats
path: root/lib/routing_nb.c
diff options
context:
space:
mode:
authorvdhingra <vdhingra@vmware.com>2020-04-24 14:37:36 +0200
committervdhingra <vdhingra@vmware.com>2020-07-16 17:33:00 +0200
commit7441ea1afd4400ca74f97138e20e4ffb9f0b125e (patch)
tree7a4f91765c724729ac62921bed78a6c87c5f7144 /lib/routing_nb.c
parentlib : Yang wrappers (diff)
downloadfrr-7441ea1afd4400ca74f97138e20e4ffb9f0b125e.tar.xz
frr-7441ea1afd4400ca74f97138e20e4ffb9f0b125e.zip
lib : basic-routing backend configuration northbound code
Signed-off-by: VishalDhingra <vdhingra@vmware.com>
Diffstat (limited to 'lib/routing_nb.c')
-rw-r--r--lib/routing_nb.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/routing_nb.c b/lib/routing_nb.c
new file mode 100644
index 000000000..7a6754baa
--- /dev/null
+++ b/lib/routing_nb.c
@@ -0,0 +1,22 @@
+#include "northbound.h"
+#include "libfrr.h"
+#include "routing_nb.h"
+
+
+
+/* clang-format off */
+const struct frr_yang_module_info frr_routing_info = {
+ .name = "frr-routing",
+ .nodes = {
+ {
+ .xpath = "/frr-routing:routing/control-plane-protocols/control-plane-protocol",
+ .cbs = {
+ .create = routing_control_plane_protocols_control_plane_protocol_create,
+ .destroy = routing_control_plane_protocols_control_plane_protocol_destroy,
+ }
+ },
+ {
+ .xpath = NULL,
+ },
+ }
+};