mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 08:32:12 +00:00
isisd: Add function to initialize SRv6 DB
Add function to initialize per-area SRv6 DB (`area->srv6db`). Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
This commit is contained in:
parent
975ce69a27
commit
0359045d97
@ -8,3 +8,27 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <zebra.h>
|
#include <zebra.h>
|
||||||
|
|
||||||
|
#include "isisd/isisd.h"
|
||||||
|
#include "isisd/isis_srv6.h"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* IS-IS SRv6 initialization for given area.
|
||||||
|
*
|
||||||
|
* @param area IS-IS area
|
||||||
|
*/
|
||||||
|
void isis_srv6_area_init(struct isis_area *area)
|
||||||
|
{
|
||||||
|
struct isis_srv6_db *srv6db;
|
||||||
|
|
||||||
|
if (!area)
|
||||||
|
return;
|
||||||
|
|
||||||
|
srv6db = &area->srv6db;
|
||||||
|
|
||||||
|
sr_debug("ISIS-SRv6 (%s): Initialize Segment Routing SRv6 DB",
|
||||||
|
area->area_tag);
|
||||||
|
|
||||||
|
/* Initialize SRv6 Data Base */
|
||||||
|
memset(srv6db, 0, sizeof(*srv6db));
|
||||||
|
}
|
||||||
|
@ -14,4 +14,6 @@
|
|||||||
struct isis_srv6_db {
|
struct isis_srv6_db {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extern void isis_srv6_area_init(struct isis_area *area);
|
||||||
|
|
||||||
#endif /* _FRR_ISIS_SRV6_H */
|
#endif /* _FRR_ISIS_SRV6_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user