]> git.proxmox.com Git - mirror_frr.git/commit
lib,zebra: add api to enforce nexthop sort order when copying
authorMark Stapp <mjs@voltanet.io>
Mon, 9 Dec 2019 21:02:57 +0000 (16:02 -0500)
committerMark Stapp <mjs@voltanet.io>
Mon, 9 Dec 2019 21:25:53 +0000 (16:25 -0500)
commite1f3a8eb193267da195088cc515b598ae5a92a12
treee6d37c76f9b31d8eb37afb2ea43496dc999010e3
parent1c30d64bb63aedd0104aa3525815d3ff16c45522
lib,zebra: add api to enforce nexthop sort order when copying

Add an api that creates a copy of a list of nexthops and
enforces the canonical sort ordering; consolidate some nhg
code to avoid copy-and-paste. The zebra dplane uses
that api when a plugin sets up a list of nexthops, ensuring
that the plugin's list is ordered when it's processed in
zebra.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
lib/nexthop_group.c
lib/nexthop_group.h
zebra/zebra_dplane.c