forked from Mirror/frr
eigrpd: Add various vrf handling functions
Basic enable/disable/add/delete vrf handling functions. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
daa64bdf49
commit
c20fa244a1
|
@ -65,6 +65,7 @@
|
|||
#include "eigrpd/eigrp_snmp.h"
|
||||
#include "eigrpd/eigrp_filter.h"
|
||||
#include "eigrpd/eigrp_errors.h"
|
||||
#include "eigrpd/eigrp_vrf.h"
|
||||
//#include "eigrpd/eigrp_routemap.h"
|
||||
|
||||
/* eigprd privileges */
|
||||
|
@ -182,6 +183,7 @@ int main(int argc, char **argv, char **envp)
|
|||
master = eigrp_om->master;
|
||||
|
||||
eigrp_error_init();
|
||||
eigrp_vrf_init();
|
||||
vrf_init(NULL, NULL, NULL, NULL, NULL);
|
||||
|
||||
/*EIGRPd init*/
|
||||
|
|
50
eigrpd/eigrp_vrf.c
Normal file
50
eigrpd/eigrp_vrf.c
Normal file
|
@ -0,0 +1,50 @@
|
|||
/*
|
||||
* eigrp - vrf code
|
||||
* Copyright (C) 2019 Cumulus Networks, Inc.
|
||||
* Donald Sharp
|
||||
*
|
||||
* This program 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 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program 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
|
||||
*/
|
||||
#include <zebra.h>
|
||||
|
||||
#include "vrf.h"
|
||||
|
||||
#include "eigrpd/eigrp_vrf.h"
|
||||
|
||||
static int eigrp_vrf_new(struct vrf *vrf)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int eigrp_vrf_enable(struct vrf *vrf)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int eigrp_vrf_disable(struct vrf *vrf)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int eigrp_vrf_delete(struct vrf *vrf)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void eigrp_vrf_init(void)
|
||||
{
|
||||
vrf_init(eigrp_vrf_new, eigrp_vrf_enable,
|
||||
eigrp_vrf_disable, eigrp_vrf_delete, NULL);
|
||||
}
|
23
eigrpd/eigrp_vrf.h
Normal file
23
eigrpd/eigrp_vrf.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* eigrp - vrf code
|
||||
* Copyright (C) 2019 Cumulus Networks, Inc.
|
||||
* Donald Sharp
|
||||
*
|
||||
* This program 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 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program 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_VRF_H__
|
||||
|
||||
extern void eigrp_vrf_init(void);
|
||||
#endif
|
|
@ -35,6 +35,7 @@ eigrpd_libeigrp_a_SOURCES = \
|
|||
eigrpd/eigrp_snmp.c \
|
||||
eigrpd/eigrp_topology.c \
|
||||
eigrpd/eigrp_update.c \
|
||||
eigrpd/eigrp_vrf.c \
|
||||
eigrpd/eigrp_vty.c \
|
||||
eigrpd/eigrp_zebra.c \
|
||||
eigrpd/eigrpd.c \
|
||||
|
@ -66,6 +67,7 @@ noinst_HEADERS += \
|
|||
eigrpd/eigrp_packet.h \
|
||||
eigrpd/eigrp_snmp.h \
|
||||
eigrpd/eigrp_structs.h \
|
||||
eigrpd/eigrp_vrf.h \
|
||||
eigrpd/eigrp_vty.h \
|
||||
eigrpd/eigrp_zebra.h \
|
||||
# end
|
||||
|
|
Loading…
Reference in a new issue