John-Mark Gurney
d0f230d258
pass through OIDs..
1 year ago
John-Mark Gurney
f4a974e774
add support for Lenovo CE0128TB.. minor bug fix for a NetGear
when ports are changed, set both egress and untagged... a switch
reset/sets the untagged bit upon egress change...
The Lenovo's SNMP get is broken w/ multiple OIDs, so add a hack
to detect that the switch is a Lenovo, and don't use getmany (well
call getmany_real w/ one OID at a time).
1 year ago
John-Mark Gurney
1375505f2c
0.5.0 broke the api, 0.4.8 works fine... more investigation needed..
1 year ago
John-Mark Gurney
8fb3d9e24e
use venv, and require >3.7...
2 years ago
John-Mark Gurney
55eabc2cd8
undo as tests were not updated...
2 years ago
John-Mark Gurney
2a1de3374f
not sure if this fix should remain, think it was to fix NOTE comment
2 years ago
John-Mark Gurney
288e4df9d7
add support for NetGear GS724TPv2.. This increases the timeout
to 10 seconds to deal w/ slow switches, but also puts in a proper
state machine for creating vlans. This deals w/ the fact that
this switch can not create the vlan and activate the vlan in a
single command...
4 years ago
John-Mark Gurney
c00eb02867
add support for detecting missing vlans, and creating them if needed...
more weirdness on how to get the current set of vlans
4 years ago
John-Mark Gurney
88b9c53e59
add support for setting arbitrary MIB values...
This can be used to set the STP priority for the root switch..
4 years ago
John-Mark Gurney
c1243c2484
forgot this in the 2 to 3 conversion..
4 years ago
John-Mark Gurney
c87cec6203
add some additional data that the tests depend upon to entr..
4 years ago
John-Mark Gurney
8b704d757d
update to Python 3..
4 years ago
John-Mark Gurney
5788b1c14e
confirmed this behavior on this switch as well..
5 years ago
John-Mark Gurney
2db546c42f
ignore some files that shouldn't be added to the repo..
5 years ago
John-Mark Gurney
67c1f39666
make it a proper installable package...
Also, fixup and clean up the tests so that the pass... minor edits
to support my custom config, and drop a couple tests as those are
tested in another test...
5 years ago
John-Mark Gurney
26fd8aa134
start of a README.md to explain how to use the project.
5 years ago
John-Mark Gurney
a453159bf9
parameterize auth data better to support SNMPv3 better..
5 years ago
John-Mark Gurney
6518252ea9
add a few more comments..
5 years ago
John-Mark Gurney
deaa55c453
handle multiple switches in a single module properly...
5 years ago
John-Mark Gurney
b66c9789ef
add some notes about other switches..
5 years ago
John-Mark Gurney
916a869da8
add a couple examples..
5 years ago
John-Mark Gurney
74cda5ac0d
add and update docs, wrap lines at 80 cols..
5 years ago
John-Mark Gurney
55d9a7cda8
add docs.. refactor to use a helper function instead of rolling
it's own.. also make sure getegress fully works.. more tests need
to be written..
5 years ago
John-Mark Gurney
11d0ed3509
improve formating a tad..
5 years ago
John-Mark Gurney
2cda272a04
add test case for when the server returns tooBig.. make sure we
subdivide the query into smaller chunks.. perfect example of how
the pysnmp hlapi isn't that high level...
5 years ago
John-Mark Gurney
edeb98568b
add some basic tests for SNMPSwitch that don't depend upon hardware...
5 years ago
John-Mark Gurney
9e673d1b79
add more notes about what is supported..
5 years ago
John-Mark Gurney
d8683f62b0
add ignore ports to test case... if a _getmany request is too big and
we can split it, do so.. This happened w/ a switch when using SNMPv3..
need to write a test case for this...
5 years ago
John-Mark Gurney
c3178726f1
add setting, return the switch when check changes so that we can
apply them..
5 years ago
John-Mark Gurney
436a647de2
add a few more test cases for cmpbits.. fix a bug from the new
test cases..
5 years ago
John-Mark Gurney
e42054d223
allow config to ignore some ports.. trim trailing zeros when comparing
so that we don't have to make the bits the same length as the switch..
5 years ago
John-Mark Gurney
50f12edfcf
add notes about implementation that I have found.
5 years ago
John-Mark Gurney
15cfc9d5dd
the import in a module gets a different class that the script does,
so we need to import and use that one...
catch more cases for only tagged ports..
5 years ago
John-Mark Gurney
fea82bea15
refactor _get to call _getmany...
5 years ago
John-Mark Gurney
09e73400cb
make check changes work completely...
5 years ago
John-Mark Gurney
f547b1a14f
convert the data to proper egress and untagged arrays..
5 years ago
John-Mark Gurney
e8947d250e
add support for figuring out what pvid's need to change to..
5 years ago
John-Mark Gurney
1833266506
advance the check changes a bit, and add a function to fetch pvids
5 years ago
John-Mark Gurney
74fe8f5efb
add the starting work on checking for changes..
5 years ago
John-Mark Gurney
d38c0f52ba
add function to get all ports for a switch, this will be used to
compare the switch's port list against the definition to make sure
that there is a complete definition...
Add the ability to skip the switch tests that can take a while to
complete...
5 years ago
John-Mark Gurney
7479d41931
first cut at a vlan manager utility.
5 years ago