Skip to content

Conversation

@choppsv1
Copy link
Contributor

@choppsv1 choppsv1 commented Dec 6, 2025

For RPCs, RESTCONF uses a different input/output data format. This needs to be
flagged when calling libyang functions etc, so pass a restconf bool around to
identify when this is the case.

Also testing: Previously was only testing a YANG Action. Add RPC w and w/ args to unit
tests.

Signed-off-by: Christian Hopps <chopps@labn.net>
Signed-off-by: Christian Hopps <chopps@labn.net>
For RPCs, RESTCONF uses a different input/output data format. This needs to be
flagged when calling libyang functions etc, so pass a restconf bool around to
identify when this is the case.

Signed-off-by: Christian Hopps <chopps@labn.net>
@frrbot frrbot bot added libfrr mgmt FRR Management Infra tests Topotests, make check, etc labels Dec 6, 2025
return ret;
}
assert(output->child == NULL);
/* yang_dnode_free(output); */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we care about this memory leak?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, left over from some testing.. fixed.

@donaldsharp
Copy link
Member

all in all fix up the verify source problems and let ci rerun and I'll get this in.

@choppsv1 choppsv1 force-pushed the chopps/rpc-restconf-format branch from 99b3efc to 3bdd895 Compare December 6, 2025 16:23
Previously was only testing an action. Add RPC w/o args and w/ args to unit
tests.

Signed-off-by: Christian Hopps <chopps@labn.net>
@choppsv1 choppsv1 force-pushed the chopps/rpc-restconf-format branch from 3bdd895 to 50a4e60 Compare December 6, 2025 16:27
@donaldsharp donaldsharp merged commit 5217b10 into FRRouting:master Dec 8, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

libfrr master mgmt FRR Management Infra size/L tests Topotests, make check, etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants