mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 19:39:28 +00:00
zebra: elliminate srv6 locator auto allocation by zlicnet request
Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
This commit is contained in:
parent
f5ca329b2d
commit
f6e52a81dc
@ -216,19 +216,7 @@ assign_srv6_locator_chunk(uint8_t proto,
|
|||||||
if (!loc) {
|
if (!loc) {
|
||||||
zlog_info("%s: locator %s was not found",
|
zlog_info("%s: locator %s was not found",
|
||||||
__func__, locator_name);
|
__func__, locator_name);
|
||||||
|
return NULL;
|
||||||
loc = srv6_locator_alloc(locator_name);
|
|
||||||
if (!loc) {
|
|
||||||
zlog_info("%s: locator %s can't allocated",
|
|
||||||
__func__, locator_name);
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
loc->status_up = false;
|
|
||||||
chunk = srv6_locator_chunk_alloc();
|
|
||||||
chunk->proto = NO_PROTO;
|
|
||||||
listnode_add(loc->chunks, chunk);
|
|
||||||
zebra_srv6_locator_add(loc);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (ALL_LIST_ELEMENTS_RO((struct list *)loc->chunks, node, chunk)) {
|
for (ALL_LIST_ELEMENTS_RO((struct list *)loc->chunks, node, chunk)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user