/usr/share/pyshared/pysnmp_mibs/IPV6-TC.py is in python-pysnmp4-mibs 0.1.3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | # PySNMP SMI module. Autogenerated from smidump -f python IPV6-TC
# by libsmi2pysnmp-0.1.3 at Mon Apr 2 20:39:13 2012,
# Python version sys.version_info(major=2, minor=7, micro=2, releaselevel='final', serial=0)
# Imports
( Integer, ObjectIdentifier, OctetString, ) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
( ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint, ValueRangeConstraint, ValueSizeConstraint, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion", "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint")
( Bits, Integer32, Integer32, MibIdentifier, TimeTicks, ) = mibBuilder.importSymbols("SNMPv2-SMI", "Bits", "Integer32", "Integer32", "MibIdentifier", "TimeTicks")
( TextualConvention, ) = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention")
# Types
class Ipv6Address(TextualConvention, OctetString):
displayHint = "2x:"
subtypeSpec = OctetString.subtypeSpec+ValueSizeConstraint(16,16)
fixedLength = 16
class Ipv6AddressIfIdentifier(TextualConvention, OctetString):
displayHint = "2x:"
subtypeSpec = OctetString.subtypeSpec+ValueSizeConstraint(0,8)
class Ipv6AddressPrefix(TextualConvention, OctetString):
displayHint = "2x:"
subtypeSpec = OctetString.subtypeSpec+ValueSizeConstraint(0,16)
class Ipv6IfIndex(TextualConvention, Integer32):
displayHint = "d"
subtypeSpec = Integer32.subtypeSpec+ValueRangeConstraint(1,2147483647)
class Ipv6IfIndexOrZero(TextualConvention, Integer32):
displayHint = "d"
subtypeSpec = Integer32.subtypeSpec+ValueRangeConstraint(0,2147483647)
# Exports
# Types
mibBuilder.exportSymbols("IPV6-TC", Ipv6Address=Ipv6Address, Ipv6AddressIfIdentifier=Ipv6AddressIfIdentifier, Ipv6AddressPrefix=Ipv6AddressPrefix, Ipv6IfIndex=Ipv6IfIndex, Ipv6IfIndexOrZero=Ipv6IfIndexOrZero)
|