1#
2# PySNMP MIB module INET-ADDRESS-MIB (http://pysnmp.sf.net)
3# ASN.1 source http://mibs.snmplabs.com:80/asn1/INET-ADDRESS-MIB
4# Produced by pysmi-0.0.7 at Sun Feb 14 00:04:40 2016
5# On host bldfarm platform Linux version 4.1.13-100.fc21.x86_64 by user goose
6# Using Python version 3.5.0 (default, Jan  5 2016, 17:11:52)
7#
8( ObjectIdentifier, Integer, OctetString, ) = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString")
9( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
10( ValueSizeConstraint, ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueRangeConstraint, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueRangeConstraint")
11( NotificationGroup, ModuleCompliance, ) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
12( MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, mib_2, Counter32, ObjectIdentity, MibIdentifier, iso, IpAddress, Integer32, Unsigned32, NotificationType, Gauge32, Bits, ModuleIdentity, Counter64, ) = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks", "mib-2", "Counter32", "ObjectIdentity", "MibIdentifier", "iso", "IpAddress", "Integer32", "Unsigned32", "NotificationType", "Gauge32", "Bits", "ModuleIdentity", "Counter64")
13( DisplayString, TextualConvention, ) = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
14inetAddressMIB = ModuleIdentity((1, 3, 6, 1, 2, 1, 76)).setRevisions(("2005-02-04 00:00", "2002-05-09 00:00", "2000-06-08 00:00",))
15if mibBuilder.loadTexts: inetAddressMIB.setLastUpdated('200502040000Z')
16if mibBuilder.loadTexts: inetAddressMIB.setOrganization('IETF Operations and Management Area')
17if mibBuilder.loadTexts: inetAddressMIB.setContactInfo('Juergen Schoenwaelder (Editor)\n         International University Bremen\n         P.O. Box 750 561\n         28725 Bremen, Germany\n\n         Phone: +49 421 200-3587\n         EMail: j.schoenwaelder@iu-bremen.de\n\n         Send comments to <ietfmibs@ops.ietf.org>.')
18if mibBuilder.loadTexts: inetAddressMIB.setDescription('This MIB module defines textual conventions for\n         representing Internet addresses.  An Internet\n         address can be an IPv4 address, an IPv6 address,\n         or a DNS domain name.  This module also defines\n         textual conventions for Internet port numbers,\n         autonomous system numbers, and the length of an\n         Internet address prefix.\n\n         Copyright (C) The Internet Society (2005).  This version\n         of this MIB module is part of RFC 4001, see the RFC\n         itself for full legal notices.')
19class InetAddressType(Integer32, TextualConvention):
20    subtypeSpec = Integer32.subtypeSpec+ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 16,))
21    namedValues = NamedValues(("unknown", 0), ("ipv4", 1), ("ipv6", 2), ("ipv4z", 3), ("ipv6z", 4), ("dns", 16),)
22
23class InetAddress(OctetString, TextualConvention):
24    subtypeSpec = OctetString.subtypeSpec+ValueSizeConstraint(0,255)
25
26class InetAddressIPv4(OctetString, TextualConvention):
27    displayHint = '1d.1d.1d.1d'
28    subtypeSpec = OctetString.subtypeSpec+ValueSizeConstraint(4,4)
29    fixedLength = 4
30
31class InetAddressIPv6(OctetString, TextualConvention):
32    displayHint = '2x:2x:2x:2x:2x:2x:2x:2x'
33    subtypeSpec = OctetString.subtypeSpec+ValueSizeConstraint(16,16)
34    fixedLength = 16
35
36class InetAddressIPv4z(OctetString, TextualConvention):
37    displayHint = '1d.1d.1d.1d%4d'
38    subtypeSpec = OctetString.subtypeSpec+ValueSizeConstraint(8,8)
39    fixedLength = 8
40
41class InetAddressIPv6z(OctetString, TextualConvention):
42    displayHint = '2x:2x:2x:2x:2x:2x:2x:2x%4d'
43    subtypeSpec = OctetString.subtypeSpec+ValueSizeConstraint(20,20)
44    fixedLength = 20
45
46class InetAddressDNS(OctetString, TextualConvention):
47    displayHint = '255a'
48    subtypeSpec = OctetString.subtypeSpec+ValueSizeConstraint(1,255)
49
50class InetAddressPrefixLength(Unsigned32, TextualConvention):
51    displayHint = 'd'
52    subtypeSpec = Unsigned32.subtypeSpec+ValueRangeConstraint(0,2040)
53
54class InetPortNumber(Unsigned32, TextualConvention):
55    displayHint = 'd'
56    subtypeSpec = Unsigned32.subtypeSpec+ValueRangeConstraint(0,65535)
57
58class InetAutonomousSystemNumber(Unsigned32, TextualConvention):
59    displayHint = 'd'
60
61class InetScopeType(Integer32, TextualConvention):
62    subtypeSpec = Integer32.subtypeSpec+ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 8, 14,))
63    namedValues = NamedValues(("interfaceLocal", 1), ("linkLocal", 2), ("subnetLocal", 3), ("adminLocal", 4), ("siteLocal", 5), ("organizationLocal", 8), ("global", 14),)
64
65class InetZoneIndex(Unsigned32, TextualConvention):
66    displayHint = 'd'
67
68class InetVersion(Integer32, TextualConvention):
69    subtypeSpec = Integer32.subtypeSpec+ConstraintsUnion(SingleValueConstraint(0, 1, 2,))
70    namedValues = NamedValues(("unknown", 0), ("ipv4", 1), ("ipv6", 2),)
71
72mibBuilder.exportSymbols("INET-ADDRESS-MIB", InetAddressIPv4z=InetAddressIPv4z, InetAddressDNS=InetAddressDNS, InetPortNumber=InetPortNumber, InetAddress=InetAddress, InetAutonomousSystemNumber=InetAutonomousSystemNumber, InetScopeType=InetScopeType, PYSNMP_MODULE_ID=inetAddressMIB, InetAddressIPv4=InetAddressIPv4, InetZoneIndex=InetZoneIndex, InetAddressType=InetAddressType, InetAddressIPv6=InetAddressIPv6, InetAddressPrefixLength=InetAddressPrefixLength, inetAddressMIB=inetAddressMIB, InetAddressIPv6z=InetAddressIPv6z, InetVersion=InetVersion)
73