summaryrefslogtreecommitdiff
path: root/pbrd/pbr_zebra.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-03-22 03:45:48 -0400
committerGitHub <noreply@github.com>2019-03-22 03:45:48 -0400
commit8d39ebf675a8a2fafde0dfa74ed927f364b3c6db (patch)
treef4e61cbdc17f60f34c1e7e510c0a98125bbf8d79 /pbrd/pbr_zebra.c
parent6e0d7d0dbb3ae4157e7ede8612e4f867d856382f (diff)
parent7dce96f0e413e1c6c9d1d68196716e0343c14f6a (diff)
Merge pull request #3776 from opensourcerouting/pbrd-interface-nexthops
pbrd: add support for interface nexthops
Diffstat (limited to 'pbrd/pbr_zebra.c')
-rw-r--r--pbrd/pbr_zebra.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/pbrd/pbr_zebra.c b/pbrd/pbr_zebra.c
index 558e635748..44c8daa97b 100644
--- a/pbrd/pbr_zebra.c
+++ b/pbrd/pbr_zebra.c
@@ -75,6 +75,8 @@ static int interface_add(int command, struct zclient *zclient,
if (!ifp->info)
pbr_if_new(ifp);
+ pbr_nht_nexthop_interface_update(ifp);
+
return 0;
}
@@ -144,6 +146,8 @@ static int interface_state_up(int command, struct zclient *zclient,
DEBUGD(&pbr_dbg_zebra,
"%s: %s is up", __PRETTY_FUNCTION__, ifp->name);
+ pbr_nht_nexthop_interface_update(ifp);
+
return 0;
}
@@ -157,6 +161,8 @@ static int interface_state_down(int command, struct zclient *zclient,
DEBUGD(&pbr_dbg_zebra,
"%s: %s is down", __PRETTY_FUNCTION__, ifp->name);
+ pbr_nht_nexthop_interface_update(ifp);
+
return 0;
}