From b257c84d44e1be5b114cc8a812ca0ab5773e57b2 Mon Sep 17 00:00:00 2001 From: elie Date: Sat, 19 Sep 2015 13:46:22 +0000 Subject: - Constraints assignment shortcut added to some base rfc1902 types (Integer, Integer32, OctetString, Bits). That formally constitutes ASN.1 sub-typing. - Base SNMP types documented --- docs/source/docs/snmp-data-types.rst | 75 ++++++++++++++++++++++++++++++++++-- 1 file changed, 72 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/source/docs/snmp-data-types.rst b/docs/source/docs/snmp-data-types.rst index 63d2f1a..caa14a3 100644 --- a/docs/source/docs/snmp-data-types.rst +++ b/docs/source/docs/snmp-data-types.rst @@ -5,12 +5,81 @@ SNMP data types SNMP represents real-world objects it serves along with their states in form of values. Those values each belong to one of SNMP types (:RFC:`1902#section-2`) which, in turn, are based -on *ASN.1* data description language. PySNMP types are derived -from `Python ASN.1 types `_ implementation. +on `ASN.1 `_ +data description language. PySNMP types are derived from +`Python ASN.1 types `_ implementation. .. toctree:: :maxdepth: 2 -.. autoclass:: pysnmp.proto.rfc1902.Integer(initializer) +.. _integer32: + +Integer32 type +-------------- + .. autoclass:: pysnmp.proto.rfc1902.Integer32(initializer) + :members: + +.. _integer: + +Integer type +------------ + +.. autoclass:: pysnmp.proto.rfc1902.Integer(initializer) + :members: + +.. _octetstring: + +OctetString type +---------------- + +.. autoclass:: pysnmp.proto.rfc1902.OctetString(strValue=None, hexValue=None) + :members: + +.. _ipaddress: + +IpAddress type +---------------- + +.. autoclass:: pysnmp.proto.rfc1902.IpAddress(strValue=None, hexValue=None) + +ObjectIdentifier type +--------------------- + +.. autoclass:: pysnmp.proto.rfc1902.ObjectIdentifier(initializer) + +Counter32 type +-------------- + +.. autoclass:: pysnmp.proto.rfc1902.Counter32(initializer) + +Gauge32 type +------------ + +.. autoclass:: pysnmp.proto.rfc1902.Gauge32(initializer) + +Unsigned32 type +--------------- + +.. autoclass:: pysnmp.proto.rfc1902.Unsigned32(initializer) + +TimeTicks type +-------------- + +.. autoclass:: pysnmp.proto.rfc1902.TimeTicks(initializer) + +Opaque type +----------- + +.. autoclass:: pysnmp.proto.rfc1902.Opaque(initializer) + +Counter64 type +-------------- + +.. autoclass:: pysnmp.proto.rfc1902.Counter64(initializer) + +Bits type +--------- +.. autoclass:: pysnmp.proto.rfc1902.Bits(initializer) + :members: -- cgit v1.2.1