You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
568 B
18 lines
568 B
#
|
|
# This file is part of pysnmp software.
|
|
#
|
|
# Copyright (c) 2005-2016, Ilya Etingof <ilya@glas.net>
|
|
# License: http://pysnmp.sf.net/license.html
|
|
#
|
|
from pyasn1.type import univ, namedtype, namedval
|
|
from pysnmp.proto import rfc1905
|
|
|
|
_version = univ.Integer(namedValues=namedval.NamedValues(('version-2c', 1)))
|
|
|
|
class Message(univ.Sequence):
|
|
componentType = namedtype.NamedTypes(
|
|
namedtype.NamedType('version', _version),
|
|
namedtype.NamedType('community', univ.OctetString()),
|
|
namedtype.NamedType('data', rfc1905.PDUs())
|
|
)
|