SNMP: Internal cache handling for rowstatus
Test: prefix SN=0 instead of CS=0 for override clixon_snmp start
This commit is contained in:
parent
5175cb8223
commit
49d19b263c
11 changed files with 554 additions and 336 deletions
28
test/lib.sh
28
test/lib.sh
|
|
@ -75,7 +75,7 @@ testname=
|
|||
: ${RCLOG:=}
|
||||
|
||||
# If set to 0, override starting of clixon_snmp in test (you bring your own)
|
||||
: ${CS:=1}
|
||||
: ${SN:=1}
|
||||
|
||||
# Namespace: netconf base
|
||||
BASENS='urn:ietf:params:xml:ns:netconf:base:1.0'
|
||||
|
|
@ -283,32 +283,6 @@ if $SNMPCHECK; then
|
|||
expectpart "$($getnext $oid)" 0 "$result"
|
||||
fi
|
||||
}
|
||||
|
||||
function validate_set(){
|
||||
oid=$1
|
||||
type=$2
|
||||
value=$3
|
||||
|
||||
case $type in
|
||||
"INTEGER")
|
||||
set_type="i"
|
||||
;;
|
||||
"STRING")
|
||||
set_type="s"
|
||||
;;
|
||||
"TIMETICKS")
|
||||
set_type="t"
|
||||
;;
|
||||
esac
|
||||
|
||||
new "Setting value $value to OID $oid with type $set_type"
|
||||
|
||||
if [ $type == "STRING" ]; then
|
||||
expectpart "$($snmpset $oid $set_type "$value")" 0 "$type: \"$value\""
|
||||
else
|
||||
expectpart "$($snmpset $oid $set_type "$value")" 0 "$type: $value"
|
||||
fi
|
||||
}
|
||||
fi
|
||||
|
||||
# Check sanity between --with-restconf setting and if nginx is started by systemd or not
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue