cli_auto_top: Add missing clear of cli-edit-mtpoint
Without that going to the top from inside a mountpoint will lead to an invalid combination of cli-edit-* states which will in turn make following commands fail.
This commit is contained in:
parent
2142a4fd96
commit
34fff6c270
1 changed files with 2 additions and 0 deletions
|
|
@ -282,6 +282,7 @@ cli_auto_up(clixon_handle h,
|
||||||
clicon_data_set(h, "cli-edit-mode", "");
|
clicon_data_set(h, "cli-edit-mode", "");
|
||||||
clicon_data_cvec_del(h, "cli-edit-cvv");
|
clicon_data_cvec_del(h, "cli-edit-cvv");
|
||||||
clicon_data_cvec_del(h, "cli-edit-filter");
|
clicon_data_cvec_del(h, "cli-edit-filter");
|
||||||
|
clicon_data_set(h, "cli-edit-mtpoint", "");
|
||||||
goto ok;
|
goto ok;
|
||||||
}
|
}
|
||||||
/* get before and after api-path-fmt (as generated from yang) */
|
/* get before and after api-path-fmt (as generated from yang) */
|
||||||
|
|
@ -345,6 +346,7 @@ cli_auto_top(clixon_handle h,
|
||||||
clicon_data_set(h, "cli-edit-mode", "");
|
clicon_data_set(h, "cli-edit-mode", "");
|
||||||
clicon_data_cvec_del(h, "cli-edit-cvv");
|
clicon_data_cvec_del(h, "cli-edit-cvv");
|
||||||
clicon_data_cvec_del(h, "cli-edit-filter");
|
clicon_data_cvec_del(h, "cli-edit-filter");
|
||||||
|
clicon_data_set(h, "cli-edit-mtpoint", "");
|
||||||
retval = 0;
|
retval = 0;
|
||||||
done:
|
done:
|
||||||
return retval;
|
return retval;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue