The pysnmp library is not maintained since 4 years now and it's
incompatible with recent libraries like pyasn1
Its fork pysnmp-lextudio is regularly maintained, we should move
to that.
Depends-On: I90274181c1e027d9b17a556fa1ac4767cbf6b5d0
Change-Id: I448c189bdb034e69c3ba69e799bd025333f5f3d1
Fixes .gitreview file to point to proper repo location.
This removes an old link to internap, and slightly improves the readme.
This likely needs more help, but merging a change will cause the github
mirror for this repo to sync; which is a needed operation right now.
Change-Id: I8d988040cd14a6f7c874ec7592cffd7787b9948b
- fix home_page url
- support Python from version 3.8 as it's minimum current version
supported in openstack and by ironic
- put testtools back into test-requirements
Change-Id: I3d975e945661b56f245af923c669d6d9f92f8131
This change introduces SNMPv3 support along with many encryption
protocols used in SNMP.
Change-Id: I891a8526d3896b6194d0c812b89c9f0130301102
Task: 12072
Story: 1751164
This change makes it possible to support all SNMP
versions (including strong crypto features)
as well as IPv6.
The followup patches are expected to implement these
new features.
New `debug_snmp` option added to configuration file
to facilitate troubleshooting of the SNMP issues.
Closes-Bug: #1751163
Change-Id: Iec6452201f85f2f4c486e94abe8c6b6bba68840d
The underlying pyasn1 library has a notion of `schema` and
`value` object. The `schema` object can't be used with
regular Python operators as values because `schema` does
not carry any value, it's rather a type.
This fix turns a couple of `NoSuchInstance` schema
objects into proper `value` objects to retain compatibility
with the latest pysnmp which removed the default initializer
of the `NoSuchInstance` object.
Change-Id: Id044a0e437724bf1f3581e9187e2a1e6c336b1bc
virtualpdu already uses PBR:-
setuptools.setup(
setup_requires=['pbr>=1.8'],
pbr=True)
This patch removes `MANIFEST.in` file as pbr generates a
sensible manifest from git files and some standard files
and it removes the need for an explicit `MANIFEST.in` file.
Change-Id: I3dbeb53faf46d681f5efdedb54159b2dd2c8b232
We recreate pysnmp errors within virtualpdu and errors has changed with
pysnmp 4.3.6
By adding the test name, the exceptions are now in sync.
Change-Id: I2d4dccde08bd85a166e8dd3e0f1d0708ea0f0c69
Since libvirt make takes really long for a change to take effect (>10
sec) this make sure that the target state is return when doing a snmp
get in the meanwhile.
The number of outlet may now be specified at the constructor call of the
PDU class. If defined, it will override the PDU class specific outlet
count.
Also, the SNMPPDUHarness.stop method was not protected with a lock.
Without this, the stop method simply fails to stop the thread if called
just after the start method.
Reviewed-By: Maxime Dupuis <mdupuis@internap.com>
Before, the outlet command was stored, it was working as expected for
POWER_ON and POWER_OFF but the REBOOT command is not a state. This is
why we introduced a command to state mapping in the core.