diff options
| author | Mark Stapp <mjs@voltanet.io> | 2020-01-16 16:25:22 -0500 | 
|---|---|---|
| committer | Mark Stapp <mjs@voltanet.io> | 2020-03-27 09:39:14 -0400 | 
| commit | 0a8881b4b54a0b1ad756f000db25161d8d89cff7 (patch) | |
| tree | e378945b530e925c66db3cb2cc9084b7bc95a83a /lib/nexthop_group.h | |
| parent | 62e46303f45e063e82abc600fc412c6765daf300 (diff) | |
lib: support backup nexthops in nexthop-groups and zapi
Add vty support for backup nexthops in nexthop groups. Capture
backup nexthop info in zapi route messages.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'lib/nexthop_group.h')
| -rw-r--r-- | lib/nexthop_group.h | 7 | 
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/nexthop_group.h b/lib/nexthop_group.h index 76e1e64ca5..3a5a1299c1 100644 --- a/lib/nexthop_group.h +++ b/lib/nexthop_group.h @@ -81,11 +81,16 @@ void nexthop_group_add_sorted(struct nexthop_group *nhg,  	(nhop) = nexthop_next(nhop) +#define NHGC_NAME_SIZE 80 +  struct nexthop_group_cmd {  	RB_ENTRY(nexthop_group_cmd) nhgc_entry; -	char name[80]; +	char name[NHGC_NAME_SIZE]; + +	/* Name of group containing backup nexthops (if set) */ +	char backup_list_name[NHGC_NAME_SIZE];  	struct nexthop_group nhg;  | 
