Fixed: [CLI show config | display <format> exits over mountpoints with large YANGs](https://github.com/clicon/clixon-controller/issues/39)
This commit is contained in:
parent
4730082d7b
commit
35ad68fa70
2 changed files with 17 additions and 7 deletions
|
|
@ -294,11 +294,19 @@ pipe_showas_fn(clicon_handle h,
|
|||
/* Bind module with mtpoints requires h, but parse functions font have h */
|
||||
if (clixon_xml_parse_file(stdin, YB_NONE, yspec, &xt, NULL) < 0)
|
||||
goto done;
|
||||
if ((ret = xml_bind_yang(h, xt, YB_MODULE, yspec, &xerr)) < 0)
|
||||
goto done;
|
||||
if (ret == 0){
|
||||
clixon_netconf_error(xerr, "Parse top file", NULL);
|
||||
goto done;
|
||||
switch (format){
|
||||
case FORMAT_CLI:
|
||||
case FORMAT_TEXT:
|
||||
/* Requires binding. Note binding over mountpoints can cause rpc: extra latency */
|
||||
if ((ret = xml_bind_yang(h, xt, YB_MODULE, yspec, &xerr)) < 0)
|
||||
goto done;
|
||||
if (ret == 0){
|
||||
clixon_netconf_error(xerr, "Parse top file", NULL);
|
||||
goto done;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
switch (format){
|
||||
case FORMAT_XML:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue