summaryrefslogtreecommitdiff
path: root/ospfd/ospf_sr.h
diff options
context:
space:
mode:
authorOlivier Dugeon <olivier.dugeon@orange.com>2020-05-12 16:42:38 +0200
committerOlivier Dugeon <olivier.dugeon@orange.com>2020-06-03 19:35:47 +0200
commit21baf89affbcffdd02fd557e81d16b80850266ca (patch)
treec1639616f0f9e330c5e3044398dc4dbc6086550d /ospfd/ospf_sr.h
parent008bcff499bd8d9f5b968c9a90d1c46b951af275 (diff)
ospfd: Update Prefix & Adjacency SIDs Management
SIDs are not uninstall in LFIB when ospf adjacenyi or loopback goes down as self LSA flusing is not handle by ospf_ext_link_lsa_update(). The patch introduces new functions ospf_sr_ext_itf_add() and ospf_sr_ext_itf_delete() in ospf_sr.c to directly manage LFIB for SIDs when change is detected in ospf_ext_link_ism_change() and ospf_ext_link_nsm_change(). Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
Diffstat (limited to 'ospfd/ospf_sr.h')
-rw-r--r--ospfd/ospf_sr.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ospfd/ospf_sr.h b/ospfd/ospf_sr.h
index d03da71108..5e1e1f7837 100644
--- a/ospfd/ospf_sr.h
+++ b/ospfd/ospf_sr.h
@@ -312,6 +312,10 @@ extern void ospf_sr_ext_link_lsa_update(struct ospf_lsa *lsa);
extern void ospf_sr_ext_link_lsa_delete(struct ospf_lsa *lsa);
extern void ospf_sr_ext_prefix_lsa_update(struct ospf_lsa *lsa);
extern void ospf_sr_ext_prefix_lsa_delete(struct ospf_lsa *lsa);
+/* Segment Routing Extending Link management */
+struct ext_itf;
+extern void ospf_sr_ext_itf_add(struct ext_itf *exti);
+extern void ospf_sr_ext_itf_delete(struct ext_itf *exti);
/* Segment Routing configuration functions */
extern uint32_t get_ext_link_label_value(void);
extern void ospf_sr_config_write_router(struct vty *vty);