diff options
| author | Mark Stapp <mjs@voltanet.io> | 2020-06-02 16:16:21 -0400 | 
|---|---|---|
| committer | Mark Stapp <mjs@voltanet.io> | 2020-07-07 13:25:23 -0400 | 
| commit | cc1b97466800165cc2df506b34414c757a7c646d (patch) | |
| tree | 50ed38b836d2cc0b618b5b767cdbf3722b2f9190 /zebra/zebra_mpls.h | |
| parent | 68110c42f5ad671321ed19f4fc23dd512c1a2a97 (diff) | |
zebra: collapse some duplicate LSP nhlfe apis
Collapse some apis where primary and backup nhlfe code
was very similar, generally using a single common api
and using a bool to distinguish between primary and
backup.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'zebra/zebra_mpls.h')
| -rw-r--r-- | zebra/zebra_mpls.h | 9 | 
1 files changed, 2 insertions, 7 deletions
diff --git a/zebra/zebra_mpls.h b/zebra/zebra_mpls.h index 53429ee99c..07a8efeb8b 100644 --- a/zebra/zebra_mpls.h +++ b/zebra/zebra_mpls.h @@ -331,7 +331,8 @@ int mpls_lsp_install(struct zebra_vrf *zvrf, enum lsp_types_t type,   */  int mpls_lsp_uninstall(struct zebra_vrf *zvrf, enum lsp_types_t type,  		       mpls_label_t in_label, enum nexthop_types_t gtype, -		       const union g_addr *gate, ifindex_t ifindex); +		       const union g_addr *gate, ifindex_t ifindex, +		       bool backup_p);  /*   * Uninstall all NHLFEs for a particular LSP forwarding entry. @@ -339,12 +340,6 @@ int mpls_lsp_uninstall(struct zebra_vrf *zvrf, enum lsp_types_t type,  int mpls_lsp_uninstall_all_vrf(struct zebra_vrf *zvrf, enum lsp_types_t type,  			       mpls_label_t in_label); -/* - * Uninstall all Segment Routing NHLFEs for a particular LSP forwarding entry. - * If no other NHLFEs exist, the entry would be deleted. - */ -void mpls_sr_lsp_uninstall_all(struct hash_bucket *bucket, void *ctxt); -  #if defined(HAVE_CUMULUS)  /*   * Check that the label values used in LSP creation are consistent. The  | 
