]> git.proxmox.com Git - mirror_frr.git/commitdiff
eigrpd: Create eigrp_yang.h and move stuff around
authorDonnie Savage <diivious@hotmail.com>
Fri, 11 Dec 2020 20:27:17 +0000 (15:27 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Tue, 12 Jan 2021 12:43:32 +0000 (07:43 -0500)
Move the prototypes for eigrp_yang that are in eigrpd.h
into eigrp_yang.h.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Signed-off-by: Donnie Savage <diivious@hotmail.com>
eigrpd/eigrp_main.c
eigrpd/eigrp_yang.h [new file with mode: 0644]
eigrpd/eigrpd.h
eigrpd/subdir.am

index 77e6ee275d63ef1bd0b64d7c584a4988c172f55f..b1a6498cbcb189dc43ddf8e7b47e250e07b3d188 100644 (file)
@@ -67,6 +67,7 @@
 #include "eigrpd/eigrp_errors.h"
 #include "eigrpd/eigrp_vrf.h"
 #include "eigrpd/eigrp_cli.h"
+#include "eigrpd/eigrp_yang.h"
 //#include "eigrpd/eigrp_routemap.h"
 
 /* eigprd privileges */
diff --git a/eigrpd/eigrp_yang.h b/eigrpd/eigrp_yang.h
new file mode 100644 (file)
index 0000000..a95e531
--- /dev/null
@@ -0,0 +1,32 @@
+/*
+ * EIGRP YANG Functions.
+ * Copyright (C) 2019
+ * Authors:
+ *   Donnie Savage
+ *
+ * This file is part of FRR.
+ *
+ * FRR is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation; either version 2, or (at your option) any
+ * later version.
+ *
+ * FRR is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; see the file COPYING; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef _EIGRP_YANG_H_
+#define _EIGRP_YANG_H_
+
+/*Prototypes*/
+
+/* eigrp_northbound.c */
+extern const struct frr_yang_module_info frr_eigrpd_info;
+
+#endif /*EIGRP_YANG_H_ */
index 1eb2203d622041a8531e0b0cdd1aa9dbd1ca2a4e..01173768ba99c865f05dc1ce450c3d83499126e9 100644 (file)
@@ -76,7 +76,4 @@ extern struct eigrp *eigrp_get(uint16_t as, vrf_id_t vrf_id);
 extern struct eigrp *eigrp_lookup(vrf_id_t vrf_id);
 extern void eigrp_router_id_update(struct eigrp *eigrp);
 
-/* eigrp_northbound.c */
-extern const struct frr_yang_module_info frr_eigrpd_info;
-
 #endif /* _ZEBRA_EIGRPD_H */
index 9ad4d72d9447ff5659ff49e1137c839284226aed..65922ea3a61cc9df81c09fcfe7a5f996c367234c 100644 (file)
@@ -70,6 +70,7 @@ noinst_HEADERS += \
        eigrpd/eigrp_structs.h \
        eigrpd/eigrp_vrf.h \
        eigrpd/eigrp_vty.h \
+       eigrpd/eigrp_yang.h \
        eigrpd/eigrp_zebra.h \
        # end