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 <sharpd@nvidia.com>
Signed-off-by: Donnie Savage <diivious@hotmail.com>
This commit is contained in:
Donnie Savage 2020-12-11 15:27:17 -05:00 committed by Donald Sharp
parent b66c8fbba5
commit fb532db3f0
4 changed files with 34 additions and 3 deletions

View 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 */

32
eigrpd/eigrp_yang.h Normal file
View File

@ -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_ */

View 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 */

View 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