Skip to content

Commit

Permalink
pbrd: Modify send to know about deletion too
Browse files Browse the repository at this point in the history
Well.. At least setup the api so that Don can program
to it while I scramble.

Signed-off-by: Donald Sharp <[email protected]>
  • Loading branch information
donaldsharp committed Feb 22, 2018
1 parent a7f139a commit 682ad86
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pbrd/pbr_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ extern void pbr_map_policy_install(const char *name)

if (install) {
zlog_debug("\tInstalling");
pbr_send_pbr_map(pbrm);
pbr_send_pbr_map(pbrm, true);
}
}

Expand Down Expand Up @@ -396,7 +396,7 @@ extern void pbr_map_install(const char *name)
return;
}

pbr_send_pbr_map(pbrm);
pbr_send_pbr_map(pbrm, true);
}

extern void pbr_map_add_interfaces(const char *name)
Expand Down
2 changes: 1 addition & 1 deletion pbrd/pbr_zebra.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ static void pbr_encode_pbr_map_sequence(struct stream *s,
stream_putl(s, ifp->ifindex);
}

void pbr_send_pbr_map(struct pbr_map *pbrm)
void pbr_send_pbr_map(struct pbr_map *pbrm, bool install)
{
struct listnode *inode, *snode;
struct pbr_map_sequence *pbrms;
Expand Down
2 changes: 1 addition & 1 deletion pbrd/pbr_zebra.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ extern void route_delete(struct pbr_nexthop_group_cache *pnhgc);

extern void pbr_send_rnh(struct nexthop *nhop, bool reg);

extern void pbr_send_pbr_map(struct pbr_map *pbrm);
extern void pbr_send_pbr_map(struct pbr_map *pbrm, bool install);
#endif

0 comments on commit 682ad86

Please sign in to comment.