summaryrefslogtreecommitdiffstats
path: root/eigrpd/eigrp_interface.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-06-15 19:48:18 +0200
committerRafael Zalamena <rzalamena@opensourcerouting.org>2019-08-07 03:41:05 +0200
commite944996140173700f73281cf7efc444377eec331 (patch)
treee6cebd6e8c5a1979e5d22be74256120bb71d94ce /eigrpd/eigrp_interface.c
parenteigrpd: Create a socket per vrf for communication (diff)
downloadfrr-e944996140173700f73281cf7efc444377eec331.tar.xz
frr-e944996140173700f73281cf7efc444377eec331.zip
eigrpd: Add `router eigrp AS [vrf NAME]` and various stuff
Add the ability to parse `router eigrp AS [vrf NAME]` and modify eigrp_lookup to actually handle a vrf_id for us. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'eigrpd/eigrp_interface.c')
-rw-r--r--eigrpd/eigrp_interface.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/eigrpd/eigrp_interface.c b/eigrpd/eigrp_interface.c
index c52a98ee2..8b2bd9dc4 100644
--- a/eigrpd/eigrp_interface.c
+++ b/eigrpd/eigrp_interface.c
@@ -329,10 +329,7 @@ void eigrp_if_free(struct eigrp_interface *ei, int source)
{
struct prefix dest_addr;
struct eigrp_prefix_entry *pe;
- struct eigrp *eigrp = eigrp_lookup();
-
- if (!eigrp)
- return;
+ struct eigrp *eigrp = ei->eigrp;
if (source == INTERFACE_DOWN_BY_VTY) {
THREAD_OFF(ei->t_hello);