extension search index
This commit is contained in:
parent
c43ee9e1ef
commit
2eae2b6000
5 changed files with 26 additions and 25 deletions
40
CHANGELOG.md
40
CHANGELOG.md
|
|
@ -1,24 +1,24 @@
|
||||||
# Clixon Changelog
|
# Clixon Changelog
|
||||||
|
|
||||||
* [4.4.0](#4.4.0) Upcoming
|
* [4.4.0](#4-4-0) Upcoming
|
||||||
* [4.3.3](#4.3.3)
|
* [4.3.3](#4-3-3)
|
||||||
* [4.3.2](#4.3.2)
|
* [4.3.2](#4-3-2)
|
||||||
* [4.3.1](#4.3.1)
|
* [4.3.1](#4-3-1)
|
||||||
* [4.3.0](#4.3.0) 1 January 2020
|
* [4.3.0](#4-3-0) 1 January 2020
|
||||||
* [4.2.0](#4.2.0) 27 October 2019
|
* [4.2.0](#4-2-0) 27 October 2019
|
||||||
* [4.1.0](#4.1.0) 18 August 2019
|
* [4.1.0](#4-1-0) 18 August 2019
|
||||||
* [4.0.1](#4.0.1)
|
* [4.0.1](#4-0-1)
|
||||||
* [4.0.0](#4.0.0) 13 July 2019
|
* [4.0.0](#4-0-0) 13 July 2019
|
||||||
* [3.9.0](#3.9.0) 21 Feb 2019
|
* [3.9.0](#3-9-0) 21 Feb 2019
|
||||||
* [3.8.0](#3.8.0) 6 Nov 2018
|
* [3.8.0](#3-8-0) 6 Nov 2018
|
||||||
* [3.7.0](#3.7.0) 22 July 2018
|
* [3.7.0](#3-7-0) 22 July 2018
|
||||||
* [3.6.1](#3.6.1)
|
* [3.6.1](#3-6-1)
|
||||||
* [3.6.0](#3.6.0) 30 April 2018
|
* [3.6.0](#3-6-0) 30 April 2018
|
||||||
* [3.5.0](#3.5.0) 12 February 2018
|
* [3.5.0](#3-5-0) 12 February 2018
|
||||||
* [3.4.0](#3.4.0) 1 January 2018
|
* [3.4.0](#3-4-0) 1 January 2018
|
||||||
* [3.3.3](#3.3.3) 25 November 2017
|
* [3.3.3](#3-3-3) 25 November 2017
|
||||||
* [3.3.2](#3.3.2) Aug 27 2017
|
* [3.3.2](#3-3-2) Aug 27 2017
|
||||||
* [3.3.1](#3.3.1) June 7 2017
|
* [3.3.1](#3-3-1) June 7 2017
|
||||||
|
|
||||||
## 4.4.0
|
## 4.4.0
|
||||||
Expected: February 2020
|
Expected: February 2020
|
||||||
|
|
@ -37,7 +37,7 @@ Expected: February 2020
|
||||||
* You can also register explicit indexes for making binary search (not only list keys)
|
* You can also register explicit indexes for making binary search (not only list keys)
|
||||||
* For more info, see docs at [paths](https://clixon-docs.readthedocs.io/en/latest/paths.html) and
|
* For more info, see docs at [paths](https://clixon-docs.readthedocs.io/en/latest/paths.html) and
|
||||||
[search](https://clixon-docs.readthedocs.io/en/latest/xml.html#searching-in-xml)
|
[search](https://clixon-docs.readthedocs.io/en/latest/xml.html#searching-in-xml)
|
||||||
|
* Experimental: explicit search index, ie index any list variable, not just keys
|
||||||
### API changes on existing features (you may need to change your code)
|
### API changes on existing features (you may need to change your code)
|
||||||
* JSON parse error messages change from ` on line x: syntax error,..` to `json_parse: line x: syntax error`
|
* JSON parse error messages change from ` on line x: syntax error,..` to `json_parse: line x: syntax error`
|
||||||
* Unknown-element error message is more descriptive, eg from `namespace is: urn:example:clixon` to: `Failed to find YANG spec of XML node: x with parent: xp in namespace urn:example:clixon`.
|
* Unknown-element error message is more descriptive, eg from `namespace is: urn:example:clixon` to: `Failed to find YANG spec of XML node: x with parent: xp in namespace urn:example:clixon`.
|
||||||
|
|
|
||||||
|
|
@ -162,8 +162,6 @@ netconf_get_config(clicon_handle h,
|
||||||
int retval = -1;
|
int retval = -1;
|
||||||
cxobj *xfilter; /* filter */
|
cxobj *xfilter; /* filter */
|
||||||
char *ftype = NULL;
|
char *ftype = NULL;
|
||||||
cxobj *xdata;
|
|
||||||
yang_stmt *yspec;
|
|
||||||
|
|
||||||
/* ie <filter>...</filter> */
|
/* ie <filter>...</filter> */
|
||||||
if ((xfilter = xpath_first(xn, NULL, "filter")) != NULL)
|
if ((xfilter = xpath_first(xn, NULL, "filter")) != NULL)
|
||||||
|
|
@ -361,8 +359,6 @@ netconf_get(clicon_handle h,
|
||||||
int retval = -1;
|
int retval = -1;
|
||||||
cxobj *xfilter; /* filter */
|
cxobj *xfilter; /* filter */
|
||||||
char *ftype = NULL;
|
char *ftype = NULL;
|
||||||
cxobj *xdata;
|
|
||||||
yang_stmt *yspec;
|
|
||||||
|
|
||||||
/* ie <filter>...</filter> */
|
/* ie <filter>...</filter> */
|
||||||
if ((xfilter = xpath_first(xn, NULL, "filter")) != NULL)
|
if ((xfilter = xpath_first(xn, NULL, "filter")) != NULL)
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@ fi
|
||||||
|
|
||||||
h=$1
|
h=$1
|
||||||
|
|
||||||
|
ssh -t $h "test -d src || mkdir src"
|
||||||
ssh -t $h "test -d src/cligen || (cd src;git clone https://github.com/olofhagsand/cligen.git)"
|
ssh -t $h "test -d src/cligen || (cd src;git clone https://github.com/olofhagsand/cligen.git)"
|
||||||
ssh -t $h "(cd src/cligen;git pull)"
|
ssh -t $h "(cd src/cligen;git pull)"
|
||||||
ssh -t $h "(cd src/cligen;./configure)"
|
ssh -t $h "(cd src/cligen;./configure)"
|
||||||
|
|
|
||||||
|
|
@ -180,7 +180,7 @@ new "restconf get protocol tcp"
|
||||||
expecteq "$(curl -s -X GET http://localhost/restconf/data/system:system)" 0 '{"system:system":{"protocol":{"tcp":[null]}}}
|
expecteq "$(curl -s -X GET http://localhost/restconf/data/system:system)" 0 '{"system:system":{"protocol":{"tcp":[null]}}}
|
||||||
'
|
'
|
||||||
|
|
||||||
new "restconf set protocol tcp+udp fail"
|
new "restconf set protocol tcp+udp fail again"
|
||||||
expecteq "$(curl -s -X PUT -H "Content-Type: application/yang-data+json" http://localhost/restconf/data/system:system/protocol -d '{"system:protocol":{"tcp": [null], "udp": [null]}}')" 0 '{"ietf-restconf:errors":{"error":{"error-type":"application","error-tag":"bad-element","error-info":{"bad-element":"udp"},"error-severity":"error","error-message":"Element in choice statement already exists"}}}
'
|
expecteq "$(curl -s -X PUT -H "Content-Type: application/yang-data+json" http://localhost/restconf/data/system:system/protocol -d '{"system:protocol":{"tcp": [null], "udp": [null]}}')" 0 '{"ietf-restconf:errors":{"error":{"error-type":"application","error-tag":"bad-element","error-info":{"bad-element":"udp"},"error-severity":"error","error-message":"Element in choice statement already exists"}}}
'
|
||||||
|
|
||||||
new "cli set protocol udp"
|
new "cli set protocol udp"
|
||||||
|
|
|
||||||
|
|
@ -67,6 +67,10 @@ module clixon-config {
|
||||||
description
|
description
|
||||||
"Released in Clixon 3.8";
|
"Released in Clixon 3.8";
|
||||||
}
|
}
|
||||||
|
extension search_index {
|
||||||
|
description "This list argument acts as a search index using optimized binary search.
|
||||||
|
";
|
||||||
|
}
|
||||||
typedef startup_mode{
|
typedef startup_mode{
|
||||||
description
|
description
|
||||||
"Which method to boot/start clicon backend.
|
"Which method to boot/start clicon backend.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue