diff options
| author | Mark Stapp <mjs@voltanet.io> | 2020-04-02 09:29:36 -0400 |
|---|---|---|
| committer | Mark Stapp <mjs@voltanet.io> | 2020-06-01 14:46:12 -0400 |
| commit | 34f86754a20ad1a796430ee9483fce93bc30dfa2 (patch) | |
| tree | 045b372f40b1b6011177511fc71bd70fdc5faef8 /lib/zclient.h | |
| parent | ee70f629792b90f92ea7e6becec2450f37bc191b (diff) | |
lib: add backup nexthop/nhlfe to zapi label messages
Add backup nexthops/nhlfes to the zapi messages used
to convey LSPs to zebra.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'lib/zclient.h')
| -rw-r--r-- | lib/zclient.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/zclient.h b/lib/zclient.h index 4ada064623..92ac017e80 100644 --- a/lib/zclient.h +++ b/lib/zclient.h @@ -484,7 +484,8 @@ struct zapi_route { struct zapi_labels { uint8_t message; -#define ZAPI_LABELS_FTN 0x01 +#define ZAPI_LABELS_FTN 0x01 +#define ZAPI_LABELS_HAS_BACKUPS 0x02 enum lsp_types_t type; mpls_label_t local_label; struct { @@ -495,6 +496,10 @@ struct zapi_labels { uint16_t nexthop_num; struct zapi_nexthop nexthops[MULTIPATH_NUM]; + + /* Backup nexthops, if present */ + uint16_t backup_nexthop_num; + struct zapi_nexthop backup_nexthops[MULTIPATH_NUM]; }; struct zapi_pw { |
