diff options
| author | Karen Schoener <karen@voltanet.io> | 2021-01-21 11:35:11 -0500 |
|---|---|---|
| committer | Karen Schoener <karen@voltanet.io> | 2021-01-21 11:43:03 -0500 |
| commit | 6ea2bd40d8fee4aba48a2bfbb9ac1abe85bc6ffd (patch) | |
| tree | c91e4fc9adba5e75314f0595e3597c1c19252eef /tests/topotests/simple-snmp-test/test_simple_snmp.py | |
| parent | 52624d79452c3f6688f3e2a7f9f4aa667d178c7c (diff) | |
tests: update snmp test infastructure api test_oid_walk
Update test_oid_walk to either validate specific oids or
to validate all rows walked.
Signed-off-by: Karen Schoener <karen@voltanet.io>
Diffstat (limited to 'tests/topotests/simple-snmp-test/test_simple_snmp.py')
| -rwxr-xr-x | tests/topotests/simple-snmp-test/test_simple_snmp.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/topotests/simple-snmp-test/test_simple_snmp.py b/tests/topotests/simple-snmp-test/test_simple_snmp.py index 2b609ef14c..25bb9f7195 100755 --- a/tests/topotests/simple-snmp-test/test_simple_snmp.py +++ b/tests/topotests/simple-snmp-test/test_simple_snmp.py @@ -120,11 +120,13 @@ def test_r1_bgp_version(): "Wait for protocol convergence" tgen = get_topogen() - #tgen.mininet_cli() + # tgen.mininet_cli() r1 = tgen.net.get("r1") r1_snmp = SnmpTester(r1, "1.1.1.1", "public", "2c") assert r1_snmp.test_oid("bgpVersin", None) assert r1_snmp.test_oid("bgpVersion", "10") + assert r1_snmp.test_oid_walk("bgpVersion", ["10"]) + assert r1_snmp.test_oid_walk("bgpVersion", ["10"], ["0"]) if __name__ == "__main__": |
