content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
# # PySNMP MIB module RADLAN-rndMng (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/RADLAN-rndMng # Produced by pysmi-0.3.4 at Wed May 1 14:51:28 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, ValueRangeConstraint, ConstraintsUnion, ValueSizeConstraint, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueRangeConstraint", "ConstraintsUnion", "ValueSizeConstraint", "SingleValueConstraint") InterfaceIndex, = mibBuilder.importSymbols("IF-MIB", "InterfaceIndex") InetAddress, InetAddressType = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddress", "InetAddressType") rnd, = mibBuilder.importSymbols("RADLAN-MIB", "rnd") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Integer32, Counter64, Bits, ModuleIdentity, Gauge32, MibIdentifier, Counter32, ObjectIdentity, IpAddress, TimeTicks, MibScalar, MibTable, MibTableRow, MibTableColumn, Unsigned32, NotificationType, iso = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "Counter64", "Bits", "ModuleIdentity", "Gauge32", "MibIdentifier", "Counter32", "ObjectIdentity", "IpAddress", "TimeTicks", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Unsigned32", "NotificationType", "iso") RowStatus, TextualConvention, TruthValue, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "RowStatus", "TextualConvention", "TruthValue", "DisplayString") rndMng = ModuleIdentity((1, 3, 6, 1, 4, 1, 89, 1)) rndMng.setRevisions(('2012-12-04 00:00', '2012-04-04 00:00', '2009-02-24 00:00', '2007-10-24 00:00', '2006-06-20 00:00', '2004-06-01 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: rndMng.setRevisionsDescriptions(('Added rlSysNameTable object.', 'Added rlScheduledReload object.', 'Added rlRunningCDBequalToStartupCDB object.', 'Added rlGroupManagement branch.', 'Added rlRebootDelay object', 'Initial version of this MIB.',)) if mibBuilder.loadTexts: rndMng.setLastUpdated('201212040000Z') if mibBuilder.loadTexts: rndMng.setOrganization('Radlan Computer Communications Ltd.') if mibBuilder.loadTexts: rndMng.setContactInfo('radlan.com') if mibBuilder.loadTexts: rndMng.setDescription('The private MIB module definition for RND general management MIB.') rndSysId = MibScalar((1, 3, 6, 1, 4, 1, 89, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rndSysId.setStatus('current') if mibBuilder.loadTexts: rndSysId.setDescription('Identification of an RND device. The device type for each integer clarifies the sysObjectID in MIB - II.') rndAction = MibScalar((1, 3, 6, 1, 4, 1, 89, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(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))).clone(namedValues=NamedValues(("reset", 1), ("sendNetworkTab", 2), ("deleteNetworkTab", 3), ("sendRoutingTab", 4), ("deleteRoutingTab", 5), ("sendLanTab", 6), ("deleteLanTab", 7), ("deleteArpTab", 8), ("sendArpTab", 9), ("deleteRouteTab", 10), ("sendRouteTab", 11), ("backupSPFRoutingTab", 12), ("backupIPRoutingTab", 13), ("backupNetworkTab", 14), ("backupLanTab", 15), ("backupArpTab", 16), ("backupIPXRipTab", 17), ("backupIPXSAPTab", 18), ("resetStartupCDB", 19), ("eraseStartupCDB", 20), ("deleteZeroHopRoutingAllocTab", 21), ("slipDisconnect", 22), ("deleteDynamicLanTab", 23), ("eraseRunningCDB", 24), ("copyStartupToRunning", 25), ("none", 26), ("resetToFactoryDefaults", 27)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: rndAction.setStatus('current') if mibBuilder.loadTexts: rndAction.setDescription('This variable enables the operator to perform one of the specified actions on the tables maintained by the network device. Send actions require support of proprietery File exchange protocol.') rndFileName = MibScalar((1, 3, 6, 1, 4, 1, 89, 1, 3), OctetString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rndFileName.setStatus('current') if mibBuilder.loadTexts: rndFileName.setDescription('The name of the file used internally by RND for transferring tables maintained by network devices, using a prorietary File exchange protocol.') rlSnmpVersionSupported = MibScalar((1, 3, 6, 1, 4, 1, 89, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readonly") if mibBuilder.loadTexts: rlSnmpVersionSupported.setStatus('current') if mibBuilder.loadTexts: rlSnmpVersionSupported.setDescription('Indicates the snmp versions that are supported by this device.') rlSnmpMibVersion = MibScalar((1, 3, 6, 1, 4, 1, 89, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlSnmpMibVersion.setStatus('current') if mibBuilder.loadTexts: rlSnmpMibVersion.setDescription('Indicates the snmp support version that is supported by this device.') rlCpuUtilEnable = MibScalar((1, 3, 6, 1, 4, 1, 89, 1, 6), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlCpuUtilEnable.setStatus('current') if mibBuilder.loadTexts: rlCpuUtilEnable.setDescription('Enables measurement of the device CPU utilization. In order to get real values for rlCpuUtilDuringLastSecond, rlCpuUtilDuringLastMinute and rlCpuUtilDuringLast5Minutes, the value of this object must be true.') rlCpuUtilDuringLastSecond = MibScalar((1, 3, 6, 1, 4, 1, 89, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 101))).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCpuUtilDuringLastSecond.setStatus('current') if mibBuilder.loadTexts: rlCpuUtilDuringLastSecond.setDescription('Percentage of the device CPU utilization during last second. The value 101 is a dummy value, indicating that the CPU utilization was not measured (since measurement is disabled or was disabled during last second).') rlCpuUtilDuringLastMinute = MibScalar((1, 3, 6, 1, 4, 1, 89, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 101))).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCpuUtilDuringLastMinute.setStatus('current') if mibBuilder.loadTexts: rlCpuUtilDuringLastMinute.setDescription('Percentage of the device CPU utilization during last minute. The value 101 is a dummy value, indicating that the CPU utilization was not measured (since measurement is disabled or was disabled during last minute).') rlCpuUtilDuringLast5Minutes = MibScalar((1, 3, 6, 1, 4, 1, 89, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 101))).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCpuUtilDuringLast5Minutes.setStatus('current') if mibBuilder.loadTexts: rlCpuUtilDuringLast5Minutes.setDescription('Percentage of the device CPU utilization during the last 5 minutes. The value 101 is a dummy value, indicating that the CPU utilization was not measured (since measurement is disabled or was disabled during last 5 minutes).') rlRebootDelay = MibScalar((1, 3, 6, 1, 4, 1, 89, 1, 10), TimeTicks()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlRebootDelay.setStatus('current') if mibBuilder.loadTexts: rlRebootDelay.setDescription('Setting the variable will cause the device to reboot rlRebootDelay timeticks from the moment this variable was set. If not set, the variable will return a value of 4294967295. If set to 4294967295, reboot action is cancelled. The maximum delay is set by the host parameter: reboot_delay_max') rlGroupManagement = MibIdentifier((1, 3, 6, 1, 4, 1, 89, 1, 11)) rlGroupMngQuery = MibScalar((1, 3, 6, 1, 4, 1, 89, 1, 11, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("query", 1), ("idle", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlGroupMngQuery.setStatus('current') if mibBuilder.loadTexts: rlGroupMngQuery.setDescription('Setting value query will cause the device to query for UPNP devices on the network. The device will always return value idle for GET.') rlGroupMngQueryPeriod = MibScalar((1, 3, 6, 1, 4, 1, 89, 1, 11, 2), Integer32()).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: rlGroupMngQueryPeriod.setStatus('current') if mibBuilder.loadTexts: rlGroupMngQueryPeriod.setDescription('Sets desired interval between queries for UPNP devices on the network. Setting 0 will result in no such query. Note that the actual query interval might be less than the set value if another application running in the device requested a shorter interval. Likewise setting 0 will not necessarily stop periodic queries if another application is still interested in periodic polling.') rlGroupMngLastUpdate = MibScalar((1, 3, 6, 1, 4, 1, 89, 1, 11, 3), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlGroupMngLastUpdate.setStatus('current') if mibBuilder.loadTexts: rlGroupMngLastUpdate.setDescription('The last time rlGroupMng MIB was updated.') rlGroupMngDevicesTable = MibTable((1, 3, 6, 1, 4, 1, 89, 1, 11, 4), ) if mibBuilder.loadTexts: rlGroupMngDevicesTable.setStatus('current') if mibBuilder.loadTexts: rlGroupMngDevicesTable.setDescription('The table showing the discovered devices.') rlGroupMngDeviceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 1, 11, 4, 1), ).setIndexNames((0, "RADLAN-rndMng", "rlGroupMngDeviceIdType"), (0, "RADLAN-rndMng", "rlGroupMngDeviceId"), (0, "RADLAN-rndMng", "rlGroupMngSubdevice")) if mibBuilder.loadTexts: rlGroupMngDeviceEntry.setStatus('current') if mibBuilder.loadTexts: rlGroupMngDeviceEntry.setDescription(' The row definition for this table.') rlGroupMngDeviceIdType = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 1, 11, 4, 1, 1), InetAddressType()) if mibBuilder.loadTexts: rlGroupMngDeviceIdType.setStatus('current') if mibBuilder.loadTexts: rlGroupMngDeviceIdType.setDescription('The IP address type of the discovered device ') rlGroupMngDeviceId = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 1, 11, 4, 1, 2), InetAddress()) if mibBuilder.loadTexts: rlGroupMngDeviceId.setStatus('current') if mibBuilder.loadTexts: rlGroupMngDeviceId.setDescription('The IP address of the discovered device ') rlGroupMngSubdevice = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 1, 11, 4, 1, 3), Integer32()) if mibBuilder.loadTexts: rlGroupMngSubdevice.setStatus('current') if mibBuilder.loadTexts: rlGroupMngSubdevice.setDescription('A subdevice within the rlGroupMngDeviceId. Only subdevices with greatest specifity will be kept (specific UUID device is more specific than basic device which is in turn more specific than root device. ') rlGroupMngDeviceDescription = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 1, 11, 4, 1, 4), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlGroupMngDeviceDescription.setStatus('current') if mibBuilder.loadTexts: rlGroupMngDeviceDescription.setDescription('The discovery protocol description of the device.') rlGroupMngGroupMngEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 1, 11, 4, 1, 5), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlGroupMngGroupMngEnabled.setStatus('current') if mibBuilder.loadTexts: rlGroupMngGroupMngEnabled.setDescription('Indicates whether the device has Group Management enable.') rlGroupMngGroupLLDPDeviceId = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 1, 11, 4, 1, 6), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlGroupMngGroupLLDPDeviceId.setStatus('current') if mibBuilder.loadTexts: rlGroupMngGroupLLDPDeviceId.setDescription('The LLDP device id. If it is empty the device id is not known (either it is a non-MTS device or a non-LLDP supporting MTS device.') rlGroupMngDeviceVendor = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 1, 11, 4, 1, 7), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlGroupMngDeviceVendor.setStatus('current') if mibBuilder.loadTexts: rlGroupMngDeviceVendor.setDescription('The vendor of the device. If empty the vendor is not known.') rlGroupMngDeviceAdvertisedCachingTime = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 1, 11, 4, 1, 8), Integer32()).setUnits('seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: rlGroupMngDeviceAdvertisedCachingTime.setStatus('current') if mibBuilder.loadTexts: rlGroupMngDeviceAdvertisedCachingTime.setDescription('The caching time advertised by the device. If no update for this device has been received during this caching time the system will assume that the device has left the network and will therefore remove its entry from the table.') rlGroupMngDeviceLocationURL = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 1, 11, 4, 1, 9), DisplayString()).setUnits('seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: rlGroupMngDeviceLocationURL.setStatus('current') if mibBuilder.loadTexts: rlGroupMngDeviceLocationURL.setDescription('The URL inidicating the location of the XML presenting the details of the device.') rlGroupMngDeviceLastSeen = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 1, 11, 4, 1, 10), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlGroupMngDeviceLastSeen.setStatus('current') if mibBuilder.loadTexts: rlGroupMngDeviceLastSeen.setDescription('The value of sysUpTime at the moment of last reception of an update for this device. ') rlRunningCDBequalToStartupCDB = MibScalar((1, 3, 6, 1, 4, 1, 89, 1, 13), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlRunningCDBequalToStartupCDB.setStatus('current') if mibBuilder.loadTexts: rlRunningCDBequalToStartupCDB.setDescription('Indicates whether there are changes in running CDB that were not saved in flash.') rlClearMib = MibScalar((1, 3, 6, 1, 4, 1, 89, 1, 14), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlClearMib.setStatus('current') if mibBuilder.loadTexts: rlClearMib.setDescription('Clear MIB value for scalars or tables: Delete all entries for tables with dynamic entries. Set table entries default values for table with static entries. Set scalar default value.') rlScheduledReload = MibScalar((1, 3, 6, 1, 4, 1, 89, 1, 15), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 10))).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlScheduledReload.setStatus('current') if mibBuilder.loadTexts: rlScheduledReload.setDescription("Used for requesting a delayed reload of the device in a specific desired time, should be configured in one of the following formats: 'athhmmddMM' , 'inhhhmmm' or '', setting this value to an empty string will result in request for cancellation of a (previously) committed system reload. to complete the request, the 'rlScheduledReloadCommit' must also be set to either TRUE (apply) or FALSE (discard) for completion of the transaction. failing from doing so will result in an indefinite lock of the API") rlScheduledReloadPendingDate = MibScalar((1, 3, 6, 1, 4, 1, 89, 1, 16), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 24))).setMaxAccess("readonly") if mibBuilder.loadTexts: rlScheduledReloadPendingDate.setStatus('current') if mibBuilder.loadTexts: rlScheduledReloadPendingDate.setDescription("Displays the most recently requested scheduled-reload due date in 'inhhhmmathhmmssddMMYYYYw' format. where 'w' stands for weekDay (1-7). if there is no pending/scheduled reload request, string will be empty") rlScheduledReloadApprovedDate = MibScalar((1, 3, 6, 1, 4, 1, 89, 1, 17), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 24))).setMaxAccess("readonly") if mibBuilder.loadTexts: rlScheduledReloadApprovedDate.setStatus('current') if mibBuilder.loadTexts: rlScheduledReloadApprovedDate.setDescription("Displays the most recently approved/committed scheduled-reload date in 'inhhhmmathhmmssddMMYYYYw' format. where 'w' stands for weekDay (1-7). if there is no committed scheduled-reload , string will be empty") rlScheduledReloadCommit = MibScalar((1, 3, 6, 1, 4, 1, 89, 1, 18), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlScheduledReloadCommit.setStatus('current') if mibBuilder.loadTexts: rlScheduledReloadCommit.setDescription("commits the pending scheduled-reload request, and completes the transaction. when this value is set to TRUE, the system is instructed to perform the requested reload operation at the requested date/time as was given in 'rlScheduledReload'. setting this value to FALSE will discard the request.") rlSysNameTable = MibTable((1, 3, 6, 1, 4, 1, 89, 1, 19), ) if mibBuilder.loadTexts: rlSysNameTable.setStatus('current') if mibBuilder.loadTexts: rlSysNameTable.setDescription('Holds the current system name configuration.') rlSysNameEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 1, 19, 1), ).setIndexNames((0, "RADLAN-rndMng", "rlSysNameSource"), (0, "RADLAN-rndMng", "rlSysNameIfIndex")) if mibBuilder.loadTexts: rlSysNameEntry.setStatus('current') if mibBuilder.loadTexts: rlSysNameEntry.setDescription('The row definition of this table.') rlSysNameSource = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 1, 19, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("dhcpv6", 1), ("dhcpv4", 2), ("static", 3))).clone('static')) if mibBuilder.loadTexts: rlSysNameSource.setStatus('current') if mibBuilder.loadTexts: rlSysNameSource.setDescription("The system name source. 'static' if defined by user through CLI, 'dhcpv6' or 'dhcpv4' if received by DHCP network protocol.") rlSysNameIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 1, 19, 1, 2), InterfaceIndex().clone(1)) if mibBuilder.loadTexts: rlSysNameIfIndex.setStatus('current') if mibBuilder.loadTexts: rlSysNameIfIndex.setDescription('The IfIndex from which the system-name configuration was received, for static entries, value will always be 1.') rlSysNameName = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 1, 19, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readcreate") if mibBuilder.loadTexts: rlSysNameName.setStatus('current') if mibBuilder.loadTexts: rlSysNameName.setDescription("An administratively-assigned name for this managed node. By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string.") rlSysNameRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 1, 19, 1, 4), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: rlSysNameRowStatus.setStatus('current') if mibBuilder.loadTexts: rlSysNameRowStatus.setDescription('The row status variable, used according to row installation and removal conventions.') rlErrdisableLinkFlappingCause = MibScalar((1, 3, 6, 1, 4, 1, 89, 1, 20), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlErrdisableLinkFlappingCause.setStatus('current') if mibBuilder.loadTexts: rlErrdisableLinkFlappingCause.setDescription('Enable/Disable Link flapping error disable in the switch.') mibBuilder.exportSymbols("RADLAN-rndMng", rlGroupMngDeviceAdvertisedCachingTime=rlGroupMngDeviceAdvertisedCachingTime, rlGroupManagement=rlGroupManagement, rlCpuUtilDuringLastMinute=rlCpuUtilDuringLastMinute, rlGroupMngDevicesTable=rlGroupMngDevicesTable, rlCpuUtilDuringLast5Minutes=rlCpuUtilDuringLast5Minutes, rlSysNameIfIndex=rlSysNameIfIndex, rlGroupMngDeviceIdType=rlGroupMngDeviceIdType, rlSysNameSource=rlSysNameSource, rlGroupMngLastUpdate=rlGroupMngLastUpdate, rlGroupMngDeviceLastSeen=rlGroupMngDeviceLastSeen, rndAction=rndAction, rlGroupMngDeviceLocationURL=rlGroupMngDeviceLocationURL, rlGroupMngDeviceVendor=rlGroupMngDeviceVendor, rlSysNameName=rlSysNameName, rlGroupMngDeviceEntry=rlGroupMngDeviceEntry, rlScheduledReloadApprovedDate=rlScheduledReloadApprovedDate, rndMng=rndMng, rlScheduledReloadCommit=rlScheduledReloadCommit, rndSysId=rndSysId, rlGroupMngSubdevice=rlGroupMngSubdevice, rlGroupMngDeviceDescription=rlGroupMngDeviceDescription, rlScheduledReload=rlScheduledReload, rlGroupMngQueryPeriod=rlGroupMngQueryPeriod, rlGroupMngDeviceId=rlGroupMngDeviceId, rlErrdisableLinkFlappingCause=rlErrdisableLinkFlappingCause, rlCpuUtilEnable=rlCpuUtilEnable, rlSnmpMibVersion=rlSnmpMibVersion, rlSysNameTable=rlSysNameTable, rndFileName=rndFileName, rlRebootDelay=rlRebootDelay, rlRunningCDBequalToStartupCDB=rlRunningCDBequalToStartupCDB, PYSNMP_MODULE_ID=rndMng, rlSnmpVersionSupported=rlSnmpVersionSupported, rlScheduledReloadPendingDate=rlScheduledReloadPendingDate, rlSysNameRowStatus=rlSysNameRowStatus, rlGroupMngGroupLLDPDeviceId=rlGroupMngGroupLLDPDeviceId, rlGroupMngQuery=rlGroupMngQuery, rlSysNameEntry=rlSysNameEntry, rlGroupMngGroupMngEnabled=rlGroupMngGroupMngEnabled, rlCpuUtilDuringLastSecond=rlCpuUtilDuringLastSecond, rlClearMib=rlClearMib)
(integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_intersection, value_range_constraint, constraints_union, value_size_constraint, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ValueRangeConstraint', 'ConstraintsUnion', 'ValueSizeConstraint', 'SingleValueConstraint') (interface_index,) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndex') (inet_address, inet_address_type) = mibBuilder.importSymbols('INET-ADDRESS-MIB', 'InetAddress', 'InetAddressType') (rnd,) = mibBuilder.importSymbols('RADLAN-MIB', 'rnd') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (integer32, counter64, bits, module_identity, gauge32, mib_identifier, counter32, object_identity, ip_address, time_ticks, mib_scalar, mib_table, mib_table_row, mib_table_column, unsigned32, notification_type, iso) = mibBuilder.importSymbols('SNMPv2-SMI', 'Integer32', 'Counter64', 'Bits', 'ModuleIdentity', 'Gauge32', 'MibIdentifier', 'Counter32', 'ObjectIdentity', 'IpAddress', 'TimeTicks', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Unsigned32', 'NotificationType', 'iso') (row_status, textual_convention, truth_value, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'RowStatus', 'TextualConvention', 'TruthValue', 'DisplayString') rnd_mng = module_identity((1, 3, 6, 1, 4, 1, 89, 1)) rndMng.setRevisions(('2012-12-04 00:00', '2012-04-04 00:00', '2009-02-24 00:00', '2007-10-24 00:00', '2006-06-20 00:00', '2004-06-01 00:00')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: rndMng.setRevisionsDescriptions(('Added rlSysNameTable object.', 'Added rlScheduledReload object.', 'Added rlRunningCDBequalToStartupCDB object.', 'Added rlGroupManagement branch.', 'Added rlRebootDelay object', 'Initial version of this MIB.')) if mibBuilder.loadTexts: rndMng.setLastUpdated('201212040000Z') if mibBuilder.loadTexts: rndMng.setOrganization('Radlan Computer Communications Ltd.') if mibBuilder.loadTexts: rndMng.setContactInfo('radlan.com') if mibBuilder.loadTexts: rndMng.setDescription('The private MIB module definition for RND general management MIB.') rnd_sys_id = mib_scalar((1, 3, 6, 1, 4, 1, 89, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rndSysId.setStatus('current') if mibBuilder.loadTexts: rndSysId.setDescription('Identification of an RND device. The device type for each integer clarifies the sysObjectID in MIB - II.') rnd_action = mib_scalar((1, 3, 6, 1, 4, 1, 89, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(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))).clone(namedValues=named_values(('reset', 1), ('sendNetworkTab', 2), ('deleteNetworkTab', 3), ('sendRoutingTab', 4), ('deleteRoutingTab', 5), ('sendLanTab', 6), ('deleteLanTab', 7), ('deleteArpTab', 8), ('sendArpTab', 9), ('deleteRouteTab', 10), ('sendRouteTab', 11), ('backupSPFRoutingTab', 12), ('backupIPRoutingTab', 13), ('backupNetworkTab', 14), ('backupLanTab', 15), ('backupArpTab', 16), ('backupIPXRipTab', 17), ('backupIPXSAPTab', 18), ('resetStartupCDB', 19), ('eraseStartupCDB', 20), ('deleteZeroHopRoutingAllocTab', 21), ('slipDisconnect', 22), ('deleteDynamicLanTab', 23), ('eraseRunningCDB', 24), ('copyStartupToRunning', 25), ('none', 26), ('resetToFactoryDefaults', 27)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: rndAction.setStatus('current') if mibBuilder.loadTexts: rndAction.setDescription('This variable enables the operator to perform one of the specified actions on the tables maintained by the network device. Send actions require support of proprietery File exchange protocol.') rnd_file_name = mib_scalar((1, 3, 6, 1, 4, 1, 89, 1, 3), octet_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rndFileName.setStatus('current') if mibBuilder.loadTexts: rndFileName.setDescription('The name of the file used internally by RND for transferring tables maintained by network devices, using a prorietary File exchange protocol.') rl_snmp_version_supported = mib_scalar((1, 3, 6, 1, 4, 1, 89, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1)).setFixedLength(1)).setMaxAccess('readonly') if mibBuilder.loadTexts: rlSnmpVersionSupported.setStatus('current') if mibBuilder.loadTexts: rlSnmpVersionSupported.setDescription('Indicates the snmp versions that are supported by this device.') rl_snmp_mib_version = mib_scalar((1, 3, 6, 1, 4, 1, 89, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlSnmpMibVersion.setStatus('current') if mibBuilder.loadTexts: rlSnmpMibVersion.setDescription('Indicates the snmp support version that is supported by this device.') rl_cpu_util_enable = mib_scalar((1, 3, 6, 1, 4, 1, 89, 1, 6), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlCpuUtilEnable.setStatus('current') if mibBuilder.loadTexts: rlCpuUtilEnable.setDescription('Enables measurement of the device CPU utilization. In order to get real values for rlCpuUtilDuringLastSecond, rlCpuUtilDuringLastMinute and rlCpuUtilDuringLast5Minutes, the value of this object must be true.') rl_cpu_util_during_last_second = mib_scalar((1, 3, 6, 1, 4, 1, 89, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 101))).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCpuUtilDuringLastSecond.setStatus('current') if mibBuilder.loadTexts: rlCpuUtilDuringLastSecond.setDescription('Percentage of the device CPU utilization during last second. The value 101 is a dummy value, indicating that the CPU utilization was not measured (since measurement is disabled or was disabled during last second).') rl_cpu_util_during_last_minute = mib_scalar((1, 3, 6, 1, 4, 1, 89, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 101))).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCpuUtilDuringLastMinute.setStatus('current') if mibBuilder.loadTexts: rlCpuUtilDuringLastMinute.setDescription('Percentage of the device CPU utilization during last minute. The value 101 is a dummy value, indicating that the CPU utilization was not measured (since measurement is disabled or was disabled during last minute).') rl_cpu_util_during_last5_minutes = mib_scalar((1, 3, 6, 1, 4, 1, 89, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 101))).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCpuUtilDuringLast5Minutes.setStatus('current') if mibBuilder.loadTexts: rlCpuUtilDuringLast5Minutes.setDescription('Percentage of the device CPU utilization during the last 5 minutes. The value 101 is a dummy value, indicating that the CPU utilization was not measured (since measurement is disabled or was disabled during last 5 minutes).') rl_reboot_delay = mib_scalar((1, 3, 6, 1, 4, 1, 89, 1, 10), time_ticks()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlRebootDelay.setStatus('current') if mibBuilder.loadTexts: rlRebootDelay.setDescription('Setting the variable will cause the device to reboot rlRebootDelay timeticks from the moment this variable was set. If not set, the variable will return a value of 4294967295. If set to 4294967295, reboot action is cancelled. The maximum delay is set by the host parameter: reboot_delay_max') rl_group_management = mib_identifier((1, 3, 6, 1, 4, 1, 89, 1, 11)) rl_group_mng_query = mib_scalar((1, 3, 6, 1, 4, 1, 89, 1, 11, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('query', 1), ('idle', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlGroupMngQuery.setStatus('current') if mibBuilder.loadTexts: rlGroupMngQuery.setDescription('Setting value query will cause the device to query for UPNP devices on the network. The device will always return value idle for GET.') rl_group_mng_query_period = mib_scalar((1, 3, 6, 1, 4, 1, 89, 1, 11, 2), integer32()).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: rlGroupMngQueryPeriod.setStatus('current') if mibBuilder.loadTexts: rlGroupMngQueryPeriod.setDescription('Sets desired interval between queries for UPNP devices on the network. Setting 0 will result in no such query. Note that the actual query interval might be less than the set value if another application running in the device requested a shorter interval. Likewise setting 0 will not necessarily stop periodic queries if another application is still interested in periodic polling.') rl_group_mng_last_update = mib_scalar((1, 3, 6, 1, 4, 1, 89, 1, 11, 3), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlGroupMngLastUpdate.setStatus('current') if mibBuilder.loadTexts: rlGroupMngLastUpdate.setDescription('The last time rlGroupMng MIB was updated.') rl_group_mng_devices_table = mib_table((1, 3, 6, 1, 4, 1, 89, 1, 11, 4)) if mibBuilder.loadTexts: rlGroupMngDevicesTable.setStatus('current') if mibBuilder.loadTexts: rlGroupMngDevicesTable.setDescription('The table showing the discovered devices.') rl_group_mng_device_entry = mib_table_row((1, 3, 6, 1, 4, 1, 89, 1, 11, 4, 1)).setIndexNames((0, 'RADLAN-rndMng', 'rlGroupMngDeviceIdType'), (0, 'RADLAN-rndMng', 'rlGroupMngDeviceId'), (0, 'RADLAN-rndMng', 'rlGroupMngSubdevice')) if mibBuilder.loadTexts: rlGroupMngDeviceEntry.setStatus('current') if mibBuilder.loadTexts: rlGroupMngDeviceEntry.setDescription(' The row definition for this table.') rl_group_mng_device_id_type = mib_table_column((1, 3, 6, 1, 4, 1, 89, 1, 11, 4, 1, 1), inet_address_type()) if mibBuilder.loadTexts: rlGroupMngDeviceIdType.setStatus('current') if mibBuilder.loadTexts: rlGroupMngDeviceIdType.setDescription('The IP address type of the discovered device ') rl_group_mng_device_id = mib_table_column((1, 3, 6, 1, 4, 1, 89, 1, 11, 4, 1, 2), inet_address()) if mibBuilder.loadTexts: rlGroupMngDeviceId.setStatus('current') if mibBuilder.loadTexts: rlGroupMngDeviceId.setDescription('The IP address of the discovered device ') rl_group_mng_subdevice = mib_table_column((1, 3, 6, 1, 4, 1, 89, 1, 11, 4, 1, 3), integer32()) if mibBuilder.loadTexts: rlGroupMngSubdevice.setStatus('current') if mibBuilder.loadTexts: rlGroupMngSubdevice.setDescription('A subdevice within the rlGroupMngDeviceId. Only subdevices with greatest specifity will be kept (specific UUID device is more specific than basic device which is in turn more specific than root device. ') rl_group_mng_device_description = mib_table_column((1, 3, 6, 1, 4, 1, 89, 1, 11, 4, 1, 4), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlGroupMngDeviceDescription.setStatus('current') if mibBuilder.loadTexts: rlGroupMngDeviceDescription.setDescription('The discovery protocol description of the device.') rl_group_mng_group_mng_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 89, 1, 11, 4, 1, 5), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlGroupMngGroupMngEnabled.setStatus('current') if mibBuilder.loadTexts: rlGroupMngGroupMngEnabled.setDescription('Indicates whether the device has Group Management enable.') rl_group_mng_group_lldp_device_id = mib_table_column((1, 3, 6, 1, 4, 1, 89, 1, 11, 4, 1, 6), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlGroupMngGroupLLDPDeviceId.setStatus('current') if mibBuilder.loadTexts: rlGroupMngGroupLLDPDeviceId.setDescription('The LLDP device id. If it is empty the device id is not known (either it is a non-MTS device or a non-LLDP supporting MTS device.') rl_group_mng_device_vendor = mib_table_column((1, 3, 6, 1, 4, 1, 89, 1, 11, 4, 1, 7), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlGroupMngDeviceVendor.setStatus('current') if mibBuilder.loadTexts: rlGroupMngDeviceVendor.setDescription('The vendor of the device. If empty the vendor is not known.') rl_group_mng_device_advertised_caching_time = mib_table_column((1, 3, 6, 1, 4, 1, 89, 1, 11, 4, 1, 8), integer32()).setUnits('seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: rlGroupMngDeviceAdvertisedCachingTime.setStatus('current') if mibBuilder.loadTexts: rlGroupMngDeviceAdvertisedCachingTime.setDescription('The caching time advertised by the device. If no update for this device has been received during this caching time the system will assume that the device has left the network and will therefore remove its entry from the table.') rl_group_mng_device_location_url = mib_table_column((1, 3, 6, 1, 4, 1, 89, 1, 11, 4, 1, 9), display_string()).setUnits('seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: rlGroupMngDeviceLocationURL.setStatus('current') if mibBuilder.loadTexts: rlGroupMngDeviceLocationURL.setDescription('The URL inidicating the location of the XML presenting the details of the device.') rl_group_mng_device_last_seen = mib_table_column((1, 3, 6, 1, 4, 1, 89, 1, 11, 4, 1, 10), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlGroupMngDeviceLastSeen.setStatus('current') if mibBuilder.loadTexts: rlGroupMngDeviceLastSeen.setDescription('The value of sysUpTime at the moment of last reception of an update for this device. ') rl_running_cd_bequal_to_startup_cdb = mib_scalar((1, 3, 6, 1, 4, 1, 89, 1, 13), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlRunningCDBequalToStartupCDB.setStatus('current') if mibBuilder.loadTexts: rlRunningCDBequalToStartupCDB.setDescription('Indicates whether there are changes in running CDB that were not saved in flash.') rl_clear_mib = mib_scalar((1, 3, 6, 1, 4, 1, 89, 1, 14), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlClearMib.setStatus('current') if mibBuilder.loadTexts: rlClearMib.setDescription('Clear MIB value for scalars or tables: Delete all entries for tables with dynamic entries. Set table entries default values for table with static entries. Set scalar default value.') rl_scheduled_reload = mib_scalar((1, 3, 6, 1, 4, 1, 89, 1, 15), display_string().subtype(subtypeSpec=value_size_constraint(0, 10))).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlScheduledReload.setStatus('current') if mibBuilder.loadTexts: rlScheduledReload.setDescription("Used for requesting a delayed reload of the device in a specific desired time, should be configured in one of the following formats: 'athhmmddMM' , 'inhhhmmm' or '', setting this value to an empty string will result in request for cancellation of a (previously) committed system reload. to complete the request, the 'rlScheduledReloadCommit' must also be set to either TRUE (apply) or FALSE (discard) for completion of the transaction. failing from doing so will result in an indefinite lock of the API") rl_scheduled_reload_pending_date = mib_scalar((1, 3, 6, 1, 4, 1, 89, 1, 16), display_string().subtype(subtypeSpec=value_size_constraint(0, 24))).setMaxAccess('readonly') if mibBuilder.loadTexts: rlScheduledReloadPendingDate.setStatus('current') if mibBuilder.loadTexts: rlScheduledReloadPendingDate.setDescription("Displays the most recently requested scheduled-reload due date in 'inhhhmmathhmmssddMMYYYYw' format. where 'w' stands for weekDay (1-7). if there is no pending/scheduled reload request, string will be empty") rl_scheduled_reload_approved_date = mib_scalar((1, 3, 6, 1, 4, 1, 89, 1, 17), display_string().subtype(subtypeSpec=value_size_constraint(0, 24))).setMaxAccess('readonly') if mibBuilder.loadTexts: rlScheduledReloadApprovedDate.setStatus('current') if mibBuilder.loadTexts: rlScheduledReloadApprovedDate.setDescription("Displays the most recently approved/committed scheduled-reload date in 'inhhhmmathhmmssddMMYYYYw' format. where 'w' stands for weekDay (1-7). if there is no committed scheduled-reload , string will be empty") rl_scheduled_reload_commit = mib_scalar((1, 3, 6, 1, 4, 1, 89, 1, 18), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlScheduledReloadCommit.setStatus('current') if mibBuilder.loadTexts: rlScheduledReloadCommit.setDescription("commits the pending scheduled-reload request, and completes the transaction. when this value is set to TRUE, the system is instructed to perform the requested reload operation at the requested date/time as was given in 'rlScheduledReload'. setting this value to FALSE will discard the request.") rl_sys_name_table = mib_table((1, 3, 6, 1, 4, 1, 89, 1, 19)) if mibBuilder.loadTexts: rlSysNameTable.setStatus('current') if mibBuilder.loadTexts: rlSysNameTable.setDescription('Holds the current system name configuration.') rl_sys_name_entry = mib_table_row((1, 3, 6, 1, 4, 1, 89, 1, 19, 1)).setIndexNames((0, 'RADLAN-rndMng', 'rlSysNameSource'), (0, 'RADLAN-rndMng', 'rlSysNameIfIndex')) if mibBuilder.loadTexts: rlSysNameEntry.setStatus('current') if mibBuilder.loadTexts: rlSysNameEntry.setDescription('The row definition of this table.') rl_sys_name_source = mib_table_column((1, 3, 6, 1, 4, 1, 89, 1, 19, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('dhcpv6', 1), ('dhcpv4', 2), ('static', 3))).clone('static')) if mibBuilder.loadTexts: rlSysNameSource.setStatus('current') if mibBuilder.loadTexts: rlSysNameSource.setDescription("The system name source. 'static' if defined by user through CLI, 'dhcpv6' or 'dhcpv4' if received by DHCP network protocol.") rl_sys_name_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 89, 1, 19, 1, 2), interface_index().clone(1)) if mibBuilder.loadTexts: rlSysNameIfIndex.setStatus('current') if mibBuilder.loadTexts: rlSysNameIfIndex.setDescription('The IfIndex from which the system-name configuration was received, for static entries, value will always be 1.') rl_sys_name_name = mib_table_column((1, 3, 6, 1, 4, 1, 89, 1, 19, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readcreate') if mibBuilder.loadTexts: rlSysNameName.setStatus('current') if mibBuilder.loadTexts: rlSysNameName.setDescription("An administratively-assigned name for this managed node. By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string.") rl_sys_name_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 89, 1, 19, 1, 4), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: rlSysNameRowStatus.setStatus('current') if mibBuilder.loadTexts: rlSysNameRowStatus.setDescription('The row status variable, used according to row installation and removal conventions.') rl_errdisable_link_flapping_cause = mib_scalar((1, 3, 6, 1, 4, 1, 89, 1, 20), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlErrdisableLinkFlappingCause.setStatus('current') if mibBuilder.loadTexts: rlErrdisableLinkFlappingCause.setDescription('Enable/Disable Link flapping error disable in the switch.') mibBuilder.exportSymbols('RADLAN-rndMng', rlGroupMngDeviceAdvertisedCachingTime=rlGroupMngDeviceAdvertisedCachingTime, rlGroupManagement=rlGroupManagement, rlCpuUtilDuringLastMinute=rlCpuUtilDuringLastMinute, rlGroupMngDevicesTable=rlGroupMngDevicesTable, rlCpuUtilDuringLast5Minutes=rlCpuUtilDuringLast5Minutes, rlSysNameIfIndex=rlSysNameIfIndex, rlGroupMngDeviceIdType=rlGroupMngDeviceIdType, rlSysNameSource=rlSysNameSource, rlGroupMngLastUpdate=rlGroupMngLastUpdate, rlGroupMngDeviceLastSeen=rlGroupMngDeviceLastSeen, rndAction=rndAction, rlGroupMngDeviceLocationURL=rlGroupMngDeviceLocationURL, rlGroupMngDeviceVendor=rlGroupMngDeviceVendor, rlSysNameName=rlSysNameName, rlGroupMngDeviceEntry=rlGroupMngDeviceEntry, rlScheduledReloadApprovedDate=rlScheduledReloadApprovedDate, rndMng=rndMng, rlScheduledReloadCommit=rlScheduledReloadCommit, rndSysId=rndSysId, rlGroupMngSubdevice=rlGroupMngSubdevice, rlGroupMngDeviceDescription=rlGroupMngDeviceDescription, rlScheduledReload=rlScheduledReload, rlGroupMngQueryPeriod=rlGroupMngQueryPeriod, rlGroupMngDeviceId=rlGroupMngDeviceId, rlErrdisableLinkFlappingCause=rlErrdisableLinkFlappingCause, rlCpuUtilEnable=rlCpuUtilEnable, rlSnmpMibVersion=rlSnmpMibVersion, rlSysNameTable=rlSysNameTable, rndFileName=rndFileName, rlRebootDelay=rlRebootDelay, rlRunningCDBequalToStartupCDB=rlRunningCDBequalToStartupCDB, PYSNMP_MODULE_ID=rndMng, rlSnmpVersionSupported=rlSnmpVersionSupported, rlScheduledReloadPendingDate=rlScheduledReloadPendingDate, rlSysNameRowStatus=rlSysNameRowStatus, rlGroupMngGroupLLDPDeviceId=rlGroupMngGroupLLDPDeviceId, rlGroupMngQuery=rlGroupMngQuery, rlSysNameEntry=rlSysNameEntry, rlGroupMngGroupMngEnabled=rlGroupMngGroupMngEnabled, rlCpuUtilDuringLastSecond=rlCpuUtilDuringLastSecond, rlClearMib=rlClearMib)
s = '100' print(s) s = 'abc1234-09232<>?323' print(s) s = 'abc 123' print(s) s = ' ' print(s)
s = '100' print(s) s = 'abc1234-09232<>?323' print(s) s = 'abc 123' print(s) s = ' ' print(s)
description = 'Slit ZB0 using Beckhoff controllers' group = 'lowlevel' includes = ['zz_absoluts'] instrument_values = configdata('instrument.values') showcase_values = configdata('cf_showcase.showcase_values') optic_values = configdata('cf_optic.optic_values') tango_base = instrument_values['tango_base'] code_base = instrument_values['code_base'] index = 4 devices = dict( # zb0_a = device('nicos.devices.generic.Axis', # description = 'zb0 axis', # motor = 'zb0_motor', # precision = 0.02, # maxtries = 3, # lowlevel = True, # ), zb0 = device(code_base + 'slits.SingleSlit', # length: 13 mm description = 'zb0, singleslit', motor = 'zb0_motor', nok_start = 4121.5, nok_end = 4134.5, nok_gap = 1, masks = { 'slit': 0, 'point': 0, 'gisans': -110 * optic_values['gisans_scale'], }, unit = 'mm', ), # zb0_temp = device(code_base + 'beckhoff.nok.BeckhoffTemp', # description = 'Temperatur for ZB0 Motor', # tangodevice = tango_base + 'optic/io/modbus', # address = 0x3020+index*10, # word address # abslimits = (-1000, 1000), # lowlevel = showcase_values['hide_temp'], # ), # zb0_analog = device(code_base + 'beckhoff.nok.BeckhoffPoti', # description = 'Poti for ZB0 no ref', # tangodevice = tango_base + 'optic/io/modbus', # address = 0x3020+index*10, # word address # abslimits = (-1000, 1000), # poly = [-176.49512271969755, 0.00794154091586989], # lowlevel = True or showcase_values['hide_poti'], # ), # zb0_acc = device(code_base + 'nok_support.MotorEncoderDifference', # description = 'calc error Motor and poti', # motor = 'zb0_motor', # analog = 'zb0_analog', # lowlevel = True or showcase_values['hide_acc'], # unit = 'mm' # ), )
description = 'Slit ZB0 using Beckhoff controllers' group = 'lowlevel' includes = ['zz_absoluts'] instrument_values = configdata('instrument.values') showcase_values = configdata('cf_showcase.showcase_values') optic_values = configdata('cf_optic.optic_values') tango_base = instrument_values['tango_base'] code_base = instrument_values['code_base'] index = 4 devices = dict(zb0=device(code_base + 'slits.SingleSlit', description='zb0, singleslit', motor='zb0_motor', nok_start=4121.5, nok_end=4134.5, nok_gap=1, masks={'slit': 0, 'point': 0, 'gisans': -110 * optic_values['gisans_scale']}, unit='mm'))
# Given an integer n, return true if it is possible to represent n as the sum of distinct powers of three. Otherwise, return false. # An integer y is a power of three if there exists an integer x such that y == 3x. def checkPowersOfThree(n): while n > 0: if n % 3 > 1: return False n //= 3 return True print(checkPowersOfThree(12)) print(checkPowersOfThree(21)) print(checkPowersOfThree(91)) print(checkPowersOfThree(100))
def check_powers_of_three(n): while n > 0: if n % 3 > 1: return False n //= 3 return True print(check_powers_of_three(12)) print(check_powers_of_three(21)) print(check_powers_of_three(91)) print(check_powers_of_three(100))
def longest_increasing_subsequency(l: List) -> int: result = end = 0 for i in range(len(l)): if i > 0 and l[i - 1] >= l[i]: end = i result = max(result, i - end+1) return result print(longest_increasing_subsequency([3,5,7,2,1])) print(longest_increasing_subsequency([2,2,2,2])) print(longest_increasing_subsequency([])) print(longest_increasing_subsequency([2,2,3,4,4]))
def longest_increasing_subsequency(l: List) -> int: result = end = 0 for i in range(len(l)): if i > 0 and l[i - 1] >= l[i]: end = i result = max(result, i - end + 1) return result print(longest_increasing_subsequency([3, 5, 7, 2, 1])) print(longest_increasing_subsequency([2, 2, 2, 2])) print(longest_increasing_subsequency([])) print(longest_increasing_subsequency([2, 2, 3, 4, 4]))
train_data_path = "data/chunked/train/train_*" valid_data_path = "data/chunked/valid/valid_*" test_data_path = "data/chunked/test/test_*" vocab_path = "data/vocab" # Hyperparameters hidden_dim = 512 emb_dim = 256 batch_size = 200 max_enc_steps = 55 #99% of the articles are within length 55 max_dec_steps = 15 #99% of the titles are within length 15 beam_size = 4 min_dec_steps= 3 vocab_size = 50000 lr = 0.001 rand_unif_init_mag = 0.02 trunc_norm_init_std = 1e-4 eps = 1e-12 max_iterations = 500000 save_model_path = "data/saved_models" intra_encoder = True intra_decoder = True
train_data_path = 'data/chunked/train/train_*' valid_data_path = 'data/chunked/valid/valid_*' test_data_path = 'data/chunked/test/test_*' vocab_path = 'data/vocab' hidden_dim = 512 emb_dim = 256 batch_size = 200 max_enc_steps = 55 max_dec_steps = 15 beam_size = 4 min_dec_steps = 3 vocab_size = 50000 lr = 0.001 rand_unif_init_mag = 0.02 trunc_norm_init_std = 0.0001 eps = 1e-12 max_iterations = 500000 save_model_path = 'data/saved_models' intra_encoder = True intra_decoder = True
# from https://github.com/pyca/bcrypt/blob/3.1.7/tests/test_bcrypt.py # # Copyright 2013 Donald Stufft # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. [ ( b"Kk4DQuMMfZL9o", b"$2b$04$cVWp4XaNU8a4v1uMRum2SO", b"$2b$04$cVWp4XaNU8a4v1uMRum2SO026BWLIoQMD/TXg5uZV.0P.uO8m3YEm", ), ( b"9IeRXmnGxMYbs", b"$2b$04$pQ7gRO7e6wx/936oXhNjrO", b"$2b$04$pQ7gRO7e6wx/936oXhNjrOUNOHL1D0h1N2IDbJZYs.1ppzSof6SPy", ), ( b"xVQVbwa1S0M8r", b"$2b$04$SQe9knOzepOVKoYXo9xTte", b"$2b$04$SQe9knOzepOVKoYXo9xTteNYr6MBwVz4tpriJVe3PNgYufGIsgKcW", ), ( b"Zfgr26LWd22Za", b"$2b$04$eH8zX.q5Q.j2hO1NkVYJQO", b"$2b$04$eH8zX.q5Q.j2hO1NkVYJQOM6KxntS/ow3.YzVmFrE4t//CoF4fvne", ), ( b"Tg4daC27epFBE", b"$2b$04$ahiTdwRXpUG2JLRcIznxc.", b"$2b$04$ahiTdwRXpUG2JLRcIznxc.s1.ydaPGD372bsGs8NqyYjLY1inG5n2", ), ( b"xhQPMmwh5ALzW", b"$2b$04$nQn78dV0hGHf5wUBe0zOFu", b"$2b$04$nQn78dV0hGHf5wUBe0zOFu8n07ZbWWOKoGasZKRspZxtt.vBRNMIy", ), ( b"59je8h5Gj71tg", b"$2b$04$cvXudZ5ugTg95W.rOjMITu", b"$2b$04$cvXudZ5ugTg95W.rOjMITuM1jC0piCl3zF5cmGhzCibHZrNHkmckG", ), ( b"wT4fHJa2N9WSW", b"$2b$04$YYjtiq4Uh88yUsExO0RNTu", b"$2b$04$YYjtiq4Uh88yUsExO0RNTuEJ.tZlsONac16A8OcLHleWFjVawfGvO", ), ( b"uSgFRnQdOgm4S", b"$2b$04$WLTjgY/pZSyqX/fbMbJzf.", b"$2b$04$WLTjgY/pZSyqX/fbMbJzf.qxCeTMQOzgL.CimRjMHtMxd/VGKojMu", ), ( b"tEPtJZXur16Vg", b"$2b$04$2moPs/x/wnCfeQ5pCheMcu", b"$2b$04$2moPs/x/wnCfeQ5pCheMcuSJQ/KYjOZG780UjA/SiR.KsYWNrC7SG", ), ( b"vvho8C6nlVf9K", b"$2b$04$HrEYC/AQ2HS77G78cQDZQ.", b"$2b$04$HrEYC/AQ2HS77G78cQDZQ.r44WGcruKw03KHlnp71yVQEwpsi3xl2", ), ( b"5auCCY9by0Ruf", b"$2b$04$vVYgSTfB8KVbmhbZE/k3R.", b"$2b$04$vVYgSTfB8KVbmhbZE/k3R.ux9A0lJUM4CZwCkHI9fifke2.rTF7MG", ), ( b"GtTkR6qn2QOZW", b"$2b$04$JfoNrR8.doieoI8..F.C1O", b"$2b$04$JfoNrR8.doieoI8..F.C1OQgwE3uTeuardy6lw0AjALUzOARoyf2m", ), ( b"zKo8vdFSnjX0f", b"$2b$04$HP3I0PUs7KBEzMBNFw7o3O", b"$2b$04$HP3I0PUs7KBEzMBNFw7o3O7f/uxaZU7aaDot1quHMgB2yrwBXsgyy", ), ( b"I9VfYlacJiwiK", b"$2b$04$xnFVhJsTzsFBTeP3PpgbMe", b"$2b$04$xnFVhJsTzsFBTeP3PpgbMeMREb6rdKV9faW54Sx.yg9plf4jY8qT6", ), ( b"VFPO7YXnHQbQO", b"$2b$04$WQp9.igoLqVr6Qk70mz6xu", b"$2b$04$WQp9.igoLqVr6Qk70mz6xuRxE0RttVXXdukpR9N54x17ecad34ZF6", ), ( b"VDx5BdxfxstYk", b"$2b$04$xgZtlonpAHSU/njOCdKztO", b"$2b$04$xgZtlonpAHSU/njOCdKztOPuPFzCNVpB4LGicO4/OGgHv.uKHkwsS", ), ( b"dEe6XfVGrrfSH", b"$2b$04$2Siw3Nv3Q/gTOIPetAyPr.", b"$2b$04$2Siw3Nv3Q/gTOIPetAyPr.GNj3aO0lb1E5E9UumYGKjP9BYqlNWJe", ), ( b"cTT0EAFdwJiLn", b"$2b$04$7/Qj7Kd8BcSahPO4khB8me", b"$2b$04$7/Qj7Kd8BcSahPO4khB8me4ssDJCW3r4OGYqPF87jxtrSyPj5cS5m", ), ( b"J8eHUDuxBB520", b"$2b$04$VvlCUKbTMjaxaYJ.k5juoe", b"$2b$04$VvlCUKbTMjaxaYJ.k5juoecpG/7IzcH1AkmqKi.lIZMVIOLClWAk.", ), ( b"U*U", b"$2a$05$CCCCCCCCCCCCCCCCCCCCC.", b"$2a$05$CCCCCCCCCCCCCCCCCCCCC.E5YPO9kmyuRGyh0XouQYb4YMJKvyOeW", ), ( b"U*U*", b"$2a$05$CCCCCCCCCCCCCCCCCCCCC.", b"$2a$05$CCCCCCCCCCCCCCCCCCCCC.VGOzA784oUp/Z0DY336zx7pLYAy0lwK", ), ( b"U*U*U", b"$2a$05$XXXXXXXXXXXXXXXXXXXXXO", b"$2a$05$XXXXXXXXXXXXXXXXXXXXXOAcXxm9kjPGEMsLznoKqmqw7tc8WCx4a", ), ( b"0123456789abcdefghijklmnopqrstuvwxyz" b"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" #b"chars after 72 are ignored" , b"$2a$05$abcdefghijklmnopqrstuu", b"$2a$05$abcdefghijklmnopqrstuu5s2v8.iXieOjg/.AySBTTZIIVFJeBui", ), ( b"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" b"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" b"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" b"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" b"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" b"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" #b"chars after 72 are ignored as usual" , b"$2a$05$/OK.fbVrR/bpIqNJ5ianF.", b"$2a$05$/OK.fbVrR/bpIqNJ5ianF.swQOIzjOiJ9GHEPuhEkvqrUyvWhEMx6" ), ( b"\xa3", b"$2a$05$/OK.fbVrR/bpIqNJ5ianF.", b"$2a$05$/OK.fbVrR/bpIqNJ5ianF.Sa7shbm4.OzKpvFnX1pQLmQW96oUlCq" ), ]
[(b'Kk4DQuMMfZL9o', b'$2b$04$cVWp4XaNU8a4v1uMRum2SO', b'$2b$04$cVWp4XaNU8a4v1uMRum2SO026BWLIoQMD/TXg5uZV.0P.uO8m3YEm'), (b'9IeRXmnGxMYbs', b'$2b$04$pQ7gRO7e6wx/936oXhNjrO', b'$2b$04$pQ7gRO7e6wx/936oXhNjrOUNOHL1D0h1N2IDbJZYs.1ppzSof6SPy'), (b'xVQVbwa1S0M8r', b'$2b$04$SQe9knOzepOVKoYXo9xTte', b'$2b$04$SQe9knOzepOVKoYXo9xTteNYr6MBwVz4tpriJVe3PNgYufGIsgKcW'), (b'Zfgr26LWd22Za', b'$2b$04$eH8zX.q5Q.j2hO1NkVYJQO', b'$2b$04$eH8zX.q5Q.j2hO1NkVYJQOM6KxntS/ow3.YzVmFrE4t//CoF4fvne'), (b'Tg4daC27epFBE', b'$2b$04$ahiTdwRXpUG2JLRcIznxc.', b'$2b$04$ahiTdwRXpUG2JLRcIznxc.s1.ydaPGD372bsGs8NqyYjLY1inG5n2'), (b'xhQPMmwh5ALzW', b'$2b$04$nQn78dV0hGHf5wUBe0zOFu', b'$2b$04$nQn78dV0hGHf5wUBe0zOFu8n07ZbWWOKoGasZKRspZxtt.vBRNMIy'), (b'59je8h5Gj71tg', b'$2b$04$cvXudZ5ugTg95W.rOjMITu', b'$2b$04$cvXudZ5ugTg95W.rOjMITuM1jC0piCl3zF5cmGhzCibHZrNHkmckG'), (b'wT4fHJa2N9WSW', b'$2b$04$YYjtiq4Uh88yUsExO0RNTu', b'$2b$04$YYjtiq4Uh88yUsExO0RNTuEJ.tZlsONac16A8OcLHleWFjVawfGvO'), (b'uSgFRnQdOgm4S', b'$2b$04$WLTjgY/pZSyqX/fbMbJzf.', b'$2b$04$WLTjgY/pZSyqX/fbMbJzf.qxCeTMQOzgL.CimRjMHtMxd/VGKojMu'), (b'tEPtJZXur16Vg', b'$2b$04$2moPs/x/wnCfeQ5pCheMcu', b'$2b$04$2moPs/x/wnCfeQ5pCheMcuSJQ/KYjOZG780UjA/SiR.KsYWNrC7SG'), (b'vvho8C6nlVf9K', b'$2b$04$HrEYC/AQ2HS77G78cQDZQ.', b'$2b$04$HrEYC/AQ2HS77G78cQDZQ.r44WGcruKw03KHlnp71yVQEwpsi3xl2'), (b'5auCCY9by0Ruf', b'$2b$04$vVYgSTfB8KVbmhbZE/k3R.', b'$2b$04$vVYgSTfB8KVbmhbZE/k3R.ux9A0lJUM4CZwCkHI9fifke2.rTF7MG'), (b'GtTkR6qn2QOZW', b'$2b$04$JfoNrR8.doieoI8..F.C1O', b'$2b$04$JfoNrR8.doieoI8..F.C1OQgwE3uTeuardy6lw0AjALUzOARoyf2m'), (b'zKo8vdFSnjX0f', b'$2b$04$HP3I0PUs7KBEzMBNFw7o3O', b'$2b$04$HP3I0PUs7KBEzMBNFw7o3O7f/uxaZU7aaDot1quHMgB2yrwBXsgyy'), (b'I9VfYlacJiwiK', b'$2b$04$xnFVhJsTzsFBTeP3PpgbMe', b'$2b$04$xnFVhJsTzsFBTeP3PpgbMeMREb6rdKV9faW54Sx.yg9plf4jY8qT6'), (b'VFPO7YXnHQbQO', b'$2b$04$WQp9.igoLqVr6Qk70mz6xu', b'$2b$04$WQp9.igoLqVr6Qk70mz6xuRxE0RttVXXdukpR9N54x17ecad34ZF6'), (b'VDx5BdxfxstYk', b'$2b$04$xgZtlonpAHSU/njOCdKztO', b'$2b$04$xgZtlonpAHSU/njOCdKztOPuPFzCNVpB4LGicO4/OGgHv.uKHkwsS'), (b'dEe6XfVGrrfSH', b'$2b$04$2Siw3Nv3Q/gTOIPetAyPr.', b'$2b$04$2Siw3Nv3Q/gTOIPetAyPr.GNj3aO0lb1E5E9UumYGKjP9BYqlNWJe'), (b'cTT0EAFdwJiLn', b'$2b$04$7/Qj7Kd8BcSahPO4khB8me', b'$2b$04$7/Qj7Kd8BcSahPO4khB8me4ssDJCW3r4OGYqPF87jxtrSyPj5cS5m'), (b'J8eHUDuxBB520', b'$2b$04$VvlCUKbTMjaxaYJ.k5juoe', b'$2b$04$VvlCUKbTMjaxaYJ.k5juoecpG/7IzcH1AkmqKi.lIZMVIOLClWAk.'), (b'U*U', b'$2a$05$CCCCCCCCCCCCCCCCCCCCC.', b'$2a$05$CCCCCCCCCCCCCCCCCCCCC.E5YPO9kmyuRGyh0XouQYb4YMJKvyOeW'), (b'U*U*', b'$2a$05$CCCCCCCCCCCCCCCCCCCCC.', b'$2a$05$CCCCCCCCCCCCCCCCCCCCC.VGOzA784oUp/Z0DY336zx7pLYAy0lwK'), (b'U*U*U', b'$2a$05$XXXXXXXXXXXXXXXXXXXXXO', b'$2a$05$XXXXXXXXXXXXXXXXXXXXXOAcXxm9kjPGEMsLznoKqmqw7tc8WCx4a'), (b'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789', b'$2a$05$abcdefghijklmnopqrstuu', b'$2a$05$abcdefghijklmnopqrstuu5s2v8.iXieOjg/.AySBTTZIIVFJeBui'), (b'\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa', b'$2a$05$/OK.fbVrR/bpIqNJ5ianF.', b'$2a$05$/OK.fbVrR/bpIqNJ5ianF.swQOIzjOiJ9GHEPuhEkvqrUyvWhEMx6'), (b'\xa3', b'$2a$05$/OK.fbVrR/bpIqNJ5ianF.', b'$2a$05$/OK.fbVrR/bpIqNJ5ianF.Sa7shbm4.OzKpvFnX1pQLmQW96oUlCq')]
question_data = [ { "category": "Entertainment: Japanese Anime & Manga", "type": "boolean", "difficulty": "easy", "question": "In the 1988 film &quot;Akira&quot;, Tetsuo ends up destroying Tokyo.", "correct_answer": "True", "incorrect_answers": [ "False" ] }, { "category": "Entertainment: Japanese Anime & Manga", "type": "boolean", "difficulty": "easy", "question": "Studio Ghibli is a Japanese animation studio responsible for the films &quot;Wolf Children&quot; and &quot;The Boy and the Beast&quot;.", "correct_answer": "False", "incorrect_answers": [ "True" ] }, { "category": "Entertainment: Japanese Anime & Manga", "type": "boolean", "difficulty": "easy", "question": "In Kill La Kill, the weapon of the main protagonist is a katana. ", "correct_answer": "False", "incorrect_answers": [ "True" ] }, { "category": "Entertainment: Japanese Anime & Manga", "type": "boolean", "difficulty": "easy", "question": "No Game No Life first aired in 2014.", "correct_answer": "True", "incorrect_answers": [ "False" ] }, { "category": "Entertainment: Japanese Anime & Manga", "type": "boolean", "difficulty": "easy", "question": "In the &quot;Melancholy of Haruhi Suzumiya&quot; series, the narrator goes by the nickname Kyon.", "correct_answer": "True", "incorrect_answers": [ "False" ] }, { "category": "Entertainment: Japanese Anime & Manga", "type": "boolean", "difficulty": "easy", "question": "In Pok&eacute;mon, Ash&#039;s Pikachu refuses to go into a pokeball.", "correct_answer": "True", "incorrect_answers": [ "False" ] }, { "category": "Entertainment: Japanese Anime & Manga", "type": "boolean", "difficulty": "easy", "question": "In the &quot;Toaru Kagaku no Railgun&quot; anime, espers can only reach a maximum of level 6 in their abilities.", "correct_answer": "False", "incorrect_answers": [ "True" ] }, { "category": "Entertainment: Japanese Anime & Manga", "type": "boolean", "difficulty": "easy", "question": "Kiznaiver is an adaptation of a manga.", "correct_answer": "False", "incorrect_answers": [ "True" ] }, { "category": "Entertainment: Japanese Anime & Manga", "type": "boolean", "difficulty": "easy", "question": "In the &quot;To Love-Ru&quot; series, Golden Darkness is sent to kill Lala Deviluke.", "correct_answer": "False", "incorrect_answers": [ "True" ] }, { "category": "Entertainment: Japanese Anime & Manga", "type": "boolean", "difficulty": "easy", "question": "In Chobits, Hideki found Chii in his apartment.", "correct_answer": "False", "incorrect_answers": [ "True" ] } ]
question_data = [{'category': 'Entertainment: Japanese Anime & Manga', 'type': 'boolean', 'difficulty': 'easy', 'question': 'In the 1988 film &quot;Akira&quot;, Tetsuo ends up destroying Tokyo.', 'correct_answer': 'True', 'incorrect_answers': ['False']}, {'category': 'Entertainment: Japanese Anime & Manga', 'type': 'boolean', 'difficulty': 'easy', 'question': 'Studio Ghibli is a Japanese animation studio responsible for the films &quot;Wolf Children&quot; and &quot;The Boy and the Beast&quot;.', 'correct_answer': 'False', 'incorrect_answers': ['True']}, {'category': 'Entertainment: Japanese Anime & Manga', 'type': 'boolean', 'difficulty': 'easy', 'question': 'In Kill La Kill, the weapon of the main protagonist is a katana. ', 'correct_answer': 'False', 'incorrect_answers': ['True']}, {'category': 'Entertainment: Japanese Anime & Manga', 'type': 'boolean', 'difficulty': 'easy', 'question': 'No Game No Life first aired in 2014.', 'correct_answer': 'True', 'incorrect_answers': ['False']}, {'category': 'Entertainment: Japanese Anime & Manga', 'type': 'boolean', 'difficulty': 'easy', 'question': 'In the &quot;Melancholy of Haruhi Suzumiya&quot; series, the narrator goes by the nickname Kyon.', 'correct_answer': 'True', 'incorrect_answers': ['False']}, {'category': 'Entertainment: Japanese Anime & Manga', 'type': 'boolean', 'difficulty': 'easy', 'question': 'In Pok&eacute;mon, Ash&#039;s Pikachu refuses to go into a pokeball.', 'correct_answer': 'True', 'incorrect_answers': ['False']}, {'category': 'Entertainment: Japanese Anime & Manga', 'type': 'boolean', 'difficulty': 'easy', 'question': 'In the &quot;Toaru Kagaku no Railgun&quot; anime, espers can only reach a maximum of level 6 in their abilities.', 'correct_answer': 'False', 'incorrect_answers': ['True']}, {'category': 'Entertainment: Japanese Anime & Manga', 'type': 'boolean', 'difficulty': 'easy', 'question': 'Kiznaiver is an adaptation of a manga.', 'correct_answer': 'False', 'incorrect_answers': ['True']}, {'category': 'Entertainment: Japanese Anime & Manga', 'type': 'boolean', 'difficulty': 'easy', 'question': 'In the &quot;To Love-Ru&quot; series, Golden Darkness is sent to kill Lala Deviluke.', 'correct_answer': 'False', 'incorrect_answers': ['True']}, {'category': 'Entertainment: Japanese Anime & Manga', 'type': 'boolean', 'difficulty': 'easy', 'question': 'In Chobits, Hideki found Chii in his apartment.', 'correct_answer': 'False', 'incorrect_answers': ['True']}]
def do_helm(s): if not s.command_available('helm'): # https://docs.helm.sh/using_helm/#installing-the-helm-client s.send('curl https://raw.githubusercontent.com/helm/helm/master/scripts/get | bash') s.send('helm init') s.send('kubectl get pods --namespace kube-system')
def do_helm(s): if not s.command_available('helm'): s.send('curl https://raw.githubusercontent.com/helm/helm/master/scripts/get | bash') s.send('helm init') s.send('kubectl get pods --namespace kube-system')
tuplas=("inacio","python","udemy") print(tuplas) print(tuplas[0]) print(tuplas[1]) print(tuplas[2]) print(tuplas[0:2]) print(tuplas+tuplas) print(tuplas*5) print(4 in tuplas) print("udemy" in tuplas) lista=[1,2,4,"inacio"] print(lista) tuplas2=lista print(tuplas2)
tuplas = ('inacio', 'python', 'udemy') print(tuplas) print(tuplas[0]) print(tuplas[1]) print(tuplas[2]) print(tuplas[0:2]) print(tuplas + tuplas) print(tuplas * 5) print(4 in tuplas) print('udemy' in tuplas) lista = [1, 2, 4, 'inacio'] print(lista) tuplas2 = lista print(tuplas2)
for char in "Hello, world!": for _ in range(0, ord(char)): print("+", end = "") print("[", end = "") print()
for char in 'Hello, world!': for _ in range(0, ord(char)): print('+', end='') print('[', end='') print()
def read_settings_sql(cluster_descr, host_type): for settings_descr in cluster_descr.settings_list: if settings_descr.settings_type != host_type: continue yield from settings_descr.read_sql() # vi:ts=4:sw=4:et
def read_settings_sql(cluster_descr, host_type): for settings_descr in cluster_descr.settings_list: if settings_descr.settings_type != host_type: continue yield from settings_descr.read_sql()
# Use this file to configure your DNA Center via REST APIs # Replace all values below with your production DNA Center information # DNA Parameters DNA_FQDN = "dna.fqdn" DNA_PORT = "443" DNA_USER = "admin" DNA_PASS = "password" DNA_SWITCHES = ["switch1", "switch2", "switch3"] # DNA API Calls DNA_AUTH_API = "/dna/system/api/v1/auth/token" DNA_DEVICE_API = "/dna/intent/api/v1/network-device" DNA_INTERFACE_API = "/api/v1/interface/network-device/"
dna_fqdn = 'dna.fqdn' dna_port = '443' dna_user = 'admin' dna_pass = 'password' dna_switches = ['switch1', 'switch2', 'switch3'] dna_auth_api = '/dna/system/api/v1/auth/token' dna_device_api = '/dna/intent/api/v1/network-device' dna_interface_api = '/api/v1/interface/network-device/'
x = 42 y = 3/4 z = int('7') a = float(5) name = "David" print(type(x)) print(type(y)) print(type(z)) print(type(a)) print(type(name)) rent = 2000 per_day = rent / 30 print(per_day) greeting = "My name is" print(greeting, name) print(greeting, name, f"My rent is {rent}") help(greeting)
x = 42 y = 3 / 4 z = int('7') a = float(5) name = 'David' print(type(x)) print(type(y)) print(type(z)) print(type(a)) print(type(name)) rent = 2000 per_day = rent / 30 print(per_day) greeting = 'My name is' print(greeting, name) print(greeting, name, f'My rent is {rent}') help(greeting)
class Solution: def intToRoman(self, num: int) -> str: roman = {} roman[1000] = 'M' roman[900] = 'CM' roman[500] = 'D' roman[400] = 'CD' roman[100] = 'C' roman[90] = 'XC' roman[50] = 'L' roman[40] = 'XL' roman[10] = 'X' roman[9] = 'IX' roman[5] = 'V' roman[4] = 'IV' roman[1] = 'I' res = '' num_list = list(roman.keys()) num_list.sort(reverse = True) for i in num_list: while num >= i: num -= i res += roman[i] return res
class Solution: def int_to_roman(self, num: int) -> str: roman = {} roman[1000] = 'M' roman[900] = 'CM' roman[500] = 'D' roman[400] = 'CD' roman[100] = 'C' roman[90] = 'XC' roman[50] = 'L' roman[40] = 'XL' roman[10] = 'X' roman[9] = 'IX' roman[5] = 'V' roman[4] = 'IV' roman[1] = 'I' res = '' num_list = list(roman.keys()) num_list.sort(reverse=True) for i in num_list: while num >= i: num -= i res += roman[i] return res
# from .latexrun import __version__ = "0.1.0" __all__ = []
__version__ = '0.1.0' __all__ = []
def memberGraph(): return { "nodes": [ { "id": 1, "label": "mbudiselicbuda", "shape": "circularImage", "image": "https://avatars.githubusercontent.com/u/4950251?s=88&v=4", "title": "Ovo je njonjo", "size": 100, "borderWidth": 10, "color": {"border": "green"}, }, {"id": 2, "label": "mbudiselicbuda", "shape": "ellipse", "borderWidth": 5, "color": {"border": "green"}}, {"id": 3, "label": "mbudiselicbuda", "shape": "database"}, {"id": 4, "label": "mbudiselicbuda", "image": "https://avatars.githubusercontent.com/u/4950251?s=88&v=4"}, {"id": 5, "label": "mbudiselicbuda", "shape": "diamond"}, {"id": 6, "label": "mbudiselicbuda", "shape": "dot"}, {"id": 7, "label": "mbudiselicbuda", "shape": "square"}, {"id": 8, "label": "mbudiselicbuda", "shape": "triangle"}, ], "edges": [ {"from": 1, "to": 2}, {"from": 2, "to": 3, 2: "to"}, {"from": 3, "to": 2, "arrows": "to"}, {"from": 2, "to": 4}, {"from": 2, "to": 5}, {"from": 5, "to": 6}, {"from": 5, "to": 7}, {"from": 6, "to": 8}, ], } def usernames(): return { "usernames": [ { "username": "Gitbuda", }, { "username": "afico", }, { "username": "jmrden", }, { "username": "jmatak", }, { "username": "cofi", }, ] } def userDetails(): return { "username": "Gitbuda", "firstName": "Marko", "lastName": "Budiselic", "love": 10.2, "avatar": "https://avatars.githubusercontent.com/u/4950251?s=88&v=4", "community": "Feature, not bug", "importance": 50.5, "company": "Memgraph", "githubAccount": "https://github.com/gitbuda", "twitterAccount": "https://twitter.com/mbudiselicbuda", "twitterUsername": "twitterBuda", "githubUsername": "gitBuda", } def activities(): return { "activities": [ { "username": "Gitbuda", "action": "PR_MAKE", "description": "This guy made a PR!", "date": "2020-01-01T08:00:00", }, { "username": "Gitbuda2", "action": "PR_MAKE2", "description": "This guy made a PR!", "date": "2020-01-01T08:00:00", }, { "username": "Gitbuda3", "action": "PR_MAKE3", "description": "This guy made a PR!", "date": "2020-01-01T08:00:00", }, { "username": "Gitbuda", "action": "PR_MAKE", "description": "This guy made a PR!", "date": "2020-01-01T08:00:00", }, { "username": "Gitbuda2", "action": "PR_MAKE2", "description": "This guy made a PR!", "date": "2020-01-01T08:00:00", }, { "username": "Gitbuda3", "action": "PR_MAKE3", "description": "This guy made a PR!", "date": "2020-01-01T08:00:00", }, { "username": "Gitbuda", "action": "PR_MAKE", "description": "This guy made a PR!", "date": "2020-01-01T08:00:00", }, { "username": "Gitbuda2", "action": "PR_MAKE2", "description": "This guy made a PR!", "date": "2020-01-01T08:00:00", }, { "username": "Gitbuda3", "action": "PR_MAKE3", "description": "This guy made a PR!", "date": "2020-01-01T08:00:00", }, { "username": "Gitbuda", "action": "PR_MAKE", "description": "This guy made a PR!", "date": "2020-01-01T08:00:00", }, { "username": "Gitbuda2", "action": "PR_MAKE2", "description": "This guy made a PR!", "date": "2020-01-01T08:00:00", }, { "username": "Gitbuda3", "action": "PR_MAKE3", "description": "This guy made a PR!", "date": "2020-01-01T08:00:00", }, ] }
def member_graph(): return {'nodes': [{'id': 1, 'label': 'mbudiselicbuda', 'shape': 'circularImage', 'image': 'https://avatars.githubusercontent.com/u/4950251?s=88&v=4', 'title': 'Ovo je njonjo', 'size': 100, 'borderWidth': 10, 'color': {'border': 'green'}}, {'id': 2, 'label': 'mbudiselicbuda', 'shape': 'ellipse', 'borderWidth': 5, 'color': {'border': 'green'}}, {'id': 3, 'label': 'mbudiselicbuda', 'shape': 'database'}, {'id': 4, 'label': 'mbudiselicbuda', 'image': 'https://avatars.githubusercontent.com/u/4950251?s=88&v=4'}, {'id': 5, 'label': 'mbudiselicbuda', 'shape': 'diamond'}, {'id': 6, 'label': 'mbudiselicbuda', 'shape': 'dot'}, {'id': 7, 'label': 'mbudiselicbuda', 'shape': 'square'}, {'id': 8, 'label': 'mbudiselicbuda', 'shape': 'triangle'}], 'edges': [{'from': 1, 'to': 2}, {'from': 2, 'to': 3, 2: 'to'}, {'from': 3, 'to': 2, 'arrows': 'to'}, {'from': 2, 'to': 4}, {'from': 2, 'to': 5}, {'from': 5, 'to': 6}, {'from': 5, 'to': 7}, {'from': 6, 'to': 8}]} def usernames(): return {'usernames': [{'username': 'Gitbuda'}, {'username': 'afico'}, {'username': 'jmrden'}, {'username': 'jmatak'}, {'username': 'cofi'}]} def user_details(): return {'username': 'Gitbuda', 'firstName': 'Marko', 'lastName': 'Budiselic', 'love': 10.2, 'avatar': 'https://avatars.githubusercontent.com/u/4950251?s=88&v=4', 'community': 'Feature, not bug', 'importance': 50.5, 'company': 'Memgraph', 'githubAccount': 'https://github.com/gitbuda', 'twitterAccount': 'https://twitter.com/mbudiselicbuda', 'twitterUsername': 'twitterBuda', 'githubUsername': 'gitBuda'} def activities(): return {'activities': [{'username': 'Gitbuda', 'action': 'PR_MAKE', 'description': 'This guy made a PR!', 'date': '2020-01-01T08:00:00'}, {'username': 'Gitbuda2', 'action': 'PR_MAKE2', 'description': 'This guy made a PR!', 'date': '2020-01-01T08:00:00'}, {'username': 'Gitbuda3', 'action': 'PR_MAKE3', 'description': 'This guy made a PR!', 'date': '2020-01-01T08:00:00'}, {'username': 'Gitbuda', 'action': 'PR_MAKE', 'description': 'This guy made a PR!', 'date': '2020-01-01T08:00:00'}, {'username': 'Gitbuda2', 'action': 'PR_MAKE2', 'description': 'This guy made a PR!', 'date': '2020-01-01T08:00:00'}, {'username': 'Gitbuda3', 'action': 'PR_MAKE3', 'description': 'This guy made a PR!', 'date': '2020-01-01T08:00:00'}, {'username': 'Gitbuda', 'action': 'PR_MAKE', 'description': 'This guy made a PR!', 'date': '2020-01-01T08:00:00'}, {'username': 'Gitbuda2', 'action': 'PR_MAKE2', 'description': 'This guy made a PR!', 'date': '2020-01-01T08:00:00'}, {'username': 'Gitbuda3', 'action': 'PR_MAKE3', 'description': 'This guy made a PR!', 'date': '2020-01-01T08:00:00'}, {'username': 'Gitbuda', 'action': 'PR_MAKE', 'description': 'This guy made a PR!', 'date': '2020-01-01T08:00:00'}, {'username': 'Gitbuda2', 'action': 'PR_MAKE2', 'description': 'This guy made a PR!', 'date': '2020-01-01T08:00:00'}, {'username': 'Gitbuda3', 'action': 'PR_MAKE3', 'description': 'This guy made a PR!', 'date': '2020-01-01T08:00:00'}]}
def solve(arr): arr.sort() s = 0 for i in range(0, len(arr), 2): s += arr[i] return s
def solve(arr): arr.sort() s = 0 for i in range(0, len(arr), 2): s += arr[i] return s
#! /usr/bin/python3.5 ### INSTRUCTIONS ### # instruction: ([chars list], has parameter, "representation in WIL") CHARS = 0 PARAM = 1 WIL = 2 STACK_INSTRUCTIONS = [ (['S'], True, 'push' ), (['L', 'S'], False, 'dup' ), (['T', 'S'], True, 'copy' ), (['L', 'T'], False, 'swap' ), (['L', 'L'], False, 'pop' ), (['T', 'L'], True, 'slide') ] ARITH_INSTRUCTIONS = [ (['S', 'S'], False, 'add'), (['S', 'T'], False, 'sub'), (['S', 'L'], False, 'mul'), (['T', 'S'], False, 'div'), (['T', 'T'], False, 'mod') ] HEAP_INSTRUCTIONS = [ (['S'], False, 'store'), (['T'], False, 'retri') ] FLOW_INSTRUCTIONS = [ (['S', 'S'], True, 'label' ), (['S', 'T'], True, 'call' ), (['S', 'L'], True, 'jmp' ), (['T', 'S'], True, 'jmpz' ), (['T', 'T'], True, 'jmpneg'), (['T', 'L'], False, 'ret' ), (['L', 'L'], False, 'end' ) ] IO_INSTRUCTIONS = [ (['S', 'S'], False, 'outc'), (['S', 'T'], False, 'outi'), (['T', 'S'], False, 'inc' ), (['T', 'T'], False, 'ini' ) ] ### !INSTRUCTIONS ### class Character(object): def __init__(self, char): self.char = char self.sons = { } self.is_leaf = True self.has_param = False self.wil_representation = None def add(self, chars, has_param, wil_representation): if len(chars) == 0: self.has_param = has_param self.wil_representation = wil_representation return if len(self.sons) == 0: self.is_leaf = False if chars[0] not in self.sons: self.sons[chars[0]] = Character(chars[0]) if len(chars) == 1: self.sons[chars[0]].has_param = has_param self.sons[chars[0]].wil_representation = wil_representation return self.sons[chars[0]].add(chars[1:], has_param, wil_representation) #returns a tuple (is_leaf, has_param, representation) def has_reached_leaf(self, chars): if len(chars) == 0: if self.is_leaf: return (True, self.has_param, self.wil_representation) return (False, None, None) if self.is_leaf: if len(chars) != 0: raise Exception('Syntax error: character {} is strange. Instruction "{}" should be over.'.format(self.char, self.wil_representation)) return (True, self.has_param, self.wil_representation) return self.sons[chars[0]].has_reached_leaf(chars[1:]) class Ast(object): def __init__(self, instructions): self.sons = { } for ins in instructions: c = ins[CHARS][0] if c not in self.sons: self.sons[c] = Character(c) self.sons[c].add(ins[CHARS][1:], ins[PARAM], ins[WIL]) def has_reached_leaf(self, chars): c = chars[0] return self.sons[c].has_reached_leaf(chars[1:]) class StackAst(Ast): def __init__(self): Ast.__init__(self, STACK_INSTRUCTIONS) class ArithmeticAst(Ast): def __init__(self): Ast.__init__(self, ARITH_INSTRUCTIONS) class HeapAst(Ast): def __init__(self): Ast.__init__(self, HEAP_INSTRUCTIONS) class FlowAst(Ast): def __init__(self): Ast.__init__(self, FLOW_INSTRUCTIONS) class IOAst(Ast): def __init__(self): Ast.__init__(self, IO_INSTRUCTIONS) StackAst = StackAst() ArithAst = ArithmeticAst() HeapAst = HeapAst() FlowAst = FlowAst() IOAst = IOAst() if __name__ == '__main__': pass
chars = 0 param = 1 wil = 2 stack_instructions = [(['S'], True, 'push'), (['L', 'S'], False, 'dup'), (['T', 'S'], True, 'copy'), (['L', 'T'], False, 'swap'), (['L', 'L'], False, 'pop'), (['T', 'L'], True, 'slide')] arith_instructions = [(['S', 'S'], False, 'add'), (['S', 'T'], False, 'sub'), (['S', 'L'], False, 'mul'), (['T', 'S'], False, 'div'), (['T', 'T'], False, 'mod')] heap_instructions = [(['S'], False, 'store'), (['T'], False, 'retri')] flow_instructions = [(['S', 'S'], True, 'label'), (['S', 'T'], True, 'call'), (['S', 'L'], True, 'jmp'), (['T', 'S'], True, 'jmpz'), (['T', 'T'], True, 'jmpneg'), (['T', 'L'], False, 'ret'), (['L', 'L'], False, 'end')] io_instructions = [(['S', 'S'], False, 'outc'), (['S', 'T'], False, 'outi'), (['T', 'S'], False, 'inc'), (['T', 'T'], False, 'ini')] class Character(object): def __init__(self, char): self.char = char self.sons = {} self.is_leaf = True self.has_param = False self.wil_representation = None def add(self, chars, has_param, wil_representation): if len(chars) == 0: self.has_param = has_param self.wil_representation = wil_representation return if len(self.sons) == 0: self.is_leaf = False if chars[0] not in self.sons: self.sons[chars[0]] = character(chars[0]) if len(chars) == 1: self.sons[chars[0]].has_param = has_param self.sons[chars[0]].wil_representation = wil_representation return self.sons[chars[0]].add(chars[1:], has_param, wil_representation) def has_reached_leaf(self, chars): if len(chars) == 0: if self.is_leaf: return (True, self.has_param, self.wil_representation) return (False, None, None) if self.is_leaf: if len(chars) != 0: raise exception('Syntax error: character {} is strange. Instruction "{}" should be over.'.format(self.char, self.wil_representation)) return (True, self.has_param, self.wil_representation) return self.sons[chars[0]].has_reached_leaf(chars[1:]) class Ast(object): def __init__(self, instructions): self.sons = {} for ins in instructions: c = ins[CHARS][0] if c not in self.sons: self.sons[c] = character(c) self.sons[c].add(ins[CHARS][1:], ins[PARAM], ins[WIL]) def has_reached_leaf(self, chars): c = chars[0] return self.sons[c].has_reached_leaf(chars[1:]) class Stackast(Ast): def __init__(self): Ast.__init__(self, STACK_INSTRUCTIONS) class Arithmeticast(Ast): def __init__(self): Ast.__init__(self, ARITH_INSTRUCTIONS) class Heapast(Ast): def __init__(self): Ast.__init__(self, HEAP_INSTRUCTIONS) class Flowast(Ast): def __init__(self): Ast.__init__(self, FLOW_INSTRUCTIONS) class Ioast(Ast): def __init__(self): Ast.__init__(self, IO_INSTRUCTIONS) stack_ast = stack_ast() arith_ast = arithmetic_ast() heap_ast = heap_ast() flow_ast = flow_ast() io_ast = io_ast() if __name__ == '__main__': pass
rows = 11 for i in range(0, rows): for j in range(0, i + 1): print(i * j, end= ' ') print()
rows = 11 for i in range(0, rows): for j in range(0, i + 1): print(i * j, end=' ') print()
class Mobile: def __init__(self): print("Mobile features: Camera, Phone, Applications") class Samsung(Mobile): def __init__(self): print("Samsung Company") super().__init__() class Samsung_Prime(Samsung): def __init__(self): print("Samsung latest Mobile") super().__init__()
class Mobile: def __init__(self): print('Mobile features: Camera, Phone, Applications') class Samsung(Mobile): def __init__(self): print('Samsung Company') super().__init__() class Samsung_Prime(Samsung): def __init__(self): print('Samsung latest Mobile') super().__init__()
#========================example 1====================== #check a number if it can perfectly divide by n^2+1 fx = lambda n: (n**2+1)%5==0 k=int(input("please enter a number: ")) print(fx(k)) #========================example 2====================== findMax = lambda x,y: max(x,y) print(findMax(100,200))
fx = lambda n: (n ** 2 + 1) % 5 == 0 k = int(input('please enter a number: ')) print(fx(k)) find_max = lambda x, y: max(x, y) print(find_max(100, 200))
class Snake: def __init__(self, SCREEN_LENGTH, MIDDLE_SCREEN): self.screen = SCREEN_LENGTH self.middle_screen = MIDDLE_SCREEN self.position = [self.middle_screen, self.middle_screen] self.body = [[self.middle_screen, self.middle_screen], [self.middle_screen - 10 , self.middle_screen], [self.middle_screen - 20, self.middle_screen]] self.direction = "RIGHT" def change_direction_to(self, direction): if direction == "RIGHT" and not self.direction == "LEFT": self.direction = "RIGHT" if direction == "LEFT" and not self.direction == "RIGHT": self.direction = "LEFT" if direction == "UP" and not self.direction == "DOWN": self.direction = "UP" if direction == "DOWN" and not self.direction == "UP": self.direction = "DOWN" def move(self): if self.direction == "RIGHT": self.position[0] += 20 if self.direction == "LEFT": self.position[0] -= 20 if self.direction == "UP": self.position[1] -= 20 if self.direction == "DOWN": self.position[1] += 20 self.body.insert(0, list(self.position)) def eat(self, food_pos): if self.position == food_pos: return 1 else: self.body.pop() return 0 def check_collision(self): if self.position[0] > self.screen - 10 or self.position[0] < 0: return 1 elif self.position[1] > self.screen - 10 or self.position[1] < 0: return 1 for bodyPart in self.body[1:]: if self.position == bodyPart: return 1 return 0 def get_head(self): return self.position def get_body(self): return self.body
class Snake: def __init__(self, SCREEN_LENGTH, MIDDLE_SCREEN): self.screen = SCREEN_LENGTH self.middle_screen = MIDDLE_SCREEN self.position = [self.middle_screen, self.middle_screen] self.body = [[self.middle_screen, self.middle_screen], [self.middle_screen - 10, self.middle_screen], [self.middle_screen - 20, self.middle_screen]] self.direction = 'RIGHT' def change_direction_to(self, direction): if direction == 'RIGHT' and (not self.direction == 'LEFT'): self.direction = 'RIGHT' if direction == 'LEFT' and (not self.direction == 'RIGHT'): self.direction = 'LEFT' if direction == 'UP' and (not self.direction == 'DOWN'): self.direction = 'UP' if direction == 'DOWN' and (not self.direction == 'UP'): self.direction = 'DOWN' def move(self): if self.direction == 'RIGHT': self.position[0] += 20 if self.direction == 'LEFT': self.position[0] -= 20 if self.direction == 'UP': self.position[1] -= 20 if self.direction == 'DOWN': self.position[1] += 20 self.body.insert(0, list(self.position)) def eat(self, food_pos): if self.position == food_pos: return 1 else: self.body.pop() return 0 def check_collision(self): if self.position[0] > self.screen - 10 or self.position[0] < 0: return 1 elif self.position[1] > self.screen - 10 or self.position[1] < 0: return 1 for body_part in self.body[1:]: if self.position == bodyPart: return 1 return 0 def get_head(self): return self.position def get_body(self): return self.body
def fourSum(nums, target): def threeSum(nums, target): if len(nums) < 3: return [] res = set() for i, n in enumerate(nums): l = i + 1 r = len(nums) - 1 t = target - n while l < r: if nums[l] + nums[r] > t: r -= 1 elif nums[l] + nums[r] < t: l += 1 else: res.add((n, nums[l], nums[r])) l += 1 r -= 1 return list(map(list, res)) results = [] nums.sort() for i in range(len(nums)-3): if i == 0 or nums[i] != nums[i-1]: threeSumResult = threeSum(nums[i+1:], target-nums[i]) print(threeSumResult) for item in threeSumResult: results.append([nums[i]] + item) return results nums = [1,0,-1,0,-2,2] print(fourSum(nums, 0))
def four_sum(nums, target): def three_sum(nums, target): if len(nums) < 3: return [] res = set() for (i, n) in enumerate(nums): l = i + 1 r = len(nums) - 1 t = target - n while l < r: if nums[l] + nums[r] > t: r -= 1 elif nums[l] + nums[r] < t: l += 1 else: res.add((n, nums[l], nums[r])) l += 1 r -= 1 return list(map(list, res)) results = [] nums.sort() for i in range(len(nums) - 3): if i == 0 or nums[i] != nums[i - 1]: three_sum_result = three_sum(nums[i + 1:], target - nums[i]) print(threeSumResult) for item in threeSumResult: results.append([nums[i]] + item) return results nums = [1, 0, -1, 0, -2, 2] print(four_sum(nums, 0))
class Shift: def __init__(self, id, ansvar, tid_fra, tid_til, antall_timer, weight, sted, antrekk): self.id = id self.responsibility = ansvar self.time_from = tid_fra self.time_to = tid_til self.hours = antall_timer self.weight = weight self.allocated = False self.place = sted self.outfit = antrekk def __str__(self): return "id: {}, responsibility id: {}, dato: {}, starttid: {}, sluttid: {}".format( self.id, self.responsibility, self.date_from, self.time_from, self.time_to)
class Shift: def __init__(self, id, ansvar, tid_fra, tid_til, antall_timer, weight, sted, antrekk): self.id = id self.responsibility = ansvar self.time_from = tid_fra self.time_to = tid_til self.hours = antall_timer self.weight = weight self.allocated = False self.place = sted self.outfit = antrekk def __str__(self): return 'id: {}, responsibility id: {}, dato: {}, starttid: {}, sluttid: {}'.format(self.id, self.responsibility, self.date_from, self.time_from, self.time_to)
BZX = Contract.from_abi("BZX", "0xfe4F0eb0A1Ad109185c9AaDE64C48ff8e928e54B", interface.IBZx.abi) TOKEN_REGISTRY = Contract.from_abi("TOKEN_REGISTRY", "0x5a6f1e81334C63DE0183A4a3864bD5CeC4151c27", TokenRegistry.abi) list = TOKEN_REGISTRY.getTokens(0, 100) for l in list: iTokenTemp = Contract.from_abi("iTokenTemp", l[0], LoanTokenLogicStandard.abi) globals()[iTokenTemp.symbol()] = iTokenTemp underlyingTemp = Contract.from_abi("underlyingTemp", l[1], TestToken.abi) globals()[underlyingTemp.symbol()] = underlyingTemp CHEF = Contract.from_abi("CHEF", "0xd39Ff512C3e55373a30E94BB1398651420Ae1D43", MasterChef_Polygon.abi) PGOV = Contract.from_abi("PGOV", "0xd5d84e75f48E75f01fb2EB6dFD8eA148eE3d0FEb", GovToken.abi) PGOV_MATIC_LP = Contract.from_abi("PGOV", "0xC698b8a1391F88F497A4EF169cA85b492860b502", interface.ERC20.abi) HELPER = Contract.from_abi("HELPER", "0xCc0fD6AA1F92e18D103A7294238Fdf558008725a", HelperImpl.abi) PRICE_FEED = Contract.from_abi("PRICE_FEED", BZX.priceFeeds(), abi = PriceFeeds.abi) SUSHI_ROUTER = Contract.from_abi("router", "0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506", interface.IPancakeRouter02.abi)
bzx = Contract.from_abi('BZX', '0xfe4F0eb0A1Ad109185c9AaDE64C48ff8e928e54B', interface.IBZx.abi) token_registry = Contract.from_abi('TOKEN_REGISTRY', '0x5a6f1e81334C63DE0183A4a3864bD5CeC4151c27', TokenRegistry.abi) list = TOKEN_REGISTRY.getTokens(0, 100) for l in list: i_token_temp = Contract.from_abi('iTokenTemp', l[0], LoanTokenLogicStandard.abi) globals()[iTokenTemp.symbol()] = iTokenTemp underlying_temp = Contract.from_abi('underlyingTemp', l[1], TestToken.abi) globals()[underlyingTemp.symbol()] = underlyingTemp chef = Contract.from_abi('CHEF', '0xd39Ff512C3e55373a30E94BB1398651420Ae1D43', MasterChef_Polygon.abi) pgov = Contract.from_abi('PGOV', '0xd5d84e75f48E75f01fb2EB6dFD8eA148eE3d0FEb', GovToken.abi) pgov_matic_lp = Contract.from_abi('PGOV', '0xC698b8a1391F88F497A4EF169cA85b492860b502', interface.ERC20.abi) helper = Contract.from_abi('HELPER', '0xCc0fD6AA1F92e18D103A7294238Fdf558008725a', HelperImpl.abi) price_feed = Contract.from_abi('PRICE_FEED', BZX.priceFeeds(), abi=PriceFeeds.abi) sushi_router = Contract.from_abi('router', '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506', interface.IPancakeRouter02.abi)
class StoredAttachmentsManager: PROVIDER_ID_FIELD = 'id' URL_FIELD = 'url' CAPTION_FIELD = 'content' CREDIT_FIELD = 'excerpt' items_collection = 'attachments' response_collection = 'imported_images' original_key_fields = ['id', 'url'] # item = {i: original_item[i] for i in self.original_key_fields} # def __init__(self, roar_id, attachments_source): def __init__(self, db): self.db = db def get_image_info_by_id(self, attachment_id): item = self.db[self.response_collection].find_one({'id': attachment_id}) if item: return item['response'] raise KeyError() def get_image_info_by_url(self, url): item = self.db[self.response_collection].find_one({'url': url}) if item: return item['response'] raise KeyError() def get_caption_and_credit(self, attachment_id): # return (caption, credit) item = self.db[self.items_collection].find_one({'id': attachment_id}) return (item['content'] or '', item['excerpt'] or '') class WpAuthorsManager: author_key_field = 'login' author_id_field = 'id' response_collection = 'imported_authors' def __init__(self, db): self.db = db def get_by_key(self, author_key): item = self.db[self.response_collection].find_one({'login': author_key}) if item: return item['response'] raise KeyError() class WpSectionsManager: URL_FIELD = 'url' TITLE_FIELD = 'title' STATUS_FIELD = 'status' # optional response_collection = 'imported_sections' # def __init__(self, roar_id, sections_source): def __init__(self, db): self.db = db self.url_mapping = {} items = self.db[self.response_collection].find({}) self.sections_map = { item[self.URL_FIELD]: item['response']['id'] for item in items } def get_by_slug(self, slug): return self.sections_map[slug]
class Storedattachmentsmanager: provider_id_field = 'id' url_field = 'url' caption_field = 'content' credit_field = 'excerpt' items_collection = 'attachments' response_collection = 'imported_images' original_key_fields = ['id', 'url'] def __init__(self, db): self.db = db def get_image_info_by_id(self, attachment_id): item = self.db[self.response_collection].find_one({'id': attachment_id}) if item: return item['response'] raise key_error() def get_image_info_by_url(self, url): item = self.db[self.response_collection].find_one({'url': url}) if item: return item['response'] raise key_error() def get_caption_and_credit(self, attachment_id): item = self.db[self.items_collection].find_one({'id': attachment_id}) return (item['content'] or '', item['excerpt'] or '') class Wpauthorsmanager: author_key_field = 'login' author_id_field = 'id' response_collection = 'imported_authors' def __init__(self, db): self.db = db def get_by_key(self, author_key): item = self.db[self.response_collection].find_one({'login': author_key}) if item: return item['response'] raise key_error() class Wpsectionsmanager: url_field = 'url' title_field = 'title' status_field = 'status' response_collection = 'imported_sections' def __init__(self, db): self.db = db self.url_mapping = {} items = self.db[self.response_collection].find({}) self.sections_map = {item[self.URL_FIELD]: item['response']['id'] for item in items} def get_by_slug(self, slug): return self.sections_map[slug]
# https://www.hackerrank.com/challenges/acm-icpc-team def union(p1, p2): return [t1 | t2 for t1, t2 in zip(p1, p2)] def acm_icpc_team(persons): max_t, max_qty = 0, 0 for i, p1 in enumerate(persons): for j, p2 in enumerate(persons[(i + 1):], i + 1): t = sum(union(p1, p2)) if t == max_t: max_qty += 1 elif t > max_t: max_t, max_qty = t, 1 return max_t, max_qty n, m = [int(x) for x in input().split(' ')] persons = [[int(x) for x in list(input())] for p in range(n)] print("%d\n%d" % (acm_icpc_team(persons)))
def union(p1, p2): return [t1 | t2 for (t1, t2) in zip(p1, p2)] def acm_icpc_team(persons): (max_t, max_qty) = (0, 0) for (i, p1) in enumerate(persons): for (j, p2) in enumerate(persons[i + 1:], i + 1): t = sum(union(p1, p2)) if t == max_t: max_qty += 1 elif t > max_t: (max_t, max_qty) = (t, 1) return (max_t, max_qty) (n, m) = [int(x) for x in input().split(' ')] persons = [[int(x) for x in list(input())] for p in range(n)] print('%d\n%d' % acm_icpc_team(persons))
# Challenge 10 : Create a function named reversed_list() that takes two lists of the same size as parameters named lst1 and lst2. # The function should return True if lst1 is the same as lst2 reversed. # The function should return False otherwise. # Date : Sun 07 Jun 2020 09:43:32 AM IST def reversed_list(lst1, lst2): for index in range(len(lst1)): if lst1[index] != lst2[len(lst2) - 1 - index]: return False return True print(reversed_list([1, 2, 3], [3, 2, 1])) print(reversed_list([1, 5, 3], [3, 2, 1]))
def reversed_list(lst1, lst2): for index in range(len(lst1)): if lst1[index] != lst2[len(lst2) - 1 - index]: return False return True print(reversed_list([1, 2, 3], [3, 2, 1])) print(reversed_list([1, 5, 3], [3, 2, 1]))
__theme_meta__ = { 'author': "Baseline Core Team", 'title': "Baseline 2015", 'url': "https://github.com/loftylabs/baseline/", 'version': "0.1a", 'description': "The default Baseline theme.", }
__theme_meta__ = {'author': 'Baseline Core Team', 'title': 'Baseline 2015', 'url': 'https://github.com/loftylabs/baseline/', 'version': '0.1a', 'description': 'The default Baseline theme.'}
''' Write a function that takes a non-empty array of distinct integers, and an integer representing a target sum. If any two numbers in the array sum upto the target sum, return the two numbers Else, return an empty array. ''' # Prompt: # Distinct & non-empty integer array # Returns two integers - any order # Return empty ARRAY else # No doubling; # At most one pair of numbers summing up to target only def twoNumberSum(array, targetSum): for i in range(0, len(array)-1): for j in range(i+1, len(array)): if array[i] + array[j] == targetSum: return [array[i], array[j]] else: return [] def twoNumSumHash(array, targetSum): # create hash table myHashTable = {} for i in range(0, len(array)): if targetSum - array[i] in myHashTable: return [array[i], targetSum - array[i]] else: myHashTable[array[i]] = True return [] def twoNumSumLeftRight(array, targetSum): array.sort() leftPointer = 0 rightPointer = len(array) - 1 while leftPointer < rightPointer: if array[leftPointer] + array[rightPointer] > targetSum: rightPointer -=1 elif array[leftPointer] + array[rightPointer] < targetSum: leftPointer +=1 else: return [array[leftPointer], array[rightPointer]] return [] def main(): # Time Complexity - O(N^2), Space complexity - O(1) x = twoNumberSum([1, 4, -3, 5, 7], 9) print(x) # Time Complexity - O(N), Space complexity - O(N) y = twoNumSumHash([1, 4, -3, 5, 7], 9) print(y) # Time Complexity - O(N logN), Space complexity - O(1) z = twoNumSumLeftRight([3, 5, -1, -2, 7, 4, 10], 9) print(z) if __name__== "__main__": main()
""" Write a function that takes a non-empty array of distinct integers, and an integer representing a target sum. If any two numbers in the array sum upto the target sum, return the two numbers Else, return an empty array. """ def two_number_sum(array, targetSum): for i in range(0, len(array) - 1): for j in range(i + 1, len(array)): if array[i] + array[j] == targetSum: return [array[i], array[j]] else: return [] def two_num_sum_hash(array, targetSum): my_hash_table = {} for i in range(0, len(array)): if targetSum - array[i] in myHashTable: return [array[i], targetSum - array[i]] else: myHashTable[array[i]] = True return [] def two_num_sum_left_right(array, targetSum): array.sort() left_pointer = 0 right_pointer = len(array) - 1 while leftPointer < rightPointer: if array[leftPointer] + array[rightPointer] > targetSum: right_pointer -= 1 elif array[leftPointer] + array[rightPointer] < targetSum: left_pointer += 1 else: return [array[leftPointer], array[rightPointer]] return [] def main(): x = two_number_sum([1, 4, -3, 5, 7], 9) print(x) y = two_num_sum_hash([1, 4, -3, 5, 7], 9) print(y) z = two_num_sum_left_right([3, 5, -1, -2, 7, 4, 10], 9) print(z) if __name__ == '__main__': main()
# Sets - A set is an unordered collection of items. # Creating Sets set_nums = {9, 10, 1, 4, 3, 2, 5, 0} set_empty = {} set_names = {'John', 'Kim', 'Kelly', 'Dora', False} # all (True if all items are true or empty set) print(" all - ".center(30, "-")) print('set_nums : ', all(set_nums)) print('set_nums2 : ', all(set_empty)) # any (True if any of the items is true) print(" any - ".center(30, "-")) print('set_nums : ', any(set_nums)) print('set_nums2 : ', any(set_empty)) # len print(" len - ".center(30, "-")) print(len(set_nums)) # max print(" max - ".center(30, "-")) print(max(set_nums)) # min print(" min - ".center(30, "-")) print(min(set_nums)) # sorted print(" sorted - ".center(30, "-")) print(sorted(set_nums)) print(sorted(set_nums, reverse = True)) # sum print(" sum - ".center(30, "-")) print(sum(set_nums))
set_nums = {9, 10, 1, 4, 3, 2, 5, 0} set_empty = {} set_names = {'John', 'Kim', 'Kelly', 'Dora', False} print(' all - '.center(30, '-')) print('set_nums : ', all(set_nums)) print('set_nums2 : ', all(set_empty)) print(' any - '.center(30, '-')) print('set_nums : ', any(set_nums)) print('set_nums2 : ', any(set_empty)) print(' len - '.center(30, '-')) print(len(set_nums)) print(' max - '.center(30, '-')) print(max(set_nums)) print(' min - '.center(30, '-')) print(min(set_nums)) print(' sorted - '.center(30, '-')) print(sorted(set_nums)) print(sorted(set_nums, reverse=True)) print(' sum - '.center(30, '-')) print(sum(set_nums))
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'chromium_code': 1, }, 'targets': [ { 'target_name': 'athena_main_lib', 'type': 'static_library', 'dependencies': [ '../athena.gyp:athena_lib', '../athena.gyp:athena_content_lib', '../athena.gyp:athena_content_support_lib', '../resources/athena_resources.gyp:athena_resources', # debug_widow.cc depends on this. Remove this once debug_window # is removed. '../../ash/ash_resources.gyp:ash_resources', '../../chromeos/chromeos.gyp:power_manager_proto', '../../components/components.gyp:component_metrics_proto', '../../components/components.gyp:history_core_browser', # infobars_test_support is required to declare some symbols used in the # search_engines and its dependencies. See crbug.com/386171 # TODO(mukai): declare those symbols for Athena. '../../components/components.gyp:infobars_test_support', '../../components/components.gyp:omnibox', '../../components/components.gyp:search_engines', '../../skia/skia.gyp:skia', '../../ui/app_list/app_list.gyp:app_list', '../../ui/chromeos/ui_chromeos.gyp:ui_chromeos', '../../ui/native_theme/native_theme.gyp:native_theme', '../../ui/views/views.gyp:views', '../../url/url.gyp:url_lib', ], 'include_dirs': [ '../..', ], 'sources': [ 'athena_launcher.cc', 'athena_launcher.h', 'debug/debug_window.cc', 'debug/debug_window.h', 'debug/network_selector.cc', 'debug/network_selector.h', 'url_search_provider.cc', 'url_search_provider.h', 'placeholder.cc', 'placeholder.h', ], }, { 'target_name': 'athena_main', 'type': 'executable', 'dependencies': [ '../../ui/accessibility/accessibility.gyp:ax_gen', '../resources/athena_resources.gyp:athena_pak', '../../extensions/shell/app_shell.gyp:app_shell_lib', 'athena_main_lib', ], 'include_dirs': [ '../..', ], 'sources': [ 'athena_app_window_controller.cc', 'athena_app_window_controller.h', 'athena_main.cc', ], } ], # targets }
{'variables': {'chromium_code': 1}, 'targets': [{'target_name': 'athena_main_lib', 'type': 'static_library', 'dependencies': ['../athena.gyp:athena_lib', '../athena.gyp:athena_content_lib', '../athena.gyp:athena_content_support_lib', '../resources/athena_resources.gyp:athena_resources', '../../ash/ash_resources.gyp:ash_resources', '../../chromeos/chromeos.gyp:power_manager_proto', '../../components/components.gyp:component_metrics_proto', '../../components/components.gyp:history_core_browser', '../../components/components.gyp:infobars_test_support', '../../components/components.gyp:omnibox', '../../components/components.gyp:search_engines', '../../skia/skia.gyp:skia', '../../ui/app_list/app_list.gyp:app_list', '../../ui/chromeos/ui_chromeos.gyp:ui_chromeos', '../../ui/native_theme/native_theme.gyp:native_theme', '../../ui/views/views.gyp:views', '../../url/url.gyp:url_lib'], 'include_dirs': ['../..'], 'sources': ['athena_launcher.cc', 'athena_launcher.h', 'debug/debug_window.cc', 'debug/debug_window.h', 'debug/network_selector.cc', 'debug/network_selector.h', 'url_search_provider.cc', 'url_search_provider.h', 'placeholder.cc', 'placeholder.h']}, {'target_name': 'athena_main', 'type': 'executable', 'dependencies': ['../../ui/accessibility/accessibility.gyp:ax_gen', '../resources/athena_resources.gyp:athena_pak', '../../extensions/shell/app_shell.gyp:app_shell_lib', 'athena_main_lib'], 'include_dirs': ['../..'], 'sources': ['athena_app_window_controller.cc', 'athena_app_window_controller.h', 'athena_main.cc']}]}
''' Given a string s consisting of small English letters, find and return the first instance of a non-repeating character in it. If there is no such character, return '_'. Example For s = "abacabad", the output should be first_not_repeating_character(s) = 'c'. There are 2 non-repeating characters in the string: 'c' and 'd'. Return c since it appears in the string first. For s = "abacabaabacaba", the output should be first_not_repeating_character(s) = '_'. There are no characters in this string that do not repeat. [execution time limit] 4 seconds (py3) [input] string s A string that contains only lowercase English letters. [output] char The first non-repeating character in s of '_' if there are no characters that do not repeat. ''' def first_not_repeating_character(s): # create a dict with key of letter, value of increments of how many time the letters appear # add the order of the character to a list # loop through letter order, find the len of 1 in the dict # return that letter letter_order = [] dict = {} for letter in s: if letter in dict: dict[letter] += 1 else: dict[letter] = 1 letter_order.append(letter) print(dict) print(letter_order) for letter in letter_order: if dict[letter] == 1: return letter return "_" ''' Time complexity: O(n+n) ~ O(n) Space complexity: O(n) ''' print(first_not_repeating_character("abacabad")) print(first_not_repeating_character("abacabaabacaba"))
""" Given a string s consisting of small English letters, find and return the first instance of a non-repeating character in it. If there is no such character, return '_'. Example For s = "abacabad", the output should be first_not_repeating_character(s) = 'c'. There are 2 non-repeating characters in the string: 'c' and 'd'. Return c since it appears in the string first. For s = "abacabaabacaba", the output should be first_not_repeating_character(s) = '_'. There are no characters in this string that do not repeat. [execution time limit] 4 seconds (py3) [input] string s A string that contains only lowercase English letters. [output] char The first non-repeating character in s of '_' if there are no characters that do not repeat. """ def first_not_repeating_character(s): letter_order = [] dict = {} for letter in s: if letter in dict: dict[letter] += 1 else: dict[letter] = 1 letter_order.append(letter) print(dict) print(letter_order) for letter in letter_order: if dict[letter] == 1: return letter return '_' '\nTime complexity: O(n+n) ~ O(n)\nSpace complexity: O(n)\n' print(first_not_repeating_character('abacabad')) print(first_not_repeating_character('abacabaabacaba'))
{ "targets": [ { "target_name": "binding-helloworld", "sources": [ "src/cpp/binding-helloworld.cc" ] }, { "target_name": "binding-fibonacci", "sources": [ "src/cpp/binding-fibonacci.cc" ] } ] }
{'targets': [{'target_name': 'binding-helloworld', 'sources': ['src/cpp/binding-helloworld.cc']}, {'target_name': 'binding-fibonacci', 'sources': ['src/cpp/binding-fibonacci.cc']}]}
{ "targets": [{ "include_dirs" : [ "<!(node -e \"require('nan')\")" ], "defines": [ "PSAPI_VERSION=1", "METRO_APPS=1" ], "libraries": ["-lPsapi"], "target_name": "whoisopen", "sources": ["src/whoisopen.cc"] }] }
{'targets': [{'include_dirs': ['<!(node -e "require(\'nan\')")'], 'defines': ['PSAPI_VERSION=1', 'METRO_APPS=1'], 'libraries': ['-lPsapi'], 'target_name': 'whoisopen', 'sources': ['src/whoisopen.cc']}]}
def arr_mult(A,B): new = [] # Iterate over the rows of A. for i in range(len(A)): # Create a new row to insert into the product. newrow = [] # Iterate over the columns of B. # len(B[0]) returns the length of the first row # (the number of columns). for j in range(len(B[0])): # Initialize an empty total. tot = 0 # Multiply the elements of the row of A with # the column of B and sum the products. for k in range(len(B)): tot += A[i][k] * B[k][j] # Insert the value into the new row of the product. newrow.append(tot) # Insert the new row into the product. new.append(newrow) return new
def arr_mult(A, B): new = [] for i in range(len(A)): newrow = [] for j in range(len(B[0])): tot = 0 for k in range(len(B)): tot += A[i][k] * B[k][j] newrow.append(tot) new.append(newrow) return new
def pandigital_generator(): for perm in itertools.permutations(range(0,10)): if perm[0] != 0: yield functools.reduce(lambda x,y: x*10 + y, perm) def prime_generator(): yield 2 yield 3 yield 5 yield 7 yield 11 yield 13 yield 17 def has_p043_property(n): n_str = str(n) primes = prime_generator() return all(int(n_str[d:d+3]) % next(primes) == 0 for d in range(1, 8)) def solve_p043(): return sum(p for p in pandigital_generator() if has_p043_property(p))
def pandigital_generator(): for perm in itertools.permutations(range(0, 10)): if perm[0] != 0: yield functools.reduce(lambda x, y: x * 10 + y, perm) def prime_generator(): yield 2 yield 3 yield 5 yield 7 yield 11 yield 13 yield 17 def has_p043_property(n): n_str = str(n) primes = prime_generator() return all((int(n_str[d:d + 3]) % next(primes) == 0 for d in range(1, 8))) def solve_p043(): return sum((p for p in pandigital_generator() if has_p043_property(p)))
class PluginBase: instances = [] def __init_subclass__(cls, **kwargs): super().__init_subclass__(**kwargs) cls.instances.append(cls()) def hello() -> list: results = [] for i in PluginBase.instances: results.append(i.hello()) return results class PluginA(PluginBase): def hello(self) -> str: return "hello from A" class PluginB(PluginBase): def hello(self) -> str: return "hello from B" for p in PluginBase.hello(): print(p) print('----------------------SECOND EXPERIMENT--------') class FancyPluginBase: instances = [] def __init_subclass__(cls, **kwargs): super().__init_subclass__(**kwargs) cls.instances.append(cls()) @staticmethod def accept(value: any) -> list: if type(value) == list: return value else: return [value] def dispatch(type: any = None) -> list: return [r for i in FancyPluginBase.instances for r in FancyPluginBase.accept(i.respond_to(type))] def respond_to(self, type: any = None) -> any: return [] class First(FancyPluginBase): def respond_to(self, type: any = None) -> any: return 'from first' class Second(FancyPluginBase): def respond_to(self, type: any = None) -> any: return ['from second'] class Third(FancyPluginBase): pass for p in FancyPluginBase.dispatch(): print(p)
class Pluginbase: instances = [] def __init_subclass__(cls, **kwargs): super().__init_subclass__(**kwargs) cls.instances.append(cls()) def hello() -> list: results = [] for i in PluginBase.instances: results.append(i.hello()) return results class Plugina(PluginBase): def hello(self) -> str: return 'hello from A' class Pluginb(PluginBase): def hello(self) -> str: return 'hello from B' for p in PluginBase.hello(): print(p) print('----------------------SECOND EXPERIMENT--------') class Fancypluginbase: instances = [] def __init_subclass__(cls, **kwargs): super().__init_subclass__(**kwargs) cls.instances.append(cls()) @staticmethod def accept(value: any) -> list: if type(value) == list: return value else: return [value] def dispatch(type: any=None) -> list: return [r for i in FancyPluginBase.instances for r in FancyPluginBase.accept(i.respond_to(type))] def respond_to(self, type: any=None) -> any: return [] class First(FancyPluginBase): def respond_to(self, type: any=None) -> any: return 'from first' class Second(FancyPluginBase): def respond_to(self, type: any=None) -> any: return ['from second'] class Third(FancyPluginBase): pass for p in FancyPluginBase.dispatch(): print(p)
def write_table_row(key, value): row = f"<tr><td>{key}</td><td>{value}</td></tr>" return row def write_doc_entry(idx, domain): fields = domain.get("fields") doc_entry = f'<tr><th colspan="2">Link {idx}</th></tr>' doc_entry += write_table_row( "URL", f"<a target=\"_blank\" rel=\"noopener noreferrer\" href=\"//www.{fields.get('url')}\">{fields.get('url')}</a>", ) doc_entry += write_table_row("Kontext", fields.get("context")) doc_entry += write_table_row("", "") return doc_entry def write_domain_table(domain_group): domain_table = "<table><style>th, td { padding-left: 15px; text-align: left; vertical-align: top;}</style>" for i, domain in enumerate(domain_group.get("children", [])): domain_table += write_doc_entry(i + 1, domain) domain_table += "</table>" return domain_table
def write_table_row(key, value): row = f'<tr><td>{key}</td><td>{value}</td></tr>' return row def write_doc_entry(idx, domain): fields = domain.get('fields') doc_entry = f'<tr><th colspan="2">Link {idx}</th></tr>' doc_entry += write_table_row('URL', f"""<a target="_blank" rel="noopener noreferrer" href="//www.{fields.get('url')}">{fields.get('url')}</a>""") doc_entry += write_table_row('Kontext', fields.get('context')) doc_entry += write_table_row('', '') return doc_entry def write_domain_table(domain_group): domain_table = '<table><style>th, td { padding-left: 15px; text-align: left; vertical-align: top;}</style>' for (i, domain) in enumerate(domain_group.get('children', [])): domain_table += write_doc_entry(i + 1, domain) domain_table += '</table>' return domain_table
# https://www.codewars.com/kata/how-good-are-you-really def better_than_average(class_points, your_points): counter = 0 sum = 0 output = True for i in class_points: sum += i counter += 1 if sum / counter >= your_points: output = False return output
def better_than_average(class_points, your_points): counter = 0 sum = 0 output = True for i in class_points: sum += i counter += 1 if sum / counter >= your_points: output = False return output
''' Given the head of a singly linked list, reverse the list, and return the reversed list. Example 1: Input: head = [1,2,3,4,5] Output: [5,4,3,2,1] Example 2: Input: head = [1,2] Output: [2,1] Example 3: Input: head = [] Output: [] Constraints: The number of nodes in the list is the range [0, 5000]. -5000 <= Node.val <= 5000 Follow up: A linked list can be reversed either iteratively or recursively. Could you implement both? ''' #iterative approach class Solution: def reverseList(self, head: Optional[ListNode]) -> Optional[ListNode]: prev = None while head is not None: temp = head.next head.next = prev prev = head head = temp return prev #recursive approach class Solution: def reverseList(self, head: Optional[ListNode]) -> Optional[ListNode]: if head==None or head.next==None: return head return self.helper(head) def helper(self, head): if head==None or head.next==None: return head else: prev = self.helper(head.next) head.next.next = head head.next = None return prev
""" Given the head of a singly linked list, reverse the list, and return the reversed list. Example 1: Input: head = [1,2,3,4,5] Output: [5,4,3,2,1] Example 2: Input: head = [1,2] Output: [2,1] Example 3: Input: head = [] Output: [] Constraints: The number of nodes in the list is the range [0, 5000]. -5000 <= Node.val <= 5000 Follow up: A linked list can be reversed either iteratively or recursively. Could you implement both? """ class Solution: def reverse_list(self, head: Optional[ListNode]) -> Optional[ListNode]: prev = None while head is not None: temp = head.next head.next = prev prev = head head = temp return prev class Solution: def reverse_list(self, head: Optional[ListNode]) -> Optional[ListNode]: if head == None or head.next == None: return head return self.helper(head) def helper(self, head): if head == None or head.next == None: return head else: prev = self.helper(head.next) head.next.next = head head.next = None return prev
def dig_str(n): lista = [] st = str(n) for i in range(len(st)): lista.append(st[i]) return(sorted(lista)) def comparador_de_digitos(x,y): if dig_str(x) == dig_str(y): return(1) else: return(0) N = 1 while(True): if comparador_de_digitos(N, 2 * N) == 1 and comparador_de_digitos(N, 3 * N) == 1 and comparador_de_digitos(N, 4 * N) == 1 and comparador_de_digitos(N, 5 * N) == 1 and comparador_de_digitos(N, 6 * N) == 1: print(N) break else: N += 1
def dig_str(n): lista = [] st = str(n) for i in range(len(st)): lista.append(st[i]) return sorted(lista) def comparador_de_digitos(x, y): if dig_str(x) == dig_str(y): return 1 else: return 0 n = 1 while True: if comparador_de_digitos(N, 2 * N) == 1 and comparador_de_digitos(N, 3 * N) == 1 and (comparador_de_digitos(N, 4 * N) == 1) and (comparador_de_digitos(N, 5 * N) == 1) and (comparador_de_digitos(N, 6 * N) == 1): print(N) break else: n += 1
''' Author : MiKueen Level : Medium Problem Statement : Coin Change 2 You are given coins of different denominations and a total amount of money. Write a function to compute the number of combinations that make up that amount. You may assume that you have infinite number of each kind of coin. Example 1: Input: amount = 5, coins = [1, 2, 5] Output: 4 Explanation: there are four ways to make up the amount: 5=5 5=2+2+1 5=2+1+1+1 5=1+1+1+1+1 Example 2: Input: amount = 3, coins = [2] Output: 0 Explanation: the amount of 3 cannot be made up just with coins of 2. Example 3: Input: amount = 10, coins = [10] Output: 1 Note: You can assume that 0 <= amount <= 5000 1 <= coin <= 5000 the number of coins is less than 500 the answer is guaranteed to fit into signed 32-bit integer ''' class Solution: def change(self, amount: int, coins: List[int]) -> int: dp = [1] + [0] * amount for coin in coins: for j in range(coin, amount+1): dp[j] += dp[j-coin] return dp[-1]
""" Author : MiKueen Level : Medium Problem Statement : Coin Change 2 You are given coins of different denominations and a total amount of money. Write a function to compute the number of combinations that make up that amount. You may assume that you have infinite number of each kind of coin. Example 1: Input: amount = 5, coins = [1, 2, 5] Output: 4 Explanation: there are four ways to make up the amount: 5=5 5=2+2+1 5=2+1+1+1 5=1+1+1+1+1 Example 2: Input: amount = 3, coins = [2] Output: 0 Explanation: the amount of 3 cannot be made up just with coins of 2. Example 3: Input: amount = 10, coins = [10] Output: 1 Note: You can assume that 0 <= amount <= 5000 1 <= coin <= 5000 the number of coins is less than 500 the answer is guaranteed to fit into signed 32-bit integer """ class Solution: def change(self, amount: int, coins: List[int]) -> int: dp = [1] + [0] * amount for coin in coins: for j in range(coin, amount + 1): dp[j] += dp[j - coin] return dp[-1]
gitdownloads = { "opsxcq": ("exploit-CVE-2017-7494", "exploit-CVE-2016-10033"), "t0kx": ("exploit-CVE-2016-9920"), "helmL64": "https://get.helm.sh/helm-v3.7.0-linux-amd64.tar.gz", "helmW64": "https://get.helm.sh/helm-v3.7.0-windows-amd64.zip" } helmchartrepos = { "gitlab": "helm repo add gitlab https://charts.gitlab.io/", "ingress-nginx": "helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx", "prometheus": "helm repo add prometheus-community https://prometheus-community.github.io/helm-charts", "gitlab-omnibus": "https://artifacthub.io/packages/helm/slamdev/gitlab-omnibus" } helchartinstalls = { "prometheus-community" : "helm install [RELEASE_NAME] prometheus-community/kube-prometheus-stack" } #for pi raspipulls= { "opevpn" : "cambarts/openvpn", "webgoat" : "cambarts/webgoat-8.0-rpi", "bwapp" : "cambarts/arm-bwapp", "dvwa" : "cambarts/arm-dvwa", "LAMPstack" : "cambarts/arm-lamp" } #for pi rpiruns = { "bwapp" : '-d -p 80:80 cambarts/arm-bwapp', "dvwa" : '-d -p 80:80 -p 3306:3306 -e MYSQL_PASS="password" cambarts/dvwa', "webgoat" : "-d -p 80:80 -p cambarts/webgoat-8.0-rpi", "nginx" : "-d nginx", }
gitdownloads = {'opsxcq': ('exploit-CVE-2017-7494', 'exploit-CVE-2016-10033'), 't0kx': 'exploit-CVE-2016-9920', 'helmL64': 'https://get.helm.sh/helm-v3.7.0-linux-amd64.tar.gz', 'helmW64': 'https://get.helm.sh/helm-v3.7.0-windows-amd64.zip'} helmchartrepos = {'gitlab': 'helm repo add gitlab https://charts.gitlab.io/', 'ingress-nginx': 'helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx', 'prometheus': 'helm repo add prometheus-community https://prometheus-community.github.io/helm-charts', 'gitlab-omnibus': 'https://artifacthub.io/packages/helm/slamdev/gitlab-omnibus'} helchartinstalls = {'prometheus-community': 'helm install [RELEASE_NAME] prometheus-community/kube-prometheus-stack'} raspipulls = {'opevpn': 'cambarts/openvpn', 'webgoat': 'cambarts/webgoat-8.0-rpi', 'bwapp': 'cambarts/arm-bwapp', 'dvwa': 'cambarts/arm-dvwa', 'LAMPstack': 'cambarts/arm-lamp'} rpiruns = {'bwapp': '-d -p 80:80 cambarts/arm-bwapp', 'dvwa': '-d -p 80:80 -p 3306:3306 -e MYSQL_PASS="password" cambarts/dvwa', 'webgoat': '-d -p 80:80 -p cambarts/webgoat-8.0-rpi', 'nginx': '-d nginx'}
''' Kattis - primematrix Constructive problem, first we find a set of distinct positive integers that sum to a prime number such that the maximum number is minimised. Then the matrix can be constructed by printing all lexicographical rotations of the set of numbers. To find this set of numbers, given the bounds of the task, it is sufficient to do the following: 1. Assume our set is 1..n 2. Find the smallest prime >= sum(1..n) 3. replace zero or one of the n numbers with n+1 such that the sum is equal to the prime Time: O(n), Space: O(n) ''' _sieve_size = 0 bs = [] primes = [] def sieve(upperbound=1277): # Smallest prime larger than sum(1..50) is 1277 global _sieve_size, bs, primes _sieve_size = upperbound+1 bs = [True] * 10000010 bs[0] = bs[1] = False for i in range(2, _sieve_size): if bs[i]: for j in range(i*i, _sieve_size, i): bs[j] = False primes.append(i) sieve() n, b = map(int, input().split()) init_sum = (n*(n+1))//2 for p in primes: if (p >= init_sum): target_prime = p break nums = [] if (target_prime != init_sum): diff = target_prime - init_sum x = n+1 - diff for i in range(1, n+2): if (i != x): nums.append(i) else: nums = [i for i in range(1, n+1)] if (nums[-1] > b): print("impossible") else: for _ in range(n): print(" ".join(map(str, nums))) nums.append(nums[0]) nums.pop(0)
""" Kattis - primematrix Constructive problem, first we find a set of distinct positive integers that sum to a prime number such that the maximum number is minimised. Then the matrix can be constructed by printing all lexicographical rotations of the set of numbers. To find this set of numbers, given the bounds of the task, it is sufficient to do the following: 1. Assume our set is 1..n 2. Find the smallest prime >= sum(1..n) 3. replace zero or one of the n numbers with n+1 such that the sum is equal to the prime Time: O(n), Space: O(n) """ _sieve_size = 0 bs = [] primes = [] def sieve(upperbound=1277): global _sieve_size, bs, primes _sieve_size = upperbound + 1 bs = [True] * 10000010 bs[0] = bs[1] = False for i in range(2, _sieve_size): if bs[i]: for j in range(i * i, _sieve_size, i): bs[j] = False primes.append(i) sieve() (n, b) = map(int, input().split()) init_sum = n * (n + 1) // 2 for p in primes: if p >= init_sum: target_prime = p break nums = [] if target_prime != init_sum: diff = target_prime - init_sum x = n + 1 - diff for i in range(1, n + 2): if i != x: nums.append(i) else: nums = [i for i in range(1, n + 1)] if nums[-1] > b: print('impossible') else: for _ in range(n): print(' '.join(map(str, nums))) nums.append(nums[0]) nums.pop(0)
def validate_password(password: str): if len(password)<8: return False for i in password: if i.isdigit(): return True return False
def validate_password(password: str): if len(password) < 8: return False for i in password: if i.isdigit(): return True return False
# Common test data used by multiple tests AUTH_ARGS = { 'client_id': 'cats', 'client_secret': 'opposable thumbs', 'access_token': 'paw', 'refresh_token': 'teeth', }
auth_args = {'client_id': 'cats', 'client_secret': 'opposable thumbs', 'access_token': 'paw', 'refresh_token': 'teeth'}
{ "targets": [ { "target_name": "itt", "sources": [ "itt-addon.cc" ], "include_dirs": [ "include", "C:\\Program Files (x86)\\IntelSWTools\\VTune Profiler 2020\\include" ], "libraries": [ "C:\\Program Files (x86)\\IntelSWTools\\VTune Profiler 2020\\lib64\\libittnotify.lib" ] } ] }
{'targets': [{'target_name': 'itt', 'sources': ['itt-addon.cc'], 'include_dirs': ['include', 'C:\\Program Files (x86)\\IntelSWTools\\VTune Profiler 2020\\include'], 'libraries': ['C:\\Program Files (x86)\\IntelSWTools\\VTune Profiler 2020\\lib64\\libittnotify.lib']}]}
ranges ={ 'temp':{'min':1,'max':45},#Temperature 'soc':{'min':20,'max':80},#state of Charge 'charge_rate':{'min':0,'max':0.8},#state of Charge } test_report=[] test_case_id=0 def append_list(src_list,dst_list): for x in src_list: dst_list.append(x) def min_range_test(value,range_min): result=False #Test step pass->Normal behavior test_step='\t\tTeststep::Passed ->Actual value:'+str(value)+' is greater than Min Range:'+str(range_min) if value < range_min: test_step='\t\tTeststep::Failed ->Actual value:'+str(value)+' is less than Min Range:'+str(range_min) result=True #Test step failed->abnormal behavior return test_step,result def max_range_test(value,range_max): result=False #Test step pass->Normal behavior test_step='\t\tTeststep::Passed ->Actual value:'+str(value)+' is less than Max Range:'+str(range_max) if value > range_max: test_step='\t\tTeststep::Failed ->Actual value:'+str(value)+' is greater than Max Range:'+str(range_max) result=True #Test step failed->abnormal behavior return test_step,result def collect_abnormals(abnormals,test_case_report,attribute_name,attribute_value,attribute_range): result=False #Test attribute is within Min and Max range->Normal behavior test_step_min,min_range_result=min_range_test(attribute_value,attribute_range['min'])#test for min range test_step_max,max_range_result=max_range_test(attribute_value,attribute_range['max'])#test for max range if min_range_result or max_range_result: result=True #Test attribute is not within Min and Max range->abnormal behavior abnormals.append(attribute_name) return [test_step_min,test_step_max],result def report_abnormals_attribute(attribute_report): abnormals=[] test_case_report=[] for attribute in attribute_report: report='\tTest Attribute['+attribute+']::->Passed'#Test attribute is within Min and Max range->Normal behavior test_step,result=collect_abnormals(abnormals,test_case_report,attribute,attribute_report[attribute],ranges[attribute]) if result==True: report='\tTest Attribute['+attribute+']::->Failed' #Test attribute is not within Min and Max range->abnormal behavior test_case_report.append(report) append_list(test_step,test_case_report) return test_case_report,abnormals def test_abnormals_attribute(battery_report): global test_case_id test_case_id+=1 test_case='Test Case ID['+str(test_case_id)+"]->Passed" test_step,abnormals=report_abnormals_attribute(battery_report) if(len(abnormals)!=0): test_case='Test Case ID::['+str(test_case_id)+"]->Failed" test_report.append(test_case) append_list(test_step,test_report) #assert(len(abnormals)==0) if __name__ == '__main__': test_input_battery_report_1 ={ 'temp':25, 'soc':70, 'charge_rate':0.7 } test_input_battery_report_2 ={ 'temp':0, 'soc':85, 'charge_rate':0.9 } test_abnormals_attribute(test_input_battery_report_1) test_abnormals_attribute(test_input_battery_report_2) test_abnormals_attribute(test_input_battery_report_1) for line in test_report: print(line)
ranges = {'temp': {'min': 1, 'max': 45}, 'soc': {'min': 20, 'max': 80}, 'charge_rate': {'min': 0, 'max': 0.8}} test_report = [] test_case_id = 0 def append_list(src_list, dst_list): for x in src_list: dst_list.append(x) def min_range_test(value, range_min): result = False test_step = '\t\tTeststep::Passed ->Actual value:' + str(value) + ' is greater than Min Range:' + str(range_min) if value < range_min: test_step = '\t\tTeststep::Failed ->Actual value:' + str(value) + ' is less than Min Range:' + str(range_min) result = True return (test_step, result) def max_range_test(value, range_max): result = False test_step = '\t\tTeststep::Passed ->Actual value:' + str(value) + ' is less than Max Range:' + str(range_max) if value > range_max: test_step = '\t\tTeststep::Failed ->Actual value:' + str(value) + ' is greater than Max Range:' + str(range_max) result = True return (test_step, result) def collect_abnormals(abnormals, test_case_report, attribute_name, attribute_value, attribute_range): result = False (test_step_min, min_range_result) = min_range_test(attribute_value, attribute_range['min']) (test_step_max, max_range_result) = max_range_test(attribute_value, attribute_range['max']) if min_range_result or max_range_result: result = True abnormals.append(attribute_name) return ([test_step_min, test_step_max], result) def report_abnormals_attribute(attribute_report): abnormals = [] test_case_report = [] for attribute in attribute_report: report = '\tTest Attribute[' + attribute + ']::->Passed' (test_step, result) = collect_abnormals(abnormals, test_case_report, attribute, attribute_report[attribute], ranges[attribute]) if result == True: report = '\tTest Attribute[' + attribute + ']::->Failed' test_case_report.append(report) append_list(test_step, test_case_report) return (test_case_report, abnormals) def test_abnormals_attribute(battery_report): global test_case_id test_case_id += 1 test_case = 'Test Case ID[' + str(test_case_id) + ']->Passed' (test_step, abnormals) = report_abnormals_attribute(battery_report) if len(abnormals) != 0: test_case = 'Test Case ID::[' + str(test_case_id) + ']->Failed' test_report.append(test_case) append_list(test_step, test_report) if __name__ == '__main__': test_input_battery_report_1 = {'temp': 25, 'soc': 70, 'charge_rate': 0.7} test_input_battery_report_2 = {'temp': 0, 'soc': 85, 'charge_rate': 0.9} test_abnormals_attribute(test_input_battery_report_1) test_abnormals_attribute(test_input_battery_report_2) test_abnormals_attribute(test_input_battery_report_1) for line in test_report: print(line)
class SomeClass: def __init__(self, name='lin'): self.name = name # def get_name(self): # return self.name def get_name_new(): return self.name
class Someclass: def __init__(self, name='lin'): self.name = name def get_name_new(): return self.name
# ___ ___ # | _ \ | _ \ # ___ __ __ || || ||_|| #_\/_ | | ||__| __ || || |___/ _\/_ # /\ | |__|| || || | _ \ /\ # ||_|| ||_|| # |___/ |___/ # __version__ = '2.0.7'
__version__ = '2.0.7'
x = 10 y = 1 color = 'blue' first_name = 'Julian' last_name = 'Henao' # < > <= <= == if x < 30: print('X is less than 30') else: print('X is greater than 30') if color == 'red': print('The color is red') else: print('Any color') if color == 'yellow': print('The color is yellow') elif color == 'blue': print('The color is blue') else: print('Any color') if first_name == 'Julian': if last_name == 'Henao': print('Tu eres Julian Henao') else: print('Tu no eres Julian Henao') # and, or, not if x > 2 and x < 100: print('x is greater than 2 and less than 100') if x < 2 or x > 100: print('x is less than 2 or greater than 100') if not(x == y): print('x is not equal y')
x = 10 y = 1 color = 'blue' first_name = 'Julian' last_name = 'Henao' if x < 30: print('X is less than 30') else: print('X is greater than 30') if color == 'red': print('The color is red') else: print('Any color') if color == 'yellow': print('The color is yellow') elif color == 'blue': print('The color is blue') else: print('Any color') if first_name == 'Julian': if last_name == 'Henao': print('Tu eres Julian Henao') else: print('Tu no eres Julian Henao') if x > 2 and x < 100: print('x is greater than 2 and less than 100') if x < 2 or x > 100: print('x is less than 2 or greater than 100') if not x == y: print('x is not equal y')
class Mobile: def make_call(self): print("i am making a call") def play_game(self): print("i am playing games") m1=Mobile() m1.make_call() m1.play_game() class Mobile: def set_color(self,color): self.color=color def set_cost(self,cost): self.cost=cost def show_color(self): print("black") def show_price(self): print("5000") def make_call(self): print("i am making a call") def play_game(self): print("i am playing games") m2=Mobile() m2.show_price() m2.show_color()
class Mobile: def make_call(self): print('i am making a call') def play_game(self): print('i am playing games') m1 = mobile() m1.make_call() m1.play_game() class Mobile: def set_color(self, color): self.color = color def set_cost(self, cost): self.cost = cost def show_color(self): print('black') def show_price(self): print('5000') def make_call(self): print('i am making a call') def play_game(self): print('i am playing games') m2 = mobile() m2.show_price() m2.show_color()
''' Find the continuous sequence in array with mix of positive and negative integers with the largest sum: Return the sum ''' def max_subseq(arr): sum = 0 maxSum = 0 start = 0 end = 0 for i in range(1, len(arr)): sum += arr[i] if maxSum < sum: maxSum = sum else: if sum < 0: sum = 0 return maxSum print(max_subseq([2, -8, 3, -2, 4, -10]))
""" Find the continuous sequence in array with mix of positive and negative integers with the largest sum: Return the sum """ def max_subseq(arr): sum = 0 max_sum = 0 start = 0 end = 0 for i in range(1, len(arr)): sum += arr[i] if maxSum < sum: max_sum = sum elif sum < 0: sum = 0 return maxSum print(max_subseq([2, -8, 3, -2, 4, -10]))
class AuthenticateViews: def authenticate_product(self,name, qty, min_stock, price, units, category): if not name or not isinstance(name, str): return "product name missing or must be a string." if name.isspace() or not name.isalpha(): return "product name should only be letters" if not qty or not isinstance(qty, int): return "product quantity missing or must be a number." if not min_stock or not isinstance(min_stock, int): return "product min_stock missing or must be a number." if not price or not isinstance(price, int): return "product price missing or must be a number." if not units or not isinstance(units, int): return "product units missing or must be a number." if not category or not isinstance(category, str): return "product category missing or must be a string."
class Authenticateviews: def authenticate_product(self, name, qty, min_stock, price, units, category): if not name or not isinstance(name, str): return 'product name missing or must be a string.' if name.isspace() or not name.isalpha(): return 'product name should only be letters' if not qty or not isinstance(qty, int): return 'product quantity missing or must be a number.' if not min_stock or not isinstance(min_stock, int): return 'product min_stock missing or must be a number.' if not price or not isinstance(price, int): return 'product price missing or must be a number.' if not units or not isinstance(units, int): return 'product units missing or must be a number.' if not category or not isinstance(category, str): return 'product category missing or must be a string.'
# md5 : 157b3267a46a79dd900104f241da8c4c # sha1 : 178271eaf8c48384e206cbaebcbbc12030980410 # sha256 : 8611dc1b60ae5c383bba6cb3ffd8a51aeebff23b95844f0ab3d6e5ecd0fadc84 ord_names = { 100: b'ThunRTMain', 101: b'VBDllUnRegisterServer', 102: b'VBDllCanUnloadNow', 103: b'VBDllRegisterServer', 104: b'VBDllGetClassObject', 105: b'UserDllMain', 106: b'DllRegisterServer', 107: b'DllUnregisterServer', 108: b'__vbaAryLock', 109: b'__vbaBoolErrVar', 110: b'__vbaStrErrVarCopy', 111: b'__vbaAryVarVarg', 112: b'__vbaFpCDblR4', 113: b'__vbaFpCDblR8', 114: b'__vbaFpCSngR4', 115: b'__vbaFpCSngR8', 116: b'__vbaFpCmpCy', 117: b'__vbaFpCy', 118: b'__vbaFpI2', 119: b'__vbaFpI4', 120: b'__vbaFpR4', 121: b'__vbaFpR8', 122: b'__vbaFpUI1', 123: b'__vbaFreeObj', 124: b'__vbaFreeStr', 125: b'__vbaFreeVar', 126: b'__vbaFreeVarg', 127: b'__vbaI2Abs', 128: b'__vbaI2I4', 129: b'__vbaI2Sgn', 130: b'__vbaI4Abs', 131: b'__vbaI4Sgn', 132: b'__vbaStrCopy', 133: b'__vbaStrMove', 134: b'__vbaUI1I2', 135: b'__vbaUI1I4', 136: b'__vbaUI1Sgn', 137: b'__vbaVarCopy', 138: b'__vbaVarDup', 139: b'__vbaVarMove', 140: b'__vbaVarVargNofree', 141: b'__vbaVargParmRef', 142: b'__vbaVargVar', 143: b'__vbaVargVarCopy', 144: b'__vbaVargVarMove', 145: b'__vbaVargVarRef', 146: b'DLLGetDocumentation', 147: b'_CIatan', 148: b'_CIcos', 149: b'_CIexp', 150: b'_CIlog', 151: b'_CIsin', 152: b'_CIsqrt', 153: b'_CItan', 154: b'__vbaAptOffset', 155: b'__vbaAryConstruct', 156: b'__vbaAryCopy', 157: b'__vbaAryDestruct', 158: b'__vbaAryMove', 159: b'__vbaAryRebase1Var', 160: b'__vbaAryUnlock', 161: b'__vbaBoolStr', 162: b'__vbaBoolVar', 163: b'__vbaBoolVarNull', 164: b'__vbaCastObj', 165: b'__vbaCastObjVar', 166: b'__vbaCheckType', 167: b'__vbaCheckTypeVar', 168: b'__vbaChkstk', 169: b'__vbaCopyBytes', 170: b'__vbaCyAbs', 171: b'__vbaCyAdd', 172: b'__vbaCyErrVar', 173: b'__vbaCyFix', 174: b'__vbaCyForInit', 175: b'__vbaCyForNext', 176: b'__vbaCyI2', 177: b'__vbaCyI4', 178: b'__vbaCyInt', 179: b'__vbaCyMul', 180: b'__vbaCyMulI2', 181: b'__vbaCySgn', 182: b'__vbaCyStr', 183: b'__vbaCySub', 184: b'__vbaCyUI1', 185: b'__vbaCyVar', 186: b'ProcCallEngine', 187: b'DllFunctionCall', 188: b'__vbaRecAssign', 189: b'__vbaRecDestruct', 190: b'CopyRecord', 191: b'__vbaDateR4', 192: b'__vbaDateR8', 193: b'__vbaDateStr', 194: b'__vbaDateVar', 195: b'TipGetAddressOfPredeclaredInstance', 196: b'__vbaDerefAry', 197: b'__vbaDerefAry1', 198: b'__vbaEnd', 199: b'MethCallEngine', 200: b'__vbaErase', 201: b'__vbaEraseKeepData', 202: b'__vbaEraseNoPop', 203: b'__vbaError', 204: b'__vbaErrorOverflow', 205: b'__vbaExceptHandler', 206: b'__vbaExitEachAry', 207: b'__vbaExitEachColl', 208: b'__vbaExitEachVar', 209: b'__vbaExitProc', 210: b'__vbaFPException', 211: b'__vbaFPFix', 212: b'__vbaFPInt', 213: b'__vbaFailedFriend', 214: b'__vbaFileClose', 215: b'__vbaFileCloseAll', 216: b'__vbaFileLock', 217: b'__vbaFileOpen', 218: b'__vbaFileSeek', 219: b'__vbaFixstrConstruct', 220: b'TipSetOption', 221: b'__vbaForEachAry', 222: b'__vbaForEachCollAd', 223: b'__vbaForEachCollObj', 224: b'__vbaForEachCollVar', 225: b'__vbaForEachVar', 226: b'__vbaFreeObjList', 227: b'TipUnloadProject', 228: b'__vbaFreeStrList', 229: b'__vbaFreeVarList', 230: b'TipCreateInstanceProject', 231: b'EbResetProject', 232: b'EbGetHandleOfExecutingProject', 233: b'__vbaGenerateBoundsError', 234: b'__vbaGet3', 235: b'__vbaGet4', 236: b'__vbaGetFxStr3', 237: b'__vbaGetFxStr4', 238: b'__vbaGetOwner3', 239: b'__vbaGetOwner4', 240: b'__vbaGosub', 241: b'__vbaGosubFree', 242: b'__vbaGosubReturn', 243: b'__vbaHresultCheck', 244: b'__vbaHresultCheckNonvirt', 245: b'__vbaHresultCheckObj', 246: b'__vbaI2Cy', 247: b'__vbaI2ErrVar', 248: b'__vbaI2ForNextCheck', 249: b'__vbaI2Str', 250: b'__vbaI2Var', 251: b'__vbaI4Cy', 252: b'__vbaI4ErrVar', 253: b'__vbaI4ForNextCheck', 254: b'__vbaI4Str', 255: b'__vbaI4Var', 256: b'__vbaInStr', 257: b'__vbaInStrB', 258: b'__vbaInStrVar', 259: b'__vbaInStrVarB', 260: b'__vbaInputFile', 261: b'__vbaLateIdCall', 262: b'__vbaLateIdCallLd', 263: b'__vbaLateIdCallSt', 264: b'__vbaLateIdNamedCall', 265: b'EbResetProjectNormal', 266: b'TipUnloadInstance', 267: b'__vbaLateIdNamedCallLd', 268: b'EbLibraryLoad', 269: b'EbLibraryUnload', 270: b'__vbaLateIdNamedCallSt', 271: b'EbLoadRunTime', 272: b'__vbaLateIdNamedStAd', 273: b'__vbaLateIdSt', 274: b'EbCreateContext', 275: b'EbDestroyContext', 276: b'EbSetContextWorkerThread', 277: b'__vbaLateIdStAd', 278: b'__vbaLateMemCall', 279: b'__vbaLateMemCallLd', 280: b'__vbaLateMemCallSt', 281: b'__vbaLateMemNamedCall', 282: b'__vbaLateMemNamedCallLd', 283: b'__vbaLateMemNamedCallSt', 284: b'__vbaLateMemNamedStAd', 285: b'__vbaLateMemSt', 286: b'__vbaLateMemStAd', 287: b'__vbaLbound', 288: b'__vbaLenBstr', 289: b'__vbaLenBstrB', 290: b'__vbaLenVar', 291: b'__vbaLenVarB', 292: b'__vbaLineInputStr', 293: b'__vbaLineInputVar', 294: b'__vbaLsetFixstr', 295: b'__vbaLsetFixstrFree', 296: b'__vbaMidStmtBstr', 297: b'__vbaMidStmtBstrB', 298: b'EbIsProjectOnStack', 299: b'TipCreateInstanceEx', 300: b'GetMem2', 301: b'GetMem4', 302: b'GetMem8', 303: b'GetMemStr', 304: b'GetMemVar', 305: b'GetMemObj', 306: b'PutMem2', 307: b'PutMem4', 308: b'PutMem8', 309: b'PutMemStr', 310: b'PutMemVar', 311: b'PutMemObj', 312: b'SetMemVar', 313: b'SetMemObj', 314: b'GetMemNewObj', 315: b'PutMemNewObj', 316: b'SetMemNewObj', 317: b'GetMem1', 318: b'PutMem1', 319: b'GetMemEvent', 320: b'PutMemEvent', 321: b'SetMemEvent', 322: b'__vbaMidStmtVar', 323: b'__vbaMidStmtVarB', 324: b'__vbaNameFile', 325: b'__vbaNew2', 326: b'__vbaNew', 327: b'__vbaNextEachAry', 328: b'__vbaNextEachCollAd', 329: b'__vbaNextEachCollObj', 330: b'__vbaNextEachCollVar', 331: b'__vbaNextEachVar', 332: b'__vbaObjAddref', 333: b'__vbaObjIs', 334: b'__vbaObjSet', 335: b'__vbaObjSetAddref', 336: b'__vbaObjVar', 337: b'__vbaOnError', 338: b'__vbaOnGoCheck', 339: b'__vbaPowerR8', 340: b'__vbaPrintFile', 341: b'__vbaPrintObj', 342: b'__vbaPut3', 343: b'__vbaPut4', 344: b'__vbaPutFxStr3', 345: b'__vbaPutFxStr4', 346: b'__vbaPutOwner3', 347: b'__vbaPutOwner4', 348: b'__vbaR4Cy', 349: b'__vbaR4ErrVar', 350: b'__vbaR4ForNextCheck', 351: b'__vbaR4Sgn', 352: b'__vbaR4Str', 353: b'__vbaR4Var', 354: b'__vbaR8Cy', 355: b'__vbaR8ErrVar', 356: b'__vbaR8FixI2', 357: b'__vbaR8FixI4', 358: b'__vbaR8ForNextCheck', 359: b'__vbaR8IntI2', 360: b'__vbaR8IntI4', 361: b'__vbaR8Sgn', 362: b'__vbaR8Str', 363: b'__vbaR8Var', 364: b'__vbaRaiseEvent', 365: b'__vbaRecAnsiToUni', 366: b'__vbaRecDestructAnsi', 367: b'__vbaRecUniToAnsi', 368: b'__vbaRedim', 369: b'__vbaRedimPreserve', 370: b'__vbaRedimPreserveVar', 371: b'__vbaRedimVar', 372: b'__vbaRefVarAry', 373: b'__vbaResume', 374: b'__vbaRsetFixstr', 375: b'__vbaRsetFixstrFree', 376: b'__vbaSetSystemError', 377: b'__vbaStopExe', 378: b'__vbaStr2Vec', 379: b'__vbaStrAryToAnsi', 380: b'__vbaStrAryToUnicode', 381: b'__vbaStrBool', 382: b'__vbaStrCat', 383: b'__vbaStrCmp', 384: b'__vbaStrComp', 385: b'__vbaStrCompVar', 386: b'__vbaStrCy', 387: b'__vbaStrDate', 388: b'__vbaStrFixstr', 389: b'__vbaStrI2', 390: b'__vbaStrI4', 391: b'__vbaStrLike', 392: b'__vbaStrR4', 393: b'__vbaStrR8', 394: b'__vbaStrTextCmp', 395: b'__vbaStrTextLike', 396: b'__vbaStrToAnsi', 397: b'__vbaStrToUnicode', 398: b'__vbaStrUI1', 399: b'__vbaStrVarCopy', 400: b'EVENT_SINK_QueryInterface', 401: b'EVENT_SINK_AddRef', 402: b'EVENT_SINK_Release', 403: b'EVENT_SINK_GetIDsOfNames', 404: b'EVENT_SINK_Invoke', 405: b'__vbaStrVarMove', 406: b'__vbaStrVarVal', 407: b'__vbaUI1Cy', 408: b'__vbaUI1ErrVar', 409: b'__vbaUI1Str', 410: b'BASIC_CLASS_QueryInterface', 411: b'BASIC_CLASS_AddRef', 412: b'BASIC_CLASS_Release', 413: b'BASIC_CLASS_GetIDsOfNames', 414: b'BASIC_CLASS_Invoke', 415: b'__vbaUI1Var', 416: b'__vbaUbound', 417: b'__vbaUnkVar', 418: b'__vbaVar2Vec', 419: b'__vbaVarAbs', 420: b'BASIC_DISPINTERFACE_GetTICount', 421: b'BASIC_DISPINTERFACE_GetTypeInfo', 422: b'__vbaVarAdd', 423: b'__vbaVarAnd', 424: b'__vbaVarCat', 425: b'__vbaVarCmpEq', 426: b'__vbaVarCmpGe', 427: b'__vbaVarCmpGt', 428: b'__vbaVarCmpLe', 429: b'__vbaVarCmpLt', 430: b'Zombie_QueryInterface', 431: b'Zombie_AddRef', 432: b'Zombie_Release', 433: b'Zombie_GetTypeInfoCount', 434: b'Zombie_GetTypeInfo', 435: b'Zombie_GetIDsOfNames', 436: b'Zombie_Invoke', 437: b'__vbaVarCmpNe', 438: b'__vbaVarDateVar', 439: b'__vbaVarDiv', 440: b'EVENT_SINK2_AddRef', 441: b'EVENT_SINK2_Release', 442: b'__vbaVarEqv', 443: b'__vbaVarErrI4', 444: b'__vbaVarFix', 445: b'__vbaVarForInit', 446: b'__vbaVarForNext', 447: b'__vbaVarIdiv', 448: b'__vbaVarImp', 449: b'__vbaVarIndexLoad', 450: b'__vbaVarIndexLoadRef', 451: b'__vbaVarIndexLoadRefLock', 452: b'__vbaVarIndexStore', 453: b'__vbaVarIndexStoreObj', 454: b'__vbaVarInt', 455: b'__vbaVarLike', 456: b'__vbaVarLikeVar', 457: b'__vbaVarMod', 458: b'__vbaVarMul', 459: b'__vbaVarNeg', 460: b'__vbaVarNot', 461: b'__vbaVarOr', 462: b'__vbaVarPow', 463: b'__vbaVarSetObj', 464: b'__vbaVarSetObjAddref', 465: b'__vbaVarSetUnk', 466: b'__vbaVarSetUnkAddref', 467: b'__vbaVarSetVar', 468: b'__vbaVarSetVarAddref', 469: b'__vbaVarSub', 470: b'__vbaVarTextCmpEq', 471: b'__vbaVarTextCmpGe', 472: b'__vbaVarTextCmpGt', 473: b'__vbaVarTextCmpLe', 474: b'__vbaVarTextCmpLt', 475: b'__vbaVarTextCmpNe', 476: b'__vbaVarTextLike', 477: b'__vbaVarTextLikeVar', 478: b'__vbaVarTextTstEq', 479: b'__vbaVarTextTstGe', 480: b'__vbaVarTextTstGt', 481: b'__vbaVarTextTstLe', 482: b'__vbaVarTextTstLt', 483: b'__vbaVarTextTstNe', 484: b'__vbaVarTstEq', 485: b'__vbaVarTstGe', 486: b'__vbaVarTstGt', 487: b'__vbaVarTstLe', 488: b'__vbaVarTstLt', 489: b'__vbaVarTstNe', 490: b'__vbaVarXor', 491: b'__vbaVargObj', 492: b'__vbaVargObjAddref', 493: b'__vbaVargUnk', 494: b'__vbaVargUnkAddref', 495: b'__vbaVerifyVarObj', 496: b'__vbaWriteFile', 497: b'_adj_fdiv_m16i', 498: b'_adj_fdiv_m32', 499: b'_adj_fdiv_m32i', 500: b'_adj_fdiv_m64', 501: b'_adj_fdiv_r', 502: b'_adj_fdivr_m16i', 503: b'_adj_fdivr_m32', 504: b'_adj_fdivr_m32i', 505: b'_adj_fdivr_m64', 506: b'_adj_fpatan', 507: b'_adj_fprem', 508: b'_adj_fprem1', 509: b'_adj_fptan', 510: b'_allmul', 512: b'rtcLeftBstr', 513: b'rtcLeftVar', 514: b'rtcRightBstr', 515: b'rtcRightVar', 516: b'rtcAnsiValueBstr', 517: b'rtcLowerCaseBstr', 518: b'rtcLowerCaseVar', 519: b'rtcTrimBstr', 520: b'rtcTrimVar', 521: b'rtcLeftTrimBstr', 522: b'rtcLeftTrimVar', 523: b'rtcRightTrimBstr', 524: b'rtcRightTrimVar', 525: b'rtcSpaceBstr', 526: b'rtcSpaceVar', 527: b'rtcUpperCaseBstr', 528: b'rtcUpperCaseVar', 529: b'rtcKillFiles', 530: b'rtcChangeDir', 531: b'rtcMakeDir', 532: b'rtcRemoveDir', 533: b'rtcChangeDrive', 534: b'rtcBeep', 535: b'rtcGetTimer', 536: b'rtcStrFromVar', 537: b'rtcBstrFromAnsi', 538: b'rtcPackDate', 539: b'rtcPackTime', 540: b'rtcGetDateValue', 541: b'rtcGetTimeValue', 542: b'rtcGetDayOfMonth', 543: b'rtcGetHourOfDay', 544: b'rtcGetMinuteOfHour', 545: b'rtcGetMonthOfYear', 546: b'rtcGetPresentDate', 547: b'rtcGetSecondOfMinute', 548: b'rtcSetDateVar', 549: b'rtcSetDateBstr', 550: b'rtcSetTimeVar', 551: b'rtcSetTimeBstr', 552: b'rtcGetDayOfWeek', 553: b'rtcGetYear', 554: b'rtcFileReset', 555: b'rtcFileAttributes', 556: b'rtcIsArray', 557: b'rtcIsDate', 558: b'rtcIsEmpty', 559: b'rtcIsError', 560: b'rtcIsNull', 561: b'rtcIsNumeric', 562: b'rtcIsObject', 563: b'rtcVarType', 564: b'rtDecFromVar', 565: b'rtcFileWidth', 566: b'rtcInputCount', 567: b'rtcInputCountVar', 568: b'rtcFileSeek', 569: b'rtcFileLocation', 570: b'rtcFileLength', 571: b'rtcEndOfFile', 572: b'rtcHexBstrFromVar', 573: b'rtcHexVarFromVar', 574: b'rtcOctBstrFromVar', 575: b'rtcOctVarFromVar', 576: b'rtcFileCopy', 577: b'rtcFileDateTime', 578: b'rtcFileLen', 579: b'rtcGetFileAttr', 580: b'rtcSetFileAttr', 581: b'rtcR8ValFromBstr', 582: b'rtcSin', 583: b'rtcCos', 584: b'rtcTan', 585: b'rtcAtn', 586: b'rtcExp', 587: b'rtcLog', 588: b'rtcRgb', 589: b'rtcQBColor', 590: b'rtcMacId', 591: b'rtcTypeName', 592: b'rtcIsMissing', 593: b'rtcRandomNext', 594: b'rtcRandomize', 595: b'rtcMsgBox', 596: b'rtcInputBox', 597: b'rtcAppActivate', 598: b'rtcDoEvents', 599: b'rtcSendKeys', 600: b'rtcShell', 601: b'rtcArray', 605: b'rtcGetErl', 606: b'rtcStringBstr', 607: b'rtcStringVar', 608: b'rtcVarBstrFromAnsi', 609: b'rtcGetDateBstr', 610: b'rtcGetDateVar', 611: b'rtcGetTimeBstr', 612: b'rtcGetTimeVar', 613: b'rtcVarStrFromVar', 614: b'rtcSqr', 615: b'rtcIMEStatus', 616: b'rtcLeftCharBstr', 617: b'rtcLeftCharVar', 618: b'rtcRightCharBstr', 619: b'rtcRightCharVar', 620: b'rtcInputCharCount', 621: b'rtcInputCharCountVar', 622: b'rtcStrConvVar', 624: b'rtcGetHostLCID', 625: b'rtcCreateObject', 626: b'rtcGetObject', 627: b'rtcAppleScript', 628: b'rtcMidBstr', 629: b'rtcMidVar', 630: b'rtcInStr', 631: b'rtcMidCharBstr', 632: b'rtcMidCharVar', 633: b'rtcInStrChar', 634: b'rtBstrFromErrVar', 635: b'rtBoolFromErrVar', 636: b'rtCyFromErrVar', 637: b'rtI2FromErrVar', 638: b'rtI4FromErrVar', 639: b'rtR4FromErrVar', 640: b'rtR8FromErrVar', 641: b'rtcDateFromVar', 642: b'rtcVarFromVar', 643: b'rtcCVErrFromVar', 644: b'VarPtr', 645: b'rtcDir', 646: b'rtcCurrentDirBstr', 647: b'rtcCurrentDir', 648: b'rtcFreeFile', 649: b'rtcCompareBstr', 650: b'rtcBstrFromFormatVar', 651: b'rtcBstrFromError', 652: b'rtcVarFromError', 653: b'rtcLenCharVar', 654: b'rtcLenVar', 655: b'rtcFixVar', 656: b'rtcAbsVar', 657: b'rtcIntVar', 658: b'rtcSgnVar', 660: b'rtcVarFromFormatVar', 661: b'rtcDateAdd', 662: b'rtcDateDiff', 663: b'rtcDatePart', 664: b'rtcPartition', 665: b'rtcChoose', 666: b'rtcEnvironVar', 667: b'rtcEnvironBstr', 668: b'rtcSwitch', 669: b'rtcCommandBstr', 670: b'rtcCommandVar', 671: b'rtcSLN', 672: b'rtcSYD', 673: b'rtcDDB', 674: b'rtcIPMT', 675: b'rtcPPMT', 676: b'rtcPMT', 677: b'rtcPV', 678: b'rtcFV', 679: b'rtcNPer', 680: b'rtcRate', 681: b'rtcImmediateIf', 682: b'rtcIRR', 683: b'rtcMIRR', 684: b'rtcNPV', 685: b'rtcErrObj', 686: b'rtUI1FromErrVar', 687: b'rtcVarDateFromVar', 689: b'rtcGetSetting', 690: b'rtcSaveSetting', 691: b'rtcDeleteSetting', 692: b'rtcGetAllSettings', 693: b'rtcByteValueBstr', 694: b'rtcBstrFromByte', 695: b'rtcVarBstrFromByte', 696: b'rtcCharValueBstr', 697: b'rtcBstrFromChar', 698: b'rtcVarBstrFromChar', 699: b'rtcSetCurrentCalendar', 700: b'rtcGetCurrentCalendar', 999: b'TipInvokeMethod2', 1016: b'TipInvokeMethod', 1024: b'IID_IVbaHost', 1025: b'EbGetObjConnectionCounts', 2000: b'CreateIExprSrvObj', 2010: b'EbGetVBAObject', }
ord_names = {100: b'ThunRTMain', 101: b'VBDllUnRegisterServer', 102: b'VBDllCanUnloadNow', 103: b'VBDllRegisterServer', 104: b'VBDllGetClassObject', 105: b'UserDllMain', 106: b'DllRegisterServer', 107: b'DllUnregisterServer', 108: b'__vbaAryLock', 109: b'__vbaBoolErrVar', 110: b'__vbaStrErrVarCopy', 111: b'__vbaAryVarVarg', 112: b'__vbaFpCDblR4', 113: b'__vbaFpCDblR8', 114: b'__vbaFpCSngR4', 115: b'__vbaFpCSngR8', 116: b'__vbaFpCmpCy', 117: b'__vbaFpCy', 118: b'__vbaFpI2', 119: b'__vbaFpI4', 120: b'__vbaFpR4', 121: b'__vbaFpR8', 122: b'__vbaFpUI1', 123: b'__vbaFreeObj', 124: b'__vbaFreeStr', 125: b'__vbaFreeVar', 126: b'__vbaFreeVarg', 127: b'__vbaI2Abs', 128: b'__vbaI2I4', 129: b'__vbaI2Sgn', 130: b'__vbaI4Abs', 131: b'__vbaI4Sgn', 132: b'__vbaStrCopy', 133: b'__vbaStrMove', 134: b'__vbaUI1I2', 135: b'__vbaUI1I4', 136: b'__vbaUI1Sgn', 137: b'__vbaVarCopy', 138: b'__vbaVarDup', 139: b'__vbaVarMove', 140: b'__vbaVarVargNofree', 141: b'__vbaVargParmRef', 142: b'__vbaVargVar', 143: b'__vbaVargVarCopy', 144: b'__vbaVargVarMove', 145: b'__vbaVargVarRef', 146: b'DLLGetDocumentation', 147: b'_CIatan', 148: b'_CIcos', 149: b'_CIexp', 150: b'_CIlog', 151: b'_CIsin', 152: b'_CIsqrt', 153: b'_CItan', 154: b'__vbaAptOffset', 155: b'__vbaAryConstruct', 156: b'__vbaAryCopy', 157: b'__vbaAryDestruct', 158: b'__vbaAryMove', 159: b'__vbaAryRebase1Var', 160: b'__vbaAryUnlock', 161: b'__vbaBoolStr', 162: b'__vbaBoolVar', 163: b'__vbaBoolVarNull', 164: b'__vbaCastObj', 165: b'__vbaCastObjVar', 166: b'__vbaCheckType', 167: b'__vbaCheckTypeVar', 168: b'__vbaChkstk', 169: b'__vbaCopyBytes', 170: b'__vbaCyAbs', 171: b'__vbaCyAdd', 172: b'__vbaCyErrVar', 173: b'__vbaCyFix', 174: b'__vbaCyForInit', 175: b'__vbaCyForNext', 176: b'__vbaCyI2', 177: b'__vbaCyI4', 178: b'__vbaCyInt', 179: b'__vbaCyMul', 180: b'__vbaCyMulI2', 181: b'__vbaCySgn', 182: b'__vbaCyStr', 183: b'__vbaCySub', 184: b'__vbaCyUI1', 185: b'__vbaCyVar', 186: b'ProcCallEngine', 187: b'DllFunctionCall', 188: b'__vbaRecAssign', 189: b'__vbaRecDestruct', 190: b'CopyRecord', 191: b'__vbaDateR4', 192: b'__vbaDateR8', 193: b'__vbaDateStr', 194: b'__vbaDateVar', 195: b'TipGetAddressOfPredeclaredInstance', 196: b'__vbaDerefAry', 197: b'__vbaDerefAry1', 198: b'__vbaEnd', 199: b'MethCallEngine', 200: b'__vbaErase', 201: b'__vbaEraseKeepData', 202: b'__vbaEraseNoPop', 203: b'__vbaError', 204: b'__vbaErrorOverflow', 205: b'__vbaExceptHandler', 206: b'__vbaExitEachAry', 207: b'__vbaExitEachColl', 208: b'__vbaExitEachVar', 209: b'__vbaExitProc', 210: b'__vbaFPException', 211: b'__vbaFPFix', 212: b'__vbaFPInt', 213: b'__vbaFailedFriend', 214: b'__vbaFileClose', 215: b'__vbaFileCloseAll', 216: b'__vbaFileLock', 217: b'__vbaFileOpen', 218: b'__vbaFileSeek', 219: b'__vbaFixstrConstruct', 220: b'TipSetOption', 221: b'__vbaForEachAry', 222: b'__vbaForEachCollAd', 223: b'__vbaForEachCollObj', 224: b'__vbaForEachCollVar', 225: b'__vbaForEachVar', 226: b'__vbaFreeObjList', 227: b'TipUnloadProject', 228: b'__vbaFreeStrList', 229: b'__vbaFreeVarList', 230: b'TipCreateInstanceProject', 231: b'EbResetProject', 232: b'EbGetHandleOfExecutingProject', 233: b'__vbaGenerateBoundsError', 234: b'__vbaGet3', 235: b'__vbaGet4', 236: b'__vbaGetFxStr3', 237: b'__vbaGetFxStr4', 238: b'__vbaGetOwner3', 239: b'__vbaGetOwner4', 240: b'__vbaGosub', 241: b'__vbaGosubFree', 242: b'__vbaGosubReturn', 243: b'__vbaHresultCheck', 244: b'__vbaHresultCheckNonvirt', 245: b'__vbaHresultCheckObj', 246: b'__vbaI2Cy', 247: b'__vbaI2ErrVar', 248: b'__vbaI2ForNextCheck', 249: b'__vbaI2Str', 250: b'__vbaI2Var', 251: b'__vbaI4Cy', 252: b'__vbaI4ErrVar', 253: b'__vbaI4ForNextCheck', 254: b'__vbaI4Str', 255: b'__vbaI4Var', 256: b'__vbaInStr', 257: b'__vbaInStrB', 258: b'__vbaInStrVar', 259: b'__vbaInStrVarB', 260: b'__vbaInputFile', 261: b'__vbaLateIdCall', 262: b'__vbaLateIdCallLd', 263: b'__vbaLateIdCallSt', 264: b'__vbaLateIdNamedCall', 265: b'EbResetProjectNormal', 266: b'TipUnloadInstance', 267: b'__vbaLateIdNamedCallLd', 268: b'EbLibraryLoad', 269: b'EbLibraryUnload', 270: b'__vbaLateIdNamedCallSt', 271: b'EbLoadRunTime', 272: b'__vbaLateIdNamedStAd', 273: b'__vbaLateIdSt', 274: b'EbCreateContext', 275: b'EbDestroyContext', 276: b'EbSetContextWorkerThread', 277: b'__vbaLateIdStAd', 278: b'__vbaLateMemCall', 279: b'__vbaLateMemCallLd', 280: b'__vbaLateMemCallSt', 281: b'__vbaLateMemNamedCall', 282: b'__vbaLateMemNamedCallLd', 283: b'__vbaLateMemNamedCallSt', 284: b'__vbaLateMemNamedStAd', 285: b'__vbaLateMemSt', 286: b'__vbaLateMemStAd', 287: b'__vbaLbound', 288: b'__vbaLenBstr', 289: b'__vbaLenBstrB', 290: b'__vbaLenVar', 291: b'__vbaLenVarB', 292: b'__vbaLineInputStr', 293: b'__vbaLineInputVar', 294: b'__vbaLsetFixstr', 295: b'__vbaLsetFixstrFree', 296: b'__vbaMidStmtBstr', 297: b'__vbaMidStmtBstrB', 298: b'EbIsProjectOnStack', 299: b'TipCreateInstanceEx', 300: b'GetMem2', 301: b'GetMem4', 302: b'GetMem8', 303: b'GetMemStr', 304: b'GetMemVar', 305: b'GetMemObj', 306: b'PutMem2', 307: b'PutMem4', 308: b'PutMem8', 309: b'PutMemStr', 310: b'PutMemVar', 311: b'PutMemObj', 312: b'SetMemVar', 313: b'SetMemObj', 314: b'GetMemNewObj', 315: b'PutMemNewObj', 316: b'SetMemNewObj', 317: b'GetMem1', 318: b'PutMem1', 319: b'GetMemEvent', 320: b'PutMemEvent', 321: b'SetMemEvent', 322: b'__vbaMidStmtVar', 323: b'__vbaMidStmtVarB', 324: b'__vbaNameFile', 325: b'__vbaNew2', 326: b'__vbaNew', 327: b'__vbaNextEachAry', 328: b'__vbaNextEachCollAd', 329: b'__vbaNextEachCollObj', 330: b'__vbaNextEachCollVar', 331: b'__vbaNextEachVar', 332: b'__vbaObjAddref', 333: b'__vbaObjIs', 334: b'__vbaObjSet', 335: b'__vbaObjSetAddref', 336: b'__vbaObjVar', 337: b'__vbaOnError', 338: b'__vbaOnGoCheck', 339: b'__vbaPowerR8', 340: b'__vbaPrintFile', 341: b'__vbaPrintObj', 342: b'__vbaPut3', 343: b'__vbaPut4', 344: b'__vbaPutFxStr3', 345: b'__vbaPutFxStr4', 346: b'__vbaPutOwner3', 347: b'__vbaPutOwner4', 348: b'__vbaR4Cy', 349: b'__vbaR4ErrVar', 350: b'__vbaR4ForNextCheck', 351: b'__vbaR4Sgn', 352: b'__vbaR4Str', 353: b'__vbaR4Var', 354: b'__vbaR8Cy', 355: b'__vbaR8ErrVar', 356: b'__vbaR8FixI2', 357: b'__vbaR8FixI4', 358: b'__vbaR8ForNextCheck', 359: b'__vbaR8IntI2', 360: b'__vbaR8IntI4', 361: b'__vbaR8Sgn', 362: b'__vbaR8Str', 363: b'__vbaR8Var', 364: b'__vbaRaiseEvent', 365: b'__vbaRecAnsiToUni', 366: b'__vbaRecDestructAnsi', 367: b'__vbaRecUniToAnsi', 368: b'__vbaRedim', 369: b'__vbaRedimPreserve', 370: b'__vbaRedimPreserveVar', 371: b'__vbaRedimVar', 372: b'__vbaRefVarAry', 373: b'__vbaResume', 374: b'__vbaRsetFixstr', 375: b'__vbaRsetFixstrFree', 376: b'__vbaSetSystemError', 377: b'__vbaStopExe', 378: b'__vbaStr2Vec', 379: b'__vbaStrAryToAnsi', 380: b'__vbaStrAryToUnicode', 381: b'__vbaStrBool', 382: b'__vbaStrCat', 383: b'__vbaStrCmp', 384: b'__vbaStrComp', 385: b'__vbaStrCompVar', 386: b'__vbaStrCy', 387: b'__vbaStrDate', 388: b'__vbaStrFixstr', 389: b'__vbaStrI2', 390: b'__vbaStrI4', 391: b'__vbaStrLike', 392: b'__vbaStrR4', 393: b'__vbaStrR8', 394: b'__vbaStrTextCmp', 395: b'__vbaStrTextLike', 396: b'__vbaStrToAnsi', 397: b'__vbaStrToUnicode', 398: b'__vbaStrUI1', 399: b'__vbaStrVarCopy', 400: b'EVENT_SINK_QueryInterface', 401: b'EVENT_SINK_AddRef', 402: b'EVENT_SINK_Release', 403: b'EVENT_SINK_GetIDsOfNames', 404: b'EVENT_SINK_Invoke', 405: b'__vbaStrVarMove', 406: b'__vbaStrVarVal', 407: b'__vbaUI1Cy', 408: b'__vbaUI1ErrVar', 409: b'__vbaUI1Str', 410: b'BASIC_CLASS_QueryInterface', 411: b'BASIC_CLASS_AddRef', 412: b'BASIC_CLASS_Release', 413: b'BASIC_CLASS_GetIDsOfNames', 414: b'BASIC_CLASS_Invoke', 415: b'__vbaUI1Var', 416: b'__vbaUbound', 417: b'__vbaUnkVar', 418: b'__vbaVar2Vec', 419: b'__vbaVarAbs', 420: b'BASIC_DISPINTERFACE_GetTICount', 421: b'BASIC_DISPINTERFACE_GetTypeInfo', 422: b'__vbaVarAdd', 423: b'__vbaVarAnd', 424: b'__vbaVarCat', 425: b'__vbaVarCmpEq', 426: b'__vbaVarCmpGe', 427: b'__vbaVarCmpGt', 428: b'__vbaVarCmpLe', 429: b'__vbaVarCmpLt', 430: b'Zombie_QueryInterface', 431: b'Zombie_AddRef', 432: b'Zombie_Release', 433: b'Zombie_GetTypeInfoCount', 434: b'Zombie_GetTypeInfo', 435: b'Zombie_GetIDsOfNames', 436: b'Zombie_Invoke', 437: b'__vbaVarCmpNe', 438: b'__vbaVarDateVar', 439: b'__vbaVarDiv', 440: b'EVENT_SINK2_AddRef', 441: b'EVENT_SINK2_Release', 442: b'__vbaVarEqv', 443: b'__vbaVarErrI4', 444: b'__vbaVarFix', 445: b'__vbaVarForInit', 446: b'__vbaVarForNext', 447: b'__vbaVarIdiv', 448: b'__vbaVarImp', 449: b'__vbaVarIndexLoad', 450: b'__vbaVarIndexLoadRef', 451: b'__vbaVarIndexLoadRefLock', 452: b'__vbaVarIndexStore', 453: b'__vbaVarIndexStoreObj', 454: b'__vbaVarInt', 455: b'__vbaVarLike', 456: b'__vbaVarLikeVar', 457: b'__vbaVarMod', 458: b'__vbaVarMul', 459: b'__vbaVarNeg', 460: b'__vbaVarNot', 461: b'__vbaVarOr', 462: b'__vbaVarPow', 463: b'__vbaVarSetObj', 464: b'__vbaVarSetObjAddref', 465: b'__vbaVarSetUnk', 466: b'__vbaVarSetUnkAddref', 467: b'__vbaVarSetVar', 468: b'__vbaVarSetVarAddref', 469: b'__vbaVarSub', 470: b'__vbaVarTextCmpEq', 471: b'__vbaVarTextCmpGe', 472: b'__vbaVarTextCmpGt', 473: b'__vbaVarTextCmpLe', 474: b'__vbaVarTextCmpLt', 475: b'__vbaVarTextCmpNe', 476: b'__vbaVarTextLike', 477: b'__vbaVarTextLikeVar', 478: b'__vbaVarTextTstEq', 479: b'__vbaVarTextTstGe', 480: b'__vbaVarTextTstGt', 481: b'__vbaVarTextTstLe', 482: b'__vbaVarTextTstLt', 483: b'__vbaVarTextTstNe', 484: b'__vbaVarTstEq', 485: b'__vbaVarTstGe', 486: b'__vbaVarTstGt', 487: b'__vbaVarTstLe', 488: b'__vbaVarTstLt', 489: b'__vbaVarTstNe', 490: b'__vbaVarXor', 491: b'__vbaVargObj', 492: b'__vbaVargObjAddref', 493: b'__vbaVargUnk', 494: b'__vbaVargUnkAddref', 495: b'__vbaVerifyVarObj', 496: b'__vbaWriteFile', 497: b'_adj_fdiv_m16i', 498: b'_adj_fdiv_m32', 499: b'_adj_fdiv_m32i', 500: b'_adj_fdiv_m64', 501: b'_adj_fdiv_r', 502: b'_adj_fdivr_m16i', 503: b'_adj_fdivr_m32', 504: b'_adj_fdivr_m32i', 505: b'_adj_fdivr_m64', 506: b'_adj_fpatan', 507: b'_adj_fprem', 508: b'_adj_fprem1', 509: b'_adj_fptan', 510: b'_allmul', 512: b'rtcLeftBstr', 513: b'rtcLeftVar', 514: b'rtcRightBstr', 515: b'rtcRightVar', 516: b'rtcAnsiValueBstr', 517: b'rtcLowerCaseBstr', 518: b'rtcLowerCaseVar', 519: b'rtcTrimBstr', 520: b'rtcTrimVar', 521: b'rtcLeftTrimBstr', 522: b'rtcLeftTrimVar', 523: b'rtcRightTrimBstr', 524: b'rtcRightTrimVar', 525: b'rtcSpaceBstr', 526: b'rtcSpaceVar', 527: b'rtcUpperCaseBstr', 528: b'rtcUpperCaseVar', 529: b'rtcKillFiles', 530: b'rtcChangeDir', 531: b'rtcMakeDir', 532: b'rtcRemoveDir', 533: b'rtcChangeDrive', 534: b'rtcBeep', 535: b'rtcGetTimer', 536: b'rtcStrFromVar', 537: b'rtcBstrFromAnsi', 538: b'rtcPackDate', 539: b'rtcPackTime', 540: b'rtcGetDateValue', 541: b'rtcGetTimeValue', 542: b'rtcGetDayOfMonth', 543: b'rtcGetHourOfDay', 544: b'rtcGetMinuteOfHour', 545: b'rtcGetMonthOfYear', 546: b'rtcGetPresentDate', 547: b'rtcGetSecondOfMinute', 548: b'rtcSetDateVar', 549: b'rtcSetDateBstr', 550: b'rtcSetTimeVar', 551: b'rtcSetTimeBstr', 552: b'rtcGetDayOfWeek', 553: b'rtcGetYear', 554: b'rtcFileReset', 555: b'rtcFileAttributes', 556: b'rtcIsArray', 557: b'rtcIsDate', 558: b'rtcIsEmpty', 559: b'rtcIsError', 560: b'rtcIsNull', 561: b'rtcIsNumeric', 562: b'rtcIsObject', 563: b'rtcVarType', 564: b'rtDecFromVar', 565: b'rtcFileWidth', 566: b'rtcInputCount', 567: b'rtcInputCountVar', 568: b'rtcFileSeek', 569: b'rtcFileLocation', 570: b'rtcFileLength', 571: b'rtcEndOfFile', 572: b'rtcHexBstrFromVar', 573: b'rtcHexVarFromVar', 574: b'rtcOctBstrFromVar', 575: b'rtcOctVarFromVar', 576: b'rtcFileCopy', 577: b'rtcFileDateTime', 578: b'rtcFileLen', 579: b'rtcGetFileAttr', 580: b'rtcSetFileAttr', 581: b'rtcR8ValFromBstr', 582: b'rtcSin', 583: b'rtcCos', 584: b'rtcTan', 585: b'rtcAtn', 586: b'rtcExp', 587: b'rtcLog', 588: b'rtcRgb', 589: b'rtcQBColor', 590: b'rtcMacId', 591: b'rtcTypeName', 592: b'rtcIsMissing', 593: b'rtcRandomNext', 594: b'rtcRandomize', 595: b'rtcMsgBox', 596: b'rtcInputBox', 597: b'rtcAppActivate', 598: b'rtcDoEvents', 599: b'rtcSendKeys', 600: b'rtcShell', 601: b'rtcArray', 605: b'rtcGetErl', 606: b'rtcStringBstr', 607: b'rtcStringVar', 608: b'rtcVarBstrFromAnsi', 609: b'rtcGetDateBstr', 610: b'rtcGetDateVar', 611: b'rtcGetTimeBstr', 612: b'rtcGetTimeVar', 613: b'rtcVarStrFromVar', 614: b'rtcSqr', 615: b'rtcIMEStatus', 616: b'rtcLeftCharBstr', 617: b'rtcLeftCharVar', 618: b'rtcRightCharBstr', 619: b'rtcRightCharVar', 620: b'rtcInputCharCount', 621: b'rtcInputCharCountVar', 622: b'rtcStrConvVar', 624: b'rtcGetHostLCID', 625: b'rtcCreateObject', 626: b'rtcGetObject', 627: b'rtcAppleScript', 628: b'rtcMidBstr', 629: b'rtcMidVar', 630: b'rtcInStr', 631: b'rtcMidCharBstr', 632: b'rtcMidCharVar', 633: b'rtcInStrChar', 634: b'rtBstrFromErrVar', 635: b'rtBoolFromErrVar', 636: b'rtCyFromErrVar', 637: b'rtI2FromErrVar', 638: b'rtI4FromErrVar', 639: b'rtR4FromErrVar', 640: b'rtR8FromErrVar', 641: b'rtcDateFromVar', 642: b'rtcVarFromVar', 643: b'rtcCVErrFromVar', 644: b'VarPtr', 645: b'rtcDir', 646: b'rtcCurrentDirBstr', 647: b'rtcCurrentDir', 648: b'rtcFreeFile', 649: b'rtcCompareBstr', 650: b'rtcBstrFromFormatVar', 651: b'rtcBstrFromError', 652: b'rtcVarFromError', 653: b'rtcLenCharVar', 654: b'rtcLenVar', 655: b'rtcFixVar', 656: b'rtcAbsVar', 657: b'rtcIntVar', 658: b'rtcSgnVar', 660: b'rtcVarFromFormatVar', 661: b'rtcDateAdd', 662: b'rtcDateDiff', 663: b'rtcDatePart', 664: b'rtcPartition', 665: b'rtcChoose', 666: b'rtcEnvironVar', 667: b'rtcEnvironBstr', 668: b'rtcSwitch', 669: b'rtcCommandBstr', 670: b'rtcCommandVar', 671: b'rtcSLN', 672: b'rtcSYD', 673: b'rtcDDB', 674: b'rtcIPMT', 675: b'rtcPPMT', 676: b'rtcPMT', 677: b'rtcPV', 678: b'rtcFV', 679: b'rtcNPer', 680: b'rtcRate', 681: b'rtcImmediateIf', 682: b'rtcIRR', 683: b'rtcMIRR', 684: b'rtcNPV', 685: b'rtcErrObj', 686: b'rtUI1FromErrVar', 687: b'rtcVarDateFromVar', 689: b'rtcGetSetting', 690: b'rtcSaveSetting', 691: b'rtcDeleteSetting', 692: b'rtcGetAllSettings', 693: b'rtcByteValueBstr', 694: b'rtcBstrFromByte', 695: b'rtcVarBstrFromByte', 696: b'rtcCharValueBstr', 697: b'rtcBstrFromChar', 698: b'rtcVarBstrFromChar', 699: b'rtcSetCurrentCalendar', 700: b'rtcGetCurrentCalendar', 999: b'TipInvokeMethod2', 1016: b'TipInvokeMethod', 1024: b'IID_IVbaHost', 1025: b'EbGetObjConnectionCounts', 2000: b'CreateIExprSrvObj', 2010: b'EbGetVBAObject'}
# model model = Model() i0 = Input("op_shape", "TENSOR_INT32", "{4}") weights = Parameter("ker", "TENSOR_FLOAT32", "{2, 3, 3, 1}", [1.0, 3.0, 5.0, 7.0, 9.0, 11.0, 13.0, 15.0, 17.0, 2.0, 4.0, 6.0, 8.0, 10.0, 12.0, 14.0, 16.0, 18.0]) i1 = Input("in", "TENSOR_FLOAT32", "{1, 2, 2, 1}" ) pad = Int32Scalar("pad_valid", 2) s_x = Int32Scalar("stride_x", 2) s_y = Int32Scalar("stride_y", 2) i2 = Output("op", "TENSOR_FLOAT32", "{1, 5, 5, 2}") model = model.Operation("TRANSPOSE_CONV_EX", i0, weights, i1, pad, s_x, s_y).To(i2) # Example 1. Input in operand 0, input0 = {i0: # output shape [1, 5, 5, 2], i1: # input 0 [1.0, 2.0, 3.0, 4.0]} output0 = {i2: # output 0 [1.0, 2.0, 3.0, 4.0, 7.0, 10.0, 6.0, 8.0, 10.0, 12.0, 7.0, 8.0, 9.0, 10.0, 25.0, 28.0, 18.0, 20.0, 22.0, 24.0, 16.0, 20.0, 24.0, 28.0, 62.0, 72.0, 42.0, 48.0, 54.0, 60.0, 21.0, 24.0, 27.0, 30.0, 61.0, 68.0, 36.0, 40.0, 44.0, 48.0, 39.0, 42.0, 45.0, 48.0, 103.0, 110.0, 60.0, 64.0, 68.0, 72.0]} # Instantiate an example Example((input0, output0))
model = model() i0 = input('op_shape', 'TENSOR_INT32', '{4}') weights = parameter('ker', 'TENSOR_FLOAT32', '{2, 3, 3, 1}', [1.0, 3.0, 5.0, 7.0, 9.0, 11.0, 13.0, 15.0, 17.0, 2.0, 4.0, 6.0, 8.0, 10.0, 12.0, 14.0, 16.0, 18.0]) i1 = input('in', 'TENSOR_FLOAT32', '{1, 2, 2, 1}') pad = int32_scalar('pad_valid', 2) s_x = int32_scalar('stride_x', 2) s_y = int32_scalar('stride_y', 2) i2 = output('op', 'TENSOR_FLOAT32', '{1, 5, 5, 2}') model = model.Operation('TRANSPOSE_CONV_EX', i0, weights, i1, pad, s_x, s_y).To(i2) input0 = {i0: [1, 5, 5, 2], i1: [1.0, 2.0, 3.0, 4.0]} output0 = {i2: [1.0, 2.0, 3.0, 4.0, 7.0, 10.0, 6.0, 8.0, 10.0, 12.0, 7.0, 8.0, 9.0, 10.0, 25.0, 28.0, 18.0, 20.0, 22.0, 24.0, 16.0, 20.0, 24.0, 28.0, 62.0, 72.0, 42.0, 48.0, 54.0, 60.0, 21.0, 24.0, 27.0, 30.0, 61.0, 68.0, 36.0, 40.0, 44.0, 48.0, 39.0, 42.0, 45.0, 48.0, 103.0, 110.0, 60.0, 64.0, 68.0, 72.0]} example((input0, output0))
# AUTOGENERATED BY NBDEV! DO NOT EDIT! __all__ = ["index", "modules", "custom_doc_links", "git_url"] index = {"Intake": "01_Download_and_Load.ipynb", "mergeDatasets": "02_Merge_Data.ipynb", "workWithGeometryData": "03_Map_Basics_Intake_and_Operations.ipynb", "readInGeometryData": "03_Map_Basics_Intake_and_Operations.ipynb", "map_points": "03_Map_Basics_Intake_and_Operations.ipynb", "convertNb": "04_nb_2_html.ipynb", "cleanCell": "04_nb_2_html.ipynb", "processCode": "04_nb_2_html.ipynb", "getFlags": "04_nb_2_html.ipynb", "makeDetails": "04_nb_2_html.ipynb", "processSource": "04_nb_2_html.ipynb", "processOutput": "04_nb_2_html.ipynb", "runit": "04_nb_2_html.ipynb", "average_clustering": "05_Map_Correlation_Networks.ipynb", "create_corr_network_5": "05_Map_Correlation_Networks.ipynb", "InteractiveShell.ast_node_interactivity": "06_Timelapse_Data_Gifs.ipynb", "getColName": "06_Timelapse_Data_Gifs.ipynb", "getColByName": "06_Timelapse_Data_Gifs.ipynb", "addKey": "06_Timelapse_Data_Gifs.ipynb", "nullIfEqual": "06_Timelapse_Data_Gifs.ipynb", "sumInts": "06_Timelapse_Data_Gifs.ipynb", "getMinMax": "06_Timelapse_Data_Gifs.ipynb", "getAbsMinMax": "06_Timelapse_Data_Gifs.ipynb", "createGif": "06_Timelapse_Data_Gifs.ipynb", "createPicture": "06_Timelapse_Data_Gifs.ipynb", "createGifMap": "06_Timelapse_Data_Gifs.ipynb"} modules = ["intaker.py", "merge.py", "geoms.py", "html.py", "corr.py", "gifmap.py"] doc_url = "https://bniajfi.github.io/dataplay/" git_url = "https://github.com/bniajfi/dataplay/tree/main/" def custom_doc_links(name): return None
__all__ = ['index', 'modules', 'custom_doc_links', 'git_url'] index = {'Intake': '01_Download_and_Load.ipynb', 'mergeDatasets': '02_Merge_Data.ipynb', 'workWithGeometryData': '03_Map_Basics_Intake_and_Operations.ipynb', 'readInGeometryData': '03_Map_Basics_Intake_and_Operations.ipynb', 'map_points': '03_Map_Basics_Intake_and_Operations.ipynb', 'convertNb': '04_nb_2_html.ipynb', 'cleanCell': '04_nb_2_html.ipynb', 'processCode': '04_nb_2_html.ipynb', 'getFlags': '04_nb_2_html.ipynb', 'makeDetails': '04_nb_2_html.ipynb', 'processSource': '04_nb_2_html.ipynb', 'processOutput': '04_nb_2_html.ipynb', 'runit': '04_nb_2_html.ipynb', 'average_clustering': '05_Map_Correlation_Networks.ipynb', 'create_corr_network_5': '05_Map_Correlation_Networks.ipynb', 'InteractiveShell.ast_node_interactivity': '06_Timelapse_Data_Gifs.ipynb', 'getColName': '06_Timelapse_Data_Gifs.ipynb', 'getColByName': '06_Timelapse_Data_Gifs.ipynb', 'addKey': '06_Timelapse_Data_Gifs.ipynb', 'nullIfEqual': '06_Timelapse_Data_Gifs.ipynb', 'sumInts': '06_Timelapse_Data_Gifs.ipynb', 'getMinMax': '06_Timelapse_Data_Gifs.ipynb', 'getAbsMinMax': '06_Timelapse_Data_Gifs.ipynb', 'createGif': '06_Timelapse_Data_Gifs.ipynb', 'createPicture': '06_Timelapse_Data_Gifs.ipynb', 'createGifMap': '06_Timelapse_Data_Gifs.ipynb'} modules = ['intaker.py', 'merge.py', 'geoms.py', 'html.py', 'corr.py', 'gifmap.py'] doc_url = 'https://bniajfi.github.io/dataplay/' git_url = 'https://github.com/bniajfi/dataplay/tree/main/' def custom_doc_links(name): return None
def main(): age = int(input('Enter your age: ')) name = input('Enter your name: ') if age < 30: print('Hello', name) print('I see you are less than 30.') print('You are so young.')
def main(): age = int(input('Enter your age: ')) name = input('Enter your name: ') if age < 30: print('Hello', name) print('I see you are less than 30.') print('You are so young.')
file = open("IntegerArray.txt") data = [] n = 0 while 1: line = file.readline() if not line: break data.append(int(line)) n += 1 def InverseCount(data): n = len(data) if n <= 1: return data,0 n1 = int(n/2+0.5) A = data[:n1] B = data[n1:] A,m1 = InverseCount(A) B,m2 = InverseCount(B) C = [] m = 0 a,b = A.pop(0),B.pop(0) for k in range(n): if a < b: C.append(a) if A == []: C.append(b) C += B break else: a = A.pop(0) else: C.append(b) m += (len(A)+1) if B == []: C.append(a) C += A break else: b = B.pop(0) count = m+m1+m2 return C,count D,m3 = InverseCount(data) print(m3)
file = open('IntegerArray.txt') data = [] n = 0 while 1: line = file.readline() if not line: break data.append(int(line)) n += 1 def inverse_count(data): n = len(data) if n <= 1: return (data, 0) n1 = int(n / 2 + 0.5) a = data[:n1] b = data[n1:] (a, m1) = inverse_count(A) (b, m2) = inverse_count(B) c = [] m = 0 (a, b) = (A.pop(0), B.pop(0)) for k in range(n): if a < b: C.append(a) if A == []: C.append(b) c += B break else: a = A.pop(0) else: C.append(b) m += len(A) + 1 if B == []: C.append(a) c += A break else: b = B.pop(0) count = m + m1 + m2 return (C, count) (d, m3) = inverse_count(data) print(m3)
# # PySNMP MIB module Wellfleet-X25PAD-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Wellfleet-X25PAD-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 21:35:50 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, ValueRangeConstraint, ValueSizeConstraint, ConstraintsIntersection, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsIntersection", "SingleValueConstraint") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Gauge32, iso, Integer32, ModuleIdentity, MibIdentifier, ObjectIdentity, Bits, Counter32, IpAddress, NotificationType, Counter64, Unsigned32, TimeTicks, MibScalar, MibTable, MibTableRow, MibTableColumn = mibBuilder.importSymbols("SNMPv2-SMI", "Gauge32", "iso", "Integer32", "ModuleIdentity", "MibIdentifier", "ObjectIdentity", "Bits", "Counter32", "IpAddress", "NotificationType", "Counter64", "Unsigned32", "TimeTicks", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") wfX25PadGroup, = mibBuilder.importSymbols("Wellfleet-COMMON-MIB", "wfX25PadGroup") wfX25PadDefaultCfgTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 1), ) if mibBuilder.loadTexts: wfX25PadDefaultCfgTable.setStatus('mandatory') wfX25PadDefaultCfgEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 1, 1), ).setIndexNames((0, "Wellfleet-X25PAD-MIB", "wfX25PadDefaultCfgSlot"), (0, "Wellfleet-X25PAD-MIB", "wfX25PadDefaultCfgConnector")) if mibBuilder.loadTexts: wfX25PadDefaultCfgEntry.setStatus('mandatory') wfX25PadDefaultCfgDelete = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("created", 1), ("deleted", 2))).clone('created')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadDefaultCfgDelete.setStatus('mandatory') wfX25PadDefaultCfgDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('enabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadDefaultCfgDisable.setStatus('mandatory') wfX25PadDefaultCfgState = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("init", 3))).clone('down')).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadDefaultCfgState.setStatus('mandatory') wfX25PadDefaultCfgSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 1, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadDefaultCfgSlot.setStatus('mandatory') wfX25PadDefaultCfgConnector = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 1, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadDefaultCfgConnector.setStatus('mandatory') wfX25PadDefaultCfgCircuit = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 1, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadDefaultCfgCircuit.setStatus('mandatory') wfX25PadDefaultCfgX121Addr = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 1, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 15))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadDefaultCfgX121Addr.setStatus('mandatory') wfX25PadDefaultCfgDNIC = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 1, 1, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 4))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadDefaultCfgDNIC.setStatus('mandatory') wfX25PadDefaultCfgLenSubAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 1, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 8)).clone(2)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadDefaultCfgLenSubAddress.setStatus('mandatory') wfX25PadDefaultCfgLCNLow = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4095))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadDefaultCfgLCNLow.setStatus('mandatory') wfX25PadDefaultCfgLCNHigh = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 1, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4095))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadDefaultCfgLCNHigh.setStatus('mandatory') wfX25PadCurrentCfgTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 2), ) if mibBuilder.loadTexts: wfX25PadCurrentCfgTable.setStatus('mandatory') wfX25PadCurrentCfgEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 2, 1), ).setIndexNames((0, "Wellfleet-X25PAD-MIB", "wfX25PadCurrentCfgSlot"), (0, "Wellfleet-X25PAD-MIB", "wfX25PadCurrentCfgConnector")) if mibBuilder.loadTexts: wfX25PadCurrentCfgEntry.setStatus('mandatory') wfX25PadCurrentCfgState = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 2, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("init", 3))).clone('down')).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadCurrentCfgState.setStatus('mandatory') wfX25PadCurrentCfgSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 2, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadCurrentCfgSlot.setStatus('mandatory') wfX25PadCurrentCfgConnector = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 2, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadCurrentCfgConnector.setStatus('mandatory') wfX25PadCurrentCfgCircuit = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 2, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadCurrentCfgCircuit.setStatus('mandatory') wfX25PadCurrentCfgX121Addr = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 2, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 15))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadCurrentCfgX121Addr.setStatus('mandatory') wfX25PadCurrentCfgDNIC = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 2, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 4))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadCurrentCfgDNIC.setStatus('mandatory') wfX25PadCurrentCfgLenSubAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 2, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 8))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadCurrentCfgLenSubAddress.setStatus('mandatory') wfX25PadCurrentCfgLCNLow = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 2, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4095))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadCurrentCfgLCNLow.setStatus('mandatory') wfX25PadCurrentCfgLCNHigh = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 2, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4095))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadCurrentCfgLCNHigh.setStatus('mandatory') wfX25PadStatTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 3), ) if mibBuilder.loadTexts: wfX25PadStatTable.setStatus('mandatory') wfX25PadStatEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 3, 1), ).setIndexNames((0, "Wellfleet-X25PAD-MIB", "wfX25PadStatSlot"), (0, "Wellfleet-X25PAD-MIB", "wfX25PadStatConnector")) if mibBuilder.loadTexts: wfX25PadStatEntry.setStatus('mandatory') wfX25PadStatState = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 3, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("init", 3))).clone('down')).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadStatState.setStatus('mandatory') wfX25PadStatSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 3, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadStatSlot.setStatus('mandatory') wfX25PadStatConnector = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 3, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadStatConnector.setStatus('mandatory') wfX25PadStatTotalConnCount = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 3, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadStatTotalConnCount.setStatus('mandatory') wfX25PadStatRxRR = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 3, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadStatRxRR.setStatus('mandatory') wfX25PadStatTxRR = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 3, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadStatTxRR.setStatus('mandatory') wfX25PadStatRxRNR = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 3, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadStatRxRNR.setStatus('mandatory') wfX25PadStatTxRNR = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 3, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadStatTxRNR.setStatus('mandatory') wfX25PadStatRxRestart = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 3, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadStatRxRestart.setStatus('mandatory') wfX25PadStatTxRestart = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 3, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadStatTxRestart.setStatus('mandatory') wfX25PadPortDefaultCfgTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4), ) if mibBuilder.loadTexts: wfX25PadPortDefaultCfgTable.setStatus('mandatory') wfX25PadPortDefaultCfgEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1), ).setIndexNames((0, "Wellfleet-X25PAD-MIB", "wfX25PadPortDefaultCfgSlot"), (0, "Wellfleet-X25PAD-MIB", "wfX25PadPortDefaultCfgConnector"), (0, "Wellfleet-X25PAD-MIB", "wfX25PadPortDefaultCfgNumber")) if mibBuilder.loadTexts: wfX25PadPortDefaultCfgEntry.setStatus('mandatory') wfX25PadPortDefaultCfgDelete = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("created", 1), ("deleted", 2))).clone('created')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgDelete.setStatus('mandatory') wfX25PadPortDefaultCfgDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('enabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgDisable.setStatus('mandatory') wfX25PadPortDefaultCfgState = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("init", 3))).clone('down')).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgState.setStatus('mandatory') wfX25PadPortDefaultCfgSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgSlot.setStatus('mandatory') wfX25PadPortDefaultCfgConnector = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgConnector.setStatus('mandatory') wfX25PadPortDefaultCfgNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgNumber.setStatus('mandatory') wfX25PadPortDefaultCfgSubAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 8))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgSubAddress.setStatus('mandatory') wfX25PadPortDefaultCfgLenSubAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 8)).clone(2)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgLenSubAddress.setStatus('mandatory') wfX25PadPortDefaultCfgX3escape = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 126)).clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3escape.setStatus('mandatory') wfX25PadPortDefaultCfgX3echo = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2)).clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3echo.setStatus('mandatory') wfX25PadPortDefaultCfgX3forward = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 126)).clone(2)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3forward.setStatus('mandatory') wfX25PadPortDefaultCfgX3idle = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3idle.setStatus('mandatory') wfX25PadPortDefaultCfgX3device = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2)).clone(2)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3device.setStatus('mandatory') wfX25PadPortDefaultCfgX3signals = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 14), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 5)).clone(5)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3signals.setStatus('mandatory') wfX25PadPortDefaultCfgX3break = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 21)).clone(4)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3break.setStatus('mandatory') wfX25PadPortDefaultCfgX3discard = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 16), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3discard.setStatus('mandatory') wfX25PadPortDefaultCfgX3CRpad = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 17), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3CRpad.setStatus('mandatory') wfX25PadPortDefaultCfgX3folding = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 18), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255)).clone(80)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3folding.setStatus('mandatory') wfX25PadPortDefaultCfgX3speed = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 19), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 18)).clone(14)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3speed.setStatus('mandatory') wfX25PadPortDefaultCfgX3flow = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 20), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1)).clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3flow.setStatus('mandatory') wfX25PadPortDefaultCfgX3LFinsert = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 21), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7)).clone(4)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3LFinsert.setStatus('mandatory') wfX25PadPortDefaultCfgX3LFpad = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 22), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3LFpad.setStatus('mandatory') wfX25PadPortDefaultCfgX3Edit = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 23), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1)).clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3Edit.setStatus('mandatory') wfX25PadPortDefaultCfgX3Cdelete = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 24), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 127)).clone(127)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3Cdelete.setStatus('mandatory') wfX25PadPortDefaultCfgX3Ldelete = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 25), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 127)).clone(24)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3Ldelete.setStatus('mandatory') wfX25PadPortDefaultCfgX3Ldisplay = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 26), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 127)).clone(18)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3Ldisplay.setStatus('mandatory') wfX25PadPortDefaultCfgX3Esignals = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 27), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 126)).clone(2)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3Esignals.setStatus('mandatory') wfX25PadPortDefaultCfgX3Mask = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 28), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3Mask.setStatus('mandatory') wfX25PadPortDefaultCfgX3parity = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 29), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 3)).clone(3)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3parity.setStatus('mandatory') wfX25PadPortDefaultCfgX3page = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 30), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3page.setStatus('mandatory') wfX25PadPortDefaultCfgLenUserData = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 31), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 16))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgLenUserData.setStatus('mandatory') wfX25PadPortDefaultCfgUserData = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 32), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgUserData.setStatus('mandatory') wfX25PadPortDefaultCfgLenRawFacilities = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 33), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 63))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgLenRawFacilities.setStatus('mandatory') wfX25PadPortDefaultCfgRawFacilitiesData = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 34), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 63))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgRawFacilitiesData.setStatus('mandatory') wfX25PadPortDefaultCfgReverseCharge = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 35), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 2))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgReverseCharge.setStatus('mandatory') wfX25PadPortDefaultCfgThruClassNegotiation = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 36), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 2))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgThruClassNegotiation.setStatus('mandatory') wfX25PadPortDefaultCfgPacketSizeNegotiation = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 37), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 3))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgPacketSizeNegotiation.setStatus('mandatory') wfX25PadPortDefaultCfgWindowSizeNegotiation = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 38), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 3))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgWindowSizeNegotiation.setStatus('mandatory') wfX25PadPortDefaultCfgIntervalTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 39), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 999))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgIntervalTimer.setStatus('mandatory') wfX25PadPortDefaultCfgFullAddressing = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 40), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('enabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadPortDefaultCfgFullAddressing.setStatus('mandatory') wfX25PadPortCurrentCfgTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5), ) if mibBuilder.loadTexts: wfX25PadPortCurrentCfgTable.setStatus('mandatory') wfX25PadPortCurrentCfgEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1), ).setIndexNames((0, "Wellfleet-X25PAD-MIB", "wfX25PadPortCurrentCfgSlot"), (0, "Wellfleet-X25PAD-MIB", "wfX25PadPortCurrentCfgConnector"), (0, "Wellfleet-X25PAD-MIB", "wfX25PadPortCurrentCfgNumber")) if mibBuilder.loadTexts: wfX25PadPortCurrentCfgEntry.setStatus('mandatory') wfX25PadPortCurrentCfgState = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("init", 3))).clone('down')).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortCurrentCfgState.setStatus('mandatory') wfX25PadPortCurrentCfgSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortCurrentCfgSlot.setStatus('mandatory') wfX25PadPortCurrentCfgConnector = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortCurrentCfgConnector.setStatus('mandatory') wfX25PadPortCurrentCfgNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortCurrentCfgNumber.setStatus('mandatory') wfX25PadPortCurrentCfgSubAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 8))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortCurrentCfgSubAddress.setStatus('mandatory') wfX25PadPortCurrentCfgLenSubAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 8))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortCurrentCfgLenSubAddress.setStatus('mandatory') wfX25PadPortCurrentCfgX3escape = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 126))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3escape.setStatus('mandatory') wfX25PadPortCurrentCfgX3echo = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3echo.setStatus('mandatory') wfX25PadPortCurrentCfgX3forward = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 126))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3forward.setStatus('mandatory') wfX25PadPortCurrentCfgX3idle = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3idle.setStatus('mandatory') wfX25PadPortCurrentCfgX3device = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3device.setStatus('mandatory') wfX25PadPortCurrentCfgX3signals = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 48))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3signals.setStatus('mandatory') wfX25PadPortCurrentCfgX3break = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 21))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3break.setStatus('mandatory') wfX25PadPortCurrentCfgX3discard = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 14), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3discard.setStatus('mandatory') wfX25PadPortCurrentCfgX3CRpad = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3CRpad.setStatus('mandatory') wfX25PadPortCurrentCfgX3folding = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 16), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3folding.setStatus('mandatory') wfX25PadPortCurrentCfgX3speed = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 17), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 18))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3speed.setStatus('mandatory') wfX25PadPortCurrentCfgX3flow = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 18), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3flow.setStatus('mandatory') wfX25PadPortCurrentCfgX3LFinsert = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 19), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3LFinsert.setStatus('mandatory') wfX25PadPortCurrentCfgX3LFpad = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 20), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3LFpad.setStatus('mandatory') wfX25PadPortCurrentCfgX3Edit = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 21), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3Edit.setStatus('mandatory') wfX25PadPortCurrentCfgX3Cdelete = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 22), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 127))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3Cdelete.setStatus('mandatory') wfX25PadPortCurrentCfgX3Ldelete = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 23), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 127))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3Ldelete.setStatus('mandatory') wfX25PadPortCurrentCfgX3Ldisplay = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 24), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 127))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3Ldisplay.setStatus('mandatory') wfX25PadPortCurrentCfgX3Esignals = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 25), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 126))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3Esignals.setStatus('mandatory') wfX25PadPortCurrentCfgX3Mask = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 26), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3Mask.setStatus('mandatory') wfX25PadPortCurrentCfgX3parity = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 27), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 3))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3parity.setStatus('mandatory') wfX25PadPortCurrentCfgX3page = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 28), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3page.setStatus('mandatory') wfX25PadPortCurrentCfgLenUserData = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 29), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortCurrentCfgLenUserData.setStatus('mandatory') wfX25PadPortCurrentCfgUserData = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 30), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortCurrentCfgUserData.setStatus('mandatory') wfX25PadPortCurrentCfgLenRawFacilities = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 31), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 63))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortCurrentCfgLenRawFacilities.setStatus('mandatory') wfX25PadPortCurrentCfgRawFacilitiesData = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 32), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 63))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortCurrentCfgRawFacilitiesData.setStatus('mandatory') wfX25PadPortCurrentCfgReverseCharge = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 33), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 2))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortCurrentCfgReverseCharge.setStatus('mandatory') wfX25PadPortCurrentCfgThruClassNegotiation = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 34), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 2))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortCurrentCfgThruClassNegotiation.setStatus('mandatory') wfX25PadPortCurrentCfgPacketSizeNegotiation = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 35), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 3))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortCurrentCfgPacketSizeNegotiation.setStatus('mandatory') wfX25PadPortCurrentCfgWindowSizeNegotiation = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 36), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 3))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortCurrentCfgWindowSizeNegotiation.setStatus('mandatory') wfX25PadPortCurrentCfgIntervalTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 37), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 999))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadPortCurrentCfgIntervalTimer.setStatus('mandatory') wfX25PadPortCurrentCfgFullAddressing = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 38), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('enabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfX25PadPortCurrentCfgFullAddressing.setStatus('mandatory') wfX25PadPortStatTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6), ) if mibBuilder.loadTexts: wfX25PadPortStatTable.setStatus('mandatory') wfX25PadPortStatEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1), ).setIndexNames((0, "Wellfleet-X25PAD-MIB", "wfX25PadPortStatSlot"), (0, "Wellfleet-X25PAD-MIB", "wfX25PadPortStatConnector"), (0, "Wellfleet-X25PAD-MIB", "wfX25PadPortStatNumber")) if mibBuilder.loadTexts: wfX25PadPortStatEntry.setStatus('mandatory') wfX25PadPortStatState = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("init", 3))).clone('down')).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortStatState.setStatus('mandatory') wfX25PadPortStatSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortStatSlot.setStatus('mandatory') wfX25PadPortStatConnector = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortStatConnector.setStatus('mandatory') wfX25PadPortStatNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortStatNumber.setStatus('mandatory') wfX25PadPortStatRxOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortStatRxOctets.setStatus('mandatory') wfX25PadPortStatTxOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortStatTxOctets.setStatus('mandatory') wfX25PadPortStatRxPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortStatRxPackets.setStatus('mandatory') wfX25PadPortStatTxPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortStatTxPackets.setStatus('mandatory') wfX25PadPortStatRemoteX121Addr = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 9), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 15))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortStatRemoteX121Addr.setStatus('mandatory') wfX25PadPortStatLCN = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortStatLCN.setStatus('mandatory') wfX25PadPortStatDuration = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 11), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortStatDuration.setStatus('mandatory') wfX25PadPortStatRxRR = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 12), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortStatRxRR.setStatus('mandatory') wfX25PadPortStatTxRR = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 13), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortStatTxRR.setStatus('mandatory') wfX25PadPortStatRxRNR = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 14), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortStatRxRNR.setStatus('mandatory') wfX25PadPortStatTxRNR = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortStatTxRNR.setStatus('mandatory') wfX25PadPortStatRxClr = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortStatRxClr.setStatus('mandatory') wfX25PadPortStatTxClr = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortStatTxClr.setStatus('mandatory') wfX25PadPortStatRxReset = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 18), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortStatRxReset.setStatus('mandatory') wfX25PadPortStatTxReset = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 19), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortStatTxReset.setStatus('mandatory') wfX25PadPortStatRxCall = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 20), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortStatRxCall.setStatus('mandatory') wfX25PadPortStatTxCall = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 21), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortStatTxCall.setStatus('mandatory') wfX25PadPortStatConnections = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 22), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortStatConnections.setStatus('mandatory') wfX25PadPortStatDisconnects = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 23), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortStatDisconnects.setStatus('mandatory') wfX25PadPortStatLastCause = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 24), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortStatLastCause.setStatus('mandatory') wfX25PadPortStatLastDiag = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 25), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfX25PadPortStatLastDiag.setStatus('mandatory') mibBuilder.exportSymbols("Wellfleet-X25PAD-MIB", wfX25PadPortDefaultCfgX3Ldelete=wfX25PadPortDefaultCfgX3Ldelete, wfX25PadPortDefaultCfgX3Cdelete=wfX25PadPortDefaultCfgX3Cdelete, wfX25PadPortCurrentCfgX3folding=wfX25PadPortCurrentCfgX3folding, wfX25PadPortCurrentCfgX3discard=wfX25PadPortCurrentCfgX3discard, wfX25PadDefaultCfgEntry=wfX25PadDefaultCfgEntry, wfX25PadPortStatRemoteX121Addr=wfX25PadPortStatRemoteX121Addr, wfX25PadPortDefaultCfgX3break=wfX25PadPortDefaultCfgX3break, wfX25PadPortCurrentCfgThruClassNegotiation=wfX25PadPortCurrentCfgThruClassNegotiation, wfX25PadPortDefaultCfgX3Esignals=wfX25PadPortDefaultCfgX3Esignals, wfX25PadPortStatTxCall=wfX25PadPortStatTxCall, wfX25PadPortStatConnector=wfX25PadPortStatConnector, wfX25PadPortDefaultCfgRawFacilitiesData=wfX25PadPortDefaultCfgRawFacilitiesData, wfX25PadPortCurrentCfgState=wfX25PadPortCurrentCfgState, wfX25PadPortDefaultCfgX3page=wfX25PadPortDefaultCfgX3page, wfX25PadPortCurrentCfgReverseCharge=wfX25PadPortCurrentCfgReverseCharge, wfX25PadStatSlot=wfX25PadStatSlot, wfX25PadPortStatTxRR=wfX25PadPortStatTxRR, wfX25PadPortCurrentCfgX3Edit=wfX25PadPortCurrentCfgX3Edit, wfX25PadPortDefaultCfgX3folding=wfX25PadPortDefaultCfgX3folding, wfX25PadPortStatState=wfX25PadPortStatState, wfX25PadPortDefaultCfgX3CRpad=wfX25PadPortDefaultCfgX3CRpad, wfX25PadPortStatTxPackets=wfX25PadPortStatTxPackets, wfX25PadPortCurrentCfgLenUserData=wfX25PadPortCurrentCfgLenUserData, wfX25PadCurrentCfgSlot=wfX25PadCurrentCfgSlot, wfX25PadPortDefaultCfgDisable=wfX25PadPortDefaultCfgDisable, wfX25PadPortCurrentCfgX3CRpad=wfX25PadPortCurrentCfgX3CRpad, wfX25PadPortCurrentCfgX3flow=wfX25PadPortCurrentCfgX3flow, wfX25PadDefaultCfgCircuit=wfX25PadDefaultCfgCircuit, wfX25PadPortCurrentCfgNumber=wfX25PadPortCurrentCfgNumber, wfX25PadDefaultCfgSlot=wfX25PadDefaultCfgSlot, wfX25PadPortDefaultCfgLenRawFacilities=wfX25PadPortDefaultCfgLenRawFacilities, wfX25PadPortCurrentCfgLenSubAddress=wfX25PadPortCurrentCfgLenSubAddress, wfX25PadPortDefaultCfgX3escape=wfX25PadPortDefaultCfgX3escape, wfX25PadPortCurrentCfgX3Esignals=wfX25PadPortCurrentCfgX3Esignals, wfX25PadDefaultCfgTable=wfX25PadDefaultCfgTable, wfX25PadPortCurrentCfgSubAddress=wfX25PadPortCurrentCfgSubAddress, wfX25PadPortCurrentCfgSlot=wfX25PadPortCurrentCfgSlot, wfX25PadStatConnector=wfX25PadStatConnector, wfX25PadPortCurrentCfgX3speed=wfX25PadPortCurrentCfgX3speed, wfX25PadPortDefaultCfgUserData=wfX25PadPortDefaultCfgUserData, wfX25PadPortDefaultCfgNumber=wfX25PadPortDefaultCfgNumber, wfX25PadPortDefaultCfgX3parity=wfX25PadPortDefaultCfgX3parity, wfX25PadPortCurrentCfgX3escape=wfX25PadPortCurrentCfgX3escape, wfX25PadPortDefaultCfgDelete=wfX25PadPortDefaultCfgDelete, wfX25PadPortStatRxRNR=wfX25PadPortStatRxRNR, wfX25PadStatState=wfX25PadStatState, wfX25PadCurrentCfgLenSubAddress=wfX25PadCurrentCfgLenSubAddress, wfX25PadCurrentCfgLCNLow=wfX25PadCurrentCfgLCNLow, wfX25PadPortStatTxRNR=wfX25PadPortStatTxRNR, wfX25PadPortCurrentCfgFullAddressing=wfX25PadPortCurrentCfgFullAddressing, wfX25PadStatRxRNR=wfX25PadStatRxRNR, wfX25PadPortDefaultCfgX3Mask=wfX25PadPortDefaultCfgX3Mask, wfX25PadPortCurrentCfgUserData=wfX25PadPortCurrentCfgUserData, wfX25PadCurrentCfgX121Addr=wfX25PadCurrentCfgX121Addr, wfX25PadPortStatEntry=wfX25PadPortStatEntry, wfX25PadStatTxRR=wfX25PadStatTxRR, wfX25PadPortStatLCN=wfX25PadPortStatLCN, wfX25PadPortStatRxPackets=wfX25PadPortStatRxPackets, wfX25PadPortStatRxRR=wfX25PadPortStatRxRR, wfX25PadPortCurrentCfgPacketSizeNegotiation=wfX25PadPortCurrentCfgPacketSizeNegotiation, wfX25PadPortDefaultCfgSubAddress=wfX25PadPortDefaultCfgSubAddress, wfX25PadPortStatRxClr=wfX25PadPortStatRxClr, wfX25PadStatRxRestart=wfX25PadStatRxRestart, wfX25PadDefaultCfgX121Addr=wfX25PadDefaultCfgX121Addr, wfX25PadCurrentCfgEntry=wfX25PadCurrentCfgEntry, wfX25PadPortStatTable=wfX25PadPortStatTable, wfX25PadPortCurrentCfgX3idle=wfX25PadPortCurrentCfgX3idle, wfX25PadPortCurrentCfgX3LFinsert=wfX25PadPortCurrentCfgX3LFinsert, wfX25PadPortCurrentCfgX3echo=wfX25PadPortCurrentCfgX3echo, wfX25PadPortCurrentCfgRawFacilitiesData=wfX25PadPortCurrentCfgRawFacilitiesData, wfX25PadCurrentCfgConnector=wfX25PadCurrentCfgConnector, wfX25PadPortDefaultCfgReverseCharge=wfX25PadPortDefaultCfgReverseCharge, wfX25PadPortStatTxClr=wfX25PadPortStatTxClr, wfX25PadPortDefaultCfgSlot=wfX25PadPortDefaultCfgSlot, wfX25PadPortCurrentCfgLenRawFacilities=wfX25PadPortCurrentCfgLenRawFacilities, wfX25PadPortCurrentCfgX3break=wfX25PadPortCurrentCfgX3break, wfX25PadPortDefaultCfgThruClassNegotiation=wfX25PadPortDefaultCfgThruClassNegotiation, wfX25PadPortCurrentCfgX3LFpad=wfX25PadPortCurrentCfgX3LFpad, wfX25PadPortStatDuration=wfX25PadPortStatDuration, wfX25PadPortStatNumber=wfX25PadPortStatNumber, wfX25PadPortStatDisconnects=wfX25PadPortStatDisconnects, wfX25PadPortStatSlot=wfX25PadPortStatSlot, wfX25PadDefaultCfgState=wfX25PadDefaultCfgState, wfX25PadPortStatRxOctets=wfX25PadPortStatRxOctets, wfX25PadPortDefaultCfgState=wfX25PadPortDefaultCfgState, wfX25PadPortDefaultCfgX3signals=wfX25PadPortDefaultCfgX3signals, wfX25PadPortStatConnections=wfX25PadPortStatConnections, wfX25PadStatTxRNR=wfX25PadStatTxRNR, wfX25PadPortStatRxReset=wfX25PadPortStatRxReset, wfX25PadPortCurrentCfgX3page=wfX25PadPortCurrentCfgX3page, wfX25PadPortDefaultCfgTable=wfX25PadPortDefaultCfgTable, wfX25PadPortDefaultCfgX3forward=wfX25PadPortDefaultCfgX3forward, wfX25PadPortCurrentCfgX3Cdelete=wfX25PadPortCurrentCfgX3Cdelete, wfX25PadDefaultCfgLenSubAddress=wfX25PadDefaultCfgLenSubAddress, wfX25PadPortDefaultCfgX3device=wfX25PadPortDefaultCfgX3device, wfX25PadDefaultCfgLCNLow=wfX25PadDefaultCfgLCNLow, wfX25PadDefaultCfgConnector=wfX25PadDefaultCfgConnector, wfX25PadPortDefaultCfgX3idle=wfX25PadPortDefaultCfgX3idle, wfX25PadPortCurrentCfgX3Ldelete=wfX25PadPortCurrentCfgX3Ldelete, wfX25PadCurrentCfgCircuit=wfX25PadCurrentCfgCircuit, wfX25PadStatTable=wfX25PadStatTable, wfX25PadPortStatTxReset=wfX25PadPortStatTxReset, wfX25PadPortStatLastCause=wfX25PadPortStatLastCause, wfX25PadCurrentCfgState=wfX25PadCurrentCfgState, wfX25PadCurrentCfgLCNHigh=wfX25PadCurrentCfgLCNHigh, wfX25PadCurrentCfgDNIC=wfX25PadCurrentCfgDNIC, wfX25PadStatEntry=wfX25PadStatEntry, wfX25PadStatTxRestart=wfX25PadStatTxRestart, wfX25PadPortDefaultCfgX3speed=wfX25PadPortDefaultCfgX3speed, wfX25PadPortCurrentCfgX3Ldisplay=wfX25PadPortCurrentCfgX3Ldisplay, wfX25PadPortStatTxOctets=wfX25PadPortStatTxOctets, wfX25PadPortCurrentCfgTable=wfX25PadPortCurrentCfgTable, wfX25PadPortDefaultCfgLenSubAddress=wfX25PadPortDefaultCfgLenSubAddress, wfX25PadPortDefaultCfgConnector=wfX25PadPortDefaultCfgConnector, wfX25PadPortCurrentCfgX3device=wfX25PadPortCurrentCfgX3device, wfX25PadPortCurrentCfgX3Mask=wfX25PadPortCurrentCfgX3Mask, wfX25PadPortCurrentCfgIntervalTimer=wfX25PadPortCurrentCfgIntervalTimer, wfX25PadPortStatLastDiag=wfX25PadPortStatLastDiag, wfX25PadStatTotalConnCount=wfX25PadStatTotalConnCount, wfX25PadStatRxRR=wfX25PadStatRxRR, wfX25PadPortCurrentCfgWindowSizeNegotiation=wfX25PadPortCurrentCfgWindowSizeNegotiation, wfX25PadPortDefaultCfgX3echo=wfX25PadPortDefaultCfgX3echo, wfX25PadPortDefaultCfgX3LFinsert=wfX25PadPortDefaultCfgX3LFinsert, wfX25PadPortCurrentCfgX3forward=wfX25PadPortCurrentCfgX3forward, wfX25PadDefaultCfgDelete=wfX25PadDefaultCfgDelete, wfX25PadPortDefaultCfgX3flow=wfX25PadPortDefaultCfgX3flow, wfX25PadPortCurrentCfgX3signals=wfX25PadPortCurrentCfgX3signals, wfX25PadPortStatRxCall=wfX25PadPortStatRxCall, wfX25PadPortDefaultCfgLenUserData=wfX25PadPortDefaultCfgLenUserData, wfX25PadPortDefaultCfgX3Edit=wfX25PadPortDefaultCfgX3Edit, wfX25PadPortDefaultCfgPacketSizeNegotiation=wfX25PadPortDefaultCfgPacketSizeNegotiation, wfX25PadPortCurrentCfgConnector=wfX25PadPortCurrentCfgConnector, wfX25PadPortDefaultCfgFullAddressing=wfX25PadPortDefaultCfgFullAddressing, wfX25PadPortDefaultCfgEntry=wfX25PadPortDefaultCfgEntry, wfX25PadDefaultCfgLCNHigh=wfX25PadDefaultCfgLCNHigh, wfX25PadDefaultCfgDisable=wfX25PadDefaultCfgDisable, wfX25PadPortDefaultCfgWindowSizeNegotiation=wfX25PadPortDefaultCfgWindowSizeNegotiation, wfX25PadPortDefaultCfgX3discard=wfX25PadPortDefaultCfgX3discard, wfX25PadPortDefaultCfgX3Ldisplay=wfX25PadPortDefaultCfgX3Ldisplay, wfX25PadPortCurrentCfgEntry=wfX25PadPortCurrentCfgEntry, wfX25PadDefaultCfgDNIC=wfX25PadDefaultCfgDNIC, wfX25PadCurrentCfgTable=wfX25PadCurrentCfgTable, wfX25PadPortDefaultCfgX3LFpad=wfX25PadPortDefaultCfgX3LFpad, wfX25PadPortCurrentCfgX3parity=wfX25PadPortCurrentCfgX3parity, wfX25PadPortDefaultCfgIntervalTimer=wfX25PadPortDefaultCfgIntervalTimer)
(object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, value_range_constraint, value_size_constraint, constraints_intersection, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ValueRangeConstraint', 'ValueSizeConstraint', 'ConstraintsIntersection', 'SingleValueConstraint') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (gauge32, iso, integer32, module_identity, mib_identifier, object_identity, bits, counter32, ip_address, notification_type, counter64, unsigned32, time_ticks, mib_scalar, mib_table, mib_table_row, mib_table_column) = mibBuilder.importSymbols('SNMPv2-SMI', 'Gauge32', 'iso', 'Integer32', 'ModuleIdentity', 'MibIdentifier', 'ObjectIdentity', 'Bits', 'Counter32', 'IpAddress', 'NotificationType', 'Counter64', 'Unsigned32', 'TimeTicks', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') (wf_x25_pad_group,) = mibBuilder.importSymbols('Wellfleet-COMMON-MIB', 'wfX25PadGroup') wf_x25_pad_default_cfg_table = mib_table((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 1)) if mibBuilder.loadTexts: wfX25PadDefaultCfgTable.setStatus('mandatory') wf_x25_pad_default_cfg_entry = mib_table_row((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 1, 1)).setIndexNames((0, 'Wellfleet-X25PAD-MIB', 'wfX25PadDefaultCfgSlot'), (0, 'Wellfleet-X25PAD-MIB', 'wfX25PadDefaultCfgConnector')) if mibBuilder.loadTexts: wfX25PadDefaultCfgEntry.setStatus('mandatory') wf_x25_pad_default_cfg_delete = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('created', 1), ('deleted', 2))).clone('created')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadDefaultCfgDelete.setStatus('mandatory') wf_x25_pad_default_cfg_disable = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('enabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadDefaultCfgDisable.setStatus('mandatory') wf_x25_pad_default_cfg_state = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('up', 1), ('down', 2), ('init', 3))).clone('down')).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadDefaultCfgState.setStatus('mandatory') wf_x25_pad_default_cfg_slot = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 1, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadDefaultCfgSlot.setStatus('mandatory') wf_x25_pad_default_cfg_connector = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 1, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadDefaultCfgConnector.setStatus('mandatory') wf_x25_pad_default_cfg_circuit = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 1, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadDefaultCfgCircuit.setStatus('mandatory') wf_x25_pad_default_cfg_x121_addr = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 1, 1, 7), display_string().subtype(subtypeSpec=value_size_constraint(0, 15))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadDefaultCfgX121Addr.setStatus('mandatory') wf_x25_pad_default_cfg_dnic = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 1, 1, 8), display_string().subtype(subtypeSpec=value_size_constraint(0, 4))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadDefaultCfgDNIC.setStatus('mandatory') wf_x25_pad_default_cfg_len_sub_address = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 1, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 8)).clone(2)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadDefaultCfgLenSubAddress.setStatus('mandatory') wf_x25_pad_default_cfg_lcn_low = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 1, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(1, 4095))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadDefaultCfgLCNLow.setStatus('mandatory') wf_x25_pad_default_cfg_lcn_high = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 1, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(1, 4095))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadDefaultCfgLCNHigh.setStatus('mandatory') wf_x25_pad_current_cfg_table = mib_table((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 2)) if mibBuilder.loadTexts: wfX25PadCurrentCfgTable.setStatus('mandatory') wf_x25_pad_current_cfg_entry = mib_table_row((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 2, 1)).setIndexNames((0, 'Wellfleet-X25PAD-MIB', 'wfX25PadCurrentCfgSlot'), (0, 'Wellfleet-X25PAD-MIB', 'wfX25PadCurrentCfgConnector')) if mibBuilder.loadTexts: wfX25PadCurrentCfgEntry.setStatus('mandatory') wf_x25_pad_current_cfg_state = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 2, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('up', 1), ('down', 2), ('init', 3))).clone('down')).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadCurrentCfgState.setStatus('mandatory') wf_x25_pad_current_cfg_slot = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 2, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadCurrentCfgSlot.setStatus('mandatory') wf_x25_pad_current_cfg_connector = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 2, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadCurrentCfgConnector.setStatus('mandatory') wf_x25_pad_current_cfg_circuit = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 2, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadCurrentCfgCircuit.setStatus('mandatory') wf_x25_pad_current_cfg_x121_addr = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 2, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 15))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadCurrentCfgX121Addr.setStatus('mandatory') wf_x25_pad_current_cfg_dnic = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 2, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 4))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadCurrentCfgDNIC.setStatus('mandatory') wf_x25_pad_current_cfg_len_sub_address = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 2, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 8))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadCurrentCfgLenSubAddress.setStatus('mandatory') wf_x25_pad_current_cfg_lcn_low = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 2, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(1, 4095))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadCurrentCfgLCNLow.setStatus('mandatory') wf_x25_pad_current_cfg_lcn_high = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 2, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(1, 4095))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadCurrentCfgLCNHigh.setStatus('mandatory') wf_x25_pad_stat_table = mib_table((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 3)) if mibBuilder.loadTexts: wfX25PadStatTable.setStatus('mandatory') wf_x25_pad_stat_entry = mib_table_row((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 3, 1)).setIndexNames((0, 'Wellfleet-X25PAD-MIB', 'wfX25PadStatSlot'), (0, 'Wellfleet-X25PAD-MIB', 'wfX25PadStatConnector')) if mibBuilder.loadTexts: wfX25PadStatEntry.setStatus('mandatory') wf_x25_pad_stat_state = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 3, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('up', 1), ('down', 2), ('init', 3))).clone('down')).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadStatState.setStatus('mandatory') wf_x25_pad_stat_slot = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 3, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadStatSlot.setStatus('mandatory') wf_x25_pad_stat_connector = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 3, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadStatConnector.setStatus('mandatory') wf_x25_pad_stat_total_conn_count = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 3, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadStatTotalConnCount.setStatus('mandatory') wf_x25_pad_stat_rx_rr = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 3, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadStatRxRR.setStatus('mandatory') wf_x25_pad_stat_tx_rr = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 3, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadStatTxRR.setStatus('mandatory') wf_x25_pad_stat_rx_rnr = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 3, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadStatRxRNR.setStatus('mandatory') wf_x25_pad_stat_tx_rnr = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 3, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadStatTxRNR.setStatus('mandatory') wf_x25_pad_stat_rx_restart = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 3, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadStatRxRestart.setStatus('mandatory') wf_x25_pad_stat_tx_restart = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 3, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadStatTxRestart.setStatus('mandatory') wf_x25_pad_port_default_cfg_table = mib_table((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4)) if mibBuilder.loadTexts: wfX25PadPortDefaultCfgTable.setStatus('mandatory') wf_x25_pad_port_default_cfg_entry = mib_table_row((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1)).setIndexNames((0, 'Wellfleet-X25PAD-MIB', 'wfX25PadPortDefaultCfgSlot'), (0, 'Wellfleet-X25PAD-MIB', 'wfX25PadPortDefaultCfgConnector'), (0, 'Wellfleet-X25PAD-MIB', 'wfX25PadPortDefaultCfgNumber')) if mibBuilder.loadTexts: wfX25PadPortDefaultCfgEntry.setStatus('mandatory') wf_x25_pad_port_default_cfg_delete = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('created', 1), ('deleted', 2))).clone('created')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgDelete.setStatus('mandatory') wf_x25_pad_port_default_cfg_disable = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('enabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgDisable.setStatus('mandatory') wf_x25_pad_port_default_cfg_state = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('up', 1), ('down', 2), ('init', 3))).clone('down')).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgState.setStatus('mandatory') wf_x25_pad_port_default_cfg_slot = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgSlot.setStatus('mandatory') wf_x25_pad_port_default_cfg_connector = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgConnector.setStatus('mandatory') wf_x25_pad_port_default_cfg_number = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgNumber.setStatus('mandatory') wf_x25_pad_port_default_cfg_sub_address = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 7), display_string().subtype(subtypeSpec=value_size_constraint(0, 8))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgSubAddress.setStatus('mandatory') wf_x25_pad_port_default_cfg_len_sub_address = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 8)).clone(2)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgLenSubAddress.setStatus('mandatory') wf_x25_pad_port_default_cfg_x3escape = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 126)).clone(1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3escape.setStatus('mandatory') wf_x25_pad_port_default_cfg_x3echo = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 2)).clone(1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3echo.setStatus('mandatory') wf_x25_pad_port_default_cfg_x3forward = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(0, 126)).clone(2)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3forward.setStatus('mandatory') wf_x25_pad_port_default_cfg_x3idle = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 12), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3idle.setStatus('mandatory') wf_x25_pad_port_default_cfg_x3device = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 13), integer32().subtype(subtypeSpec=value_range_constraint(0, 2)).clone(2)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3device.setStatus('mandatory') wf_x25_pad_port_default_cfg_x3signals = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 14), integer32().subtype(subtypeSpec=value_range_constraint(0, 5)).clone(5)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3signals.setStatus('mandatory') wf_x25_pad_port_default_cfg_x3break = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 15), integer32().subtype(subtypeSpec=value_range_constraint(0, 21)).clone(4)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3break.setStatus('mandatory') wf_x25_pad_port_default_cfg_x3discard = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 16), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3discard.setStatus('mandatory') wf_x25_pad_port_default_cfg_x3_c_rpad = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 17), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3CRpad.setStatus('mandatory') wf_x25_pad_port_default_cfg_x3folding = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 18), integer32().subtype(subtypeSpec=value_range_constraint(0, 255)).clone(80)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3folding.setStatus('mandatory') wf_x25_pad_port_default_cfg_x3speed = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 19), integer32().subtype(subtypeSpec=value_range_constraint(0, 18)).clone(14)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3speed.setStatus('mandatory') wf_x25_pad_port_default_cfg_x3flow = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 20), integer32().subtype(subtypeSpec=value_range_constraint(0, 1)).clone(1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3flow.setStatus('mandatory') wf_x25_pad_port_default_cfg_x3_l_finsert = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 21), integer32().subtype(subtypeSpec=value_range_constraint(0, 7)).clone(4)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3LFinsert.setStatus('mandatory') wf_x25_pad_port_default_cfg_x3_l_fpad = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 22), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3LFpad.setStatus('mandatory') wf_x25_pad_port_default_cfg_x3_edit = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 23), integer32().subtype(subtypeSpec=value_range_constraint(0, 1)).clone(1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3Edit.setStatus('mandatory') wf_x25_pad_port_default_cfg_x3_cdelete = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 24), integer32().subtype(subtypeSpec=value_range_constraint(0, 127)).clone(127)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3Cdelete.setStatus('mandatory') wf_x25_pad_port_default_cfg_x3_ldelete = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 25), integer32().subtype(subtypeSpec=value_range_constraint(0, 127)).clone(24)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3Ldelete.setStatus('mandatory') wf_x25_pad_port_default_cfg_x3_ldisplay = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 26), integer32().subtype(subtypeSpec=value_range_constraint(0, 127)).clone(18)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3Ldisplay.setStatus('mandatory') wf_x25_pad_port_default_cfg_x3_esignals = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 27), integer32().subtype(subtypeSpec=value_range_constraint(0, 126)).clone(2)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3Esignals.setStatus('mandatory') wf_x25_pad_port_default_cfg_x3_mask = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 28), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3Mask.setStatus('mandatory') wf_x25_pad_port_default_cfg_x3parity = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 29), integer32().subtype(subtypeSpec=value_range_constraint(0, 3)).clone(3)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3parity.setStatus('mandatory') wf_x25_pad_port_default_cfg_x3page = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 30), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgX3page.setStatus('mandatory') wf_x25_pad_port_default_cfg_len_user_data = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 31), integer32().subtype(subtypeSpec=value_range_constraint(0, 16))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgLenUserData.setStatus('mandatory') wf_x25_pad_port_default_cfg_user_data = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 32), octet_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgUserData.setStatus('mandatory') wf_x25_pad_port_default_cfg_len_raw_facilities = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 33), integer32().subtype(subtypeSpec=value_range_constraint(0, 63))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgLenRawFacilities.setStatus('mandatory') wf_x25_pad_port_default_cfg_raw_facilities_data = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 34), octet_string().subtype(subtypeSpec=value_size_constraint(0, 63))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgRawFacilitiesData.setStatus('mandatory') wf_x25_pad_port_default_cfg_reverse_charge = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 35), octet_string().subtype(subtypeSpec=value_size_constraint(0, 2))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgReverseCharge.setStatus('mandatory') wf_x25_pad_port_default_cfg_thru_class_negotiation = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 36), octet_string().subtype(subtypeSpec=value_size_constraint(0, 2))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgThruClassNegotiation.setStatus('mandatory') wf_x25_pad_port_default_cfg_packet_size_negotiation = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 37), octet_string().subtype(subtypeSpec=value_size_constraint(0, 3))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgPacketSizeNegotiation.setStatus('mandatory') wf_x25_pad_port_default_cfg_window_size_negotiation = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 38), octet_string().subtype(subtypeSpec=value_size_constraint(0, 3))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgWindowSizeNegotiation.setStatus('mandatory') wf_x25_pad_port_default_cfg_interval_timer = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 39), integer32().subtype(subtypeSpec=value_range_constraint(0, 999))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgIntervalTimer.setStatus('mandatory') wf_x25_pad_port_default_cfg_full_addressing = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 4, 1, 40), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('enabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadPortDefaultCfgFullAddressing.setStatus('mandatory') wf_x25_pad_port_current_cfg_table = mib_table((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5)) if mibBuilder.loadTexts: wfX25PadPortCurrentCfgTable.setStatus('mandatory') wf_x25_pad_port_current_cfg_entry = mib_table_row((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1)).setIndexNames((0, 'Wellfleet-X25PAD-MIB', 'wfX25PadPortCurrentCfgSlot'), (0, 'Wellfleet-X25PAD-MIB', 'wfX25PadPortCurrentCfgConnector'), (0, 'Wellfleet-X25PAD-MIB', 'wfX25PadPortCurrentCfgNumber')) if mibBuilder.loadTexts: wfX25PadPortCurrentCfgEntry.setStatus('mandatory') wf_x25_pad_port_current_cfg_state = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('up', 1), ('down', 2), ('init', 3))).clone('down')).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortCurrentCfgState.setStatus('mandatory') wf_x25_pad_port_current_cfg_slot = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortCurrentCfgSlot.setStatus('mandatory') wf_x25_pad_port_current_cfg_connector = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortCurrentCfgConnector.setStatus('mandatory') wf_x25_pad_port_current_cfg_number = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortCurrentCfgNumber.setStatus('mandatory') wf_x25_pad_port_current_cfg_sub_address = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 8))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortCurrentCfgSubAddress.setStatus('mandatory') wf_x25_pad_port_current_cfg_len_sub_address = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 8))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortCurrentCfgLenSubAddress.setStatus('mandatory') wf_x25_pad_port_current_cfg_x3escape = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 126))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3escape.setStatus('mandatory') wf_x25_pad_port_current_cfg_x3echo = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 2))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3echo.setStatus('mandatory') wf_x25_pad_port_current_cfg_x3forward = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 126))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3forward.setStatus('mandatory') wf_x25_pad_port_current_cfg_x3idle = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3idle.setStatus('mandatory') wf_x25_pad_port_current_cfg_x3device = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(0, 2))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3device.setStatus('mandatory') wf_x25_pad_port_current_cfg_x3signals = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 12), integer32().subtype(subtypeSpec=value_range_constraint(0, 48))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3signals.setStatus('mandatory') wf_x25_pad_port_current_cfg_x3break = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 13), integer32().subtype(subtypeSpec=value_range_constraint(0, 21))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3break.setStatus('mandatory') wf_x25_pad_port_current_cfg_x3discard = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 14), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3discard.setStatus('mandatory') wf_x25_pad_port_current_cfg_x3_c_rpad = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 15), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3CRpad.setStatus('mandatory') wf_x25_pad_port_current_cfg_x3folding = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 16), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3folding.setStatus('mandatory') wf_x25_pad_port_current_cfg_x3speed = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 17), integer32().subtype(subtypeSpec=value_range_constraint(0, 18))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3speed.setStatus('mandatory') wf_x25_pad_port_current_cfg_x3flow = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 18), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3flow.setStatus('mandatory') wf_x25_pad_port_current_cfg_x3_l_finsert = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 19), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3LFinsert.setStatus('mandatory') wf_x25_pad_port_current_cfg_x3_l_fpad = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 20), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3LFpad.setStatus('mandatory') wf_x25_pad_port_current_cfg_x3_edit = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 21), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3Edit.setStatus('mandatory') wf_x25_pad_port_current_cfg_x3_cdelete = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 22), integer32().subtype(subtypeSpec=value_range_constraint(0, 127))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3Cdelete.setStatus('mandatory') wf_x25_pad_port_current_cfg_x3_ldelete = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 23), integer32().subtype(subtypeSpec=value_range_constraint(0, 127))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3Ldelete.setStatus('mandatory') wf_x25_pad_port_current_cfg_x3_ldisplay = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 24), integer32().subtype(subtypeSpec=value_range_constraint(0, 127))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3Ldisplay.setStatus('mandatory') wf_x25_pad_port_current_cfg_x3_esignals = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 25), integer32().subtype(subtypeSpec=value_range_constraint(0, 126))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3Esignals.setStatus('mandatory') wf_x25_pad_port_current_cfg_x3_mask = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 26), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3Mask.setStatus('mandatory') wf_x25_pad_port_current_cfg_x3parity = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 27), integer32().subtype(subtypeSpec=value_range_constraint(0, 3))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3parity.setStatus('mandatory') wf_x25_pad_port_current_cfg_x3page = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 28), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortCurrentCfgX3page.setStatus('mandatory') wf_x25_pad_port_current_cfg_len_user_data = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 29), integer32().subtype(subtypeSpec=value_range_constraint(0, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortCurrentCfgLenUserData.setStatus('mandatory') wf_x25_pad_port_current_cfg_user_data = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 30), octet_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortCurrentCfgUserData.setStatus('mandatory') wf_x25_pad_port_current_cfg_len_raw_facilities = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 31), integer32().subtype(subtypeSpec=value_range_constraint(0, 63))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortCurrentCfgLenRawFacilities.setStatus('mandatory') wf_x25_pad_port_current_cfg_raw_facilities_data = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 32), octet_string().subtype(subtypeSpec=value_size_constraint(0, 63))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortCurrentCfgRawFacilitiesData.setStatus('mandatory') wf_x25_pad_port_current_cfg_reverse_charge = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 33), octet_string().subtype(subtypeSpec=value_size_constraint(0, 2))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortCurrentCfgReverseCharge.setStatus('mandatory') wf_x25_pad_port_current_cfg_thru_class_negotiation = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 34), octet_string().subtype(subtypeSpec=value_size_constraint(0, 2))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortCurrentCfgThruClassNegotiation.setStatus('mandatory') wf_x25_pad_port_current_cfg_packet_size_negotiation = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 35), octet_string().subtype(subtypeSpec=value_size_constraint(0, 3))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortCurrentCfgPacketSizeNegotiation.setStatus('mandatory') wf_x25_pad_port_current_cfg_window_size_negotiation = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 36), octet_string().subtype(subtypeSpec=value_size_constraint(0, 3))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortCurrentCfgWindowSizeNegotiation.setStatus('mandatory') wf_x25_pad_port_current_cfg_interval_timer = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 37), integer32().subtype(subtypeSpec=value_range_constraint(0, 999))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadPortCurrentCfgIntervalTimer.setStatus('mandatory') wf_x25_pad_port_current_cfg_full_addressing = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 5, 1, 38), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('enabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfX25PadPortCurrentCfgFullAddressing.setStatus('mandatory') wf_x25_pad_port_stat_table = mib_table((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6)) if mibBuilder.loadTexts: wfX25PadPortStatTable.setStatus('mandatory') wf_x25_pad_port_stat_entry = mib_table_row((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1)).setIndexNames((0, 'Wellfleet-X25PAD-MIB', 'wfX25PadPortStatSlot'), (0, 'Wellfleet-X25PAD-MIB', 'wfX25PadPortStatConnector'), (0, 'Wellfleet-X25PAD-MIB', 'wfX25PadPortStatNumber')) if mibBuilder.loadTexts: wfX25PadPortStatEntry.setStatus('mandatory') wf_x25_pad_port_stat_state = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('up', 1), ('down', 2), ('init', 3))).clone('down')).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortStatState.setStatus('mandatory') wf_x25_pad_port_stat_slot = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortStatSlot.setStatus('mandatory') wf_x25_pad_port_stat_connector = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortStatConnector.setStatus('mandatory') wf_x25_pad_port_stat_number = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortStatNumber.setStatus('mandatory') wf_x25_pad_port_stat_rx_octets = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortStatRxOctets.setStatus('mandatory') wf_x25_pad_port_stat_tx_octets = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortStatTxOctets.setStatus('mandatory') wf_x25_pad_port_stat_rx_packets = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortStatRxPackets.setStatus('mandatory') wf_x25_pad_port_stat_tx_packets = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortStatTxPackets.setStatus('mandatory') wf_x25_pad_port_stat_remote_x121_addr = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 9), display_string().subtype(subtypeSpec=value_size_constraint(0, 15))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortStatRemoteX121Addr.setStatus('mandatory') wf_x25_pad_port_stat_lcn = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortStatLCN.setStatus('mandatory') wf_x25_pad_port_stat_duration = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 11), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortStatDuration.setStatus('mandatory') wf_x25_pad_port_stat_rx_rr = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 12), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortStatRxRR.setStatus('mandatory') wf_x25_pad_port_stat_tx_rr = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 13), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortStatTxRR.setStatus('mandatory') wf_x25_pad_port_stat_rx_rnr = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 14), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortStatRxRNR.setStatus('mandatory') wf_x25_pad_port_stat_tx_rnr = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 15), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortStatTxRNR.setStatus('mandatory') wf_x25_pad_port_stat_rx_clr = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 16), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortStatRxClr.setStatus('mandatory') wf_x25_pad_port_stat_tx_clr = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 17), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortStatTxClr.setStatus('mandatory') wf_x25_pad_port_stat_rx_reset = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 18), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortStatRxReset.setStatus('mandatory') wf_x25_pad_port_stat_tx_reset = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 19), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortStatTxReset.setStatus('mandatory') wf_x25_pad_port_stat_rx_call = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 20), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortStatRxCall.setStatus('mandatory') wf_x25_pad_port_stat_tx_call = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 21), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortStatTxCall.setStatus('mandatory') wf_x25_pad_port_stat_connections = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 22), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortStatConnections.setStatus('mandatory') wf_x25_pad_port_stat_disconnects = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 23), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortStatDisconnects.setStatus('mandatory') wf_x25_pad_port_stat_last_cause = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 24), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortStatLastCause.setStatus('mandatory') wf_x25_pad_port_stat_last_diag = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 12, 6, 1, 25), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfX25PadPortStatLastDiag.setStatus('mandatory') mibBuilder.exportSymbols('Wellfleet-X25PAD-MIB', wfX25PadPortDefaultCfgX3Ldelete=wfX25PadPortDefaultCfgX3Ldelete, wfX25PadPortDefaultCfgX3Cdelete=wfX25PadPortDefaultCfgX3Cdelete, wfX25PadPortCurrentCfgX3folding=wfX25PadPortCurrentCfgX3folding, wfX25PadPortCurrentCfgX3discard=wfX25PadPortCurrentCfgX3discard, wfX25PadDefaultCfgEntry=wfX25PadDefaultCfgEntry, wfX25PadPortStatRemoteX121Addr=wfX25PadPortStatRemoteX121Addr, wfX25PadPortDefaultCfgX3break=wfX25PadPortDefaultCfgX3break, wfX25PadPortCurrentCfgThruClassNegotiation=wfX25PadPortCurrentCfgThruClassNegotiation, wfX25PadPortDefaultCfgX3Esignals=wfX25PadPortDefaultCfgX3Esignals, wfX25PadPortStatTxCall=wfX25PadPortStatTxCall, wfX25PadPortStatConnector=wfX25PadPortStatConnector, wfX25PadPortDefaultCfgRawFacilitiesData=wfX25PadPortDefaultCfgRawFacilitiesData, wfX25PadPortCurrentCfgState=wfX25PadPortCurrentCfgState, wfX25PadPortDefaultCfgX3page=wfX25PadPortDefaultCfgX3page, wfX25PadPortCurrentCfgReverseCharge=wfX25PadPortCurrentCfgReverseCharge, wfX25PadStatSlot=wfX25PadStatSlot, wfX25PadPortStatTxRR=wfX25PadPortStatTxRR, wfX25PadPortCurrentCfgX3Edit=wfX25PadPortCurrentCfgX3Edit, wfX25PadPortDefaultCfgX3folding=wfX25PadPortDefaultCfgX3folding, wfX25PadPortStatState=wfX25PadPortStatState, wfX25PadPortDefaultCfgX3CRpad=wfX25PadPortDefaultCfgX3CRpad, wfX25PadPortStatTxPackets=wfX25PadPortStatTxPackets, wfX25PadPortCurrentCfgLenUserData=wfX25PadPortCurrentCfgLenUserData, wfX25PadCurrentCfgSlot=wfX25PadCurrentCfgSlot, wfX25PadPortDefaultCfgDisable=wfX25PadPortDefaultCfgDisable, wfX25PadPortCurrentCfgX3CRpad=wfX25PadPortCurrentCfgX3CRpad, wfX25PadPortCurrentCfgX3flow=wfX25PadPortCurrentCfgX3flow, wfX25PadDefaultCfgCircuit=wfX25PadDefaultCfgCircuit, wfX25PadPortCurrentCfgNumber=wfX25PadPortCurrentCfgNumber, wfX25PadDefaultCfgSlot=wfX25PadDefaultCfgSlot, wfX25PadPortDefaultCfgLenRawFacilities=wfX25PadPortDefaultCfgLenRawFacilities, wfX25PadPortCurrentCfgLenSubAddress=wfX25PadPortCurrentCfgLenSubAddress, wfX25PadPortDefaultCfgX3escape=wfX25PadPortDefaultCfgX3escape, wfX25PadPortCurrentCfgX3Esignals=wfX25PadPortCurrentCfgX3Esignals, wfX25PadDefaultCfgTable=wfX25PadDefaultCfgTable, wfX25PadPortCurrentCfgSubAddress=wfX25PadPortCurrentCfgSubAddress, wfX25PadPortCurrentCfgSlot=wfX25PadPortCurrentCfgSlot, wfX25PadStatConnector=wfX25PadStatConnector, wfX25PadPortCurrentCfgX3speed=wfX25PadPortCurrentCfgX3speed, wfX25PadPortDefaultCfgUserData=wfX25PadPortDefaultCfgUserData, wfX25PadPortDefaultCfgNumber=wfX25PadPortDefaultCfgNumber, wfX25PadPortDefaultCfgX3parity=wfX25PadPortDefaultCfgX3parity, wfX25PadPortCurrentCfgX3escape=wfX25PadPortCurrentCfgX3escape, wfX25PadPortDefaultCfgDelete=wfX25PadPortDefaultCfgDelete, wfX25PadPortStatRxRNR=wfX25PadPortStatRxRNR, wfX25PadStatState=wfX25PadStatState, wfX25PadCurrentCfgLenSubAddress=wfX25PadCurrentCfgLenSubAddress, wfX25PadCurrentCfgLCNLow=wfX25PadCurrentCfgLCNLow, wfX25PadPortStatTxRNR=wfX25PadPortStatTxRNR, wfX25PadPortCurrentCfgFullAddressing=wfX25PadPortCurrentCfgFullAddressing, wfX25PadStatRxRNR=wfX25PadStatRxRNR, wfX25PadPortDefaultCfgX3Mask=wfX25PadPortDefaultCfgX3Mask, wfX25PadPortCurrentCfgUserData=wfX25PadPortCurrentCfgUserData, wfX25PadCurrentCfgX121Addr=wfX25PadCurrentCfgX121Addr, wfX25PadPortStatEntry=wfX25PadPortStatEntry, wfX25PadStatTxRR=wfX25PadStatTxRR, wfX25PadPortStatLCN=wfX25PadPortStatLCN, wfX25PadPortStatRxPackets=wfX25PadPortStatRxPackets, wfX25PadPortStatRxRR=wfX25PadPortStatRxRR, wfX25PadPortCurrentCfgPacketSizeNegotiation=wfX25PadPortCurrentCfgPacketSizeNegotiation, wfX25PadPortDefaultCfgSubAddress=wfX25PadPortDefaultCfgSubAddress, wfX25PadPortStatRxClr=wfX25PadPortStatRxClr, wfX25PadStatRxRestart=wfX25PadStatRxRestart, wfX25PadDefaultCfgX121Addr=wfX25PadDefaultCfgX121Addr, wfX25PadCurrentCfgEntry=wfX25PadCurrentCfgEntry, wfX25PadPortStatTable=wfX25PadPortStatTable, wfX25PadPortCurrentCfgX3idle=wfX25PadPortCurrentCfgX3idle, wfX25PadPortCurrentCfgX3LFinsert=wfX25PadPortCurrentCfgX3LFinsert, wfX25PadPortCurrentCfgX3echo=wfX25PadPortCurrentCfgX3echo, wfX25PadPortCurrentCfgRawFacilitiesData=wfX25PadPortCurrentCfgRawFacilitiesData, wfX25PadCurrentCfgConnector=wfX25PadCurrentCfgConnector, wfX25PadPortDefaultCfgReverseCharge=wfX25PadPortDefaultCfgReverseCharge, wfX25PadPortStatTxClr=wfX25PadPortStatTxClr, wfX25PadPortDefaultCfgSlot=wfX25PadPortDefaultCfgSlot, wfX25PadPortCurrentCfgLenRawFacilities=wfX25PadPortCurrentCfgLenRawFacilities, wfX25PadPortCurrentCfgX3break=wfX25PadPortCurrentCfgX3break, wfX25PadPortDefaultCfgThruClassNegotiation=wfX25PadPortDefaultCfgThruClassNegotiation, wfX25PadPortCurrentCfgX3LFpad=wfX25PadPortCurrentCfgX3LFpad, wfX25PadPortStatDuration=wfX25PadPortStatDuration, wfX25PadPortStatNumber=wfX25PadPortStatNumber, wfX25PadPortStatDisconnects=wfX25PadPortStatDisconnects, wfX25PadPortStatSlot=wfX25PadPortStatSlot, wfX25PadDefaultCfgState=wfX25PadDefaultCfgState, wfX25PadPortStatRxOctets=wfX25PadPortStatRxOctets, wfX25PadPortDefaultCfgState=wfX25PadPortDefaultCfgState, wfX25PadPortDefaultCfgX3signals=wfX25PadPortDefaultCfgX3signals, wfX25PadPortStatConnections=wfX25PadPortStatConnections, wfX25PadStatTxRNR=wfX25PadStatTxRNR, wfX25PadPortStatRxReset=wfX25PadPortStatRxReset, wfX25PadPortCurrentCfgX3page=wfX25PadPortCurrentCfgX3page, wfX25PadPortDefaultCfgTable=wfX25PadPortDefaultCfgTable, wfX25PadPortDefaultCfgX3forward=wfX25PadPortDefaultCfgX3forward, wfX25PadPortCurrentCfgX3Cdelete=wfX25PadPortCurrentCfgX3Cdelete, wfX25PadDefaultCfgLenSubAddress=wfX25PadDefaultCfgLenSubAddress, wfX25PadPortDefaultCfgX3device=wfX25PadPortDefaultCfgX3device, wfX25PadDefaultCfgLCNLow=wfX25PadDefaultCfgLCNLow, wfX25PadDefaultCfgConnector=wfX25PadDefaultCfgConnector, wfX25PadPortDefaultCfgX3idle=wfX25PadPortDefaultCfgX3idle, wfX25PadPortCurrentCfgX3Ldelete=wfX25PadPortCurrentCfgX3Ldelete, wfX25PadCurrentCfgCircuit=wfX25PadCurrentCfgCircuit, wfX25PadStatTable=wfX25PadStatTable, wfX25PadPortStatTxReset=wfX25PadPortStatTxReset, wfX25PadPortStatLastCause=wfX25PadPortStatLastCause, wfX25PadCurrentCfgState=wfX25PadCurrentCfgState, wfX25PadCurrentCfgLCNHigh=wfX25PadCurrentCfgLCNHigh, wfX25PadCurrentCfgDNIC=wfX25PadCurrentCfgDNIC, wfX25PadStatEntry=wfX25PadStatEntry, wfX25PadStatTxRestart=wfX25PadStatTxRestart, wfX25PadPortDefaultCfgX3speed=wfX25PadPortDefaultCfgX3speed, wfX25PadPortCurrentCfgX3Ldisplay=wfX25PadPortCurrentCfgX3Ldisplay, wfX25PadPortStatTxOctets=wfX25PadPortStatTxOctets, wfX25PadPortCurrentCfgTable=wfX25PadPortCurrentCfgTable, wfX25PadPortDefaultCfgLenSubAddress=wfX25PadPortDefaultCfgLenSubAddress, wfX25PadPortDefaultCfgConnector=wfX25PadPortDefaultCfgConnector, wfX25PadPortCurrentCfgX3device=wfX25PadPortCurrentCfgX3device, wfX25PadPortCurrentCfgX3Mask=wfX25PadPortCurrentCfgX3Mask, wfX25PadPortCurrentCfgIntervalTimer=wfX25PadPortCurrentCfgIntervalTimer, wfX25PadPortStatLastDiag=wfX25PadPortStatLastDiag, wfX25PadStatTotalConnCount=wfX25PadStatTotalConnCount, wfX25PadStatRxRR=wfX25PadStatRxRR, wfX25PadPortCurrentCfgWindowSizeNegotiation=wfX25PadPortCurrentCfgWindowSizeNegotiation, wfX25PadPortDefaultCfgX3echo=wfX25PadPortDefaultCfgX3echo, wfX25PadPortDefaultCfgX3LFinsert=wfX25PadPortDefaultCfgX3LFinsert, wfX25PadPortCurrentCfgX3forward=wfX25PadPortCurrentCfgX3forward, wfX25PadDefaultCfgDelete=wfX25PadDefaultCfgDelete, wfX25PadPortDefaultCfgX3flow=wfX25PadPortDefaultCfgX3flow, wfX25PadPortCurrentCfgX3signals=wfX25PadPortCurrentCfgX3signals, wfX25PadPortStatRxCall=wfX25PadPortStatRxCall, wfX25PadPortDefaultCfgLenUserData=wfX25PadPortDefaultCfgLenUserData, wfX25PadPortDefaultCfgX3Edit=wfX25PadPortDefaultCfgX3Edit, wfX25PadPortDefaultCfgPacketSizeNegotiation=wfX25PadPortDefaultCfgPacketSizeNegotiation, wfX25PadPortCurrentCfgConnector=wfX25PadPortCurrentCfgConnector, wfX25PadPortDefaultCfgFullAddressing=wfX25PadPortDefaultCfgFullAddressing, wfX25PadPortDefaultCfgEntry=wfX25PadPortDefaultCfgEntry, wfX25PadDefaultCfgLCNHigh=wfX25PadDefaultCfgLCNHigh, wfX25PadDefaultCfgDisable=wfX25PadDefaultCfgDisable, wfX25PadPortDefaultCfgWindowSizeNegotiation=wfX25PadPortDefaultCfgWindowSizeNegotiation, wfX25PadPortDefaultCfgX3discard=wfX25PadPortDefaultCfgX3discard, wfX25PadPortDefaultCfgX3Ldisplay=wfX25PadPortDefaultCfgX3Ldisplay, wfX25PadPortCurrentCfgEntry=wfX25PadPortCurrentCfgEntry, wfX25PadDefaultCfgDNIC=wfX25PadDefaultCfgDNIC, wfX25PadCurrentCfgTable=wfX25PadCurrentCfgTable, wfX25PadPortDefaultCfgX3LFpad=wfX25PadPortDefaultCfgX3LFpad, wfX25PadPortCurrentCfgX3parity=wfX25PadPortCurrentCfgX3parity, wfX25PadPortDefaultCfgIntervalTimer=wfX25PadPortDefaultCfgIntervalTimer)
class HumanPlayer: def __init__(self, start_position, boundary): self.size = 3 self.cycleSpeed = 4 self.cycleInterval = 0 pos = int(start_position - self.size / 2) self.positions = range(pos, pos + self.size) self.startPosition = start_position self.boundary = boundary def move(self, key_stroke): self.cycleInterval += 1 if self.cycleInterval <= self.cycleSpeed: return if key_stroke == ord('w'): self.move_up() self.cycleInterval = 0 elif key_stroke == ord('s'): self.move_down() self.cycleInterval = 0 def move_up(self): if self.positions[0] == 0: return self.positions = list(map(lambda e: e-1, self.positions)) def move_down(self): if self.positions[-1] == self.boundary: return self.positions = list(map(lambda e: e+1, self.positions))
class Humanplayer: def __init__(self, start_position, boundary): self.size = 3 self.cycleSpeed = 4 self.cycleInterval = 0 pos = int(start_position - self.size / 2) self.positions = range(pos, pos + self.size) self.startPosition = start_position self.boundary = boundary def move(self, key_stroke): self.cycleInterval += 1 if self.cycleInterval <= self.cycleSpeed: return if key_stroke == ord('w'): self.move_up() self.cycleInterval = 0 elif key_stroke == ord('s'): self.move_down() self.cycleInterval = 0 def move_up(self): if self.positions[0] == 0: return self.positions = list(map(lambda e: e - 1, self.positions)) def move_down(self): if self.positions[-1] == self.boundary: return self.positions = list(map(lambda e: e + 1, self.positions))
class Solution: def missingNumber(self, nums: List[int]) -> int: numsLen = len(nums) sumAll = numsLen * (numsLen + 1) // 2 sumReal = sum(nums) return sumAll - sumReal
class Solution: def missing_number(self, nums: List[int]) -> int: nums_len = len(nums) sum_all = numsLen * (numsLen + 1) // 2 sum_real = sum(nums) return sumAll - sumReal
class TransformError(Exception): def __init__(self, func_name, reason, context=''): self.func_name = func_name self.reason = reason self.context = context
class Transformerror(Exception): def __init__(self, func_name, reason, context=''): self.func_name = func_name self.reason = reason self.context = context
# # PySNMP MIB module DES3052P-L2MGMT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DES3052P-L2MGMT-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 18:24:54 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, ValueRangeConstraint, SingleValueConstraint, ConstraintsUnion, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueRangeConstraint", "SingleValueConstraint", "ConstraintsUnion", "ValueSizeConstraint") SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") ModuleIdentity, Bits, Counter64, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, TimeTicks, Gauge32, ObjectIdentity, Integer32, iso, Counter32, Unsigned32, IpAddress, MibIdentifier = mibBuilder.importSymbols("SNMPv2-SMI", "ModuleIdentity", "Bits", "Counter64", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "TimeTicks", "Gauge32", "ObjectIdentity", "Integer32", "iso", "Counter32", "Unsigned32", "IpAddress", "MibIdentifier") TruthValue, DisplayString, RowStatus, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "TruthValue", "DisplayString", "RowStatus", "TextualConvention") des3052p, = mibBuilder.importSymbols("SWPRIMGMT-DES30XXP-MIB", "des3052p") swL2MgmtMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2)) if mibBuilder.loadTexts: swL2MgmtMIB.setLastUpdated('1008030000Z') if mibBuilder.loadTexts: swL2MgmtMIB.setOrganization('D-Link, Inc.') class VlanId(Integer32): subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(1, 4094) class PortList(OctetString): subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 127) class MacAddress(OctetString): subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(6, 6) fixedLength = 6 swL2DevMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1)) swL2PortMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2)) swL2QOSMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3)) swL2TrunkMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4)) swPortMirrorPackage = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 6)) swIGMPPackage = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7)) swL2TrafficSegMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 12)) swL2PortSecurityMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 15)) swL2CosMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17)) swL2DhcpRelayMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 18)) swL2MgmtMIBTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 20)) swL2LoopDetectMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 21)) swL2MultiFilter = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22)) swL2VlanMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 23)) swL2DhcpLocalRelayMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 24)) swL2FloodMAC = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25)) swL2DevInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 1)) swL2DevInfoFrontPanelLedStatus = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 127))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2DevInfoFrontPanelLedStatus.setStatus('current') swL2DevCtrl = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2)) swL2DevCtrlSystemReboot = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("reboot", 2), ("save-config-and-reboot", 3), ("reboot-and-load-factory-default-config", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2DevCtrlSystemReboot.setStatus('current') swL2DevCtrlSystemIP = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 2), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2DevCtrlSystemIP.setStatus('current') swL2DevCtrlSubnetMask = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 3), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2DevCtrlSubnetMask.setStatus('current') swL2DevCtrlDefaultGateway = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 4), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2DevCtrlDefaultGateway.setStatus('current') swL2DevCtrlManagementVlanId = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 5), VlanId()).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2DevCtrlManagementVlanId.setStatus('current') swL2DevCtrlIGMPSnooping = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2DevCtrlIGMPSnooping.setStatus('current') swL2DevCtrlCleanAllStatisticCounter = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("normal", 1), ("active", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2DevCtrlCleanAllStatisticCounter.setStatus('current') swL2DevCtrlSnmpEnableAuthenTraps = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2DevCtrlSnmpEnableAuthenTraps.setStatus('current') swL2DevCtrlRmonState = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2DevCtrlRmonState.setStatus('current') swL2DevCtrlIpAutoConfig = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2DevCtrlIpAutoConfig.setStatus('current') swL2MACNotifyState = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2MACNotifyState.setStatus('current') swL2MACNotifyHistorySize = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 20), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 500))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2MACNotifyHistorySize.setStatus('current') swL2MACNotifyInterval = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 21), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2MACNotifyInterval.setStatus('current') swL2DevCtrlLLDPState = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 22), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2DevCtrlLLDPState.setStatus('current') swL2DevCtrlLLDPForwardMessageState = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 23), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2DevCtrlLLDPForwardMessageState.setStatus('current') swL2DevCtrlAsymVlanState = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 24), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2DevCtrlAsymVlanState.setStatus('current') swL2IGMPSnoopingMulticastVlanState = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 25), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2IGMPSnoopingMulticastVlanState.setStatus('current') swL2DevCtrlVLANTrunkState = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 26), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2DevCtrlVLANTrunkState.setStatus('current') swL2DevCtrlWeb = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 27)) swL2DevCtrlWebState = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 27, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2DevCtrlWebState.setStatus('current') swL2DevCtrlTelnet = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 28)) swL2DevCtrlTelnetState = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 28, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2DevCtrlTelnetState.setStatus('current') swL2DevAlarm = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 3)) swL2DevAlarmNewRoot = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 3, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2DevAlarmNewRoot.setStatus('current') swL2DevAlarmTopologyChange = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 3, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2DevAlarmTopologyChange.setStatus('current') swL2DevAlarmLinkChange = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 3, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2DevAlarmLinkChange.setStatus('current') swL2PortInfoTable = MibTable((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 1), ) if mibBuilder.loadTexts: swL2PortInfoTable.setStatus('current') swL2PortInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 1, 1), ).setIndexNames((0, "DES3052P-L2MGMT-MIB", "swL2PortInfoPortIndex"), (0, "DES3052P-L2MGMT-MIB", "swL2PortInfoMediumType")) if mibBuilder.loadTexts: swL2PortInfoEntry.setStatus('current') swL2PortInfoPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortInfoPortIndex.setStatus('current') swL2PortInfoMediumType = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(100, 101))).clone(namedValues=NamedValues(("copper", 100), ("fiber", 101)))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortInfoMediumType.setStatus('current') swL2PortInfoLinkStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("link-pass", 2), ("link-fail", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortInfoLinkStatus.setStatus('current') swL2PortInfoNwayStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("auto", 1), ("half-10Mbps", 2), ("full-10Mbps", 3), ("half-100Mbps", 4), ("full-100Mbps", 5), ("half-1Gigabps", 6), ("full-1Gigabps", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortInfoNwayStatus.setStatus('current') swL2PortCtrlTable = MibTable((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 2), ) if mibBuilder.loadTexts: swL2PortCtrlTable.setStatus('current') swL2PortCtrlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 2, 1), ).setIndexNames((0, "DES3052P-L2MGMT-MIB", "swL2PortCtrlPortIndex"), (0, "DES3052P-L2MGMT-MIB", "swL2PortCtrlPortMediumType")) if mibBuilder.loadTexts: swL2PortCtrlEntry.setStatus('current') swL2PortCtrlPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortCtrlPortIndex.setStatus('current') swL2PortCtrlPortMediumType = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(100, 101))).clone(namedValues=NamedValues(("copper", 100), ("fiber", 101)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2PortCtrlPortMediumType.setStatus('current') swL2PortCtrlAdminState = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2PortCtrlAdminState.setStatus('current') swL2PortCtrlNwayState = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 7, 8, 9))).clone(namedValues=NamedValues(("nway-auto", 1), ("nway-disabled-10Mbps-Half", 2), ("nway-disabled-10Mbps-Full", 3), ("nway-disabled-100Mbps-Half", 4), ("nway-disabled-100Mbps-Full", 5), ("nway-disabled-1Gigabps-Full", 7), ("nway-disabled-1Gigabps-Full-Master", 8), ("nway-disabled-1Gigabps-Full-Slave", 9)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2PortCtrlNwayState.setStatus('current') swL2PortCtrlFlowCtrlState = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2PortCtrlFlowCtrlState.setStatus('current') swL2PortCtrlDescription = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 2, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2PortCtrlDescription.setStatus('current') swL2PortCtrlAddressLearning = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 2, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2PortCtrlAddressLearning.setStatus('current') swL2PortCtrlMACNotifyState = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 2, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2PortCtrlMACNotifyState.setStatus('current') swL2PortCtrlMulticastfilter = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 2, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(2, 3))).clone(namedValues=NamedValues(("forward-unregistered-groups", 2), ("filter-unregistered-groups", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2PortCtrlMulticastfilter.setStatus('current') swL2PortCtrlMDIXState = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 2, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("auto", 1), ("normal", 2), ("cross", 3), ("other", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2PortCtrlMDIXState.setStatus('current') swL2PortErrTable = MibTable((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 3), ) if mibBuilder.loadTexts: swL2PortErrTable.setStatus('current') swL2PortErrEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 3, 1), ).setIndexNames((0, "DES3052P-L2MGMT-MIB", "swL2PortErrPortIndex")) if mibBuilder.loadTexts: swL2PortErrEntry.setStatus('current') swL2PortErrPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortErrPortIndex.setStatus('current') swL2PortErrPortState = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortErrPortState.setStatus('current') swL2PortErrPortStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("other", 1), ("err-disabled", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortErrPortStatus.setStatus('current') swL2PortErrPortReason = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("stp-lbd", 1), ("storm-control", 2), ("ddm", 3), ("duld", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortErrPortReason.setStatus('current') swL2PortErrDescription = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 3, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortErrDescription.setStatus('current') swL2QOSBandwidthControlTable = MibTable((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 1), ) if mibBuilder.loadTexts: swL2QOSBandwidthControlTable.setStatus('current') swL2QOSBandwidthControlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 1, 1), ).setIndexNames((0, "DES3052P-L2MGMT-MIB", "swL2QOSBandwidthPortIndex")) if mibBuilder.loadTexts: swL2QOSBandwidthControlEntry.setStatus('current') swL2QOSBandwidthPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 650))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2QOSBandwidthPortIndex.setStatus('current') swL2QOSBandwidthRxRate = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(64, 1024000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2QOSBandwidthRxRate.setStatus('current') swL2QOSBandwidthTxRate = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(64, 1024000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2QOSBandwidthTxRate.setStatus('current') swL2QOSBandwidthRadiusRxRate = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 1, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2QOSBandwidthRadiusRxRate.setStatus('current') swL2QOSBandwidthRadiusTxRate = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 1, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2QOSBandwidthRadiusTxRate.setStatus('current') swL2QOSSchedulingTable = MibTable((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 2), ) if mibBuilder.loadTexts: swL2QOSSchedulingTable.setStatus('current') swL2QOSSchedulingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 2, 1), ).setIndexNames((0, "DES3052P-L2MGMT-MIB", "swL2QOSSchedulingClassIndex")) if mibBuilder.loadTexts: swL2QOSSchedulingEntry.setStatus('current') swL2QOSSchedulingClassIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 3))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2QOSSchedulingClassIndex.setStatus('current') swL2QOSSchedulingMaxWeight = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 2, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 55))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2QOSSchedulingMaxWeight.setStatus('current') swL2QOSSchedulingMechanism = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("strict", 1), ("roundrobin", 2), ("weightfair", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2QOSSchedulingMechanism.setStatus('current') swL2QOSSchedulingMechanismCtrl = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("strict", 1), ("weightfair", 2), ("none", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2QOSSchedulingMechanismCtrl.setStatus('current') swL2QOS8021pUserPriorityTable = MibTable((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 3), ) if mibBuilder.loadTexts: swL2QOS8021pUserPriorityTable.setStatus('current') swL2QOS8021pUserPriorityEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 3, 1), ).setIndexNames((0, "DES3052P-L2MGMT-MIB", "swL2QOS8021pUserPriorityIndex")) if mibBuilder.loadTexts: swL2QOS8021pUserPriorityEntry.setStatus('current') swL2QOS8021pUserPriorityIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2QOS8021pUserPriorityIndex.setStatus('current') swL2QOS8021pUserPriorityClass = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 3, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 3))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2QOS8021pUserPriorityClass.setStatus('current') swL2QOS8021pDefaultPriorityTable = MibTable((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 4), ) if mibBuilder.loadTexts: swL2QOS8021pDefaultPriorityTable.setStatus('current') swL2QOS8021pDefaultPriorityEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 4, 1), ).setIndexNames((0, "DES3052P-L2MGMT-MIB", "swL2QOS8021pDefaultPriorityIndex")) if mibBuilder.loadTexts: swL2QOS8021pDefaultPriorityEntry.setStatus('current') swL2QOS8021pDefaultPriorityIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 650))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2QOS8021pDefaultPriorityIndex.setStatus('current') swL2QOS8021pDefaultPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2QOS8021pDefaultPriority.setStatus('current') swL2QOS8021pRadiusPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 4, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2QOS8021pRadiusPriority.setStatus('current') swPortTrunkMaxEntries = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swPortTrunkMaxEntries.setStatus('current') swPortTrunkMaxPortMembers = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swPortTrunkMaxPortMembers.setStatus('current') swPortTrunkTable = MibTable((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 3), ) if mibBuilder.loadTexts: swPortTrunkTable.setStatus('current') swPortTrunkEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 3, 1), ).setIndexNames((0, "DES3052P-L2MGMT-MIB", "swPortTrunkIndex")) if mibBuilder.loadTexts: swPortTrunkEntry.setStatus('current') swPortTrunkIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 3))).setMaxAccess("readonly") if mibBuilder.loadTexts: swPortTrunkIndex.setStatus('current') swPortTrunkMasterPort = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 3, 1, 2), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: swPortTrunkMasterPort.setStatus('current') swPortTrunkPortList = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 3, 1, 3), PortList()).setMaxAccess("readcreate") if mibBuilder.loadTexts: swPortTrunkPortList.setStatus('current') swPortTrunkType = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("static", 1), ("lacp", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: swPortTrunkType.setStatus('current') swPortTrunkActivePort = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 3, 1, 5), PortList()).setMaxAccess("readonly") if mibBuilder.loadTexts: swPortTrunkActivePort.setStatus('current') swPortTrunkState = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 3, 1, 6), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: swPortTrunkState.setStatus('current') swPortTrunkFloodingPort = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 3, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swPortTrunkFloodingPort.setStatus('current') swL2TrunkAlgorithm = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("mac-source", 2), ("mac-destination", 3), ("mac-source-dest", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2TrunkAlgorithm.setStatus('current') swL2TrunkLACPPortTable = MibTable((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 5), ) if mibBuilder.loadTexts: swL2TrunkLACPPortTable.setStatus('current') swL2TrunkLACPPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 5, 1), ).setIndexNames((0, "DES3052P-L2MGMT-MIB", "swL2TrunkLACPPortIndex")) if mibBuilder.loadTexts: swL2TrunkLACPPortEntry.setStatus('current') swL2TrunkLACPPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 5, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2TrunkLACPPortIndex.setStatus('current') swL2TrunkLACPPortState = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 5, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("active", 1), ("passive", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2TrunkLACPPortState.setStatus('current') swL2TrunkVLANTable = MibTable((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 6), ) if mibBuilder.loadTexts: swL2TrunkVLANTable.setStatus('current') swL2TrunkVLANEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 6, 1), ).setIndexNames((0, "DES3052P-L2MGMT-MIB", "swL2TrunkVLANPort")) if mibBuilder.loadTexts: swL2TrunkVLANEntry.setStatus('current') swL2TrunkVLANPort = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 6, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2TrunkVLANPort.setStatus('current') swL2TrunkVLANState = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 6, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2TrunkVLANState.setStatus('current') swPortMirrorRxPortList = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 6, 2), PortList()).setMaxAccess("readwrite") if mibBuilder.loadTexts: swPortMirrorRxPortList.setStatus('current') swPortMirrorTxPortList = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 6, 3), PortList()).setMaxAccess("readwrite") if mibBuilder.loadTexts: swPortMirrorTxPortList.setStatus('current') swPortMirrorTargetPort = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 6, 4), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: swPortMirrorTargetPort.setStatus('current') swPortMirrorState = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 6, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swPortMirrorState.setStatus('current') swL2IGMPMaxSupportedVlans = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2IGMPMaxSupportedVlans.setStatus('current') swL2IGMPMaxIpGroupNumPerVlan = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2IGMPMaxIpGroupNumPerVlan.setStatus('current') swL2IGMPCtrlTable = MibTable((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 3), ) if mibBuilder.loadTexts: swL2IGMPCtrlTable.setStatus('current') swL2IGMPCtrlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 3, 1), ).setIndexNames((0, "DES3052P-L2MGMT-MIB", "swL2IGMPCtrlVid")) if mibBuilder.loadTexts: swL2IGMPCtrlEntry.setStatus('current') swL2IGMPCtrlVid = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2IGMPCtrlVid.setStatus('current') swL2IGMPQueryInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 3, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)).clone(125)).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2IGMPQueryInterval.setStatus('current') swL2IGMPMaxResponseTime = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 3, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 25)).clone(10)).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2IGMPMaxResponseTime.setStatus('current') swL2IGMPRobustness = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 3, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255)).clone(2)).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2IGMPRobustness.setStatus('current') swL2IGMPLastMemberQueryInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 3, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 25)).clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2IGMPLastMemberQueryInterval.setStatus('current') swL2IGMPHostTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 3, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16711450)).clone(260)).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2IGMPHostTimeout.setStatus('current') swL2IGMPRouteTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 3, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16711450)).clone(260)).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2IGMPRouteTimeout.setStatus('current') swL2IGMPLeaveTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 3, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16711450)).clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2IGMPLeaveTimer.setStatus('current') swL2IGMPQueryState = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 3, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2IGMPQueryState.setStatus('current') swL2IGMPCurrentState = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 3, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("querier", 2), ("non-querier", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2IGMPCurrentState.setStatus('current') swL2IGMPCtrlState = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 3, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disable", 2), ("enable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2IGMPCtrlState.setStatus('current') swL2IGMPFastLeave = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 3, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disable", 2), ("enable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2IGMPFastLeave.setStatus('current') swL2IGMPDynIPMultVlanState = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 3, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2IGMPDynIPMultVlanState.setStatus('current') swL2IGMPDynIPMultVlanAge = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 3, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2IGMPDynIPMultVlanAge.setStatus('current') swL2IGMPQueryInfoTable = MibTable((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 4), ) if mibBuilder.loadTexts: swL2IGMPQueryInfoTable.setStatus('current') swL2IGMPQueryInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 4, 1), ).setIndexNames((0, "DES3052P-L2MGMT-MIB", "swL2IGMPInfoVid")) if mibBuilder.loadTexts: swL2IGMPQueryInfoEntry.setStatus('current') swL2IGMPInfoVid = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2IGMPInfoVid.setStatus('current') swL2IGMPInfoQueryCount = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2IGMPInfoQueryCount.setStatus('current') swL2IGMPInfoTxQueryCount = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 4, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2IGMPInfoTxQueryCount.setStatus('current') swL2IGMPInfoTable = MibTable((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 5), ) if mibBuilder.loadTexts: swL2IGMPInfoTable.setStatus('current') swL2IGMPInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 5, 1), ).setIndexNames((0, "DES3052P-L2MGMT-MIB", "swL2IGMPVid"), (0, "DES3052P-L2MGMT-MIB", "swL2IGMPGroupIpAddr")) if mibBuilder.loadTexts: swL2IGMPInfoEntry.setStatus('current') swL2IGMPVid = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 5, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2IGMPVid.setStatus('current') swL2IGMPGroupIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 5, 1, 2), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2IGMPGroupIpAddr.setStatus('current') swL2IGMPMacAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 5, 1, 3), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2IGMPMacAddr.setStatus('current') swL2IGMPPortMap = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 5, 1, 4), PortList()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2IGMPPortMap.setStatus('current') swL2IGMPIpGroupReportCount = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 5, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2IGMPIpGroupReportCount.setStatus('current') swL2IGMPRouterPortTable = MibTable((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 6), ) if mibBuilder.loadTexts: swL2IGMPRouterPortTable.setStatus('current') swL2IGMPRouterPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 6, 1), ).setIndexNames((0, "DES3052P-L2MGMT-MIB", "swL2IGMPRouterPortVlanid")) if mibBuilder.loadTexts: swL2IGMPRouterPortEntry.setStatus('current') swL2IGMPRouterPortVlanid = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 6, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4094))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2IGMPRouterPortVlanid.setStatus('current') swL2IGMPRouterPortVlanName = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 6, 1, 2), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2IGMPRouterPortVlanName.setStatus('current') swL2IGMPRouterPortStaticPortList = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 6, 1, 3), PortList()).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2IGMPRouterPortStaticPortList.setStatus('current') swL2IGMPRouterPortDynamicPortList = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 6, 1, 4), PortList()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2IGMPRouterPortDynamicPortList.setStatus('current') swL2IGMPRouterPortForbiddenPortList = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 6, 1, 5), PortList()).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2IGMPRouterPortForbiddenPortList.setStatus('current') swL2IGMPAccessAuthTable = MibTable((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 7), ) if mibBuilder.loadTexts: swL2IGMPAccessAuthTable.setStatus('current') swL2IGMPAccessAuthEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 7, 1), ).setIndexNames((0, "DES3052P-L2MGMT-MIB", "swL2IGMPAccessAuthPort")) if mibBuilder.loadTexts: swL2IGMPAccessAuthEntry.setStatus('current') swL2IGMPAccessAuthPort = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 7, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2IGMPAccessAuthPort.setStatus('current') swL2IGMPAccessAuthState = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 7, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2IGMPAccessAuthState.setStatus('current') swL2IGMPMulticastVlanTable = MibTable((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 8), ) if mibBuilder.loadTexts: swL2IGMPMulticastVlanTable.setStatus('current') swL2IGMPMulticastVlanEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 8, 1), ).setIndexNames((0, "DES3052P-L2MGMT-MIB", "swL2IGMPMulticastVlanid")) if mibBuilder.loadTexts: swL2IGMPMulticastVlanEntry.setStatus('current') swL2IGMPMulticastVlanid = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 8, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(2, 4094))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2IGMPMulticastVlanid.setStatus('current') swL2IGMPMulticastVlanName = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 8, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readcreate") if mibBuilder.loadTexts: swL2IGMPMulticastVlanName.setStatus('current') swL2IGMPMulticastVlanSourcePort = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 8, 1, 3), PortList()).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2IGMPMulticastVlanSourcePort.setStatus('current') swL2IGMPMulticastVlanMemberPort = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 8, 1, 4), PortList()).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2IGMPMulticastVlanMemberPort.setStatus('current') swL2IGMPMulticastVlanTagMemberPort = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 8, 1, 5), PortList()).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2IGMPMulticastVlanTagMemberPort.setStatus('current') swL2IGMPMulticastVlanState = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 8, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2IGMPMulticastVlanState.setStatus('current') swL2IGMPMulticastVlanReplaceSourceIp = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 8, 1, 7), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2IGMPMulticastVlanReplaceSourceIp.setStatus('current') swL2IGMPMulticastVlanRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 8, 1, 8), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: swL2IGMPMulticastVlanRowStatus.setStatus('current') swL2IGMPMulticastVlanRemoveAllMcastAddrListAction = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 8, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("other", 1), ("start", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2IGMPMulticastVlanRemoveAllMcastAddrListAction.setStatus('current') swL2IGMPMulticastVlanUntagSourcePort = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 8, 1, 10), PortList()).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2IGMPMulticastVlanUntagSourcePort.setStatus('current') swL2IGMPMulticastVlanRemapPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 8, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 8)).clone(8)).setMaxAccess("readcreate") if mibBuilder.loadTexts: swL2IGMPMulticastVlanRemapPriority.setStatus('current') swL2IGMPMulticastVlanReplacePriority = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 8, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: swL2IGMPMulticastVlanReplacePriority.setStatus('current') swL2IGMPMulticastVlanGroupTable = MibTable((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 9), ) if mibBuilder.loadTexts: swL2IGMPMulticastVlanGroupTable.setStatus('current') swL2IGMPMulticastVlanGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 9, 1), ).setIndexNames((0, "DES3052P-L2MGMT-MIB", "swL2IGMPMulticastVlanGroupVid"), (0, "DES3052P-L2MGMT-MIB", "swL2IGMPMulticastVlanGroupFromIp"), (0, "DES3052P-L2MGMT-MIB", "swL2IGMPMulticastVlanGroupToIp")) if mibBuilder.loadTexts: swL2IGMPMulticastVlanGroupEntry.setStatus('current') swL2IGMPMulticastVlanGroupVid = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 9, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4094))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2IGMPMulticastVlanGroupVid.setStatus('current') swL2IGMPMulticastVlanGroupFromIp = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 9, 1, 2), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2IGMPMulticastVlanGroupFromIp.setStatus('current') swL2IGMPMulticastVlanGroupToIp = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 9, 1, 3), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2IGMPMulticastVlanGroupToIp.setStatus('current') swL2IGMPMulticastVlanGroupStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 9, 1, 4), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: swL2IGMPMulticastVlanGroupStatus.setStatus('current') swL2IGMPv3Table = MibTable((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 10), ) if mibBuilder.loadTexts: swL2IGMPv3Table.setStatus('current') swL2IGMPv3Entry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 10, 1), ).setIndexNames((0, "DES3052P-L2MGMT-MIB", "swL2IGMPVid"), (0, "DES3052P-L2MGMT-MIB", "swL2IGMPGroupIpAddr"), (0, "DES3052P-L2MGMT-MIB", "swL2IGMPv3SourceIPAddr")) if mibBuilder.loadTexts: swL2IGMPv3Entry.setStatus('current') swL2IGMPv3SourceIPAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 10, 1, 1), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2IGMPv3SourceIPAddr.setStatus('current') swL2IGMPv3Forwarding = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 10, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2IGMPv3Forwarding.setStatus('current') swL2IGMPv3ExpireTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 10, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2IGMPv3ExpireTimer.setStatus('current') swIGMPSnoopingGroupTable = MibTable((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 11), ) if mibBuilder.loadTexts: swIGMPSnoopingGroupTable.setStatus('current') swIGMPSnoopingGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 11, 1), ).setIndexNames((0, "DES3052P-L2MGMT-MIB", "swIGMPSnoopingGroupVid"), (0, "DES3052P-L2MGMT-MIB", "swIGMPSnoopingGroupGroupAddr"), (0, "DES3052P-L2MGMT-MIB", "swIGMPSnoopingGroupSourceAddr")) if mibBuilder.loadTexts: swIGMPSnoopingGroupEntry.setStatus('current') swIGMPSnoopingGroupVid = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 11, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4094))).setMaxAccess("readonly") if mibBuilder.loadTexts: swIGMPSnoopingGroupVid.setStatus('current') swIGMPSnoopingGroupGroupAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 11, 1, 2), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: swIGMPSnoopingGroupGroupAddr.setStatus('current') swIGMPSnoopingGroupSourceAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 11, 1, 3), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: swIGMPSnoopingGroupSourceAddr.setStatus('current') swIGMPSnoopingGroupIncludePortMap = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 11, 1, 4), PortList()).setMaxAccess("readonly") if mibBuilder.loadTexts: swIGMPSnoopingGroupIncludePortMap.setStatus('current') swIGMPSnoopingGroupExcludePortMap = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 11, 1, 5), PortList()).setMaxAccess("readonly") if mibBuilder.loadTexts: swIGMPSnoopingGroupExcludePortMap.setStatus('current') swIGMPSnoopingGroupReportCount = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 11, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swIGMPSnoopingGroupReportCount.setStatus('current') swIGMPSnoopingGroupUpTime = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 11, 1, 7), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: swIGMPSnoopingGroupUpTime.setStatus('current') swIGMPSnoopingGroupExpiryTime = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 11, 1, 8), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: swIGMPSnoopingGroupExpiryTime.setStatus('current') swIGMPSnoopingGroupRouterPorts = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 11, 1, 9), PortList()).setMaxAccess("readonly") if mibBuilder.loadTexts: swIGMPSnoopingGroupRouterPorts.setStatus('current') swL2IGMPDynIpMultMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 12)) swL2IGMPDynIPMultMaxEntry = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 12, 1), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2IGMPDynIPMultMaxEntry.setStatus('current') swL2IGMPSnoopingClearDynIpMult = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 12, 2)) swL2IGMPSnoopingClearDynIpMultVID = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 12, 2, 1), VlanId()).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2IGMPSnoopingClearDynIpMultVID.setStatus('current') swL2IGMPSnoopingClearDynIpMultIP = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 12, 2, 2), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2IGMPSnoopingClearDynIpMultIP.setStatus('current') swL2IGMPSnoopingClearDynIpMultAction = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 12, 2, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("all", 1), ("vlan", 2), ("group", 3), ("other", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2IGMPSnoopingClearDynIpMultAction.setStatus('current') swL2TrafficSegTable = MibTable((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 12, 1), ) if mibBuilder.loadTexts: swL2TrafficSegTable.setStatus('current') swL2TrafficSegEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 12, 1, 1), ).setIndexNames((0, "DES3052P-L2MGMT-MIB", "swL2TrafficSegPort")) if mibBuilder.loadTexts: swL2TrafficSegEntry.setStatus('current') swL2TrafficSegPort = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 12, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2TrafficSegPort.setStatus('current') swL2TrafficSegForwardPorts = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 12, 1, 1, 2), PortList()).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2TrafficSegForwardPorts.setStatus('current') swL2PortSecurityControlTable = MibTable((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 15, 1), ) if mibBuilder.loadTexts: swL2PortSecurityControlTable.setStatus('current') swL2PortSecurityControlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 15, 1, 1), ).setIndexNames((0, "DES3052P-L2MGMT-MIB", "swL2PortSecurityPortIndex")) if mibBuilder.loadTexts: swL2PortSecurityControlEntry.setStatus('current') swL2PortSecurityPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 15, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortSecurityPortIndex.setStatus('current') swL2PortSecurityMaxLernAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 15, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 16))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2PortSecurityMaxLernAddr.setStatus('current') swL2PortSecurityMode = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 15, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("permanent", 2), ("deleteOnTimeout", 3), ("deleteOnReset", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2PortSecurityMode.setStatus('current') swL2PortSecurityAdmState = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 15, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enable", 2), ("disable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2PortSecurityAdmState.setStatus('current') swL2PortSecurityTrapLogState = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 15, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enable", 2), ("disable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2PortSecurityTrapLogState.setStatus('current') swL2PortSecurityDelCtrl = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 15, 3)) swL2PortSecurityDelVlanName = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 15, 3, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2PortSecurityDelVlanName.setStatus('current') swL2PortSecurityDelPort = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 15, 3, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 768))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2PortSecurityDelPort.setStatus('current') swL2PortSecurityDelMacAddress = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 15, 3, 3), MacAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2PortSecurityDelMacAddress.setStatus('current') swL2PortSecurityDelActivity = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 15, 3, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("none", 1), ("start", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2PortSecurityDelActivity.setStatus('current') swL2CosPriorityCtrl = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3)) swL2CosPriorityTable = MibTable((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 1), ) if mibBuilder.loadTexts: swL2CosPriorityTable.setStatus('current') swL2CosPriorityEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 1, 1), ).setIndexNames((0, "DES3052P-L2MGMT-MIB", "swL2CosPriorityPort")) if mibBuilder.loadTexts: swL2CosPriorityEntry.setStatus('current') swL2CosPriorityPort = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2CosPriorityPort.setStatus('current') swL2CosPriorityPortPRI = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disable", 2), ("enable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2CosPriorityPortPRI.setStatus('current') swL2CosPriorityEtherPRI = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disable", 1), ("ether8021p", 2), ("macBase", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2CosPriorityEtherPRI.setStatus('current') swL2CosPriorityIpPRI = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disable", 1), ("tos", 2), ("dscp", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2CosPriorityIpPRI.setStatus('current') swL2CosPriorityNone = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("valid", 1), ("invalid", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2CosPriorityNone.setStatus('current') swL2CosPortPRITable = MibTable((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 2), ) if mibBuilder.loadTexts: swL2CosPortPRITable.setStatus('current') swL2CosPortPRIEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 2, 1), ).setIndexNames((0, "DES3052P-L2MGMT-MIB", "swL2CosPortPRIIndex")) if mibBuilder.loadTexts: swL2CosPortPRIEntry.setStatus('current') swL2CosPortPRIIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2CosPortPRIIndex.setStatus('current') swL2CosPortPRIClass = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 3))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2CosPortPRIClass.setStatus('current') swL2CosMacBasePRITable = MibTable((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 3), ) if mibBuilder.loadTexts: swL2CosMacBasePRITable.setStatus('current') swL2CosMacBasePRIEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 3, 1), ).setIndexNames((0, "DES3052P-L2MGMT-MIB", "swL2CosMacBasePRIIndex")) if mibBuilder.loadTexts: swL2CosMacBasePRIEntry.setStatus('current') swL2CosMacBasePRIIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 3, 1, 1), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2CosMacBasePRIIndex.setStatus('current') swL2CosMacBasePRIClass = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 3, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 3))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2CosMacBasePRIClass.setStatus('current') swL2CosTosPRITable = MibTable((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 4), ) if mibBuilder.loadTexts: swL2CosTosPRITable.setStatus('current') swL2CosTosPRIEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 4, 1), ).setIndexNames((0, "DES3052P-L2MGMT-MIB", "swL2CosTosPRIIndex")) if mibBuilder.loadTexts: swL2CosTosPRIEntry.setStatus('current') swL2CosTosPRIIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2CosTosPRIIndex.setStatus('current') swL2CosTosPRIClass = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 3))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2CosTosPRIClass.setStatus('current') swL2CosDscpPRITable = MibTable((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 5), ) if mibBuilder.loadTexts: swL2CosDscpPRITable.setStatus('current') swL2CosDscpPRIEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 5, 1), ).setIndexNames((0, "DES3052P-L2MGMT-MIB", "swL2CosDscpPRIIndex")) if mibBuilder.loadTexts: swL2CosDscpPRIEntry.setStatus('current') swL2CosDscpPRIIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 5, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 63))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2CosDscpPRIIndex.setStatus('current') swL2CosDscpPRIClass = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 5, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 3))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2CosDscpPRIClass.setStatus('current') swL2DhcpRelayState = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 18, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2DhcpRelayState.setStatus('obsolete') swL2DhcpRelayHopCount = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 18, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2DhcpRelayHopCount.setStatus('obsolete') swL2DhcpRelayTimeThreshold = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 18, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2DhcpRelayTimeThreshold.setStatus('obsolete') swL2DhcpRelayOption82State = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 18, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2DhcpRelayOption82State.setStatus('obsolete') swL2DhcpRelayOption82Check = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 18, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2DhcpRelayOption82Check.setStatus('obsolete') swL2DhcpRelayOption82Policy = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 18, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("replace", 1), ("drop", 2), ("keep", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2DhcpRelayOption82Policy.setStatus('obsolete') swL2DhcpRelayCtrlTable = MibTable((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 18, 7), ) if mibBuilder.loadTexts: swL2DhcpRelayCtrlTable.setStatus('obsolete') swL2DhcpRelayCtrlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 18, 7, 1), ).setIndexNames((0, "DES3052P-L2MGMT-MIB", "swL2DhcpRelayCtrlInterfaceName"), (0, "DES3052P-L2MGMT-MIB", "swL2DhcpRelayCtrlServer")) if mibBuilder.loadTexts: swL2DhcpRelayCtrlEntry.setStatus('obsolete') swL2DhcpRelayCtrlInterfaceName = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 18, 7, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 12))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2DhcpRelayCtrlInterfaceName.setStatus('obsolete') swL2DhcpRelayCtrlServer = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 18, 7, 1, 2), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2DhcpRelayCtrlServer.setStatus('current') swL2DhcpRelayCtrlState = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 18, 7, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("invalid", 2), ("valid", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2DhcpRelayCtrlState.setStatus('obsolete') swL2MgmtMIBTrapPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 20, 0)) swL2PortSecurityViolationTrap = NotificationType((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 20, 0, 1)).setObjects(("DES3052P-L2MGMT-MIB", "swL2PortSecurityPortIndex"), ("DES3052P-L2MGMT-MIB", "swL2PortSecurityViolationMac")) if mibBuilder.loadTexts: swL2PortSecurityViolationTrap.setStatus('current') swL2macNotification = NotificationType((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 20, 0, 2)).setObjects(("DES3052P-L2MGMT-MIB", "swL2macNotifyInfo")) if mibBuilder.loadTexts: swL2macNotification.setStatus('current') swL2FloodMacDetectedTrap = NotificationType((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 20, 0, 3)).setObjects(("DES3052P-L2MGMT-MIB", "swL2FloodMacDetectedMacVid"), ("DES3052P-L2MGMT-MIB", "swL2FloodMacDetectedMacAddress")) if mibBuilder.loadTexts: swL2FloodMacDetectedTrap.setStatus('current') swL2PortLoopOccurred = NotificationType((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 20, 0, 4)).setObjects(("DES3052P-L2MGMT-MIB", "swL2LoopDetectPortIndex")) if mibBuilder.loadTexts: swL2PortLoopOccurred.setStatus('current') swL2PortLoopRestart = NotificationType((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 20, 0, 5)).setObjects(("DES3052P-L2MGMT-MIB", "swL2LoopDetectPortIndex")) if mibBuilder.loadTexts: swL2PortLoopRestart.setStatus('current') swl2PortSecurityBindings = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 20, 1)) swL2PortSecurityViolationMac = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 20, 1, 1), MacAddress()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: swL2PortSecurityViolationMac.setStatus('current') swl2NotificationBindings = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 20, 2)) swL2macNotifyInfo = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 20, 2, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 1024))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2macNotifyInfo.setStatus('current') swL2FloodMacDetectedMacVid = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 20, 2, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4094))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2FloodMacDetectedMacVid.setStatus('current') swL2FloodMacDetectedMacAddress = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 20, 2, 3), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2FloodMacDetectedMacAddress.setStatus('current') swL2LoopDetectCtrl = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 21, 1)) swL2LoopDetectAdminState = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 21, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2LoopDetectAdminState.setStatus('current') swL2LoopDetectInterval = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 21, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 32767))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2LoopDetectInterval.setStatus('current') swL2LoopDetectRecoverTime = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 21, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1000000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2LoopDetectRecoverTime.setStatus('current') swL2LoopDetectTrapMode = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 21, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("loop_detected", 2), ("loop_cleared", 3), ("both", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2LoopDetectTrapMode.setStatus('current') swL2LoopDetectPortMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 21, 2)) swL2LoopDetectPortTable = MibTable((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 21, 2, 1), ) if mibBuilder.loadTexts: swL2LoopDetectPortTable.setStatus('current') swL2LoopDetectPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 21, 2, 1, 1), ).setIndexNames((0, "DES3052P-L2MGMT-MIB", "swL2LoopDetectPortIndex")) if mibBuilder.loadTexts: swL2LoopDetectPortEntry.setStatus('current') swL2LoopDetectPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 21, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2LoopDetectPortIndex.setStatus('current') swL2LoopDetectPortState = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 21, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2LoopDetectPortState.setStatus('current') swL2LoopDetectPortLoopStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 21, 2, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("normal", 1), ("loop", 2), ("error", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2LoopDetectPortLoopStatus.setStatus('current') swL2McastFilterTable = MibTable((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 2), ) if mibBuilder.loadTexts: swL2McastFilterTable.setStatus('current') swL2McastFilterEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 2, 1), ).setIndexNames((0, "DES3052P-L2MGMT-MIB", "swL2McastFilterProfileIndex")) if mibBuilder.loadTexts: swL2McastFilterEntry.setStatus('current') swL2McastFilterProfileIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 24))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2McastFilterProfileIndex.setStatus('current') swL2McastFilterProfileName = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2McastFilterProfileName.setStatus('current') swL2McastFilterAddOrDelState = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("add", 2), ("delete", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2McastFilterAddOrDelState.setStatus('current') swL2McastFilterGroupList = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 2, 1, 4), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2McastFilterGroupList.setStatus('current') swL2McastFilterStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 2, 1, 5), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: swL2McastFilterStatus.setStatus('current') swL2McastFilterPortTable = MibTable((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 3), ) if mibBuilder.loadTexts: swL2McastFilterPortTable.setStatus('current') swL2McastFilterPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 3, 1), ).setIndexNames((0, "DES3052P-L2MGMT-MIB", "swL2McastFilterPortGroupPortIndex")) if mibBuilder.loadTexts: swL2McastFilterPortEntry.setStatus('current') swL2McastFilterPortGroupPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 3, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2McastFilterPortGroupPortIndex.setStatus('current') swL2McastFilterPortProfileAddOrDelState = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("add", 2), ("delete", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2McastFilterPortProfileAddOrDelState.setStatus('current') swL2McastFilterPortProfileID = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 3, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 24))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2McastFilterPortProfileID.setStatus('current') swL2McastFilterPortMaxGroupTable = MibTable((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 4), ) if mibBuilder.loadTexts: swL2McastFilterPortMaxGroupTable.setStatus('current') swL2McastFilterPortMaxGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 4, 1), ).setIndexNames((0, "DES3052P-L2MGMT-MIB", "swL2McastFilterPortMaxGroupPortIndex")) if mibBuilder.loadTexts: swL2McastFilterPortMaxGroupEntry.setStatus('current') swL2McastFilterPortMaxGroupPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 4, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2McastFilterPortMaxGroupPortIndex.setStatus('current') swL2McastFilterPortMaxGroup = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 256))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2McastFilterPortMaxGroup.setStatus('current') swL2McastFilterPortInfoTable = MibTable((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 5), ) if mibBuilder.loadTexts: swL2McastFilterPortInfoTable.setStatus('current') swL2McastFilterPortInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 5, 1), ).setIndexNames((0, "DES3052P-L2MGMT-MIB", "swL2McastFilterPortInfoPortIndex")) if mibBuilder.loadTexts: swL2McastFilterPortInfoEntry.setStatus('current') swL2McastFilterPortInfoPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 5, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2McastFilterPortInfoPortIndex.setStatus('current') swL2McastFilterPortInfoProfileName = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 5, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2McastFilterPortInfoProfileName.setStatus('current') swL2VlanAdvertisementTable = MibTable((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 23, 1), ) if mibBuilder.loadTexts: swL2VlanAdvertisementTable.setStatus('current') swL2VlanAdvertisementEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 23, 1, 1), ).setIndexNames((0, "DES3052P-L2MGMT-MIB", "swL2VlanIndex")) if mibBuilder.loadTexts: swL2VlanAdvertisementEntry.setStatus('current') swL2VlanIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 23, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4094))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2VlanIndex.setStatus('current') swL2VlanName = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 23, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2VlanName.setStatus('current') swL2VlanAdvertiseState = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 23, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2VlanAdvertiseState.setStatus('current') swL2VlanMultiplyMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 23, 2)) swL2VlanMultiplyVlanList = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 23, 2, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2VlanMultiplyVlanList.setStatus('current') swL2VlanMultiplyAdvertisement = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 23, 2, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2VlanMultiplyAdvertisement.setStatus('current') swL2VlanMultiplyPortList = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 23, 2, 3), PortList()).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2VlanMultiplyPortList.setStatus('current') swL2VlanMultiplyPortListAction = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 23, 2, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("add-tagged", 2), ("add-untagged", 3), ("add-forbidden", 4), ("delete", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2VlanMultiplyPortListAction.setStatus('current') swL2VlanMultiplyAction = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 23, 2, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("create", 2), ("configure", 3), ("delete", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2VlanMultiplyAction.setStatus('current') swL2DhcpLocalRelayState = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 24, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2DhcpLocalRelayState.setStatus('current') swL2DhcpLocalRelayVLANTable = MibTable((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 24, 2), ) if mibBuilder.loadTexts: swL2DhcpLocalRelayVLANTable.setStatus('current') swL2DhcpLocalRelayVLANEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 24, 2, 1), ).setIndexNames((0, "DES3052P-L2MGMT-MIB", "swL2DhcpLocalRelayVLANID")) if mibBuilder.loadTexts: swL2DhcpLocalRelayVLANEntry.setStatus('current') swL2DhcpLocalRelayVLANID = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 24, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4094))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2DhcpLocalRelayVLANID.setStatus('current') swL2DhcpLocalRelayVLANState = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 24, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2DhcpLocalRelayVLANState.setStatus('current') swL2FloodMACMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 1)) swL2FloodMACGlobalSettings = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 1, 1)) swL2FloodMACState = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2FloodMACState.setStatus('current') swL2FloodMACLogState = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2FloodMACLogState.setStatus('current') swL2FloodMACTrapState = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2FloodMACTrapState.setStatus('current') swL2FloodMACClearFDB = MibScalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no-action", 1), ("start", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2FloodMACClearFDB.setStatus('current') swL2FloodMACAutoFDBCtrlTable = MibTable((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 1, 2), ) if mibBuilder.loadTexts: swL2FloodMACAutoFDBCtrlTable.setStatus('current') swL2FloodMACAutoFDBCtrlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 1, 2, 1), ).setIndexNames((0, "DES3052P-L2MGMT-MIB", "swL2FloodMACAutoFDBIPAddress")) if mibBuilder.loadTexts: swL2FloodMACAutoFDBCtrlEntry.setStatus('current') swL2FloodMACAutoFDBIPAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 1, 2, 1, 1), IpAddress()) if mibBuilder.loadTexts: swL2FloodMACAutoFDBIPAddress.setStatus('current') swL2FloodMACAutoFDBRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 1, 2, 1, 2), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: swL2FloodMACAutoFDBRowStatus.setStatus('current') swL2FloodMACInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 2)) swL2FloodMACFDBTable = MibTable((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 2, 1), ) if mibBuilder.loadTexts: swL2FloodMACFDBTable.setStatus('current') swL2FloodMACFDBEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 2, 1, 1), ).setIndexNames((0, "DES3052P-L2MGMT-MIB", "swL2FloodMACFDBIndex"), (0, "DES3052P-L2MGMT-MIB", "swL2FloodMACFDBVID"), (0, "DES3052P-L2MGMT-MIB", "swL2FloodMACFDBMacAddress")) if mibBuilder.loadTexts: swL2FloodMACFDBEntry.setStatus('current') swL2FloodMACFDBIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 2, 1, 1, 1), Integer32()) if mibBuilder.loadTexts: swL2FloodMACFDBIndex.setStatus('current') swL2FloodMACFDBVID = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4094))) if mibBuilder.loadTexts: swL2FloodMACFDBVID.setStatus('current') swL2FloodMACFDBMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 2, 1, 1, 3), MacAddress()) if mibBuilder.loadTexts: swL2FloodMACFDBMacAddress.setStatus('current') swL2FloodMACFDBStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 2, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("active", 1), ("inactive", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2FloodMACFDBStatus.setStatus('current') swL2FloodMACFDBTimestamp = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 2, 1, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2FloodMACFDBTimestamp.setStatus('current') swL2FloodMACAutoFDBTable = MibTable((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 2, 2), ) if mibBuilder.loadTexts: swL2FloodMACAutoFDBTable.setStatus('current') swL2FloodMACAutoFDBEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 2, 2, 1), ).setIndexNames((0, "DES3052P-L2MGMT-MIB", "swL2FloodMACAutoFDBIPAddress")) if mibBuilder.loadTexts: swL2FloodMACAutoFDBEntry.setStatus('current') swL2FloodMACAutoFDBVID = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 2, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4094))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2FloodMACAutoFDBVID.setStatus('current') swL2FloodMACAutoFDBMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 2, 2, 1, 2), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2FloodMACAutoFDBMacAddress.setStatus('current') swL2FloodMACAutoFDBPort = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 2, 2, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2FloodMACAutoFDBPort.setStatus('current') swL2FloodMACAutoFDBTimestamp = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 2, 2, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2FloodMACAutoFDBTimestamp.setStatus('current') mibBuilder.exportSymbols("DES3052P-L2MGMT-MIB", swL2IGMPDynIPMultVlanAge=swL2IGMPDynIPMultVlanAge, swL2PortMgmt=swL2PortMgmt, swL2IGMPAccessAuthEntry=swL2IGMPAccessAuthEntry, swL2DhcpRelayCtrlEntry=swL2DhcpRelayCtrlEntry, swL2IGMPRouterPortTable=swL2IGMPRouterPortTable, swPortTrunkType=swPortTrunkType, swL2IGMPAccessAuthTable=swL2IGMPAccessAuthTable, swL2IGMPRouterPortForbiddenPortList=swL2IGMPRouterPortForbiddenPortList, swL2IGMPCtrlEntry=swL2IGMPCtrlEntry, swL2IGMPQueryState=swL2IGMPQueryState, swL2IGMPMulticastVlanGroupVid=swL2IGMPMulticastVlanGroupVid, swL2DevCtrlLLDPForwardMessageState=swL2DevCtrlLLDPForwardMessageState, swL2DhcpRelayState=swL2DhcpRelayState, swL2CosMacBasePRIIndex=swL2CosMacBasePRIIndex, swL2CosTosPRITable=swL2CosTosPRITable, swL2CosDscpPRIClass=swL2CosDscpPRIClass, swL2IGMPLastMemberQueryInterval=swL2IGMPLastMemberQueryInterval, swL2PortSecurityAdmState=swL2PortSecurityAdmState, swL2CosPriorityEntry=swL2CosPriorityEntry, swL2FloodMACTrapState=swL2FloodMACTrapState, swIGMPPackage=swIGMPPackage, swL2QOSBandwidthRadiusTxRate=swL2QOSBandwidthRadiusTxRate, swL2IGMPGroupIpAddr=swL2IGMPGroupIpAddr, swL2MultiFilter=swL2MultiFilter, swL2FloodMACFDBStatus=swL2FloodMACFDBStatus, swPortTrunkMaxEntries=swPortTrunkMaxEntries, swL2FloodMACInfo=swL2FloodMACInfo, swL2TrafficSegTable=swL2TrafficSegTable, swPortTrunkPortList=swPortTrunkPortList, swL2QOS8021pRadiusPriority=swL2QOS8021pRadiusPriority, swL2IGMPQueryInterval=swL2IGMPQueryInterval, swL2CosPriorityNone=swL2CosPriorityNone, swL2IGMPLeaveTimer=swL2IGMPLeaveTimer, swL2DevCtrlDefaultGateway=swL2DevCtrlDefaultGateway, swL2IGMPRouterPortEntry=swL2IGMPRouterPortEntry, swL2FloodMACFDBIndex=swL2FloodMACFDBIndex, swL2PortLoopRestart=swL2PortLoopRestart, swL2IGMPv3Entry=swL2IGMPv3Entry, swL2CosTosPRIIndex=swL2CosTosPRIIndex, swL2IGMPIpGroupReportCount=swL2IGMPIpGroupReportCount, swL2McastFilterPortMaxGroup=swL2McastFilterPortMaxGroup, swL2DevCtrlLLDPState=swL2DevCtrlLLDPState, swIGMPSnoopingGroupEntry=swIGMPSnoopingGroupEntry, swIGMPSnoopingGroupRouterPorts=swIGMPSnoopingGroupRouterPorts, swL2FloodMACAutoFDBRowStatus=swL2FloodMACAutoFDBRowStatus, swL2IGMPMaxResponseTime=swL2IGMPMaxResponseTime, swL2IGMPMulticastVlanEntry=swL2IGMPMulticastVlanEntry, swL2IGMPv3Forwarding=swL2IGMPv3Forwarding, swL2PortSecurityViolationMac=swL2PortSecurityViolationMac, swL2PortCtrlAddressLearning=swL2PortCtrlAddressLearning, swL2DhcpRelayOption82Policy=swL2DhcpRelayOption82Policy, swL2DevCtrlCleanAllStatisticCounter=swL2DevCtrlCleanAllStatisticCounter, swL2PortSecurityTrapLogState=swL2PortSecurityTrapLogState, swPortTrunkActivePort=swPortTrunkActivePort, swL2DevCtrlManagementVlanId=swL2DevCtrlManagementVlanId, swL2IGMPDynIPMultVlanState=swL2IGMPDynIPMultVlanState, swL2DhcpRelayCtrlState=swL2DhcpRelayCtrlState, swL2QOSSchedulingMechanismCtrl=swL2QOSSchedulingMechanismCtrl, swL2IGMPCurrentState=swL2IGMPCurrentState, swL2QOSMgmt=swL2QOSMgmt, swL2FloodMACAutoFDBTable=swL2FloodMACAutoFDBTable, swL2IGMPv3Table=swL2IGMPv3Table, swL2FloodMACGlobalSettings=swL2FloodMACGlobalSettings, swL2TrafficSegMgmt=swL2TrafficSegMgmt, swL2DevCtrlSystemIP=swL2DevCtrlSystemIP, swL2McastFilterAddOrDelState=swL2McastFilterAddOrDelState, swl2PortSecurityBindings=swl2PortSecurityBindings, swL2CosPriorityCtrl=swL2CosPriorityCtrl, swL2PortLoopOccurred=swL2PortLoopOccurred, swL2LoopDetectPortLoopStatus=swL2LoopDetectPortLoopStatus, swL2DevCtrlWeb=swL2DevCtrlWeb, swL2IGMPSnoopingClearDynIpMult=swL2IGMPSnoopingClearDynIpMult, swL2DevCtrlWebState=swL2DevCtrlWebState, swL2IGMPAccessAuthPort=swL2IGMPAccessAuthPort, swL2FloodMacDetectedMacVid=swL2FloodMacDetectedMacVid, swL2QOSSchedulingClassIndex=swL2QOSSchedulingClassIndex, swPortMirrorRxPortList=swPortMirrorRxPortList, swIGMPSnoopingGroupExpiryTime=swIGMPSnoopingGroupExpiryTime, swL2macNotification=swL2macNotification, swL2IGMPv3ExpireTimer=swL2IGMPv3ExpireTimer, swL2FloodMACFDBEntry=swL2FloodMACFDBEntry, swL2IGMPCtrlTable=swL2IGMPCtrlTable, swL2PortSecurityViolationTrap=swL2PortSecurityViolationTrap, swL2DevAlarmNewRoot=swL2DevAlarmNewRoot, swL2FloodMACFDBTimestamp=swL2FloodMACFDBTimestamp, swL2McastFilterPortInfoTable=swL2McastFilterPortInfoTable, swL2PortSecurityDelActivity=swL2PortSecurityDelActivity, swPortMirrorPackage=swPortMirrorPackage, swL2PortErrPortStatus=swL2PortErrPortStatus, swL2MACNotifyInterval=swL2MACNotifyInterval, swL2IGMPInfoEntry=swL2IGMPInfoEntry, swPortMirrorTargetPort=swPortMirrorTargetPort, swL2TrafficSegForwardPorts=swL2TrafficSegForwardPorts, swL2DevCtrlSnmpEnableAuthenTraps=swL2DevCtrlSnmpEnableAuthenTraps, swL2QOS8021pDefaultPriorityTable=swL2QOS8021pDefaultPriorityTable, swL2PortErrTable=swL2PortErrTable, swL2DhcpRelayOption82Check=swL2DhcpRelayOption82Check, swL2McastFilterPortTable=swL2McastFilterPortTable, swL2IGMPSnoopingClearDynIpMultIP=swL2IGMPSnoopingClearDynIpMultIP, swL2DevCtrlSystemReboot=swL2DevCtrlSystemReboot, swL2VlanAdvertisementEntry=swL2VlanAdvertisementEntry, swL2CosDscpPRIEntry=swL2CosDscpPRIEntry, swL2DhcpRelayCtrlInterfaceName=swL2DhcpRelayCtrlInterfaceName, swL2DevCtrlVLANTrunkState=swL2DevCtrlVLANTrunkState, swL2PortSecurityPortIndex=swL2PortSecurityPortIndex, swL2FloodMAC=swL2FloodMAC, swL2IGMPRouterPortDynamicPortList=swL2IGMPRouterPortDynamicPortList, swL2IGMPv3SourceIPAddr=swL2IGMPv3SourceIPAddr, swL2PortSecurityMgmt=swL2PortSecurityMgmt, swL2IGMPMulticastVlanGroupToIp=swL2IGMPMulticastVlanGroupToIp, swL2macNotifyInfo=swL2macNotifyInfo, swL2FloodMACState=swL2FloodMACState, swL2DevCtrlIGMPSnooping=swL2DevCtrlIGMPSnooping, swL2CosMacBasePRIClass=swL2CosMacBasePRIClass, swL2QOS8021pUserPriorityIndex=swL2QOS8021pUserPriorityIndex, swL2IGMPInfoTable=swL2IGMPInfoTable, swL2PortSecurityDelVlanName=swL2PortSecurityDelVlanName, swL2IGMPInfoTxQueryCount=swL2IGMPInfoTxQueryCount, swL2PortCtrlPortIndex=swL2PortCtrlPortIndex, swL2McastFilterPortProfileAddOrDelState=swL2McastFilterPortProfileAddOrDelState, swL2DevInfoFrontPanelLedStatus=swL2DevInfoFrontPanelLedStatus, swL2DhcpLocalRelayMgmt=swL2DhcpLocalRelayMgmt, swL2McastFilterPortGroupPortIndex=swL2McastFilterPortGroupPortIndex, swL2TrafficSegPort=swL2TrafficSegPort, swL2CosPriorityEtherPRI=swL2CosPriorityEtherPRI, swL2DevCtrlSubnetMask=swL2DevCtrlSubnetMask, swL2TrunkVLANPort=swL2TrunkVLANPort, swL2CosPriorityPort=swL2CosPriorityPort, swL2CosMgmt=swL2CosMgmt, swL2QOS8021pDefaultPriority=swL2QOS8021pDefaultPriority, swL2QOSBandwidthPortIndex=swL2QOSBandwidthPortIndex, swL2QOSSchedulingMaxWeight=swL2QOSSchedulingMaxWeight, swL2VlanMultiplyPortListAction=swL2VlanMultiplyPortListAction, swL2PortSecurityControlTable=swL2PortSecurityControlTable, swL2IGMPCtrlState=swL2IGMPCtrlState, swL2DhcpLocalRelayState=swL2DhcpLocalRelayState, swL2DevCtrlRmonState=swL2DevCtrlRmonState, swL2LoopDetectPortEntry=swL2LoopDetectPortEntry, swL2QOSBandwidthRadiusRxRate=swL2QOSBandwidthRadiusRxRate, swPortMirrorState=swPortMirrorState, swL2IGMPMulticastVlanUntagSourcePort=swL2IGMPMulticastVlanUntagSourcePort, PortList=PortList, swL2PortInfoPortIndex=swL2PortInfoPortIndex, swL2IGMPMulticastVlanReplaceSourceIp=swL2IGMPMulticastVlanReplaceSourceIp, swL2McastFilterPortInfoPortIndex=swL2McastFilterPortInfoPortIndex, swL2DevInfo=swL2DevInfo, swL2FloodMACAutoFDBIPAddress=swL2FloodMACAutoFDBIPAddress, swL2FloodMACFDBMacAddress=swL2FloodMACFDBMacAddress, swL2CosMacBasePRIEntry=swL2CosMacBasePRIEntry, swL2IGMPMulticastVlanGroupTable=swL2IGMPMulticastVlanGroupTable, swL2FloodMACClearFDB=swL2FloodMACClearFDB, swL2QOS8021pDefaultPriorityIndex=swL2QOS8021pDefaultPriorityIndex, swL2MACNotifyState=swL2MACNotifyState, swL2PortErrEntry=swL2PortErrEntry, swL2CosPortPRITable=swL2CosPortPRITable, swL2IGMPSnoopingClearDynIpMultVID=swL2IGMPSnoopingClearDynIpMultVID, swL2VlanAdvertisementTable=swL2VlanAdvertisementTable, swL2VlanMultiplyAction=swL2VlanMultiplyAction, swL2QOS8021pDefaultPriorityEntry=swL2QOS8021pDefaultPriorityEntry, swPortMirrorTxPortList=swPortMirrorTxPortList, swl2NotificationBindings=swl2NotificationBindings, swL2DhcpLocalRelayVLANID=swL2DhcpLocalRelayVLANID, swL2PortInfoMediumType=swL2PortInfoMediumType, swL2PortSecurityDelCtrl=swL2PortSecurityDelCtrl, swL2IGMPVid=swL2IGMPVid, MacAddress=MacAddress, swL2DhcpLocalRelayVLANState=swL2DhcpLocalRelayVLANState, swL2DevAlarm=swL2DevAlarm, swL2IGMPRouterPortVlanName=swL2IGMPRouterPortVlanName, swL2PortSecurityDelMacAddress=swL2PortSecurityDelMacAddress, swL2McastFilterPortMaxGroupEntry=swL2McastFilterPortMaxGroupEntry, swPortTrunkEntry=swPortTrunkEntry, swL2IGMPCtrlVid=swL2IGMPCtrlVid, swL2IGMPMulticastVlanName=swL2IGMPMulticastVlanName, swL2PortCtrlMDIXState=swL2PortCtrlMDIXState, swL2IGMPMulticastVlanid=swL2IGMPMulticastVlanid, swL2DhcpLocalRelayVLANTable=swL2DhcpLocalRelayVLANTable, swL2FloodMACAutoFDBMacAddress=swL2FloodMACAutoFDBMacAddress, swL2DevMgmt=swL2DevMgmt, swL2PortInfoLinkStatus=swL2PortInfoLinkStatus, swIGMPSnoopingGroupSourceAddr=swIGMPSnoopingGroupSourceAddr, swL2McastFilterTable=swL2McastFilterTable, swL2QOS8021pUserPriorityTable=swL2QOS8021pUserPriorityTable, swL2DhcpRelayCtrlTable=swL2DhcpRelayCtrlTable, swL2QOSBandwidthRxRate=swL2QOSBandwidthRxRate, swL2McastFilterStatus=swL2McastFilterStatus, swL2QOSBandwidthControlEntry=swL2QOSBandwidthControlEntry, swL2VlanMultiplyVlanList=swL2VlanMultiplyVlanList, swL2IGMPHostTimeout=swL2IGMPHostTimeout, swL2TrunkVLANTable=swL2TrunkVLANTable, swL2LoopDetectPortState=swL2LoopDetectPortState, swL2QOS8021pUserPriorityClass=swL2QOS8021pUserPriorityClass, swL2DevAlarmLinkChange=swL2DevAlarmLinkChange, swL2CosDscpPRIIndex=swL2CosDscpPRIIndex, swL2DhcpRelayCtrlServer=swL2DhcpRelayCtrlServer, swPortTrunkState=swPortTrunkState, swL2IGMPQueryInfoTable=swL2IGMPQueryInfoTable, swL2FloodMACFDBVID=swL2FloodMACFDBVID, swL2VlanName=swL2VlanName, swL2IGMPInfoQueryCount=swL2IGMPInfoQueryCount, swIGMPSnoopingGroupReportCount=swIGMPSnoopingGroupReportCount, swL2PortCtrlEntry=swL2PortCtrlEntry, swL2IGMPMulticastVlanMemberPort=swL2IGMPMulticastVlanMemberPort, swL2DhcpRelayHopCount=swL2DhcpRelayHopCount, swL2TrunkMgmt=swL2TrunkMgmt, swL2MACNotifyHistorySize=swL2MACNotifyHistorySize, swL2PortSecurityDelPort=swL2PortSecurityDelPort, swL2MgmtMIBTrapPrefix=swL2MgmtMIBTrapPrefix, swL2IGMPMulticastVlanRowStatus=swL2IGMPMulticastVlanRowStatus, swL2DhcpLocalRelayVLANEntry=swL2DhcpLocalRelayVLANEntry, swL2IGMPRouterPortVlanid=swL2IGMPRouterPortVlanid, swL2CosPortPRIIndex=swL2CosPortPRIIndex, swL2LoopDetectPortTable=swL2LoopDetectPortTable, swL2VlanMultiplyMgmt=swL2VlanMultiplyMgmt, swL2LoopDetectRecoverTime=swL2LoopDetectRecoverTime, swL2DevCtrlTelnetState=swL2DevCtrlTelnetState, swL2QOSBandwidthControlTable=swL2QOSBandwidthControlTable, swL2IGMPAccessAuthState=swL2IGMPAccessAuthState, swL2FloodMACAutoFDBCtrlTable=swL2FloodMACAutoFDBCtrlTable, swL2PortCtrlAdminState=swL2PortCtrlAdminState, swL2CosTosPRIClass=swL2CosTosPRIClass, swL2FloodMACAutoFDBTimestamp=swL2FloodMACAutoFDBTimestamp, swL2DevAlarmTopologyChange=swL2DevAlarmTopologyChange, swL2VlanMultiplyPortList=swL2VlanMultiplyPortList, swL2McastFilterPortInfoProfileName=swL2McastFilterPortInfoProfileName, swL2IGMPRouterPortStaticPortList=swL2IGMPRouterPortStaticPortList, swL2IGMPMulticastVlanReplacePriority=swL2IGMPMulticastVlanReplacePriority, swL2FloodMACMgmt=swL2FloodMACMgmt, PYSNMP_MODULE_ID=swL2MgmtMIB, swL2CosPortPRIEntry=swL2CosPortPRIEntry, swL2VlanAdvertiseState=swL2VlanAdvertiseState, swL2PortSecurityMode=swL2PortSecurityMode, swL2FloodMacDetectedMacAddress=swL2FloodMacDetectedMacAddress, swL2MgmtMIB=swL2MgmtMIB, swL2PortErrPortIndex=swL2PortErrPortIndex, swL2PortSecurityMaxLernAddr=swL2PortSecurityMaxLernAddr, swL2IGMPPortMap=swL2IGMPPortMap, swL2TrunkVLANEntry=swL2TrunkVLANEntry, swL2CosPriorityTable=swL2CosPriorityTable, swL2TrafficSegEntry=swL2TrafficSegEntry, swL2FloodMACAutoFDBCtrlEntry=swL2FloodMACAutoFDBCtrlEntry, swL2FloodMACLogState=swL2FloodMACLogState, swL2McastFilterProfileName=swL2McastFilterProfileName, swL2IGMPMulticastVlanSourcePort=swL2IGMPMulticastVlanSourcePort, swL2CosTosPRIEntry=swL2CosTosPRIEntry, swL2PortInfoEntry=swL2PortInfoEntry, swL2IGMPMulticastVlanRemoveAllMcastAddrListAction=swL2IGMPMulticastVlanRemoveAllMcastAddrListAction, swL2TrunkLACPPortEntry=swL2TrunkLACPPortEntry, swL2TrunkAlgorithm=swL2TrunkAlgorithm, swL2McastFilterPortEntry=swL2McastFilterPortEntry, swL2DevCtrlIpAutoConfig=swL2DevCtrlIpAutoConfig, swL2DhcpRelayMgmt=swL2DhcpRelayMgmt, swPortTrunkIndex=swPortTrunkIndex, swL2FloodMacDetectedTrap=swL2FloodMacDetectedTrap) mibBuilder.exportSymbols("DES3052P-L2MGMT-MIB", swL2IGMPMulticastVlanRemapPriority=swL2IGMPMulticastVlanRemapPriority, swL2DevCtrl=swL2DevCtrl, swL2DevCtrlAsymVlanState=swL2DevCtrlAsymVlanState, swL2IGMPQueryInfoEntry=swL2IGMPQueryInfoEntry, swL2McastFilterProfileIndex=swL2McastFilterProfileIndex, swIGMPSnoopingGroupExcludePortMap=swIGMPSnoopingGroupExcludePortMap, swL2PortInfoTable=swL2PortInfoTable, swL2IGMPMaxIpGroupNumPerVlan=swL2IGMPMaxIpGroupNumPerVlan, swL2LoopDetectPortIndex=swL2LoopDetectPortIndex, swIGMPSnoopingGroupTable=swIGMPSnoopingGroupTable, swL2CosPortPRIClass=swL2CosPortPRIClass, swL2TrunkLACPPortTable=swL2TrunkLACPPortTable, swL2IGMPFastLeave=swL2IGMPFastLeave, swL2VlanMgmt=swL2VlanMgmt, swL2QOSSchedulingTable=swL2QOSSchedulingTable, swL2IGMPInfoVid=swL2IGMPInfoVid, swL2QOS8021pUserPriorityEntry=swL2QOS8021pUserPriorityEntry, swL2McastFilterPortMaxGroupTable=swL2McastFilterPortMaxGroupTable, swIGMPSnoopingGroupGroupAddr=swIGMPSnoopingGroupGroupAddr, swL2IGMPMulticastVlanState=swL2IGMPMulticastVlanState, swL2PortCtrlFlowCtrlState=swL2PortCtrlFlowCtrlState, swL2IGMPSnoopingClearDynIpMultAction=swL2IGMPSnoopingClearDynIpMultAction, swL2FloodMACFDBTable=swL2FloodMACFDBTable, swL2IGMPMulticastVlanGroupEntry=swL2IGMPMulticastVlanGroupEntry, swL2PortCtrlMulticastfilter=swL2PortCtrlMulticastfilter, swL2PortErrPortState=swL2PortErrPortState, swL2LoopDetectInterval=swL2LoopDetectInterval, swL2McastFilterPortInfoEntry=swL2McastFilterPortInfoEntry, swPortTrunkFloodingPort=swPortTrunkFloodingPort, swL2CosMacBasePRITable=swL2CosMacBasePRITable, swL2McastFilterPortMaxGroupPortIndex=swL2McastFilterPortMaxGroupPortIndex, swPortTrunkMasterPort=swPortTrunkMasterPort, swL2IGMPMaxSupportedVlans=swL2IGMPMaxSupportedVlans, swL2LoopDetectTrapMode=swL2LoopDetectTrapMode, swL2IGMPMulticastVlanTagMemberPort=swL2IGMPMulticastVlanTagMemberPort, swL2IGMPDynIpMultMgmt=swL2IGMPDynIpMultMgmt, swL2TrunkLACPPortState=swL2TrunkLACPPortState, swL2FloodMACAutoFDBVID=swL2FloodMACAutoFDBVID, swL2FloodMACAutoFDBPort=swL2FloodMACAutoFDBPort, swL2QOSSchedulingMechanism=swL2QOSSchedulingMechanism, swL2PortCtrlMACNotifyState=swL2PortCtrlMACNotifyState, swL2TrunkLACPPortIndex=swL2TrunkLACPPortIndex, swL2LoopDetectCtrl=swL2LoopDetectCtrl, swL2IGMPRouteTimeout=swL2IGMPRouteTimeout, swL2IGMPMulticastVlanTable=swL2IGMPMulticastVlanTable, swL2FloodMACAutoFDBEntry=swL2FloodMACAutoFDBEntry, swL2IGMPMulticastVlanGroupFromIp=swL2IGMPMulticastVlanGroupFromIp, swL2CosDscpPRITable=swL2CosDscpPRITable, swL2IGMPRobustness=swL2IGMPRobustness, swL2PortSecurityControlEntry=swL2PortSecurityControlEntry, VlanId=VlanId, swIGMPSnoopingGroupIncludePortMap=swIGMPSnoopingGroupIncludePortMap, swL2PortCtrlPortMediumType=swL2PortCtrlPortMediumType, swL2PortCtrlDescription=swL2PortCtrlDescription, swL2PortErrPortReason=swL2PortErrPortReason, swL2QOSSchedulingEntry=swL2QOSSchedulingEntry, swPortTrunkTable=swPortTrunkTable, swL2LoopDetectPortMgmt=swL2LoopDetectPortMgmt, swL2MgmtMIBTraps=swL2MgmtMIBTraps, swL2IGMPMacAddr=swL2IGMPMacAddr, swL2VlanMultiplyAdvertisement=swL2VlanMultiplyAdvertisement, swL2CosPriorityPortPRI=swL2CosPriorityPortPRI, swL2IGMPSnoopingMulticastVlanState=swL2IGMPSnoopingMulticastVlanState, swIGMPSnoopingGroupUpTime=swIGMPSnoopingGroupUpTime, swL2PortCtrlTable=swL2PortCtrlTable, swL2DhcpRelayOption82State=swL2DhcpRelayOption82State, swL2QOSBandwidthTxRate=swL2QOSBandwidthTxRate, swL2McastFilterPortProfileID=swL2McastFilterPortProfileID, swPortTrunkMaxPortMembers=swPortTrunkMaxPortMembers, swL2McastFilterGroupList=swL2McastFilterGroupList, swL2PortInfoNwayStatus=swL2PortInfoNwayStatus, swL2PortErrDescription=swL2PortErrDescription, swL2LoopDetectAdminState=swL2LoopDetectAdminState, swL2DevCtrlTelnet=swL2DevCtrlTelnet, swL2VlanIndex=swL2VlanIndex, swIGMPSnoopingGroupVid=swIGMPSnoopingGroupVid, swL2TrunkVLANState=swL2TrunkVLANState, swL2DhcpRelayTimeThreshold=swL2DhcpRelayTimeThreshold, swL2CosPriorityIpPRI=swL2CosPriorityIpPRI, swL2McastFilterEntry=swL2McastFilterEntry, swL2PortCtrlNwayState=swL2PortCtrlNwayState, swL2IGMPDynIPMultMaxEntry=swL2IGMPDynIPMultMaxEntry, swL2IGMPMulticastVlanGroupStatus=swL2IGMPMulticastVlanGroupStatus, swL2LoopDetectMgmt=swL2LoopDetectMgmt)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_intersection, value_range_constraint, single_value_constraint, constraints_union, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ValueRangeConstraint', 'SingleValueConstraint', 'ConstraintsUnion', 'ValueSizeConstraint') (snmp_admin_string,) = mibBuilder.importSymbols('SNMP-FRAMEWORK-MIB', 'SnmpAdminString') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (module_identity, bits, counter64, mib_scalar, mib_table, mib_table_row, mib_table_column, notification_type, time_ticks, gauge32, object_identity, integer32, iso, counter32, unsigned32, ip_address, mib_identifier) = mibBuilder.importSymbols('SNMPv2-SMI', 'ModuleIdentity', 'Bits', 'Counter64', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'NotificationType', 'TimeTicks', 'Gauge32', 'ObjectIdentity', 'Integer32', 'iso', 'Counter32', 'Unsigned32', 'IpAddress', 'MibIdentifier') (truth_value, display_string, row_status, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'TruthValue', 'DisplayString', 'RowStatus', 'TextualConvention') (des3052p,) = mibBuilder.importSymbols('SWPRIMGMT-DES30XXP-MIB', 'des3052p') sw_l2_mgmt_mib = module_identity((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2)) if mibBuilder.loadTexts: swL2MgmtMIB.setLastUpdated('1008030000Z') if mibBuilder.loadTexts: swL2MgmtMIB.setOrganization('D-Link, Inc.') class Vlanid(Integer32): subtype_spec = Integer32.subtypeSpec + value_range_constraint(1, 4094) class Portlist(OctetString): subtype_spec = OctetString.subtypeSpec + value_size_constraint(0, 127) class Macaddress(OctetString): subtype_spec = OctetString.subtypeSpec + value_size_constraint(6, 6) fixed_length = 6 sw_l2_dev_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1)) sw_l2_port_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2)) sw_l2_qos_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3)) sw_l2_trunk_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4)) sw_port_mirror_package = mib_identifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 6)) sw_igmp_package = mib_identifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7)) sw_l2_traffic_seg_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 12)) sw_l2_port_security_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 15)) sw_l2_cos_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17)) sw_l2_dhcp_relay_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 18)) sw_l2_mgmt_mib_traps = mib_identifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 20)) sw_l2_loop_detect_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 21)) sw_l2_multi_filter = mib_identifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22)) sw_l2_vlan_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 23)) sw_l2_dhcp_local_relay_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 24)) sw_l2_flood_mac = mib_identifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25)) sw_l2_dev_info = mib_identifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 1)) sw_l2_dev_info_front_panel_led_status = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 1, 5), octet_string().subtype(subtypeSpec=value_size_constraint(0, 127))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2DevInfoFrontPanelLedStatus.setStatus('current') sw_l2_dev_ctrl = mib_identifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2)) sw_l2_dev_ctrl_system_reboot = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('reboot', 2), ('save-config-and-reboot', 3), ('reboot-and-load-factory-default-config', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2DevCtrlSystemReboot.setStatus('current') sw_l2_dev_ctrl_system_ip = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 2), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2DevCtrlSystemIP.setStatus('current') sw_l2_dev_ctrl_subnet_mask = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 3), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2DevCtrlSubnetMask.setStatus('current') sw_l2_dev_ctrl_default_gateway = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 4), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2DevCtrlDefaultGateway.setStatus('current') sw_l2_dev_ctrl_management_vlan_id = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 5), vlan_id()).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2DevCtrlManagementVlanId.setStatus('current') sw_l2_dev_ctrl_igmp_snooping = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2DevCtrlIGMPSnooping.setStatus('current') sw_l2_dev_ctrl_clean_all_statistic_counter = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('normal', 1), ('active', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2DevCtrlCleanAllStatisticCounter.setStatus('current') sw_l2_dev_ctrl_snmp_enable_authen_traps = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2DevCtrlSnmpEnableAuthenTraps.setStatus('current') sw_l2_dev_ctrl_rmon_state = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 16), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2DevCtrlRmonState.setStatus('current') sw_l2_dev_ctrl_ip_auto_config = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2DevCtrlIpAutoConfig.setStatus('current') sw_l2_mac_notify_state = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 19), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2MACNotifyState.setStatus('current') sw_l2_mac_notify_history_size = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 20), integer32().subtype(subtypeSpec=value_range_constraint(1, 500))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2MACNotifyHistorySize.setStatus('current') sw_l2_mac_notify_interval = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 21), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2MACNotifyInterval.setStatus('current') sw_l2_dev_ctrl_lldp_state = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 22), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2DevCtrlLLDPState.setStatus('current') sw_l2_dev_ctrl_lldp_forward_message_state = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 23), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('disabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2DevCtrlLLDPForwardMessageState.setStatus('current') sw_l2_dev_ctrl_asym_vlan_state = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 24), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2DevCtrlAsymVlanState.setStatus('current') sw_l2_igmp_snooping_multicast_vlan_state = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 25), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2IGMPSnoopingMulticastVlanState.setStatus('current') sw_l2_dev_ctrl_vlan_trunk_state = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 26), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2DevCtrlVLANTrunkState.setStatus('current') sw_l2_dev_ctrl_web = mib_identifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 27)) sw_l2_dev_ctrl_web_state = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 27, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2DevCtrlWebState.setStatus('current') sw_l2_dev_ctrl_telnet = mib_identifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 28)) sw_l2_dev_ctrl_telnet_state = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 2, 28, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2DevCtrlTelnetState.setStatus('current') sw_l2_dev_alarm = mib_identifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 3)) sw_l2_dev_alarm_new_root = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 3, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2DevAlarmNewRoot.setStatus('current') sw_l2_dev_alarm_topology_change = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 3, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2DevAlarmTopologyChange.setStatus('current') sw_l2_dev_alarm_link_change = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 1, 3, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2DevAlarmLinkChange.setStatus('current') sw_l2_port_info_table = mib_table((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 1)) if mibBuilder.loadTexts: swL2PortInfoTable.setStatus('current') sw_l2_port_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 1, 1)).setIndexNames((0, 'DES3052P-L2MGMT-MIB', 'swL2PortInfoPortIndex'), (0, 'DES3052P-L2MGMT-MIB', 'swL2PortInfoMediumType')) if mibBuilder.loadTexts: swL2PortInfoEntry.setStatus('current') sw_l2_port_info_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortInfoPortIndex.setStatus('current') sw_l2_port_info_medium_type = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(100, 101))).clone(namedValues=named_values(('copper', 100), ('fiber', 101)))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortInfoMediumType.setStatus('current') sw_l2_port_info_link_status = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('link-pass', 2), ('link-fail', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortInfoLinkStatus.setStatus('current') sw_l2_port_info_nway_status = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('auto', 1), ('half-10Mbps', 2), ('full-10Mbps', 3), ('half-100Mbps', 4), ('full-100Mbps', 5), ('half-1Gigabps', 6), ('full-1Gigabps', 7)))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortInfoNwayStatus.setStatus('current') sw_l2_port_ctrl_table = mib_table((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 2)) if mibBuilder.loadTexts: swL2PortCtrlTable.setStatus('current') sw_l2_port_ctrl_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 2, 1)).setIndexNames((0, 'DES3052P-L2MGMT-MIB', 'swL2PortCtrlPortIndex'), (0, 'DES3052P-L2MGMT-MIB', 'swL2PortCtrlPortMediumType')) if mibBuilder.loadTexts: swL2PortCtrlEntry.setStatus('current') sw_l2_port_ctrl_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortCtrlPortIndex.setStatus('current') sw_l2_port_ctrl_port_medium_type = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(100, 101))).clone(namedValues=named_values(('copper', 100), ('fiber', 101)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2PortCtrlPortMediumType.setStatus('current') sw_l2_port_ctrl_admin_state = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2PortCtrlAdminState.setStatus('current') sw_l2_port_ctrl_nway_state = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 2, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 7, 8, 9))).clone(namedValues=named_values(('nway-auto', 1), ('nway-disabled-10Mbps-Half', 2), ('nway-disabled-10Mbps-Full', 3), ('nway-disabled-100Mbps-Half', 4), ('nway-disabled-100Mbps-Full', 5), ('nway-disabled-1Gigabps-Full', 7), ('nway-disabled-1Gigabps-Full-Master', 8), ('nway-disabled-1Gigabps-Full-Slave', 9)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2PortCtrlNwayState.setStatus('current') sw_l2_port_ctrl_flow_ctrl_state = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2PortCtrlFlowCtrlState.setStatus('current') sw_l2_port_ctrl_description = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 2, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2PortCtrlDescription.setStatus('current') sw_l2_port_ctrl_address_learning = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 2, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2PortCtrlAddressLearning.setStatus('current') sw_l2_port_ctrl_mac_notify_state = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 2, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2PortCtrlMACNotifyState.setStatus('current') sw_l2_port_ctrl_multicastfilter = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 2, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(2, 3))).clone(namedValues=named_values(('forward-unregistered-groups', 2), ('filter-unregistered-groups', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2PortCtrlMulticastfilter.setStatus('current') sw_l2_port_ctrl_mdix_state = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 2, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('auto', 1), ('normal', 2), ('cross', 3), ('other', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2PortCtrlMDIXState.setStatus('current') sw_l2_port_err_table = mib_table((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 3)) if mibBuilder.loadTexts: swL2PortErrTable.setStatus('current') sw_l2_port_err_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 3, 1)).setIndexNames((0, 'DES3052P-L2MGMT-MIB', 'swL2PortErrPortIndex')) if mibBuilder.loadTexts: swL2PortErrEntry.setStatus('current') sw_l2_port_err_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortErrPortIndex.setStatus('current') sw_l2_port_err_port_state = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 3, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortErrPortState.setStatus('current') sw_l2_port_err_port_status = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 3, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('other', 1), ('err-disabled', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortErrPortStatus.setStatus('current') sw_l2_port_err_port_reason = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 3, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('stp-lbd', 1), ('storm-control', 2), ('ddm', 3), ('duld', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortErrPortReason.setStatus('current') sw_l2_port_err_description = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 2, 3, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortErrDescription.setStatus('current') sw_l2_qos_bandwidth_control_table = mib_table((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 1)) if mibBuilder.loadTexts: swL2QOSBandwidthControlTable.setStatus('current') sw_l2_qos_bandwidth_control_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 1, 1)).setIndexNames((0, 'DES3052P-L2MGMT-MIB', 'swL2QOSBandwidthPortIndex')) if mibBuilder.loadTexts: swL2QOSBandwidthControlEntry.setStatus('current') sw_l2_qos_bandwidth_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 650))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2QOSBandwidthPortIndex.setStatus('current') sw_l2_qos_bandwidth_rx_rate = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(64, 1024000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2QOSBandwidthRxRate.setStatus('current') sw_l2_qos_bandwidth_tx_rate = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(64, 1024000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2QOSBandwidthTxRate.setStatus('current') sw_l2_qos_bandwidth_radius_rx_rate = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 1, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2QOSBandwidthRadiusRxRate.setStatus('current') sw_l2_qos_bandwidth_radius_tx_rate = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 1, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2QOSBandwidthRadiusTxRate.setStatus('current') sw_l2_qos_scheduling_table = mib_table((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 2)) if mibBuilder.loadTexts: swL2QOSSchedulingTable.setStatus('current') sw_l2_qos_scheduling_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 2, 1)).setIndexNames((0, 'DES3052P-L2MGMT-MIB', 'swL2QOSSchedulingClassIndex')) if mibBuilder.loadTexts: swL2QOSSchedulingEntry.setStatus('current') sw_l2_qos_scheduling_class_index = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 3))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2QOSSchedulingClassIndex.setStatus('current') sw_l2_qos_scheduling_max_weight = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 2, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 55))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2QOSSchedulingMaxWeight.setStatus('current') sw_l2_qos_scheduling_mechanism = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('strict', 1), ('roundrobin', 2), ('weightfair', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2QOSSchedulingMechanism.setStatus('current') sw_l2_qos_scheduling_mechanism_ctrl = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('strict', 1), ('weightfair', 2), ('none', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2QOSSchedulingMechanismCtrl.setStatus('current') sw_l2_qos8021p_user_priority_table = mib_table((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 3)) if mibBuilder.loadTexts: swL2QOS8021pUserPriorityTable.setStatus('current') sw_l2_qos8021p_user_priority_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 3, 1)).setIndexNames((0, 'DES3052P-L2MGMT-MIB', 'swL2QOS8021pUserPriorityIndex')) if mibBuilder.loadTexts: swL2QOS8021pUserPriorityEntry.setStatus('current') sw_l2_qos8021p_user_priority_index = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2QOS8021pUserPriorityIndex.setStatus('current') sw_l2_qos8021p_user_priority_class = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 3, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 3))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2QOS8021pUserPriorityClass.setStatus('current') sw_l2_qos8021p_default_priority_table = mib_table((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 4)) if mibBuilder.loadTexts: swL2QOS8021pDefaultPriorityTable.setStatus('current') sw_l2_qos8021p_default_priority_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 4, 1)).setIndexNames((0, 'DES3052P-L2MGMT-MIB', 'swL2QOS8021pDefaultPriorityIndex')) if mibBuilder.loadTexts: swL2QOS8021pDefaultPriorityEntry.setStatus('current') sw_l2_qos8021p_default_priority_index = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 4, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 650))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2QOS8021pDefaultPriorityIndex.setStatus('current') sw_l2_qos8021p_default_priority = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 4, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2QOS8021pDefaultPriority.setStatus('current') sw_l2_qos8021p_radius_priority = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 3, 4, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2QOS8021pRadiusPriority.setStatus('current') sw_port_trunk_max_entries = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swPortTrunkMaxEntries.setStatus('current') sw_port_trunk_max_port_members = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swPortTrunkMaxPortMembers.setStatus('current') sw_port_trunk_table = mib_table((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 3)) if mibBuilder.loadTexts: swPortTrunkTable.setStatus('current') sw_port_trunk_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 3, 1)).setIndexNames((0, 'DES3052P-L2MGMT-MIB', 'swPortTrunkIndex')) if mibBuilder.loadTexts: swPortTrunkEntry.setStatus('current') sw_port_trunk_index = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 3))).setMaxAccess('readonly') if mibBuilder.loadTexts: swPortTrunkIndex.setStatus('current') sw_port_trunk_master_port = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 3, 1, 2), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: swPortTrunkMasterPort.setStatus('current') sw_port_trunk_port_list = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 3, 1, 3), port_list()).setMaxAccess('readcreate') if mibBuilder.loadTexts: swPortTrunkPortList.setStatus('current') sw_port_trunk_type = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 3, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('static', 1), ('lacp', 2)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: swPortTrunkType.setStatus('current') sw_port_trunk_active_port = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 3, 1, 5), port_list()).setMaxAccess('readonly') if mibBuilder.loadTexts: swPortTrunkActivePort.setStatus('current') sw_port_trunk_state = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 3, 1, 6), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: swPortTrunkState.setStatus('current') sw_port_trunk_flooding_port = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 3, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swPortTrunkFloodingPort.setStatus('current') sw_l2_trunk_algorithm = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('mac-source', 2), ('mac-destination', 3), ('mac-source-dest', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2TrunkAlgorithm.setStatus('current') sw_l2_trunk_lacp_port_table = mib_table((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 5)) if mibBuilder.loadTexts: swL2TrunkLACPPortTable.setStatus('current') sw_l2_trunk_lacp_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 5, 1)).setIndexNames((0, 'DES3052P-L2MGMT-MIB', 'swL2TrunkLACPPortIndex')) if mibBuilder.loadTexts: swL2TrunkLACPPortEntry.setStatus('current') sw_l2_trunk_lacp_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 5, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2TrunkLACPPortIndex.setStatus('current') sw_l2_trunk_lacp_port_state = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 5, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('active', 1), ('passive', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2TrunkLACPPortState.setStatus('current') sw_l2_trunk_vlan_table = mib_table((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 6)) if mibBuilder.loadTexts: swL2TrunkVLANTable.setStatus('current') sw_l2_trunk_vlan_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 6, 1)).setIndexNames((0, 'DES3052P-L2MGMT-MIB', 'swL2TrunkVLANPort')) if mibBuilder.loadTexts: swL2TrunkVLANEntry.setStatus('current') sw_l2_trunk_vlan_port = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 6, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2TrunkVLANPort.setStatus('current') sw_l2_trunk_vlan_state = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 4, 6, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2TrunkVLANState.setStatus('current') sw_port_mirror_rx_port_list = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 6, 2), port_list()).setMaxAccess('readwrite') if mibBuilder.loadTexts: swPortMirrorRxPortList.setStatus('current') sw_port_mirror_tx_port_list = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 6, 3), port_list()).setMaxAccess('readwrite') if mibBuilder.loadTexts: swPortMirrorTxPortList.setStatus('current') sw_port_mirror_target_port = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 6, 4), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: swPortMirrorTargetPort.setStatus('current') sw_port_mirror_state = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 6, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swPortMirrorState.setStatus('current') sw_l2_igmp_max_supported_vlans = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2IGMPMaxSupportedVlans.setStatus('current') sw_l2_igmp_max_ip_group_num_per_vlan = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2IGMPMaxIpGroupNumPerVlan.setStatus('current') sw_l2_igmp_ctrl_table = mib_table((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 3)) if mibBuilder.loadTexts: swL2IGMPCtrlTable.setStatus('current') sw_l2_igmp_ctrl_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 3, 1)).setIndexNames((0, 'DES3052P-L2MGMT-MIB', 'swL2IGMPCtrlVid')) if mibBuilder.loadTexts: swL2IGMPCtrlEntry.setStatus('current') sw_l2_igmp_ctrl_vid = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2IGMPCtrlVid.setStatus('current') sw_l2_igmp_query_interval = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 3, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535)).clone(125)).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2IGMPQueryInterval.setStatus('current') sw_l2_igmp_max_response_time = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 3, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(1, 25)).clone(10)).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2IGMPMaxResponseTime.setStatus('current') sw_l2_igmp_robustness = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 3, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 255)).clone(2)).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2IGMPRobustness.setStatus('current') sw_l2_igmp_last_member_query_interval = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 3, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(1, 25)).clone(1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2IGMPLastMemberQueryInterval.setStatus('current') sw_l2_igmp_host_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 3, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(1, 16711450)).clone(260)).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2IGMPHostTimeout.setStatus('current') sw_l2_igmp_route_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 3, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(1, 16711450)).clone(260)).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2IGMPRouteTimeout.setStatus('current') sw_l2_igmp_leave_timer = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 3, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(1, 16711450)).clone(1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2IGMPLeaveTimer.setStatus('current') sw_l2_igmp_query_state = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 3, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2IGMPQueryState.setStatus('current') sw_l2_igmp_current_state = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 3, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('querier', 2), ('non-querier', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2IGMPCurrentState.setStatus('current') sw_l2_igmp_ctrl_state = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 3, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disable', 2), ('enable', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2IGMPCtrlState.setStatus('current') sw_l2_igmp_fast_leave = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 3, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disable', 2), ('enable', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2IGMPFastLeave.setStatus('current') sw_l2_igmp_dyn_ip_mult_vlan_state = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 3, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2IGMPDynIPMultVlanState.setStatus('current') sw_l2_igmp_dyn_ip_mult_vlan_age = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 3, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2IGMPDynIPMultVlanAge.setStatus('current') sw_l2_igmp_query_info_table = mib_table((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 4)) if mibBuilder.loadTexts: swL2IGMPQueryInfoTable.setStatus('current') sw_l2_igmp_query_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 4, 1)).setIndexNames((0, 'DES3052P-L2MGMT-MIB', 'swL2IGMPInfoVid')) if mibBuilder.loadTexts: swL2IGMPQueryInfoEntry.setStatus('current') sw_l2_igmp_info_vid = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 4, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2IGMPInfoVid.setStatus('current') sw_l2_igmp_info_query_count = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 4, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2IGMPInfoQueryCount.setStatus('current') sw_l2_igmp_info_tx_query_count = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 4, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2IGMPInfoTxQueryCount.setStatus('current') sw_l2_igmp_info_table = mib_table((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 5)) if mibBuilder.loadTexts: swL2IGMPInfoTable.setStatus('current') sw_l2_igmp_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 5, 1)).setIndexNames((0, 'DES3052P-L2MGMT-MIB', 'swL2IGMPVid'), (0, 'DES3052P-L2MGMT-MIB', 'swL2IGMPGroupIpAddr')) if mibBuilder.loadTexts: swL2IGMPInfoEntry.setStatus('current') sw_l2_igmp_vid = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 5, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2IGMPVid.setStatus('current') sw_l2_igmp_group_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 5, 1, 2), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2IGMPGroupIpAddr.setStatus('current') sw_l2_igmp_mac_addr = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 5, 1, 3), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2IGMPMacAddr.setStatus('current') sw_l2_igmp_port_map = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 5, 1, 4), port_list()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2IGMPPortMap.setStatus('current') sw_l2_igmp_ip_group_report_count = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 5, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2IGMPIpGroupReportCount.setStatus('current') sw_l2_igmp_router_port_table = mib_table((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 6)) if mibBuilder.loadTexts: swL2IGMPRouterPortTable.setStatus('current') sw_l2_igmp_router_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 6, 1)).setIndexNames((0, 'DES3052P-L2MGMT-MIB', 'swL2IGMPRouterPortVlanid')) if mibBuilder.loadTexts: swL2IGMPRouterPortEntry.setStatus('current') sw_l2_igmp_router_port_vlanid = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 6, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 4094))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2IGMPRouterPortVlanid.setStatus('current') sw_l2_igmp_router_port_vlan_name = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 6, 1, 2), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2IGMPRouterPortVlanName.setStatus('current') sw_l2_igmp_router_port_static_port_list = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 6, 1, 3), port_list()).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2IGMPRouterPortStaticPortList.setStatus('current') sw_l2_igmp_router_port_dynamic_port_list = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 6, 1, 4), port_list()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2IGMPRouterPortDynamicPortList.setStatus('current') sw_l2_igmp_router_port_forbidden_port_list = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 6, 1, 5), port_list()).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2IGMPRouterPortForbiddenPortList.setStatus('current') sw_l2_igmp_access_auth_table = mib_table((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 7)) if mibBuilder.loadTexts: swL2IGMPAccessAuthTable.setStatus('current') sw_l2_igmp_access_auth_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 7, 1)).setIndexNames((0, 'DES3052P-L2MGMT-MIB', 'swL2IGMPAccessAuthPort')) if mibBuilder.loadTexts: swL2IGMPAccessAuthEntry.setStatus('current') sw_l2_igmp_access_auth_port = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 7, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2IGMPAccessAuthPort.setStatus('current') sw_l2_igmp_access_auth_state = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 7, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2IGMPAccessAuthState.setStatus('current') sw_l2_igmp_multicast_vlan_table = mib_table((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 8)) if mibBuilder.loadTexts: swL2IGMPMulticastVlanTable.setStatus('current') sw_l2_igmp_multicast_vlan_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 8, 1)).setIndexNames((0, 'DES3052P-L2MGMT-MIB', 'swL2IGMPMulticastVlanid')) if mibBuilder.loadTexts: swL2IGMPMulticastVlanEntry.setStatus('current') sw_l2_igmp_multicast_vlanid = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 8, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(2, 4094))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2IGMPMulticastVlanid.setStatus('current') sw_l2_igmp_multicast_vlan_name = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 8, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readcreate') if mibBuilder.loadTexts: swL2IGMPMulticastVlanName.setStatus('current') sw_l2_igmp_multicast_vlan_source_port = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 8, 1, 3), port_list()).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2IGMPMulticastVlanSourcePort.setStatus('current') sw_l2_igmp_multicast_vlan_member_port = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 8, 1, 4), port_list()).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2IGMPMulticastVlanMemberPort.setStatus('current') sw_l2_igmp_multicast_vlan_tag_member_port = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 8, 1, 5), port_list()).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2IGMPMulticastVlanTagMemberPort.setStatus('current') sw_l2_igmp_multicast_vlan_state = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 8, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2IGMPMulticastVlanState.setStatus('current') sw_l2_igmp_multicast_vlan_replace_source_ip = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 8, 1, 7), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2IGMPMulticastVlanReplaceSourceIp.setStatus('current') sw_l2_igmp_multicast_vlan_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 8, 1, 8), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: swL2IGMPMulticastVlanRowStatus.setStatus('current') sw_l2_igmp_multicast_vlan_remove_all_mcast_addr_list_action = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 8, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('other', 1), ('start', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2IGMPMulticastVlanRemoveAllMcastAddrListAction.setStatus('current') sw_l2_igmp_multicast_vlan_untag_source_port = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 8, 1, 10), port_list()).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2IGMPMulticastVlanUntagSourcePort.setStatus('current') sw_l2_igmp_multicast_vlan_remap_priority = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 8, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(0, 8)).clone(8)).setMaxAccess('readcreate') if mibBuilder.loadTexts: swL2IGMPMulticastVlanRemapPriority.setStatus('current') sw_l2_igmp_multicast_vlan_replace_priority = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 8, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('true', 1), ('false', 2)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: swL2IGMPMulticastVlanReplacePriority.setStatus('current') sw_l2_igmp_multicast_vlan_group_table = mib_table((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 9)) if mibBuilder.loadTexts: swL2IGMPMulticastVlanGroupTable.setStatus('current') sw_l2_igmp_multicast_vlan_group_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 9, 1)).setIndexNames((0, 'DES3052P-L2MGMT-MIB', 'swL2IGMPMulticastVlanGroupVid'), (0, 'DES3052P-L2MGMT-MIB', 'swL2IGMPMulticastVlanGroupFromIp'), (0, 'DES3052P-L2MGMT-MIB', 'swL2IGMPMulticastVlanGroupToIp')) if mibBuilder.loadTexts: swL2IGMPMulticastVlanGroupEntry.setStatus('current') sw_l2_igmp_multicast_vlan_group_vid = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 9, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 4094))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2IGMPMulticastVlanGroupVid.setStatus('current') sw_l2_igmp_multicast_vlan_group_from_ip = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 9, 1, 2), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2IGMPMulticastVlanGroupFromIp.setStatus('current') sw_l2_igmp_multicast_vlan_group_to_ip = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 9, 1, 3), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2IGMPMulticastVlanGroupToIp.setStatus('current') sw_l2_igmp_multicast_vlan_group_status = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 9, 1, 4), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: swL2IGMPMulticastVlanGroupStatus.setStatus('current') sw_l2_igm_pv3_table = mib_table((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 10)) if mibBuilder.loadTexts: swL2IGMPv3Table.setStatus('current') sw_l2_igm_pv3_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 10, 1)).setIndexNames((0, 'DES3052P-L2MGMT-MIB', 'swL2IGMPVid'), (0, 'DES3052P-L2MGMT-MIB', 'swL2IGMPGroupIpAddr'), (0, 'DES3052P-L2MGMT-MIB', 'swL2IGMPv3SourceIPAddr')) if mibBuilder.loadTexts: swL2IGMPv3Entry.setStatus('current') sw_l2_igm_pv3_source_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 10, 1, 1), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2IGMPv3SourceIPAddr.setStatus('current') sw_l2_igm_pv3_forwarding = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 10, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2IGMPv3Forwarding.setStatus('current') sw_l2_igm_pv3_expire_timer = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 10, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2IGMPv3ExpireTimer.setStatus('current') sw_igmp_snooping_group_table = mib_table((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 11)) if mibBuilder.loadTexts: swIGMPSnoopingGroupTable.setStatus('current') sw_igmp_snooping_group_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 11, 1)).setIndexNames((0, 'DES3052P-L2MGMT-MIB', 'swIGMPSnoopingGroupVid'), (0, 'DES3052P-L2MGMT-MIB', 'swIGMPSnoopingGroupGroupAddr'), (0, 'DES3052P-L2MGMT-MIB', 'swIGMPSnoopingGroupSourceAddr')) if mibBuilder.loadTexts: swIGMPSnoopingGroupEntry.setStatus('current') sw_igmp_snooping_group_vid = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 11, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 4094))).setMaxAccess('readonly') if mibBuilder.loadTexts: swIGMPSnoopingGroupVid.setStatus('current') sw_igmp_snooping_group_group_addr = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 11, 1, 2), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: swIGMPSnoopingGroupGroupAddr.setStatus('current') sw_igmp_snooping_group_source_addr = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 11, 1, 3), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: swIGMPSnoopingGroupSourceAddr.setStatus('current') sw_igmp_snooping_group_include_port_map = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 11, 1, 4), port_list()).setMaxAccess('readonly') if mibBuilder.loadTexts: swIGMPSnoopingGroupIncludePortMap.setStatus('current') sw_igmp_snooping_group_exclude_port_map = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 11, 1, 5), port_list()).setMaxAccess('readonly') if mibBuilder.loadTexts: swIGMPSnoopingGroupExcludePortMap.setStatus('current') sw_igmp_snooping_group_report_count = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 11, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swIGMPSnoopingGroupReportCount.setStatus('current') sw_igmp_snooping_group_up_time = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 11, 1, 7), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: swIGMPSnoopingGroupUpTime.setStatus('current') sw_igmp_snooping_group_expiry_time = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 11, 1, 8), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: swIGMPSnoopingGroupExpiryTime.setStatus('current') sw_igmp_snooping_group_router_ports = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 11, 1, 9), port_list()).setMaxAccess('readonly') if mibBuilder.loadTexts: swIGMPSnoopingGroupRouterPorts.setStatus('current') sw_l2_igmp_dyn_ip_mult_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 12)) sw_l2_igmp_dyn_ip_mult_max_entry = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 12, 1), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2IGMPDynIPMultMaxEntry.setStatus('current') sw_l2_igmp_snooping_clear_dyn_ip_mult = mib_identifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 12, 2)) sw_l2_igmp_snooping_clear_dyn_ip_mult_vid = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 12, 2, 1), vlan_id()).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2IGMPSnoopingClearDynIpMultVID.setStatus('current') sw_l2_igmp_snooping_clear_dyn_ip_mult_ip = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 12, 2, 2), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2IGMPSnoopingClearDynIpMultIP.setStatus('current') sw_l2_igmp_snooping_clear_dyn_ip_mult_action = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 7, 12, 2, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('all', 1), ('vlan', 2), ('group', 3), ('other', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2IGMPSnoopingClearDynIpMultAction.setStatus('current') sw_l2_traffic_seg_table = mib_table((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 12, 1)) if mibBuilder.loadTexts: swL2TrafficSegTable.setStatus('current') sw_l2_traffic_seg_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 12, 1, 1)).setIndexNames((0, 'DES3052P-L2MGMT-MIB', 'swL2TrafficSegPort')) if mibBuilder.loadTexts: swL2TrafficSegEntry.setStatus('current') sw_l2_traffic_seg_port = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 12, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2TrafficSegPort.setStatus('current') sw_l2_traffic_seg_forward_ports = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 12, 1, 1, 2), port_list()).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2TrafficSegForwardPorts.setStatus('current') sw_l2_port_security_control_table = mib_table((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 15, 1)) if mibBuilder.loadTexts: swL2PortSecurityControlTable.setStatus('current') sw_l2_port_security_control_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 15, 1, 1)).setIndexNames((0, 'DES3052P-L2MGMT-MIB', 'swL2PortSecurityPortIndex')) if mibBuilder.loadTexts: swL2PortSecurityControlEntry.setStatus('current') sw_l2_port_security_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 15, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortSecurityPortIndex.setStatus('current') sw_l2_port_security_max_lern_addr = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 15, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 16))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2PortSecurityMaxLernAddr.setStatus('current') sw_l2_port_security_mode = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 15, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('permanent', 2), ('deleteOnTimeout', 3), ('deleteOnReset', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2PortSecurityMode.setStatus('current') sw_l2_port_security_adm_state = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 15, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enable', 2), ('disable', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2PortSecurityAdmState.setStatus('current') sw_l2_port_security_trap_log_state = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 15, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enable', 2), ('disable', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2PortSecurityTrapLogState.setStatus('current') sw_l2_port_security_del_ctrl = mib_identifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 15, 3)) sw_l2_port_security_del_vlan_name = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 15, 3, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2PortSecurityDelVlanName.setStatus('current') sw_l2_port_security_del_port = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 15, 3, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 768))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2PortSecurityDelPort.setStatus('current') sw_l2_port_security_del_mac_address = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 15, 3, 3), mac_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2PortSecurityDelMacAddress.setStatus('current') sw_l2_port_security_del_activity = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 15, 3, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('none', 1), ('start', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2PortSecurityDelActivity.setStatus('current') sw_l2_cos_priority_ctrl = mib_identifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3)) sw_l2_cos_priority_table = mib_table((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 1)) if mibBuilder.loadTexts: swL2CosPriorityTable.setStatus('current') sw_l2_cos_priority_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 1, 1)).setIndexNames((0, 'DES3052P-L2MGMT-MIB', 'swL2CosPriorityPort')) if mibBuilder.loadTexts: swL2CosPriorityEntry.setStatus('current') sw_l2_cos_priority_port = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2CosPriorityPort.setStatus('current') sw_l2_cos_priority_port_pri = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disable', 2), ('enable', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2CosPriorityPortPRI.setStatus('current') sw_l2_cos_priority_ether_pri = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('disable', 1), ('ether8021p', 2), ('macBase', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2CosPriorityEtherPRI.setStatus('current') sw_l2_cos_priority_ip_pri = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('disable', 1), ('tos', 2), ('dscp', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2CosPriorityIpPRI.setStatus('current') sw_l2_cos_priority_none = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('valid', 1), ('invalid', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2CosPriorityNone.setStatus('current') sw_l2_cos_port_pri_table = mib_table((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 2)) if mibBuilder.loadTexts: swL2CosPortPRITable.setStatus('current') sw_l2_cos_port_pri_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 2, 1)).setIndexNames((0, 'DES3052P-L2MGMT-MIB', 'swL2CosPortPRIIndex')) if mibBuilder.loadTexts: swL2CosPortPRIEntry.setStatus('current') sw_l2_cos_port_pri_index = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2CosPortPRIIndex.setStatus('current') sw_l2_cos_port_pri_class = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 3))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2CosPortPRIClass.setStatus('current') sw_l2_cos_mac_base_pri_table = mib_table((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 3)) if mibBuilder.loadTexts: swL2CosMacBasePRITable.setStatus('current') sw_l2_cos_mac_base_pri_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 3, 1)).setIndexNames((0, 'DES3052P-L2MGMT-MIB', 'swL2CosMacBasePRIIndex')) if mibBuilder.loadTexts: swL2CosMacBasePRIEntry.setStatus('current') sw_l2_cos_mac_base_pri_index = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 3, 1, 1), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2CosMacBasePRIIndex.setStatus('current') sw_l2_cos_mac_base_pri_class = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 3, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 3))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2CosMacBasePRIClass.setStatus('current') sw_l2_cos_tos_pri_table = mib_table((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 4)) if mibBuilder.loadTexts: swL2CosTosPRITable.setStatus('current') sw_l2_cos_tos_pri_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 4, 1)).setIndexNames((0, 'DES3052P-L2MGMT-MIB', 'swL2CosTosPRIIndex')) if mibBuilder.loadTexts: swL2CosTosPRIEntry.setStatus('current') sw_l2_cos_tos_pri_index = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 4, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2CosTosPRIIndex.setStatus('current') sw_l2_cos_tos_pri_class = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 4, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 3))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2CosTosPRIClass.setStatus('current') sw_l2_cos_dscp_pri_table = mib_table((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 5)) if mibBuilder.loadTexts: swL2CosDscpPRITable.setStatus('current') sw_l2_cos_dscp_pri_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 5, 1)).setIndexNames((0, 'DES3052P-L2MGMT-MIB', 'swL2CosDscpPRIIndex')) if mibBuilder.loadTexts: swL2CosDscpPRIEntry.setStatus('current') sw_l2_cos_dscp_pri_index = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 5, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 63))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2CosDscpPRIIndex.setStatus('current') sw_l2_cos_dscp_pri_class = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 17, 3, 5, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 3))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2CosDscpPRIClass.setStatus('current') sw_l2_dhcp_relay_state = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 18, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2DhcpRelayState.setStatus('obsolete') sw_l2_dhcp_relay_hop_count = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 18, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 16))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2DhcpRelayHopCount.setStatus('obsolete') sw_l2_dhcp_relay_time_threshold = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 18, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2DhcpRelayTimeThreshold.setStatus('obsolete') sw_l2_dhcp_relay_option82_state = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 18, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2DhcpRelayOption82State.setStatus('obsolete') sw_l2_dhcp_relay_option82_check = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 18, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2DhcpRelayOption82Check.setStatus('obsolete') sw_l2_dhcp_relay_option82_policy = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 18, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('replace', 1), ('drop', 2), ('keep', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2DhcpRelayOption82Policy.setStatus('obsolete') sw_l2_dhcp_relay_ctrl_table = mib_table((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 18, 7)) if mibBuilder.loadTexts: swL2DhcpRelayCtrlTable.setStatus('obsolete') sw_l2_dhcp_relay_ctrl_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 18, 7, 1)).setIndexNames((0, 'DES3052P-L2MGMT-MIB', 'swL2DhcpRelayCtrlInterfaceName'), (0, 'DES3052P-L2MGMT-MIB', 'swL2DhcpRelayCtrlServer')) if mibBuilder.loadTexts: swL2DhcpRelayCtrlEntry.setStatus('obsolete') sw_l2_dhcp_relay_ctrl_interface_name = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 18, 7, 1, 1), display_string().subtype(subtypeSpec=value_size_constraint(1, 12))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2DhcpRelayCtrlInterfaceName.setStatus('obsolete') sw_l2_dhcp_relay_ctrl_server = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 18, 7, 1, 2), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2DhcpRelayCtrlServer.setStatus('current') sw_l2_dhcp_relay_ctrl_state = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 18, 7, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('invalid', 2), ('valid', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2DhcpRelayCtrlState.setStatus('obsolete') sw_l2_mgmt_mib_trap_prefix = mib_identifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 20, 0)) sw_l2_port_security_violation_trap = notification_type((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 20, 0, 1)).setObjects(('DES3052P-L2MGMT-MIB', 'swL2PortSecurityPortIndex'), ('DES3052P-L2MGMT-MIB', 'swL2PortSecurityViolationMac')) if mibBuilder.loadTexts: swL2PortSecurityViolationTrap.setStatus('current') sw_l2mac_notification = notification_type((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 20, 0, 2)).setObjects(('DES3052P-L2MGMT-MIB', 'swL2macNotifyInfo')) if mibBuilder.loadTexts: swL2macNotification.setStatus('current') sw_l2_flood_mac_detected_trap = notification_type((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 20, 0, 3)).setObjects(('DES3052P-L2MGMT-MIB', 'swL2FloodMacDetectedMacVid'), ('DES3052P-L2MGMT-MIB', 'swL2FloodMacDetectedMacAddress')) if mibBuilder.loadTexts: swL2FloodMacDetectedTrap.setStatus('current') sw_l2_port_loop_occurred = notification_type((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 20, 0, 4)).setObjects(('DES3052P-L2MGMT-MIB', 'swL2LoopDetectPortIndex')) if mibBuilder.loadTexts: swL2PortLoopOccurred.setStatus('current') sw_l2_port_loop_restart = notification_type((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 20, 0, 5)).setObjects(('DES3052P-L2MGMT-MIB', 'swL2LoopDetectPortIndex')) if mibBuilder.loadTexts: swL2PortLoopRestart.setStatus('current') swl2_port_security_bindings = mib_identifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 20, 1)) sw_l2_port_security_violation_mac = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 20, 1, 1), mac_address()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: swL2PortSecurityViolationMac.setStatus('current') swl2_notification_bindings = mib_identifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 20, 2)) sw_l2mac_notify_info = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 20, 2, 1), octet_string().subtype(subtypeSpec=value_size_constraint(0, 1024))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2macNotifyInfo.setStatus('current') sw_l2_flood_mac_detected_mac_vid = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 20, 2, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 4094))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2FloodMacDetectedMacVid.setStatus('current') sw_l2_flood_mac_detected_mac_address = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 20, 2, 3), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2FloodMacDetectedMacAddress.setStatus('current') sw_l2_loop_detect_ctrl = mib_identifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 21, 1)) sw_l2_loop_detect_admin_state = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 21, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2LoopDetectAdminState.setStatus('current') sw_l2_loop_detect_interval = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 21, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 32767))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2LoopDetectInterval.setStatus('current') sw_l2_loop_detect_recover_time = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 21, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 1000000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2LoopDetectRecoverTime.setStatus('current') sw_l2_loop_detect_trap_mode = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 21, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('none', 1), ('loop_detected', 2), ('loop_cleared', 3), ('both', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2LoopDetectTrapMode.setStatus('current') sw_l2_loop_detect_port_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 21, 2)) sw_l2_loop_detect_port_table = mib_table((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 21, 2, 1)) if mibBuilder.loadTexts: swL2LoopDetectPortTable.setStatus('current') sw_l2_loop_detect_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 21, 2, 1, 1)).setIndexNames((0, 'DES3052P-L2MGMT-MIB', 'swL2LoopDetectPortIndex')) if mibBuilder.loadTexts: swL2LoopDetectPortEntry.setStatus('current') sw_l2_loop_detect_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 21, 2, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2LoopDetectPortIndex.setStatus('current') sw_l2_loop_detect_port_state = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 21, 2, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2LoopDetectPortState.setStatus('current') sw_l2_loop_detect_port_loop_status = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 21, 2, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('normal', 1), ('loop', 2), ('error', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2LoopDetectPortLoopStatus.setStatus('current') sw_l2_mcast_filter_table = mib_table((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 2)) if mibBuilder.loadTexts: swL2McastFilterTable.setStatus('current') sw_l2_mcast_filter_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 2, 1)).setIndexNames((0, 'DES3052P-L2MGMT-MIB', 'swL2McastFilterProfileIndex')) if mibBuilder.loadTexts: swL2McastFilterEntry.setStatus('current') sw_l2_mcast_filter_profile_index = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 24))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2McastFilterProfileIndex.setStatus('current') sw_l2_mcast_filter_profile_name = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(1, 32))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2McastFilterProfileName.setStatus('current') sw_l2_mcast_filter_add_or_del_state = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('none', 1), ('add', 2), ('delete', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2McastFilterAddOrDelState.setStatus('current') sw_l2_mcast_filter_group_list = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 2, 1, 4), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2McastFilterGroupList.setStatus('current') sw_l2_mcast_filter_status = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 2, 1, 5), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: swL2McastFilterStatus.setStatus('current') sw_l2_mcast_filter_port_table = mib_table((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 3)) if mibBuilder.loadTexts: swL2McastFilterPortTable.setStatus('current') sw_l2_mcast_filter_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 3, 1)).setIndexNames((0, 'DES3052P-L2MGMT-MIB', 'swL2McastFilterPortGroupPortIndex')) if mibBuilder.loadTexts: swL2McastFilterPortEntry.setStatus('current') sw_l2_mcast_filter_port_group_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 3, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2McastFilterPortGroupPortIndex.setStatus('current') sw_l2_mcast_filter_port_profile_add_or_del_state = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 3, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('none', 1), ('add', 2), ('delete', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2McastFilterPortProfileAddOrDelState.setStatus('current') sw_l2_mcast_filter_port_profile_id = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 3, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 24))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2McastFilterPortProfileID.setStatus('current') sw_l2_mcast_filter_port_max_group_table = mib_table((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 4)) if mibBuilder.loadTexts: swL2McastFilterPortMaxGroupTable.setStatus('current') sw_l2_mcast_filter_port_max_group_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 4, 1)).setIndexNames((0, 'DES3052P-L2MGMT-MIB', 'swL2McastFilterPortMaxGroupPortIndex')) if mibBuilder.loadTexts: swL2McastFilterPortMaxGroupEntry.setStatus('current') sw_l2_mcast_filter_port_max_group_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 4, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2McastFilterPortMaxGroupPortIndex.setStatus('current') sw_l2_mcast_filter_port_max_group = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 4, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 256))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2McastFilterPortMaxGroup.setStatus('current') sw_l2_mcast_filter_port_info_table = mib_table((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 5)) if mibBuilder.loadTexts: swL2McastFilterPortInfoTable.setStatus('current') sw_l2_mcast_filter_port_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 5, 1)).setIndexNames((0, 'DES3052P-L2MGMT-MIB', 'swL2McastFilterPortInfoPortIndex')) if mibBuilder.loadTexts: swL2McastFilterPortInfoEntry.setStatus('current') sw_l2_mcast_filter_port_info_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 5, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2McastFilterPortInfoPortIndex.setStatus('current') sw_l2_mcast_filter_port_info_profile_name = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 22, 5, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2McastFilterPortInfoProfileName.setStatus('current') sw_l2_vlan_advertisement_table = mib_table((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 23, 1)) if mibBuilder.loadTexts: swL2VlanAdvertisementTable.setStatus('current') sw_l2_vlan_advertisement_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 23, 1, 1)).setIndexNames((0, 'DES3052P-L2MGMT-MIB', 'swL2VlanIndex')) if mibBuilder.loadTexts: swL2VlanAdvertisementEntry.setStatus('current') sw_l2_vlan_index = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 23, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 4094))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2VlanIndex.setStatus('current') sw_l2_vlan_name = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 23, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2VlanName.setStatus('current') sw_l2_vlan_advertise_state = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 23, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2VlanAdvertiseState.setStatus('current') sw_l2_vlan_multiply_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 23, 2)) sw_l2_vlan_multiply_vlan_list = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 23, 2, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2VlanMultiplyVlanList.setStatus('current') sw_l2_vlan_multiply_advertisement = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 23, 2, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enabled', 2), ('disabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2VlanMultiplyAdvertisement.setStatus('current') sw_l2_vlan_multiply_port_list = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 23, 2, 3), port_list()).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2VlanMultiplyPortList.setStatus('current') sw_l2_vlan_multiply_port_list_action = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 23, 2, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('add-tagged', 2), ('add-untagged', 3), ('add-forbidden', 4), ('delete', 5)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2VlanMultiplyPortListAction.setStatus('current') sw_l2_vlan_multiply_action = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 23, 2, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('create', 2), ('configure', 3), ('delete', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2VlanMultiplyAction.setStatus('current') sw_l2_dhcp_local_relay_state = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 24, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2DhcpLocalRelayState.setStatus('current') sw_l2_dhcp_local_relay_vlan_table = mib_table((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 24, 2)) if mibBuilder.loadTexts: swL2DhcpLocalRelayVLANTable.setStatus('current') sw_l2_dhcp_local_relay_vlan_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 24, 2, 1)).setIndexNames((0, 'DES3052P-L2MGMT-MIB', 'swL2DhcpLocalRelayVLANID')) if mibBuilder.loadTexts: swL2DhcpLocalRelayVLANEntry.setStatus('current') sw_l2_dhcp_local_relay_vlanid = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 24, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 4094))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2DhcpLocalRelayVLANID.setStatus('current') sw_l2_dhcp_local_relay_vlan_state = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 24, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2DhcpLocalRelayVLANState.setStatus('current') sw_l2_flood_mac_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 1)) sw_l2_flood_mac_global_settings = mib_identifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 1, 1)) sw_l2_flood_mac_state = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2FloodMACState.setStatus('current') sw_l2_flood_mac_log_state = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2FloodMACLogState.setStatus('current') sw_l2_flood_mac_trap_state = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2FloodMACTrapState.setStatus('current') sw_l2_flood_mac_clear_fdb = mib_scalar((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no-action', 1), ('start', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2FloodMACClearFDB.setStatus('current') sw_l2_flood_mac_auto_fdb_ctrl_table = mib_table((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 1, 2)) if mibBuilder.loadTexts: swL2FloodMACAutoFDBCtrlTable.setStatus('current') sw_l2_flood_mac_auto_fdb_ctrl_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 1, 2, 1)).setIndexNames((0, 'DES3052P-L2MGMT-MIB', 'swL2FloodMACAutoFDBIPAddress')) if mibBuilder.loadTexts: swL2FloodMACAutoFDBCtrlEntry.setStatus('current') sw_l2_flood_mac_auto_fdbip_address = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 1, 2, 1, 1), ip_address()) if mibBuilder.loadTexts: swL2FloodMACAutoFDBIPAddress.setStatus('current') sw_l2_flood_mac_auto_fdb_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 1, 2, 1, 2), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: swL2FloodMACAutoFDBRowStatus.setStatus('current') sw_l2_flood_mac_info = mib_identifier((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 2)) sw_l2_flood_macfdb_table = mib_table((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 2, 1)) if mibBuilder.loadTexts: swL2FloodMACFDBTable.setStatus('current') sw_l2_flood_macfdb_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 2, 1, 1)).setIndexNames((0, 'DES3052P-L2MGMT-MIB', 'swL2FloodMACFDBIndex'), (0, 'DES3052P-L2MGMT-MIB', 'swL2FloodMACFDBVID'), (0, 'DES3052P-L2MGMT-MIB', 'swL2FloodMACFDBMacAddress')) if mibBuilder.loadTexts: swL2FloodMACFDBEntry.setStatus('current') sw_l2_flood_macfdb_index = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 2, 1, 1, 1), integer32()) if mibBuilder.loadTexts: swL2FloodMACFDBIndex.setStatus('current') sw_l2_flood_macfdbvid = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 2, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 4094))) if mibBuilder.loadTexts: swL2FloodMACFDBVID.setStatus('current') sw_l2_flood_macfdb_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 2, 1, 1, 3), mac_address()) if mibBuilder.loadTexts: swL2FloodMACFDBMacAddress.setStatus('current') sw_l2_flood_macfdb_status = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 2, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('active', 1), ('inactive', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2FloodMACFDBStatus.setStatus('current') sw_l2_flood_macfdb_timestamp = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 2, 1, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2FloodMACFDBTimestamp.setStatus('current') sw_l2_flood_mac_auto_fdb_table = mib_table((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 2, 2)) if mibBuilder.loadTexts: swL2FloodMACAutoFDBTable.setStatus('current') sw_l2_flood_mac_auto_fdb_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 2, 2, 1)).setIndexNames((0, 'DES3052P-L2MGMT-MIB', 'swL2FloodMACAutoFDBIPAddress')) if mibBuilder.loadTexts: swL2FloodMACAutoFDBEntry.setStatus('current') sw_l2_flood_mac_auto_fdbvid = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 2, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 4094))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2FloodMACAutoFDBVID.setStatus('current') sw_l2_flood_mac_auto_fdb_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 2, 2, 1, 2), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2FloodMACAutoFDBMacAddress.setStatus('current') sw_l2_flood_mac_auto_fdb_port = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 2, 2, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2FloodMACAutoFDBPort.setStatus('current') sw_l2_flood_mac_auto_fdb_timestamp = mib_table_column((1, 3, 6, 1, 4, 1, 171, 11, 63, 9, 2, 25, 2, 2, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2FloodMACAutoFDBTimestamp.setStatus('current') mibBuilder.exportSymbols('DES3052P-L2MGMT-MIB', swL2IGMPDynIPMultVlanAge=swL2IGMPDynIPMultVlanAge, swL2PortMgmt=swL2PortMgmt, swL2IGMPAccessAuthEntry=swL2IGMPAccessAuthEntry, swL2DhcpRelayCtrlEntry=swL2DhcpRelayCtrlEntry, swL2IGMPRouterPortTable=swL2IGMPRouterPortTable, swPortTrunkType=swPortTrunkType, swL2IGMPAccessAuthTable=swL2IGMPAccessAuthTable, swL2IGMPRouterPortForbiddenPortList=swL2IGMPRouterPortForbiddenPortList, swL2IGMPCtrlEntry=swL2IGMPCtrlEntry, swL2IGMPQueryState=swL2IGMPQueryState, swL2IGMPMulticastVlanGroupVid=swL2IGMPMulticastVlanGroupVid, swL2DevCtrlLLDPForwardMessageState=swL2DevCtrlLLDPForwardMessageState, swL2DhcpRelayState=swL2DhcpRelayState, swL2CosMacBasePRIIndex=swL2CosMacBasePRIIndex, swL2CosTosPRITable=swL2CosTosPRITable, swL2CosDscpPRIClass=swL2CosDscpPRIClass, swL2IGMPLastMemberQueryInterval=swL2IGMPLastMemberQueryInterval, swL2PortSecurityAdmState=swL2PortSecurityAdmState, swL2CosPriorityEntry=swL2CosPriorityEntry, swL2FloodMACTrapState=swL2FloodMACTrapState, swIGMPPackage=swIGMPPackage, swL2QOSBandwidthRadiusTxRate=swL2QOSBandwidthRadiusTxRate, swL2IGMPGroupIpAddr=swL2IGMPGroupIpAddr, swL2MultiFilter=swL2MultiFilter, swL2FloodMACFDBStatus=swL2FloodMACFDBStatus, swPortTrunkMaxEntries=swPortTrunkMaxEntries, swL2FloodMACInfo=swL2FloodMACInfo, swL2TrafficSegTable=swL2TrafficSegTable, swPortTrunkPortList=swPortTrunkPortList, swL2QOS8021pRadiusPriority=swL2QOS8021pRadiusPriority, swL2IGMPQueryInterval=swL2IGMPQueryInterval, swL2CosPriorityNone=swL2CosPriorityNone, swL2IGMPLeaveTimer=swL2IGMPLeaveTimer, swL2DevCtrlDefaultGateway=swL2DevCtrlDefaultGateway, swL2IGMPRouterPortEntry=swL2IGMPRouterPortEntry, swL2FloodMACFDBIndex=swL2FloodMACFDBIndex, swL2PortLoopRestart=swL2PortLoopRestart, swL2IGMPv3Entry=swL2IGMPv3Entry, swL2CosTosPRIIndex=swL2CosTosPRIIndex, swL2IGMPIpGroupReportCount=swL2IGMPIpGroupReportCount, swL2McastFilterPortMaxGroup=swL2McastFilterPortMaxGroup, swL2DevCtrlLLDPState=swL2DevCtrlLLDPState, swIGMPSnoopingGroupEntry=swIGMPSnoopingGroupEntry, swIGMPSnoopingGroupRouterPorts=swIGMPSnoopingGroupRouterPorts, swL2FloodMACAutoFDBRowStatus=swL2FloodMACAutoFDBRowStatus, swL2IGMPMaxResponseTime=swL2IGMPMaxResponseTime, swL2IGMPMulticastVlanEntry=swL2IGMPMulticastVlanEntry, swL2IGMPv3Forwarding=swL2IGMPv3Forwarding, swL2PortSecurityViolationMac=swL2PortSecurityViolationMac, swL2PortCtrlAddressLearning=swL2PortCtrlAddressLearning, swL2DhcpRelayOption82Policy=swL2DhcpRelayOption82Policy, swL2DevCtrlCleanAllStatisticCounter=swL2DevCtrlCleanAllStatisticCounter, swL2PortSecurityTrapLogState=swL2PortSecurityTrapLogState, swPortTrunkActivePort=swPortTrunkActivePort, swL2DevCtrlManagementVlanId=swL2DevCtrlManagementVlanId, swL2IGMPDynIPMultVlanState=swL2IGMPDynIPMultVlanState, swL2DhcpRelayCtrlState=swL2DhcpRelayCtrlState, swL2QOSSchedulingMechanismCtrl=swL2QOSSchedulingMechanismCtrl, swL2IGMPCurrentState=swL2IGMPCurrentState, swL2QOSMgmt=swL2QOSMgmt, swL2FloodMACAutoFDBTable=swL2FloodMACAutoFDBTable, swL2IGMPv3Table=swL2IGMPv3Table, swL2FloodMACGlobalSettings=swL2FloodMACGlobalSettings, swL2TrafficSegMgmt=swL2TrafficSegMgmt, swL2DevCtrlSystemIP=swL2DevCtrlSystemIP, swL2McastFilterAddOrDelState=swL2McastFilterAddOrDelState, swl2PortSecurityBindings=swl2PortSecurityBindings, swL2CosPriorityCtrl=swL2CosPriorityCtrl, swL2PortLoopOccurred=swL2PortLoopOccurred, swL2LoopDetectPortLoopStatus=swL2LoopDetectPortLoopStatus, swL2DevCtrlWeb=swL2DevCtrlWeb, swL2IGMPSnoopingClearDynIpMult=swL2IGMPSnoopingClearDynIpMult, swL2DevCtrlWebState=swL2DevCtrlWebState, swL2IGMPAccessAuthPort=swL2IGMPAccessAuthPort, swL2FloodMacDetectedMacVid=swL2FloodMacDetectedMacVid, swL2QOSSchedulingClassIndex=swL2QOSSchedulingClassIndex, swPortMirrorRxPortList=swPortMirrorRxPortList, swIGMPSnoopingGroupExpiryTime=swIGMPSnoopingGroupExpiryTime, swL2macNotification=swL2macNotification, swL2IGMPv3ExpireTimer=swL2IGMPv3ExpireTimer, swL2FloodMACFDBEntry=swL2FloodMACFDBEntry, swL2IGMPCtrlTable=swL2IGMPCtrlTable, swL2PortSecurityViolationTrap=swL2PortSecurityViolationTrap, swL2DevAlarmNewRoot=swL2DevAlarmNewRoot, swL2FloodMACFDBTimestamp=swL2FloodMACFDBTimestamp, swL2McastFilterPortInfoTable=swL2McastFilterPortInfoTable, swL2PortSecurityDelActivity=swL2PortSecurityDelActivity, swPortMirrorPackage=swPortMirrorPackage, swL2PortErrPortStatus=swL2PortErrPortStatus, swL2MACNotifyInterval=swL2MACNotifyInterval, swL2IGMPInfoEntry=swL2IGMPInfoEntry, swPortMirrorTargetPort=swPortMirrorTargetPort, swL2TrafficSegForwardPorts=swL2TrafficSegForwardPorts, swL2DevCtrlSnmpEnableAuthenTraps=swL2DevCtrlSnmpEnableAuthenTraps, swL2QOS8021pDefaultPriorityTable=swL2QOS8021pDefaultPriorityTable, swL2PortErrTable=swL2PortErrTable, swL2DhcpRelayOption82Check=swL2DhcpRelayOption82Check, swL2McastFilterPortTable=swL2McastFilterPortTable, swL2IGMPSnoopingClearDynIpMultIP=swL2IGMPSnoopingClearDynIpMultIP, swL2DevCtrlSystemReboot=swL2DevCtrlSystemReboot, swL2VlanAdvertisementEntry=swL2VlanAdvertisementEntry, swL2CosDscpPRIEntry=swL2CosDscpPRIEntry, swL2DhcpRelayCtrlInterfaceName=swL2DhcpRelayCtrlInterfaceName, swL2DevCtrlVLANTrunkState=swL2DevCtrlVLANTrunkState, swL2PortSecurityPortIndex=swL2PortSecurityPortIndex, swL2FloodMAC=swL2FloodMAC, swL2IGMPRouterPortDynamicPortList=swL2IGMPRouterPortDynamicPortList, swL2IGMPv3SourceIPAddr=swL2IGMPv3SourceIPAddr, swL2PortSecurityMgmt=swL2PortSecurityMgmt, swL2IGMPMulticastVlanGroupToIp=swL2IGMPMulticastVlanGroupToIp, swL2macNotifyInfo=swL2macNotifyInfo, swL2FloodMACState=swL2FloodMACState, swL2DevCtrlIGMPSnooping=swL2DevCtrlIGMPSnooping, swL2CosMacBasePRIClass=swL2CosMacBasePRIClass, swL2QOS8021pUserPriorityIndex=swL2QOS8021pUserPriorityIndex, swL2IGMPInfoTable=swL2IGMPInfoTable, swL2PortSecurityDelVlanName=swL2PortSecurityDelVlanName, swL2IGMPInfoTxQueryCount=swL2IGMPInfoTxQueryCount, swL2PortCtrlPortIndex=swL2PortCtrlPortIndex, swL2McastFilterPortProfileAddOrDelState=swL2McastFilterPortProfileAddOrDelState, swL2DevInfoFrontPanelLedStatus=swL2DevInfoFrontPanelLedStatus, swL2DhcpLocalRelayMgmt=swL2DhcpLocalRelayMgmt, swL2McastFilterPortGroupPortIndex=swL2McastFilterPortGroupPortIndex, swL2TrafficSegPort=swL2TrafficSegPort, swL2CosPriorityEtherPRI=swL2CosPriorityEtherPRI, swL2DevCtrlSubnetMask=swL2DevCtrlSubnetMask, swL2TrunkVLANPort=swL2TrunkVLANPort, swL2CosPriorityPort=swL2CosPriorityPort, swL2CosMgmt=swL2CosMgmt, swL2QOS8021pDefaultPriority=swL2QOS8021pDefaultPriority, swL2QOSBandwidthPortIndex=swL2QOSBandwidthPortIndex, swL2QOSSchedulingMaxWeight=swL2QOSSchedulingMaxWeight, swL2VlanMultiplyPortListAction=swL2VlanMultiplyPortListAction, swL2PortSecurityControlTable=swL2PortSecurityControlTable, swL2IGMPCtrlState=swL2IGMPCtrlState, swL2DhcpLocalRelayState=swL2DhcpLocalRelayState, swL2DevCtrlRmonState=swL2DevCtrlRmonState, swL2LoopDetectPortEntry=swL2LoopDetectPortEntry, swL2QOSBandwidthRadiusRxRate=swL2QOSBandwidthRadiusRxRate, swPortMirrorState=swPortMirrorState, swL2IGMPMulticastVlanUntagSourcePort=swL2IGMPMulticastVlanUntagSourcePort, PortList=PortList, swL2PortInfoPortIndex=swL2PortInfoPortIndex, swL2IGMPMulticastVlanReplaceSourceIp=swL2IGMPMulticastVlanReplaceSourceIp, swL2McastFilterPortInfoPortIndex=swL2McastFilterPortInfoPortIndex, swL2DevInfo=swL2DevInfo, swL2FloodMACAutoFDBIPAddress=swL2FloodMACAutoFDBIPAddress, swL2FloodMACFDBMacAddress=swL2FloodMACFDBMacAddress, swL2CosMacBasePRIEntry=swL2CosMacBasePRIEntry, swL2IGMPMulticastVlanGroupTable=swL2IGMPMulticastVlanGroupTable, swL2FloodMACClearFDB=swL2FloodMACClearFDB, swL2QOS8021pDefaultPriorityIndex=swL2QOS8021pDefaultPriorityIndex, swL2MACNotifyState=swL2MACNotifyState, swL2PortErrEntry=swL2PortErrEntry, swL2CosPortPRITable=swL2CosPortPRITable, swL2IGMPSnoopingClearDynIpMultVID=swL2IGMPSnoopingClearDynIpMultVID, swL2VlanAdvertisementTable=swL2VlanAdvertisementTable, swL2VlanMultiplyAction=swL2VlanMultiplyAction, swL2QOS8021pDefaultPriorityEntry=swL2QOS8021pDefaultPriorityEntry, swPortMirrorTxPortList=swPortMirrorTxPortList, swl2NotificationBindings=swl2NotificationBindings, swL2DhcpLocalRelayVLANID=swL2DhcpLocalRelayVLANID, swL2PortInfoMediumType=swL2PortInfoMediumType, swL2PortSecurityDelCtrl=swL2PortSecurityDelCtrl, swL2IGMPVid=swL2IGMPVid, MacAddress=MacAddress, swL2DhcpLocalRelayVLANState=swL2DhcpLocalRelayVLANState, swL2DevAlarm=swL2DevAlarm, swL2IGMPRouterPortVlanName=swL2IGMPRouterPortVlanName, swL2PortSecurityDelMacAddress=swL2PortSecurityDelMacAddress, swL2McastFilterPortMaxGroupEntry=swL2McastFilterPortMaxGroupEntry, swPortTrunkEntry=swPortTrunkEntry, swL2IGMPCtrlVid=swL2IGMPCtrlVid, swL2IGMPMulticastVlanName=swL2IGMPMulticastVlanName, swL2PortCtrlMDIXState=swL2PortCtrlMDIXState, swL2IGMPMulticastVlanid=swL2IGMPMulticastVlanid, swL2DhcpLocalRelayVLANTable=swL2DhcpLocalRelayVLANTable, swL2FloodMACAutoFDBMacAddress=swL2FloodMACAutoFDBMacAddress, swL2DevMgmt=swL2DevMgmt, swL2PortInfoLinkStatus=swL2PortInfoLinkStatus, swIGMPSnoopingGroupSourceAddr=swIGMPSnoopingGroupSourceAddr, swL2McastFilterTable=swL2McastFilterTable, swL2QOS8021pUserPriorityTable=swL2QOS8021pUserPriorityTable, swL2DhcpRelayCtrlTable=swL2DhcpRelayCtrlTable, swL2QOSBandwidthRxRate=swL2QOSBandwidthRxRate, swL2McastFilterStatus=swL2McastFilterStatus, swL2QOSBandwidthControlEntry=swL2QOSBandwidthControlEntry, swL2VlanMultiplyVlanList=swL2VlanMultiplyVlanList, swL2IGMPHostTimeout=swL2IGMPHostTimeout, swL2TrunkVLANTable=swL2TrunkVLANTable, swL2LoopDetectPortState=swL2LoopDetectPortState, swL2QOS8021pUserPriorityClass=swL2QOS8021pUserPriorityClass, swL2DevAlarmLinkChange=swL2DevAlarmLinkChange, swL2CosDscpPRIIndex=swL2CosDscpPRIIndex, swL2DhcpRelayCtrlServer=swL2DhcpRelayCtrlServer, swPortTrunkState=swPortTrunkState, swL2IGMPQueryInfoTable=swL2IGMPQueryInfoTable, swL2FloodMACFDBVID=swL2FloodMACFDBVID, swL2VlanName=swL2VlanName, swL2IGMPInfoQueryCount=swL2IGMPInfoQueryCount, swIGMPSnoopingGroupReportCount=swIGMPSnoopingGroupReportCount, swL2PortCtrlEntry=swL2PortCtrlEntry, swL2IGMPMulticastVlanMemberPort=swL2IGMPMulticastVlanMemberPort, swL2DhcpRelayHopCount=swL2DhcpRelayHopCount, swL2TrunkMgmt=swL2TrunkMgmt, swL2MACNotifyHistorySize=swL2MACNotifyHistorySize, swL2PortSecurityDelPort=swL2PortSecurityDelPort, swL2MgmtMIBTrapPrefix=swL2MgmtMIBTrapPrefix, swL2IGMPMulticastVlanRowStatus=swL2IGMPMulticastVlanRowStatus, swL2DhcpLocalRelayVLANEntry=swL2DhcpLocalRelayVLANEntry, swL2IGMPRouterPortVlanid=swL2IGMPRouterPortVlanid, swL2CosPortPRIIndex=swL2CosPortPRIIndex, swL2LoopDetectPortTable=swL2LoopDetectPortTable, swL2VlanMultiplyMgmt=swL2VlanMultiplyMgmt, swL2LoopDetectRecoverTime=swL2LoopDetectRecoverTime, swL2DevCtrlTelnetState=swL2DevCtrlTelnetState, swL2QOSBandwidthControlTable=swL2QOSBandwidthControlTable, swL2IGMPAccessAuthState=swL2IGMPAccessAuthState, swL2FloodMACAutoFDBCtrlTable=swL2FloodMACAutoFDBCtrlTable, swL2PortCtrlAdminState=swL2PortCtrlAdminState, swL2CosTosPRIClass=swL2CosTosPRIClass, swL2FloodMACAutoFDBTimestamp=swL2FloodMACAutoFDBTimestamp, swL2DevAlarmTopologyChange=swL2DevAlarmTopologyChange, swL2VlanMultiplyPortList=swL2VlanMultiplyPortList, swL2McastFilterPortInfoProfileName=swL2McastFilterPortInfoProfileName, swL2IGMPRouterPortStaticPortList=swL2IGMPRouterPortStaticPortList, swL2IGMPMulticastVlanReplacePriority=swL2IGMPMulticastVlanReplacePriority, swL2FloodMACMgmt=swL2FloodMACMgmt, PYSNMP_MODULE_ID=swL2MgmtMIB, swL2CosPortPRIEntry=swL2CosPortPRIEntry, swL2VlanAdvertiseState=swL2VlanAdvertiseState, swL2PortSecurityMode=swL2PortSecurityMode, swL2FloodMacDetectedMacAddress=swL2FloodMacDetectedMacAddress, swL2MgmtMIB=swL2MgmtMIB, swL2PortErrPortIndex=swL2PortErrPortIndex, swL2PortSecurityMaxLernAddr=swL2PortSecurityMaxLernAddr, swL2IGMPPortMap=swL2IGMPPortMap, swL2TrunkVLANEntry=swL2TrunkVLANEntry, swL2CosPriorityTable=swL2CosPriorityTable, swL2TrafficSegEntry=swL2TrafficSegEntry, swL2FloodMACAutoFDBCtrlEntry=swL2FloodMACAutoFDBCtrlEntry, swL2FloodMACLogState=swL2FloodMACLogState, swL2McastFilterProfileName=swL2McastFilterProfileName, swL2IGMPMulticastVlanSourcePort=swL2IGMPMulticastVlanSourcePort, swL2CosTosPRIEntry=swL2CosTosPRIEntry, swL2PortInfoEntry=swL2PortInfoEntry, swL2IGMPMulticastVlanRemoveAllMcastAddrListAction=swL2IGMPMulticastVlanRemoveAllMcastAddrListAction, swL2TrunkLACPPortEntry=swL2TrunkLACPPortEntry, swL2TrunkAlgorithm=swL2TrunkAlgorithm, swL2McastFilterPortEntry=swL2McastFilterPortEntry, swL2DevCtrlIpAutoConfig=swL2DevCtrlIpAutoConfig, swL2DhcpRelayMgmt=swL2DhcpRelayMgmt, swPortTrunkIndex=swPortTrunkIndex, swL2FloodMacDetectedTrap=swL2FloodMacDetectedTrap) mibBuilder.exportSymbols('DES3052P-L2MGMT-MIB', swL2IGMPMulticastVlanRemapPriority=swL2IGMPMulticastVlanRemapPriority, swL2DevCtrl=swL2DevCtrl, swL2DevCtrlAsymVlanState=swL2DevCtrlAsymVlanState, swL2IGMPQueryInfoEntry=swL2IGMPQueryInfoEntry, swL2McastFilterProfileIndex=swL2McastFilterProfileIndex, swIGMPSnoopingGroupExcludePortMap=swIGMPSnoopingGroupExcludePortMap, swL2PortInfoTable=swL2PortInfoTable, swL2IGMPMaxIpGroupNumPerVlan=swL2IGMPMaxIpGroupNumPerVlan, swL2LoopDetectPortIndex=swL2LoopDetectPortIndex, swIGMPSnoopingGroupTable=swIGMPSnoopingGroupTable, swL2CosPortPRIClass=swL2CosPortPRIClass, swL2TrunkLACPPortTable=swL2TrunkLACPPortTable, swL2IGMPFastLeave=swL2IGMPFastLeave, swL2VlanMgmt=swL2VlanMgmt, swL2QOSSchedulingTable=swL2QOSSchedulingTable, swL2IGMPInfoVid=swL2IGMPInfoVid, swL2QOS8021pUserPriorityEntry=swL2QOS8021pUserPriorityEntry, swL2McastFilterPortMaxGroupTable=swL2McastFilterPortMaxGroupTable, swIGMPSnoopingGroupGroupAddr=swIGMPSnoopingGroupGroupAddr, swL2IGMPMulticastVlanState=swL2IGMPMulticastVlanState, swL2PortCtrlFlowCtrlState=swL2PortCtrlFlowCtrlState, swL2IGMPSnoopingClearDynIpMultAction=swL2IGMPSnoopingClearDynIpMultAction, swL2FloodMACFDBTable=swL2FloodMACFDBTable, swL2IGMPMulticastVlanGroupEntry=swL2IGMPMulticastVlanGroupEntry, swL2PortCtrlMulticastfilter=swL2PortCtrlMulticastfilter, swL2PortErrPortState=swL2PortErrPortState, swL2LoopDetectInterval=swL2LoopDetectInterval, swL2McastFilterPortInfoEntry=swL2McastFilterPortInfoEntry, swPortTrunkFloodingPort=swPortTrunkFloodingPort, swL2CosMacBasePRITable=swL2CosMacBasePRITable, swL2McastFilterPortMaxGroupPortIndex=swL2McastFilterPortMaxGroupPortIndex, swPortTrunkMasterPort=swPortTrunkMasterPort, swL2IGMPMaxSupportedVlans=swL2IGMPMaxSupportedVlans, swL2LoopDetectTrapMode=swL2LoopDetectTrapMode, swL2IGMPMulticastVlanTagMemberPort=swL2IGMPMulticastVlanTagMemberPort, swL2IGMPDynIpMultMgmt=swL2IGMPDynIpMultMgmt, swL2TrunkLACPPortState=swL2TrunkLACPPortState, swL2FloodMACAutoFDBVID=swL2FloodMACAutoFDBVID, swL2FloodMACAutoFDBPort=swL2FloodMACAutoFDBPort, swL2QOSSchedulingMechanism=swL2QOSSchedulingMechanism, swL2PortCtrlMACNotifyState=swL2PortCtrlMACNotifyState, swL2TrunkLACPPortIndex=swL2TrunkLACPPortIndex, swL2LoopDetectCtrl=swL2LoopDetectCtrl, swL2IGMPRouteTimeout=swL2IGMPRouteTimeout, swL2IGMPMulticastVlanTable=swL2IGMPMulticastVlanTable, swL2FloodMACAutoFDBEntry=swL2FloodMACAutoFDBEntry, swL2IGMPMulticastVlanGroupFromIp=swL2IGMPMulticastVlanGroupFromIp, swL2CosDscpPRITable=swL2CosDscpPRITable, swL2IGMPRobustness=swL2IGMPRobustness, swL2PortSecurityControlEntry=swL2PortSecurityControlEntry, VlanId=VlanId, swIGMPSnoopingGroupIncludePortMap=swIGMPSnoopingGroupIncludePortMap, swL2PortCtrlPortMediumType=swL2PortCtrlPortMediumType, swL2PortCtrlDescription=swL2PortCtrlDescription, swL2PortErrPortReason=swL2PortErrPortReason, swL2QOSSchedulingEntry=swL2QOSSchedulingEntry, swPortTrunkTable=swPortTrunkTable, swL2LoopDetectPortMgmt=swL2LoopDetectPortMgmt, swL2MgmtMIBTraps=swL2MgmtMIBTraps, swL2IGMPMacAddr=swL2IGMPMacAddr, swL2VlanMultiplyAdvertisement=swL2VlanMultiplyAdvertisement, swL2CosPriorityPortPRI=swL2CosPriorityPortPRI, swL2IGMPSnoopingMulticastVlanState=swL2IGMPSnoopingMulticastVlanState, swIGMPSnoopingGroupUpTime=swIGMPSnoopingGroupUpTime, swL2PortCtrlTable=swL2PortCtrlTable, swL2DhcpRelayOption82State=swL2DhcpRelayOption82State, swL2QOSBandwidthTxRate=swL2QOSBandwidthTxRate, swL2McastFilterPortProfileID=swL2McastFilterPortProfileID, swPortTrunkMaxPortMembers=swPortTrunkMaxPortMembers, swL2McastFilterGroupList=swL2McastFilterGroupList, swL2PortInfoNwayStatus=swL2PortInfoNwayStatus, swL2PortErrDescription=swL2PortErrDescription, swL2LoopDetectAdminState=swL2LoopDetectAdminState, swL2DevCtrlTelnet=swL2DevCtrlTelnet, swL2VlanIndex=swL2VlanIndex, swIGMPSnoopingGroupVid=swIGMPSnoopingGroupVid, swL2TrunkVLANState=swL2TrunkVLANState, swL2DhcpRelayTimeThreshold=swL2DhcpRelayTimeThreshold, swL2CosPriorityIpPRI=swL2CosPriorityIpPRI, swL2McastFilterEntry=swL2McastFilterEntry, swL2PortCtrlNwayState=swL2PortCtrlNwayState, swL2IGMPDynIPMultMaxEntry=swL2IGMPDynIPMultMaxEntry, swL2IGMPMulticastVlanGroupStatus=swL2IGMPMulticastVlanGroupStatus, swL2LoopDetectMgmt=swL2LoopDetectMgmt)
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. def fedora_storage_config(release): return { "bucket": "antlir", "key": "s3", "kind": "s3", "prefix": "snapshots/fedora/{}".format(release), "region": "us-east-2", }
def fedora_storage_config(release): return {'bucket': 'antlir', 'key': 's3', 'kind': 's3', 'prefix': 'snapshots/fedora/{}'.format(release), 'region': 'us-east-2'}
#!/usr/bin/env python3 # Complete the superDigit function below. def superDigit(n, k): x = int(n) * k % 9 return x if x else 9 if __name__ == "__main__": nk = input().split() n = nk[0] k = int(nk[1]) result = superDigit(n, k) print(result)
def super_digit(n, k): x = int(n) * k % 9 return x if x else 9 if __name__ == '__main__': nk = input().split() n = nk[0] k = int(nk[1]) result = super_digit(n, k) print(result)
class Operation(object): def __eq__(self, other): return self.__class__ == other.__class__ and self.__dict__ == other.__dict__ class Update(Operation): def __init__(self, from_package, to_package): self.from_package = from_package self.to_package = to_package def __repr__(self): return "Update from %s to %s" % (self.from_package, self.to_package) class Install(Operation): def __init__(self, package): self.package = package def __repr__(self): return "Install %s" % (self.package,) class Remove(Operation): def __init__(self, package): self.package = package def __repr__(self): return "Remove %s" % (self.package,)
class Operation(object): def __eq__(self, other): return self.__class__ == other.__class__ and self.__dict__ == other.__dict__ class Update(Operation): def __init__(self, from_package, to_package): self.from_package = from_package self.to_package = to_package def __repr__(self): return 'Update from %s to %s' % (self.from_package, self.to_package) class Install(Operation): def __init__(self, package): self.package = package def __repr__(self): return 'Install %s' % (self.package,) class Remove(Operation): def __init__(self, package): self.package = package def __repr__(self): return 'Remove %s' % (self.package,)
contact_address = 'crowd.group.mturk@gmail.com' COGNITIVE_TEST_STROOP = 'stroop' COGNITIVE_TEST_FLANKER = 'flanker' COGNITIVE_TEST_TASK_SWITCHING = 'task-switching' COGNITIVE_TEST_POINTING = 'pointing' COGNITIVE_TEST_N_BACK = 'n-back' CROWD_TASK_SENTIMENT = 'sentiment' CROWD_TASK_TRANSCRIPTION = 'transcription' CROWD_TASK_PROOFREADING = 'proofreading' CROWD_TASK_CLASSIFICATION = 'classification' CROWD_TASK_COUNTING = 'counting' STUDY_CONDITION_BASELINE = '0' STUDY_CONDITION_COGNITIVE_ASSIGN = '1' STUDY_CONDITION_COGNITIVE_RECOMMEND = '2' STUDY_CONDITION_QASCA = '3' STUDY_CONDITION_CROWD_DQS = '4' NUMBER_OF_QUESTIONS_PER_ASSIGNMENT = 3 MAX_NUMBER_OF_COGNITIVE_TESTS_PER_ASSIGNMENT = 2 CROWD_TASK_LABELS = { CROWD_TASK_CLASSIFICATION: '1', CROWD_TASK_COUNTING: '2', CROWD_TASK_PROOFREADING: '3', CROWD_TASK_SENTIMENT: '4', CROWD_TASK_TRANSCRIPTION: '5' } CROWD_TASK_THRESHOLDS = { CROWD_TASK_CLASSIFICATION: 0.677, CROWD_TASK_COUNTING: 0.637, CROWD_TASK_PROOFREADING: 0.427, CROWD_TASK_SENTIMENT: 0.839, CROWD_TASK_TRANSCRIPTION: 0.772 } CROWD_TASKS = [CROWD_TASK_CLASSIFICATION, CROWD_TASK_COUNTING, CROWD_TASK_PROOFREADING, CROWD_TASK_SENTIMENT, CROWD_TASK_TRANSCRIPTION] COGNITIVE_TESTS = [COGNITIVE_TEST_STROOP, COGNITIVE_TEST_FLANKER, COGNITIVE_TEST_N_BACK, COGNITIVE_TEST_TASK_SWITCHING, COGNITIVE_TEST_POINTING]
contact_address = 'crowd.group.mturk@gmail.com' cognitive_test_stroop = 'stroop' cognitive_test_flanker = 'flanker' cognitive_test_task_switching = 'task-switching' cognitive_test_pointing = 'pointing' cognitive_test_n_back = 'n-back' crowd_task_sentiment = 'sentiment' crowd_task_transcription = 'transcription' crowd_task_proofreading = 'proofreading' crowd_task_classification = 'classification' crowd_task_counting = 'counting' study_condition_baseline = '0' study_condition_cognitive_assign = '1' study_condition_cognitive_recommend = '2' study_condition_qasca = '3' study_condition_crowd_dqs = '4' number_of_questions_per_assignment = 3 max_number_of_cognitive_tests_per_assignment = 2 crowd_task_labels = {CROWD_TASK_CLASSIFICATION: '1', CROWD_TASK_COUNTING: '2', CROWD_TASK_PROOFREADING: '3', CROWD_TASK_SENTIMENT: '4', CROWD_TASK_TRANSCRIPTION: '5'} crowd_task_thresholds = {CROWD_TASK_CLASSIFICATION: 0.677, CROWD_TASK_COUNTING: 0.637, CROWD_TASK_PROOFREADING: 0.427, CROWD_TASK_SENTIMENT: 0.839, CROWD_TASK_TRANSCRIPTION: 0.772} crowd_tasks = [CROWD_TASK_CLASSIFICATION, CROWD_TASK_COUNTING, CROWD_TASK_PROOFREADING, CROWD_TASK_SENTIMENT, CROWD_TASK_TRANSCRIPTION] cognitive_tests = [COGNITIVE_TEST_STROOP, COGNITIVE_TEST_FLANKER, COGNITIVE_TEST_N_BACK, COGNITIVE_TEST_TASK_SWITCHING, COGNITIVE_TEST_POINTING]
class Node: def __init__(self, key, next=None): self.key = key self.next = next class Queue: def __init__(self): self._head = self._tail = None self._count: int = 0 def enqueue(self, item): if self.is_empty(): self._head = self._tail = Node(item) else: self._tail.next = Node(item) self._tail = self._tail.next self._count += 1 def dequeue(self): if self.is_empty(): raise Exception("Queue is empty") ret_value: Node = self._head if self._head == self._tail: self._head = self._tail = None else: self._head = self._head.next self._count -= 1 return ret_value.key def size(self) -> int: return self._count def is_empty(self) -> bool: return self._head is None def hot_potato(namelist, number): q: Queue = Queue() for person in namelist: q.enqueue(person) while q.size() > 1: for i in range(number): q.enqueue(q.dequeue()) q.dequeue() return q.dequeue() print(hot_potato(["Bill", "David", "Susan", "Jane", "Kent", "Brad"], 7))
class Node: def __init__(self, key, next=None): self.key = key self.next = next class Queue: def __init__(self): self._head = self._tail = None self._count: int = 0 def enqueue(self, item): if self.is_empty(): self._head = self._tail = node(item) else: self._tail.next = node(item) self._tail = self._tail.next self._count += 1 def dequeue(self): if self.is_empty(): raise exception('Queue is empty') ret_value: Node = self._head if self._head == self._tail: self._head = self._tail = None else: self._head = self._head.next self._count -= 1 return ret_value.key def size(self) -> int: return self._count def is_empty(self) -> bool: return self._head is None def hot_potato(namelist, number): q: Queue = queue() for person in namelist: q.enqueue(person) while q.size() > 1: for i in range(number): q.enqueue(q.dequeue()) q.dequeue() return q.dequeue() print(hot_potato(['Bill', 'David', 'Susan', 'Jane', 'Kent', 'Brad'], 7))
# Approach 1: def Cloning_List(Given_List): Result = Given_List[:] return Result Given_List = [4, 5, 7, 8, 9, 6, 10, 15] print(Cloning_List(Given_List)) # Approach 2: def Cloning_List(Given_List): Result = [] Result.extend(Given_List) return Result Given_List = [4, 5, 7, 8, 9, 6, 10, 15] print(Cloning_List(Given_List)) # Approach 3: def Cloning_List(Given_List): Result = list(Given_List) return Result Given_List = [4, 5, 7, 8, 9, 6, 10, 15] print(Cloning_List(Given_List)) # Approach 4: def Cloning_List(Given_List): Result = Given_List return Result Given_List = [4, 5, 7, 8, 9, 6, 10, 15] print(Cloning_List(Given_List))
def cloning__list(Given_List): result = Given_List[:] return Result given__list = [4, 5, 7, 8, 9, 6, 10, 15] print(cloning__list(Given_List)) def cloning__list(Given_List): result = [] Result.extend(Given_List) return Result given__list = [4, 5, 7, 8, 9, 6, 10, 15] print(cloning__list(Given_List)) def cloning__list(Given_List): result = list(Given_List) return Result given__list = [4, 5, 7, 8, 9, 6, 10, 15] print(cloning__list(Given_List)) def cloning__list(Given_List): result = Given_List return Result given__list = [4, 5, 7, 8, 9, 6, 10, 15] print(cloning__list(Given_List))
# Description: List Comprehensions # Note # 1. List comprehensions provide a concise way to create lists. # 2. A list comprehension consists of brackets containing an expression followed by a for clause, then zero or more for # or if clauses. # Method 1: Create a list squares = [] for x in range(10): squares.append(x ** 2) print (squares) # Method 2: Use Lambda to create a list squares = map(lambda x: x ** 2, range(10)) print (squares) # Method 3: Use List Comprehension to create a list. # Equivalent to above methods but it's more concise and readable squares = [x ** 2 for x in range(10)] print (squares)
squares = [] for x in range(10): squares.append(x ** 2) print(squares) squares = map(lambda x: x ** 2, range(10)) print(squares) squares = [x ** 2 for x in range(10)] print(squares)
class StaticRoute: def __init__(self, interface_name, network_uuid, network_name, gateway_host): self.static_route = { "interfaceName": interface_name, "selectedNetworks": [{"type": "Network", "overridable": False, "id": network_uuid, "name": network_name}], "gateway": {"literal": {"type": "Host", "value": gateway_host}}, "metricValue": 1, "type": "IPv4StaticRoute", "isTunneled": False, } def to_json(self): return self.static_route
class Staticroute: def __init__(self, interface_name, network_uuid, network_name, gateway_host): self.static_route = {'interfaceName': interface_name, 'selectedNetworks': [{'type': 'Network', 'overridable': False, 'id': network_uuid, 'name': network_name}], 'gateway': {'literal': {'type': 'Host', 'value': gateway_host}}, 'metricValue': 1, 'type': 'IPv4StaticRoute', 'isTunneled': False} def to_json(self): return self.static_route
N = int(input()) arr = list(map(int, input().split())) tmp = [2] * len(arr) for i in range(2, len(tmp)): if not (arr[i - 2] <= arr[i - 1] and arr[i - 1] <= arr[i]) and not (arr[i - 2] >= arr[i - 1] and arr[i - 1] >= arr[i]): tmp[i] = tmp[i - 1] + 1 print(max(tmp))
n = int(input()) arr = list(map(int, input().split())) tmp = [2] * len(arr) for i in range(2, len(tmp)): if not (arr[i - 2] <= arr[i - 1] and arr[i - 1] <= arr[i]) and (not (arr[i - 2] >= arr[i - 1] and arr[i - 1] >= arr[i])): tmp[i] = tmp[i - 1] + 1 print(max(tmp))
#!/usr/bin/env python3 # https://codeforces.com/problemset/problem/1223/A t = int(input()) for _ in range(t): n = int(input()) print(n%2 if n>3 else 4-n)
t = int(input()) for _ in range(t): n = int(input()) print(n % 2 if n > 3 else 4 - n)
# encoding: utf-8 __doc__ = 'Data Importer' __version__ = '3.1.1' __author__ = 'Valder Gallo <valdergallo@gmail.com>'
__doc__ = 'Data Importer' __version__ = '3.1.1' __author__ = 'Valder Gallo <valdergallo@gmail.com>'
S = input() T = input() count = 0 if S[0] == T[0]: count += 1 if S[1] == T[1]: count += 1 if S[2] == T[2]: count += 1 print(count)
s = input() t = input() count = 0 if S[0] == T[0]: count += 1 if S[1] == T[1]: count += 1 if S[2] == T[2]: count += 1 print(count)
class Solution: # @return an integer def maxArea(self, height): left = 0 right = len(height) - 1 max = 0 while left < right: h = height[left] if height[right] < h: h = height[right] s = ( right - left ) * h if s > max: max = s if height[right] < height[left]: right -= 1 else: left += 1 return max
class Solution: def max_area(self, height): left = 0 right = len(height) - 1 max = 0 while left < right: h = height[left] if height[right] < h: h = height[right] s = (right - left) * h if s > max: max = s if height[right] < height[left]: right -= 1 else: left += 1 return max
_base_ = [ './_base_/default_runtime.py' ] # dataset settings dataset_type = 'Filelist' img_norm_cfg = dict( mean=[125.09, 102.01, 93.19], std=[71.35, 63.75, 61.46], to_rgb=True) train_pipeline = [ # dict(type='RandomCrop', size=32, padding=4), dict(type='LoadImageFromFile'), dict(type='Resize', size=(512, -1)), dict(type='RandomFlip', flip_prob=0.5, direction='horizontal'), dict(type='Normalize', **img_norm_cfg), dict(type='ImageToTensor', keys=['img']), dict(type='ToTensor', keys=['gt_label']), dict(type='Collect', keys=['img', 'gt_label']) ] test_pipeline = [ dict(type='LoadImageFromFile'), dict(type='Resize', size=(512, -1)), dict(type='Normalize', **img_norm_cfg), dict(type='ImageToTensor', keys=['img']), dict(type='Collect', keys=['img']), ] data = dict( samples_per_gpu=16, workers_per_gpu=2, train=dict( type=dataset_type, data_prefix='data/gender_1102', ann_file='data/gender_1102/train.txt', pipeline=train_pipeline, classes=['male', 'female']), val=dict( type=dataset_type, data_prefix='data/gender_1102', ann_file='data/gender_1102/val.txt', pipeline=test_pipeline, test_mode=True, classes=['male', 'female']), test=dict( type=dataset_type, # data_prefix='data/cifar10', pipeline=test_pipeline, test_mode=True, classes=['male', 'female']), ) # model settings model = dict( type='ImageClassifier', backbone=dict(type='MobileNetV3', arch='small'), neck=dict(type='GlobalAveragePooling'), head=dict( type='StackedLinearClsHead', num_classes=2, in_channels=576, mid_channels=[1280], act_cfg=dict(type='HSwish'), loss=dict(type='LabelSmoothLoss', label_smooth_val=0.1, loss_weight=1.0), # loss=dict(type='CrossEntropyLoss', loss_weight=1.0), topk=(1,) ), ) load_from = 'https://download.openmmlab.com/mmclassification/v0/mobilenet_v3/convert/mobilenet_v3_small-8427ecf0.pth' # optimizer optimizer = dict(type='SGD', lr=0.001, momentum=0.9, weight_decay=0.0001) optimizer_config = dict(grad_clip=None) lr_config = dict(policy='step', step=[15, 25]) runner = dict(type='EpochBasedRunner', max_epochs=30)
_base_ = ['./_base_/default_runtime.py'] dataset_type = 'Filelist' img_norm_cfg = dict(mean=[125.09, 102.01, 93.19], std=[71.35, 63.75, 61.46], to_rgb=True) train_pipeline = [dict(type='LoadImageFromFile'), dict(type='Resize', size=(512, -1)), dict(type='RandomFlip', flip_prob=0.5, direction='horizontal'), dict(type='Normalize', **img_norm_cfg), dict(type='ImageToTensor', keys=['img']), dict(type='ToTensor', keys=['gt_label']), dict(type='Collect', keys=['img', 'gt_label'])] test_pipeline = [dict(type='LoadImageFromFile'), dict(type='Resize', size=(512, -1)), dict(type='Normalize', **img_norm_cfg), dict(type='ImageToTensor', keys=['img']), dict(type='Collect', keys=['img'])] data = dict(samples_per_gpu=16, workers_per_gpu=2, train=dict(type=dataset_type, data_prefix='data/gender_1102', ann_file='data/gender_1102/train.txt', pipeline=train_pipeline, classes=['male', 'female']), val=dict(type=dataset_type, data_prefix='data/gender_1102', ann_file='data/gender_1102/val.txt', pipeline=test_pipeline, test_mode=True, classes=['male', 'female']), test=dict(type=dataset_type, pipeline=test_pipeline, test_mode=True, classes=['male', 'female'])) model = dict(type='ImageClassifier', backbone=dict(type='MobileNetV3', arch='small'), neck=dict(type='GlobalAveragePooling'), head=dict(type='StackedLinearClsHead', num_classes=2, in_channels=576, mid_channels=[1280], act_cfg=dict(type='HSwish'), loss=dict(type='LabelSmoothLoss', label_smooth_val=0.1, loss_weight=1.0), topk=(1,))) load_from = 'https://download.openmmlab.com/mmclassification/v0/mobilenet_v3/convert/mobilenet_v3_small-8427ecf0.pth' optimizer = dict(type='SGD', lr=0.001, momentum=0.9, weight_decay=0.0001) optimizer_config = dict(grad_clip=None) lr_config = dict(policy='step', step=[15, 25]) runner = dict(type='EpochBasedRunner', max_epochs=30)
def parse_dict(args, attr, default_ok=True): '''Parse an "nargs='*'" field from an ArgumentParser's parsed arguments Each argument value should be of the form <k>=<v>, and a dict() of those mappings will be returned At most one argument value can simply be of the form <v>, in which case it will be assigned to the None value in the returned dict ''' arg = getattr(args, attr) ret = {} if isinstance(arg, list): for entry in arg: pcs = entry.split('=', 1) if len(pcs) == 2: [ repository, arg ] = pcs ret[repository] = arg elif len(pcs) == 1 and default_ok: if None in ret: raise ValueError(f'Invalid --{attr}: multiple default values ({ret[None]}, {pcs[0]})') ret[None] = arg else: raise ValueError(f'Invalid --{attr}: {arg}') return ret
def parse_dict(args, attr, default_ok=True): """Parse an "nargs='*'" field from an ArgumentParser's parsed arguments Each argument value should be of the form <k>=<v>, and a dict() of those mappings will be returned At most one argument value can simply be of the form <v>, in which case it will be assigned to the None value in the returned dict """ arg = getattr(args, attr) ret = {} if isinstance(arg, list): for entry in arg: pcs = entry.split('=', 1) if len(pcs) == 2: [repository, arg] = pcs ret[repository] = arg elif len(pcs) == 1 and default_ok: if None in ret: raise value_error(f'Invalid --{attr}: multiple default values ({ret[None]}, {pcs[0]})') ret[None] = arg else: raise value_error(f'Invalid --{attr}: {arg}') return ret
# When we delete the max element and all elements to its right, # the new max element must be the max before the deleted element was # added to the array. for case in range(int(input())): N = int(input()) max_x, peaks = 0, 0 for x in map(int, input().split()): if x > max_x: max_x = x peaks += 1 print('BOB' if peaks % 2 else 'ANDY')
for case in range(int(input())): n = int(input()) (max_x, peaks) = (0, 0) for x in map(int, input().split()): if x > max_x: max_x = x peaks += 1 print('BOB' if peaks % 2 else 'ANDY')
def set_and_shift_values(big_muddy_io, values): for value in values: set_and_shift_single(big_muddy_io, value) def set_and_shift_single(big_muddy_io, value): big_muddy_io.set_data_pins(value) big_muddy_io.shifting.pulse()
def set_and_shift_values(big_muddy_io, values): for value in values: set_and_shift_single(big_muddy_io, value) def set_and_shift_single(big_muddy_io, value): big_muddy_io.set_data_pins(value) big_muddy_io.shifting.pulse()
sizes = [ 5000, 2353, 43234, 3634, 23421, 324, 23432, 2342, 2341 ] for i, value in enumerate(sizes): sizes[i] = value * 0.3 print(sizes)
sizes = [5000, 2353, 43234, 3634, 23421, 324, 23432, 2342, 2341] for (i, value) in enumerate(sizes): sizes[i] = value * 0.3 print(sizes)
def main(): start, end = map(int, input().split()) hours = (end - start + 24) % 24 if hours == 0: hours = 24 print('O JOGO DUROU {} HORA(S)'.format(hours)) if __name__ == '__main__': main()
def main(): (start, end) = map(int, input().split()) hours = (end - start + 24) % 24 if hours == 0: hours = 24 print('O JOGO DUROU {} HORA(S)'.format(hours)) if __name__ == '__main__': main()
#https://www.acmicpc.net/problem/4673 a = [0 for i in range(10000)] def d(n): total = n n10000 = n//10000 if n10000 != 0: n -= 10000*n10000 n1000 = n//1000 if n1000 != 0: n -= 1000*n1000 n100 = n//100 if n100 != 0: n -= 100*n100 n10 = n//10 if n10 != 0: n -= 10*n10 n1 = n sum_num = total + n10000 + n1000 + n100 + n10 + n1 if sum_num <= 10000: a[sum_num-1] = 1 for i in range(1, 10001): d(i) for idx, var in enumerate(a): if var == 0: print(idx+1)
a = [0 for i in range(10000)] def d(n): total = n n10000 = n // 10000 if n10000 != 0: n -= 10000 * n10000 n1000 = n // 1000 if n1000 != 0: n -= 1000 * n1000 n100 = n // 100 if n100 != 0: n -= 100 * n100 n10 = n // 10 if n10 != 0: n -= 10 * n10 n1 = n sum_num = total + n10000 + n1000 + n100 + n10 + n1 if sum_num <= 10000: a[sum_num - 1] = 1 for i in range(1, 10001): d(i) for (idx, var) in enumerate(a): if var == 0: print(idx + 1)
segundos = int(input("")) horas = segundos/3600 minutos = (segundos%3600)/60 segundos = (segundos%60) print("%d:%d:%d" %(horas,minutos,segundos))
segundos = int(input('')) horas = segundos / 3600 minutos = segundos % 3600 / 60 segundos = segundos % 60 print('%d:%d:%d' % (horas, minutos, segundos))
class Solution: def sortedSquares(self, nums: List[int]) -> List[int]: leftIndex = 0 rightIndex = len(nums) - 1 result = [0] * len(nums) resultIndex = len(nums) - 1 while leftIndex <= rightIndex: if nums[leftIndex] ** 2 > nums[rightIndex] ** 2: result[resultIndex] = nums[leftIndex] ** 2 leftIndex += 1 resultIndex -= 1 else: result[resultIndex] = nums[rightIndex] ** 2 rightIndex -= 1 resultIndex -= 1 return result
class Solution: def sorted_squares(self, nums: List[int]) -> List[int]: left_index = 0 right_index = len(nums) - 1 result = [0] * len(nums) result_index = len(nums) - 1 while leftIndex <= rightIndex: if nums[leftIndex] ** 2 > nums[rightIndex] ** 2: result[resultIndex] = nums[leftIndex] ** 2 left_index += 1 result_index -= 1 else: result[resultIndex] = nums[rightIndex] ** 2 right_index -= 1 result_index -= 1 return result
#!/usr/bin/python3 def new_in_list(my_list, idx, element): if idx < 0 or (len(my_list) - 1) < idx: return (my_list) new_list = my_list.copy() new_list[idx] = element return (new_list)
def new_in_list(my_list, idx, element): if idx < 0 or len(my_list) - 1 < idx: return my_list new_list = my_list.copy() new_list[idx] = element return new_list
class Exchange(object): def __init__(self, name, asset_types, country_code): ''' Parameters ---------- name : str asset_types : list country_code : str ''' self._name = name self._asset_types = asset_types self._country_code = country_code
class Exchange(object): def __init__(self, name, asset_types, country_code): """ Parameters ---------- name : str asset_types : list country_code : str """ self._name = name self._asset_types = asset_types self._country_code = country_code
def summa1(jarjend): tulemus = jarjend[0] if isinstance(jarjend[1], int): tulemus += jarjend[1] else: tulemus += summa1(jarjend[1]) return tulemus def summa2(jarjend): tulemus = jarjend[0] while isinstance(jarjend[1], list): jarjend = jarjend[1] tulemus += jarjend[0] tulemus += jarjend[1] return tulemus
def summa1(jarjend): tulemus = jarjend[0] if isinstance(jarjend[1], int): tulemus += jarjend[1] else: tulemus += summa1(jarjend[1]) return tulemus def summa2(jarjend): tulemus = jarjend[0] while isinstance(jarjend[1], list): jarjend = jarjend[1] tulemus += jarjend[0] tulemus += jarjend[1] return tulemus
line_input1, line_input2 = sorted(input().split(), key=lambda x: -len(x)) result = 0 for ch in range(len(line_input1)): if ch < len(line_input2): result += (ord(line_input1[ch]) * ord(line_input2[ch])) else: result += ord(line_input1[ch]) print(result)
(line_input1, line_input2) = sorted(input().split(), key=lambda x: -len(x)) result = 0 for ch in range(len(line_input1)): if ch < len(line_input2): result += ord(line_input1[ch]) * ord(line_input2[ch]) else: result += ord(line_input1[ch]) print(result)
pyliterals = { 'for': 'The Loop King', 'if': 'The Conditional Master', 'tuple': 'Too Stubborn to be changed', 'list': 'As free as water', 'dictionary': 'Emperor of Information Storage' } for literal in pyliterals: print(literal+": "+pyliterals[literal]+"\n")
pyliterals = {'for': 'The Loop King', 'if': 'The Conditional Master', 'tuple': 'Too Stubborn to be changed', 'list': 'As free as water', 'dictionary': 'Emperor of Information Storage'} for literal in pyliterals: print(literal + ': ' + pyliterals[literal] + '\n')
# -*- coding: utf-8 -*- # Copyright (c) 2019, Silvio Peroni <essepuntato@gmail.com> # # Permission to use, copy, modify, and/or distribute this software for any purpose # with or without fee is hereby granted, provided that the above copyright notice # and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND # FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, # OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, # DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS # ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS # SOFTWARE. def f(cur_digit): c_list = list() c_list.append("a") c_list.append("b") c_list.extend(c_list) c_list.extend(c_list) c_list.append("c") for i in range(cur_digit): if c_list[i] != "a" and "a" in c_list: c_list.remove("a") else: c_list.insert(i, "c") return c_list my_digit = int(input("Please provide an integer number from 0 to 9: ").strip()) print("Result:", f(my_digit))
def f(cur_digit): c_list = list() c_list.append('a') c_list.append('b') c_list.extend(c_list) c_list.extend(c_list) c_list.append('c') for i in range(cur_digit): if c_list[i] != 'a' and 'a' in c_list: c_list.remove('a') else: c_list.insert(i, 'c') return c_list my_digit = int(input('Please provide an integer number from 0 to 9: ').strip()) print('Result:', f(my_digit))
class Solution: # @return a list of lists of integers def generate(self, numRows): if numRows < 1: return [] result = [[1]] for i in range(numRows - 1): tri = [1] result.append(tri) preTri = result[len(result) - 2] for j in range(len(preTri) - 1): tri.append(preTri[j] + preTri[j + 1]) tri.append(1) return result
class Solution: def generate(self, numRows): if numRows < 1: return [] result = [[1]] for i in range(numRows - 1): tri = [1] result.append(tri) pre_tri = result[len(result) - 2] for j in range(len(preTri) - 1): tri.append(preTri[j] + preTri[j + 1]) tri.append(1) return result
# -*- coding: utf-8 -*- class GildedRose(object): MAX_QUALITY = 50 MIN_QUALITY = 0 def __init__(self, items): self.items = items def update_quality_brie(self, item): item.sell_in -= 1 item.quality = min(self.MAX_QUALITY, item.quality +1 ) def update_quality_backstage(self, item): item.sell_in -= 1 if item.sell_in >= 10: item.quality = min(self.MAX_QUALITY, item.quality +1 ) elif item.sell_in >= 5: item.quality = min(self.MAX_QUALITY, item.quality +2 ) elif item.sell_in >= 0: item.quality = min(self.MAX_QUALITY, item.quality +3 ) else: item.quality = self.MIN_QUALITY def update_quality_conjured(self, item): item.sell_in -= 1 if item.sell_in < 0: # passed sell-in degrades 4 point per day item.quality = max(self.MIN_QUALITY, item.quality -4 ) else: item.quality = max(self.MIN_QUALITY, item.quality -2 ) def update_quality_standard(self, item): item.sell_in -= 1 if item.sell_in < 0: item.quality = max(self.MIN_QUALITY, item.quality -2 ) else: item.quality = max(self.MIN_QUALITY, item.quality -1 ) def update_quality(self): for item in self.items: if item.name == item.BRIE: self.update_quality_brie(item) elif item.name == item.BACKSTAGE: self.update_quality_backstage(item) elif item.name == item.CONJURED: self.update_quality_conjured(item) elif item.name != item.SULFURAS: self.update_quality_standard(item) # for SULFURAS do nothing! class Item: SULFURAS = "Sulfuras, Hand of Ragnaros" BACKSTAGE = "Backstage passes to a TAFKAL80ETC concert" BRIE = "Aged Brie" CONJURED = "Conjured Mana Cake" def __init__(self, name, sell_in, quality): self.name = name self.sell_in = sell_in self.quality = quality def __repr__(self): return "%s, %s, %s" % (self.name, self.sell_in, self.quality)
class Gildedrose(object): max_quality = 50 min_quality = 0 def __init__(self, items): self.items = items def update_quality_brie(self, item): item.sell_in -= 1 item.quality = min(self.MAX_QUALITY, item.quality + 1) def update_quality_backstage(self, item): item.sell_in -= 1 if item.sell_in >= 10: item.quality = min(self.MAX_QUALITY, item.quality + 1) elif item.sell_in >= 5: item.quality = min(self.MAX_QUALITY, item.quality + 2) elif item.sell_in >= 0: item.quality = min(self.MAX_QUALITY, item.quality + 3) else: item.quality = self.MIN_QUALITY def update_quality_conjured(self, item): item.sell_in -= 1 if item.sell_in < 0: item.quality = max(self.MIN_QUALITY, item.quality - 4) else: item.quality = max(self.MIN_QUALITY, item.quality - 2) def update_quality_standard(self, item): item.sell_in -= 1 if item.sell_in < 0: item.quality = max(self.MIN_QUALITY, item.quality - 2) else: item.quality = max(self.MIN_QUALITY, item.quality - 1) def update_quality(self): for item in self.items: if item.name == item.BRIE: self.update_quality_brie(item) elif item.name == item.BACKSTAGE: self.update_quality_backstage(item) elif item.name == item.CONJURED: self.update_quality_conjured(item) elif item.name != item.SULFURAS: self.update_quality_standard(item) class Item: sulfuras = 'Sulfuras, Hand of Ragnaros' backstage = 'Backstage passes to a TAFKAL80ETC concert' brie = 'Aged Brie' conjured = 'Conjured Mana Cake' def __init__(self, name, sell_in, quality): self.name = name self.sell_in = sell_in self.quality = quality def __repr__(self): return '%s, %s, %s' % (self.name, self.sell_in, self.quality)
class GenericRecordError(Exception): pass class ValidationError(GenericRecordError): pass class TableNotSupported(GenericRecordError): pass class DuplicateSignature(GenericRecordError): pass class GenericVBRError(Exception): pass class ConnectionFailedError(GenericVBRError): pass class RecordNotFoundError(GenericVBRError): pass class NotUniqueError(GenericVBRError): pass
class Genericrecorderror(Exception): pass class Validationerror(GenericRecordError): pass class Tablenotsupported(GenericRecordError): pass class Duplicatesignature(GenericRecordError): pass class Genericvbrerror(Exception): pass class Connectionfailederror(GenericVBRError): pass class Recordnotfounderror(GenericVBRError): pass class Notuniqueerror(GenericVBRError): pass
class DBSPEC(object): TB_CHECKIN = "bk_checkin" TB_USER = "bk_user" TB_FRIENDSHIP = "bk_friendship"
class Dbspec(object): tb_checkin = 'bk_checkin' tb_user = 'bk_user' tb_friendship = 'bk_friendship'
# Copyright (c) 2001-2013, Scott D. Peckham # #----------------------------------------------------------------------- # # unit_test() # #----------------------------------------------------------------------- def unit_test( n_steps=10 ): c = erosion_component() c.CCA = False c.DEBUG = False c.SILENT = True # (now the default in CSDMS_base.py) ## c.DEBUG = True ## c.SILENT = False ## c.REPORT = True #------------------------------------------------- # NOTE: The Treynor_Iowa DEM has no depressions! #------------------------------------------------- ## directory = tf_utils.TF_Test_Directory() ## site_prefix = tf_utils.TF_Test_Site_Prefix() ## case_prefix = tf_utils.TF_Test_Case_Prefix() #----------------------------------- # Use these when running on Mac. #----------------------------------- ## cfg_directory = '/Applications/Erode/Data/Test_50x50/' ## cfg_prefix = 'Test' ## cfg_directory = '/Applications/Erode/Data/Test_100x100/' ## cfg_prefix = 'Test' ## cfg_directory = '/Applications/Erode/Data/Test_200x200/' ## cfg_prefix = 'Test' ## cfg_directory = '/Applications/Erode/Data/Test_400x400/' ## cfg_prefix = 'Test' # These next few are obsolete now. ## cfg_directory = '/Applications/Erode/Data/Test2/' ## ## cfg_directory = '/data/sims/erode/3.1/Test2/' ## cfg_prefix = 'Test2' ## cfg_directory = '/Applications/Erode/Data/Test4/' # (80x80, 11/8/10) ## cfg_prefix = 'Test4' ## cfg_directory = '/Applications/Erode/Data/Test2B/' # (50x50, 11/8/10) ## cfg_prefix = 'Test2B' ## cfg_directory = '/Applications/Erode/Data/Test3/' # (20x20) ## ## cfg_directory = '/data/sims/erode/3.1/Test3/' ## cfg_prefix = 'Test3' #------------------------------------------------ # Use this when running on beach, but copy into # a separate sub directory when finished. #------------------------------------------------ cfg_directory = '/home/beach/faculty/peckhams/CMT_Output/Erode_Global/' cfg_prefix = 'Test' ## cfg_directory = '/home/beach/faculty/peckhams/ERODE3/Tests/Test_100x100/' # (9/1/11) ## cfg_prefix = 'Test' ## cfg_directory = '/home/beach/faculty/peckhams/ERODE3/Tests/Test_200x200/' # (10/4/11) ## cfg_prefix = 'Test' ## cfg_directory = '/home/beach/faculty/peckhams/ERODE3/Test_400x400/' # (10/4/11) ## cfg_prefix = 'Test' #-------------------------------------------------------- # Note: CSDMS_base.run_model() changes to cfg_directory #-------------------------------------------------------- c.run_model( cfg_directory=cfg_directory, cfg_prefix=cfg_prefix, n_steps=n_steps ) #------------------------------------------- # Call initialize() and call update() once #------------------------------------------- ## print 'STATUS =', c.get_status() ## c.initialize(cfg_prefix=cfg_prefix, mode="driver") ## print 'STATUS =', c.get_status() ## time = float64(0) ## c.update(time) ## print 'STATUS =', c.get_status() # unit_test() #-----------------------------------------------------------------------
def unit_test(n_steps=10): c = erosion_component() c.CCA = False c.DEBUG = False c.SILENT = True cfg_directory = '/home/beach/faculty/peckhams/CMT_Output/Erode_Global/' cfg_prefix = 'Test' c.run_model(cfg_directory=cfg_directory, cfg_prefix=cfg_prefix, n_steps=n_steps)
def all_clans(): return { 'Legendary Monks':'#PCCUPG9R', 'SN JAIN':'#2029V92QV', 'Brute Force':'#22PQL2L0R', 'PBfPN':'#22QL8YUC8', 'Wookies':'#298092P99', 'Mini Matter':'#2PJYCQYV9', 'Endor':'#2YLL8UVPY', 'Mos Eisley':'#2YUVPQQCU', 'Killer_Black_Wf':'#8VQYR2LR', 'Golden Clan':'#C2QPR82Q', 'Optimus Prime*':'#JR8CQRR', 'PETARUNG SEJATI':'#PCP02V8C', 'Dark Matter':'#Q2VYY8C8', 'barudak sunda':'#RRJ02JGC', 'Sheer Force':'#VUCVG2J0', 'UnitedAsOne':'#YVPVGPP2', 'ReqReceiveN WAR':'#J2PVJ2GU', 'ONE KINGS':'#P9C8YJRQ', 'Mini Matter':'#2PJYCQYV9', }
def all_clans(): return {'Legendary Monks': '#PCCUPG9R', 'SN JAIN': '#2029V92QV', 'Brute Force': '#22PQL2L0R', 'PBfPN': '#22QL8YUC8', 'Wookies': '#298092P99', 'Mini Matter': '#2PJYCQYV9', 'Endor': '#2YLL8UVPY', 'Mos Eisley': '#2YUVPQQCU', 'Killer_Black_Wf': '#8VQYR2LR', 'Golden Clan': '#C2QPR82Q', 'Optimus Prime*': '#JR8CQRR', 'PETARUNG SEJATI': '#PCP02V8C', 'Dark Matter': '#Q2VYY8C8', 'barudak sunda': '#RRJ02JGC', 'Sheer Force': '#VUCVG2J0', 'UnitedAsOne': '#YVPVGPP2', 'ReqReceiveN WAR': '#J2PVJ2GU', 'ONE KINGS': '#P9C8YJRQ', 'Mini Matter': '#2PJYCQYV9'}