Added xpath support for predicate: current(); added by-reference return for schema_nodeid functions; prototype enum2int function

This commit is contained in:
Olof hagsand 2017-07-30 11:00:02 +02:00
parent 89cfe2a9b3
commit d0660bf611
9 changed files with 368 additions and 208 deletions

View file

@ -1,5 +1,6 @@
#!/bin/bash
# Advanced union types and generated code
# and enum w values
# include err() and new() functions
. ./lib.sh
@ -48,6 +49,14 @@ module example{
type af;
}
}
leaf status {
type enumeration {
enum up {
value 1;
}
enum down;
}
}
}
EOF
@ -101,6 +110,9 @@ expecteof "$clixon_netconf -qf $clixon_cf -y /tmp/type.yang" "<rpc><discard-chan
new "netconf commit"
expecteof "$clixon_netconf -qf $clixon_cf -y /tmp/type.yang" "<rpc><commit/></rpc>]]>]]>" "^<rpc-reply><ok/></rpc-reply>]]>]]>$"
new "cli enum value"
expectfn "$clixon_cli -1f $clixon_cf -l o -y /tmp/type.yang set status down" "^$"
new "Kill backend"
# Check if still alive
pid=`pgrep clixon_backend`