14
0
forked from pool/python-pysnmp

Accepting request 208216 from home:posophe:branches:devel:languages:python

update

OBS-URL: https://build.opensuse.org/request/show/208216
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysnmp?expand=0&rev=16
This commit is contained in:
Denisart Benjamin
2013-11-24 21:01:03 +00:00
committed by Git OBS Bridge
parent 5f22d66890
commit 49789ed0fa
4 changed files with 131 additions and 13 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c5d78273f14afc6401b7456f086e7b56baaaa51fa0c39830d159bed611c9d89d
size 213079

3
pysnmp-4.2.5.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c46e65d99a604f690b3d5800e2f6e26e1ed9a3c7f7e17e7b4b4d897150f7077f
size 225014

View File

@@ -1,3 +1,126 @@
-------------------------------------------------------------------
Sun Nov 24 20:56:12 UTC 2013 - p.drouand@gmail.com
- Update to version 4.2.5
+ License updated to vanilla BSD 2 +Clause to ease package use
(http://opensource.org/licenses/BSD +2 +Clause).
+ A dozen of lightweight Twisted +based example scripts replaced more
complex example implementations used previously.
+ SNMP Proxy example apps separated into a larger set of more specialized
ones.
+ Most of Command Generator examples re +pointed to a live SNMP Agent
at demo.snmplabs.com to ease experimentation and adoption.
+ Multithreaded oneliner CommandGenerator example added.
+ Packet +level SNMP API (pysnmp.proto.api) getErrorIndex() method can now
be instructed to ignore portentially malformed errorIndex SNMP packet
value what sometimes happens with buggy SNMP implementations.
+ Standard SNMP Apps and built +in proxy now ignores malformed errorIndex
value.
+ Built +in logging now includes timestamps.
+ Multi +lingual capabilities of all CommandGenerator & NotificationOriginator
apps re +worked and improved. For instance it is now it's possible to run
getBulk() against a SNMPv1 Agent invoking built +in SNMP Proxy behind the
scene.
+ The $PYSNMP_MIB_DIR & $PYSNMP_MIB_DIRS & $PYSNMP_MIB_PKGS path separator
made platform +specific.
+ Change to rfc2576.v1tov2() logic: errorStatus = noSuchName is now
translated into rfc1905.noSuchObject exception value for *all* var +bindings
at once. Although RFC2576 does not suggest error +status +> v2c exception
translation, historically pysnmp used to perform it for a long time so we
can't easily stop doing that.
+ Exception re +raising improved at MibInstrumController.flipFlopFsm() and
asynsock/twisted dispatchers so that original traceback is preserved.
+ A single instance of transport dispatcher can now serve multiple
receivers (identified by IDs) chosen by a public data routing method.
+ SnmpEngine.[un]registerTransportDispatcher() methods now accept optional
receiver ID token to be used by transport dispatcher's data router. This
allows for multiple SNMP engines registration with a single transport
dispatcher.
+ Distribute is gone, switched to setuptools completely.
+ The snmpCommunityTable row selection improved to follow RFC2576, clause
5.2.1.
+ Asyncore +based dispatcher attempts to use poll() whenever available
on the platform. It would help handling a really large number (>1024)
of file descriptors.
+ AsynCommandGenerator.makeReadVarBinds() generalized into a new
makeVarBinds() method which replaces somewhat redundant code at setCmd()
and AsynNotificationOriginator.sendNotification().
+ AsynCommandGenerator.uncfgCmdGen() & AsynNotificationOriginator.uncfgCmdGen()
methods now accept optional authData parameter to remove specific entries
from LCD. This can be useful for modifying security parameters for
specific securityName.
+ SNMP credentials management reworked to separate userName from securityName
in snmpCommunityEntry and usmUserEntry tables. Changes made to addV1System(),
addV3User() functions as well as to their oneliner's wrappers.
+ The contextEngineId parameter of config.addV3User() and auth.UsmUserData()
renamed into securityEngineId as it's semantically correct
+ Oneliner UsmUserData() and CommunityData() classes now support clone()'ing
to facilitate authentication data management in user applications.
+ Oneliner transport target classes now support the getTransportInfo()
method that returns network addresses used on protocol level.
+ The config.addSocketTransport() helper renamed into config.addTransport()
and improved by automatically instantiating compatible TransportDispatcher
making it dispatcher +agnostic. As an additional bonus, application may not
call registerTransportDispatcher() as it would be called by addTransport().
+ The SnmpV3MessageProcessingModel.getPeerEngineInfo() method is implemented
to communicate discovered peer SNMP engine information to SNMP apps what
can be used for fine usmUserTable configuration.
+ AsynNotificationOriginator.cfgCmdGen() does not take into account
securityModel & securityLevel when reducing LCD access via addTrapUser().
This improves LCD consistency on sparse add/del operatons but also
does not let you to configure different securityModels per securityname
at VACM though the cfgCmdGen() wrapper.
+ MIB builder traceback formatting and reporting improved.
+ SNMP Engine object now has a snmpEngineID attribute exposed.
+ Fix to inet_ntop()/inet_pton() support on Windows at TRANSPORT +ADDRESS +MIB.
+ Fix to usmUserSecurityName table column implementation + + automatic value
generation from index value removed.
+ Fix and significant logic rework of snmpCommunityTable to make it working
in both Generator and Responder modes and better follow RFC2576
requirements on sequential entries lookup and selection. As a side effect,
untagged snmpCommunityTable entries will *not* match tagged
snmpTargetAddrTable entries and vice versa.
+ Fix to Twisted +based NotificationOriginator to make it serving INFORMs again.
+ Fix to rfc2576.v1tov2() logic: errorStatus = noSuchName is now translated
into rfc1905.noSuchObject exception value for *all* var +bindings. Although
this is not mentioned in RFC, it looks as a more consistent approach.
+ Fix of rounding error to base I/O dispatcher's next timer call calculation.
+ Explicit twisted dispatcher's timer resolution (of 1 sec) removed to make
use of global default of 0.5 sec.
+ Fix to twisted/udp non +default local endpoint binding features. Common
socket ('host', port) notation is now supported.
+ Fix to Twisted +based transport to make it closing UDP port / UNIX pipe
on shutdown.
+ Fix to Twisted +based dispatcher not to close transport on unregistration
at dispatcher as transports can potentially be reused elsewhere.
+ Fix to asyncore +based transport to work only with AsynsockDispatcher's
socket map and not to touch default asyncore's one. The latter have caused
dispatcher/transport restarting issues.
+ The delV3User() function improved to drop all rows from USM table that
were cloned from the target one.
+ Fix to exceptions handling at MsgAndPduDispatcher.sendPdu() to avoid
sendPduHandle miss (followed by system crash) on cache expiration run.
+ Break cyclic references at CommandResponder and NotificationReceiver apps
through close() method.
+ Fix to octet string typing at 3DES codec (used to throw an exception).
+ Fix to SnmpAdminString, SnmpTagList, SnmpTagValue types to make them
supporting UTF +8 initializers.
+ Fix to v1/v2c message processing module which used to refer to a
bogus stateReference in some cases what causes SNMP engine crashes.
+ Fix to IPv6 transport to zero ZoneID, FlowID and ScopeID components
sometimes coming along with incoming packet.
+ Fix to SNMPv1 MP module to pass stateReference to registered app on
unconfirmed notifications reception (to let NotificationReceiver
Apps browsing request details).
(transport information at the moment) at SNMP engine.
+ Asyncsock sockets now configured with SO_REUSEADDR option to fix possible
Windows error 10048.
+ Gracefully handle malformed SnmpEngineID at USM coming from SNMPv3 header.
+ Typos fixed in error +status constants at CommandResponder
+ Missing import added to oneliner auth module.
+ Cosmetic changes to v3arch example scripts.
- Change license; in changelog, BSD-2-Clause is explicit
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Apr 24 05:04:49 UTC 2013 - highwaystar.ru@gmail.com Wed Apr 24 05:04:49 UTC 2013 - highwaystar.ru@gmail.com

View File

@@ -16,11 +16,11 @@
# #
Name: python-pysnmp Name: python-pysnmp
Version: 4.2.4 Version: 4.2.5
Release: 0 Release: 0
Url: http://pysnmp.sourceforge.net/ Url: http://pysnmp.sourceforge.net/
Summary: A pure-Python SNMPv1/v2c/v3 library Summary: A pure-Python SNMPv1/v2c/v3 library
License: BSD-4-Clause License: BSD-2-Clause
Group: Development/Languages/Python Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/p/pysnmp/pysnmp-%{version}.tar.gz Source: http://pypi.python.org/packages/source/p/pysnmp/pysnmp-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -29,13 +29,11 @@ BuildRequires: python-pycrypto
BuildRequires: python-pyasn1 BuildRequires: python-pyasn1
Requires: python-pycrypto Requires: python-pycrypto
Requires: python-pyasn1 Requires: python-pyasn1
%if 0%{?suse_version} %if 0%{?suse_version} <= 1110
%py_requires %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%if 0%{?suse_version} > 1110 %else
BuildArch: noarch BuildArch: noarch
%endif %endif
%endif
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%description %description
This project aims at developing an SNMP v1/v2c/v3 engine written in the Python This project aims at developing an SNMP v1/v2c/v3 engine written in the Python
@@ -69,9 +67,6 @@ python setup.py build
python setup.py install --prefix=%{_prefix} --root=%{buildroot} python setup.py install --prefix=%{_prefix} --root=%{buildroot}
chmod -x docs/net-snmptrapd.conf docs/net-snmpd.conf chmod -x docs/net-snmptrapd.conf docs/net-snmpd.conf
%clean
rm -rf %{buildroot}
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc CHANGES LICENSE README THANKS TODO docs examples %doc CHANGES LICENSE README THANKS TODO docs examples