isisd: Init SRv6 enabled flag to its default value

When SRv6 is initialized on a given IS-IS area, set the administrative
enabled status to the default value defined by the YANG model.

Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
This commit is contained in:
Carmine Scarpitta 2023-01-16 12:03:32 +01:00
parent 7487c97c82
commit 3ffdeb64b7

View File

@ -31,6 +31,9 @@ void isis_srv6_area_init(struct isis_area *area)
/* Initialize SRv6 Data Base */
memset(srv6db, 0, sizeof(*srv6db));
/* Pull defaults from the YANG module */
srv6db->config.enabled = yang_get_default_bool("%s/enabled", ISIS_SRV6);
}
/**