2 Documentation Test suite for SNMP
3 Suite Setup Create Session session http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS}
4 Suite Teardown Delete All Sessions
7 Library RequestsLibrary
8 Library ../../../libraries/Common.py
9 Library ../../../libraries/Topology.py
10 Resource ../../../libraries/Utils.robot
11 Variables ../../../variables/Variables.py
14 ${REST_CONTEXT_SNMP_SET} /restconf/operations/snmp:snmp-get
15 ${DEVICE_IP} 10.86.3.13
19 [Documentation] SNMP get
21 ${resp} RequestsLibrary.Post Request session ${REST_CONTEXT_SNMP_SET} data={"input": {"ip-address": "${DEVICE_IP}","oid" : "1.3.6.1.2.1.1.1.0","get-type" : "GET-BULK","community" : "private" } }
22 Should Be Equal As Strings ${resp.status_code} 200
23 [Teardown] Report_Failure_Due_To_Bug 5360