diff options
author | Neale Ranns <nranns@cisco.com> | 2019-12-15 22:26:37 +0000 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2019-12-15 22:26:37 +0000 |
commit | 77cfc0171da0fa2b305378731a5fefd659d8947d (patch) | |
tree | 954e04cafa9c30395c293487c100d59dc7ab31d8 /src/vnet/adj/adj_delegate.c | |
parent | 5d4b8912d2fe186b4fb920a72b3a2f7b556f4e7d (diff) |
fib: Adjacency creation notifications for dlegates
Type: feature
Signed-off-by: Neale Ranns <nranns@cisco.com>
Change-Id: I3feddfe44dee528b9ca05aa0150e9423306ae49d
Diffstat (limited to 'src/vnet/adj/adj_delegate.c')
-rw-r--r-- | src/vnet/adj/adj_delegate.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/vnet/adj/adj_delegate.c b/src/vnet/adj/adj_delegate.c index 17d6f0d6a09..68232c5810a 100644 --- a/src/vnet/adj/adj_delegate.c +++ b/src/vnet/adj/adj_delegate.c @@ -140,6 +140,20 @@ adj_delegate_adj_deleted (ip_adjacency_t *adj) vec_reset_length(adj->ia_delegates); } +void +adj_delegate_adj_created (ip_adjacency_t *adj) +{ + adj_delegate_vft_t *vft; + + vec_foreach(vft, ad_vfts) + { + if (vft->adv_adj_created) + { + vft->adv_adj_created(adj_get_index(adj)); + } + } +} + u8* adj_delegate_format (u8* s, ip_adjacency_t *adj) { |