diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-11-16 12:46:10 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-11-16 13:13:13 -0500 |
| commit | 2b63430caa350b603a5173cea54e18719202f189 (patch) | |
| tree | 8440bee771cd46c63376fde63cf9cca18f713f40 /zebra/zebra_mpls_openbsd.c | |
| parent | 2d74d637310ea5532718ce452e2547f283b0cb56 (diff) | |
zebra: Move some LSP flag handling to common code
The LSP_FLAG_CHANGED and LSP_FLAG_INSTALLED flags
should be handled in the common call function
for adding/updating/removing a lsp to/from the kernel.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_mpls_openbsd.c')
| -rw-r--r-- | zebra/zebra_mpls_openbsd.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/zebra/zebra_mpls_openbsd.c b/zebra/zebra_mpls_openbsd.c index 33f0d49d4d..44f89f0b3b 100644 --- a/zebra/zebra_mpls_openbsd.c +++ b/zebra/zebra_mpls_openbsd.c @@ -299,10 +299,7 @@ int kernel_add_lsp(zebra_lsp_t *lsp) if (!lsp || !lsp->best_nhlfe) // unexpected return -1; - UNSET_FLAG(lsp->flags, LSP_FLAG_CHANGED); ret = kernel_lsp_cmd(RTM_ADD, lsp); - if (!ret) - SET_FLAG(lsp->flags, LSP_FLAG_INSTALLED); return ret; } @@ -314,11 +311,7 @@ int kernel_upd_lsp(zebra_lsp_t *lsp) if (!lsp || !lsp->best_nhlfe) // unexpected return -1; - UNSET_FLAG(lsp->flags, LSP_FLAG_CHANGED); - UNSET_FLAG(lsp->flags, LSP_FLAG_INSTALLED); ret = kernel_lsp_cmd(RTM_CHANGE, lsp); - if (!ret) - SET_FLAG(lsp->flags, LSP_FLAG_INSTALLED); return ret; } @@ -334,8 +327,6 @@ int kernel_del_lsp(zebra_lsp_t *lsp) return -1; ret = kernel_lsp_cmd(RTM_DELETE, lsp); - if (!ret) - UNSET_FLAG(lsp->flags, LSP_FLAG_INSTALLED); return ret; } |
