diff options
| author | Stephen Worley <sworley@nvidia.com> | 2022-01-25 13:49:05 -0500 |
|---|---|---|
| committer | Stephen Worley <sworley@nvidia.com> | 2022-03-09 18:02:42 -0500 |
| commit | 0dcd8506f2dac65bcac06f79a1660d809b329340 (patch) | |
| tree | 29efc49d7c035f863e37459bf206c1960fef8b31 /zebra/zebra_router.h | |
| parent | 71ef5cbb9563e09a76996448a7f34cec37ed3c15 (diff) | |
zebra: clear protodown_rc on shutdown and sweep
Add functionality to clear any reason code set on shutdown
of zebra when we are freeing the interface, in case a bad
client didn't tell us to clear it when the shutdown.
Also, in case of a crash or failure to do the above, clear reason
on startup if it is set.
Signed-off-by: Stephen Worley <sworley@nvidia.com>
Diffstat (limited to 'zebra/zebra_router.h')
| -rw-r--r-- | zebra/zebra_router.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/zebra/zebra_router.h b/zebra/zebra_router.h index 40f7d87980..7aca91959c 100644 --- a/zebra/zebra_router.h +++ b/zebra/zebra_router.h @@ -85,7 +85,10 @@ enum protodown_reasons { ZEBRA_PROTODOWN_EVPN_STARTUP_DELAY), ZEBRA_PROTODOWN_VRRP = (1 << 3), /* This reason used exclusively for testing */ - ZEBRA_PROTODOWN_SHARP = (1 << 4) + ZEBRA_PROTODOWN_SHARP = (1 << 4), + /* Just used to clear our fields on shutdown, externel not included */ + ZEBRA_PROTODOWN_ALL = (ZEBRA_PROTODOWN_EVPN_ALL | ZEBRA_PROTODOWN_VRRP | + ZEBRA_PROTODOWN_SHARP) }; #define ZEBRA_PROTODOWN_RC_STR_LEN 80 |
