mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 04:26:12 +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,21 +216,9 @@ assign_srv6_locator_chunk(uint8_t proto,
|
||||
if (!loc) {
|
||||
zlog_info("%s: locator %s was not found",
|
||||
__func__, locator_name);
|
||||
|
||||
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)) {
|
||||
if (chunk->proto != NO_PROTO && chunk->proto != proto)
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user