Home | History | Annotate | Download | only in pyasn1_modules
      1 #
      2 # This file is part of pyasn1-modules software.
      3 #
      4 # Copyright (c) 2005-2017, Ilya Etingof <etingof (at] gmail.com>
      5 # License: http://pyasn1.sf.net/license.html
      6 #
      7 # SNMPv2c message syntax
      8 #
      9 # ASN.1 source from:
     10 # http://www.ietf.org/rfc/rfc1901.txt
     11 #
     12 from pyasn1.type import namedtype
     13 from pyasn1.type import namedval
     14 from pyasn1.type import univ
     15 
     16 
     17 class Message(univ.Sequence):
     18     componentType = namedtype.NamedTypes(
     19         namedtype.NamedType('version', univ.Integer(namedValues=namedval.NamedValues(('version-2c', 1)))),
     20         namedtype.NamedType('community', univ.OctetString()),
     21         namedtype.NamedType('data', univ.Any())
     22     )
     23