mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 07:37:29 +00:00
Merge pull request #18023 from pguibert6WIND/srv6_route_dump
lib: fix false context information for SRv6 route
This commit is contained in:
commit
caeef98e73
@ -76,7 +76,6 @@ void seg6local_context2json(const struct seg6local_context *ctx,
|
|||||||
{
|
{
|
||||||
switch (action) {
|
switch (action) {
|
||||||
case ZEBRA_SEG6_LOCAL_ACTION_END:
|
case ZEBRA_SEG6_LOCAL_ACTION_END:
|
||||||
json_object_boolean_add(json, "USP", true);
|
|
||||||
return;
|
return;
|
||||||
case ZEBRA_SEG6_LOCAL_ACTION_END_X:
|
case ZEBRA_SEG6_LOCAL_ACTION_END_X:
|
||||||
case ZEBRA_SEG6_LOCAL_ACTION_END_DX6:
|
case ZEBRA_SEG6_LOCAL_ACTION_END_DX6:
|
||||||
@ -116,7 +115,7 @@ const char *seg6local_context2str(char *str, size_t size,
|
|||||||
switch (action) {
|
switch (action) {
|
||||||
|
|
||||||
case ZEBRA_SEG6_LOCAL_ACTION_END:
|
case ZEBRA_SEG6_LOCAL_ACTION_END:
|
||||||
snprintf(str, size, "USP");
|
snprintf(str, size, "-");
|
||||||
return str;
|
return str;
|
||||||
|
|
||||||
case ZEBRA_SEG6_LOCAL_ACTION_END_X:
|
case ZEBRA_SEG6_LOCAL_ACTION_END_X:
|
||||||
|
Loading…
Reference in New Issue
Block a user