Added new clixon-lib yang module for internal netconf protocol. Currently only extends the standard with a debug RPC.
This commit is contained in:
parent
11479f7ec3
commit
7a8f242a09
14 changed files with 362 additions and 32 deletions
|
|
@ -12,19 +12,23 @@ if [ $? -ne 0 ]; then
|
|||
err
|
||||
fi
|
||||
|
||||
new "Check installed files"
|
||||
new "Check installed files /usr"
|
||||
if [ ! -d $dir/usr ]; then
|
||||
err $dir/usr
|
||||
fi
|
||||
new "Check installed files /www-data"
|
||||
if [ ! -d $dir/www-data ]; then
|
||||
err $dir/www-data
|
||||
fi
|
||||
new "Check installed files clixon-config"
|
||||
if [ ! -f $dir/usr/local/share/clixon/clixon-config* ]; then
|
||||
err $dir/usr/local/share/clixon/clixon-config*
|
||||
fi
|
||||
new "Check installed files libclixon.so"
|
||||
if [ ! -h $dir/usr/local/lib/libclixon.so ]; then
|
||||
err $dir/usr/local/lib/libclixon.so
|
||||
fi
|
||||
new "Check installed files libclixon_backend.so"
|
||||
if [ ! -h $dir/usr/local/lib/libclixon_backend.so ]; then
|
||||
err $dir/usr/local/lib/libclixon_backend.so
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -118,12 +118,12 @@ expecteq "$(curl -s -H 'Accept: application/yang-data+xml' -G http://localhost/r
|
|||
|
||||
# Should be alphabetically ordered
|
||||
new2 "restconf get restconf/operations. RFC8040 3.3.2 (json)"
|
||||
expecteq "$(curl -sG http://localhost/restconf/operations)" '{"operations": {"example:empty": null,"example:client-rpc": null}{"ietf-routing:fib-route": null,"ietf-routing:route-count": null}}
|
||||
expecteq "$(curl -sG http://localhost/restconf/operations)" '{"operations": {"example:empty": null,"example:client-rpc": null,"ietf-routing:fib-route": null,"ietf-routing:route-count": null,"clixon-lib:debug": null}
|
||||
'
|
||||
|
||||
new "restconf get restconf/operations. RFC8040 3.3.2 (xml)"
|
||||
ret=$(curl -s -H "Accept: application/yang-data+xml" -G http://localhost/restconf/operations)
|
||||
expect='<operations><empty xmlns="urn:example:clixon"/><client-rpc xmlns="urn:example:clixon"/><fib-route xmlns="urn:ietf:params:xml:ns:yang:ietf-routing"/><route-count xmlns="urn:ietf:params:xml:ns:yang:ietf-routing"/></operations>'
|
||||
expect='<operations><empty xmlns="urn:example:clixon"/><client-rpc xmlns="urn:example:clixon"/><fib-route xmlns="urn:ietf:params:xml:ns:yang:ietf-routing"/><route-count xmlns="urn:ietf:params:xml:ns:yang:ietf-routing"/><debug xmlns="http://clicon.org/lib"/></operations>'
|
||||
match=`echo $ret | grep -EZo "$expect"`
|
||||
if [ -z "$match" ]; then
|
||||
err "$expect" "$ret"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue