- Refactoring of get_common/get_list_pagination with two sub-functions

- Fixed memory leak
This commit is contained in:
Olof hagsand 2021-09-05 12:04:07 +02:00
parent caabfd464e
commit 6e316b519b
9 changed files with 156 additions and 153 deletions

View file

@ -692,7 +692,7 @@ module clixon-config {
type int32;
default 24;
description
"Set to number of CLI terminal rows for pageing/scrolling. 0 means unlimited.
"Set to number of CLI terminal rows for paging/scrolling. 0 means unlimited.
The number is set statically UNLESS:
- there is no terminal, such as file input, in which case nr lines is 0
- there is a terminal sufficiently powerful to read the number of lines from

View file

@ -80,7 +80,7 @@ module clixon-netconf-list-pagination {
represent any value greater than or equal to 2^32-1
elements.";
}
grouping pageing-parameters {
grouping paging-parameters {
leaf list-pagination {
type boolean;
default false;
@ -173,10 +173,10 @@ module clixon-netconf-list-pagination {
}
}
augment /nc:get-config/nc:input {
uses pageing-parameters;
uses paging-parameters;
}
// extending the get operation
augment /nc:get/nc:input {
uses pageing-parameters;
uses paging-parameters;
}
}