summaryrefslogtreecommitdiff
path: root/ospfd/ospf_ri.h
diff options
context:
space:
mode:
authorOlivier Dugeon <olivier.dugeon@orange.com>2020-06-18 19:46:28 +0200
committerOlivier Dugeon <olivier.dugeon@orange.com>2020-08-20 14:37:40 +0200
commit6f751f14935af2e831d6069514df5d20dae957a5 (patch)
treea7f29aac8e610cddfa0c3878710e70c6a02d63e5 /ospfd/ospf_ri.h
parentd81b8e0e1a3400f356a5dd314be7ccc1d98dfa50 (diff)
ospfd: Add Segment Routing Local Block
RFC 8665 defines a Segment Routing Local Block for Adjacency SID. This patch provides the possibility to modify the SRLB as well as reserved the block range from the Label Manager. - Introduce new CLI 'segment-routing local-block' - Add local block to SRDB structure - Parse / Serialize SRLB in Router Information LSA - Update OSPF-SR topotest - Update documentation Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
Diffstat (limited to 'ospfd/ospf_ri.h')
-rw-r--r--ospfd/ospf_ri.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/ospfd/ospf_ri.h b/ospfd/ospf_ri.h
index 84511ac5e7..4729677bca 100644
--- a/ospfd/ospf_ri.h
+++ b/ospfd/ospf_ri.h
@@ -201,7 +201,12 @@ struct ospf_ri_sr_info {
* Segment Routing Global Block i.e. label range
* Only one range supported in this code
*/
- struct ri_sr_tlv_sid_label_range range;
+ struct ri_sr_tlv_sid_label_range srgb;
+ /*
+ * Segment Routing Local Block.
+ * Only one block is authorized - see section 3.3
+ */
+ struct ri_sr_tlv_sid_label_range srlb;
/* Maximum SID Depth supported by the node */
struct ri_sr_tlv_node_msd msd;
};
@@ -242,7 +247,6 @@ extern int ospf_router_info_init(void);
extern void ospf_router_info_term(void);
extern void ospf_router_info_finish(void);
extern int ospf_router_info_enable(void);
-extern void ospf_router_info_update_sr(bool enable, struct sr_srgb srgb,
- uint8_t msd);
+extern void ospf_router_info_update_sr(bool enable, struct sr_node *self);
extern struct scope_info ospf_router_info_get_flooding_scope(void);
#endif /* _ZEBRA_OSPF_ROUTER_INFO_H */