]> git.puffer.fish Git - mirror/frr.git/commitdiff
eigrpd: Create eigrp_cli.h and move forward declarations
authorDonnie Savage <diivious@hotmail.com>
Fri, 11 Dec 2020 20:24:02 +0000 (15:24 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Tue, 12 Jan 2021 12:43:32 +0000 (07:43 -0500)
Move the forward declarations for eigrp_cli.c from eigrpd.h
into eigrp_cli.h.

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

index 3610b3a869803dae2a9c84ed44ab538a13738d2d..00d8ea8867284b2161c7bb618557e32fd2dff7ce 100644 (file)
@@ -29,6 +29,7 @@
 #include "eigrp_structs.h"
 #include "eigrpd.h"
 #include "eigrp_zebra.h"
+#include "eigrp_cli.h"
 
 #ifndef VTYSH_EXTRACT_PL
 #include "eigrpd/eigrp_cli_clippy.c"
diff --git a/eigrpd/eigrp_cli.h b/eigrpd/eigrp_cli.h
new file mode 100644 (file)
index 0000000..c5f2fd8
--- /dev/null
@@ -0,0 +1,70 @@
+/*
+ * EIGRP CLI 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_CLI_H_
+#define _EIGRP_CLI_H_
+
+/*Prototypes*/
+extern void eigrp_cli_show_header(struct vty *vty, struct lyd_node *dnode,
+                                 bool show_defaults);
+extern void eigrp_cli_show_end_header(struct vty *vty, struct lyd_node *dnode);
+extern void eigrp_cli_show_router_id(struct vty *vty, struct lyd_node *dnode,
+                                    bool show_defaults);
+extern void eigrp_cli_show_passive_interface(struct vty *vty,
+                                            struct lyd_node *dnode,
+                                            bool show_defaults);
+extern void eigrp_cli_show_active_time(struct vty *vty, struct lyd_node *dnode,
+                                      bool show_defaults);
+extern void eigrp_cli_show_variance(struct vty *vty, struct lyd_node *dnode,
+                                   bool show_defaults);
+extern void eigrp_cli_show_maximum_paths(struct vty *vty,
+                                        struct lyd_node *dnode,
+                                        bool show_defaults);
+extern void eigrp_cli_show_metrics(struct vty *vty, struct lyd_node *dnode,
+                                  bool show_defaults);
+extern void eigrp_cli_show_network(struct vty *vty, struct lyd_node *dnode,
+                                  bool show_defaults);
+extern void eigrp_cli_show_neighbor(struct vty *vty, struct lyd_node *dnode,
+                                   bool show_defaults);
+extern void eigrp_cli_show_redistribute(struct vty *vty, struct lyd_node *dnode,
+                                       bool show_defaults);
+extern void eigrp_cli_show_delay(struct vty *vty, struct lyd_node *dnode,
+                                bool show_defaults);
+extern void eigrp_cli_show_bandwidth(struct vty *vty, struct lyd_node *dnode,
+                                    bool show_defaults);
+extern void eigrp_cli_show_hello_interval(struct vty *vty,
+                                         struct lyd_node *dnode,
+                                         bool show_defaults);
+extern void eigrp_cli_show_hold_time(struct vty *vty, struct lyd_node *dnode,
+                                    bool show_defaults);
+extern void eigrp_cli_show_summarize_address(struct vty *vty,
+                                            struct lyd_node *dnode,
+                                            bool show_defaults);
+extern void eigrp_cli_show_authentication(struct vty *vty,
+                                         struct lyd_node *dnode,
+                                         bool show_defaults);
+extern void eigrp_cli_show_keychain(struct vty *vty, struct lyd_node *dnode,
+                                   bool show_defaults);
+extern void eigrp_cli_init(void);
+
+#endif /*EIGRP_CLI_H_ */
index 6c44ce361c7e51bae2805cefabf3ddcea83a5890..77e6ee275d63ef1bd0b64d7c584a4988c172f55f 100644 (file)
@@ -66,6 +66,7 @@
 #include "eigrpd/eigrp_filter.h"
 #include "eigrpd/eigrp_errors.h"
 #include "eigrpd/eigrp_vrf.h"
+#include "eigrpd/eigrp_cli.h"
 //#include "eigrpd/eigrp_routemap.h"
 
 /* eigprd privileges */
index 5b87f7264016c37d382c4a6cb328a12d4f69e5c1..482667f633c214effffed11e30b9b4cc6d382e40 100644 (file)
@@ -34,6 +34,7 @@
 #include "eigrp_interface.h"
 #include "eigrp_network.h"
 #include "eigrp_zebra.h"
+#include "eigrp_cli.h"
 
 /* Helper functions. */
 static void redistribute_get_metrics(const struct lyd_node *dnode,
index bcf7c4eb2bf220820f60441894ba547f90cb7eab..1eb2203d622041a8531e0b0cdd1aa9dbd1ca2a4e 100644 (file)
@@ -76,50 +76,6 @@ 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_cli.c */
-extern void eigrp_cli_show_header(struct vty *vty, struct lyd_node *dnode,
-                                 bool show_defaults);
-extern void eigrp_cli_show_end_header(struct vty *vty, struct lyd_node *dnode);
-extern void eigrp_cli_show_router_id(struct vty *vty, struct lyd_node *dnode,
-                                    bool show_defaults);
-extern void eigrp_cli_show_passive_interface(struct vty *vty,
-                                            struct lyd_node *dnode,
-                                            bool show_defaults);
-extern void eigrp_cli_show_active_time(struct vty *vty, struct lyd_node *dnode,
-                                      bool show_defaults);
-extern void eigrp_cli_show_variance(struct vty *vty, struct lyd_node *dnode,
-                                   bool show_defaults);
-extern void eigrp_cli_show_maximum_paths(struct vty *vty,
-                                        struct lyd_node *dnode,
-                                        bool show_defaults);
-extern void eigrp_cli_show_metrics(struct vty *vty, struct lyd_node *dnode,
-                                  bool show_defaults);
-extern void eigrp_cli_show_network(struct vty *vty, struct lyd_node *dnode,
-                                  bool show_defaults);
-extern void eigrp_cli_show_neighbor(struct vty *vty, struct lyd_node *dnode,
-                                   bool show_defaults);
-extern void eigrp_cli_show_redistribute(struct vty *vty,
-                                       struct lyd_node *dnode,
-                                       bool show_defaults);
-extern void eigrp_cli_show_delay(struct vty *vty, struct lyd_node *dnode,
-                                bool show_defaults);
-extern void eigrp_cli_show_bandwidth(struct vty *vty, struct lyd_node *dnode,
-                                    bool show_defaults);
-extern void eigrp_cli_show_hello_interval(struct vty *vty,
-                                         struct lyd_node *dnode,
-                                         bool show_defaults);
-extern void eigrp_cli_show_hold_time(struct vty *vty, struct lyd_node *dnode,
-                                    bool show_defaults);
-extern void eigrp_cli_show_summarize_address(struct vty *vty,
-                                            struct lyd_node *dnode,
-                                            bool show_defaults);
-extern void eigrp_cli_show_authentication(struct vty *vty,
-                                         struct lyd_node *dnode,
-                                         bool show_defaults);
-extern void eigrp_cli_show_keychain(struct vty *vty, struct lyd_node *dnode,
-                                   bool show_defaults);
-extern void eigrp_cli_init(void);
-
 /* eigrp_northbound.c */
 extern const struct frr_yang_module_info frr_eigrpd_info;
 
index 98f39440c36d8cc0b7935c67432a2cc00efa686e..9ad4d72d9447ff5659ff49e1137c839284226aed 100644 (file)
@@ -55,6 +55,7 @@ clippy_scan += \
        # end
 
 noinst_HEADERS += \
+       eigrpd/eigrp_cli.h \
        eigrpd/eigrp_const.h \
        eigrpd/eigrp_errors.h \
        eigrpd/eigrp_filter.h \