diff options
author | Donnie Savage <diivious@hotmail.com> | 2020-12-11 21:27:17 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2021-01-12 13:43:32 +0100 |
commit | fb532db3f024dac96a588ca6f8a210b4c4e23f7a (patch) | |
tree | a973e7e47998264e878baadfac9f4b1f1328e350 /eigrpd | |
parent | eigrpd: Create eigrp_cli.h and move forward declarations (diff) | |
download | frr-fb532db3f024dac96a588ca6f8a210b4c4e23f7a.tar.xz frr-fb532db3f024dac96a588ca6f8a210b4c4e23f7a.zip |
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>
Diffstat (limited to 'eigrpd')
-rw-r--r-- | eigrpd/eigrp_main.c | 1 | ||||
-rw-r--r-- | eigrpd/eigrp_yang.h | 32 | ||||
-rw-r--r-- | eigrpd/eigrpd.h | 3 | ||||
-rw-r--r-- | eigrpd/subdir.am | 1 |
4 files changed, 34 insertions, 3 deletions
diff --git a/eigrpd/eigrp_main.c b/eigrpd/eigrp_main.c index 77e6ee275..b1a6498cb 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 000000000..a95e5310f --- /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 1eb2203d6..01173768b 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 9ad4d72d9..65922ea3a 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 |