diff options
author | Stephen Worley <sworley@cumulusnetworks.com> | 2020-07-28 23:36:51 +0200 |
---|---|---|
committer | Stephen Worley <sworley@cumulusnetworks.com> | 2020-09-28 18:41:00 +0200 |
commit | ff9aca4f8d70a45e84c5bdf5503b68bea1f74d13 (patch) | |
tree | 8f3e5ff9b555b0a245df3979a18d4a5d489d6aeb /sharpd | |
parent | zebra: clean up the NHG proto zapi code a bit (diff) | |
download | frr-ff9aca4f8d70a45e84c5bdf5503b68bea1f74d13.tar.xz frr-ff9aca4f8d70a45e84c5bdf5503b68bea1f74d13.zip |
lib,zebra,sharpd: clang format
Clang format for NHG API and sharpd patches.
Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Diffstat (limited to 'sharpd')
-rw-r--r-- | sharpd/sharp_nht.c | 2 | ||||
-rw-r--r-- | sharpd/sharp_vty.c | 6 | ||||
-rw-r--r-- | sharpd/sharp_zebra.c | 8 |
3 files changed, 7 insertions, 9 deletions
diff --git a/sharpd/sharp_nht.c b/sharpd/sharp_nht.c index 4c32dc279..38de8f217 100644 --- a/sharpd/sharp_nht.c +++ b/sharpd/sharp_nht.c @@ -109,7 +109,7 @@ static struct sharp_nhg *sharp_nhgroup_find_id(uint32_t id) * to sharpd with another RB tree for just IDs */ - frr_each(sharp_nhg_rb, &nhg_head, lookup) { + frr_each (sharp_nhg_rb, &nhg_head, lookup) { if (lookup->id == id) return lookup; } diff --git a/sharpd/sharp_vty.c b/sharpd/sharp_vty.c index 2903588c1..d062f027a 100644 --- a/sharpd/sharp_vty.c +++ b/sharpd/sharp_vty.c @@ -299,9 +299,9 @@ DEFPY (install_routes, sg.r.inst = instance; sg.r.vrf_id = vrf->vrf_id; rts = routes; - sharp_install_routes_helper(&prefix, sg.r.vrf_id, sg.r.inst, - nhgid, &sg.r.nhop_group, - &sg.r.backup_nhop_group, rts); + sharp_install_routes_helper(&prefix, sg.r.vrf_id, sg.r.inst, nhgid, + &sg.r.nhop_group, &sg.r.backup_nhop_group, + rts); return CMD_SUCCESS; } diff --git a/sharpd/sharp_zebra.c b/sharpd/sharp_zebra.c index 6be1176db..03def0d9b 100644 --- a/sharpd/sharp_zebra.c +++ b/sharpd/sharp_zebra.c @@ -288,8 +288,7 @@ static void handle_repeated(bool installed) if (!installed) { sg.r.installed_routes = 0; sharp_install_routes_helper(&p, sg.r.vrf_id, sg.r.inst, - sg.r.nhgid, - &sg.r.nhop_group, + sg.r.nhgid, &sg.r.nhop_group, &sg.r.backup_nhop_group, sg.r.total_routes); } @@ -383,9 +382,8 @@ void nhg_del(uint32_t id) zclient_send_message(zclient); } -void route_add(const struct prefix *p, vrf_id_t vrf_id, - uint8_t instance, uint32_t nhgid, - const struct nexthop_group *nhg, +void route_add(const struct prefix *p, vrf_id_t vrf_id, uint8_t instance, + uint32_t nhgid, const struct nexthop_group *nhg, const struct nexthop_group *backup_nhg) { struct zapi_route api; |