SNMP test: remove state from snmp_set
This commit is contained in:
parent
3c82f1668f
commit
86e6c3cd5e
2 changed files with 1 additions and 29 deletions
|
|
@ -250,7 +250,6 @@ validate_oid $NAME12 $NAME12 "INTEGER" 1
|
||||||
new "Get bulk OIDs"
|
new "Get bulk OIDs"
|
||||||
expectpart "$($snmpbulkget $OID1)" 0 "$OID2 = INTEGER: -1" "$OID3 = STRING: \"This is not default\"" "$OID4 = Timeticks: (12345) 0:02:03.45" "$OID5 = INTEGER: 48" "$OID6 = Gauge32: 123123123" "$OID7 = INTEGER: 3" "$OID8 = Counter32: 123456" "$OID9 = Counter64: 4294967296" "$OID10 = INTEGER: 1" "$OID11 = Timeticks: (1234567890) 142 days, 21:21:18.90"
|
expectpart "$($snmpbulkget $OID1)" 0 "$OID2 = INTEGER: -1" "$OID3 = STRING: \"This is not default\"" "$OID4 = Timeticks: (12345) 0:02:03.45" "$OID5 = INTEGER: 48" "$OID6 = Gauge32: 123123123" "$OID7 = INTEGER: 3" "$OID8 = Counter32: 123456" "$OID9 = Counter64: 4294967296" "$OID10 = INTEGER: 1" "$OID11 = Timeticks: (1234567890) 142 days, 21:21:18.90"
|
||||||
|
|
||||||
snmp_debug=false
|
|
||||||
if $snmp_debug; then
|
if $snmp_debug; then
|
||||||
new "Test SNMP table netSnmpIETFWGTable"
|
new "Test SNMP table netSnmpIETFWGTable"
|
||||||
expectpart "$($snmptable $OID13)" 0 "Name1" "Name2"
|
expectpart "$($snmptable $OID13)" 0 "Name1" "Name2"
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,6 @@ snmpset="$(type -p snmpset) -On -c public -v2c localhost "
|
||||||
|
|
||||||
cfg=$dir/conf_startup.xml
|
cfg=$dir/conf_startup.xml
|
||||||
fyang=$dir/clixon-example.yang
|
fyang=$dir/clixon-example.yang
|
||||||
fstate=$dir/state.xml
|
|
||||||
|
|
||||||
# AgentX unix socket
|
# AgentX unix socket
|
||||||
SOCK=/var/run/snmp.sock
|
SOCK=/var/run/snmp.sock
|
||||||
|
|
@ -39,32 +38,6 @@ cat <<EOF > $cfg
|
||||||
</clixon-config>
|
</clixon-config>
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat <<EOF > $fstate
|
|
||||||
<CLIXON-TYPES-MIB xmlns="urn:ietf:params:xml:ns:yang:smiv2:CLIXON-TYPES-MIB">
|
|
||||||
<clixonExampleScalars>
|
|
||||||
<clixonExampleInteger>0x7fffffff</clixonExampleInteger>
|
|
||||||
<clixonExampleSleeper>-1</clixonExampleSleeper>
|
|
||||||
<clixonExampleString>This is not default</clixonExampleString>
|
|
||||||
</clixonExampleScalars>
|
|
||||||
<clixonIETFWGTable>
|
|
||||||
<clixonIETFWGEntry>
|
|
||||||
<nsIETFWGName>index</nsIETFWGName>
|
|
||||||
<nsIETFWGChair1>Name1</nsIETFWGChair1>
|
|
||||||
<nsIETFWGChair2>Name2</nsIETFWGChair2>
|
|
||||||
</clixonIETFWGEntry>
|
|
||||||
</clixonIETFWGTable>
|
|
||||||
<clixonHostsTable>
|
|
||||||
<clixonHostsEntry>
|
|
||||||
<clixonHostName>test</clixonHostName>
|
|
||||||
<clixonHostAddressType>ipv4</clixonHostAddressType>
|
|
||||||
<clixonHostAddress>10.20.30.40</clixonHostAddress>
|
|
||||||
<clixonHostStorage>permanent</clixonHostStorage>
|
|
||||||
<clixonHostRowStatus>active</clixonHostRowStatus>
|
|
||||||
</clixonHostsEntry>
|
|
||||||
</clixonHostsTable>
|
|
||||||
</CLIXON-TYPES-MIB>
|
|
||||||
EOF
|
|
||||||
|
|
||||||
cat <<EOF > $fyang
|
cat <<EOF > $fyang
|
||||||
module clixon-example{
|
module clixon-example{
|
||||||
yang-version 1.1;
|
yang-version 1.1;
|
||||||
|
|
@ -95,7 +68,7 @@ function testinit(){
|
||||||
sudo pkill -f clixon_backend
|
sudo pkill -f clixon_backend
|
||||||
|
|
||||||
new "Starting backend"
|
new "Starting backend"
|
||||||
start_backend -s init -f $cfg -- -sS $fstate
|
start_backend -s init -f $cfg
|
||||||
fi
|
fi
|
||||||
|
|
||||||
new "wait backend"
|
new "wait backend"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue