* Added flags to example backend to control its behaviour:
* Start with `-- -r` to run the reset plugin * Start with `-- -s` to run the state callback * Rewrote yang dir load algorithm to follow the algorithm in [FAQ](FAQ(doc/FAQ.md#how-are-yang-files-found) with more precise timestamp checks, etc.
This commit is contained in:
parent
8f656da15b
commit
606245ef02
20 changed files with 495 additions and 190 deletions
|
|
@ -147,7 +147,7 @@ cat <<EOF > $dbdir/running_db
|
|||
</config>
|
||||
EOF
|
||||
|
||||
new "test params: -s running -f $cfg -y $fyang"
|
||||
new "test params: -s running -f $cfg -y $fyang -- -s"
|
||||
|
||||
if [ $BE -ne 0 ]; then
|
||||
new "kill old backend"
|
||||
|
|
@ -156,7 +156,7 @@ if [ $BE -ne 0 ]; then
|
|||
err
|
||||
fi
|
||||
new "start backend"
|
||||
start_backend -s running -f $cfg -y $fyang
|
||||
start_backend -s running -f $cfg -y $fyang -- -s
|
||||
|
||||
new "waiting"
|
||||
sleep $RCWAIT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue