mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-29 21:01:42 +00:00
isisd: Add support for SRv6 MSDs
Add Maximum SRv6 SID Depths (MSDs) parameters as per RFC 9352 section #4 to the per-area IS-IS SRv6 Data Base. Currently the MSD values are hardcoded. Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
This commit is contained in:
parent
5e21aaf1e7
commit
340fdf6a80
@ -34,6 +34,11 @@ void isis_srv6_area_init(struct isis_area *area)
|
||||
|
||||
/* Pull defaults from the YANG module */
|
||||
srv6db->config.enabled = yang_get_default_bool("%s/enabled", ISIS_SRV6);
|
||||
|
||||
srv6db->config.max_seg_left_msd = SRV6_MAX_SEG_LEFT;
|
||||
srv6db->config.max_end_pop_msd = SRV6_MAX_END_POP;
|
||||
srv6db->config.max_h_encaps_msd = SRV6_MAX_H_ENCAPS;
|
||||
srv6db->config.max_end_d_msd = SRV6_MAX_END_D;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -10,6 +10,12 @@
|
||||
#ifndef _FRR_ISIS_SRV6_H
|
||||
#define _FRR_ISIS_SRV6_H
|
||||
|
||||
/* Maximum SRv6 SID Depths supported by the router */
|
||||
#define SRV6_MAX_SEG_LEFT 3
|
||||
#define SRV6_MAX_END_POP 3
|
||||
#define SRV6_MAX_H_ENCAPS 2
|
||||
#define SRV6_MAX_END_D 5
|
||||
|
||||
/* Per-area IS-IS SRv6 Data Base (SRv6 DB) */
|
||||
struct isis_srv6_db {
|
||||
|
||||
@ -17,6 +23,18 @@ struct isis_srv6_db {
|
||||
struct {
|
||||
/* Administrative status of SRv6 */
|
||||
bool enabled;
|
||||
|
||||
/* Maximum Segments Left Depth supported by the router */
|
||||
uint8_t max_seg_left_msd;
|
||||
|
||||
/* Maximum Maximum End Pop Depth supported by the router */
|
||||
uint8_t max_end_pop_msd;
|
||||
|
||||
/* Maximum H.Encaps supported by the router */
|
||||
uint8_t max_h_encaps_msd;
|
||||
|
||||
/* Maximum End D MSD supported by the router */
|
||||
uint8_t max_end_d_msd;
|
||||
} config;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user