extension search index

This commit is contained in:
Olof hagsand 2020-02-20 15:08:25 +01:00
parent c43ee9e1ef
commit 2eae2b6000
5 changed files with 26 additions and 25 deletions

View file

@ -27,6 +27,7 @@ fi
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 "(cd src/cligen;git pull)"
ssh -t $h "(cd src/cligen;./configure)"

View file

@ -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]}}}
'
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"}}} '
new "cli set protocol udp"