Skip to content

Commit

Permalink
printer_yang BUGFIX display of extensions for rpc in/out
Browse files Browse the repository at this point in the history
Fix the substatement passed to yprp_extension_instances() from
yprp_inout().

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
  • Loading branch information
olivier-matz-6wind authored and michalvasko committed Aug 12, 2024
1 parent e049db8 commit 998e1e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/printer_yang.c
Original file line number Diff line number Diff line change
Expand Up @@ -1162,7 +1162,7 @@ yprp_inout(struct lys_ypr_ctx *pctx, const struct lysp_node_action_inout *inout,
ly_print_(pctx->out, "%*s%s {\n", INDENT, inout->name);
LEVEL++;

yprp_extension_instances(pctx, LY_STMT_MUST, 0, inout->exts, NULL);
yprp_extension_instances(pctx, lyplg_ext_nodetype2stmt(inout->nodetype), 0, inout->exts, NULL);
LY_ARRAY_FOR(inout->musts, u) {
yprp_restr(pctx, &inout->musts[u], LY_STMT_MUST, NULL);
}
Expand Down

0 comments on commit 998e1e4

Please sign in to comment.