From: Donnie Savage Date: Fri, 11 Dec 2020 20:27:17 +0000 (-0500) Subject: eigrpd: Create eigrp_yang.h and move stuff around X-Git-Tag: base_7.6~42^2~3 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=fb532db3f024dac96a588ca6f8a210b4c4e23f7a;p=mirror%2Ffrr.git eigrpd: Create eigrp_yang.h and move stuff around Move the prototypes for eigrp_yang that are in eigrpd.h into eigrp_yang.h. Signed-off-by: Donald Sharp Signed-off-by: Donnie Savage --- diff --git a/eigrpd/eigrp_main.c b/eigrpd/eigrp_main.c index 77e6ee275d..b1a6498cbc 100644 --- a/eigrpd/eigrp_main.c +++ b/eigrpd/eigrp_main.c @@ -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 index 0000000000..a95e5310fb --- /dev/null +++ b/eigrpd/eigrp_yang.h @@ -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_ */ diff --git a/eigrpd/eigrpd.h b/eigrpd/eigrpd.h index 1eb2203d62..01173768ba 100644 --- a/eigrpd/eigrpd.h +++ b/eigrpd/eigrpd.h @@ -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 */ diff --git a/eigrpd/subdir.am b/eigrpd/subdir.am index 9ad4d72d94..65922ea3a6 100644 --- a/eigrpd/subdir.am +++ b/eigrpd/subdir.am @@ -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