content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
# Heaviside step function x = 3 theta = None if x < 0: theta = 0. elif x == 0: theta = 0.5 else: theta = 1. print("Theta(" + str(x) + ") = " + str(theta))
x = 3 theta = None if x < 0: theta = 0.0 elif x == 0: theta = 0.5 else: theta = 1.0 print('Theta(' + str(x) + ') = ' + str(theta))
# # PySNMP MIB module COLUBRIS-DEVICE-WDS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/COLUBRIS-DEVICE-WDS-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:25:51 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) # OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ConstraintsUnion, ValueSizeConstraint, ValueRangeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsUnion", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsIntersection") coDevDisIndex, = mibBuilder.importSymbols("COLUBRIS-DEVICE-MIB", "coDevDisIndex") colubrisMgmtV2, = mibBuilder.importSymbols("COLUBRIS-SMI", "colubrisMgmtV2") ModuleCompliance, NotificationGroup, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup", "ObjectGroup") ObjectIdentity, Bits, Counter64, NotificationType, Gauge32, ModuleIdentity, TimeTicks, Unsigned32, iso, MibScalar, MibTable, MibTableRow, MibTableColumn, IpAddress, Integer32, MibIdentifier, Counter32 = mibBuilder.importSymbols("SNMPv2-SMI", "ObjectIdentity", "Bits", "Counter64", "NotificationType", "Gauge32", "ModuleIdentity", "TimeTicks", "Unsigned32", "iso", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "IpAddress", "Integer32", "MibIdentifier", "Counter32") TruthValue, MacAddress, DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "TruthValue", "MacAddress", "DisplayString", "TextualConvention") colubrisDeviceWdsMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 8744, 5, 34)) if mibBuilder.loadTexts: colubrisDeviceWdsMIB.setLastUpdated('200908200000Z') if mibBuilder.loadTexts: colubrisDeviceWdsMIB.setOrganization('Colubris Networks, Inc.') if mibBuilder.loadTexts: colubrisDeviceWdsMIB.setContactInfo('Colubris Networks Postal: 200 West Street Ste 300 Waltham, Massachusetts 02451-1121 UNITED STATES Phone: +1 781 684 0001 Fax: +1 781 684 0009 E-mail: cn-snmp@colubris.com') if mibBuilder.loadTexts: colubrisDeviceWdsMIB.setDescription('Colubris Device WDS MIB.') colubrisDeviceWdsMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1)) coDeviceWDSInfoGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 2)) coDeviceWDSRadioGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 3)) coDeviceWDSGroupGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 4)) coDeviceWDSLinkGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5)) coDeviceWDSNetworkScanGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6)) coDeviceWdsInfoTable = MibTable((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 2, 1), ) if mibBuilder.loadTexts: coDeviceWdsInfoTable.setStatus('current') if mibBuilder.loadTexts: coDeviceWdsInfoTable.setDescription('Device WDS information attributes.') coDeviceWdsInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 2, 1, 1), ).setIndexNames((0, "COLUBRIS-DEVICE-MIB", "coDevDisIndex")) if mibBuilder.loadTexts: coDeviceWdsInfoEntry.setStatus('current') if mibBuilder.loadTexts: coDeviceWdsInfoEntry.setDescription('An entry in the coDeviceWdsInfoTable. coDevDisIndex - Uniquely identifies a device on the controller.') coDevWDSInfoMaxNumberOfGroup = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 2, 1, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 6))).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSInfoMaxNumberOfGroup.setStatus('current') if mibBuilder.loadTexts: coDevWDSInfoMaxNumberOfGroup.setDescription('Maximum number of local mesh profiles supported by the device.') coDeviceWDSRadioTable = MibTable((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 3, 1), ) if mibBuilder.loadTexts: coDeviceWDSRadioTable.setStatus('current') if mibBuilder.loadTexts: coDeviceWDSRadioTable.setDescription('Conceptual table for the local mesh radio parameters.') coDeviceWDSRadioEntry = MibTableRow((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 3, 1, 1), ).setIndexNames((0, "COLUBRIS-DEVICE-MIB", "coDevDisIndex"), (0, "COLUBRIS-DEVICE-WDS-MIB", "coDevWDSRadioIndex")) if mibBuilder.loadTexts: coDeviceWDSRadioEntry.setStatus('current') if mibBuilder.loadTexts: coDeviceWDSRadioEntry.setDescription('An Entry (conceptual row) in the local mesh radio Table. coDevDisIndex - Uniquely identifies a device on the controller. coDevWDSRadioIndex - Radio number where the local mesh radio parameters are applied.') coDevWDSRadioIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 3, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 3))) if mibBuilder.loadTexts: coDevWDSRadioIndex.setStatus('current') if mibBuilder.loadTexts: coDevWDSRadioIndex.setDescription('Radio number.') coDevWDSRadioAckDistance = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 3, 1, 1, 2), Unsigned32()).setUnits('km').setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSRadioAckDistance.setStatus('current') if mibBuilder.loadTexts: coDevWDSRadioAckDistance.setDescription('Maximum distance between the device and the remote peers.') coDevWDSRadioQoS = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 3, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("disabled", 1), ("vlan", 2), ("veryHigh", 3), ("high", 4), ("normal", 5), ("low", 6), ("diffSrv", 7), ("tos", 8), ("ipQos", 9)))).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSRadioQoS.setStatus('current') if mibBuilder.loadTexts: coDevWDSRadioQoS.setDescription('QoS priority mechanism used to maps the traffic to one of the four WMM traffic queues.') coDeviceWDSGroupTable = MibTable((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 4, 1), ) if mibBuilder.loadTexts: coDeviceWDSGroupTable.setStatus('current') if mibBuilder.loadTexts: coDeviceWDSGroupTable.setDescription('Conceptual table for the local mesh profiles. This table contains configuration information for the six local mesh profiles.') coDeviceWDSGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 4, 1, 1), ).setIndexNames((0, "COLUBRIS-DEVICE-MIB", "coDevDisIndex"), (0, "COLUBRIS-DEVICE-WDS-MIB", "coDevWDSGroupIndex")) if mibBuilder.loadTexts: coDeviceWDSGroupEntry.setStatus('current') if mibBuilder.loadTexts: coDeviceWDSGroupEntry.setDescription('An Entry (conceptual row) in the local mesh profiles table. coDevDisIndex - Uniquely identifies a device on the controller. coDevWDSGroupIndex - Uniquely identify a local mesh profile inside the Device local mesh table.') coDevWDSGroupIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 4, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 9))) if mibBuilder.loadTexts: coDevWDSGroupIndex.setStatus('current') if mibBuilder.loadTexts: coDevWDSGroupIndex.setDescription('The auxiliary variable used to identify instances of local mesh profiles.') coDevWDSGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 4, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSGroupName.setStatus('current') if mibBuilder.loadTexts: coDevWDSGroupName.setDescription('Friendly name of the local mesh profile.') coDevWDSGroupState = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 4, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("discovery", 1), ("negotiation", 2), ("acquisition", 3), ("locked", 4), ("shutdown", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSGroupState.setStatus('current') if mibBuilder.loadTexts: coDevWDSGroupState.setDescription('Specifies if the local mesh profileis active on the radios.') coDevWDSGroupSecurity = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 4, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("wep", 2), ("tkip", 3), ("aes", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSGroupSecurity.setStatus('current') if mibBuilder.loadTexts: coDevWDSGroupSecurity.setDescription('Specifies the encryption used by the local mesh profile.') coDevWDSGroupDynamicMode = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 4, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("master", 1), ("slave", 2), ("alternateMaster", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSGroupDynamicMode.setStatus('current') if mibBuilder.loadTexts: coDevWDSGroupDynamicMode.setDescription('Specifies the mode of the dynamic local mesh profile.') coDevWDSGroupDynamicGroupId = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 4, 1, 1, 6), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSGroupDynamicGroupId.setStatus('current') if mibBuilder.loadTexts: coDevWDSGroupDynamicGroupId.setDescription('Specifies the mesh ID identifier of the dynamic local mesh profile.') coDeviceWDSLinkStatusTable = MibTable((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1), ) if mibBuilder.loadTexts: coDeviceWDSLinkStatusTable.setStatus('current') if mibBuilder.loadTexts: coDeviceWDSLinkStatusTable.setDescription('Conceptual table for the status of local mesh links.') coDeviceWDSLinkStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1), ).setIndexNames((0, "COLUBRIS-DEVICE-MIB", "coDevDisIndex"), (0, "COLUBRIS-DEVICE-WDS-MIB", "coDevWDSGroupIndex"), (0, "COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStaIndex")) if mibBuilder.loadTexts: coDeviceWDSLinkStatusEntry.setStatus('current') if mibBuilder.loadTexts: coDeviceWDSLinkStatusEntry.setDescription('An Entry (conceptual row) in the WDS Link status Table. coDevDisIndex - Uniquely identifies a device on the controller. coDevWDSGroupIndex - Uniquely identify a local mesh profile inside the Device local mesh profile table. coDevWDSLinkStaIndex - Uniquely identify a local mesh link inside a Device local mesh profile.') coDevWDSLinkStaIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))) if mibBuilder.loadTexts: coDevWDSLinkStaIndex.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStaIndex.setDescription('The auxiliary variable used to identify instances of local mesh links.') coDevWDSLinkStaState = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("down", 1), ("acquiring", 2), ("inactive", 3), ("active", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStaState.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStaState.setDescription('Specifies the state of the local mesh link.') coDevWDSLinkStaRadio = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 3))).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStaRadio.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStaRadio.setDescription('Radio number where the local mesh peer was detected.') coDevWDSLinkStaPeerMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 4), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStaPeerMacAddress.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStaPeerMacAddress.setDescription('MAC address of the local mesh peer.') coDevWDSLinkStaMaster = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 5), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStaMaster.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStaMaster.setDescription('Determine if this link is a link to a master. Providing upstream network access.') coDevWDSLinkStaAuthorized = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 6), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStaAuthorized.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStaAuthorized.setDescription('Encryption, if any, can proceed.') coDevWDSLinkStaEncryption = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("wep", 2), ("tkip", 3), ("aes", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStaEncryption.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStaEncryption.setDescription('Specifies the encryption used by the local mesh link.') coDevWDSLinkStaIdleTime = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 8), Unsigned32()).setUnits('seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStaIdleTime.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStaIdleTime.setDescription('Inactivity time.') coDevWDSLinkStaSNR = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 92))).setUnits('dBm').setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStaSNR.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStaSNR.setDescription('Signal noise ratio of the local mesh peer.') coDevWDSLinkStaTxRate = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 10), Unsigned32()).setUnits('500Kb/s').setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStaTxRate.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStaTxRate.setDescription('Current transmit rate of the local mesh peer.') coDevWDSLinkStaRxRate = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 11), Unsigned32()).setUnits('500Kb/s').setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStaRxRate.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStaRxRate.setDescription('Current receive rate of the local mesh peer.') coDevWDSLinkStaIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStaIfIndex.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStaIfIndex.setDescription('coDevIfStaIfIndex of the associated interface in the device coDeviceIfStatusTable.') coDevWDSLinkStaHT = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 13), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStaHT.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStaHT.setDescription('Determine if this link is using HT rates.') coDevWDSLinkStaTxMCS = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 14), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStaTxMCS.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStaTxMCS.setDescription('Current transmit MCS of the local mesh peer.') coDevWDSLinkStaRxMCS = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 15), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStaRxMCS.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStaRxMCS.setDescription('Current receive MCS of the local mesh peer.') coDevWDSLinkStaSignal = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 16), Integer32()).setUnits('dBm').setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStaSignal.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStaSignal.setDescription('Strength of the wireless signal.') coDevWDSLinkStaNoise = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 17), Integer32()).setUnits('dBm').setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStaNoise.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStaNoise.setDescription('Level of local background noise.') coDeviceWDSLinkStatsRatesTable = MibTable((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2), ) if mibBuilder.loadTexts: coDeviceWDSLinkStatsRatesTable.setStatus('current') if mibBuilder.loadTexts: coDeviceWDSLinkStatsRatesTable.setDescription('Conceptual table for the statistics of local mesh links.') coDeviceWDSLinkStatsRatesEntry = MibTableRow((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1), ) coDeviceWDSLinkStatusEntry.registerAugmentions(("COLUBRIS-DEVICE-WDS-MIB", "coDeviceWDSLinkStatsRatesEntry")) coDeviceWDSLinkStatsRatesEntry.setIndexNames(*coDeviceWDSLinkStatusEntry.getIndexNames()) if mibBuilder.loadTexts: coDeviceWDSLinkStatsRatesEntry.setStatus('current') if mibBuilder.loadTexts: coDeviceWDSLinkStatsRatesEntry.setDescription('An Entry (conceptual row) in the local mesh Link Statistics Table. coDevDisIndex - Uniquely identifies a device on the controller. coDevWDSGroupIndex - Uniquely identify a local mesh profile inside the Device local mesh profile table. coDevWDSLinkIndex - Uniquely identify a local mesh link inside a Device local mesh profile.') coDevWDSLinkStsPktsTxRate1 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate1.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate1.setDescription('Number of frames transmitted at 1 Mbps.') coDevWDSLinkStsPktsTxRate2 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate2.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate2.setDescription('Number of frames transmitted at 2 Mbps.') coDevWDSLinkStsPktsTxRate5dot5 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate5dot5.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate5dot5.setDescription('Number of frames transmitted at 5.5 Mbps.') coDevWDSLinkStsPktsTxRate11 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate11.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate11.setDescription('Number of frames transmitted at 11 Mbps.') coDevWDSLinkStsPktsTxRate6 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate6.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate6.setDescription('Number of frames transmitted at 6 Mbps.') coDevWDSLinkStsPktsTxRate9 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate9.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate9.setDescription('Number of frames transmitted at 9 Mbps.') coDevWDSLinkStsPktsTxRate12 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate12.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate12.setDescription('Number of frames transmitted at 12 Mbps.') coDevWDSLinkStsPktsTxRate18 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate18.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate18.setDescription('Number of frames transmitted at 18 Mbps.') coDevWDSLinkStsPktsTxRate24 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate24.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate24.setDescription('Number of frames transmitted at 24 Mbps.') coDevWDSLinkStsPktsTxRate36 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate36.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate36.setDescription('Number of frames transmitted at 36 Mbps.') coDevWDSLinkStsPktsTxRate48 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate48.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate48.setDescription('Number of frames transmitted at 48 Mbps.') coDevWDSLinkStsPktsTxRate54 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 12), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate54.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate54.setDescription('Number of frames transmitted at 54 Mbps.') coDevWDSLinkStsPktsRxRate1 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 13), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate1.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate1.setDescription('Number of frames received at 1 Mbps.') coDevWDSLinkStsPktsRxRate2 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 14), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate2.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate2.setDescription('Number of frames received at 2 Mbps.') coDevWDSLinkStsPktsRxRate5dot5 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate5dot5.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate5dot5.setDescription('Number of frames received at 5.5 Mbps.') coDevWDSLinkStsPktsRxRate11 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate11.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate11.setDescription('Number of frames received at 11 Mbps.') coDevWDSLinkStsPktsRxRate6 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate6.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate6.setDescription('Number of frames received at 6 Mbps.') coDevWDSLinkStsPktsRxRate9 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 18), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate9.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate9.setDescription('Number of frames received at 9 Mbps.') coDevWDSLinkStsPktsRxRate12 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 19), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate12.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate12.setDescription('Number of frames received at 12 Mbps.') coDevWDSLinkStsPktsRxRate18 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 20), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate18.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate18.setDescription('Number of frames received at 18 Mbps.') coDevWDSLinkStsPktsRxRate24 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 21), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate24.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate24.setDescription('Number of frames received at 24 Mbps.') coDevWDSLinkStsPktsRxRate36 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 22), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate36.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate36.setDescription('Number of frames received at 36 Mbps.') coDevWDSLinkStsPktsRxRate48 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 23), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate48.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate48.setDescription('Number of frames received at 48 Mbps.') coDevWDSLinkStsPktsRxRate54 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 24), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate54.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate54.setDescription('Number of frames received at 54 Mbps.') coDeviceWDSLinkStatsHTRatesTable = MibTable((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3), ) if mibBuilder.loadTexts: coDeviceWDSLinkStatsHTRatesTable.setStatus('current') if mibBuilder.loadTexts: coDeviceWDSLinkStatsHTRatesTable.setDescription('Conceptual table for the statistics of WDS HT links.') coDeviceWDSLinkStatsHTRatesEntry = MibTableRow((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1), ) coDeviceWDSLinkStatusEntry.registerAugmentions(("COLUBRIS-DEVICE-WDS-MIB", "coDeviceWDSLinkStatsHTRatesEntry")) coDeviceWDSLinkStatsHTRatesEntry.setIndexNames(*coDeviceWDSLinkStatusEntry.getIndexNames()) if mibBuilder.loadTexts: coDeviceWDSLinkStatsHTRatesEntry.setStatus('current') if mibBuilder.loadTexts: coDeviceWDSLinkStatsHTRatesEntry.setDescription('An Entry (conceptual row) in the WDS HT Link Statistics Table. coDevDisIndex - Uniquely identifies a device on the MultiService Controller. coDevWDSGroupIndex - Uniquely identify a local mesh profile inside the Device local mesh profiletable. coDevWDSLinkIndex - Uniquely identify a local mesh link inside a Device local mesh profile.') coDevWDSLinkStsPktsTxMCS0 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS0.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS0.setDescription('Number of frames transmitted at MCS0 since the link was established.') coDevWDSLinkStsPktsTxMCS1 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS1.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS1.setDescription('Number of frames transmitted at MCS1 since the link was established.') coDevWDSLinkStsPktsTxMCS2 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS2.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS2.setDescription('Number of frames transmitted at MCS2 since the link was established.') coDevWDSLinkStsPktsTxMCS3 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS3.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS3.setDescription('Number of frames transmitted at MCS3 since the link was established.') coDevWDSLinkStsPktsTxMCS4 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS4.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS4.setDescription('Number of frames transmitted at MCS4 since the link was established.') coDevWDSLinkStsPktsTxMCS5 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS5.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS5.setDescription('Number of frames transmitted at MCS5 since the link was established.') coDevWDSLinkStsPktsTxMCS6 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS6.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS6.setDescription('Number of frames transmitted at MCS6 since the link was established.') coDevWDSLinkStsPktsTxMCS7 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS7.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS7.setDescription('Number of frames transmitted at MCS7 since the link was established.') coDevWDSLinkStsPktsTxMCS8 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS8.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS8.setDescription('Number of frames transmitted at MCS8 since the link was established.') coDevWDSLinkStsPktsTxMCS9 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS9.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS9.setDescription('Number of frames transmitted at MCS9 since the link was established.') coDevWDSLinkStsPktsTxMCS10 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS10.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS10.setDescription('Number of frames transmitted at MCS10 since the link was established.') coDevWDSLinkStsPktsTxMCS11 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 12), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS11.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS11.setDescription('Number of frames transmitted at MCS11 since the link was established.') coDevWDSLinkStsPktsTxMCS12 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 13), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS12.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS12.setDescription('Number of frames transmitted at MCS12 since the link was established.') coDevWDSLinkStsPktsTxMCS13 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 14), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS13.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS13.setDescription('Number of frames transmitted at MCS13 since the link was established.') coDevWDSLinkStsPktsTxMCS14 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS14.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS14.setDescription('Number of frames transmitted at MCS14 since the link was established.') coDevWDSLinkStsPktsTxMCS15 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS15.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS15.setDescription('Number of frames transmitted at MCS15 since the link was established.') coDevWDSLinkStsPktsRxMCS0 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS0.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS0.setDescription('Number of frames received at MCS0 since the link was established.') coDevWDSLinkStsPktsRxMCS1 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 18), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS1.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS1.setDescription('Number of frames received at MCS1 since the link was established.') coDevWDSLinkStsPktsRxMCS2 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 19), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS2.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS2.setDescription('Number of frames received at MCS2 since the link was established.') coDevWDSLinkStsPktsRxMCS3 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 20), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS3.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS3.setDescription('Number of frames received at MCS3 since the link was established.') coDevWDSLinkStsPktsRxMCS4 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 21), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS4.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS4.setDescription('Number of frames received at MCS4 since the link was established.') coDevWDSLinkStsPktsRxMCS5 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 22), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS5.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS5.setDescription('Number of frames received at MCS5 since the link was established.') coDevWDSLinkStsPktsRxMCS6 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 23), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS6.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS6.setDescription('Number of frames received at MCS6 since the link was established.') coDevWDSLinkStsPktsRxMCS7 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 24), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS7.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS7.setDescription('Number of frames received at MCS7 since the link was established.') coDevWDSLinkStsPktsRxMCS8 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 25), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS8.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS8.setDescription('Number of frames received at MCS8 since the link was established.') coDevWDSLinkStsPktsRxMCS9 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 26), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS9.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS9.setDescription('Number of frames received at MCS9 since the link was established.') coDevWDSLinkStsPktsRxMCS10 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 27), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS10.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS10.setDescription('Number of frames received at MCS10 since the link was established.') coDevWDSLinkStsPktsRxMCS11 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 28), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS11.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS11.setDescription('Number of frames received at MCS11 since the link was established.') coDevWDSLinkStsPktsRxMCS12 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 29), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS12.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS12.setDescription('Number of frames received at MCS12 since the link was established.') coDevWDSLinkStsPktsRxMCS13 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 30), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS13.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS13.setDescription('Number of frames received at MCS13 since the link was established.') coDevWDSLinkStsPktsRxMCS14 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 31), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS14.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS14.setDescription('Number of frames received at MCS14 since the link was established.') coDevWDSLinkStsPktsRxMCS15 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 32), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS15.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS15.setDescription('Number of frames received at MCS15 since the link was established.') coDeviceWDSNetworkScanTable = MibTable((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1), ) if mibBuilder.loadTexts: coDeviceWDSNetworkScanTable.setStatus('current') if mibBuilder.loadTexts: coDeviceWDSNetworkScanTable.setDescription('Conceptual table for the local mesh network scans.') coDeviceWDSNetworkScanEntry = MibTableRow((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1, 1), ).setIndexNames((0, "COLUBRIS-DEVICE-MIB", "coDevDisIndex"), (0, "COLUBRIS-DEVICE-WDS-MIB", "coDevWDSScanRadioIndex"), (0, "COLUBRIS-DEVICE-WDS-MIB", "coDevWDSScanPeerIndex")) if mibBuilder.loadTexts: coDeviceWDSNetworkScanEntry.setStatus('current') if mibBuilder.loadTexts: coDeviceWDSNetworkScanEntry.setDescription('An Entry (conceptual row) in the WDS Network Scan Table. coDevDisIndex - Uniquely identifies a device on the controller. coDevWDSScanRadioIndex - Radio number where the local mesh peer was detected. coDevWDSScanPeerIndex - Uniquely identify a local mesh peer on a radio inside the local mesh network scan table.') coDevWDSScanRadioIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 3))) if mibBuilder.loadTexts: coDevWDSScanRadioIndex.setStatus('current') if mibBuilder.loadTexts: coDevWDSScanRadioIndex.setDescription('Radio number where the local mesh peer was detected.') coDevWDSScanPeerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 100))) if mibBuilder.loadTexts: coDevWDSScanPeerIndex.setStatus('current') if mibBuilder.loadTexts: coDevWDSScanPeerIndex.setDescription('Uniquely identify a local mesh peer on a radio.') coDevWDSScanGroupId = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1, 1, 3), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSScanGroupId.setStatus('current') if mibBuilder.loadTexts: coDevWDSScanGroupId.setDescription('Group id used by the local mesh peer.') coDevWDSScanPeerMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1, 1, 4), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSScanPeerMacAddress.setStatus('current') if mibBuilder.loadTexts: coDevWDSScanPeerMacAddress.setDescription('MAC address of the local mesh peer.') coDevWDSScanChannel = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 199))).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSScanChannel.setStatus('current') if mibBuilder.loadTexts: coDevWDSScanChannel.setDescription('Channel on which the peer is transmitting.') coDevWDSScanSNR = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 92))).setUnits('dBm').setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSScanSNR.setStatus('current') if mibBuilder.loadTexts: coDevWDSScanSNR.setDescription('Signal noise ratio of the local mesh peer.') coDevWDSScanMode = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("master", 1), ("slave", 2), ("alternateMaster", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSScanMode.setStatus('current') if mibBuilder.loadTexts: coDevWDSScanMode.setDescription('Current mode of the local mesh peer.') coDevWDSScanAvailable = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1, 1, 8), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: coDevWDSScanAvailable.setStatus('current') if mibBuilder.loadTexts: coDevWDSScanAvailable.setDescription('Peer is accepting connections.') colubrisDeviceWdsMIBNotificationPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 2)) colubrisDeviceWdsMIBNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 2, 0)) colubrisDeviceWdsMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 3)) colubrisDeviceWdsMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 3, 1)) colubrisDeviceWdsMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 3, 2)) colubrisDeviceWdsMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 8744, 5, 34, 3, 1, 1)).setObjects(("COLUBRIS-DEVICE-WDS-MIB", "colubrisDeviceWdsInfoMIBGroup"), ("COLUBRIS-DEVICE-WDS-MIB", "colubrisDeviceWdsRadioMIBGroup"), ("COLUBRIS-DEVICE-WDS-MIB", "colubrisDeviceWdsGroupMIBGroup"), ("COLUBRIS-DEVICE-WDS-MIB", "colubrisDeviceWdsLinkMIBGroup"), ("COLUBRIS-DEVICE-WDS-MIB", "colubrisDeviceWdsNetworkScanMIBGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): colubrisDeviceWdsMIBCompliance = colubrisDeviceWdsMIBCompliance.setStatus('current') if mibBuilder.loadTexts: colubrisDeviceWdsMIBCompliance.setDescription('The compliance statement for the device local mesh MIB.') colubrisDeviceWdsInfoMIBGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 8744, 5, 34, 3, 2, 1)).setObjects(("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSInfoMaxNumberOfGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): colubrisDeviceWdsInfoMIBGroup = colubrisDeviceWdsInfoMIBGroup.setStatus('current') if mibBuilder.loadTexts: colubrisDeviceWdsInfoMIBGroup.setDescription('A collection of objects for the device local mesh information group.') colubrisDeviceWdsRadioMIBGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 8744, 5, 34, 3, 2, 2)).setObjects(("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSRadioAckDistance"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSRadioQoS")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): colubrisDeviceWdsRadioMIBGroup = colubrisDeviceWdsRadioMIBGroup.setStatus('current') if mibBuilder.loadTexts: colubrisDeviceWdsRadioMIBGroup.setDescription('A collection of objects for the device local mesh radio group.') colubrisDeviceWdsGroupMIBGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 8744, 5, 34, 3, 2, 3)).setObjects(("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSGroupName"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSGroupState"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSGroupSecurity"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSGroupDynamicMode"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSGroupDynamicGroupId")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): colubrisDeviceWdsGroupMIBGroup = colubrisDeviceWdsGroupMIBGroup.setStatus('current') if mibBuilder.loadTexts: colubrisDeviceWdsGroupMIBGroup.setDescription('A collection of objects for the device local mesh group group.') colubrisDeviceWdsLinkMIBGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 8744, 5, 34, 3, 2, 4)).setObjects(("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStaState"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStaRadio"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStaPeerMacAddress"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStaMaster"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStaAuthorized"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStaEncryption"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStaIdleTime"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStaSNR"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStaTxRate"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStaRxRate"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStaIfIndex"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStaHT"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStaTxMCS"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStaRxMCS"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStaSignal"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStaNoise"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxRate1"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxRate2"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxRate5dot5"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxRate11"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxRate6"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxRate9"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxRate12"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxRate18"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxRate24"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxRate36"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxRate48"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxRate54"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxRate1"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxRate2"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxRate5dot5"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxRate11"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxRate6"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxRate9"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxRate12"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxRate18"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxRate24"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxRate36"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxRate48"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxRate54"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxMCS0"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxMCS1"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxMCS2"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxMCS3"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxMCS4"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxMCS5"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxMCS6"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxMCS7"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxMCS8"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxMCS9"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxMCS10"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxMCS11"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxMCS12"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxMCS13"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxMCS14"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxMCS15"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxMCS0"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxMCS1"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxMCS2"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxMCS3"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxMCS4"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxMCS5"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxMCS6"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxMCS7"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxMCS8"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxMCS9"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxMCS10"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxMCS11"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxMCS12"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxMCS13"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxMCS14"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxMCS15")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): colubrisDeviceWdsLinkMIBGroup = colubrisDeviceWdsLinkMIBGroup.setStatus('current') if mibBuilder.loadTexts: colubrisDeviceWdsLinkMIBGroup.setDescription('A collection of objects for the device local mesh link group.') colubrisDeviceWdsNetworkScanMIBGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 8744, 5, 34, 3, 2, 5)).setObjects(("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSScanGroupId"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSScanPeerMacAddress"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSScanChannel"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSScanSNR"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSScanMode"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSScanAvailable")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): colubrisDeviceWdsNetworkScanMIBGroup = colubrisDeviceWdsNetworkScanMIBGroup.setStatus('current') if mibBuilder.loadTexts: colubrisDeviceWdsNetworkScanMIBGroup.setDescription('A collection of objects for the device local mesh network scan group.') mibBuilder.exportSymbols("COLUBRIS-DEVICE-WDS-MIB", coDevWDSLinkStsPktsTxRate11=coDevWDSLinkStsPktsTxRate11, coDevWDSLinkStsPktsRxRate36=coDevWDSLinkStsPktsRxRate36, coDevWDSRadioAckDistance=coDevWDSRadioAckDistance, coDevWDSLinkStsPktsRxMCS4=coDevWDSLinkStsPktsRxMCS4, coDevWDSLinkStaHT=coDevWDSLinkStaHT, coDevWDSScanSNR=coDevWDSScanSNR, coDevWDSLinkStsPktsRxRate12=coDevWDSLinkStsPktsRxRate12, coDevWDSRadioIndex=coDevWDSRadioIndex, colubrisDeviceWdsMIBGroups=colubrisDeviceWdsMIBGroups, colubrisDeviceWdsLinkMIBGroup=colubrisDeviceWdsLinkMIBGroup, coDevWDSLinkStsPktsTxRate48=coDevWDSLinkStsPktsTxRate48, coDevWDSLinkStsPktsRxMCS0=coDevWDSLinkStsPktsRxMCS0, coDevWDSLinkStaMaster=coDevWDSLinkStaMaster, coDevWDSLinkStsPktsTxMCS11=coDevWDSLinkStsPktsTxMCS11, coDevWDSLinkStsPktsTxMCS9=coDevWDSLinkStsPktsTxMCS9, coDevWDSLinkStsPktsRxRate6=coDevWDSLinkStsPktsRxRate6, coDeviceWDSInfoGroup=coDeviceWDSInfoGroup, coDevWDSLinkStsPktsTxMCS1=coDevWDSLinkStsPktsTxMCS1, coDevWDSLinkStsPktsRxMCS1=coDevWDSLinkStsPktsRxMCS1, coDevWDSLinkStsPktsRxMCS10=coDevWDSLinkStsPktsRxMCS10, coDevWDSLinkStsPktsRxRate24=coDevWDSLinkStsPktsRxRate24, coDevWDSLinkStaRadio=coDevWDSLinkStaRadio, coDevWDSLinkStsPktsTxRate1=coDevWDSLinkStsPktsTxRate1, colubrisDeviceWdsRadioMIBGroup=colubrisDeviceWdsRadioMIBGroup, colubrisDeviceWdsMIBObjects=colubrisDeviceWdsMIBObjects, coDevWDSGroupState=coDevWDSGroupState, coDevWDSLinkStsPktsRxMCS12=coDevWDSLinkStsPktsRxMCS12, coDevWDSLinkStsPktsTxMCS14=coDevWDSLinkStsPktsTxMCS14, coDeviceWDSNetworkScanGroup=coDeviceWDSNetworkScanGroup, coDevWDSLinkStsPktsRxRate1=coDevWDSLinkStsPktsRxRate1, colubrisDeviceWdsMIBNotifications=colubrisDeviceWdsMIBNotifications, coDevWDSLinkStsPktsTxMCS3=coDevWDSLinkStsPktsTxMCS3, coDevWDSLinkStsPktsRxRate11=coDevWDSLinkStsPktsRxRate11, coDevWDSLinkStaIdleTime=coDevWDSLinkStaIdleTime, coDevWDSLinkStaSignal=coDevWDSLinkStaSignal, coDeviceWDSLinkStatsHTRatesEntry=coDeviceWDSLinkStatsHTRatesEntry, coDevWDSLinkStsPktsRxMCS2=coDevWDSLinkStsPktsRxMCS2, coDevWDSScanMode=coDevWDSScanMode, coDevWDSLinkStsPktsTxMCS13=coDevWDSLinkStsPktsTxMCS13, coDevWDSLinkStsPktsTxMCS4=coDevWDSLinkStsPktsTxMCS4, coDeviceWDSGroupTable=coDeviceWDSGroupTable, coDevWDSScanPeerIndex=coDevWDSScanPeerIndex, coDeviceWDSLinkStatsHTRatesTable=coDeviceWDSLinkStatsHTRatesTable, coDevWDSLinkStsPktsRxMCS15=coDevWDSLinkStsPktsRxMCS15, coDevWDSGroupDynamicGroupId=coDevWDSGroupDynamicGroupId, colubrisDeviceWdsMIBCompliance=colubrisDeviceWdsMIBCompliance, coDeviceWDSNetworkScanEntry=coDeviceWDSNetworkScanEntry, coDevWDSLinkStaRxRate=coDevWDSLinkStaRxRate, coDevWDSLinkStsPktsTxRate6=coDevWDSLinkStsPktsTxRate6, coDevWDSLinkStsPktsTxRate18=coDevWDSLinkStsPktsTxRate18, coDevWDSRadioQoS=coDevWDSRadioQoS, coDevWDSGroupSecurity=coDevWDSGroupSecurity, coDevWDSLinkStaRxMCS=coDevWDSLinkStaRxMCS, coDevWDSLinkStsPktsRxMCS7=coDevWDSLinkStsPktsRxMCS7, coDevWDSInfoMaxNumberOfGroup=coDevWDSInfoMaxNumberOfGroup, coDevWDSLinkStsPktsRxMCS6=coDevWDSLinkStsPktsRxMCS6, colubrisDeviceWdsMIBNotificationPrefix=colubrisDeviceWdsMIBNotificationPrefix, coDevWDSLinkStsPktsTxRate12=coDevWDSLinkStsPktsTxRate12, coDevWDSLinkStsPktsTxRate24=coDevWDSLinkStsPktsTxRate24, coDeviceWDSLinkStatsRatesEntry=coDeviceWDSLinkStatsRatesEntry, coDevWDSLinkStsPktsTxMCS2=coDevWDSLinkStsPktsTxMCS2, coDevWDSLinkStsPktsTxMCS8=coDevWDSLinkStsPktsTxMCS8, coDevWDSLinkStsPktsTxMCS10=coDevWDSLinkStsPktsTxMCS10, coDevWDSLinkStsPktsTxMCS6=coDevWDSLinkStsPktsTxMCS6, coDevWDSLinkStsPktsTxRate2=coDevWDSLinkStsPktsTxRate2, coDevWDSScanChannel=coDevWDSScanChannel, coDevWDSLinkStaIndex=coDevWDSLinkStaIndex, coDevWDSLinkStsPktsTxRate9=coDevWDSLinkStsPktsTxRate9, coDevWDSLinkStsPktsTxMCS12=coDevWDSLinkStsPktsTxMCS12, colubrisDeviceWdsMIBCompliances=colubrisDeviceWdsMIBCompliances, colubrisDeviceWdsGroupMIBGroup=colubrisDeviceWdsGroupMIBGroup, coDevWDSGroupName=coDevWDSGroupName, coDeviceWdsInfoEntry=coDeviceWdsInfoEntry, coDevWDSLinkStsPktsRxMCS8=coDevWDSLinkStsPktsRxMCS8, coDeviceWdsInfoTable=coDeviceWdsInfoTable, coDeviceWDSLinkStatusEntry=coDeviceWDSLinkStatusEntry, coDevWDSLinkStsPktsRxMCS3=coDevWDSLinkStsPktsRxMCS3, coDevWDSScanAvailable=coDevWDSScanAvailable, coDevWDSLinkStaIfIndex=coDevWDSLinkStaIfIndex, coDevWDSLinkStsPktsRxRate54=coDevWDSLinkStsPktsRxRate54, coDevWDSGroupIndex=coDevWDSGroupIndex, colubrisDeviceWdsMIBConformance=colubrisDeviceWdsMIBConformance, coDevWDSLinkStsPktsRxMCS14=coDevWDSLinkStsPktsRxMCS14, coDevWDSLinkStsPktsRxRate48=coDevWDSLinkStsPktsRxRate48, PYSNMP_MODULE_ID=colubrisDeviceWdsMIB, coDevWDSLinkStsPktsRxMCS11=coDevWDSLinkStsPktsRxMCS11, coDevWDSLinkStsPktsRxRate18=coDevWDSLinkStsPktsRxRate18, colubrisDeviceWdsInfoMIBGroup=colubrisDeviceWdsInfoMIBGroup, coDevWDSLinkStsPktsTxRate36=coDevWDSLinkStsPktsTxRate36, coDevWDSLinkStaPeerMacAddress=coDevWDSLinkStaPeerMacAddress, coDevWDSLinkStsPktsRxRate9=coDevWDSLinkStsPktsRxRate9, coDeviceWDSRadioGroup=coDeviceWDSRadioGroup, coDevWDSLinkStsPktsRxRate5dot5=coDevWDSLinkStsPktsRxRate5dot5, coDevWDSLinkStaTxMCS=coDevWDSLinkStaTxMCS, coDevWDSLinkStsPktsTxMCS15=coDevWDSLinkStsPktsTxMCS15, coDevWDSLinkStsPktsRxMCS9=coDevWDSLinkStsPktsRxMCS9, coDevWDSLinkStsPktsTxRate5dot5=coDevWDSLinkStsPktsTxRate5dot5, coDevWDSLinkStsPktsRxMCS13=coDevWDSLinkStsPktsRxMCS13, coDevWDSLinkStsPktsTxMCS0=coDevWDSLinkStsPktsTxMCS0, coDevWDSScanRadioIndex=coDevWDSScanRadioIndex, coDevWDSLinkStsPktsRxRate2=coDevWDSLinkStsPktsRxRate2, coDevWDSLinkStaTxRate=coDevWDSLinkStaTxRate, coDevWDSLinkStaNoise=coDevWDSLinkStaNoise, coDeviceWDSGroupGroup=coDeviceWDSGroupGroup, coDevWDSLinkStsPktsTxRate54=coDevWDSLinkStsPktsTxRate54, colubrisDeviceWdsNetworkScanMIBGroup=colubrisDeviceWdsNetworkScanMIBGroup, coDevWDSScanPeerMacAddress=coDevWDSScanPeerMacAddress, coDeviceWDSLinkGroup=coDeviceWDSLinkGroup, coDevWDSScanGroupId=coDevWDSScanGroupId, coDevWDSGroupDynamicMode=coDevWDSGroupDynamicMode, coDeviceWDSNetworkScanTable=coDeviceWDSNetworkScanTable, coDevWDSLinkStsPktsTxMCS7=coDevWDSLinkStsPktsTxMCS7, coDeviceWDSGroupEntry=coDeviceWDSGroupEntry, coDeviceWDSRadioEntry=coDeviceWDSRadioEntry, coDevWDSLinkStaState=coDevWDSLinkStaState, colubrisDeviceWdsMIB=colubrisDeviceWdsMIB, coDevWDSLinkStaEncryption=coDevWDSLinkStaEncryption, coDeviceWDSLinkStatsRatesTable=coDeviceWDSLinkStatsRatesTable, coDeviceWDSRadioTable=coDeviceWDSRadioTable, coDeviceWDSLinkStatusTable=coDeviceWDSLinkStatusTable, coDevWDSLinkStaAuthorized=coDevWDSLinkStaAuthorized, coDevWDSLinkStsPktsTxMCS5=coDevWDSLinkStsPktsTxMCS5, coDevWDSLinkStsPktsRxMCS5=coDevWDSLinkStsPktsRxMCS5, coDevWDSLinkStaSNR=coDevWDSLinkStaSNR)
(octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, constraints_union, value_size_constraint, value_range_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ConstraintsUnion', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsIntersection') (co_dev_dis_index,) = mibBuilder.importSymbols('COLUBRIS-DEVICE-MIB', 'coDevDisIndex') (colubris_mgmt_v2,) = mibBuilder.importSymbols('COLUBRIS-SMI', 'colubrisMgmtV2') (module_compliance, notification_group, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup', 'ObjectGroup') (object_identity, bits, counter64, notification_type, gauge32, module_identity, time_ticks, unsigned32, iso, mib_scalar, mib_table, mib_table_row, mib_table_column, ip_address, integer32, mib_identifier, counter32) = mibBuilder.importSymbols('SNMPv2-SMI', 'ObjectIdentity', 'Bits', 'Counter64', 'NotificationType', 'Gauge32', 'ModuleIdentity', 'TimeTicks', 'Unsigned32', 'iso', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'IpAddress', 'Integer32', 'MibIdentifier', 'Counter32') (truth_value, mac_address, display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'TruthValue', 'MacAddress', 'DisplayString', 'TextualConvention') colubris_device_wds_mib = module_identity((1, 3, 6, 1, 4, 1, 8744, 5, 34)) if mibBuilder.loadTexts: colubrisDeviceWdsMIB.setLastUpdated('200908200000Z') if mibBuilder.loadTexts: colubrisDeviceWdsMIB.setOrganization('Colubris Networks, Inc.') if mibBuilder.loadTexts: colubrisDeviceWdsMIB.setContactInfo('Colubris Networks Postal: 200 West Street Ste 300 Waltham, Massachusetts 02451-1121 UNITED STATES Phone: +1 781 684 0001 Fax: +1 781 684 0009 E-mail: cn-snmp@colubris.com') if mibBuilder.loadTexts: colubrisDeviceWdsMIB.setDescription('Colubris Device WDS MIB.') colubris_device_wds_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1)) co_device_wds_info_group = mib_identifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 2)) co_device_wds_radio_group = mib_identifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 3)) co_device_wds_group_group = mib_identifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 4)) co_device_wds_link_group = mib_identifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5)) co_device_wds_network_scan_group = mib_identifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6)) co_device_wds_info_table = mib_table((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 2, 1)) if mibBuilder.loadTexts: coDeviceWdsInfoTable.setStatus('current') if mibBuilder.loadTexts: coDeviceWdsInfoTable.setDescription('Device WDS information attributes.') co_device_wds_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 2, 1, 1)).setIndexNames((0, 'COLUBRIS-DEVICE-MIB', 'coDevDisIndex')) if mibBuilder.loadTexts: coDeviceWdsInfoEntry.setStatus('current') if mibBuilder.loadTexts: coDeviceWdsInfoEntry.setDescription('An entry in the coDeviceWdsInfoTable. coDevDisIndex - Uniquely identifies a device on the controller.') co_dev_wds_info_max_number_of_group = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 2, 1, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 6))).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSInfoMaxNumberOfGroup.setStatus('current') if mibBuilder.loadTexts: coDevWDSInfoMaxNumberOfGroup.setDescription('Maximum number of local mesh profiles supported by the device.') co_device_wds_radio_table = mib_table((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 3, 1)) if mibBuilder.loadTexts: coDeviceWDSRadioTable.setStatus('current') if mibBuilder.loadTexts: coDeviceWDSRadioTable.setDescription('Conceptual table for the local mesh radio parameters.') co_device_wds_radio_entry = mib_table_row((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 3, 1, 1)).setIndexNames((0, 'COLUBRIS-DEVICE-MIB', 'coDevDisIndex'), (0, 'COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSRadioIndex')) if mibBuilder.loadTexts: coDeviceWDSRadioEntry.setStatus('current') if mibBuilder.loadTexts: coDeviceWDSRadioEntry.setDescription('An Entry (conceptual row) in the local mesh radio Table. coDevDisIndex - Uniquely identifies a device on the controller. coDevWDSRadioIndex - Radio number where the local mesh radio parameters are applied.') co_dev_wds_radio_index = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 3, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 3))) if mibBuilder.loadTexts: coDevWDSRadioIndex.setStatus('current') if mibBuilder.loadTexts: coDevWDSRadioIndex.setDescription('Radio number.') co_dev_wds_radio_ack_distance = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 3, 1, 1, 2), unsigned32()).setUnits('km').setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSRadioAckDistance.setStatus('current') if mibBuilder.loadTexts: coDevWDSRadioAckDistance.setDescription('Maximum distance between the device and the remote peers.') co_dev_wds_radio_qo_s = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 3, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('disabled', 1), ('vlan', 2), ('veryHigh', 3), ('high', 4), ('normal', 5), ('low', 6), ('diffSrv', 7), ('tos', 8), ('ipQos', 9)))).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSRadioQoS.setStatus('current') if mibBuilder.loadTexts: coDevWDSRadioQoS.setDescription('QoS priority mechanism used to maps the traffic to one of the four WMM traffic queues.') co_device_wds_group_table = mib_table((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 4, 1)) if mibBuilder.loadTexts: coDeviceWDSGroupTable.setStatus('current') if mibBuilder.loadTexts: coDeviceWDSGroupTable.setDescription('Conceptual table for the local mesh profiles. This table contains configuration information for the six local mesh profiles.') co_device_wds_group_entry = mib_table_row((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 4, 1, 1)).setIndexNames((0, 'COLUBRIS-DEVICE-MIB', 'coDevDisIndex'), (0, 'COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSGroupIndex')) if mibBuilder.loadTexts: coDeviceWDSGroupEntry.setStatus('current') if mibBuilder.loadTexts: coDeviceWDSGroupEntry.setDescription('An Entry (conceptual row) in the local mesh profiles table. coDevDisIndex - Uniquely identifies a device on the controller. coDevWDSGroupIndex - Uniquely identify a local mesh profile inside the Device local mesh table.') co_dev_wds_group_index = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 4, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 9))) if mibBuilder.loadTexts: coDevWDSGroupIndex.setStatus('current') if mibBuilder.loadTexts: coDevWDSGroupIndex.setDescription('The auxiliary variable used to identify instances of local mesh profiles.') co_dev_wds_group_name = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 4, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSGroupName.setStatus('current') if mibBuilder.loadTexts: coDevWDSGroupName.setDescription('Friendly name of the local mesh profile.') co_dev_wds_group_state = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 4, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('discovery', 1), ('negotiation', 2), ('acquisition', 3), ('locked', 4), ('shutdown', 5)))).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSGroupState.setStatus('current') if mibBuilder.loadTexts: coDevWDSGroupState.setDescription('Specifies if the local mesh profileis active on the radios.') co_dev_wds_group_security = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 4, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('none', 1), ('wep', 2), ('tkip', 3), ('aes', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSGroupSecurity.setStatus('current') if mibBuilder.loadTexts: coDevWDSGroupSecurity.setDescription('Specifies the encryption used by the local mesh profile.') co_dev_wds_group_dynamic_mode = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 4, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('master', 1), ('slave', 2), ('alternateMaster', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSGroupDynamicMode.setStatus('current') if mibBuilder.loadTexts: coDevWDSGroupDynamicMode.setDescription('Specifies the mode of the dynamic local mesh profile.') co_dev_wds_group_dynamic_group_id = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 4, 1, 1, 6), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSGroupDynamicGroupId.setStatus('current') if mibBuilder.loadTexts: coDevWDSGroupDynamicGroupId.setDescription('Specifies the mesh ID identifier of the dynamic local mesh profile.') co_device_wds_link_status_table = mib_table((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1)) if mibBuilder.loadTexts: coDeviceWDSLinkStatusTable.setStatus('current') if mibBuilder.loadTexts: coDeviceWDSLinkStatusTable.setDescription('Conceptual table for the status of local mesh links.') co_device_wds_link_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1)).setIndexNames((0, 'COLUBRIS-DEVICE-MIB', 'coDevDisIndex'), (0, 'COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSGroupIndex'), (0, 'COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStaIndex')) if mibBuilder.loadTexts: coDeviceWDSLinkStatusEntry.setStatus('current') if mibBuilder.loadTexts: coDeviceWDSLinkStatusEntry.setDescription('An Entry (conceptual row) in the WDS Link status Table. coDevDisIndex - Uniquely identifies a device on the controller. coDevWDSGroupIndex - Uniquely identify a local mesh profile inside the Device local mesh profile table. coDevWDSLinkStaIndex - Uniquely identify a local mesh link inside a Device local mesh profile.') co_dev_wds_link_sta_index = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))) if mibBuilder.loadTexts: coDevWDSLinkStaIndex.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStaIndex.setDescription('The auxiliary variable used to identify instances of local mesh links.') co_dev_wds_link_sta_state = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('down', 1), ('acquiring', 2), ('inactive', 3), ('active', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStaState.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStaState.setDescription('Specifies the state of the local mesh link.') co_dev_wds_link_sta_radio = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(1, 3))).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStaRadio.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStaRadio.setDescription('Radio number where the local mesh peer was detected.') co_dev_wds_link_sta_peer_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 4), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStaPeerMacAddress.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStaPeerMacAddress.setDescription('MAC address of the local mesh peer.') co_dev_wds_link_sta_master = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 5), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStaMaster.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStaMaster.setDescription('Determine if this link is a link to a master. Providing upstream network access.') co_dev_wds_link_sta_authorized = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 6), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStaAuthorized.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStaAuthorized.setDescription('Encryption, if any, can proceed.') co_dev_wds_link_sta_encryption = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('none', 1), ('wep', 2), ('tkip', 3), ('aes', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStaEncryption.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStaEncryption.setDescription('Specifies the encryption used by the local mesh link.') co_dev_wds_link_sta_idle_time = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 8), unsigned32()).setUnits('seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStaIdleTime.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStaIdleTime.setDescription('Inactivity time.') co_dev_wds_link_sta_snr = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 92))).setUnits('dBm').setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStaSNR.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStaSNR.setDescription('Signal noise ratio of the local mesh peer.') co_dev_wds_link_sta_tx_rate = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 10), unsigned32()).setUnits('500Kb/s').setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStaTxRate.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStaTxRate.setDescription('Current transmit rate of the local mesh peer.') co_dev_wds_link_sta_rx_rate = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 11), unsigned32()).setUnits('500Kb/s').setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStaRxRate.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStaRxRate.setDescription('Current receive rate of the local mesh peer.') co_dev_wds_link_sta_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 12), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStaIfIndex.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStaIfIndex.setDescription('coDevIfStaIfIndex of the associated interface in the device coDeviceIfStatusTable.') co_dev_wds_link_sta_ht = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 13), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStaHT.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStaHT.setDescription('Determine if this link is using HT rates.') co_dev_wds_link_sta_tx_mcs = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 14), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStaTxMCS.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStaTxMCS.setDescription('Current transmit MCS of the local mesh peer.') co_dev_wds_link_sta_rx_mcs = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 15), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStaRxMCS.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStaRxMCS.setDescription('Current receive MCS of the local mesh peer.') co_dev_wds_link_sta_signal = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 16), integer32()).setUnits('dBm').setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStaSignal.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStaSignal.setDescription('Strength of the wireless signal.') co_dev_wds_link_sta_noise = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 17), integer32()).setUnits('dBm').setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStaNoise.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStaNoise.setDescription('Level of local background noise.') co_device_wds_link_stats_rates_table = mib_table((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2)) if mibBuilder.loadTexts: coDeviceWDSLinkStatsRatesTable.setStatus('current') if mibBuilder.loadTexts: coDeviceWDSLinkStatsRatesTable.setDescription('Conceptual table for the statistics of local mesh links.') co_device_wds_link_stats_rates_entry = mib_table_row((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1)) coDeviceWDSLinkStatusEntry.registerAugmentions(('COLUBRIS-DEVICE-WDS-MIB', 'coDeviceWDSLinkStatsRatesEntry')) coDeviceWDSLinkStatsRatesEntry.setIndexNames(*coDeviceWDSLinkStatusEntry.getIndexNames()) if mibBuilder.loadTexts: coDeviceWDSLinkStatsRatesEntry.setStatus('current') if mibBuilder.loadTexts: coDeviceWDSLinkStatsRatesEntry.setDescription('An Entry (conceptual row) in the local mesh Link Statistics Table. coDevDisIndex - Uniquely identifies a device on the controller. coDevWDSGroupIndex - Uniquely identify a local mesh profile inside the Device local mesh profile table. coDevWDSLinkIndex - Uniquely identify a local mesh link inside a Device local mesh profile.') co_dev_wds_link_sts_pkts_tx_rate1 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 1), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate1.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate1.setDescription('Number of frames transmitted at 1 Mbps.') co_dev_wds_link_sts_pkts_tx_rate2 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate2.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate2.setDescription('Number of frames transmitted at 2 Mbps.') co_dev_wds_link_sts_pkts_tx_rate5dot5 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate5dot5.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate5dot5.setDescription('Number of frames transmitted at 5.5 Mbps.') co_dev_wds_link_sts_pkts_tx_rate11 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate11.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate11.setDescription('Number of frames transmitted at 11 Mbps.') co_dev_wds_link_sts_pkts_tx_rate6 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate6.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate6.setDescription('Number of frames transmitted at 6 Mbps.') co_dev_wds_link_sts_pkts_tx_rate9 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate9.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate9.setDescription('Number of frames transmitted at 9 Mbps.') co_dev_wds_link_sts_pkts_tx_rate12 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate12.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate12.setDescription('Number of frames transmitted at 12 Mbps.') co_dev_wds_link_sts_pkts_tx_rate18 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate18.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate18.setDescription('Number of frames transmitted at 18 Mbps.') co_dev_wds_link_sts_pkts_tx_rate24 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate24.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate24.setDescription('Number of frames transmitted at 24 Mbps.') co_dev_wds_link_sts_pkts_tx_rate36 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate36.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate36.setDescription('Number of frames transmitted at 36 Mbps.') co_dev_wds_link_sts_pkts_tx_rate48 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 11), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate48.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate48.setDescription('Number of frames transmitted at 48 Mbps.') co_dev_wds_link_sts_pkts_tx_rate54 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 12), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate54.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate54.setDescription('Number of frames transmitted at 54 Mbps.') co_dev_wds_link_sts_pkts_rx_rate1 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 13), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate1.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate1.setDescription('Number of frames received at 1 Mbps.') co_dev_wds_link_sts_pkts_rx_rate2 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 14), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate2.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate2.setDescription('Number of frames received at 2 Mbps.') co_dev_wds_link_sts_pkts_rx_rate5dot5 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 15), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate5dot5.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate5dot5.setDescription('Number of frames received at 5.5 Mbps.') co_dev_wds_link_sts_pkts_rx_rate11 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 16), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate11.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate11.setDescription('Number of frames received at 11 Mbps.') co_dev_wds_link_sts_pkts_rx_rate6 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 17), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate6.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate6.setDescription('Number of frames received at 6 Mbps.') co_dev_wds_link_sts_pkts_rx_rate9 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 18), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate9.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate9.setDescription('Number of frames received at 9 Mbps.') co_dev_wds_link_sts_pkts_rx_rate12 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 19), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate12.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate12.setDescription('Number of frames received at 12 Mbps.') co_dev_wds_link_sts_pkts_rx_rate18 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 20), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate18.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate18.setDescription('Number of frames received at 18 Mbps.') co_dev_wds_link_sts_pkts_rx_rate24 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 21), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate24.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate24.setDescription('Number of frames received at 24 Mbps.') co_dev_wds_link_sts_pkts_rx_rate36 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 22), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate36.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate36.setDescription('Number of frames received at 36 Mbps.') co_dev_wds_link_sts_pkts_rx_rate48 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 23), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate48.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate48.setDescription('Number of frames received at 48 Mbps.') co_dev_wds_link_sts_pkts_rx_rate54 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 24), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate54.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate54.setDescription('Number of frames received at 54 Mbps.') co_device_wds_link_stats_ht_rates_table = mib_table((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3)) if mibBuilder.loadTexts: coDeviceWDSLinkStatsHTRatesTable.setStatus('current') if mibBuilder.loadTexts: coDeviceWDSLinkStatsHTRatesTable.setDescription('Conceptual table for the statistics of WDS HT links.') co_device_wds_link_stats_ht_rates_entry = mib_table_row((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1)) coDeviceWDSLinkStatusEntry.registerAugmentions(('COLUBRIS-DEVICE-WDS-MIB', 'coDeviceWDSLinkStatsHTRatesEntry')) coDeviceWDSLinkStatsHTRatesEntry.setIndexNames(*coDeviceWDSLinkStatusEntry.getIndexNames()) if mibBuilder.loadTexts: coDeviceWDSLinkStatsHTRatesEntry.setStatus('current') if mibBuilder.loadTexts: coDeviceWDSLinkStatsHTRatesEntry.setDescription('An Entry (conceptual row) in the WDS HT Link Statistics Table. coDevDisIndex - Uniquely identifies a device on the MultiService Controller. coDevWDSGroupIndex - Uniquely identify a local mesh profile inside the Device local mesh profiletable. coDevWDSLinkIndex - Uniquely identify a local mesh link inside a Device local mesh profile.') co_dev_wds_link_sts_pkts_tx_mcs0 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 1), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS0.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS0.setDescription('Number of frames transmitted at MCS0 since the link was established.') co_dev_wds_link_sts_pkts_tx_mcs1 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS1.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS1.setDescription('Number of frames transmitted at MCS1 since the link was established.') co_dev_wds_link_sts_pkts_tx_mcs2 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS2.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS2.setDescription('Number of frames transmitted at MCS2 since the link was established.') co_dev_wds_link_sts_pkts_tx_mcs3 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS3.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS3.setDescription('Number of frames transmitted at MCS3 since the link was established.') co_dev_wds_link_sts_pkts_tx_mcs4 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS4.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS4.setDescription('Number of frames transmitted at MCS4 since the link was established.') co_dev_wds_link_sts_pkts_tx_mcs5 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS5.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS5.setDescription('Number of frames transmitted at MCS5 since the link was established.') co_dev_wds_link_sts_pkts_tx_mcs6 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS6.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS6.setDescription('Number of frames transmitted at MCS6 since the link was established.') co_dev_wds_link_sts_pkts_tx_mcs7 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS7.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS7.setDescription('Number of frames transmitted at MCS7 since the link was established.') co_dev_wds_link_sts_pkts_tx_mcs8 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS8.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS8.setDescription('Number of frames transmitted at MCS8 since the link was established.') co_dev_wds_link_sts_pkts_tx_mcs9 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS9.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS9.setDescription('Number of frames transmitted at MCS9 since the link was established.') co_dev_wds_link_sts_pkts_tx_mcs10 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 11), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS10.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS10.setDescription('Number of frames transmitted at MCS10 since the link was established.') co_dev_wds_link_sts_pkts_tx_mcs11 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 12), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS11.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS11.setDescription('Number of frames transmitted at MCS11 since the link was established.') co_dev_wds_link_sts_pkts_tx_mcs12 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 13), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS12.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS12.setDescription('Number of frames transmitted at MCS12 since the link was established.') co_dev_wds_link_sts_pkts_tx_mcs13 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 14), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS13.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS13.setDescription('Number of frames transmitted at MCS13 since the link was established.') co_dev_wds_link_sts_pkts_tx_mcs14 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 15), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS14.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS14.setDescription('Number of frames transmitted at MCS14 since the link was established.') co_dev_wds_link_sts_pkts_tx_mcs15 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 16), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS15.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS15.setDescription('Number of frames transmitted at MCS15 since the link was established.') co_dev_wds_link_sts_pkts_rx_mcs0 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 17), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS0.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS0.setDescription('Number of frames received at MCS0 since the link was established.') co_dev_wds_link_sts_pkts_rx_mcs1 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 18), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS1.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS1.setDescription('Number of frames received at MCS1 since the link was established.') co_dev_wds_link_sts_pkts_rx_mcs2 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 19), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS2.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS2.setDescription('Number of frames received at MCS2 since the link was established.') co_dev_wds_link_sts_pkts_rx_mcs3 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 20), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS3.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS3.setDescription('Number of frames received at MCS3 since the link was established.') co_dev_wds_link_sts_pkts_rx_mcs4 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 21), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS4.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS4.setDescription('Number of frames received at MCS4 since the link was established.') co_dev_wds_link_sts_pkts_rx_mcs5 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 22), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS5.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS5.setDescription('Number of frames received at MCS5 since the link was established.') co_dev_wds_link_sts_pkts_rx_mcs6 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 23), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS6.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS6.setDescription('Number of frames received at MCS6 since the link was established.') co_dev_wds_link_sts_pkts_rx_mcs7 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 24), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS7.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS7.setDescription('Number of frames received at MCS7 since the link was established.') co_dev_wds_link_sts_pkts_rx_mcs8 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 25), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS8.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS8.setDescription('Number of frames received at MCS8 since the link was established.') co_dev_wds_link_sts_pkts_rx_mcs9 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 26), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS9.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS9.setDescription('Number of frames received at MCS9 since the link was established.') co_dev_wds_link_sts_pkts_rx_mcs10 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 27), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS10.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS10.setDescription('Number of frames received at MCS10 since the link was established.') co_dev_wds_link_sts_pkts_rx_mcs11 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 28), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS11.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS11.setDescription('Number of frames received at MCS11 since the link was established.') co_dev_wds_link_sts_pkts_rx_mcs12 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 29), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS12.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS12.setDescription('Number of frames received at MCS12 since the link was established.') co_dev_wds_link_sts_pkts_rx_mcs13 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 30), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS13.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS13.setDescription('Number of frames received at MCS13 since the link was established.') co_dev_wds_link_sts_pkts_rx_mcs14 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 31), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS14.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS14.setDescription('Number of frames received at MCS14 since the link was established.') co_dev_wds_link_sts_pkts_rx_mcs15 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 32), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS15.setStatus('current') if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS15.setDescription('Number of frames received at MCS15 since the link was established.') co_device_wds_network_scan_table = mib_table((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1)) if mibBuilder.loadTexts: coDeviceWDSNetworkScanTable.setStatus('current') if mibBuilder.loadTexts: coDeviceWDSNetworkScanTable.setDescription('Conceptual table for the local mesh network scans.') co_device_wds_network_scan_entry = mib_table_row((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1, 1)).setIndexNames((0, 'COLUBRIS-DEVICE-MIB', 'coDevDisIndex'), (0, 'COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSScanRadioIndex'), (0, 'COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSScanPeerIndex')) if mibBuilder.loadTexts: coDeviceWDSNetworkScanEntry.setStatus('current') if mibBuilder.loadTexts: coDeviceWDSNetworkScanEntry.setDescription('An Entry (conceptual row) in the WDS Network Scan Table. coDevDisIndex - Uniquely identifies a device on the controller. coDevWDSScanRadioIndex - Radio number where the local mesh peer was detected. coDevWDSScanPeerIndex - Uniquely identify a local mesh peer on a radio inside the local mesh network scan table.') co_dev_wds_scan_radio_index = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 3))) if mibBuilder.loadTexts: coDevWDSScanRadioIndex.setStatus('current') if mibBuilder.loadTexts: coDevWDSScanRadioIndex.setDescription('Radio number where the local mesh peer was detected.') co_dev_wds_scan_peer_index = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 100))) if mibBuilder.loadTexts: coDevWDSScanPeerIndex.setStatus('current') if mibBuilder.loadTexts: coDevWDSScanPeerIndex.setDescription('Uniquely identify a local mesh peer on a radio.') co_dev_wds_scan_group_id = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1, 1, 3), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSScanGroupId.setStatus('current') if mibBuilder.loadTexts: coDevWDSScanGroupId.setDescription('Group id used by the local mesh peer.') co_dev_wds_scan_peer_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1, 1, 4), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSScanPeerMacAddress.setStatus('current') if mibBuilder.loadTexts: coDevWDSScanPeerMacAddress.setDescription('MAC address of the local mesh peer.') co_dev_wds_scan_channel = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1, 1, 5), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 199))).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSScanChannel.setStatus('current') if mibBuilder.loadTexts: coDevWDSScanChannel.setDescription('Channel on which the peer is transmitting.') co_dev_wds_scan_snr = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 92))).setUnits('dBm').setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSScanSNR.setStatus('current') if mibBuilder.loadTexts: coDevWDSScanSNR.setDescription('Signal noise ratio of the local mesh peer.') co_dev_wds_scan_mode = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('master', 1), ('slave', 2), ('alternateMaster', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSScanMode.setStatus('current') if mibBuilder.loadTexts: coDevWDSScanMode.setDescription('Current mode of the local mesh peer.') co_dev_wds_scan_available = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1, 1, 8), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: coDevWDSScanAvailable.setStatus('current') if mibBuilder.loadTexts: coDevWDSScanAvailable.setDescription('Peer is accepting connections.') colubris_device_wds_mib_notification_prefix = mib_identifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 2)) colubris_device_wds_mib_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 2, 0)) colubris_device_wds_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 3)) colubris_device_wds_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 3, 1)) colubris_device_wds_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 3, 2)) colubris_device_wds_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 8744, 5, 34, 3, 1, 1)).setObjects(('COLUBRIS-DEVICE-WDS-MIB', 'colubrisDeviceWdsInfoMIBGroup'), ('COLUBRIS-DEVICE-WDS-MIB', 'colubrisDeviceWdsRadioMIBGroup'), ('COLUBRIS-DEVICE-WDS-MIB', 'colubrisDeviceWdsGroupMIBGroup'), ('COLUBRIS-DEVICE-WDS-MIB', 'colubrisDeviceWdsLinkMIBGroup'), ('COLUBRIS-DEVICE-WDS-MIB', 'colubrisDeviceWdsNetworkScanMIBGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): colubris_device_wds_mib_compliance = colubrisDeviceWdsMIBCompliance.setStatus('current') if mibBuilder.loadTexts: colubrisDeviceWdsMIBCompliance.setDescription('The compliance statement for the device local mesh MIB.') colubris_device_wds_info_mib_group = object_group((1, 3, 6, 1, 4, 1, 8744, 5, 34, 3, 2, 1)).setObjects(('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSInfoMaxNumberOfGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): colubris_device_wds_info_mib_group = colubrisDeviceWdsInfoMIBGroup.setStatus('current') if mibBuilder.loadTexts: colubrisDeviceWdsInfoMIBGroup.setDescription('A collection of objects for the device local mesh information group.') colubris_device_wds_radio_mib_group = object_group((1, 3, 6, 1, 4, 1, 8744, 5, 34, 3, 2, 2)).setObjects(('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSRadioAckDistance'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSRadioQoS')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): colubris_device_wds_radio_mib_group = colubrisDeviceWdsRadioMIBGroup.setStatus('current') if mibBuilder.loadTexts: colubrisDeviceWdsRadioMIBGroup.setDescription('A collection of objects for the device local mesh radio group.') colubris_device_wds_group_mib_group = object_group((1, 3, 6, 1, 4, 1, 8744, 5, 34, 3, 2, 3)).setObjects(('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSGroupName'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSGroupState'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSGroupSecurity'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSGroupDynamicMode'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSGroupDynamicGroupId')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): colubris_device_wds_group_mib_group = colubrisDeviceWdsGroupMIBGroup.setStatus('current') if mibBuilder.loadTexts: colubrisDeviceWdsGroupMIBGroup.setDescription('A collection of objects for the device local mesh group group.') colubris_device_wds_link_mib_group = object_group((1, 3, 6, 1, 4, 1, 8744, 5, 34, 3, 2, 4)).setObjects(('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStaState'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStaRadio'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStaPeerMacAddress'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStaMaster'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStaAuthorized'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStaEncryption'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStaIdleTime'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStaSNR'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStaTxRate'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStaRxRate'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStaIfIndex'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStaHT'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStaTxMCS'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStaRxMCS'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStaSignal'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStaNoise'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxRate1'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxRate2'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxRate5dot5'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxRate11'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxRate6'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxRate9'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxRate12'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxRate18'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxRate24'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxRate36'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxRate48'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxRate54'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxRate1'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxRate2'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxRate5dot5'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxRate11'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxRate6'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxRate9'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxRate12'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxRate18'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxRate24'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxRate36'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxRate48'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxRate54'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxMCS0'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxMCS1'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxMCS2'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxMCS3'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxMCS4'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxMCS5'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxMCS6'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxMCS7'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxMCS8'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxMCS9'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxMCS10'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxMCS11'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxMCS12'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxMCS13'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxMCS14'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxMCS15'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxMCS0'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxMCS1'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxMCS2'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxMCS3'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxMCS4'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxMCS5'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxMCS6'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxMCS7'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxMCS8'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxMCS9'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxMCS10'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxMCS11'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxMCS12'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxMCS13'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxMCS14'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxMCS15')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): colubris_device_wds_link_mib_group = colubrisDeviceWdsLinkMIBGroup.setStatus('current') if mibBuilder.loadTexts: colubrisDeviceWdsLinkMIBGroup.setDescription('A collection of objects for the device local mesh link group.') colubris_device_wds_network_scan_mib_group = object_group((1, 3, 6, 1, 4, 1, 8744, 5, 34, 3, 2, 5)).setObjects(('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSScanGroupId'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSScanPeerMacAddress'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSScanChannel'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSScanSNR'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSScanMode'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSScanAvailable')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): colubris_device_wds_network_scan_mib_group = colubrisDeviceWdsNetworkScanMIBGroup.setStatus('current') if mibBuilder.loadTexts: colubrisDeviceWdsNetworkScanMIBGroup.setDescription('A collection of objects for the device local mesh network scan group.') mibBuilder.exportSymbols('COLUBRIS-DEVICE-WDS-MIB', coDevWDSLinkStsPktsTxRate11=coDevWDSLinkStsPktsTxRate11, coDevWDSLinkStsPktsRxRate36=coDevWDSLinkStsPktsRxRate36, coDevWDSRadioAckDistance=coDevWDSRadioAckDistance, coDevWDSLinkStsPktsRxMCS4=coDevWDSLinkStsPktsRxMCS4, coDevWDSLinkStaHT=coDevWDSLinkStaHT, coDevWDSScanSNR=coDevWDSScanSNR, coDevWDSLinkStsPktsRxRate12=coDevWDSLinkStsPktsRxRate12, coDevWDSRadioIndex=coDevWDSRadioIndex, colubrisDeviceWdsMIBGroups=colubrisDeviceWdsMIBGroups, colubrisDeviceWdsLinkMIBGroup=colubrisDeviceWdsLinkMIBGroup, coDevWDSLinkStsPktsTxRate48=coDevWDSLinkStsPktsTxRate48, coDevWDSLinkStsPktsRxMCS0=coDevWDSLinkStsPktsRxMCS0, coDevWDSLinkStaMaster=coDevWDSLinkStaMaster, coDevWDSLinkStsPktsTxMCS11=coDevWDSLinkStsPktsTxMCS11, coDevWDSLinkStsPktsTxMCS9=coDevWDSLinkStsPktsTxMCS9, coDevWDSLinkStsPktsRxRate6=coDevWDSLinkStsPktsRxRate6, coDeviceWDSInfoGroup=coDeviceWDSInfoGroup, coDevWDSLinkStsPktsTxMCS1=coDevWDSLinkStsPktsTxMCS1, coDevWDSLinkStsPktsRxMCS1=coDevWDSLinkStsPktsRxMCS1, coDevWDSLinkStsPktsRxMCS10=coDevWDSLinkStsPktsRxMCS10, coDevWDSLinkStsPktsRxRate24=coDevWDSLinkStsPktsRxRate24, coDevWDSLinkStaRadio=coDevWDSLinkStaRadio, coDevWDSLinkStsPktsTxRate1=coDevWDSLinkStsPktsTxRate1, colubrisDeviceWdsRadioMIBGroup=colubrisDeviceWdsRadioMIBGroup, colubrisDeviceWdsMIBObjects=colubrisDeviceWdsMIBObjects, coDevWDSGroupState=coDevWDSGroupState, coDevWDSLinkStsPktsRxMCS12=coDevWDSLinkStsPktsRxMCS12, coDevWDSLinkStsPktsTxMCS14=coDevWDSLinkStsPktsTxMCS14, coDeviceWDSNetworkScanGroup=coDeviceWDSNetworkScanGroup, coDevWDSLinkStsPktsRxRate1=coDevWDSLinkStsPktsRxRate1, colubrisDeviceWdsMIBNotifications=colubrisDeviceWdsMIBNotifications, coDevWDSLinkStsPktsTxMCS3=coDevWDSLinkStsPktsTxMCS3, coDevWDSLinkStsPktsRxRate11=coDevWDSLinkStsPktsRxRate11, coDevWDSLinkStaIdleTime=coDevWDSLinkStaIdleTime, coDevWDSLinkStaSignal=coDevWDSLinkStaSignal, coDeviceWDSLinkStatsHTRatesEntry=coDeviceWDSLinkStatsHTRatesEntry, coDevWDSLinkStsPktsRxMCS2=coDevWDSLinkStsPktsRxMCS2, coDevWDSScanMode=coDevWDSScanMode, coDevWDSLinkStsPktsTxMCS13=coDevWDSLinkStsPktsTxMCS13, coDevWDSLinkStsPktsTxMCS4=coDevWDSLinkStsPktsTxMCS4, coDeviceWDSGroupTable=coDeviceWDSGroupTable, coDevWDSScanPeerIndex=coDevWDSScanPeerIndex, coDeviceWDSLinkStatsHTRatesTable=coDeviceWDSLinkStatsHTRatesTable, coDevWDSLinkStsPktsRxMCS15=coDevWDSLinkStsPktsRxMCS15, coDevWDSGroupDynamicGroupId=coDevWDSGroupDynamicGroupId, colubrisDeviceWdsMIBCompliance=colubrisDeviceWdsMIBCompliance, coDeviceWDSNetworkScanEntry=coDeviceWDSNetworkScanEntry, coDevWDSLinkStaRxRate=coDevWDSLinkStaRxRate, coDevWDSLinkStsPktsTxRate6=coDevWDSLinkStsPktsTxRate6, coDevWDSLinkStsPktsTxRate18=coDevWDSLinkStsPktsTxRate18, coDevWDSRadioQoS=coDevWDSRadioQoS, coDevWDSGroupSecurity=coDevWDSGroupSecurity, coDevWDSLinkStaRxMCS=coDevWDSLinkStaRxMCS, coDevWDSLinkStsPktsRxMCS7=coDevWDSLinkStsPktsRxMCS7, coDevWDSInfoMaxNumberOfGroup=coDevWDSInfoMaxNumberOfGroup, coDevWDSLinkStsPktsRxMCS6=coDevWDSLinkStsPktsRxMCS6, colubrisDeviceWdsMIBNotificationPrefix=colubrisDeviceWdsMIBNotificationPrefix, coDevWDSLinkStsPktsTxRate12=coDevWDSLinkStsPktsTxRate12, coDevWDSLinkStsPktsTxRate24=coDevWDSLinkStsPktsTxRate24, coDeviceWDSLinkStatsRatesEntry=coDeviceWDSLinkStatsRatesEntry, coDevWDSLinkStsPktsTxMCS2=coDevWDSLinkStsPktsTxMCS2, coDevWDSLinkStsPktsTxMCS8=coDevWDSLinkStsPktsTxMCS8, coDevWDSLinkStsPktsTxMCS10=coDevWDSLinkStsPktsTxMCS10, coDevWDSLinkStsPktsTxMCS6=coDevWDSLinkStsPktsTxMCS6, coDevWDSLinkStsPktsTxRate2=coDevWDSLinkStsPktsTxRate2, coDevWDSScanChannel=coDevWDSScanChannel, coDevWDSLinkStaIndex=coDevWDSLinkStaIndex, coDevWDSLinkStsPktsTxRate9=coDevWDSLinkStsPktsTxRate9, coDevWDSLinkStsPktsTxMCS12=coDevWDSLinkStsPktsTxMCS12, colubrisDeviceWdsMIBCompliances=colubrisDeviceWdsMIBCompliances, colubrisDeviceWdsGroupMIBGroup=colubrisDeviceWdsGroupMIBGroup, coDevWDSGroupName=coDevWDSGroupName, coDeviceWdsInfoEntry=coDeviceWdsInfoEntry, coDevWDSLinkStsPktsRxMCS8=coDevWDSLinkStsPktsRxMCS8, coDeviceWdsInfoTable=coDeviceWdsInfoTable, coDeviceWDSLinkStatusEntry=coDeviceWDSLinkStatusEntry, coDevWDSLinkStsPktsRxMCS3=coDevWDSLinkStsPktsRxMCS3, coDevWDSScanAvailable=coDevWDSScanAvailable, coDevWDSLinkStaIfIndex=coDevWDSLinkStaIfIndex, coDevWDSLinkStsPktsRxRate54=coDevWDSLinkStsPktsRxRate54, coDevWDSGroupIndex=coDevWDSGroupIndex, colubrisDeviceWdsMIBConformance=colubrisDeviceWdsMIBConformance, coDevWDSLinkStsPktsRxMCS14=coDevWDSLinkStsPktsRxMCS14, coDevWDSLinkStsPktsRxRate48=coDevWDSLinkStsPktsRxRate48, PYSNMP_MODULE_ID=colubrisDeviceWdsMIB, coDevWDSLinkStsPktsRxMCS11=coDevWDSLinkStsPktsRxMCS11, coDevWDSLinkStsPktsRxRate18=coDevWDSLinkStsPktsRxRate18, colubrisDeviceWdsInfoMIBGroup=colubrisDeviceWdsInfoMIBGroup, coDevWDSLinkStsPktsTxRate36=coDevWDSLinkStsPktsTxRate36, coDevWDSLinkStaPeerMacAddress=coDevWDSLinkStaPeerMacAddress, coDevWDSLinkStsPktsRxRate9=coDevWDSLinkStsPktsRxRate9, coDeviceWDSRadioGroup=coDeviceWDSRadioGroup, coDevWDSLinkStsPktsRxRate5dot5=coDevWDSLinkStsPktsRxRate5dot5, coDevWDSLinkStaTxMCS=coDevWDSLinkStaTxMCS, coDevWDSLinkStsPktsTxMCS15=coDevWDSLinkStsPktsTxMCS15, coDevWDSLinkStsPktsRxMCS9=coDevWDSLinkStsPktsRxMCS9, coDevWDSLinkStsPktsTxRate5dot5=coDevWDSLinkStsPktsTxRate5dot5, coDevWDSLinkStsPktsRxMCS13=coDevWDSLinkStsPktsRxMCS13, coDevWDSLinkStsPktsTxMCS0=coDevWDSLinkStsPktsTxMCS0, coDevWDSScanRadioIndex=coDevWDSScanRadioIndex, coDevWDSLinkStsPktsRxRate2=coDevWDSLinkStsPktsRxRate2, coDevWDSLinkStaTxRate=coDevWDSLinkStaTxRate, coDevWDSLinkStaNoise=coDevWDSLinkStaNoise, coDeviceWDSGroupGroup=coDeviceWDSGroupGroup, coDevWDSLinkStsPktsTxRate54=coDevWDSLinkStsPktsTxRate54, colubrisDeviceWdsNetworkScanMIBGroup=colubrisDeviceWdsNetworkScanMIBGroup, coDevWDSScanPeerMacAddress=coDevWDSScanPeerMacAddress, coDeviceWDSLinkGroup=coDeviceWDSLinkGroup, coDevWDSScanGroupId=coDevWDSScanGroupId, coDevWDSGroupDynamicMode=coDevWDSGroupDynamicMode, coDeviceWDSNetworkScanTable=coDeviceWDSNetworkScanTable, coDevWDSLinkStsPktsTxMCS7=coDevWDSLinkStsPktsTxMCS7, coDeviceWDSGroupEntry=coDeviceWDSGroupEntry, coDeviceWDSRadioEntry=coDeviceWDSRadioEntry, coDevWDSLinkStaState=coDevWDSLinkStaState, colubrisDeviceWdsMIB=colubrisDeviceWdsMIB, coDevWDSLinkStaEncryption=coDevWDSLinkStaEncryption, coDeviceWDSLinkStatsRatesTable=coDeviceWDSLinkStatsRatesTable, coDeviceWDSRadioTable=coDeviceWDSRadioTable, coDeviceWDSLinkStatusTable=coDeviceWDSLinkStatusTable, coDevWDSLinkStaAuthorized=coDevWDSLinkStaAuthorized, coDevWDSLinkStsPktsTxMCS5=coDevWDSLinkStsPktsTxMCS5, coDevWDSLinkStsPktsRxMCS5=coDevWDSLinkStsPktsRxMCS5, coDevWDSLinkStaSNR=coDevWDSLinkStaSNR)
age = int(input()) def drinks(drink): print(f"drink {drink}") if age <= 14: drinks("toddy") elif age <= 18: drinks("coke") elif age <= 21: drinks("beer") else: drinks("whisky")
age = int(input()) def drinks(drink): print(f'drink {drink}') if age <= 14: drinks('toddy') elif age <= 18: drinks('coke') elif age <= 21: drinks('beer') else: drinks('whisky')
SECTION_SEPARATOR = "%" * 30 def get_required_node_edges(qualified_node_id, required_node_ids): node_requires = [ f"{required_node_id}-->{qualified_node_id}" for required_node_id in required_node_ids ] return "\n".join(node_requires) def get_icon(dict_value): icon = "" if "icon" in dict_value: icon = f"fa:fa-{dict_value['icon']}" return icon def get_node_content(items, multi_lines_layout=True): separator = "<br/>" if multi_lines_layout else " " # join non empty items return separator.join([i for i in items if i])
section_separator = '%' * 30 def get_required_node_edges(qualified_node_id, required_node_ids): node_requires = [f'{required_node_id}-->{qualified_node_id}' for required_node_id in required_node_ids] return '\n'.join(node_requires) def get_icon(dict_value): icon = '' if 'icon' in dict_value: icon = f"fa:fa-{dict_value['icon']}" return icon def get_node_content(items, multi_lines_layout=True): separator = '<br/>' if multi_lines_layout else ' ' return separator.join([i for i in items if i])
total_food = int(input()) total_food_grams = total_food * 1000 is_food_over = False command = input() while command != 'Adopted': eaten_food = int(command) total_food_grams -= eaten_food if total_food_grams < 0: is_food_over = True command = input() if is_food_over: print(f'Food is not enough. You need {abs(total_food_grams)} grams more.') else: print(f'Food is enough! Leftovers: {abs(total_food_grams)} grams.')
total_food = int(input()) total_food_grams = total_food * 1000 is_food_over = False command = input() while command != 'Adopted': eaten_food = int(command) total_food_grams -= eaten_food if total_food_grams < 0: is_food_over = True command = input() if is_food_over: print(f'Food is not enough. You need {abs(total_food_grams)} grams more.') else: print(f'Food is enough! Leftovers: {abs(total_food_grams)} grams.')
# to get a string like this run: # openssl rand -hex 32 SECRET_KEY = "de45991397da83e674149beb168b17fde74ebd4a8d6ca65310aedc7a082d5309" ALGORITHM = "HS256" ACCESS_TOKEN_EXPIRE_MINUTES = 30
secret_key = 'de45991397da83e674149beb168b17fde74ebd4a8d6ca65310aedc7a082d5309' algorithm = 'HS256' access_token_expire_minutes = 30
#!/usr/bin/env python3 #ccpc20qhda gcd = lambda a,b: b if a==0 else gcd(b%a,a) t = int(input()) for i in range(t): m,n = list(map(int,input().split())) aa = m*(m-1) bb = (m+n)*(m+n-1) c = gcd(aa,bb) print('Case #%d: %d/%d'%(i+1,aa//c,bb//c))
gcd = lambda a, b: b if a == 0 else gcd(b % a, a) t = int(input()) for i in range(t): (m, n) = list(map(int, input().split())) aa = m * (m - 1) bb = (m + n) * (m + n - 1) c = gcd(aa, bb) print('Case #%d: %d/%d' % (i + 1, aa // c, bb // c))
class Room: def __init__(self, lw, rw, name=""): self.id = id(self) self.name = name self.leftWall = lw self.rightWall = rw self.P = 0 self.S = 0 self.W = 0 self.C = 0 self.parseFinish = False def getId(self): return self.id def setRoomName(self, name): self.name = name def getRoomName(self): return self.name def setParseFinish(self): self.parseFinish = True def getParseFinish(self): return self.parseFinish def setLeftWall(self, lw): self.leftWall = lw def getLeftWall(self): return self.leftWall def setRightWall(self, rw): self.rightWall = rw def getRightWall(self): return self.rightWall def getRoomBounds(self): return self.getLeftWall(), self.getRightWall() def getP(self): return self.P def getS(self): return self.S def getC(self): return self.C def getW(self): return self.W def getTotalChairsInRoom(self): return self.getP() + self.getS() + self.getC() + self.getW() def getChairsByType(self, type): if type == "P": return self.getP() elif type == "S": return self.getS() elif type == "C": return self.getC() elif type == "W": return self.getW() def addChairToRoom(self, str): if str == "P": self.P += 1 elif str == "S": self.S += 1 elif str == "W": self.W += 1 elif str == "C": self.C += 1 def __str__(self): return "{}: \n W: {}, P: {}, S: {}, C: {}".format(self.getRoomName(), self.getW(), self.getP(), self.getS(), self.getC()) # Deprecated __str__() method. #def __str__(self): #args = {'id': self.id, 'name': self.name, 'lw': self.leftWall, 'rw': self.rightWall, # 'p': self.P, 's': self.S, 'w': self.W, 'c': self.C, 'st': self.parseFinish} #return '''\nId: {id} #Name: {name} #Left Wall position: {lw} #Right Wall position: {rw} #P: {p} #S: {s} #W: {w} #C: {c} #Closed: {st}'''.format(**args)
class Room: def __init__(self, lw, rw, name=''): self.id = id(self) self.name = name self.leftWall = lw self.rightWall = rw self.P = 0 self.S = 0 self.W = 0 self.C = 0 self.parseFinish = False def get_id(self): return self.id def set_room_name(self, name): self.name = name def get_room_name(self): return self.name def set_parse_finish(self): self.parseFinish = True def get_parse_finish(self): return self.parseFinish def set_left_wall(self, lw): self.leftWall = lw def get_left_wall(self): return self.leftWall def set_right_wall(self, rw): self.rightWall = rw def get_right_wall(self): return self.rightWall def get_room_bounds(self): return (self.getLeftWall(), self.getRightWall()) def get_p(self): return self.P def get_s(self): return self.S def get_c(self): return self.C def get_w(self): return self.W def get_total_chairs_in_room(self): return self.getP() + self.getS() + self.getC() + self.getW() def get_chairs_by_type(self, type): if type == 'P': return self.getP() elif type == 'S': return self.getS() elif type == 'C': return self.getC() elif type == 'W': return self.getW() def add_chair_to_room(self, str): if str == 'P': self.P += 1 elif str == 'S': self.S += 1 elif str == 'W': self.W += 1 elif str == 'C': self.C += 1 def __str__(self): return '{}: \n W: {}, P: {}, S: {}, C: {}'.format(self.getRoomName(), self.getW(), self.getP(), self.getS(), self.getC())
''' @description: Some training parameters @author: liutaiting @lastEditors: liutaiting @Date: 2020-04-01 23:49:35 @LastEditTime: 2020-04-04 23:41:21 ''' EPOCHS = 5 BATCH_SIZE = 32 NUM_CLASSES = 7 image_width = 48 image_height = 48 channels = 1 model_dir = "image_classification_model.h5" train_dir = "dataset/train" valid_dir = "dataset/valid" test_dir = "dataset/test" test_image_path = ""
""" @description: Some training parameters @author: liutaiting @lastEditors: liutaiting @Date: 2020-04-01 23:49:35 @LastEditTime: 2020-04-04 23:41:21 """ epochs = 5 batch_size = 32 num_classes = 7 image_width = 48 image_height = 48 channels = 1 model_dir = 'image_classification_model.h5' train_dir = 'dataset/train' valid_dir = 'dataset/valid' test_dir = 'dataset/test' test_image_path = ''
# Node 'Class' # # written by John C. Lusth, copyright 2012 # # not really an object, a node is an abstraction of # a two-element array the first slot holds the value # the second slot holds the next pointer # # VERSION 1.0 def NodeCreate(value,next): return [value,next] def NodeValue(n): return n[0] def NodeNext(n): return n[1] def NodeSetValue(n,value): n[0] = value; return value def NodeSetNext(n,next): n[1] = next; return next; ## List 'Class' ## # written by John C. Lusth, copyright 2012 # ## not really an object, a list is an abstraction of a node; ## nodes are linked together to form a chain of values ## # ListCreate is variadic def ListCreate(*args): items = None for i in range(len(args)-1,-1,-1): # reverse arg indices items = join(args[i],items) return items # ListHead returns the first value in the list def head(items): return NodeValue(items) # ListTail returns a new list composed of all the real nodes from # the given list except the first real node def tail(items): return NodeNext(items) # setHead replaces the first value in the list def setHead(items,value): NodeSetValue(items,value) return # setTail replaces the tail of a list def setTail(items,next): NodeSetNext(items,next) return # append two lists, attaches the second list at the end of the first def append(items1,items2): node = items1 while (NodeNext(node) != None): node = NodeNext(node) NodeSetNext(node,items2) return # join puts a new value at the front of the list def join(value,items): return NodeCreate(value,items) # ListIndexNode returns the node at the given index def ListIndexNode(items,index): node = items i = 0 while i < index and node != None: node = NodeNext(node) i += 1 if (node == None): raise IndexError("true list index " + str(index) + " is out of bounds") return node # ListIndex returns the value at the given index def ListIndex(items,index): node = ListIndexNode(items,index) return head(node) # ListIndex resets the value at the given index def ListSetIndex(items,index,value): node = ListIndexNode(items,index) setHead(node,value) return # ListToArray returns an equivalently sized array of items def ListToArray(items): #items is an list # first count the number of items count = 0 spot = items while (spot != None): count += 1 spot = tail(spot) # create the array in constant time store = [0] * count # fill out the array spot = items count = 0 while (spot != None): store[count] = head(spot) count += 1 spot = tail(spot) return store # ArrayToList returns an equivalently sized list of items def ArrayToList(items): #items is an array store = ListCreate() for i in range(len(items)-1,-1,-1): store = join(items[i],store); return store # list mapping function def ListMap(f,items): if (items == None): return None else: return join(f(head(items)),ListMap(f,tail(items))) # list filtering function def ListFilter(p,items): if (items == None): return None elif p(head(items)): return join(head(items),ListFilter(p,tail(items))) else: return ListFilter(p,tail(items))
def node_create(value, next): return [value, next] def node_value(n): return n[0] def node_next(n): return n[1] def node_set_value(n, value): n[0] = value return value def node_set_next(n, next): n[1] = next return next def list_create(*args): items = None for i in range(len(args) - 1, -1, -1): items = join(args[i], items) return items def head(items): return node_value(items) def tail(items): return node_next(items) def set_head(items, value): node_set_value(items, value) return def set_tail(items, next): node_set_next(items, next) return def append(items1, items2): node = items1 while node_next(node) != None: node = node_next(node) node_set_next(node, items2) return def join(value, items): return node_create(value, items) def list_index_node(items, index): node = items i = 0 while i < index and node != None: node = node_next(node) i += 1 if node == None: raise index_error('true list index ' + str(index) + ' is out of bounds') return node def list_index(items, index): node = list_index_node(items, index) return head(node) def list_set_index(items, index, value): node = list_index_node(items, index) set_head(node, value) return def list_to_array(items): count = 0 spot = items while spot != None: count += 1 spot = tail(spot) store = [0] * count spot = items count = 0 while spot != None: store[count] = head(spot) count += 1 spot = tail(spot) return store def array_to_list(items): store = list_create() for i in range(len(items) - 1, -1, -1): store = join(items[i], store) return store def list_map(f, items): if items == None: return None else: return join(f(head(items)), list_map(f, tail(items))) def list_filter(p, items): if items == None: return None elif p(head(items)): return join(head(items), list_filter(p, tail(items))) else: return list_filter(p, tail(items))
# 01234567890123456789012345 letters = "abcdefghijklmnopqrstuvwxyz" backwards = letters[25:0:-1] # if I want to print z...a then in line 4 I should write : backwards = letters[25::-1], so the slicing starts printing from 25 backwards to the start INCLUDING the start # create a slice that produces the characters qpo print(letters[16:13:-1]) # slice the string to produce edcba print(letters[4::-1]) # slice the string to produce the last 8 characters, in reverse order print(letters[25:17:-1]) # also I could write print(letters[:-9:-1]) print(backwards) print(letters[-4:]) print(letters[-1:]) print(letters[:1]) print(letters[0])
letters = 'abcdefghijklmnopqrstuvwxyz' backwards = letters[25:0:-1] print(letters[16:13:-1]) print(letters[4::-1]) print(letters[25:17:-1]) print(backwards) print(letters[-4:]) print(letters[-1:]) print(letters[:1]) print(letters[0])
class Solution: def canFinish(self, numCourses: int, prerequisites: List[List[int]]) -> bool: def dfs(course,prerequisite,used): used.add(course) if prerequisites[1] not in used: dfs(prerequisites,prerequisites[1],used) used = set() used_1 = set() ans = dfs(prerequisites[0],used) if ans is None: return True
class Solution: def can_finish(self, numCourses: int, prerequisites: List[List[int]]) -> bool: def dfs(course, prerequisite, used): used.add(course) if prerequisites[1] not in used: dfs(prerequisites, prerequisites[1], used) used = set() used_1 = set() ans = dfs(prerequisites[0], used) if ans is None: return True
class Plugin(object): name = "base" description = "base plugin" def add_arguments(self, parser): pass
class Plugin(object): name = 'base' description = 'base plugin' def add_arguments(self, parser): pass
v, n = [int(x) for x in input().split()] total = v*n for i in range(1, 10): if i>=2: print(" ", end="") print((total*i+9)// 10, end="") print()
(v, n) = [int(x) for x in input().split()] total = v * n for i in range(1, 10): if i >= 2: print(' ', end='') print((total * i + 9) // 10, end='') print()
'''write a simple function to add two integers, demonstrate how to call the function with various inputs''' # call the function add, 2 and 3, print the result to the terminal # call the function add, 2 and 3, save the result as a variable
"""write a simple function to add two integers, demonstrate how to call the function with various inputs"""
l1= [] l2 = [] i = int(input()) for a in range (0,i): a = input() if (a[0]=='1'): l1.append(a[-1]) elif (a[0]=='2'): l2.append(a[-1]) elif (a[0] == '5'): for b in range (0,len(l1)): print (l1[b], end = " ") print() elif (a[0] == '6'): for b in range (0,len(l2)): print (l2[b], end = " ") print()
l1 = [] l2 = [] i = int(input()) for a in range(0, i): a = input() if a[0] == '1': l1.append(a[-1]) elif a[0] == '2': l2.append(a[-1]) elif a[0] == '5': for b in range(0, len(l1)): print(l1[b], end=' ') print() elif a[0] == '6': for b in range(0, len(l2)): print(l2[b], end=' ') print()
# Write a function to rotate an array. You are given the array arr, # n, the size of an array, and d, the number of elements to pivot on # [1,2,3,4,5,6,7], n = 7, d = 2 # [3,4,5,6,7,1,2] def rotate_array(arr, n, d): if n == 0: return None elif n == 1: return arr return arr[d:] + arr[:d] if __name__ == "__main__": arr = [1,2,3,4,5,6,7] arr2 = [2,4,6, 8, 10, 12, 14, 16, 18, 20] n = 10 d = 3 print(rotate_array(arr2, n, d))
def rotate_array(arr, n, d): if n == 0: return None elif n == 1: return arr return arr[d:] + arr[:d] if __name__ == '__main__': arr = [1, 2, 3, 4, 5, 6, 7] arr2 = [2, 4, 6, 8, 10, 12, 14, 16, 18, 20] n = 10 d = 3 print(rotate_array(arr2, n, d))
class Solution: def checkIfPrerequisite(self, n: int, prerequisites: List[List[int]], queries: List[List[int]]) -> List[bool]: graph = collections.defaultdict(list) innodes = collections.defaultdict(list) indegrees = [0] * n for u, v in prerequisites: indegrees[v] += 1 graph[u].append(v) innodes[v].append(u) frees = [] levels = {} level = 0 pres = [set() for _ in range(n)] for u in range(n): if not indegrees[u]: frees.append(u) while frees: next_level = [] for u in frees: levels[u] = level pre = set() for parent in innodes[u]: pre.add(parent) pre |= pres[parent] pres[u] = pre for v in graph[u]: indegrees[v] -= 1 if indegrees[v] == 0: next_level.append(v) frees = next_level level += 1 return [u in pres[v] for u, v in queries]
class Solution: def check_if_prerequisite(self, n: int, prerequisites: List[List[int]], queries: List[List[int]]) -> List[bool]: graph = collections.defaultdict(list) innodes = collections.defaultdict(list) indegrees = [0] * n for (u, v) in prerequisites: indegrees[v] += 1 graph[u].append(v) innodes[v].append(u) frees = [] levels = {} level = 0 pres = [set() for _ in range(n)] for u in range(n): if not indegrees[u]: frees.append(u) while frees: next_level = [] for u in frees: levels[u] = level pre = set() for parent in innodes[u]: pre.add(parent) pre |= pres[parent] pres[u] = pre for v in graph[u]: indegrees[v] -= 1 if indegrees[v] == 0: next_level.append(v) frees = next_level level += 1 return [u in pres[v] for (u, v) in queries]
# Rotting Oranges # https://leetcode.com/problems/rotting-oranges/ # In a given grid, each cell can have one of three values: # the value 0 representing an empty cell; # the value 1 representing a fresh orange; # the value 2 representing a rotten orange. # Every minute, any fresh orange that is adjacent (4-directionally) to a rotten orange becomes rotten. # Return the minimum number of minutes that must elapse until no cell has a fresh orange. # If this is impossible, return -1 instead. # Input: [[2,1,1],[1,1,0],[0,1,1]] # Output: 4 # Input: [[2,1,1],[0,1,1],[1,0,1]] # Output: -1 # Explanation: The orange in the bottom left corner (row 2, column 0) is never rotten, because rotting only # happens 4-directionally. # Input: [[0,2]] # Output: 0 # Explanation: Since there are already no fresh oranges at minute 0, the answer is just 0. # 1 <= grid.length <= 10 # 1 <= grid[0].length <= 10 # grid[i][j] is only 0, 1, or 2 def oranges_rotting(grid): minute_count = 0 def create_set(grid, target_value): result = set() for y in range(len(grid)): for x in range(len(grid[0])): if grid[y][x] == target_value: result.add((x, y)) return result # create a set of rotten & fresh orange locations rotten_os = create_set(grid, 2) fresh_oranges = create_set(grid, 1) length_fresh = len(fresh_oranges) # For each time interval iteration while length_fresh > 0: going_bad = set() # loop through fresh oranges and create a set going bad for x, y in fresh_oranges: up_cell = (x - 1, y) down_cell = (x + 1, y) left_cell = (x, y - 1) right_cell = (x, y + 1) if ( up_cell in rotten_os or down_cell in rotten_os or left_cell in rotten_os or right_cell in rotten_os ): currently_going_bad = (x, y) going_bad.add(currently_going_bad) # if none are going bad, it's impossible length_gb = len(going_bad) if length_gb == 0: return -1 # remove oranges going bad from fresh and add to rotten fresh_oranges.difference_update(going_bad) rotten_os.update(going_bad) minute_count += 1 length_fresh = len(fresh_oranges) return minute_count # 4 grid = [[2, 1, 1], [1, 1, 0], [0, 1, 1]] print(oranges_rotting(grid)) # -1 grid = [[2, 1, 1], [0, 1, 1], [1, 0, 1]] print(oranges_rotting(grid)) # 0 grid = [[0, 2]] print(oranges_rotting(grid))
def oranges_rotting(grid): minute_count = 0 def create_set(grid, target_value): result = set() for y in range(len(grid)): for x in range(len(grid[0])): if grid[y][x] == target_value: result.add((x, y)) return result rotten_os = create_set(grid, 2) fresh_oranges = create_set(grid, 1) length_fresh = len(fresh_oranges) while length_fresh > 0: going_bad = set() for (x, y) in fresh_oranges: up_cell = (x - 1, y) down_cell = (x + 1, y) left_cell = (x, y - 1) right_cell = (x, y + 1) if up_cell in rotten_os or down_cell in rotten_os or left_cell in rotten_os or (right_cell in rotten_os): currently_going_bad = (x, y) going_bad.add(currently_going_bad) length_gb = len(going_bad) if length_gb == 0: return -1 fresh_oranges.difference_update(going_bad) rotten_os.update(going_bad) minute_count += 1 length_fresh = len(fresh_oranges) return minute_count grid = [[2, 1, 1], [1, 1, 0], [0, 1, 1]] print(oranges_rotting(grid)) grid = [[2, 1, 1], [0, 1, 1], [1, 0, 1]] print(oranges_rotting(grid)) grid = [[0, 2]] print(oranges_rotting(grid))
def travel(n,I,O): l1=[] #print(I,O) for i in range(n): l4=[] for j in range(n): if i==j: l4.append(1) else: l4.append(0) l1.append(l4) #print(l1) #print(l1[0].index(1)) for out in range(n): incoming=out outgoing=out while(incoming!=0): incoming-=1 #print(outgoing,incoming,O[outgoing],I[incoming]) if O[outgoing]=='Y' and I[incoming]=='Y': l1[out][incoming]=1 outgoing-=1 else: break #print(l1) for out in range(n): incoming=out outgoing=out while(incoming!=(n-1)): incoming+=1 #print(outgoing,incoming,O[outgoing],I[incoming]) if O[outgoing]=='Y' and I[incoming]=='Y': l1[out][incoming]=1 outgoing+=1 else: break #print(l1) for i in range(n): for j in range(n): if l1[i][j]==1: print('Y',end="") else: print('N',end="") print() t=int(input()) for i in range(t): n=int(input()) I=input() I=list(I) O=input() O=list(O) print("Case #",i+1,":",sep="") travel(n,I,O)
def travel(n, I, O): l1 = [] for i in range(n): l4 = [] for j in range(n): if i == j: l4.append(1) else: l4.append(0) l1.append(l4) for out in range(n): incoming = out outgoing = out while incoming != 0: incoming -= 1 if O[outgoing] == 'Y' and I[incoming] == 'Y': l1[out][incoming] = 1 outgoing -= 1 else: break for out in range(n): incoming = out outgoing = out while incoming != n - 1: incoming += 1 if O[outgoing] == 'Y' and I[incoming] == 'Y': l1[out][incoming] = 1 outgoing += 1 else: break for i in range(n): for j in range(n): if l1[i][j] == 1: print('Y', end='') else: print('N', end='') print() t = int(input()) for i in range(t): n = int(input()) i = input() i = list(I) o = input() o = list(O) print('Case #', i + 1, ':', sep='') travel(n, I, O)
# Here 'n' is the number of rows and columns def pattern(n): for a in range(n): print("* "*n,end="\n") pattern(5) ''' this will return * * * * * * * * * * * * * * * * * * * * * * * * * '''
def pattern(n): for a in range(n): print('* ' * n, end='\n') pattern(5) '\n\nthis will return \n\n* * * * *\n* * * * *\n* * * * *\n* * * * *\n* * * * *\n\n'
# ... client initialization left out data_client = client.data file_path = "characterizations/CdTe1.json" dataset_id = 1 data_client.upload(dataset_id, file_path)
data_client = client.data file_path = 'characterizations/CdTe1.json' dataset_id = 1 data_client.upload(dataset_id, file_path)
# Python Loops # for [iterator] in [sequence] # [sequence] = range(start, end, step) print ("\nLoop with range") evenodd = lambda n : "even" if n % 2 == 0 else "odd" for i in range(1, 11): print (i, "is " + str(evenodd(i))) print ("\nLoop in range with step") for i in range(1, 11, 2): print (i, "is " + str(evenodd(i))) print ("\nLoop through list") flist = [0.1, 1.1, 2.1, 3.1, 4.1, 5.1] for i in flist: print (i) print ("\nLoop through range cast on a list") for i in range(0, len(flist)): print (flist[i]) print ("\nLoop through range cast on a list") for i in range(0, len(flist), 2): print (flist[i]) print ("\nNested Loop for matrix multiplication") m1 = [1, 2, 3, 4] # single row matrix m2 = [4, 3, 2, 1] # single column matrix k = 0 if len(m1) != len(m2): print ("Incompatible matrix dimensions") for i in range(0, len(m1)): for j in range(0, len(m2)): if i == j: k += m1[i] * m2[j] print (str(i+1) + "," + str(j+1) + ": " + str(m1[i]*m2[j])) print ("Output: ", k) #flist = ['m','a','l','a','y','a','l','a','m'] print ("\nBrake for moose") for i in m1: for j in m2: print (str(i) + "," + str(j)) if i == j+1: print (str(i) + " is one greater than " + str(j) + ". Exiting") break # this only breaks out of the inner loop print ("\nContinue for coons") for i in m1: for j in m2: if i == j: continue print (str(i) + "," + str(j)) print ("\nIt's been a while ...") flist = [1.0, 1.1, 1.2, 1.3, 1.4, 1.5] i = 1; while i in flist: print ("i: " + str(i)) i += 0.2 print ("\Quiz") strlist = ["Anakin", "Vader", "Luke", "Leia", "Rey"] for s in strlist: if len(s) < 5: print (s + ":" + str(len(s))) i = 0 while (i < len(strlist)): if len(strlist[i]) < 5: print (len(strlist[i])) i += 1 print ("\nBalanced Braces") # Given "[[[[][][]]]" return true if left braces match with closing right braces #braces = "[[[[][][]]]" #braces = "[[[[]]]][][" #braces = "[[[[]]]]" #braces = "]]]][[[[" braces = "[]][[]" left = 0 right = 0 i = 0 brace_open = 0 while i < len(braces): # base case if i == 0 and braces[i] == "]": print ("False: starts with ]") right += 1 break if (braces[i] == "["): left += 1 brace_open += 1 if (braces[i] == "]"): right += 1 if brace_open >= 1: brace_open -= 1 else: pass # don't care i += 1 if left != right or brace_open > 0: print ("False: Left:" + str(left) + " Right:" + str(right)) else: print ("True: Left:" + str(left) + " Right:" + str(right)) print ("\nSimpler code") def check_balance(braces): check = 0 for brace in braces: if brace == '[': check += 1 elif brace == ']': check -= 1 if check < 0: break return check == 0 #braces = "[[[[][][]]]" #braces = "[[[[]]]][][" #braces = "[[[[]]]]" #braces = "]]]][[[[" #braces = "[]][[]" ret = check_balance(braces) if ret == True: print (braces + " is balanced") else: print (braces + " is unbalanced") print ("\nCheckSum to zero") def check_sum(nlist): for num in nlist: for complement in nlist: if num + complement == 0: return True return False numlist = [10, -14, 26, 5, -3, 13, -5] #numlist = [10, -14, 26, 5, -3] if check_sum(numlist): print ("Sum checks") else: print ("Sum does not check") # 0 1 1 2 3 5 8 13 21 print ("\nFibonacci with loops") def fib(n): n1 = 0 n2 = 1 if (n < 1): return -1 if (n == 1): return n1 if (n == 2): return n2 nth = 3 # if you use for loop here, Py complains that val is uninitialized while (nth <= n): val = n1 + n2 n1 = n2 n2 = val nth += 1 return val print ("-1: " + str(fib(-1))) print ("0: " + str(fib(0))) print ("1: " + str(fib(1))) print ("2: " + str(fib(2))) print ("3: " + str(fib(3))) print ("4: " + str(fib(4))) print ("5: " + str(fib(5))) print ("6: " + str(fib(6))) print ("7: " + str(fib(7)))
print('\nLoop with range') evenodd = lambda n: 'even' if n % 2 == 0 else 'odd' for i in range(1, 11): print(i, 'is ' + str(evenodd(i))) print('\nLoop in range with step') for i in range(1, 11, 2): print(i, 'is ' + str(evenodd(i))) print('\nLoop through list') flist = [0.1, 1.1, 2.1, 3.1, 4.1, 5.1] for i in flist: print(i) print('\nLoop through range cast on a list') for i in range(0, len(flist)): print(flist[i]) print('\nLoop through range cast on a list') for i in range(0, len(flist), 2): print(flist[i]) print('\nNested Loop for matrix multiplication') m1 = [1, 2, 3, 4] m2 = [4, 3, 2, 1] k = 0 if len(m1) != len(m2): print('Incompatible matrix dimensions') for i in range(0, len(m1)): for j in range(0, len(m2)): if i == j: k += m1[i] * m2[j] print(str(i + 1) + ',' + str(j + 1) + ': ' + str(m1[i] * m2[j])) print('Output: ', k) print('\nBrake for moose') for i in m1: for j in m2: print(str(i) + ',' + str(j)) if i == j + 1: print(str(i) + ' is one greater than ' + str(j) + '. Exiting') break print('\nContinue for coons') for i in m1: for j in m2: if i == j: continue print(str(i) + ',' + str(j)) print("\nIt's been a while ...") flist = [1.0, 1.1, 1.2, 1.3, 1.4, 1.5] i = 1 while i in flist: print('i: ' + str(i)) i += 0.2 print('\\Quiz') strlist = ['Anakin', 'Vader', 'Luke', 'Leia', 'Rey'] for s in strlist: if len(s) < 5: print(s + ':' + str(len(s))) i = 0 while i < len(strlist): if len(strlist[i]) < 5: print(len(strlist[i])) i += 1 print('\nBalanced Braces') braces = '[]][[]' left = 0 right = 0 i = 0 brace_open = 0 while i < len(braces): if i == 0 and braces[i] == ']': print('False: starts with ]') right += 1 break if braces[i] == '[': left += 1 brace_open += 1 if braces[i] == ']': right += 1 if brace_open >= 1: brace_open -= 1 else: pass i += 1 if left != right or brace_open > 0: print('False: Left:' + str(left) + ' Right:' + str(right)) else: print('True: Left:' + str(left) + ' Right:' + str(right)) print('\nSimpler code') def check_balance(braces): check = 0 for brace in braces: if brace == '[': check += 1 elif brace == ']': check -= 1 if check < 0: break return check == 0 ret = check_balance(braces) if ret == True: print(braces + ' is balanced') else: print(braces + ' is unbalanced') print('\nCheckSum to zero') def check_sum(nlist): for num in nlist: for complement in nlist: if num + complement == 0: return True return False numlist = [10, -14, 26, 5, -3, 13, -5] if check_sum(numlist): print('Sum checks') else: print('Sum does not check') print('\nFibonacci with loops') def fib(n): n1 = 0 n2 = 1 if n < 1: return -1 if n == 1: return n1 if n == 2: return n2 nth = 3 while nth <= n: val = n1 + n2 n1 = n2 n2 = val nth += 1 return val print('-1: ' + str(fib(-1))) print('0: ' + str(fib(0))) print('1: ' + str(fib(1))) print('2: ' + str(fib(2))) print('3: ' + str(fib(3))) print('4: ' + str(fib(4))) print('5: ' + str(fib(5))) print('6: ' + str(fib(6))) print('7: ' + str(fib(7)))
path = "input.txt" file = open(path) input = file.readlines() file.close() all_fish = [[int(x) for x in line.split(",")] for line in input][0] for i in range(80): new = 0 for idx in range(len(all_fish)): if all_fish[idx] == 0: all_fish[idx] = 6 new += 1 else: all_fish[idx] -= 1 all_fish += [8 for _ in range(new)] print(len(all_fish))
path = 'input.txt' file = open(path) input = file.readlines() file.close() all_fish = [[int(x) for x in line.split(',')] for line in input][0] for i in range(80): new = 0 for idx in range(len(all_fish)): if all_fish[idx] == 0: all_fish[idx] = 6 new += 1 else: all_fish[idx] -= 1 all_fish += [8 for _ in range(new)] print(len(all_fish))
def test1_3(): n = 1 while True: time1 = 100*n**2 time2 = 2**n if time1 >= time2: n += 1 else: break print(n, time1, time2) test1_3()
def test1_3(): n = 1 while True: time1 = 100 * n ** 2 time2 = 2 ** n if time1 >= time2: n += 1 else: break print(n, time1, time2) test1_3()
def numDepthIncreases(): ''' Problem: https://adventofcode.com/2021/day/1/ ''' with open("data.txt") as f: data = f.readlines() num_depth_increases = 0 for i, line in enumerate(data): if i > 0 and i <= len(data): if int(line.strip('\n')) > int(data[i-1].strip('\n')): num_depth_increases += 1 return num_depth_increases numDepthIncreases()
def num_depth_increases(): """ Problem: https://adventofcode.com/2021/day/1/ """ with open('data.txt') as f: data = f.readlines() num_depth_increases = 0 for (i, line) in enumerate(data): if i > 0 and i <= len(data): if int(line.strip('\n')) > int(data[i - 1].strip('\n')): num_depth_increases += 1 return num_depth_increases num_depth_increases()
class ServiceReviewHistory: def __init__(self, org_uuid, service_uuid, service_metadata, state, reviewed_by, reviewed_on, created_on, updated_on): self._org_uuid = org_uuid self._service_uuid = service_uuid self._service_metadata = service_metadata self._state = state self._reviewed_by = reviewed_by self._reviewed_on = reviewed_on self._created_on = created_on self._updated_on = updated_on def to_dict(self): return { "org_uuid": self._org_uuid, "service_uuid": self._service_uuid, "service_metadata": self._service_metadata, "state": self._state, "reviewed_by": self._reviewed_by, "reviewed_on": self._reviewed_on, "created_on": self._created_on, "updated_on": self._updated_on } @property def org_uuid(self): return self._org_uuid @property def service_uuid(self): return self._service_uuid @property def service_metadata(self): return self._service_metadata @property def state(self): return self._state @property def reviewed_by(self): return self._reviewed_by @property def reviewed_on(self): return self._reviewed_on @property def created_on(self): return self._created_on @property def updated_on(self): return self._updated_on
class Servicereviewhistory: def __init__(self, org_uuid, service_uuid, service_metadata, state, reviewed_by, reviewed_on, created_on, updated_on): self._org_uuid = org_uuid self._service_uuid = service_uuid self._service_metadata = service_metadata self._state = state self._reviewed_by = reviewed_by self._reviewed_on = reviewed_on self._created_on = created_on self._updated_on = updated_on def to_dict(self): return {'org_uuid': self._org_uuid, 'service_uuid': self._service_uuid, 'service_metadata': self._service_metadata, 'state': self._state, 'reviewed_by': self._reviewed_by, 'reviewed_on': self._reviewed_on, 'created_on': self._created_on, 'updated_on': self._updated_on} @property def org_uuid(self): return self._org_uuid @property def service_uuid(self): return self._service_uuid @property def service_metadata(self): return self._service_metadata @property def state(self): return self._state @property def reviewed_by(self): return self._reviewed_by @property def reviewed_on(self): return self._reviewed_on @property def created_on(self): return self._created_on @property def updated_on(self): return self._updated_on
class Solution: def XXX(self, n: int) -> str: dp = '1' for i in range(n-1): s, cur_char, cnt, dp = dp, dp[0], 0, '' for index in range(len(s)): if s[index] == cur_char: cnt += 1 else: dp += str(cnt) + cur_char cur_char = s[index] cnt = 1 dp += str(cnt) + cur_char return dp
class Solution: def xxx(self, n: int) -> str: dp = '1' for i in range(n - 1): (s, cur_char, cnt, dp) = (dp, dp[0], 0, '') for index in range(len(s)): if s[index] == cur_char: cnt += 1 else: dp += str(cnt) + cur_char cur_char = s[index] cnt = 1 dp += str(cnt) + cur_char return dp
def starts_with_vowel(word: str) -> bool: return word[0].lower() in "aeiou" def translate_word(word: str) -> str: if starts_with_vowel(word): return word + "yay" vowel_index = 0 for index, letter in enumerate(word): if starts_with_vowel(letter): vowel_index = index break return word[vowel_index:] + word[:vowel_index] + "ay" def translate_list(word_list: list[str]) -> list[str]: return [translate_word(word) for word in word_list] if __name__ == "__main__": print(starts_with_vowel("apple")) print(starts_with_vowel("ball")) print(translate_word("hockey")) print(translate_list(["hello", "I", "am", "very", "exited", "to", "see", "you"]))
def starts_with_vowel(word: str) -> bool: return word[0].lower() in 'aeiou' def translate_word(word: str) -> str: if starts_with_vowel(word): return word + 'yay' vowel_index = 0 for (index, letter) in enumerate(word): if starts_with_vowel(letter): vowel_index = index break return word[vowel_index:] + word[:vowel_index] + 'ay' def translate_list(word_list: list[str]) -> list[str]: return [translate_word(word) for word in word_list] if __name__ == '__main__': print(starts_with_vowel('apple')) print(starts_with_vowel('ball')) print(translate_word('hockey')) print(translate_list(['hello', 'I', 'am', 'very', 'exited', 'to', 'see', 'you']))
BuildSettingInfo = provider() def _string_imp(ctx): value = ctx.build_setting_value label = ctx.label.name print("evaluated value for " + label + ": " + value) return BuildSettingInfo(value = value) string_flag = rule( implementation = _string_imp, # https://docs.bazel.build/versions/main/skylark/config.html#the-build_setting-rule-parameter build_setting = config.string(flag = True), )
build_setting_info = provider() def _string_imp(ctx): value = ctx.build_setting_value label = ctx.label.name print('evaluated value for ' + label + ': ' + value) return build_setting_info(value=value) string_flag = rule(implementation=_string_imp, build_setting=config.string(flag=True))
for _ in range(int(input())): tot = 0 lst = list(map(int, input().split())) for i in range(1, len(lst)): if lst[i] > lst[i - 1] * 2: tot += (lst[i] - 2 * lst[i - 1]) print(tot)
for _ in range(int(input())): tot = 0 lst = list(map(int, input().split())) for i in range(1, len(lst)): if lst[i] > lst[i - 1] * 2: tot += lst[i] - 2 * lst[i - 1] print(tot)
class ModuleAggregator: def __init__(self, registry_name) -> None: self.registry_name = registry_name self._registry = {} def __getitem__(self, key): if isinstance(key, str): return self._registry[key] return key def register(self, name=None): def wrapper(func): self._registry[name if name != None else func.__name__] = func return func return wrapper
class Moduleaggregator: def __init__(self, registry_name) -> None: self.registry_name = registry_name self._registry = {} def __getitem__(self, key): if isinstance(key, str): return self._registry[key] return key def register(self, name=None): def wrapper(func): self._registry[name if name != None else func.__name__] = func return func return wrapper
parrot = 'NORWEGIAN BLUE' print(parrot) print(parrot[3]) print(parrot[4]) print() print(parrot[3]) print(parrot[6]) print(parrot[8]) print() print(parrot[-4:]) print() number = '9,243;365:248 978;269' separators = number[1::4] print(separators)
parrot = 'NORWEGIAN BLUE' print(parrot) print(parrot[3]) print(parrot[4]) print() print(parrot[3]) print(parrot[6]) print(parrot[8]) print() print(parrot[-4:]) print() number = '9,243;365:248 978;269' separators = number[1::4] print(separators)
class User: ''' class that generates new instances of users ''' user_list = [] #empty user list def __init__(self,username,password): self.username = username self.password = password def registration(self): ''' registration method adds users to the system ''' User.user_list.append(self) class Credentials: ''' class that generates user credentials ''' credentials_list = [] #empty credentials list def __init__(self,information_details): self.information_details = information_details def save_credentials(self): ''' save credentialsmethod saves credentials object into the credentials_list ''' Credentials.credentials_list.append(self)
class User: """ class that generates new instances of users """ user_list = [] def __init__(self, username, password): self.username = username self.password = password def registration(self): """ registration method adds users to the system """ User.user_list.append(self) class Credentials: """ class that generates user credentials """ credentials_list = [] def __init__(self, information_details): self.information_details = information_details def save_credentials(self): """ save credentialsmethod saves credentials object into the credentials_list """ Credentials.credentials_list.append(self)
app_name = 'price_analysis' urlpatterns = []
app_name = 'price_analysis' urlpatterns = []
# -*- coding: utf-8 -*- class Model(object): pass class NullModel(Model): def __init__(self): pass @property def name(self): return ''
class Model(object): pass class Nullmodel(Model): def __init__(self): pass @property def name(self): return ''
# # PySNMP MIB module HUAWEI-PWE3-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HUAWEI-PWE3-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:45: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) # OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ConstraintsIntersection, ConstraintsUnion, ValueSizeConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsIntersection", "ConstraintsUnion", "ValueSizeConstraint", "ValueRangeConstraint") hwDatacomm, = mibBuilder.importSymbols("HUAWEI-MIB", "hwDatacomm") HWL2VpnVcEncapsType, HWEnableValue, HWL2VpnStateChangeReason = mibBuilder.importSymbols("HUAWEI-VPLS-EXT-MIB", "HWL2VpnVcEncapsType", "HWEnableValue", "HWL2VpnStateChangeReason") InterfaceIndexOrZero, ifName = mibBuilder.importSymbols("IF-MIB", "InterfaceIndexOrZero", "ifName") InetAddressType, = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddressType") EnabledStatus, = mibBuilder.importSymbols("P-BRIDGE-MIB", "EnabledStatus") NotificationGroup, ObjectGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ObjectGroup", "ModuleCompliance") sysUpTime, = mibBuilder.importSymbols("SNMPv2-MIB", "sysUpTime") iso, NotificationType, Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, IpAddress, ModuleIdentity, Counter64, Bits, TimeTicks, Gauge32, Bits, ObjectIdentity, MibIdentifier, Unsigned32, Counter32 = mibBuilder.importSymbols("SNMPv2-SMI", "iso", "NotificationType", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "IpAddress", "ModuleIdentity", "Counter64", "Bits", "TimeTicks", "Gauge32", "Bits", "ObjectIdentity", "MibIdentifier", "Unsigned32", "Counter32") DisplayString, TextualConvention, RowStatus, TruthValue = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention", "RowStatus", "TruthValue") hwL2VpnPwe3 = ModuleIdentity((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4)) if mibBuilder.loadTexts: hwL2VpnPwe3.setLastUpdated('200704120900Z') if mibBuilder.loadTexts: hwL2VpnPwe3.setOrganization('Huawei Technologies Co., Ltd.') if mibBuilder.loadTexts: hwL2VpnPwe3.setContactInfo('R&D BeiJing, Huawei Technologies co.,Ltd. Huawei Bld.,NO.3 Xinxi Rd., Shang-Di Information Industry Base, Hai-Dian District Beijing P.R. China Zip:100085 Http://www.huawei.com E-mail:support@huawei.com') if mibBuilder.loadTexts: hwL2VpnPwe3.setDescription('The HUAWEI-PWE3-MIB contains objects to manage PWE3.') class HWLdpPwStateChangeReason(TextualConvention, Integer32): description = "The type indicates the reason of LDP PW VC's status change: LDP session down (1) AC interface down (2) PSN tunnel state down (3) Mapping message not received (4) PW interface parameter not match (5) Notification not forwarding (6) " status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6)) namedValues = NamedValues(("ldpSessionDown", 1), ("interfaceDown", 2), ("tunnelDown", 3), ("receivedNoMapping", 4), ("paraUnMatched", 5), ("notifiNotForward", 6)) hwL2Vpn = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119)) hwPwe3MIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1)) hwPwe3Objects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1)) hwPWVcTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1), ) if mibBuilder.loadTexts: hwPWVcTable.setStatus('current') if mibBuilder.loadTexts: hwPWVcTable.setDescription('This table is the VC configuration table. Users can create or delete a VC by it.') hwPWVcEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1), ).setIndexNames((0, "HUAWEI-PWE3-MIB", "hwPWVcID"), (0, "HUAWEI-PWE3-MIB", "hwPWVcType")) if mibBuilder.loadTexts: hwPWVcEntry.setStatus('current') if mibBuilder.loadTexts: hwPWVcEntry.setDescription('Provides the information of a VC entry.') hwPWVcID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 1), Unsigned32()) if mibBuilder.loadTexts: hwPWVcID.setStatus('current') if mibBuilder.loadTexts: hwPWVcID.setDescription("Index for the conceptual row identifying a PW within this PW Emulation table.Used in the outgoing PW ID field within the 'Virtual Circuit FEC Element'.") hwPWVcType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 2), HWL2VpnVcEncapsType()) if mibBuilder.loadTexts: hwPWVcType.setStatus('current') if mibBuilder.loadTexts: hwPWVcType.setDescription('The type of the Virtual Circuit.This value indicate the service to be carried over this PW.') hwPWVcPeerAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 3), InetAddressType().clone('ipv4')).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcPeerAddrType.setStatus('current') if mibBuilder.loadTexts: hwPWVcPeerAddrType.setDescription("Denotes the address type of the peer node. It should be set to 'unknown' if PE/PW maintenance protocol is not used and the address is unknown. Currently, support 'ipv4' only.") hwPWVcPeerAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 4), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcPeerAddr.setStatus('current') if mibBuilder.loadTexts: hwPWVcPeerAddr.setDescription("This object contain the value of the peer node address of the PW/PE maintenance protocol entity. This object SHOULD contain a value of all zeroes if not applicable (hwPWVcPeerAddrType is 'unknown').") hwPWVcStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("plugout", 3), ("backup", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcStatus.setStatus('current') if mibBuilder.loadTexts: hwPWVcStatus.setDescription("Indicates the status of the PW in the local node. Currently, can't support 'plugout'.") hwPWVcInboundLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 6), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcInboundLabel.setStatus('current') if mibBuilder.loadTexts: hwPWVcInboundLabel.setDescription('For ldp vc, the value will be created by system automatically.') hwPWVcOutboundLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 7), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcOutboundLabel.setStatus('current') if mibBuilder.loadTexts: hwPWVcOutboundLabel.setDescription('For ldp vc, the value will be created by system automatically.') hwPWVcSwitchSign = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("staticTostatic", 1), ("ldpTostatic", 2), ("ldpToldp", 3), ("upe", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcSwitchSign.setStatus('current') if mibBuilder.loadTexts: hwPWVcSwitchSign.setDescription('The sign of switch.') hwPWVcSwitchID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 9), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcSwitchID.setStatus('current') if mibBuilder.loadTexts: hwPWVcSwitchID.setDescription("Used in the outgoing PW ID field within the 'Virtual Circuit FEC Element' of the switch PW.") hwPWVcSwitchPeerAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 10), InetAddressType().clone('ipv4')).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcSwitchPeerAddrType.setStatus('current') if mibBuilder.loadTexts: hwPWVcSwitchPeerAddrType.setDescription("Denotes the address type of the peer node of the switch PW. It should be set to 'unknown' if PE/PW maintenance protocol is not used and the address is unknown. Currently, support 'ipv4' only.") hwPWVcSwitchPeerAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 11), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcSwitchPeerAddr.setStatus('current') if mibBuilder.loadTexts: hwPWVcSwitchPeerAddr.setDescription("This object contain the value of the peer node address of the switch PW of the PW/PE maintenance protocol entity. This object SHOULD contain a value of all zeroes if not applicable (hwPWVcSwitchPeerAddrType is 'unknown').") hwPWVcSwitchInboundLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 12), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcSwitchInboundLabel.setStatus('current') if mibBuilder.loadTexts: hwPWVcSwitchInboundLabel.setDescription('For ldp vc, the value will be created by system automatically.') hwPWVcSwitchOutboundLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 13), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcSwitchOutboundLabel.setStatus('current') if mibBuilder.loadTexts: hwPWVcSwitchOutboundLabel.setDescription('For ldp vc, the value will be created by system automatically.') hwPWVcGroupID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 14), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcGroupID.setStatus('current') if mibBuilder.loadTexts: hwPWVcGroupID.setDescription("Used in the Group ID field sent to the peer PWES within the maintenance protocol used for PW setup. Applicable if pwVcOwner equal 'pwIdFecSignaling' or 'l2tpControlProtocol', should be set to zero otherwise. Currently, this value always be zero.") hwPWVcIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 15), InterfaceIndexOrZero()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcIfIndex.setStatus('current') if mibBuilder.loadTexts: hwPWVcIfIndex.setDescription('Index of the interface (or the virtual interface) associated with the PW.') hwPWVcAcStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("plugout", 3), ("notify", 4), ("notifyDown", 5), ("downNotify", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcAcStatus.setStatus('current') if mibBuilder.loadTexts: hwPWVcAcStatus.setDescription("Local AC status. Currently, can't support 'plugout'.") hwPWVcACOAMStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("up", 1), ("down", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcACOAMStatus.setStatus('current') if mibBuilder.loadTexts: hwPWVcACOAMStatus.setDescription("Denotes the AC's protocol is operational or not.") hwPWVcMtu = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(46, 9600), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcMtu.setStatus('current') if mibBuilder.loadTexts: hwPWVcMtu.setDescription('If not equal zero, the optional Mtu object in the signaling protocol will be sent with this value, representing the locally supported MTU size over the interface (or the virtual interface) associated with the PW.') hwPWVcCtrlWord = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 19), HWEnableValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcCtrlWord.setStatus('current') if mibBuilder.loadTexts: hwPWVcCtrlWord.setDescription('If signaling is used for PW establishment, this object indicates the status of the control word negotiation, and in both signaling or manual configuration indicates if CW is to be present or not for this PW.') hwPWVcVCCV = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 20), Bits().clone(namedValues=NamedValues(("ccCw", 0), ("ccAlert", 1), ("ccLabel", 2), ("cvIcmpping", 3), ("cvLspping", 4), ("cvBfd", 5), ("ccTtl", 6)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcVCCV.setStatus('current') if mibBuilder.loadTexts: hwPWVcVCCV.setDescription('Indicates the optional VCCV capabilities of the PW. According to whether the control word is enabled, the value can be ccCw(0)|ccAlert(1)|ccTtl(6)|cvLspping(4)|cvBfd(5) or ccAlert(1)|ccTtl(6)|cvLspping(4)|cvBfd(5). The default value is ccAlert(1)|ccTtl(6)|cvLspping(4)|cvBfd(5).') hwPWVcBandWidth = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 21), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 32000000))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcBandWidth.setStatus('current') if mibBuilder.loadTexts: hwPWVcBandWidth.setDescription("This object indicates the bandwidth. '0' is the default value.") hwPWVcMaxAtmCells = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 22), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 28))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcMaxAtmCells.setStatus('current') if mibBuilder.loadTexts: hwPWVcMaxAtmCells.setDescription('Indicates the max cell supported when vc type is atm.') hwPWVcTnlPolicyName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 23), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 39))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcTnlPolicyName.setStatus('current') if mibBuilder.loadTexts: hwPWVcTnlPolicyName.setDescription('Indicates the tunnel policy name used.') hwPWVcQoSBehaviorIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 24), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcQoSBehaviorIndex.setStatus('current') if mibBuilder.loadTexts: hwPWVcQoSBehaviorIndex.setDescription("Indicates the traffic behavior Index when QOS is implemented. Currently,can't support.Return the default value is '0'.") hwPWVcExplicitPathName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 25), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcExplicitPathName.setStatus('current') if mibBuilder.loadTexts: hwPWVcExplicitPathName.setDescription("Indicates the explicit path name set by the operator.Currently, can't support.") hwPWVcTemplateName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 26), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 19))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcTemplateName.setStatus('current') if mibBuilder.loadTexts: hwPWVcTemplateName.setDescription('Indicates the PW template index referenced.') hwPWVcSecondary = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 27), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcSecondary.setStatus('current') if mibBuilder.loadTexts: hwPWVcSecondary.setDescription('Indicates whether or not the secondary PW is used.') hwPWVcUpTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 28), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcUpTime.setStatus('current') if mibBuilder.loadTexts: hwPWVcUpTime.setDescription('Indicates the duration when the PW keeps Up for the last time, in seconds.') hwPWOAMSync = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 29), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWOAMSync.setStatus('current') if mibBuilder.loadTexts: hwPWOAMSync.setDescription('Denotes the AC and PSN are enable or not.') hwPWVCForBfdIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 30), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVCForBfdIndex.setStatus('current') if mibBuilder.loadTexts: hwPWVCForBfdIndex.setDescription('The index of PW for BFD.') hwPWVcDelayTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 31), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcDelayTime.setStatus('current') if mibBuilder.loadTexts: hwPWVcDelayTime.setDescription('The reroute delay time.') hwPWVcReroutePolicy = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 32), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("delay", 1), ("immediately", 2), ("never", 3), ("none", 4), ("err", 5), ("invalid", 6), ("immediatelySwitch", 7)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcReroutePolicy.setStatus('current') if mibBuilder.loadTexts: hwPWVcReroutePolicy.setDescription('Reroute policy.') hwPWVcResumeTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 33), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcResumeTime.setStatus('current') if mibBuilder.loadTexts: hwPWVcResumeTime.setDescription('The reroute resume time.') hwPWVcRerouteReason = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 34), HWL2VpnStateChangeReason()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcRerouteReason.setStatus('current') if mibBuilder.loadTexts: hwPWVcRerouteReason.setDescription('Last reroute reason.') hwPWVcLastRerouteTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 35), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcLastRerouteTime.setStatus('current') if mibBuilder.loadTexts: hwPWVcLastRerouteTime.setDescription('Last reroute time.') hwPWVcManualSetFault = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 36), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcManualSetFault.setStatus('current') if mibBuilder.loadTexts: hwPWVcManualSetFault.setDescription('Denotes the manual has been set fault or not.') hwPWVcActive = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 37), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcActive.setStatus('current') if mibBuilder.loadTexts: hwPWVcActive.setDescription('Denotes the current vc is active or not.') hwPWVcVrIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 38), InterfaceIndexOrZero()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcVrIfIndex.setStatus('current') if mibBuilder.loadTexts: hwPWVcVrIfIndex.setDescription('Denotes the VRRP interface this PW binding to.') hwPWVcVrID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 39), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcVrID.setStatus('current') if mibBuilder.loadTexts: hwPWVcVrID.setDescription('Denotes the VrID this PW binding to.') hwPWBFDDetectMultiplier = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 40), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(3, 50), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWBFDDetectMultiplier.setStatus('current') if mibBuilder.loadTexts: hwPWBFDDetectMultiplier.setDescription('The multiple of detection time.') hwPWBFDMinReceiveInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 41), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(3, 1000), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWBFDMinReceiveInterval.setStatus('current') if mibBuilder.loadTexts: hwPWBFDMinReceiveInterval.setDescription('The interval of bfd messages to be received.') hwPWBFDMinTransmitInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 42), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(3, 1000), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWBFDMinTransmitInterval.setStatus('current') if mibBuilder.loadTexts: hwPWBFDMinTransmitInterval.setDescription('The interval of bfd messages to be sent.') hwPWDynamicBFDDetect = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 43), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWDynamicBFDDetect.setStatus('current') if mibBuilder.loadTexts: hwPWDynamicBFDDetect.setDescription('This value indicates the capacitability to support dynamic BFD detect.') hwPWBFDRemoteVcID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 44), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWBFDRemoteVcID.setStatus('current') if mibBuilder.loadTexts: hwPWBFDRemoteVcID.setDescription('In the multiple-hop model, the value of remote VC id.') hwPWEthOamType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 45), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("ethOam1ag", 1), ("ethOam3ah", 2), ("noEthOamCfg", 3)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWEthOamType.setStatus('current') if mibBuilder.loadTexts: hwPWEthOamType.setDescription('This value indicates the type of ETH OAM.') hwPWCfmMaIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 46), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 4095), ValueRangeConstraint(4294967295, 4294967295), ))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWCfmMaIndex.setStatus('current') if mibBuilder.loadTexts: hwPWCfmMaIndex.setDescription('This value indicates the current CFM MA index.') hwPWVcUpStartTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 47), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 63))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcUpStartTime.setStatus('current') if mibBuilder.loadTexts: hwPWVcUpStartTime.setDescription('Specifies the time this PW status was Up(1).') hwPWVcUpSumTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 48), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcUpSumTime.setStatus('current') if mibBuilder.loadTexts: hwPWVcUpSumTime.setDescription('Indicates the accumulated time when the VC is Up, in seconds.') hwPWVcIfName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 49), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 63))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcIfName.setStatus('current') if mibBuilder.loadTexts: hwPWVcIfName.setDescription('Name of the interface (or the virtual interface) associated with the PW.') hwPWVcRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 51), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcRowStatus.setStatus('current') if mibBuilder.loadTexts: hwPWVcRowStatus.setDescription("RowStatus for this Table. Restriction: The row must be created by 'createAndGo' handle only. Handle 'createAndWait' is forbidden. Not support modifying configuration.") hwPWVcAtmPackOvertime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 52), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(100, 50000), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcAtmPackOvertime.setStatus('current') if mibBuilder.loadTexts: hwPWVcAtmPackOvertime.setDescription('Specifies the AtmPackOvertime.') hwPWVcPwJitterBufferDepth = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 53), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 64))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcPwJitterBufferDepth.setStatus('current') if mibBuilder.loadTexts: hwPWVcPwJitterBufferDepth.setDescription('Specifies the PwJitterBufferDepth.') hwPWVcPwTdmEncapsulationNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 54), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 40))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcPwTdmEncapsulationNum.setStatus('current') if mibBuilder.loadTexts: hwPWVcPwTdmEncapsulationNum.setDescription('Specifies the PwTdmEncapsulationNum.') hwPWVcPwIdleCode = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 55), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 255), ValueRangeConstraint(65535, 65535), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcPwIdleCode.setStatus('current') if mibBuilder.loadTexts: hwPWVcPwIdleCode.setDescription('Specifies the PwIdleCode.') hwPWVcPwRtpHeader = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 56), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcPwRtpHeader.setStatus('current') if mibBuilder.loadTexts: hwPWVcPwRtpHeader.setDescription('Specifies the PwRtpHeader.') hwPWVcSwitchTnlPolicyName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 57), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 39))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcSwitchTnlPolicyName.setStatus('current') if mibBuilder.loadTexts: hwPWVcSwitchTnlPolicyName.setDescription('Indicates the switch tunnel policy name used.') hwPWVcCfmMdIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 58), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 4095), ValueRangeConstraint(4294967295, 4294967295), ))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcCfmMdIndex.setStatus('current') if mibBuilder.loadTexts: hwPWVcCfmMdIndex.setDescription('This value indicates the current CFM MD index.') hwPWVcCfmMaName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 59), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 43))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcCfmMaName.setStatus('current') if mibBuilder.loadTexts: hwPWVcCfmMaName.setDescription('This value indicates the current CFM MA name used.') hwPWVcCfmMdName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 60), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 43))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcCfmMdName.setStatus('current') if mibBuilder.loadTexts: hwPWVcCfmMdName.setDescription('This value indicates the current CFM MD name used.') hwPWVcRawOrTagged = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 61), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("raw", 1), ("tagged", 2), ("rawTagNotConfiged", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcRawOrTagged.setStatus('current') if mibBuilder.loadTexts: hwPWVcRawOrTagged.setDescription('Specifies whether the raw or tagged is configured.') hwPWVcInterworkingType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 62), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("ipInterWorking", 1), ("ipLayer2", 2), ("ipUnknown", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcInterworkingType.setStatus('current') if mibBuilder.loadTexts: hwPWVcInterworkingType.setDescription('Specifies the interworking type of the VC entry.') hwPWVcCir = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 63), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcCir.setStatus('current') if mibBuilder.loadTexts: hwPWVcCir.setDescription('Specifies the committed information rate, based on the VC entry.') hwPWVcPir = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 64), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcPir.setStatus('current') if mibBuilder.loadTexts: hwPWVcPir.setDescription('Specifies the peak information rate, based on the VC entry.') hwPWVcQosProfile = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 65), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcQosProfile.setStatus('current') if mibBuilder.loadTexts: hwPWVcQosProfile.setDescription("Specifies the QoS profile's name, based on the VC entry.") hwPWVcSwitchCir = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 66), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcSwitchCir.setStatus('current') if mibBuilder.loadTexts: hwPWVcSwitchCir.setDescription('Specifies the committed information rate, based on the switch VC entry.') hwPWVcSwitchPir = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 67), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcSwitchPir.setStatus('current') if mibBuilder.loadTexts: hwPWVcSwitchPir.setDescription('Specifies the peak information rate, based on the switch VC entry.') hwPWVcSwitchQosProfile = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 68), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcSwitchQosProfile.setStatus('current') if mibBuilder.loadTexts: hwPWVcSwitchQosProfile.setDescription("Specifies the QoS profile's name, based on the switch VC entry.") hwPWVcTrigger = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 69), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcTrigger.setStatus('current') if mibBuilder.loadTexts: hwPWVcTrigger.setDescription('Specifies whether the PW remote interface shutdown or not.') hwPWVcEnableACOAM = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 70), EnabledStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcEnableACOAM.setStatus('current') if mibBuilder.loadTexts: hwPWVcEnableACOAM.setDescription('Specifies whether ACOAM detection and notification are all enabled or not.') hwPWVcSwitchVrIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 71), InterfaceIndexOrZero()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcSwitchVrIfIndex.setStatus('current') if mibBuilder.loadTexts: hwPWVcSwitchVrIfIndex.setDescription('Denotes the VRRP interface the switch PW binding to.') hwPWVcSwitchVrID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 72), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcSwitchVrID.setStatus('current') if mibBuilder.loadTexts: hwPWVcSwitchVrID.setDescription('Denotes the VrID the switch PW binding to.') hwPWVcQosParaFromPWT = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 73), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("cliOrMib", 1), ("pwTemplate", 2), ("unknown", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcQosParaFromPWT.setStatus('current') if mibBuilder.loadTexts: hwPWVcQosParaFromPWT.setDescription('This object indicates the configuration of the Qos parameters managed through command line or PW template.') hwPWVcBfdParaFromPWT = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 74), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("cliOrMib", 1), ("pwTemplate", 2), ("unknown", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcBfdParaFromPWT.setStatus('current') if mibBuilder.loadTexts: hwPWVcBfdParaFromPWT.setDescription('This object indicates the configuration of the Bfd parameters managed through command line or PW template.') hwPwVcNegotiateMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 75), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("slaveOrMaster", 1), ("independent", 2), ("unknown", 3), ("frr", 4)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPwVcNegotiateMode.setStatus('current') if mibBuilder.loadTexts: hwPwVcNegotiateMode.setDescription('This object indicates the negotiation mode of the PW on the local node.') hwPwVcIsBypass = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 76), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPwVcIsBypass.setStatus('current') if mibBuilder.loadTexts: hwPwVcIsBypass.setDescription('This object indicates whether the PW is the bypass PW.') hwPwVcIsAdmin = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 77), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPwVcIsAdmin.setStatus('current') if mibBuilder.loadTexts: hwPwVcIsAdmin.setDescription('This object indicates whether the PW is the administrator PW.') hwPwVcAdminPwIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 78), InterfaceIndexOrZero()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPwVcAdminPwIfIndex.setStatus('current') if mibBuilder.loadTexts: hwPwVcAdminPwIfIndex.setDescription('This object indicates the index of the interface on which the administrator PW resides after it is being tracked by the service PW.') hwPwVcAdminPwLinkStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 79), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("unknown", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPwVcAdminPwLinkStatus.setStatus('current') if mibBuilder.loadTexts: hwPwVcAdminPwLinkStatus.setDescription('This object indicates the status of the administrator PW after it is being tracked by the service PW.') hwPwVcSwitchAdminPwIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 80), InterfaceIndexOrZero()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPwVcSwitchAdminPwIfIndex.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchAdminPwIfIndex.setDescription('This object indicates the index of the interface on which the administrator PW resides after it is being tracked by the switch PW.') hwPwVcSwitchAdminPwLinkStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 81), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("unknown", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPwVcSwitchAdminPwLinkStatus.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchAdminPwLinkStatus.setDescription('This object indicates the status of the administrator PW after it is being tracked by the switch PW.') hwPwVcSwitchBackupAdminPwIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 82), InterfaceIndexOrZero()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPwVcSwitchBackupAdminPwIfIndex.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchBackupAdminPwIfIndex.setDescription('This object indicates the index of the interface on which the administrator PW resides after it is being tracked by the switch backup PW.') hwPwVcSwitchBackupAdminPwLinkStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 83), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("unknown", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPwVcSwitchBackupAdminPwLinkStatus.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchBackupAdminPwLinkStatus.setDescription('This object indicates the status of the administrator PW after it is being tracked by the switch backup PW.') hwPwVcSwitchBackupVcId = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 84), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPwVcSwitchBackupVcId.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcId.setDescription('This object indicates the VC ID of the switch backup PW.') hwPwVcSwitchBackupVcPeerAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 85), InetAddressType()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPwVcSwitchBackupVcPeerAddrType.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcPeerAddrType.setDescription('This object indicates type of the IP address of the peer on the switch backup PW. Currently, only IPv4 addresss are supported.') hwPwVcSwitchBackupVcPeerAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 86), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPwVcSwitchBackupVcPeerAddr.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcPeerAddr.setDescription('This object indicates the IP address of the peer on the switch backup PW.') hwPwVcSwitchBackupVcReceiveLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 87), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPwVcSwitchBackupVcReceiveLabel.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcReceiveLabel.setDescription('This object indicates the inbound label of the switch backup VC. For a static VC, the value of the inbound label ranges from 16 to 1023. For a dynamic VC, the inbound label is automatically generated by the system.') hwPwVcSwitchBackupVcSendLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 88), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPwVcSwitchBackupVcSendLabel.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcSendLabel.setDescription('This object indicates the outbound label of the switch backup VC. For a static VC, the value of the outbound label ranges from 0 to 1048575. For a dynamic VC, the outbound label is automatically generated by the system.') hwPwVcSwitchBackupVcTnlPolicyName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 89), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 19))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPwVcSwitchBackupVcTnlPolicyName.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcTnlPolicyName.setDescription('This object indicates the name of the tunnel policy of the switch backup VC.') hwPwVcSwitchBackupVcCir = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 90), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPwVcSwitchBackupVcCir.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcCir.setDescription('This object indicates the CIR of the switch backup VC.') hwPwVcSwitchBackupVcPir = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 91), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPwVcSwitchBackupVcPir.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcPir.setDescription('This object indicates the PIR of the switch backup VC.') hwPwVcSwitchBackupVcQosProfile = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 92), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPwVcSwitchBackupVcQosProfile.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcQosProfile.setDescription('This object indicates the name of the QoS profile of the switch backup VC.') hwPwVcSlaveMasterMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 93), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("slave", 1), ("master", 2), ("unknown", 3), ("bypass", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPwVcSlaveMasterMode.setStatus('current') if mibBuilder.loadTexts: hwPwVcSlaveMasterMode.setDescription('This object indicates whether the status of the VC is master or slave.') hwPwVcSwitchVcSlaveMasterMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 94), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("slave", 1), ("master", 2), ("unknown", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPwVcSwitchVcSlaveMasterMode.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchVcSlaveMasterMode.setDescription('This object indicates whether the status of the switch VC is master or slave.') hwPwVcSwitchBackupVcSlaveMasterMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 95), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("slave", 1), ("master", 2), ("unknown", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPwVcSwitchBackupVcSlaveMasterMode.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcSlaveMasterMode.setDescription('This object indicates whether the status of the switch backup VC is master or slave.') hwPwVcSwitchVcActive = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 96), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPwVcSwitchVcActive.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchVcActive.setDescription('This object indicates whether the status of the switch VC is active or not.') hwPwVcSwitchBackupVcActive = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 97), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPwVcSwitchBackupVcActive.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcActive.setDescription('This object indicates whether the status of the switch backup VC is active or not.') hwPwVcSwitchCwTrans = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 98), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPwVcSwitchCwTrans.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchCwTrans.setDescription('This object indicates whether the SPE support Control Word Transparent or not,default is false.') hwPwVcSwitchVcServiceName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 99), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 100))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPwVcSwitchVcServiceName.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchVcServiceName.setDescription('This object indicates the service name of the switch VC.') hwPwVcSwitchBackupVcServiceName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 100), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 100))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPwVcSwitchBackupVcServiceName.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcServiceName.setDescription('This object indicates the service name of the switch backup VC.') hwPWVcTnlTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 2), ) if mibBuilder.loadTexts: hwPWVcTnlTable.setStatus('current') if mibBuilder.loadTexts: hwPWVcTnlTable.setDescription('This table is used to search the tunnel index of a VC.') hwPWVcTnlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 2, 1), ).setIndexNames((0, "HUAWEI-PWE3-MIB", "hwPWVcID"), (0, "HUAWEI-PWE3-MIB", "hwPWVcType"), (0, "HUAWEI-PWE3-MIB", "hwPWVcTnlIndex")) if mibBuilder.loadTexts: hwPWVcTnlEntry.setStatus('current') if mibBuilder.loadTexts: hwPWVcTnlEntry.setDescription('Provides the information of a VC tunnel entry.') hwPWVcTnlIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 2, 1, 1), Unsigned32()) if mibBuilder.loadTexts: hwPWVcTnlIndex.setStatus('current') if mibBuilder.loadTexts: hwPWVcTnlIndex.setDescription('This object indicates the tunnel index of the VC.') hwPWVcTnlType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("lsp", 1), ("gre", 2), ("ipsec", 3), ("crLsp", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcTnlType.setStatus('current') if mibBuilder.loadTexts: hwPWVcTnlType.setDescription('This object indicates the tunnel type.') hwPWTnlForBfdIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 2, 1, 3), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWTnlForBfdIndex.setStatus('current') if mibBuilder.loadTexts: hwPWTnlForBfdIndex.setDescription('This object indicates the index of LSP for BFD.') hwPWVcStatisticsTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 3), ) if mibBuilder.loadTexts: hwPWVcStatisticsTable.setStatus('current') if mibBuilder.loadTexts: hwPWVcStatisticsTable.setDescription("This table contains the Pwe3's VC packets statistics.") hwPWVcStatisticsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 3, 1), ).setIndexNames((0, "HUAWEI-PWE3-MIB", "hwPWVcID"), (0, "HUAWEI-PWE3-MIB", "hwPWVcType")) if mibBuilder.loadTexts: hwPWVcStatisticsEntry.setStatus('current') if mibBuilder.loadTexts: hwPWVcStatisticsEntry.setDescription("Provides the information of the Pwe3's VC packets statistics.") hwPWVcStatisticsRcvPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 3, 1, 1), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcStatisticsRcvPkts.setStatus('current') if mibBuilder.loadTexts: hwPWVcStatisticsRcvPkts.setDescription('The total number of packets received on this VC.') hwPWVcStatisticsRcvBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 3, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcStatisticsRcvBytes.setStatus('current') if mibBuilder.loadTexts: hwPWVcStatisticsRcvBytes.setDescription('The total number of bytes received on this VC.') hwPWVcStatisticsSndPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 3, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcStatisticsSndPkts.setStatus('current') if mibBuilder.loadTexts: hwPWVcStatisticsSndPkts.setDescription('The total number of packets sent on this VC.') hwPWVcStatisticsSndBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 3, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcStatisticsSndBytes.setStatus('current') if mibBuilder.loadTexts: hwPWVcStatisticsSndBytes.setDescription('The total number of bytes sent on the VC.') hwPWRemoteVcTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4), ) if mibBuilder.loadTexts: hwPWRemoteVcTable.setStatus('current') if mibBuilder.loadTexts: hwPWRemoteVcTable.setDescription('This table provides remote PW information for each local PW.') hwPWRemoteVcEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1), ).setIndexNames((0, "HUAWEI-PWE3-MIB", "hwPWVcID"), (0, "HUAWEI-PWE3-MIB", "hwPWVcType")) if mibBuilder.loadTexts: hwPWRemoteVcEntry.setStatus('current') if mibBuilder.loadTexts: hwPWRemoteVcEntry.setDescription('An entry in this table is created by the agent for every PW.') hwPWRemoteVcID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 1), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWRemoteVcID.setStatus('current') if mibBuilder.loadTexts: hwPWRemoteVcID.setDescription("Used in the outgoing PW ID field within the 'Virtual Circuit FEC Element' of the remote PW.") hwPWRemoteVcType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 2), HWL2VpnVcEncapsType()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWRemoteVcType.setStatus('current') if mibBuilder.loadTexts: hwPWRemoteVcType.setDescription('This value indicate the service to be carried over the remote PW.') hwPWRemoteVcStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("plugout", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWRemoteVcStatus.setStatus('current') if mibBuilder.loadTexts: hwPWRemoteVcStatus.setDescription('Indicates the forwarding status of the remote VC.') hwPWRemoteVcGroupID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWRemoteVcGroupID.setStatus('current') if mibBuilder.loadTexts: hwPWRemoteVcGroupID.setDescription('Indicates the Group ID field of the remote PW. Currently, this value always be zero.') hwPWRemoteVcMtu = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 5), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(46, 9600), ))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWRemoteVcMtu.setStatus('current') if mibBuilder.loadTexts: hwPWRemoteVcMtu.setDescription('Indicates the supported MTU size of the remote PW.') hwPWRemoteVcCtrlword = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 6), HWEnableValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWRemoteVcCtrlword.setStatus('current') if mibBuilder.loadTexts: hwPWRemoteVcCtrlword.setDescription('Indicates the control word capability of the remote PW.') hwPWRemoteVcMaxAtmCells = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWRemoteVcMaxAtmCells.setStatus('current') if mibBuilder.loadTexts: hwPWRemoteVcMaxAtmCells.setDescription('Indicates the max cell supported of the remote PW when vctype is atm.') hwPWRemoteVcNotif = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 8), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWRemoteVcNotif.setStatus('current') if mibBuilder.loadTexts: hwPWRemoteVcNotif.setDescription('Indicates notification is supported by the remote PW.') hwPWVcSwitchNotifEnable = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 5), HWEnableValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwPWVcSwitchNotifEnable.setStatus('current') if mibBuilder.loadTexts: hwPWVcSwitchNotifEnable.setDescription('If this object is set to enable(1), then it enables the emission of hwPWVcSwitchWtoP and hwPWVcSwitchPtoW notifications; otherwise these notifications are not emitted. The default value is disable (2).') hwPWVcUpDownNotifEnable = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 6), HWEnableValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwPWVcUpDownNotifEnable.setStatus('current') if mibBuilder.loadTexts: hwPWVcUpDownNotifEnable.setDescription('This object indicates the enable sign of PW VC state change notification. The default value is disable (2).') hwPWVcDeletedNotifEnable = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 7), HWEnableValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwPWVcDeletedNotifEnable.setStatus('current') if mibBuilder.loadTexts: hwPWVcDeletedNotifEnable.setDescription('This object indicates the enable sign of PW VC deletion notification. The default value is disable (2).') hwPWVcStateChangeReason = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 8), HWL2VpnStateChangeReason()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwPWVcStateChangeReason.setStatus('current') if mibBuilder.loadTexts: hwPWVcStateChangeReason.setDescription('This object indicates the reason of PE VC state change.') hwPWVcSwitchRmtID = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 9), Unsigned32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwPWVcSwitchRmtID.setStatus('current') if mibBuilder.loadTexts: hwPWVcSwitchRmtID.setDescription('This object indicates the VC ID of PW switch between working PW and protect PW .') hwLdpPWStateChangeReason = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 10), HWLdpPwStateChangeReason()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwLdpPWStateChangeReason.setStatus('current') if mibBuilder.loadTexts: hwLdpPWStateChangeReason.setDescription("This object indicates the reason of LDP PW VC's state change.") hwPWVcTDMPerfCurrentTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11), ) if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentTable.setStatus('current') if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentTable.setDescription('This table provides per TDM PW performance information. The contents of this table entry are reset to zero and gotten new information every 15 minutes.') hwPWVcTDMPerfCurrentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1), ).setIndexNames((0, "HUAWEI-PWE3-MIB", "hwPWVcID"), (0, "HUAWEI-PWE3-MIB", "hwPWVcType")) if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentEntry.setStatus('current') if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentEntry.setDescription('An entry in this table is created by the agent for every TDM PW entry.') hwPWVcTDMPerfCurrentMissingPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 1), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentMissingPkts.setStatus('current') if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentMissingPkts.setDescription('Number of missing packets (as detected via control word sequence number gaps).') hwPWVcTDMPerfCurrentJtrBfrOverruns = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 2), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentJtrBfrOverruns.setStatus('current') if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentJtrBfrOverruns.setDescription('Number of times the jitter buffer was overrun.') hwPWVcTDMPerfCurrentJtrBfrUnderruns = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 3), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentJtrBfrUnderruns.setStatus('current') if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentJtrBfrUnderruns.setDescription('Number of times a packet needed to be played out and the jitter buffer was empty.') hwPWVcTDMPerfCurrentMisOrderDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentMisOrderDropped.setStatus('current') if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentMisOrderDropped.setDescription('Number of packets detected out of order (via control word sequence numbers) that could not be re-ordered or could not fit in the jitter buffer.') hwPWVcTDMPerfCurrentMalformedPkt = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 5), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentMalformedPkt.setStatus('current') if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentMalformedPkt.setDescription("Number of packets detected with unexpected size or bad headers' stack.") hwPWVcTDMPerfCurrentESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 6), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentESs.setStatus('current') if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentESs.setDescription('The counter associated with the number of Error Seconds encountered. Any malformed packet, sequence error, LOPS, and the like are considered as Error Seconds.') hwPWVcTDMPerfCurrentSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 7), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentSESs.setStatus('current') if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentSESs.setDescription('The counter associated with the number of Severely Error Seconds encountered.') hwPWVcTDMPerfCurrentUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 8), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentUASs.setStatus('current') if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered. Any consecutive ten seconds of SES are counted as one Unavailable Seconds (UAS).') hwPwe3MIBTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2)) hwPWVcSwitchWtoP = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 1)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcCtrlWord"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchRmtID"), ("HUAWEI-PWE3-MIB", "hwPWVcStateChangeReason"), ("HUAWEI-PWE3-MIB", "hwPWVcIfName")) if mibBuilder.loadTexts: hwPWVcSwitchWtoP.setStatus('current') if mibBuilder.loadTexts: hwPWVcSwitchWtoP.setDescription('This notification is generated when switch from working PW to protect PW happens.') hwPWVcSwitchPtoW = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 2)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcCtrlWord"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchRmtID"), ("HUAWEI-PWE3-MIB", "hwPWVcStateChangeReason"), ("HUAWEI-PWE3-MIB", "hwPWVcIfName")) if mibBuilder.loadTexts: hwPWVcSwitchPtoW.setStatus('current') if mibBuilder.loadTexts: hwPWVcSwitchPtoW.setDescription('This notification is generated when switch from protect PW to working PW happens.') hwPWVcDown = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 3)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcPeerAddr"), ("HUAWEI-PWE3-MIB", "hwPWVcIfIndex"), ("HUAWEI-PWE3-MIB", "hwPWVcInboundLabel"), ("HUAWEI-PWE3-MIB", "hwPWVcOutboundLabel"), ("HUAWEI-PWE3-MIB", "hwPWVcSecondary"), ("HUAWEI-PWE3-MIB", "hwPWVcStateChangeReason"), ("SNMPv2-MIB", "sysUpTime"), ("HUAWEI-PWE3-MIB", "hwPWVcIfName"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchID"), ("HUAWEI-PWE3-MIB", "hwPWVcTnlPolicyName")) if mibBuilder.loadTexts: hwPWVcDown.setStatus('current') if mibBuilder.loadTexts: hwPWVcDown.setDescription("This notification indicates the VC's state changes to down.") hwPWVcUp = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 4)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcPeerAddr"), ("HUAWEI-PWE3-MIB", "hwPWVcIfIndex"), ("HUAWEI-PWE3-MIB", "hwPWVcInboundLabel"), ("HUAWEI-PWE3-MIB", "hwPWVcOutboundLabel"), ("HUAWEI-PWE3-MIB", "hwPWVcSecondary"), ("HUAWEI-PWE3-MIB", "hwPWVcStateChangeReason"), ("SNMPv2-MIB", "sysUpTime"), ("HUAWEI-PWE3-MIB", "hwPWVcIfName"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchID"), ("HUAWEI-PWE3-MIB", "hwPWVcTnlPolicyName")) if mibBuilder.loadTexts: hwPWVcUp.setStatus('current') if mibBuilder.loadTexts: hwPWVcUp.setDescription("This notification indicates the VC's state changes to up.") hwPWVcDeleted = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 5)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcPeerAddr"), ("HUAWEI-PWE3-MIB", "hwPWVcIfIndex"), ("HUAWEI-PWE3-MIB", "hwPWVcInboundLabel"), ("HUAWEI-PWE3-MIB", "hwPWVcOutboundLabel"), ("HUAWEI-PWE3-MIB", "hwPWVcSecondary"), ("HUAWEI-PWE3-MIB", "hwPWVcIfName"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchID")) if mibBuilder.loadTexts: hwPWVcDeleted.setStatus('current') if mibBuilder.loadTexts: hwPWVcDeleted.setDescription('This notification indicates the VC is deleted.') hwPWVcBackup = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 6)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcPeerAddr"), ("HUAWEI-PWE3-MIB", "hwPWVcIfIndex"), ("HUAWEI-PWE3-MIB", "hwPWVcInboundLabel"), ("HUAWEI-PWE3-MIB", "hwPWVcOutboundLabel"), ("HUAWEI-PWE3-MIB", "hwPWVcSecondary"), ("HUAWEI-PWE3-MIB", "hwPWVcStateChangeReason"), ("SNMPv2-MIB", "sysUpTime"), ("HUAWEI-PWE3-MIB", "hwPWVcIfName"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchID")) if mibBuilder.loadTexts: hwPWVcBackup.setStatus('current') if mibBuilder.loadTexts: hwPWVcBackup.setDescription("This notification indicates the VC's state changes to backup.") hwLdpPWVcDown = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 7)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcPeerAddr"), ("HUAWEI-PWE3-MIB", "hwLdpPWStateChangeReason")) if mibBuilder.loadTexts: hwLdpPWVcDown.setStatus('current') if mibBuilder.loadTexts: hwLdpPWVcDown.setDescription("This notification indicates the LDP PW VC's state changes to down.") hwLdpPWVcUp = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 8)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcPeerAddr"), ("HUAWEI-PWE3-MIB", "hwLdpPWStateChangeReason")) if mibBuilder.loadTexts: hwLdpPWVcUp.setStatus('current') if mibBuilder.loadTexts: hwLdpPWVcUp.setDescription("This notification indicates the Ldp PW VC's state changes to up.") hwSvcObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3)) hwSvcTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1), ) if mibBuilder.loadTexts: hwSvcTable.setStatus('current') if mibBuilder.loadTexts: hwSvcTable.setDescription('This table is the SVC configuration table. Users can create or delete a SVC by it.') hwSvcEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1), ).setIndexNames((0, "HUAWEI-PWE3-MIB", "hwSvcIfIndex")) if mibBuilder.loadTexts: hwSvcEntry.setStatus('current') if mibBuilder.loadTexts: hwSvcEntry.setDescription('Provides the information of a SVC entry.') hwSvcIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 1), InterfaceIndexOrZero()) if mibBuilder.loadTexts: hwSvcIfIndex.setStatus('current') if mibBuilder.loadTexts: hwSvcIfIndex.setDescription('Index of the interface (or the virtual interface) associated with the PW.') hwSvcID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 2), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcID.setStatus('current') if mibBuilder.loadTexts: hwSvcID.setDescription("Index for the conceptual row identifying a PW within this PW Emulation table.Used in the outgoing PW ID field within the 'Virtual Circuit FEC Element'.") hwSvcType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 3), HWL2VpnVcEncapsType()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcType.setStatus('current') if mibBuilder.loadTexts: hwSvcType.setDescription('Index for the conceptual row identifying a PW within this PW Emulation table.This value indicate the service to be carried over this PW.') hwSvcPeerAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 4), InetAddressType().clone('ipv4')).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcPeerAddrType.setStatus('current') if mibBuilder.loadTexts: hwSvcPeerAddrType.setDescription("Denotes the address type of the peer node. It should be set to 'unknown' if PE/PW maintenance protocol is not used and the address is unknown. Currently, support 'ipv4' only.") hwSvcPeerAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 5), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcPeerAddr.setStatus('current') if mibBuilder.loadTexts: hwSvcPeerAddr.setDescription("This object contain the value of the peer node address of the PW/PE maintenance protocol entity. This object SHOULD contain a value of all zeroes if not applicable (hwSvcPeerAddrType is 'unknown').") hwSvcStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("plugout", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcStatus.setStatus('current') if mibBuilder.loadTexts: hwSvcStatus.setDescription("Indicates the status of the PW in the local node. Currently, can't support 'plugout'.") hwSvcInboundLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 7), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcInboundLabel.setStatus('current') if mibBuilder.loadTexts: hwSvcInboundLabel.setDescription('This object indicates the inbound label.') hwSvcOutboundLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 8), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcOutboundLabel.setStatus('current') if mibBuilder.loadTexts: hwSvcOutboundLabel.setDescription('This object indicates the outbound label.') hwSvcGroupID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 9), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcGroupID.setStatus('current') if mibBuilder.loadTexts: hwSvcGroupID.setDescription("Used in the Group ID field sent to the peer PWES within the maintenance protocol used for PW setup. Applicable if SvcOwner equal 'pwIdFecSignaling' or 'l2tpControlProtocol', should be set to zero otherwise. Currently, this value always be zero.") hwSvcAcStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("plugout", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcAcStatus.setStatus('current') if mibBuilder.loadTexts: hwSvcAcStatus.setDescription("Local AC status. Currently, can't support 'plugout'.") hwSvcACOAMStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("up", 1), ("down", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcACOAMStatus.setStatus('current') if mibBuilder.loadTexts: hwSvcACOAMStatus.setDescription("Denotes the AC's protocol is operational or not.") hwSvcMtu = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(46, 9600), ))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcMtu.setStatus('current') if mibBuilder.loadTexts: hwSvcMtu.setDescription("If not equal zero, the optional Mtu object in the signaling protocol will be sent with this value, representing the locally supported MTU size over the interface (or the virtual interface) associated with the PW.Currently, can't support.'0' is the default value.") hwSvcCtrlWord = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 13), HWEnableValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcCtrlWord.setStatus('current') if mibBuilder.loadTexts: hwSvcCtrlWord.setDescription('If signaling is used for PW establishment, this object indicates the status of the control word negotiation, and in both signaling or manual configuration indicates if CW is to be present or not for this PW.') hwSvcVCCV = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 14), Bits().clone(namedValues=NamedValues(("ccCw", 0), ("ccAlert", 1), ("ccLabel", 2), ("cvIcmpping", 3), ("cvLspping", 4), ("cvBfd", 5)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcVCCV.setStatus('current') if mibBuilder.loadTexts: hwSvcVCCV.setDescription('Indicates the optional VCCV capabilities of the SVC. According to whether the control word is enabled, the value can be ccCw(0)|ccAlert(1)|cvLspping(4)|cvBfd(5) or ccAlert(1)|cvLspping(4)|cvBfd(5). The default value is ccAlert(1)|cvLspping(4)|cvBfd(5).') hwSvcBandWidth = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 15), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 32000000))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcBandWidth.setStatus('current') if mibBuilder.loadTexts: hwSvcBandWidth.setDescription("This object indicates the bandwidth.Currently, can't support.'0' is the default value.") hwSvcMaxAtmCells = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 16), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 28))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcMaxAtmCells.setStatus('current') if mibBuilder.loadTexts: hwSvcMaxAtmCells.setDescription('Indicates the max cell supported when vc type is atm.') hwSvcTnlPolicyName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 17), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 39))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcTnlPolicyName.setStatus('current') if mibBuilder.loadTexts: hwSvcTnlPolicyName.setDescription('Indicates the tunnel policy name used.') hwSvcQoSBehaviorIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 18), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcQoSBehaviorIndex.setStatus('current') if mibBuilder.loadTexts: hwSvcQoSBehaviorIndex.setDescription("Indicates the traffic behavior Index when QOS is implemented. Currently, can't support.'0' is the default value.") hwSvcPWTemplateName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 19), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 19))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcPWTemplateName.setStatus('current') if mibBuilder.loadTexts: hwSvcPWTemplateName.setDescription('Indicates the PW template index referenced.') hwSvcUpTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 20), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcUpTime.setStatus('current') if mibBuilder.loadTexts: hwSvcUpTime.setDescription('Indicates the duration when the SVC keeps Up for the last time, in seconds.') hwSvcOAMSync = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 21), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcOAMSync.setStatus('current') if mibBuilder.loadTexts: hwSvcOAMSync.setDescription('Denotes the AC and PSN are enable or not.') hwSvcForBfdIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 22), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcForBfdIndex.setStatus('current') if mibBuilder.loadTexts: hwSvcForBfdIndex.setDescription("The index of PW for BFD.Currently, can't support.Return the default value is '0'.") hwSvcSecondary = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 23), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcSecondary.setStatus('current') if mibBuilder.loadTexts: hwSvcSecondary.setDescription("Indicates whether or not the secondary PW is used.Currently, can't support.Return the default value is 'false'.") hwSvcDelayTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 24), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcDelayTime.setStatus('current') if mibBuilder.loadTexts: hwSvcDelayTime.setDescription("The reroute delay time.Currently, can't support.Return the default value is '0'.") hwSvcReroutePolicy = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 25), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("delay", 1), ("immediately", 2), ("never", 3), ("none", 4), ("err", 5), ("invalid", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcReroutePolicy.setStatus('current') if mibBuilder.loadTexts: hwSvcReroutePolicy.setDescription("Reroute policy.Currently, can't support.Return the default value is 'invalid(6)'.") hwSvcResumeTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 26), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcResumeTime.setStatus('current') if mibBuilder.loadTexts: hwSvcResumeTime.setDescription("The reroute resume time.Currently, can't support.Return the default value is '0'.") hwSvcRerouteReason = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 27), HWL2VpnStateChangeReason()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcRerouteReason.setStatus('current') if mibBuilder.loadTexts: hwSvcRerouteReason.setDescription("Last reroute reason.Currently, can't support.Return the default value is 'invalidReason(1)'.") hwSvcLastRerouteTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 28), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcLastRerouteTime.setStatus('current') if mibBuilder.loadTexts: hwSvcLastRerouteTime.setDescription("Last reroute time.Currently, can't support.Return the default value is '0'.") hwSvcManualSetFault = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 29), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcManualSetFault.setStatus('current') if mibBuilder.loadTexts: hwSvcManualSetFault.setDescription("Denotes the manual has been set fault or not.Currently, can't support.Return the default value is 'false'.") hwSvcActive = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 30), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcActive.setStatus('current') if mibBuilder.loadTexts: hwSvcActive.setDescription("Denotes the current vc is active or not.Currently, can't support.Return the default value is 'false'.") hwSvcUpStartTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 31), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 63))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcUpStartTime.setStatus('current') if mibBuilder.loadTexts: hwSvcUpStartTime.setDescription('Specifies the time this PW status was Up(1).') hwSvcUpSumTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 32), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcUpSumTime.setStatus('current') if mibBuilder.loadTexts: hwSvcUpSumTime.setDescription('Indicates the accumulated time when the SVC is Up, in seconds.') hwSvcAtmPackOvertime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 33), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(100, 50000), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcAtmPackOvertime.setStatus('current') if mibBuilder.loadTexts: hwSvcAtmPackOvertime.setDescription('Specifies the AtmPackOvertime.') hwSvcPwJitterBufferDepth = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 34), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 64))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcPwJitterBufferDepth.setStatus('current') if mibBuilder.loadTexts: hwSvcPwJitterBufferDepth.setDescription('Specifies the PwJitterBufferDepth.') hwSvcPwTdmEncapsulationNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 35), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 40))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcPwTdmEncapsulationNum.setStatus('current') if mibBuilder.loadTexts: hwSvcPwTdmEncapsulationNum.setDescription('Specifies the PwTdmEncapsulationNum.') hwSvcPwIdleCode = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 36), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 255), ValueRangeConstraint(65535, 65535), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcPwIdleCode.setStatus('current') if mibBuilder.loadTexts: hwSvcPwIdleCode.setDescription('Specifies the PwIdleCode.') hwSvcPwRtpHeader = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 37), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcPwRtpHeader.setStatus('current') if mibBuilder.loadTexts: hwSvcPwRtpHeader.setDescription('Specifies the PwRtpHeader.') hwSvcRawOrTagged = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 38), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("raw", 1), ("tagged", 2), ("rawTagNotConfiged", 3)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcRawOrTagged.setStatus('current') if mibBuilder.loadTexts: hwSvcRawOrTagged.setDescription('Specifies whether the VLAN tag of the SVC entry is attached or stripped.') hwSvcInterworkingType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 39), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("ipInterWorking", 1), ("ipLayer2", 2), ("ipUnknown", 3)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcInterworkingType.setStatus('current') if mibBuilder.loadTexts: hwSvcInterworkingType.setDescription('Specifies the interworking type of the SVC entry.') hwSvcCir = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 40), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcCir.setStatus('current') if mibBuilder.loadTexts: hwSvcCir.setDescription('Specifies the committed information rate, based on the SVC entry.') hwSvcPir = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 41), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcPir.setStatus('current') if mibBuilder.loadTexts: hwSvcPir.setDescription('Specifies the peak information rate, based on the SVC entry.') hwSvcQosProfile = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 42), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcQosProfile.setStatus('current') if mibBuilder.loadTexts: hwSvcQosProfile.setDescription("Specifies the QoS profile's name, based on the SVC entry.") hwSvcRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 51), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcRowStatus.setStatus('current') if mibBuilder.loadTexts: hwSvcRowStatus.setDescription("RowStatus for this Table. Restriction: The row must be created by 'createAndGo' handle only. Handle 'createAndWait' is forbidden. Not support modifying configuration.") hwSvcTnlTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 2), ) if mibBuilder.loadTexts: hwSvcTnlTable.setStatus('current') if mibBuilder.loadTexts: hwSvcTnlTable.setDescription('This table is used to search the tunnel index of a SVC.') hwSvcTnlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 2, 1), ).setIndexNames((0, "HUAWEI-PWE3-MIB", "hwSvcIfIndex"), (0, "HUAWEI-PWE3-MIB", "hwSvcTnlIndex")) if mibBuilder.loadTexts: hwSvcTnlEntry.setStatus('current') if mibBuilder.loadTexts: hwSvcTnlEntry.setDescription('Provides the information of a SVC tunnel entry.') hwSvcTnlIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 2, 1, 1), Unsigned32()) if mibBuilder.loadTexts: hwSvcTnlIndex.setStatus('current') if mibBuilder.loadTexts: hwSvcTnlIndex.setDescription('This object indicates the tunnel index of the SVC.') hwSvcTnlType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("lsp", 1), ("gre", 2), ("ipsec", 3), ("crLsp", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcTnlType.setStatus('current') if mibBuilder.loadTexts: hwSvcTnlType.setDescription('This object indicates the tunnel type.') hwSvcTnlForBfdIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 2, 1, 3), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcTnlForBfdIndex.setStatus('current') if mibBuilder.loadTexts: hwSvcTnlForBfdIndex.setDescription("This object indicates the index of LSP for BFD. Currently, can't support.Return the default value is '0'.") hwSvcStatisticsTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 3), ) if mibBuilder.loadTexts: hwSvcStatisticsTable.setStatus('current') if mibBuilder.loadTexts: hwSvcStatisticsTable.setDescription("This table contains the L2vpn's SVC packets statistics.") hwSvcStatisticsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 3, 1), ).setIndexNames((0, "HUAWEI-PWE3-MIB", "hwSvcIfIndex")) if mibBuilder.loadTexts: hwSvcStatisticsEntry.setStatus('current') if mibBuilder.loadTexts: hwSvcStatisticsEntry.setDescription("Provides the information of the L2VPN's SVC packets Statistics.") hwSvcStatisticsRcvPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 3, 1, 1), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcStatisticsRcvPkts.setStatus('current') if mibBuilder.loadTexts: hwSvcStatisticsRcvPkts.setDescription('The total number of packets received on this SVC.') hwSvcStatisticsRcvBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 3, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcStatisticsRcvBytes.setStatus('current') if mibBuilder.loadTexts: hwSvcStatisticsRcvBytes.setDescription('The total number of bytes received on this SVC.') hwSvcStatisticsSndPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 3, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcStatisticsSndPkts.setStatus('current') if mibBuilder.loadTexts: hwSvcStatisticsSndPkts.setDescription('The total number of packets sent on this SVC.') hwSvcStatisticsSndBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 3, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcStatisticsSndBytes.setStatus('current') if mibBuilder.loadTexts: hwSvcStatisticsSndBytes.setDescription('The total number of bytes sent on the SVC.') hwSvcSwitchNotifEnable = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 4), HWEnableValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwSvcSwitchNotifEnable.setStatus('current') if mibBuilder.loadTexts: hwSvcSwitchNotifEnable.setDescription("If this object is set to enable(1), then it enables the emission of hwSvcSwitchWtoP and hwSvcSwitchPtoW notifications; otherwise these notifications are not emitted.Currently, can't support. The default value is disable (2).") hwSvcUpDownNotifEnable = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 5), HWEnableValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwSvcUpDownNotifEnable.setStatus('current') if mibBuilder.loadTexts: hwSvcUpDownNotifEnable.setDescription('This object indicates the enable sign of PW VC state change notification. The default value is disable (2).') hwSvcDeletedNotifEnable = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 6), HWEnableValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwSvcDeletedNotifEnable.setStatus('current') if mibBuilder.loadTexts: hwSvcDeletedNotifEnable.setDescription('This object indicates the enable sign of PW VC deletion notification. The default value is disable (2).') hwSvcStateChangeReason = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 7), HWL2VpnStateChangeReason()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwSvcStateChangeReason.setStatus('current') if mibBuilder.loadTexts: hwSvcStateChangeReason.setDescription('This object indicates the reason of PE VC state change.') hwL2vpnSvcMIBTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 4)) hwSvcSwitchWtoP = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 4, 1)).setObjects(("HUAWEI-PWE3-MIB", "hwSvcID"), ("HUAWEI-PWE3-MIB", "hwSvcType"), ("HUAWEI-PWE3-MIB", "hwSvcCtrlWord"), ("HUAWEI-PWE3-MIB", "hwSvcStateChangeReason"), ("IF-MIB", "ifName")) if mibBuilder.loadTexts: hwSvcSwitchWtoP.setStatus('current') if mibBuilder.loadTexts: hwSvcSwitchWtoP.setDescription("This notification is generated when switch from working PW to protect PW happens.Currently, can't support.") hwSvcSwitchPtoW = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 4, 2)).setObjects(("HUAWEI-PWE3-MIB", "hwSvcID"), ("HUAWEI-PWE3-MIB", "hwSvcType"), ("HUAWEI-PWE3-MIB", "hwSvcCtrlWord"), ("HUAWEI-PWE3-MIB", "hwSvcStateChangeReason"), ("IF-MIB", "ifName")) if mibBuilder.loadTexts: hwSvcSwitchPtoW.setStatus('current') if mibBuilder.loadTexts: hwSvcSwitchPtoW.setDescription("This notification is generated when switch from protect PW to working PW happens.Currently, can't support.") hwSvcDown = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 4, 3)).setObjects(("HUAWEI-PWE3-MIB", "hwSvcID"), ("HUAWEI-PWE3-MIB", "hwSvcType"), ("HUAWEI-PWE3-MIB", "hwSvcPeerAddr"), ("HUAWEI-PWE3-MIB", "hwSvcInboundLabel"), ("HUAWEI-PWE3-MIB", "hwSvcOutboundLabel"), ("HUAWEI-PWE3-MIB", "hwSvcStateChangeReason"), ("IF-MIB", "ifName"), ("HUAWEI-PWE3-MIB", "hwSvcTnlPolicyName")) if mibBuilder.loadTexts: hwSvcDown.setStatus('current') if mibBuilder.loadTexts: hwSvcDown.setDescription("This notification indicates the SVC's state changes to down.") hwSvcUp = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 4, 4)).setObjects(("HUAWEI-PWE3-MIB", "hwSvcID"), ("HUAWEI-PWE3-MIB", "hwSvcType"), ("HUAWEI-PWE3-MIB", "hwSvcPeerAddr"), ("HUAWEI-PWE3-MIB", "hwSvcInboundLabel"), ("HUAWEI-PWE3-MIB", "hwSvcOutboundLabel"), ("HUAWEI-PWE3-MIB", "hwSvcStateChangeReason"), ("IF-MIB", "ifName"), ("HUAWEI-PWE3-MIB", "hwSvcTnlPolicyName")) if mibBuilder.loadTexts: hwSvcUp.setStatus('current') if mibBuilder.loadTexts: hwSvcUp.setDescription("This notification indicates the SVC's state changes to up.") hwSvcDeleted = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 4, 5)).setObjects(("HUAWEI-PWE3-MIB", "hwSvcID"), ("HUAWEI-PWE3-MIB", "hwSvcType"), ("HUAWEI-PWE3-MIB", "hwSvcPeerAddr"), ("HUAWEI-PWE3-MIB", "hwSvcInboundLabel"), ("HUAWEI-PWE3-MIB", "hwSvcOutboundLabel")) if mibBuilder.loadTexts: hwSvcDeleted.setStatus('current') if mibBuilder.loadTexts: hwSvcDeleted.setDescription('This notification indicates the SVC is deleted.') hwPWTemplateTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5), ) if mibBuilder.loadTexts: hwPWTemplateTable.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateTable.setDescription('This table specifies information for configuring and status monitoring to PW tempalte.') hwPWTemplateEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1), ).setIndexNames((0, "HUAWEI-PWE3-MIB", "hwPWTemplateName")) if mibBuilder.loadTexts: hwPWTemplateEntry.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateEntry.setDescription('A row in this table represents a pseudo wire (PW) template. It is indexed by hwPWCmdTemplateIndex, which uniquely identifying a singular tempalte.') hwPWTemplateName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 19))) if mibBuilder.loadTexts: hwPWTemplateName.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateName.setDescription("The name of the PW template. Set by the operator to indicate the protocol responsible for establishing this PW. The value 'static' is used in all cases where no maintenance protocol (PW signaling) is used to set-up the PW, i.e. require configuration of entries in the PW tables including PW labels, etc. The value 'ldp' is used in case of signaling with the PWid FEC element with LDP signaling. The value 'rsvp' indicate the use of rsvp control protocol.") hwPWTemplatePeerAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 2), InetAddressType().clone('ipv4')).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplatePeerAddrType.setStatus('current') if mibBuilder.loadTexts: hwPWTemplatePeerAddrType.setDescription("Denotes the address type of the peer node. It should be set to 'unknown' if PE/PW maintenance protocol is not used and the address is unknown. Currently, support 'ipv4' only.") hwPWTemplatePeerAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 3), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplatePeerAddr.setStatus('current') if mibBuilder.loadTexts: hwPWTemplatePeerAddr.setDescription('This object contain the value of the peer node address of the PW/PE maintenance protocol entity. ') hwPWTemplateCtrlword = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 4), HWEnableValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplateCtrlword.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateCtrlword.setDescription('Indicates the control word capability of the switch PW.') hwPWTemplateVCCV = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 5), Bits().clone(namedValues=NamedValues(("ccCw", 0), ("ccAlert", 1), ("ccLabel", 2), ("cvIcmpping", 3), ("cvLspping", 4), ("cvBfd", 5), ("ccTtl", 6)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplateVCCV.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateVCCV.setDescription('Indicates the optional VCCV capabilities of the PW template. According to whether the control word is enabled, the value can be ccCw(0)|ccAlert(1)|ccTtl(6)|cvLspping(4)|cvBfd(5) or ccAlert(1)|ccTtl(6)|cvLspping(4)|cvBfd(5). The default value is ccAlert(1)|ccTtl(6)|cvLspping(4)|cvBfd(5).') hwPWTemplateFrag = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 6), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplateFrag.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateFrag.setDescription('Indicates whether or not fragmentaion is supported.') hwPWTemplateBandwidth = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32000000))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWTemplateBandwidth.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateBandwidth.setDescription("Indicates the bandwitdh when signaling protocol is rsvp. Currently, can't support.'0' is the default value.") hwPWTemplateTnlPolicyName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 8), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 39))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplateTnlPolicyName.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateTnlPolicyName.setDescription('Indicates the tunnel policy name used.') hwPWTemplateQoSBehaviorIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 9), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplateQoSBehaviorIndex.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateQoSBehaviorIndex.setDescription("Indicates the traffic behavior Index when QOS is implemented.Currently, can't support.'0' is the default value.") hwPWTemplateExplicitPathName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 10), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplateExplicitPathName.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateExplicitPathName.setDescription("Indicates the explicit path name set by the operator.Currently, can't support.") hwPWTemplateBFDDetectMultiplier = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 11), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(3, 50), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplateBFDDetectMultiplier.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateBFDDetectMultiplier.setDescription('The multiple of detection time.') hwPWTemplateBFDMinReceiveInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 12), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(3, 1000), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplateBFDMinReceiveInterval.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateBFDMinReceiveInterval.setDescription('The interval of bfd messages to be received.') hwPWTemplateBFDMinTransmitInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 13), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(3, 1000), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplateBFDMinTransmitInterval.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateBFDMinTransmitInterval.setDescription('The interval of bfd messages to be sent.') hwPWTemplateDynamicBFDDetect = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 14), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplateDynamicBFDDetect.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateDynamicBFDDetect.setDescription('This value indicates the capacitability to support dynamic BFD detect.') hwPWTemplateMaxAtmCells = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 15), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 28))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplateMaxAtmCells.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateMaxAtmCells.setDescription('Specifies the MaxAtmCells.') hwPWTemplateAtmPackOvertime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 16), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(100, 50000), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplateAtmPackOvertime.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateAtmPackOvertime.setDescription('Specifies the AtmPackOvertime.') hwPWTemplatePwJitterBufferDepth = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 17), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 64))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplatePwJitterBufferDepth.setStatus('current') if mibBuilder.loadTexts: hwPWTemplatePwJitterBufferDepth.setDescription('Specifies the PwJitterBufferDepth.') hwPWTemplatePwTdmEncapsulationNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 18), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 40))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplatePwTdmEncapsulationNum.setStatus('current') if mibBuilder.loadTexts: hwPWTemplatePwTdmEncapsulationNum.setDescription('Specifies the PwTdmEncapsulationNum.') hwPWTemplatePwIdleCode = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 19), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 255), ValueRangeConstraint(65535, 65535), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplatePwIdleCode.setStatus('current') if mibBuilder.loadTexts: hwPWTemplatePwIdleCode.setDescription('Specifies the PwIdleCode.') hwPWTemplatePwRtpHeader = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 20), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplatePwRtpHeader.setStatus('current') if mibBuilder.loadTexts: hwPWTemplatePwRtpHeader.setDescription('Specifies the PwRtpHeader.') hwPWTemplatePwCCSeqEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 21), HWEnableValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplatePwCCSeqEnable.setStatus('current') if mibBuilder.loadTexts: hwPWTemplatePwCCSeqEnable.setDescription('Specifies the CC Sequence is enable or not.') hwPWTemplateCir = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 22), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplateCir.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateCir.setDescription('Specifies the committed information rate, based on the PW template entry.') hwPWTemplatePir = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 23), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplatePir.setStatus('current') if mibBuilder.loadTexts: hwPWTemplatePir.setDescription('Specifies the peak information rate, based on the PW template entry.') hwPWTemplateQosProfile = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 24), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplateQosProfile.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateQosProfile.setDescription("Specifies the QoS profile's name, based on the PW template entry.") hwPWTemplateFlowLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 25), EnabledStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplateFlowLabel.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateFlowLabel.setDescription('The value of this object identifies whether the PW FlowLabel is enabled.') hwPWTemplateRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 51), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplateRowStatus.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateRowStatus.setDescription("RowStatus for this Table. Restriction: The row must be created by 'createAndGo' handle only. Handle 'createAndWait' is forbidden.") hwPWTemplateMIBTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 6)) hwPWTemplateCannotDeleted = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 6, 1)).setObjects(("HUAWEI-PWE3-MIB", "hwPWTemplateName")) if mibBuilder.loadTexts: hwPWTemplateCannotDeleted.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateCannotDeleted.setDescription('This notification indicates the PWTemplate cannot be deleted.') hwPWTableObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7)) hwPWTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7, 1), ) if mibBuilder.loadTexts: hwPWTable.setStatus('current') if mibBuilder.loadTexts: hwPWTable.setDescription('This table indicates a PW, that is Static PW or LDP PW') hwPWEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7, 1, 1), ).setIndexNames((0, "HUAWEI-PWE3-MIB", "hwPWId"), (0, "HUAWEI-PWE3-MIB", "hwPWType"), (0, "HUAWEI-PWE3-MIB", "hwPWPeerIp")) if mibBuilder.loadTexts: hwPWEntry.setStatus('current') if mibBuilder.loadTexts: hwPWEntry.setDescription('Provides the information of a VC key entry.') hwPWId = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7, 1, 1, 1), Unsigned32()) if mibBuilder.loadTexts: hwPWId.setStatus('current') if mibBuilder.loadTexts: hwPWId.setDescription("Index for the conceptual row identifying a PW within this PW Emulation table.Used in the outgoing PW ID field within the 'Virtual Circuit FEC Element'.") hwPWType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7, 1, 1, 2), HWL2VpnVcEncapsType()) if mibBuilder.loadTexts: hwPWType.setStatus('current') if mibBuilder.loadTexts: hwPWType.setDescription('Index for the conceptual row identifying a PW within this PW Emulation table.This value indicate the service to be carried over this PW.') hwPWPeerIp = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7, 1, 1, 3), IpAddress()) if mibBuilder.loadTexts: hwPWPeerIp.setStatus('current') if mibBuilder.loadTexts: hwPWPeerIp.setDescription('This object contain the value of the peer node address of the PW/PE maintenance protocol entity. This object SHOULD contain a value of all zeroes if not applicable.') hwPWInterfaceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7, 1, 1, 4), InterfaceIndexOrZero()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWInterfaceIndex.setStatus('current') if mibBuilder.loadTexts: hwPWInterfaceIndex.setDescription('Index of the interface (or the virtual interface) associated with the PW.') hwPwe3MIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3)) hwPwe3MIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 1)) hwPwe3MIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 1, 1)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcGroup"), ("HUAWEI-PWE3-MIB", "hwPWVcTnlGroup"), ("HUAWEI-PWE3-MIB", "hwPWVcStatisticsGroup"), ("HUAWEI-PWE3-MIB", "hwPWRemoteVcGroup"), ("HUAWEI-PWE3-MIB", "hwPWTemplateGroup"), ("HUAWEI-PWE3-MIB", "hwPWNotificationControlGroup"), ("HUAWEI-PWE3-MIB", "hwPWVcStateChangeReasonGroup"), ("HUAWEI-PWE3-MIB", "hwPWVcNotificationGroup"), ("HUAWEI-PWE3-MIB", "hwPWTableGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwPwe3MIBCompliance = hwPwe3MIBCompliance.setStatus('current') if mibBuilder.loadTexts: hwPwe3MIBCompliance.setDescription('The compliance statement for systems supporting the HUAWEI-PWE3-MIB.') hwPwe3MIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2)) hwPWVcGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 1)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcPeerAddrType"), ("HUAWEI-PWE3-MIB", "hwPWVcPeerAddr"), ("HUAWEI-PWE3-MIB", "hwPWVcStatus"), ("HUAWEI-PWE3-MIB", "hwPWVcInboundLabel"), ("HUAWEI-PWE3-MIB", "hwPWVcOutboundLabel"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchSign"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchID"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchPeerAddrType"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchPeerAddr"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchInboundLabel"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchOutboundLabel"), ("HUAWEI-PWE3-MIB", "hwPWVcGroupID"), ("HUAWEI-PWE3-MIB", "hwPWVcIfIndex"), ("HUAWEI-PWE3-MIB", "hwPWVcAcStatus"), ("HUAWEI-PWE3-MIB", "hwPWVcACOAMStatus"), ("HUAWEI-PWE3-MIB", "hwPWVcMtu"), ("HUAWEI-PWE3-MIB", "hwPWVcCtrlWord"), ("HUAWEI-PWE3-MIB", "hwPWVcVCCV"), ("HUAWEI-PWE3-MIB", "hwPWVcBandWidth"), ("HUAWEI-PWE3-MIB", "hwPWVcMaxAtmCells"), ("HUAWEI-PWE3-MIB", "hwPWVcTnlPolicyName"), ("HUAWEI-PWE3-MIB", "hwPWVcQoSBehaviorIndex"), ("HUAWEI-PWE3-MIB", "hwPWVcExplicitPathName"), ("HUAWEI-PWE3-MIB", "hwPWVcTemplateName"), ("HUAWEI-PWE3-MIB", "hwPWVcSecondary"), ("HUAWEI-PWE3-MIB", "hwPWVcUpTime"), ("HUAWEI-PWE3-MIB", "hwPWOAMSync"), ("HUAWEI-PWE3-MIB", "hwPWVCForBfdIndex"), ("HUAWEI-PWE3-MIB", "hwPWVcDelayTime"), ("HUAWEI-PWE3-MIB", "hwPWVcReroutePolicy"), ("HUAWEI-PWE3-MIB", "hwPWVcResumeTime"), ("HUAWEI-PWE3-MIB", "hwPWVcRerouteReason"), ("HUAWEI-PWE3-MIB", "hwPWVcLastRerouteTime"), ("HUAWEI-PWE3-MIB", "hwPWVcManualSetFault"), ("HUAWEI-PWE3-MIB", "hwPWVcActive"), ("HUAWEI-PWE3-MIB", "hwPWVcVrIfIndex"), ("HUAWEI-PWE3-MIB", "hwPWVcVrID"), ("HUAWEI-PWE3-MIB", "hwPWBFDDetectMultiplier"), ("HUAWEI-PWE3-MIB", "hwPWBFDMinReceiveInterval"), ("HUAWEI-PWE3-MIB", "hwPWBFDMinTransmitInterval"), ("HUAWEI-PWE3-MIB", "hwPWDynamicBFDDetect"), ("HUAWEI-PWE3-MIB", "hwPWBFDRemoteVcID"), ("HUAWEI-PWE3-MIB", "hwPWEthOamType"), ("HUAWEI-PWE3-MIB", "hwPWCfmMaIndex"), ("HUAWEI-PWE3-MIB", "hwPWVcUpStartTime"), ("HUAWEI-PWE3-MIB", "hwPWVcUpSumTime"), ("HUAWEI-PWE3-MIB", "hwPWVcIfName"), ("HUAWEI-PWE3-MIB", "hwPWVcRowStatus"), ("HUAWEI-PWE3-MIB", "hwPWVcAtmPackOvertime"), ("HUAWEI-PWE3-MIB", "hwPWVcPwJitterBufferDepth"), ("HUAWEI-PWE3-MIB", "hwPWVcPwTdmEncapsulationNum"), ("HUAWEI-PWE3-MIB", "hwPWVcPwIdleCode"), ("HUAWEI-PWE3-MIB", "hwPWVcPwRtpHeader"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchTnlPolicyName"), ("HUAWEI-PWE3-MIB", "hwPWVcCfmMdIndex"), ("HUAWEI-PWE3-MIB", "hwPWVcCfmMaName"), ("HUAWEI-PWE3-MIB", "hwPWVcCfmMdName"), ("HUAWEI-PWE3-MIB", "hwPWVcRawOrTagged"), ("HUAWEI-PWE3-MIB", "hwPWVcInterworkingType"), ("HUAWEI-PWE3-MIB", "hwPWVcCir"), ("HUAWEI-PWE3-MIB", "hwPWVcPir"), ("HUAWEI-PWE3-MIB", "hwPWVcQosProfile"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchCir"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchPir"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchQosProfile"), ("HUAWEI-PWE3-MIB", "hwPWVcTrigger"), ("HUAWEI-PWE3-MIB", "hwPWVcEnableACOAM"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchVrIfIndex"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchVrID"), ("HUAWEI-PWE3-MIB", "hwPWVcQosParaFromPWT"), ("HUAWEI-PWE3-MIB", "hwPWVcBfdParaFromPWT"), ("HUAWEI-PWE3-MIB", "hwPwVcNegotiateMode"), ("HUAWEI-PWE3-MIB", "hwPwVcIsBypass"), ("HUAWEI-PWE3-MIB", "hwPwVcIsAdmin"), ("HUAWEI-PWE3-MIB", "hwPwVcAdminPwIfIndex"), ("HUAWEI-PWE3-MIB", "hwPwVcAdminPwLinkStatus"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchAdminPwIfIndex"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchAdminPwLinkStatus"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupAdminPwIfIndex"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupAdminPwLinkStatus"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupVcId"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupVcPeerAddrType"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupVcPeerAddr"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupVcReceiveLabel"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupVcSendLabel"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupVcTnlPolicyName"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupVcCir"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupVcPir"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupVcQosProfile"), ("HUAWEI-PWE3-MIB", "hwPwVcSlaveMasterMode"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchVcSlaveMasterMode"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupVcSlaveMasterMode"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchVcActive"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupVcActive"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchCwTrans"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchVcServiceName"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupVcServiceName")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwPWVcGroup = hwPWVcGroup.setStatus('current') if mibBuilder.loadTexts: hwPWVcGroup.setDescription("The Pwe3's VC group.") hwPWVcTnlGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 2)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcTnlType"), ("HUAWEI-PWE3-MIB", "hwPWTnlForBfdIndex")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwPWVcTnlGroup = hwPWVcTnlGroup.setStatus('current') if mibBuilder.loadTexts: hwPWVcTnlGroup.setDescription("The PWE3's VC Tunnel group.") hwPWVcStatisticsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 3)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcStatisticsRcvPkts"), ("HUAWEI-PWE3-MIB", "hwPWVcStatisticsRcvBytes"), ("HUAWEI-PWE3-MIB", "hwPWVcStatisticsSndPkts"), ("HUAWEI-PWE3-MIB", "hwPWVcStatisticsSndBytes")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwPWVcStatisticsGroup = hwPWVcStatisticsGroup.setStatus('current') if mibBuilder.loadTexts: hwPWVcStatisticsGroup.setDescription("The PWE3's VC Statistics group.") hwPWRemoteVcGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 4)).setObjects(("HUAWEI-PWE3-MIB", "hwPWRemoteVcID"), ("HUAWEI-PWE3-MIB", "hwPWRemoteVcType"), ("HUAWEI-PWE3-MIB", "hwPWRemoteVcStatus"), ("HUAWEI-PWE3-MIB", "hwPWRemoteVcGroupID"), ("HUAWEI-PWE3-MIB", "hwPWRemoteVcMtu"), ("HUAWEI-PWE3-MIB", "hwPWRemoteVcCtrlword"), ("HUAWEI-PWE3-MIB", "hwPWRemoteVcMaxAtmCells"), ("HUAWEI-PWE3-MIB", "hwPWRemoteVcNotif")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwPWRemoteVcGroup = hwPWRemoteVcGroup.setStatus('current') if mibBuilder.loadTexts: hwPWRemoteVcGroup.setDescription("The PWE3's Remote VC group.") hwPWTemplateGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 5)).setObjects(("HUAWEI-PWE3-MIB", "hwPWTemplatePeerAddrType"), ("HUAWEI-PWE3-MIB", "hwPWTemplatePeerAddr"), ("HUAWEI-PWE3-MIB", "hwPWTemplateCtrlword"), ("HUAWEI-PWE3-MIB", "hwPWTemplateVCCV"), ("HUAWEI-PWE3-MIB", "hwPWTemplateFrag"), ("HUAWEI-PWE3-MIB", "hwPWTemplateBandwidth"), ("HUAWEI-PWE3-MIB", "hwPWTemplateTnlPolicyName"), ("HUAWEI-PWE3-MIB", "hwPWTemplateQoSBehaviorIndex"), ("HUAWEI-PWE3-MIB", "hwPWTemplateExplicitPathName"), ("HUAWEI-PWE3-MIB", "hwPWTemplateBFDDetectMultiplier"), ("HUAWEI-PWE3-MIB", "hwPWTemplateBFDMinReceiveInterval"), ("HUAWEI-PWE3-MIB", "hwPWTemplateBFDMinTransmitInterval"), ("HUAWEI-PWE3-MIB", "hwPWTemplateDynamicBFDDetect"), ("HUAWEI-PWE3-MIB", "hwPWTemplateMaxAtmCells"), ("HUAWEI-PWE3-MIB", "hwPWTemplateAtmPackOvertime"), ("HUAWEI-PWE3-MIB", "hwPWTemplatePwJitterBufferDepth"), ("HUAWEI-PWE3-MIB", "hwPWTemplatePwTdmEncapsulationNum"), ("HUAWEI-PWE3-MIB", "hwPWTemplatePwIdleCode"), ("HUAWEI-PWE3-MIB", "hwPWTemplatePwRtpHeader"), ("HUAWEI-PWE3-MIB", "hwPWTemplatePwCCSeqEnable"), ("HUAWEI-PWE3-MIB", "hwPWTemplateCir"), ("HUAWEI-PWE3-MIB", "hwPWTemplatePir"), ("HUAWEI-PWE3-MIB", "hwPWTemplateQosProfile"), ("HUAWEI-PWE3-MIB", "hwPWTemplateFlowLabel"), ("HUAWEI-PWE3-MIB", "hwPWTemplateRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwPWTemplateGroup = hwPWTemplateGroup.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateGroup.setDescription("The PWE3's Template group.") hwPWNotificationControlGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 6)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcSwitchNotifEnable"), ("HUAWEI-PWE3-MIB", "hwPWVcUpDownNotifEnable"), ("HUAWEI-PWE3-MIB", "hwPWVcDeletedNotifEnable")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwPWNotificationControlGroup = hwPWNotificationControlGroup.setStatus('current') if mibBuilder.loadTexts: hwPWNotificationControlGroup.setDescription("The PWE3's Notification Control group.") hwPWVcStateChangeReasonGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 7)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcStateChangeReason"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchRmtID")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwPWVcStateChangeReasonGroup = hwPWVcStateChangeReasonGroup.setStatus('current') if mibBuilder.loadTexts: hwPWVcStateChangeReasonGroup.setDescription("The PWE3's Vc State Reason group.") hwPWVcNotificationGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 8)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcSwitchWtoP"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchPtoW"), ("HUAWEI-PWE3-MIB", "hwPWVcDown"), ("HUAWEI-PWE3-MIB", "hwPWVcUp"), ("HUAWEI-PWE3-MIB", "hwPWVcDeleted"), ("HUAWEI-PWE3-MIB", "hwPWVcBackup"), ("HUAWEI-PWE3-MIB", "hwLdpPWVcDown"), ("HUAWEI-PWE3-MIB", "hwLdpPWVcUp")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwPWVcNotificationGroup = hwPWVcNotificationGroup.setStatus('current') if mibBuilder.loadTexts: hwPWVcNotificationGroup.setDescription("The PWE3's VC Notification group.") hwLdpPWStateChangeReasonGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 9)).setObjects(("HUAWEI-PWE3-MIB", "hwLdpPWStateChangeReason")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwLdpPWStateChangeReasonGroup = hwLdpPWStateChangeReasonGroup.setStatus('current') if mibBuilder.loadTexts: hwLdpPWStateChangeReasonGroup.setDescription('The LDP PW VC State Reason group.') hwPWVcTDMPerfCurrentGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 10)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcTDMPerfCurrentMissingPkts"), ("HUAWEI-PWE3-MIB", "hwPWVcTDMPerfCurrentJtrBfrOverruns"), ("HUAWEI-PWE3-MIB", "hwPWVcTDMPerfCurrentJtrBfrUnderruns"), ("HUAWEI-PWE3-MIB", "hwPWVcTDMPerfCurrentMisOrderDropped"), ("HUAWEI-PWE3-MIB", "hwPWVcTDMPerfCurrentMalformedPkt"), ("HUAWEI-PWE3-MIB", "hwPWVcTDMPerfCurrentESs"), ("HUAWEI-PWE3-MIB", "hwPWVcTDMPerfCurrentSESs"), ("HUAWEI-PWE3-MIB", "hwPWVcTDMPerfCurrentUASs")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwPWVcTDMPerfCurrentGroup = hwPWVcTDMPerfCurrentGroup.setStatus('current') if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentGroup.setDescription("The PWE3's VC TDM performance information group.") hwL2vpnSvcMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3)) hwSvcGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3, 1)).setObjects(("HUAWEI-PWE3-MIB", "hwSvcID"), ("HUAWEI-PWE3-MIB", "hwSvcType"), ("HUAWEI-PWE3-MIB", "hwSvcPeerAddrType"), ("HUAWEI-PWE3-MIB", "hwSvcPeerAddr"), ("HUAWEI-PWE3-MIB", "hwSvcStatus"), ("HUAWEI-PWE3-MIB", "hwSvcInboundLabel"), ("HUAWEI-PWE3-MIB", "hwSvcOutboundLabel"), ("HUAWEI-PWE3-MIB", "hwSvcGroupID"), ("HUAWEI-PWE3-MIB", "hwSvcAcStatus"), ("HUAWEI-PWE3-MIB", "hwSvcACOAMStatus"), ("HUAWEI-PWE3-MIB", "hwSvcMtu"), ("HUAWEI-PWE3-MIB", "hwSvcCtrlWord"), ("HUAWEI-PWE3-MIB", "hwSvcVCCV"), ("HUAWEI-PWE3-MIB", "hwSvcBandWidth"), ("HUAWEI-PWE3-MIB", "hwSvcMaxAtmCells"), ("HUAWEI-PWE3-MIB", "hwSvcTnlPolicyName"), ("HUAWEI-PWE3-MIB", "hwSvcQoSBehaviorIndex"), ("HUAWEI-PWE3-MIB", "hwSvcPWTemplateName"), ("HUAWEI-PWE3-MIB", "hwSvcUpTime"), ("HUAWEI-PWE3-MIB", "hwSvcOAMSync"), ("HUAWEI-PWE3-MIB", "hwSvcForBfdIndex"), ("HUAWEI-PWE3-MIB", "hwSvcSecondary"), ("HUAWEI-PWE3-MIB", "hwSvcDelayTime"), ("HUAWEI-PWE3-MIB", "hwSvcReroutePolicy"), ("HUAWEI-PWE3-MIB", "hwSvcResumeTime"), ("HUAWEI-PWE3-MIB", "hwSvcRerouteReason"), ("HUAWEI-PWE3-MIB", "hwSvcLastRerouteTime"), ("HUAWEI-PWE3-MIB", "hwSvcManualSetFault"), ("HUAWEI-PWE3-MIB", "hwSvcActive"), ("HUAWEI-PWE3-MIB", "hwSvcUpStartTime"), ("HUAWEI-PWE3-MIB", "hwSvcUpSumTime"), ("HUAWEI-PWE3-MIB", "hwSvcAtmPackOvertime"), ("HUAWEI-PWE3-MIB", "hwSvcPwJitterBufferDepth"), ("HUAWEI-PWE3-MIB", "hwSvcPwTdmEncapsulationNum"), ("HUAWEI-PWE3-MIB", "hwSvcPwIdleCode"), ("HUAWEI-PWE3-MIB", "hwSvcPwRtpHeader"), ("HUAWEI-PWE3-MIB", "hwSvcRawOrTagged"), ("HUAWEI-PWE3-MIB", "hwSvcInterworkingType"), ("HUAWEI-PWE3-MIB", "hwSvcCir"), ("HUAWEI-PWE3-MIB", "hwSvcPir"), ("HUAWEI-PWE3-MIB", "hwSvcQosProfile"), ("HUAWEI-PWE3-MIB", "hwSvcRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwSvcGroup = hwSvcGroup.setStatus('current') if mibBuilder.loadTexts: hwSvcGroup.setDescription("The L2vpn's SVC group.") hwSvcTnlGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3, 2)).setObjects(("HUAWEI-PWE3-MIB", "hwSvcTnlType"), ("HUAWEI-PWE3-MIB", "hwSvcTnlForBfdIndex")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwSvcTnlGroup = hwSvcTnlGroup.setStatus('current') if mibBuilder.loadTexts: hwSvcTnlGroup.setDescription("The L2vpn's SVC Tunnel group.") hwSvcStatisticsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3, 3)).setObjects(("HUAWEI-PWE3-MIB", "hwSvcStatisticsRcvPkts"), ("HUAWEI-PWE3-MIB", "hwSvcStatisticsRcvBytes"), ("HUAWEI-PWE3-MIB", "hwSvcStatisticsSndPkts"), ("HUAWEI-PWE3-MIB", "hwSvcStatisticsSndBytes")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwSvcStatisticsGroup = hwSvcStatisticsGroup.setStatus('current') if mibBuilder.loadTexts: hwSvcStatisticsGroup.setDescription("The L2vpn's SVC Statistics group.") hwSvcNotificationControlGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3, 4)).setObjects(("HUAWEI-PWE3-MIB", "hwSvcSwitchNotifEnable"), ("HUAWEI-PWE3-MIB", "hwSvcUpDownNotifEnable"), ("HUAWEI-PWE3-MIB", "hwSvcDeletedNotifEnable")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwSvcNotificationControlGroup = hwSvcNotificationControlGroup.setStatus('current') if mibBuilder.loadTexts: hwSvcNotificationControlGroup.setDescription("The L2vpn SVC's Notification Control group.") hwSvcStateChangeReasonGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3, 5)).setObjects(("HUAWEI-PWE3-MIB", "hwSvcStateChangeReason")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwSvcStateChangeReasonGroup = hwSvcStateChangeReasonGroup.setStatus('current') if mibBuilder.loadTexts: hwSvcStateChangeReasonGroup.setDescription("The L2vpn's SVc State Reason group.") hwSvcNotificationGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3, 6)).setObjects(("HUAWEI-PWE3-MIB", "hwSvcSwitchWtoP"), ("HUAWEI-PWE3-MIB", "hwSvcSwitchPtoW"), ("HUAWEI-PWE3-MIB", "hwSvcDown"), ("HUAWEI-PWE3-MIB", "hwSvcUp"), ("HUAWEI-PWE3-MIB", "hwSvcDeleted")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwSvcNotificationGroup = hwSvcNotificationGroup.setStatus('current') if mibBuilder.loadTexts: hwSvcNotificationGroup.setDescription("The L2vpn's SVC Notification group.") hwL2vpnPWTableMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 4)) hwPWTableGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 4, 1)).setObjects(("HUAWEI-PWE3-MIB", "hwPWInterfaceIndex")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwPWTableGroup = hwPWTableGroup.setStatus('current') if mibBuilder.loadTexts: hwPWTableGroup.setDescription('The PW Table Group.') mibBuilder.exportSymbols("HUAWEI-PWE3-MIB", hwPWTemplateVCCV=hwPWTemplateVCCV, hwPWVcVCCV=hwPWVcVCCV, hwPWVcUp=hwPWVcUp, hwL2VpnPwe3=hwL2VpnPwe3, hwSvcInboundLabel=hwSvcInboundLabel, hwPwVcSwitchAdminPwIfIndex=hwPwVcSwitchAdminPwIfIndex, hwPWVcQosProfile=hwPWVcQosProfile, hwSvcInterworkingType=hwSvcInterworkingType, hwSvcTnlEntry=hwSvcTnlEntry, hwPWEntry=hwPWEntry, HWLdpPwStateChangeReason=HWLdpPwStateChangeReason, hwPWVcTDMPerfCurrentMissingPkts=hwPWVcTDMPerfCurrentMissingPkts, hwPWVcBackup=hwPWVcBackup, hwSvcStateChangeReason=hwSvcStateChangeReason, hwPWTemplatePwTdmEncapsulationNum=hwPWTemplatePwTdmEncapsulationNum, hwPWVcActive=hwPWVcActive, hwPWVcExplicitPathName=hwPWVcExplicitPathName, hwPWVcIfName=hwPWVcIfName, hwPWTemplateAtmPackOvertime=hwPWTemplateAtmPackOvertime, hwPWTemplatePwCCSeqEnable=hwPWTemplatePwCCSeqEnable, hwSvcEntry=hwSvcEntry, hwPWTemplateTnlPolicyName=hwPWTemplateTnlPolicyName, hwPWVCForBfdIndex=hwPWVCForBfdIndex, hwPWVcTnlEntry=hwPWVcTnlEntry, hwSvcStatisticsTable=hwSvcStatisticsTable, hwPWTemplateBFDDetectMultiplier=hwPWTemplateBFDDetectMultiplier, hwSvcStatisticsRcvBytes=hwSvcStatisticsRcvBytes, hwPWVcRerouteReason=hwPWVcRerouteReason, hwSvcSwitchWtoP=hwSvcSwitchWtoP, hwPWVcQoSBehaviorIndex=hwPWVcQoSBehaviorIndex, hwSvcTnlType=hwSvcTnlType, hwL2vpnSvcMIBTraps=hwL2vpnSvcMIBTraps, hwPWVcUpStartTime=hwPWVcUpStartTime, hwPwVcSwitchVcActive=hwPwVcSwitchVcActive, hwSvcOAMSync=hwSvcOAMSync, hwSvcLastRerouteTime=hwSvcLastRerouteTime, hwPWVcCfmMdIndex=hwPWVcCfmMdIndex, hwPWVcPwIdleCode=hwPWVcPwIdleCode, hwPWVcSwitchVrID=hwPWVcSwitchVrID, hwPWTemplatePwJitterBufferDepth=hwPWTemplatePwJitterBufferDepth, hwPWVcPwTdmEncapsulationNum=hwPWVcPwTdmEncapsulationNum, hwLdpPWVcUp=hwLdpPWVcUp, hwPWVcGroup=hwPWVcGroup, hwPWRemoteVcMtu=hwPWRemoteVcMtu, hwSvcStatisticsSndBytes=hwSvcStatisticsSndBytes, hwSvcTnlIndex=hwSvcTnlIndex, hwPwVcSwitchBackupVcActive=hwPwVcSwitchBackupVcActive, hwPWRemoteVcGroup=hwPWRemoteVcGroup, hwSvcGroup=hwSvcGroup, hwPWVcAcStatus=hwPWVcAcStatus, hwPWRemoteVcCtrlword=hwPWRemoteVcCtrlword, hwPWVcUpDownNotifEnable=hwPWVcUpDownNotifEnable, hwSvcNotificationGroup=hwSvcNotificationGroup, hwPWVcType=hwPWVcType, hwPWVcSwitchInboundLabel=hwPWVcSwitchInboundLabel, hwPWVcStatisticsRcvPkts=hwPWVcStatisticsRcvPkts, hwSvcStatus=hwSvcStatus, hwSvcDeletedNotifEnable=hwSvcDeletedNotifEnable, hwSvcStatisticsSndPkts=hwSvcStatisticsSndPkts, hwPWBFDDetectMultiplier=hwPWBFDDetectMultiplier, hwPWVcCfmMdName=hwPWVcCfmMdName, hwPWVcManualSetFault=hwPWVcManualSetFault, hwPwVcSlaveMasterMode=hwPwVcSlaveMasterMode, hwPWTemplateFrag=hwPWTemplateFrag, hwPWVcTDMPerfCurrentMalformedPkt=hwPWVcTDMPerfCurrentMalformedPkt, hwSvcRowStatus=hwSvcRowStatus, hwSvcNotificationControlGroup=hwSvcNotificationControlGroup, hwPwVcSwitchBackupVcCir=hwPwVcSwitchBackupVcCir, hwPWRemoteVcTable=hwPWRemoteVcTable, hwSvcAcStatus=hwSvcAcStatus, hwPWVcTDMPerfCurrentUASs=hwPWVcTDMPerfCurrentUASs, PYSNMP_MODULE_ID=hwL2VpnPwe3, hwSvcStatisticsEntry=hwSvcStatisticsEntry, hwPWVcSwitchID=hwPWVcSwitchID, hwSvcPWTemplateName=hwSvcPWTemplateName, hwPWVcSwitchPir=hwPWVcSwitchPir, hwPwVcSwitchCwTrans=hwPwVcSwitchCwTrans, hwPWBFDMinReceiveInterval=hwPWBFDMinReceiveInterval, hwPWVcSwitchPeerAddrType=hwPWVcSwitchPeerAddrType, hwPWVcSwitchTnlPolicyName=hwPWVcSwitchTnlPolicyName, hwPWVcPir=hwPWVcPir, hwPwVcAdminPwIfIndex=hwPwVcAdminPwIfIndex, hwSvcQoSBehaviorIndex=hwSvcQoSBehaviorIndex, hwPWVcEntry=hwPWVcEntry, hwPwVcIsBypass=hwPwVcIsBypass, hwPWVcStatus=hwPWVcStatus, hwPWVcReroutePolicy=hwPWVcReroutePolicy, hwPWVcMtu=hwPWVcMtu, hwPWVcLastRerouteTime=hwPWVcLastRerouteTime, hwPwVcSwitchBackupVcPeerAddrType=hwPwVcSwitchBackupVcPeerAddrType, hwSvcCtrlWord=hwSvcCtrlWord, hwSvcUpSumTime=hwSvcUpSumTime, hwSvcPwTdmEncapsulationNum=hwSvcPwTdmEncapsulationNum, hwSvcRawOrTagged=hwSvcRawOrTagged, hwPWTemplateExplicitPathName=hwPWTemplateExplicitPathName, hwPWVcNotificationGroup=hwPWVcNotificationGroup, hwPWTemplatePir=hwPWTemplatePir, hwPWTemplateMaxAtmCells=hwPWTemplateMaxAtmCells, hwPWRemoteVcMaxAtmCells=hwPWRemoteVcMaxAtmCells, hwPwVcAdminPwLinkStatus=hwPwVcAdminPwLinkStatus, hwPWTemplatePeerAddrType=hwPWTemplatePeerAddrType, hwPWInterfaceIndex=hwPWInterfaceIndex, hwPWVcPeerAddrType=hwPWVcPeerAddrType, hwPWVcVrIfIndex=hwPWVcVrIfIndex, hwPWTemplateDynamicBFDDetect=hwPWTemplateDynamicBFDDetect, hwPWVcEnableACOAM=hwPWVcEnableACOAM, hwPwVcSwitchBackupVcReceiveLabel=hwPwVcSwitchBackupVcReceiveLabel, hwPWTemplateBandwidth=hwPWTemplateBandwidth, hwPWVcUpTime=hwPWVcUpTime, hwPwVcSwitchBackupAdminPwLinkStatus=hwPwVcSwitchBackupAdminPwLinkStatus, hwPWVcStatisticsTable=hwPWVcStatisticsTable, hwPWVcTnlIndex=hwPWVcTnlIndex, hwPWVcStatisticsSndPkts=hwPWVcStatisticsSndPkts, hwPWVcCtrlWord=hwPWVcCtrlWord, hwLdpPWStateChangeReasonGroup=hwLdpPWStateChangeReasonGroup, hwPWTemplateQosProfile=hwPWTemplateQosProfile, hwPwVcSwitchBackupVcId=hwPwVcSwitchBackupVcId, hwSvcActive=hwSvcActive, hwPWVcTDMPerfCurrentEntry=hwPWVcTDMPerfCurrentEntry, hwSvcPwRtpHeader=hwSvcPwRtpHeader, hwPwe3MIBObjects=hwPwe3MIBObjects, hwSvcUpDownNotifEnable=hwSvcUpDownNotifEnable, hwPWTemplateGroup=hwPWTemplateGroup, hwSvcReroutePolicy=hwSvcReroutePolicy, hwSvcPwJitterBufferDepth=hwSvcPwJitterBufferDepth, hwLdpPWStateChangeReason=hwLdpPWStateChangeReason, hwPWTemplatePwIdleCode=hwPWTemplatePwIdleCode, hwPWVcID=hwPWVcID, hwPWVcTnlPolicyName=hwPWVcTnlPolicyName, hwPWVcTDMPerfCurrentESs=hwPWVcTDMPerfCurrentESs, hwPWTemplateBFDMinTransmitInterval=hwPWTemplateBFDMinTransmitInterval, hwSvcStateChangeReasonGroup=hwSvcStateChangeReasonGroup, hwPwVcSwitchBackupVcSendLabel=hwPwVcSwitchBackupVcSendLabel, hwPWTnlForBfdIndex=hwPWTnlForBfdIndex, hwSvcBandWidth=hwSvcBandWidth, hwPWVcTDMPerfCurrentMisOrderDropped=hwPWVcTDMPerfCurrentMisOrderDropped, hwPWTemplateName=hwPWTemplateName, hwPWVcCir=hwPWVcCir, hwPWTableGroup=hwPWTableGroup, hwSvcTnlTable=hwSvcTnlTable, hwPWVcOutboundLabel=hwPWVcOutboundLabel, hwPWTableObjects=hwPWTableObjects, hwPWRemoteVcGroupID=hwPWRemoteVcGroupID, hwPWVcStateChangeReason=hwPWVcStateChangeReason, hwSvcQosProfile=hwSvcQosProfile, hwSvcUpTime=hwSvcUpTime, hwSvcPwIdleCode=hwSvcPwIdleCode, hwPWVcSwitchRmtID=hwPWVcSwitchRmtID, hwPWVcInboundLabel=hwPWVcInboundLabel, hwPWVcBfdParaFromPWT=hwPWVcBfdParaFromPWT, hwPWVcSwitchNotifEnable=hwPWVcSwitchNotifEnable, hwSvcDeleted=hwSvcDeleted, hwSvcRerouteReason=hwSvcRerouteReason, hwPWVcQosParaFromPWT=hwPWVcQosParaFromPWT, hwPWRemoteVcType=hwPWRemoteVcType, hwPWVcRowStatus=hwPWVcRowStatus, hwPWVcRawOrTagged=hwPWVcRawOrTagged, hwPWTemplateMIBTraps=hwPWTemplateMIBTraps, hwPWVcACOAMStatus=hwPWVcACOAMStatus, hwPWBFDMinTransmitInterval=hwPWBFDMinTransmitInterval, hwPWVcSwitchQosProfile=hwPWVcSwitchQosProfile, hwPWVcSwitchVrIfIndex=hwPWVcSwitchVrIfIndex, hwPWType=hwPWType, hwPwVcSwitchBackupVcPir=hwPwVcSwitchBackupVcPir, hwPWVcSwitchSign=hwPWVcSwitchSign, hwPwVcSwitchBackupVcQosProfile=hwPwVcSwitchBackupVcQosProfile, hwPWTemplateFlowLabel=hwPWTemplateFlowLabel, hwPWVcTDMPerfCurrentJtrBfrOverruns=hwPWVcTDMPerfCurrentJtrBfrOverruns, hwPWVcGroupID=hwPWVcGroupID, hwPWVcUpSumTime=hwPWVcUpSumTime, hwPwe3MIBTraps=hwPwe3MIBTraps, hwPWVcTDMPerfCurrentTable=hwPWVcTDMPerfCurrentTable, hwSvcResumeTime=hwSvcResumeTime, hwPwVcSwitchBackupAdminPwIfIndex=hwPwVcSwitchBackupAdminPwIfIndex, hwPWTemplateRowStatus=hwPWTemplateRowStatus, hwPwe3MIBGroups=hwPwe3MIBGroups, hwSvcType=hwSvcType, hwSvcVCCV=hwSvcVCCV, hwPWVcStatisticsSndBytes=hwPWVcStatisticsSndBytes, hwSvcDelayTime=hwSvcDelayTime, hwSvcPir=hwSvcPir, hwPWVcPwRtpHeader=hwPWVcPwRtpHeader, hwPWRemoteVcNotif=hwPWRemoteVcNotif, hwPWTemplateQoSBehaviorIndex=hwPWTemplateQoSBehaviorIndex, hwL2vpnPWTableMIBGroups=hwL2vpnPWTableMIBGroups, hwPWVcTable=hwPWVcTable, hwPwVcSwitchAdminPwLinkStatus=hwPwVcSwitchAdminPwLinkStatus, hwPWRemoteVcEntry=hwPWRemoteVcEntry, hwLdpPWVcDown=hwLdpPWVcDown, hwSvcAtmPackOvertime=hwSvcAtmPackOvertime, hwPwe3MIBCompliance=hwPwe3MIBCompliance, hwPWVcPwJitterBufferDepth=hwPWVcPwJitterBufferDepth, hwPWVcSwitchCir=hwPWVcSwitchCir, hwPwVcSwitchVcServiceName=hwPwVcSwitchVcServiceName, hwPWTemplateBFDMinReceiveInterval=hwPWTemplateBFDMinReceiveInterval, hwPWVcDelayTime=hwPWVcDelayTime, hwSvcStatisticsGroup=hwSvcStatisticsGroup, hwPWVcTnlGroup=hwPWVcTnlGroup, hwSvcUp=hwSvcUp, hwSvcPeerAddrType=hwSvcPeerAddrType, hwPWVcStatisticsGroup=hwPWVcStatisticsGroup, hwPwe3MIBCompliances=hwPwe3MIBCompliances, hwL2Vpn=hwL2Vpn, hwPWVcInterworkingType=hwPWVcInterworkingType, hwPwe3Objects=hwPwe3Objects, hwPWVcSwitchPeerAddr=hwPWVcSwitchPeerAddr, hwPwVcIsAdmin=hwPwVcIsAdmin, hwPWOAMSync=hwPWOAMSync, hwPWVcTnlTable=hwPWVcTnlTable, hwSvcOutboundLabel=hwSvcOutboundLabel, hwPWTemplatePeerAddr=hwPWTemplatePeerAddr, hwPWVcMaxAtmCells=hwPWVcMaxAtmCells, hwPWVcCfmMaName=hwPWVcCfmMaName, hwPwVcSwitchBackupVcServiceName=hwPwVcSwitchBackupVcServiceName, hwPWVcStatisticsRcvBytes=hwPWVcStatisticsRcvBytes, hwSvcMtu=hwSvcMtu, hwSvcTnlForBfdIndex=hwSvcTnlForBfdIndex, hwPWVcTDMPerfCurrentGroup=hwPWVcTDMPerfCurrentGroup, hwPWBFDRemoteVcID=hwPWBFDRemoteVcID, hwPWVcTrigger=hwPWVcTrigger, hwSvcSwitchPtoW=hwSvcSwitchPtoW, hwPwVcSwitchBackupVcSlaveMasterMode=hwPwVcSwitchBackupVcSlaveMasterMode, hwPwe3MIBConformance=hwPwe3MIBConformance, hwSvcID=hwSvcID, hwPWTemplatePwRtpHeader=hwPWTemplatePwRtpHeader, hwSvcMaxAtmCells=hwSvcMaxAtmCells, hwSvcIfIndex=hwSvcIfIndex, hwPWEthOamType=hwPWEthOamType, hwPWVcIfIndex=hwPWVcIfIndex, hwSvcTnlPolicyName=hwSvcTnlPolicyName, hwPWTemplateCir=hwPWTemplateCir, hwPWVcStatisticsEntry=hwPWVcStatisticsEntry, hwPWVcDeleted=hwPWVcDeleted, hwPWRemoteVcStatus=hwPWRemoteVcStatus, hwPWVcTnlType=hwPWVcTnlType, hwSvcTnlGroup=hwSvcTnlGroup, hwPWVcResumeTime=hwPWVcResumeTime, hwPWVcTemplateName=hwPWVcTemplateName, hwPWVcSwitchOutboundLabel=hwPWVcSwitchOutboundLabel, hwSvcPeerAddr=hwSvcPeerAddr, hwPWId=hwPWId, hwPwVcSwitchVcSlaveMasterMode=hwPwVcSwitchVcSlaveMasterMode, hwPWCfmMaIndex=hwPWCfmMaIndex, hwPWTemplateCannotDeleted=hwPWTemplateCannotDeleted, hwPWVcSwitchPtoW=hwPWVcSwitchPtoW, hwPWVcAtmPackOvertime=hwPWVcAtmPackOvertime, hwPWVcSwitchWtoP=hwPWVcSwitchWtoP, hwPWTemplateCtrlword=hwPWTemplateCtrlword, hwPWVcTDMPerfCurrentJtrBfrUnderruns=hwPWVcTDMPerfCurrentJtrBfrUnderruns, hwSvcGroupID=hwSvcGroupID, hwPWRemoteVcID=hwPWRemoteVcID, hwPWVcDeletedNotifEnable=hwPWVcDeletedNotifEnable, hwPWVcBandWidth=hwPWVcBandWidth, hwPwVcNegotiateMode=hwPwVcNegotiateMode) mibBuilder.exportSymbols("HUAWEI-PWE3-MIB", hwSvcSwitchNotifEnable=hwSvcSwitchNotifEnable, hwSvcStatisticsRcvPkts=hwSvcStatisticsRcvPkts, hwPWVcDown=hwPWVcDown, hwPWVcTDMPerfCurrentSESs=hwPWVcTDMPerfCurrentSESs, hwPWVcStateChangeReasonGroup=hwPWVcStateChangeReasonGroup, hwPWVcPeerAddr=hwPWVcPeerAddr, hwPWVcVrID=hwPWVcVrID, hwPWVcSecondary=hwPWVcSecondary, hwPwVcSwitchBackupVcPeerAddr=hwPwVcSwitchBackupVcPeerAddr, hwPWNotificationControlGroup=hwPWNotificationControlGroup, hwSvcManualSetFault=hwSvcManualSetFault, hwSvcObjects=hwSvcObjects, hwSvcACOAMStatus=hwSvcACOAMStatus, hwSvcUpStartTime=hwSvcUpStartTime, hwPwVcSwitchBackupVcTnlPolicyName=hwPwVcSwitchBackupVcTnlPolicyName, hwPWTable=hwPWTable, hwSvcTable=hwSvcTable, hwPWTemplateTable=hwPWTemplateTable, hwSvcSecondary=hwSvcSecondary, hwPWPeerIp=hwPWPeerIp, hwL2vpnSvcMIBGroups=hwL2vpnSvcMIBGroups, hwSvcForBfdIndex=hwSvcForBfdIndex, hwSvcCir=hwSvcCir, hwPWDynamicBFDDetect=hwPWDynamicBFDDetect, hwSvcDown=hwSvcDown, hwPWTemplateEntry=hwPWTemplateEntry)
(octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, constraints_intersection, constraints_union, value_size_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ConstraintsIntersection', 'ConstraintsUnion', 'ValueSizeConstraint', 'ValueRangeConstraint') (hw_datacomm,) = mibBuilder.importSymbols('HUAWEI-MIB', 'hwDatacomm') (hwl2_vpn_vc_encaps_type, hw_enable_value, hwl2_vpn_state_change_reason) = mibBuilder.importSymbols('HUAWEI-VPLS-EXT-MIB', 'HWL2VpnVcEncapsType', 'HWEnableValue', 'HWL2VpnStateChangeReason') (interface_index_or_zero, if_name) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndexOrZero', 'ifName') (inet_address_type,) = mibBuilder.importSymbols('INET-ADDRESS-MIB', 'InetAddressType') (enabled_status,) = mibBuilder.importSymbols('P-BRIDGE-MIB', 'EnabledStatus') (notification_group, object_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ObjectGroup', 'ModuleCompliance') (sys_up_time,) = mibBuilder.importSymbols('SNMPv2-MIB', 'sysUpTime') (iso, notification_type, integer32, mib_scalar, mib_table, mib_table_row, mib_table_column, ip_address, module_identity, counter64, bits, time_ticks, gauge32, bits, object_identity, mib_identifier, unsigned32, counter32) = mibBuilder.importSymbols('SNMPv2-SMI', 'iso', 'NotificationType', 'Integer32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'IpAddress', 'ModuleIdentity', 'Counter64', 'Bits', 'TimeTicks', 'Gauge32', 'Bits', 'ObjectIdentity', 'MibIdentifier', 'Unsigned32', 'Counter32') (display_string, textual_convention, row_status, truth_value) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention', 'RowStatus', 'TruthValue') hw_l2_vpn_pwe3 = module_identity((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4)) if mibBuilder.loadTexts: hwL2VpnPwe3.setLastUpdated('200704120900Z') if mibBuilder.loadTexts: hwL2VpnPwe3.setOrganization('Huawei Technologies Co., Ltd.') if mibBuilder.loadTexts: hwL2VpnPwe3.setContactInfo('R&D BeiJing, Huawei Technologies co.,Ltd. Huawei Bld.,NO.3 Xinxi Rd., Shang-Di Information Industry Base, Hai-Dian District Beijing P.R. China Zip:100085 Http://www.huawei.com E-mail:support@huawei.com') if mibBuilder.loadTexts: hwL2VpnPwe3.setDescription('The HUAWEI-PWE3-MIB contains objects to manage PWE3.') class Hwldppwstatechangereason(TextualConvention, Integer32): description = "The type indicates the reason of LDP PW VC's status change: LDP session down (1) AC interface down (2) PSN tunnel state down (3) Mapping message not received (4) PW interface parameter not match (5) Notification not forwarding (6) " status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6)) named_values = named_values(('ldpSessionDown', 1), ('interfaceDown', 2), ('tunnelDown', 3), ('receivedNoMapping', 4), ('paraUnMatched', 5), ('notifiNotForward', 6)) hw_l2_vpn = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119)) hw_pwe3_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1)) hw_pwe3_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1)) hw_pw_vc_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1)) if mibBuilder.loadTexts: hwPWVcTable.setStatus('current') if mibBuilder.loadTexts: hwPWVcTable.setDescription('This table is the VC configuration table. Users can create or delete a VC by it.') hw_pw_vc_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1)).setIndexNames((0, 'HUAWEI-PWE3-MIB', 'hwPWVcID'), (0, 'HUAWEI-PWE3-MIB', 'hwPWVcType')) if mibBuilder.loadTexts: hwPWVcEntry.setStatus('current') if mibBuilder.loadTexts: hwPWVcEntry.setDescription('Provides the information of a VC entry.') hw_pw_vc_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 1), unsigned32()) if mibBuilder.loadTexts: hwPWVcID.setStatus('current') if mibBuilder.loadTexts: hwPWVcID.setDescription("Index for the conceptual row identifying a PW within this PW Emulation table.Used in the outgoing PW ID field within the 'Virtual Circuit FEC Element'.") hw_pw_vc_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 2), hwl2_vpn_vc_encaps_type()) if mibBuilder.loadTexts: hwPWVcType.setStatus('current') if mibBuilder.loadTexts: hwPWVcType.setDescription('The type of the Virtual Circuit.This value indicate the service to be carried over this PW.') hw_pw_vc_peer_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 3), inet_address_type().clone('ipv4')).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcPeerAddrType.setStatus('current') if mibBuilder.loadTexts: hwPWVcPeerAddrType.setDescription("Denotes the address type of the peer node. It should be set to 'unknown' if PE/PW maintenance protocol is not used and the address is unknown. Currently, support 'ipv4' only.") hw_pw_vc_peer_addr = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 4), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcPeerAddr.setStatus('current') if mibBuilder.loadTexts: hwPWVcPeerAddr.setDescription("This object contain the value of the peer node address of the PW/PE maintenance protocol entity. This object SHOULD contain a value of all zeroes if not applicable (hwPWVcPeerAddrType is 'unknown').") hw_pw_vc_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('up', 1), ('down', 2), ('plugout', 3), ('backup', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcStatus.setStatus('current') if mibBuilder.loadTexts: hwPWVcStatus.setDescription("Indicates the status of the PW in the local node. Currently, can't support 'plugout'.") hw_pw_vc_inbound_label = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 6), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcInboundLabel.setStatus('current') if mibBuilder.loadTexts: hwPWVcInboundLabel.setDescription('For ldp vc, the value will be created by system automatically.') hw_pw_vc_outbound_label = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 7), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcOutboundLabel.setStatus('current') if mibBuilder.loadTexts: hwPWVcOutboundLabel.setDescription('For ldp vc, the value will be created by system automatically.') hw_pw_vc_switch_sign = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('staticTostatic', 1), ('ldpTostatic', 2), ('ldpToldp', 3), ('upe', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcSwitchSign.setStatus('current') if mibBuilder.loadTexts: hwPWVcSwitchSign.setDescription('The sign of switch.') hw_pw_vc_switch_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 9), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcSwitchID.setStatus('current') if mibBuilder.loadTexts: hwPWVcSwitchID.setDescription("Used in the outgoing PW ID field within the 'Virtual Circuit FEC Element' of the switch PW.") hw_pw_vc_switch_peer_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 10), inet_address_type().clone('ipv4')).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcSwitchPeerAddrType.setStatus('current') if mibBuilder.loadTexts: hwPWVcSwitchPeerAddrType.setDescription("Denotes the address type of the peer node of the switch PW. It should be set to 'unknown' if PE/PW maintenance protocol is not used and the address is unknown. Currently, support 'ipv4' only.") hw_pw_vc_switch_peer_addr = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 11), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcSwitchPeerAddr.setStatus('current') if mibBuilder.loadTexts: hwPWVcSwitchPeerAddr.setDescription("This object contain the value of the peer node address of the switch PW of the PW/PE maintenance protocol entity. This object SHOULD contain a value of all zeroes if not applicable (hwPWVcSwitchPeerAddrType is 'unknown').") hw_pw_vc_switch_inbound_label = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 12), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcSwitchInboundLabel.setStatus('current') if mibBuilder.loadTexts: hwPWVcSwitchInboundLabel.setDescription('For ldp vc, the value will be created by system automatically.') hw_pw_vc_switch_outbound_label = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 13), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcSwitchOutboundLabel.setStatus('current') if mibBuilder.loadTexts: hwPWVcSwitchOutboundLabel.setDescription('For ldp vc, the value will be created by system automatically.') hw_pw_vc_group_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 14), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcGroupID.setStatus('current') if mibBuilder.loadTexts: hwPWVcGroupID.setDescription("Used in the Group ID field sent to the peer PWES within the maintenance protocol used for PW setup. Applicable if pwVcOwner equal 'pwIdFecSignaling' or 'l2tpControlProtocol', should be set to zero otherwise. Currently, this value always be zero.") hw_pw_vc_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 15), interface_index_or_zero()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcIfIndex.setStatus('current') if mibBuilder.loadTexts: hwPWVcIfIndex.setDescription('Index of the interface (or the virtual interface) associated with the PW.') hw_pw_vc_ac_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 16), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('up', 1), ('down', 2), ('plugout', 3), ('notify', 4), ('notifyDown', 5), ('downNotify', 6)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcAcStatus.setStatus('current') if mibBuilder.loadTexts: hwPWVcAcStatus.setDescription("Local AC status. Currently, can't support 'plugout'.") hw_pw_vc_acoam_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('up', 1), ('down', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcACOAMStatus.setStatus('current') if mibBuilder.loadTexts: hwPWVcACOAMStatus.setDescription("Denotes the AC's protocol is operational or not.") hw_pw_vc_mtu = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 18), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(46, 9600)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcMtu.setStatus('current') if mibBuilder.loadTexts: hwPWVcMtu.setDescription('If not equal zero, the optional Mtu object in the signaling protocol will be sent with this value, representing the locally supported MTU size over the interface (or the virtual interface) associated with the PW.') hw_pw_vc_ctrl_word = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 19), hw_enable_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcCtrlWord.setStatus('current') if mibBuilder.loadTexts: hwPWVcCtrlWord.setDescription('If signaling is used for PW establishment, this object indicates the status of the control word negotiation, and in both signaling or manual configuration indicates if CW is to be present or not for this PW.') hw_pw_vc_vccv = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 20), bits().clone(namedValues=named_values(('ccCw', 0), ('ccAlert', 1), ('ccLabel', 2), ('cvIcmpping', 3), ('cvLspping', 4), ('cvBfd', 5), ('ccTtl', 6)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcVCCV.setStatus('current') if mibBuilder.loadTexts: hwPWVcVCCV.setDescription('Indicates the optional VCCV capabilities of the PW. According to whether the control word is enabled, the value can be ccCw(0)|ccAlert(1)|ccTtl(6)|cvLspping(4)|cvBfd(5) or ccAlert(1)|ccTtl(6)|cvLspping(4)|cvBfd(5). The default value is ccAlert(1)|ccTtl(6)|cvLspping(4)|cvBfd(5).') hw_pw_vc_band_width = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 21), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 32000000))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcBandWidth.setStatus('current') if mibBuilder.loadTexts: hwPWVcBandWidth.setDescription("This object indicates the bandwidth. '0' is the default value.") hw_pw_vc_max_atm_cells = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 22), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 28))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcMaxAtmCells.setStatus('current') if mibBuilder.loadTexts: hwPWVcMaxAtmCells.setDescription('Indicates the max cell supported when vc type is atm.') hw_pw_vc_tnl_policy_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 23), octet_string().subtype(subtypeSpec=value_size_constraint(0, 39))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcTnlPolicyName.setStatus('current') if mibBuilder.loadTexts: hwPWVcTnlPolicyName.setDescription('Indicates the tunnel policy name used.') hw_pw_vc_qo_s_behavior_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 24), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcQoSBehaviorIndex.setStatus('current') if mibBuilder.loadTexts: hwPWVcQoSBehaviorIndex.setDescription("Indicates the traffic behavior Index when QOS is implemented. Currently,can't support.Return the default value is '0'.") hw_pw_vc_explicit_path_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 25), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcExplicitPathName.setStatus('current') if mibBuilder.loadTexts: hwPWVcExplicitPathName.setDescription("Indicates the explicit path name set by the operator.Currently, can't support.") hw_pw_vc_template_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 26), octet_string().subtype(subtypeSpec=value_size_constraint(0, 19))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcTemplateName.setStatus('current') if mibBuilder.loadTexts: hwPWVcTemplateName.setDescription('Indicates the PW template index referenced.') hw_pw_vc_secondary = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 27), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcSecondary.setStatus('current') if mibBuilder.loadTexts: hwPWVcSecondary.setDescription('Indicates whether or not the secondary PW is used.') hw_pw_vc_up_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 28), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcUpTime.setStatus('current') if mibBuilder.loadTexts: hwPWVcUpTime.setDescription('Indicates the duration when the PW keeps Up for the last time, in seconds.') hw_pwoam_sync = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 29), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWOAMSync.setStatus('current') if mibBuilder.loadTexts: hwPWOAMSync.setDescription('Denotes the AC and PSN are enable or not.') hw_pwvc_for_bfd_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 30), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVCForBfdIndex.setStatus('current') if mibBuilder.loadTexts: hwPWVCForBfdIndex.setDescription('The index of PW for BFD.') hw_pw_vc_delay_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 31), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcDelayTime.setStatus('current') if mibBuilder.loadTexts: hwPWVcDelayTime.setDescription('The reroute delay time.') hw_pw_vc_reroute_policy = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 32), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('delay', 1), ('immediately', 2), ('never', 3), ('none', 4), ('err', 5), ('invalid', 6), ('immediatelySwitch', 7)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcReroutePolicy.setStatus('current') if mibBuilder.loadTexts: hwPWVcReroutePolicy.setDescription('Reroute policy.') hw_pw_vc_resume_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 33), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcResumeTime.setStatus('current') if mibBuilder.loadTexts: hwPWVcResumeTime.setDescription('The reroute resume time.') hw_pw_vc_reroute_reason = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 34), hwl2_vpn_state_change_reason()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcRerouteReason.setStatus('current') if mibBuilder.loadTexts: hwPWVcRerouteReason.setDescription('Last reroute reason.') hw_pw_vc_last_reroute_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 35), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcLastRerouteTime.setStatus('current') if mibBuilder.loadTexts: hwPWVcLastRerouteTime.setDescription('Last reroute time.') hw_pw_vc_manual_set_fault = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 36), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcManualSetFault.setStatus('current') if mibBuilder.loadTexts: hwPWVcManualSetFault.setDescription('Denotes the manual has been set fault or not.') hw_pw_vc_active = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 37), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcActive.setStatus('current') if mibBuilder.loadTexts: hwPWVcActive.setDescription('Denotes the current vc is active or not.') hw_pw_vc_vr_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 38), interface_index_or_zero()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcVrIfIndex.setStatus('current') if mibBuilder.loadTexts: hwPWVcVrIfIndex.setDescription('Denotes the VRRP interface this PW binding to.') hw_pw_vc_vr_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 39), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcVrID.setStatus('current') if mibBuilder.loadTexts: hwPWVcVrID.setDescription('Denotes the VrID this PW binding to.') hw_pwbfd_detect_multiplier = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 40), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(3, 50)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWBFDDetectMultiplier.setStatus('current') if mibBuilder.loadTexts: hwPWBFDDetectMultiplier.setDescription('The multiple of detection time.') hw_pwbfd_min_receive_interval = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 41), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(3, 1000)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWBFDMinReceiveInterval.setStatus('current') if mibBuilder.loadTexts: hwPWBFDMinReceiveInterval.setDescription('The interval of bfd messages to be received.') hw_pwbfd_min_transmit_interval = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 42), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(3, 1000)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWBFDMinTransmitInterval.setStatus('current') if mibBuilder.loadTexts: hwPWBFDMinTransmitInterval.setDescription('The interval of bfd messages to be sent.') hw_pw_dynamic_bfd_detect = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 43), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWDynamicBFDDetect.setStatus('current') if mibBuilder.loadTexts: hwPWDynamicBFDDetect.setDescription('This value indicates the capacitability to support dynamic BFD detect.') hw_pwbfd_remote_vc_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 44), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWBFDRemoteVcID.setStatus('current') if mibBuilder.loadTexts: hwPWBFDRemoteVcID.setDescription('In the multiple-hop model, the value of remote VC id.') hw_pw_eth_oam_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 45), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('ethOam1ag', 1), ('ethOam3ah', 2), ('noEthOamCfg', 3)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWEthOamType.setStatus('current') if mibBuilder.loadTexts: hwPWEthOamType.setDescription('This value indicates the type of ETH OAM.') hw_pw_cfm_ma_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 46), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 4095), value_range_constraint(4294967295, 4294967295)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWCfmMaIndex.setStatus('current') if mibBuilder.loadTexts: hwPWCfmMaIndex.setDescription('This value indicates the current CFM MA index.') hw_pw_vc_up_start_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 47), display_string().subtype(subtypeSpec=value_size_constraint(0, 63))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcUpStartTime.setStatus('current') if mibBuilder.loadTexts: hwPWVcUpStartTime.setDescription('Specifies the time this PW status was Up(1).') hw_pw_vc_up_sum_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 48), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcUpSumTime.setStatus('current') if mibBuilder.loadTexts: hwPWVcUpSumTime.setDescription('Indicates the accumulated time when the VC is Up, in seconds.') hw_pw_vc_if_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 49), display_string().subtype(subtypeSpec=value_size_constraint(0, 63))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcIfName.setStatus('current') if mibBuilder.loadTexts: hwPWVcIfName.setDescription('Name of the interface (or the virtual interface) associated with the PW.') hw_pw_vc_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 51), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcRowStatus.setStatus('current') if mibBuilder.loadTexts: hwPWVcRowStatus.setDescription("RowStatus for this Table. Restriction: The row must be created by 'createAndGo' handle only. Handle 'createAndWait' is forbidden. Not support modifying configuration.") hw_pw_vc_atm_pack_overtime = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 52), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(100, 50000)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcAtmPackOvertime.setStatus('current') if mibBuilder.loadTexts: hwPWVcAtmPackOvertime.setDescription('Specifies the AtmPackOvertime.') hw_pw_vc_pw_jitter_buffer_depth = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 53), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 64))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcPwJitterBufferDepth.setStatus('current') if mibBuilder.loadTexts: hwPWVcPwJitterBufferDepth.setDescription('Specifies the PwJitterBufferDepth.') hw_pw_vc_pw_tdm_encapsulation_num = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 54), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 40))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcPwTdmEncapsulationNum.setStatus('current') if mibBuilder.loadTexts: hwPWVcPwTdmEncapsulationNum.setDescription('Specifies the PwTdmEncapsulationNum.') hw_pw_vc_pw_idle_code = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 55), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 255), value_range_constraint(65535, 65535)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcPwIdleCode.setStatus('current') if mibBuilder.loadTexts: hwPWVcPwIdleCode.setDescription('Specifies the PwIdleCode.') hw_pw_vc_pw_rtp_header = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 56), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcPwRtpHeader.setStatus('current') if mibBuilder.loadTexts: hwPWVcPwRtpHeader.setDescription('Specifies the PwRtpHeader.') hw_pw_vc_switch_tnl_policy_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 57), octet_string().subtype(subtypeSpec=value_size_constraint(0, 39))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcSwitchTnlPolicyName.setStatus('current') if mibBuilder.loadTexts: hwPWVcSwitchTnlPolicyName.setDescription('Indicates the switch tunnel policy name used.') hw_pw_vc_cfm_md_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 58), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 4095), value_range_constraint(4294967295, 4294967295)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcCfmMdIndex.setStatus('current') if mibBuilder.loadTexts: hwPWVcCfmMdIndex.setDescription('This value indicates the current CFM MD index.') hw_pw_vc_cfm_ma_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 59), octet_string().subtype(subtypeSpec=value_size_constraint(0, 43))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcCfmMaName.setStatus('current') if mibBuilder.loadTexts: hwPWVcCfmMaName.setDescription('This value indicates the current CFM MA name used.') hw_pw_vc_cfm_md_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 60), octet_string().subtype(subtypeSpec=value_size_constraint(0, 43))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcCfmMdName.setStatus('current') if mibBuilder.loadTexts: hwPWVcCfmMdName.setDescription('This value indicates the current CFM MD name used.') hw_pw_vc_raw_or_tagged = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 61), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('raw', 1), ('tagged', 2), ('rawTagNotConfiged', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcRawOrTagged.setStatus('current') if mibBuilder.loadTexts: hwPWVcRawOrTagged.setDescription('Specifies whether the raw or tagged is configured.') hw_pw_vc_interworking_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 62), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('ipInterWorking', 1), ('ipLayer2', 2), ('ipUnknown', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcInterworkingType.setStatus('current') if mibBuilder.loadTexts: hwPWVcInterworkingType.setDescription('Specifies the interworking type of the VC entry.') hw_pw_vc_cir = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 63), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcCir.setStatus('current') if mibBuilder.loadTexts: hwPWVcCir.setDescription('Specifies the committed information rate, based on the VC entry.') hw_pw_vc_pir = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 64), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcPir.setStatus('current') if mibBuilder.loadTexts: hwPWVcPir.setDescription('Specifies the peak information rate, based on the VC entry.') hw_pw_vc_qos_profile = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 65), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcQosProfile.setStatus('current') if mibBuilder.loadTexts: hwPWVcQosProfile.setDescription("Specifies the QoS profile's name, based on the VC entry.") hw_pw_vc_switch_cir = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 66), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcSwitchCir.setStatus('current') if mibBuilder.loadTexts: hwPWVcSwitchCir.setDescription('Specifies the committed information rate, based on the switch VC entry.') hw_pw_vc_switch_pir = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 67), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcSwitchPir.setStatus('current') if mibBuilder.loadTexts: hwPWVcSwitchPir.setDescription('Specifies the peak information rate, based on the switch VC entry.') hw_pw_vc_switch_qos_profile = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 68), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcSwitchQosProfile.setStatus('current') if mibBuilder.loadTexts: hwPWVcSwitchQosProfile.setDescription("Specifies the QoS profile's name, based on the switch VC entry.") hw_pw_vc_trigger = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 69), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcTrigger.setStatus('current') if mibBuilder.loadTexts: hwPWVcTrigger.setDescription('Specifies whether the PW remote interface shutdown or not.') hw_pw_vc_enable_acoam = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 70), enabled_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcEnableACOAM.setStatus('current') if mibBuilder.loadTexts: hwPWVcEnableACOAM.setDescription('Specifies whether ACOAM detection and notification are all enabled or not.') hw_pw_vc_switch_vr_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 71), interface_index_or_zero()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcSwitchVrIfIndex.setStatus('current') if mibBuilder.loadTexts: hwPWVcSwitchVrIfIndex.setDescription('Denotes the VRRP interface the switch PW binding to.') hw_pw_vc_switch_vr_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 72), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcSwitchVrID.setStatus('current') if mibBuilder.loadTexts: hwPWVcSwitchVrID.setDescription('Denotes the VrID the switch PW binding to.') hw_pw_vc_qos_para_from_pwt = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 73), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('cliOrMib', 1), ('pwTemplate', 2), ('unknown', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcQosParaFromPWT.setStatus('current') if mibBuilder.loadTexts: hwPWVcQosParaFromPWT.setDescription('This object indicates the configuration of the Qos parameters managed through command line or PW template.') hw_pw_vc_bfd_para_from_pwt = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 74), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('cliOrMib', 1), ('pwTemplate', 2), ('unknown', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcBfdParaFromPWT.setStatus('current') if mibBuilder.loadTexts: hwPWVcBfdParaFromPWT.setDescription('This object indicates the configuration of the Bfd parameters managed through command line or PW template.') hw_pw_vc_negotiate_mode = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 75), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('slaveOrMaster', 1), ('independent', 2), ('unknown', 3), ('frr', 4)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPwVcNegotiateMode.setStatus('current') if mibBuilder.loadTexts: hwPwVcNegotiateMode.setDescription('This object indicates the negotiation mode of the PW on the local node.') hw_pw_vc_is_bypass = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 76), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPwVcIsBypass.setStatus('current') if mibBuilder.loadTexts: hwPwVcIsBypass.setDescription('This object indicates whether the PW is the bypass PW.') hw_pw_vc_is_admin = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 77), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPwVcIsAdmin.setStatus('current') if mibBuilder.loadTexts: hwPwVcIsAdmin.setDescription('This object indicates whether the PW is the administrator PW.') hw_pw_vc_admin_pw_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 78), interface_index_or_zero()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPwVcAdminPwIfIndex.setStatus('current') if mibBuilder.loadTexts: hwPwVcAdminPwIfIndex.setDescription('This object indicates the index of the interface on which the administrator PW resides after it is being tracked by the service PW.') hw_pw_vc_admin_pw_link_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 79), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('up', 1), ('down', 2), ('unknown', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPwVcAdminPwLinkStatus.setStatus('current') if mibBuilder.loadTexts: hwPwVcAdminPwLinkStatus.setDescription('This object indicates the status of the administrator PW after it is being tracked by the service PW.') hw_pw_vc_switch_admin_pw_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 80), interface_index_or_zero()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPwVcSwitchAdminPwIfIndex.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchAdminPwIfIndex.setDescription('This object indicates the index of the interface on which the administrator PW resides after it is being tracked by the switch PW.') hw_pw_vc_switch_admin_pw_link_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 81), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('up', 1), ('down', 2), ('unknown', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPwVcSwitchAdminPwLinkStatus.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchAdminPwLinkStatus.setDescription('This object indicates the status of the administrator PW after it is being tracked by the switch PW.') hw_pw_vc_switch_backup_admin_pw_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 82), interface_index_or_zero()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPwVcSwitchBackupAdminPwIfIndex.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchBackupAdminPwIfIndex.setDescription('This object indicates the index of the interface on which the administrator PW resides after it is being tracked by the switch backup PW.') hw_pw_vc_switch_backup_admin_pw_link_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 83), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('up', 1), ('down', 2), ('unknown', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPwVcSwitchBackupAdminPwLinkStatus.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchBackupAdminPwLinkStatus.setDescription('This object indicates the status of the administrator PW after it is being tracked by the switch backup PW.') hw_pw_vc_switch_backup_vc_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 84), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcId.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcId.setDescription('This object indicates the VC ID of the switch backup PW.') hw_pw_vc_switch_backup_vc_peer_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 85), inet_address_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcPeerAddrType.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcPeerAddrType.setDescription('This object indicates type of the IP address of the peer on the switch backup PW. Currently, only IPv4 addresss are supported.') hw_pw_vc_switch_backup_vc_peer_addr = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 86), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcPeerAddr.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcPeerAddr.setDescription('This object indicates the IP address of the peer on the switch backup PW.') hw_pw_vc_switch_backup_vc_receive_label = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 87), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcReceiveLabel.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcReceiveLabel.setDescription('This object indicates the inbound label of the switch backup VC. For a static VC, the value of the inbound label ranges from 16 to 1023. For a dynamic VC, the inbound label is automatically generated by the system.') hw_pw_vc_switch_backup_vc_send_label = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 88), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcSendLabel.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcSendLabel.setDescription('This object indicates the outbound label of the switch backup VC. For a static VC, the value of the outbound label ranges from 0 to 1048575. For a dynamic VC, the outbound label is automatically generated by the system.') hw_pw_vc_switch_backup_vc_tnl_policy_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 89), octet_string().subtype(subtypeSpec=value_size_constraint(0, 19))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcTnlPolicyName.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcTnlPolicyName.setDescription('This object indicates the name of the tunnel policy of the switch backup VC.') hw_pw_vc_switch_backup_vc_cir = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 90), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcCir.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcCir.setDescription('This object indicates the CIR of the switch backup VC.') hw_pw_vc_switch_backup_vc_pir = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 91), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcPir.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcPir.setDescription('This object indicates the PIR of the switch backup VC.') hw_pw_vc_switch_backup_vc_qos_profile = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 92), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcQosProfile.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcQosProfile.setDescription('This object indicates the name of the QoS profile of the switch backup VC.') hw_pw_vc_slave_master_mode = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 93), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('slave', 1), ('master', 2), ('unknown', 3), ('bypass', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPwVcSlaveMasterMode.setStatus('current') if mibBuilder.loadTexts: hwPwVcSlaveMasterMode.setDescription('This object indicates whether the status of the VC is master or slave.') hw_pw_vc_switch_vc_slave_master_mode = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 94), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('slave', 1), ('master', 2), ('unknown', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPwVcSwitchVcSlaveMasterMode.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchVcSlaveMasterMode.setDescription('This object indicates whether the status of the switch VC is master or slave.') hw_pw_vc_switch_backup_vc_slave_master_mode = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 95), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('slave', 1), ('master', 2), ('unknown', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcSlaveMasterMode.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcSlaveMasterMode.setDescription('This object indicates whether the status of the switch backup VC is master or slave.') hw_pw_vc_switch_vc_active = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 96), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPwVcSwitchVcActive.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchVcActive.setDescription('This object indicates whether the status of the switch VC is active or not.') hw_pw_vc_switch_backup_vc_active = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 97), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcActive.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcActive.setDescription('This object indicates whether the status of the switch backup VC is active or not.') hw_pw_vc_switch_cw_trans = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 98), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPwVcSwitchCwTrans.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchCwTrans.setDescription('This object indicates whether the SPE support Control Word Transparent or not,default is false.') hw_pw_vc_switch_vc_service_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 99), octet_string().subtype(subtypeSpec=value_size_constraint(0, 100))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPwVcSwitchVcServiceName.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchVcServiceName.setDescription('This object indicates the service name of the switch VC.') hw_pw_vc_switch_backup_vc_service_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 100), octet_string().subtype(subtypeSpec=value_size_constraint(0, 100))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcServiceName.setStatus('current') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcServiceName.setDescription('This object indicates the service name of the switch backup VC.') hw_pw_vc_tnl_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 2)) if mibBuilder.loadTexts: hwPWVcTnlTable.setStatus('current') if mibBuilder.loadTexts: hwPWVcTnlTable.setDescription('This table is used to search the tunnel index of a VC.') hw_pw_vc_tnl_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 2, 1)).setIndexNames((0, 'HUAWEI-PWE3-MIB', 'hwPWVcID'), (0, 'HUAWEI-PWE3-MIB', 'hwPWVcType'), (0, 'HUAWEI-PWE3-MIB', 'hwPWVcTnlIndex')) if mibBuilder.loadTexts: hwPWVcTnlEntry.setStatus('current') if mibBuilder.loadTexts: hwPWVcTnlEntry.setDescription('Provides the information of a VC tunnel entry.') hw_pw_vc_tnl_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 2, 1, 1), unsigned32()) if mibBuilder.loadTexts: hwPWVcTnlIndex.setStatus('current') if mibBuilder.loadTexts: hwPWVcTnlIndex.setDescription('This object indicates the tunnel index of the VC.') hw_pw_vc_tnl_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('lsp', 1), ('gre', 2), ('ipsec', 3), ('crLsp', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcTnlType.setStatus('current') if mibBuilder.loadTexts: hwPWVcTnlType.setDescription('This object indicates the tunnel type.') hw_pw_tnl_for_bfd_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 2, 1, 3), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWTnlForBfdIndex.setStatus('current') if mibBuilder.loadTexts: hwPWTnlForBfdIndex.setDescription('This object indicates the index of LSP for BFD.') hw_pw_vc_statistics_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 3)) if mibBuilder.loadTexts: hwPWVcStatisticsTable.setStatus('current') if mibBuilder.loadTexts: hwPWVcStatisticsTable.setDescription("This table contains the Pwe3's VC packets statistics.") hw_pw_vc_statistics_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 3, 1)).setIndexNames((0, 'HUAWEI-PWE3-MIB', 'hwPWVcID'), (0, 'HUAWEI-PWE3-MIB', 'hwPWVcType')) if mibBuilder.loadTexts: hwPWVcStatisticsEntry.setStatus('current') if mibBuilder.loadTexts: hwPWVcStatisticsEntry.setDescription("Provides the information of the Pwe3's VC packets statistics.") hw_pw_vc_statistics_rcv_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 3, 1, 1), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcStatisticsRcvPkts.setStatus('current') if mibBuilder.loadTexts: hwPWVcStatisticsRcvPkts.setDescription('The total number of packets received on this VC.') hw_pw_vc_statistics_rcv_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 3, 1, 2), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcStatisticsRcvBytes.setStatus('current') if mibBuilder.loadTexts: hwPWVcStatisticsRcvBytes.setDescription('The total number of bytes received on this VC.') hw_pw_vc_statistics_snd_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 3, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcStatisticsSndPkts.setStatus('current') if mibBuilder.loadTexts: hwPWVcStatisticsSndPkts.setDescription('The total number of packets sent on this VC.') hw_pw_vc_statistics_snd_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 3, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcStatisticsSndBytes.setStatus('current') if mibBuilder.loadTexts: hwPWVcStatisticsSndBytes.setDescription('The total number of bytes sent on the VC.') hw_pw_remote_vc_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4)) if mibBuilder.loadTexts: hwPWRemoteVcTable.setStatus('current') if mibBuilder.loadTexts: hwPWRemoteVcTable.setDescription('This table provides remote PW information for each local PW.') hw_pw_remote_vc_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1)).setIndexNames((0, 'HUAWEI-PWE3-MIB', 'hwPWVcID'), (0, 'HUAWEI-PWE3-MIB', 'hwPWVcType')) if mibBuilder.loadTexts: hwPWRemoteVcEntry.setStatus('current') if mibBuilder.loadTexts: hwPWRemoteVcEntry.setDescription('An entry in this table is created by the agent for every PW.') hw_pw_remote_vc_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 1), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWRemoteVcID.setStatus('current') if mibBuilder.loadTexts: hwPWRemoteVcID.setDescription("Used in the outgoing PW ID field within the 'Virtual Circuit FEC Element' of the remote PW.") hw_pw_remote_vc_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 2), hwl2_vpn_vc_encaps_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWRemoteVcType.setStatus('current') if mibBuilder.loadTexts: hwPWRemoteVcType.setDescription('This value indicate the service to be carried over the remote PW.') hw_pw_remote_vc_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('up', 1), ('down', 2), ('plugout', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWRemoteVcStatus.setStatus('current') if mibBuilder.loadTexts: hwPWRemoteVcStatus.setDescription('Indicates the forwarding status of the remote VC.') hw_pw_remote_vc_group_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 4), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWRemoteVcGroupID.setStatus('current') if mibBuilder.loadTexts: hwPWRemoteVcGroupID.setDescription('Indicates the Group ID field of the remote PW. Currently, this value always be zero.') hw_pw_remote_vc_mtu = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 5), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(46, 9600)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWRemoteVcMtu.setStatus('current') if mibBuilder.loadTexts: hwPWRemoteVcMtu.setDescription('Indicates the supported MTU size of the remote PW.') hw_pw_remote_vc_ctrlword = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 6), hw_enable_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWRemoteVcCtrlword.setStatus('current') if mibBuilder.loadTexts: hwPWRemoteVcCtrlword.setDescription('Indicates the control word capability of the remote PW.') hw_pw_remote_vc_max_atm_cells = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 7), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWRemoteVcMaxAtmCells.setStatus('current') if mibBuilder.loadTexts: hwPWRemoteVcMaxAtmCells.setDescription('Indicates the max cell supported of the remote PW when vctype is atm.') hw_pw_remote_vc_notif = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 8), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWRemoteVcNotif.setStatus('current') if mibBuilder.loadTexts: hwPWRemoteVcNotif.setDescription('Indicates notification is supported by the remote PW.') hw_pw_vc_switch_notif_enable = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 5), hw_enable_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwPWVcSwitchNotifEnable.setStatus('current') if mibBuilder.loadTexts: hwPWVcSwitchNotifEnable.setDescription('If this object is set to enable(1), then it enables the emission of hwPWVcSwitchWtoP and hwPWVcSwitchPtoW notifications; otherwise these notifications are not emitted. The default value is disable (2).') hw_pw_vc_up_down_notif_enable = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 6), hw_enable_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwPWVcUpDownNotifEnable.setStatus('current') if mibBuilder.loadTexts: hwPWVcUpDownNotifEnable.setDescription('This object indicates the enable sign of PW VC state change notification. The default value is disable (2).') hw_pw_vc_deleted_notif_enable = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 7), hw_enable_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwPWVcDeletedNotifEnable.setStatus('current') if mibBuilder.loadTexts: hwPWVcDeletedNotifEnable.setDescription('This object indicates the enable sign of PW VC deletion notification. The default value is disable (2).') hw_pw_vc_state_change_reason = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 8), hwl2_vpn_state_change_reason()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwPWVcStateChangeReason.setStatus('current') if mibBuilder.loadTexts: hwPWVcStateChangeReason.setDescription('This object indicates the reason of PE VC state change.') hw_pw_vc_switch_rmt_id = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 9), unsigned32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwPWVcSwitchRmtID.setStatus('current') if mibBuilder.loadTexts: hwPWVcSwitchRmtID.setDescription('This object indicates the VC ID of PW switch between working PW and protect PW .') hw_ldp_pw_state_change_reason = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 10), hw_ldp_pw_state_change_reason()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwLdpPWStateChangeReason.setStatus('current') if mibBuilder.loadTexts: hwLdpPWStateChangeReason.setDescription("This object indicates the reason of LDP PW VC's state change.") hw_pw_vc_tdm_perf_current_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11)) if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentTable.setStatus('current') if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentTable.setDescription('This table provides per TDM PW performance information. The contents of this table entry are reset to zero and gotten new information every 15 minutes.') hw_pw_vc_tdm_perf_current_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1)).setIndexNames((0, 'HUAWEI-PWE3-MIB', 'hwPWVcID'), (0, 'HUAWEI-PWE3-MIB', 'hwPWVcType')) if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentEntry.setStatus('current') if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentEntry.setDescription('An entry in this table is created by the agent for every TDM PW entry.') hw_pw_vc_tdm_perf_current_missing_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 1), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentMissingPkts.setStatus('current') if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentMissingPkts.setDescription('Number of missing packets (as detected via control word sequence number gaps).') hw_pw_vc_tdm_perf_current_jtr_bfr_overruns = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 2), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentJtrBfrOverruns.setStatus('current') if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentJtrBfrOverruns.setDescription('Number of times the jitter buffer was overrun.') hw_pw_vc_tdm_perf_current_jtr_bfr_underruns = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 3), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentJtrBfrUnderruns.setStatus('current') if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentJtrBfrUnderruns.setDescription('Number of times a packet needed to be played out and the jitter buffer was empty.') hw_pw_vc_tdm_perf_current_mis_order_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 4), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentMisOrderDropped.setStatus('current') if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentMisOrderDropped.setDescription('Number of packets detected out of order (via control word sequence numbers) that could not be re-ordered or could not fit in the jitter buffer.') hw_pw_vc_tdm_perf_current_malformed_pkt = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 5), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentMalformedPkt.setStatus('current') if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentMalformedPkt.setDescription("Number of packets detected with unexpected size or bad headers' stack.") hw_pw_vc_tdm_perf_current_e_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 6), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentESs.setStatus('current') if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentESs.setDescription('The counter associated with the number of Error Seconds encountered. Any malformed packet, sequence error, LOPS, and the like are considered as Error Seconds.') hw_pw_vc_tdm_perf_current_se_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 7), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentSESs.setStatus('current') if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentSESs.setDescription('The counter associated with the number of Severely Error Seconds encountered.') hw_pw_vc_tdm_perf_current_ua_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 8), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentUASs.setStatus('current') if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered. Any consecutive ten seconds of SES are counted as one Unavailable Seconds (UAS).') hw_pwe3_mib_traps = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2)) hw_pw_vc_switch_wto_p = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 1)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcCtrlWord'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchRmtID'), ('HUAWEI-PWE3-MIB', 'hwPWVcStateChangeReason'), ('HUAWEI-PWE3-MIB', 'hwPWVcIfName')) if mibBuilder.loadTexts: hwPWVcSwitchWtoP.setStatus('current') if mibBuilder.loadTexts: hwPWVcSwitchWtoP.setDescription('This notification is generated when switch from working PW to protect PW happens.') hw_pw_vc_switch_pto_w = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 2)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcCtrlWord'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchRmtID'), ('HUAWEI-PWE3-MIB', 'hwPWVcStateChangeReason'), ('HUAWEI-PWE3-MIB', 'hwPWVcIfName')) if mibBuilder.loadTexts: hwPWVcSwitchPtoW.setStatus('current') if mibBuilder.loadTexts: hwPWVcSwitchPtoW.setDescription('This notification is generated when switch from protect PW to working PW happens.') hw_pw_vc_down = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 3)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwPWVcIfIndex'), ('HUAWEI-PWE3-MIB', 'hwPWVcInboundLabel'), ('HUAWEI-PWE3-MIB', 'hwPWVcOutboundLabel'), ('HUAWEI-PWE3-MIB', 'hwPWVcSecondary'), ('HUAWEI-PWE3-MIB', 'hwPWVcStateChangeReason'), ('SNMPv2-MIB', 'sysUpTime'), ('HUAWEI-PWE3-MIB', 'hwPWVcIfName'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchID'), ('HUAWEI-PWE3-MIB', 'hwPWVcTnlPolicyName')) if mibBuilder.loadTexts: hwPWVcDown.setStatus('current') if mibBuilder.loadTexts: hwPWVcDown.setDescription("This notification indicates the VC's state changes to down.") hw_pw_vc_up = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 4)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwPWVcIfIndex'), ('HUAWEI-PWE3-MIB', 'hwPWVcInboundLabel'), ('HUAWEI-PWE3-MIB', 'hwPWVcOutboundLabel'), ('HUAWEI-PWE3-MIB', 'hwPWVcSecondary'), ('HUAWEI-PWE3-MIB', 'hwPWVcStateChangeReason'), ('SNMPv2-MIB', 'sysUpTime'), ('HUAWEI-PWE3-MIB', 'hwPWVcIfName'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchID'), ('HUAWEI-PWE3-MIB', 'hwPWVcTnlPolicyName')) if mibBuilder.loadTexts: hwPWVcUp.setStatus('current') if mibBuilder.loadTexts: hwPWVcUp.setDescription("This notification indicates the VC's state changes to up.") hw_pw_vc_deleted = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 5)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwPWVcIfIndex'), ('HUAWEI-PWE3-MIB', 'hwPWVcInboundLabel'), ('HUAWEI-PWE3-MIB', 'hwPWVcOutboundLabel'), ('HUAWEI-PWE3-MIB', 'hwPWVcSecondary'), ('HUAWEI-PWE3-MIB', 'hwPWVcIfName'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchID')) if mibBuilder.loadTexts: hwPWVcDeleted.setStatus('current') if mibBuilder.loadTexts: hwPWVcDeleted.setDescription('This notification indicates the VC is deleted.') hw_pw_vc_backup = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 6)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwPWVcIfIndex'), ('HUAWEI-PWE3-MIB', 'hwPWVcInboundLabel'), ('HUAWEI-PWE3-MIB', 'hwPWVcOutboundLabel'), ('HUAWEI-PWE3-MIB', 'hwPWVcSecondary'), ('HUAWEI-PWE3-MIB', 'hwPWVcStateChangeReason'), ('SNMPv2-MIB', 'sysUpTime'), ('HUAWEI-PWE3-MIB', 'hwPWVcIfName'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchID')) if mibBuilder.loadTexts: hwPWVcBackup.setStatus('current') if mibBuilder.loadTexts: hwPWVcBackup.setDescription("This notification indicates the VC's state changes to backup.") hw_ldp_pw_vc_down = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 7)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwLdpPWStateChangeReason')) if mibBuilder.loadTexts: hwLdpPWVcDown.setStatus('current') if mibBuilder.loadTexts: hwLdpPWVcDown.setDescription("This notification indicates the LDP PW VC's state changes to down.") hw_ldp_pw_vc_up = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 8)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwLdpPWStateChangeReason')) if mibBuilder.loadTexts: hwLdpPWVcUp.setStatus('current') if mibBuilder.loadTexts: hwLdpPWVcUp.setDescription("This notification indicates the Ldp PW VC's state changes to up.") hw_svc_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3)) hw_svc_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1)) if mibBuilder.loadTexts: hwSvcTable.setStatus('current') if mibBuilder.loadTexts: hwSvcTable.setDescription('This table is the SVC configuration table. Users can create or delete a SVC by it.') hw_svc_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1)).setIndexNames((0, 'HUAWEI-PWE3-MIB', 'hwSvcIfIndex')) if mibBuilder.loadTexts: hwSvcEntry.setStatus('current') if mibBuilder.loadTexts: hwSvcEntry.setDescription('Provides the information of a SVC entry.') hw_svc_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 1), interface_index_or_zero()) if mibBuilder.loadTexts: hwSvcIfIndex.setStatus('current') if mibBuilder.loadTexts: hwSvcIfIndex.setDescription('Index of the interface (or the virtual interface) associated with the PW.') hw_svc_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 2), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcID.setStatus('current') if mibBuilder.loadTexts: hwSvcID.setDescription("Index for the conceptual row identifying a PW within this PW Emulation table.Used in the outgoing PW ID field within the 'Virtual Circuit FEC Element'.") hw_svc_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 3), hwl2_vpn_vc_encaps_type()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcType.setStatus('current') if mibBuilder.loadTexts: hwSvcType.setDescription('Index for the conceptual row identifying a PW within this PW Emulation table.This value indicate the service to be carried over this PW.') hw_svc_peer_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 4), inet_address_type().clone('ipv4')).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcPeerAddrType.setStatus('current') if mibBuilder.loadTexts: hwSvcPeerAddrType.setDescription("Denotes the address type of the peer node. It should be set to 'unknown' if PE/PW maintenance protocol is not used and the address is unknown. Currently, support 'ipv4' only.") hw_svc_peer_addr = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 5), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcPeerAddr.setStatus('current') if mibBuilder.loadTexts: hwSvcPeerAddr.setDescription("This object contain the value of the peer node address of the PW/PE maintenance protocol entity. This object SHOULD contain a value of all zeroes if not applicable (hwSvcPeerAddrType is 'unknown').") hw_svc_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('up', 1), ('down', 2), ('plugout', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcStatus.setStatus('current') if mibBuilder.loadTexts: hwSvcStatus.setDescription("Indicates the status of the PW in the local node. Currently, can't support 'plugout'.") hw_svc_inbound_label = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 7), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcInboundLabel.setStatus('current') if mibBuilder.loadTexts: hwSvcInboundLabel.setDescription('This object indicates the inbound label.') hw_svc_outbound_label = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 8), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcOutboundLabel.setStatus('current') if mibBuilder.loadTexts: hwSvcOutboundLabel.setDescription('This object indicates the outbound label.') hw_svc_group_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 9), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcGroupID.setStatus('current') if mibBuilder.loadTexts: hwSvcGroupID.setDescription("Used in the Group ID field sent to the peer PWES within the maintenance protocol used for PW setup. Applicable if SvcOwner equal 'pwIdFecSignaling' or 'l2tpControlProtocol', should be set to zero otherwise. Currently, this value always be zero.") hw_svc_ac_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('up', 1), ('down', 2), ('plugout', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcAcStatus.setStatus('current') if mibBuilder.loadTexts: hwSvcAcStatus.setDescription("Local AC status. Currently, can't support 'plugout'.") hw_svc_acoam_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('up', 1), ('down', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcACOAMStatus.setStatus('current') if mibBuilder.loadTexts: hwSvcACOAMStatus.setDescription("Denotes the AC's protocol is operational or not.") hw_svc_mtu = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 12), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(46, 9600)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcMtu.setStatus('current') if mibBuilder.loadTexts: hwSvcMtu.setDescription("If not equal zero, the optional Mtu object in the signaling protocol will be sent with this value, representing the locally supported MTU size over the interface (or the virtual interface) associated with the PW.Currently, can't support.'0' is the default value.") hw_svc_ctrl_word = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 13), hw_enable_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcCtrlWord.setStatus('current') if mibBuilder.loadTexts: hwSvcCtrlWord.setDescription('If signaling is used for PW establishment, this object indicates the status of the control word negotiation, and in both signaling or manual configuration indicates if CW is to be present or not for this PW.') hw_svc_vccv = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 14), bits().clone(namedValues=named_values(('ccCw', 0), ('ccAlert', 1), ('ccLabel', 2), ('cvIcmpping', 3), ('cvLspping', 4), ('cvBfd', 5)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcVCCV.setStatus('current') if mibBuilder.loadTexts: hwSvcVCCV.setDescription('Indicates the optional VCCV capabilities of the SVC. According to whether the control word is enabled, the value can be ccCw(0)|ccAlert(1)|cvLspping(4)|cvBfd(5) or ccAlert(1)|cvLspping(4)|cvBfd(5). The default value is ccAlert(1)|cvLspping(4)|cvBfd(5).') hw_svc_band_width = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 15), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 32000000))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcBandWidth.setStatus('current') if mibBuilder.loadTexts: hwSvcBandWidth.setDescription("This object indicates the bandwidth.Currently, can't support.'0' is the default value.") hw_svc_max_atm_cells = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 16), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 28))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcMaxAtmCells.setStatus('current') if mibBuilder.loadTexts: hwSvcMaxAtmCells.setDescription('Indicates the max cell supported when vc type is atm.') hw_svc_tnl_policy_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 17), octet_string().subtype(subtypeSpec=value_size_constraint(0, 39))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcTnlPolicyName.setStatus('current') if mibBuilder.loadTexts: hwSvcTnlPolicyName.setDescription('Indicates the tunnel policy name used.') hw_svc_qo_s_behavior_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 18), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcQoSBehaviorIndex.setStatus('current') if mibBuilder.loadTexts: hwSvcQoSBehaviorIndex.setDescription("Indicates the traffic behavior Index when QOS is implemented. Currently, can't support.'0' is the default value.") hw_svc_pw_template_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 19), octet_string().subtype(subtypeSpec=value_size_constraint(0, 19))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcPWTemplateName.setStatus('current') if mibBuilder.loadTexts: hwSvcPWTemplateName.setDescription('Indicates the PW template index referenced.') hw_svc_up_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 20), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcUpTime.setStatus('current') if mibBuilder.loadTexts: hwSvcUpTime.setDescription('Indicates the duration when the SVC keeps Up for the last time, in seconds.') hw_svc_oam_sync = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 21), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcOAMSync.setStatus('current') if mibBuilder.loadTexts: hwSvcOAMSync.setDescription('Denotes the AC and PSN are enable or not.') hw_svc_for_bfd_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 22), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcForBfdIndex.setStatus('current') if mibBuilder.loadTexts: hwSvcForBfdIndex.setDescription("The index of PW for BFD.Currently, can't support.Return the default value is '0'.") hw_svc_secondary = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 23), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcSecondary.setStatus('current') if mibBuilder.loadTexts: hwSvcSecondary.setDescription("Indicates whether or not the secondary PW is used.Currently, can't support.Return the default value is 'false'.") hw_svc_delay_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 24), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcDelayTime.setStatus('current') if mibBuilder.loadTexts: hwSvcDelayTime.setDescription("The reroute delay time.Currently, can't support.Return the default value is '0'.") hw_svc_reroute_policy = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 25), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('delay', 1), ('immediately', 2), ('never', 3), ('none', 4), ('err', 5), ('invalid', 6)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcReroutePolicy.setStatus('current') if mibBuilder.loadTexts: hwSvcReroutePolicy.setDescription("Reroute policy.Currently, can't support.Return the default value is 'invalid(6)'.") hw_svc_resume_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 26), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcResumeTime.setStatus('current') if mibBuilder.loadTexts: hwSvcResumeTime.setDescription("The reroute resume time.Currently, can't support.Return the default value is '0'.") hw_svc_reroute_reason = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 27), hwl2_vpn_state_change_reason()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcRerouteReason.setStatus('current') if mibBuilder.loadTexts: hwSvcRerouteReason.setDescription("Last reroute reason.Currently, can't support.Return the default value is 'invalidReason(1)'.") hw_svc_last_reroute_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 28), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcLastRerouteTime.setStatus('current') if mibBuilder.loadTexts: hwSvcLastRerouteTime.setDescription("Last reroute time.Currently, can't support.Return the default value is '0'.") hw_svc_manual_set_fault = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 29), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcManualSetFault.setStatus('current') if mibBuilder.loadTexts: hwSvcManualSetFault.setDescription("Denotes the manual has been set fault or not.Currently, can't support.Return the default value is 'false'.") hw_svc_active = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 30), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcActive.setStatus('current') if mibBuilder.loadTexts: hwSvcActive.setDescription("Denotes the current vc is active or not.Currently, can't support.Return the default value is 'false'.") hw_svc_up_start_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 31), display_string().subtype(subtypeSpec=value_size_constraint(0, 63))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcUpStartTime.setStatus('current') if mibBuilder.loadTexts: hwSvcUpStartTime.setDescription('Specifies the time this PW status was Up(1).') hw_svc_up_sum_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 32), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcUpSumTime.setStatus('current') if mibBuilder.loadTexts: hwSvcUpSumTime.setDescription('Indicates the accumulated time when the SVC is Up, in seconds.') hw_svc_atm_pack_overtime = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 33), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(100, 50000)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcAtmPackOvertime.setStatus('current') if mibBuilder.loadTexts: hwSvcAtmPackOvertime.setDescription('Specifies the AtmPackOvertime.') hw_svc_pw_jitter_buffer_depth = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 34), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 64))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcPwJitterBufferDepth.setStatus('current') if mibBuilder.loadTexts: hwSvcPwJitterBufferDepth.setDescription('Specifies the PwJitterBufferDepth.') hw_svc_pw_tdm_encapsulation_num = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 35), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 40))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcPwTdmEncapsulationNum.setStatus('current') if mibBuilder.loadTexts: hwSvcPwTdmEncapsulationNum.setDescription('Specifies the PwTdmEncapsulationNum.') hw_svc_pw_idle_code = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 36), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 255), value_range_constraint(65535, 65535)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcPwIdleCode.setStatus('current') if mibBuilder.loadTexts: hwSvcPwIdleCode.setDescription('Specifies the PwIdleCode.') hw_svc_pw_rtp_header = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 37), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcPwRtpHeader.setStatus('current') if mibBuilder.loadTexts: hwSvcPwRtpHeader.setDescription('Specifies the PwRtpHeader.') hw_svc_raw_or_tagged = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 38), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('raw', 1), ('tagged', 2), ('rawTagNotConfiged', 3)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcRawOrTagged.setStatus('current') if mibBuilder.loadTexts: hwSvcRawOrTagged.setDescription('Specifies whether the VLAN tag of the SVC entry is attached or stripped.') hw_svc_interworking_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 39), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('ipInterWorking', 1), ('ipLayer2', 2), ('ipUnknown', 3)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcInterworkingType.setStatus('current') if mibBuilder.loadTexts: hwSvcInterworkingType.setDescription('Specifies the interworking type of the SVC entry.') hw_svc_cir = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 40), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcCir.setStatus('current') if mibBuilder.loadTexts: hwSvcCir.setDescription('Specifies the committed information rate, based on the SVC entry.') hw_svc_pir = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 41), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcPir.setStatus('current') if mibBuilder.loadTexts: hwSvcPir.setDescription('Specifies the peak information rate, based on the SVC entry.') hw_svc_qos_profile = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 42), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcQosProfile.setStatus('current') if mibBuilder.loadTexts: hwSvcQosProfile.setDescription("Specifies the QoS profile's name, based on the SVC entry.") hw_svc_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 51), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcRowStatus.setStatus('current') if mibBuilder.loadTexts: hwSvcRowStatus.setDescription("RowStatus for this Table. Restriction: The row must be created by 'createAndGo' handle only. Handle 'createAndWait' is forbidden. Not support modifying configuration.") hw_svc_tnl_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 2)) if mibBuilder.loadTexts: hwSvcTnlTable.setStatus('current') if mibBuilder.loadTexts: hwSvcTnlTable.setDescription('This table is used to search the tunnel index of a SVC.') hw_svc_tnl_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 2, 1)).setIndexNames((0, 'HUAWEI-PWE3-MIB', 'hwSvcIfIndex'), (0, 'HUAWEI-PWE3-MIB', 'hwSvcTnlIndex')) if mibBuilder.loadTexts: hwSvcTnlEntry.setStatus('current') if mibBuilder.loadTexts: hwSvcTnlEntry.setDescription('Provides the information of a SVC tunnel entry.') hw_svc_tnl_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 2, 1, 1), unsigned32()) if mibBuilder.loadTexts: hwSvcTnlIndex.setStatus('current') if mibBuilder.loadTexts: hwSvcTnlIndex.setDescription('This object indicates the tunnel index of the SVC.') hw_svc_tnl_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('lsp', 1), ('gre', 2), ('ipsec', 3), ('crLsp', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcTnlType.setStatus('current') if mibBuilder.loadTexts: hwSvcTnlType.setDescription('This object indicates the tunnel type.') hw_svc_tnl_for_bfd_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 2, 1, 3), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcTnlForBfdIndex.setStatus('current') if mibBuilder.loadTexts: hwSvcTnlForBfdIndex.setDescription("This object indicates the index of LSP for BFD. Currently, can't support.Return the default value is '0'.") hw_svc_statistics_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 3)) if mibBuilder.loadTexts: hwSvcStatisticsTable.setStatus('current') if mibBuilder.loadTexts: hwSvcStatisticsTable.setDescription("This table contains the L2vpn's SVC packets statistics.") hw_svc_statistics_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 3, 1)).setIndexNames((0, 'HUAWEI-PWE3-MIB', 'hwSvcIfIndex')) if mibBuilder.loadTexts: hwSvcStatisticsEntry.setStatus('current') if mibBuilder.loadTexts: hwSvcStatisticsEntry.setDescription("Provides the information of the L2VPN's SVC packets Statistics.") hw_svc_statistics_rcv_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 3, 1, 1), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcStatisticsRcvPkts.setStatus('current') if mibBuilder.loadTexts: hwSvcStatisticsRcvPkts.setDescription('The total number of packets received on this SVC.') hw_svc_statistics_rcv_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 3, 1, 2), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcStatisticsRcvBytes.setStatus('current') if mibBuilder.loadTexts: hwSvcStatisticsRcvBytes.setDescription('The total number of bytes received on this SVC.') hw_svc_statistics_snd_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 3, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcStatisticsSndPkts.setStatus('current') if mibBuilder.loadTexts: hwSvcStatisticsSndPkts.setDescription('The total number of packets sent on this SVC.') hw_svc_statistics_snd_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 3, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcStatisticsSndBytes.setStatus('current') if mibBuilder.loadTexts: hwSvcStatisticsSndBytes.setDescription('The total number of bytes sent on the SVC.') hw_svc_switch_notif_enable = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 4), hw_enable_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwSvcSwitchNotifEnable.setStatus('current') if mibBuilder.loadTexts: hwSvcSwitchNotifEnable.setDescription("If this object is set to enable(1), then it enables the emission of hwSvcSwitchWtoP and hwSvcSwitchPtoW notifications; otherwise these notifications are not emitted.Currently, can't support. The default value is disable (2).") hw_svc_up_down_notif_enable = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 5), hw_enable_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwSvcUpDownNotifEnable.setStatus('current') if mibBuilder.loadTexts: hwSvcUpDownNotifEnable.setDescription('This object indicates the enable sign of PW VC state change notification. The default value is disable (2).') hw_svc_deleted_notif_enable = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 6), hw_enable_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwSvcDeletedNotifEnable.setStatus('current') if mibBuilder.loadTexts: hwSvcDeletedNotifEnable.setDescription('This object indicates the enable sign of PW VC deletion notification. The default value is disable (2).') hw_svc_state_change_reason = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 7), hwl2_vpn_state_change_reason()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwSvcStateChangeReason.setStatus('current') if mibBuilder.loadTexts: hwSvcStateChangeReason.setDescription('This object indicates the reason of PE VC state change.') hw_l2vpn_svc_mib_traps = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 4)) hw_svc_switch_wto_p = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 4, 1)).setObjects(('HUAWEI-PWE3-MIB', 'hwSvcID'), ('HUAWEI-PWE3-MIB', 'hwSvcType'), ('HUAWEI-PWE3-MIB', 'hwSvcCtrlWord'), ('HUAWEI-PWE3-MIB', 'hwSvcStateChangeReason'), ('IF-MIB', 'ifName')) if mibBuilder.loadTexts: hwSvcSwitchWtoP.setStatus('current') if mibBuilder.loadTexts: hwSvcSwitchWtoP.setDescription("This notification is generated when switch from working PW to protect PW happens.Currently, can't support.") hw_svc_switch_pto_w = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 4, 2)).setObjects(('HUAWEI-PWE3-MIB', 'hwSvcID'), ('HUAWEI-PWE3-MIB', 'hwSvcType'), ('HUAWEI-PWE3-MIB', 'hwSvcCtrlWord'), ('HUAWEI-PWE3-MIB', 'hwSvcStateChangeReason'), ('IF-MIB', 'ifName')) if mibBuilder.loadTexts: hwSvcSwitchPtoW.setStatus('current') if mibBuilder.loadTexts: hwSvcSwitchPtoW.setDescription("This notification is generated when switch from protect PW to working PW happens.Currently, can't support.") hw_svc_down = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 4, 3)).setObjects(('HUAWEI-PWE3-MIB', 'hwSvcID'), ('HUAWEI-PWE3-MIB', 'hwSvcType'), ('HUAWEI-PWE3-MIB', 'hwSvcPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwSvcInboundLabel'), ('HUAWEI-PWE3-MIB', 'hwSvcOutboundLabel'), ('HUAWEI-PWE3-MIB', 'hwSvcStateChangeReason'), ('IF-MIB', 'ifName'), ('HUAWEI-PWE3-MIB', 'hwSvcTnlPolicyName')) if mibBuilder.loadTexts: hwSvcDown.setStatus('current') if mibBuilder.loadTexts: hwSvcDown.setDescription("This notification indicates the SVC's state changes to down.") hw_svc_up = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 4, 4)).setObjects(('HUAWEI-PWE3-MIB', 'hwSvcID'), ('HUAWEI-PWE3-MIB', 'hwSvcType'), ('HUAWEI-PWE3-MIB', 'hwSvcPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwSvcInboundLabel'), ('HUAWEI-PWE3-MIB', 'hwSvcOutboundLabel'), ('HUAWEI-PWE3-MIB', 'hwSvcStateChangeReason'), ('IF-MIB', 'ifName'), ('HUAWEI-PWE3-MIB', 'hwSvcTnlPolicyName')) if mibBuilder.loadTexts: hwSvcUp.setStatus('current') if mibBuilder.loadTexts: hwSvcUp.setDescription("This notification indicates the SVC's state changes to up.") hw_svc_deleted = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 4, 5)).setObjects(('HUAWEI-PWE3-MIB', 'hwSvcID'), ('HUAWEI-PWE3-MIB', 'hwSvcType'), ('HUAWEI-PWE3-MIB', 'hwSvcPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwSvcInboundLabel'), ('HUAWEI-PWE3-MIB', 'hwSvcOutboundLabel')) if mibBuilder.loadTexts: hwSvcDeleted.setStatus('current') if mibBuilder.loadTexts: hwSvcDeleted.setDescription('This notification indicates the SVC is deleted.') hw_pw_template_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5)) if mibBuilder.loadTexts: hwPWTemplateTable.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateTable.setDescription('This table specifies information for configuring and status monitoring to PW tempalte.') hw_pw_template_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1)).setIndexNames((0, 'HUAWEI-PWE3-MIB', 'hwPWTemplateName')) if mibBuilder.loadTexts: hwPWTemplateEntry.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateEntry.setDescription('A row in this table represents a pseudo wire (PW) template. It is indexed by hwPWCmdTemplateIndex, which uniquely identifying a singular tempalte.') hw_pw_template_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 1), octet_string().subtype(subtypeSpec=value_size_constraint(0, 19))) if mibBuilder.loadTexts: hwPWTemplateName.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateName.setDescription("The name of the PW template. Set by the operator to indicate the protocol responsible for establishing this PW. The value 'static' is used in all cases where no maintenance protocol (PW signaling) is used to set-up the PW, i.e. require configuration of entries in the PW tables including PW labels, etc. The value 'ldp' is used in case of signaling with the PWid FEC element with LDP signaling. The value 'rsvp' indicate the use of rsvp control protocol.") hw_pw_template_peer_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 2), inet_address_type().clone('ipv4')).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplatePeerAddrType.setStatus('current') if mibBuilder.loadTexts: hwPWTemplatePeerAddrType.setDescription("Denotes the address type of the peer node. It should be set to 'unknown' if PE/PW maintenance protocol is not used and the address is unknown. Currently, support 'ipv4' only.") hw_pw_template_peer_addr = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 3), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplatePeerAddr.setStatus('current') if mibBuilder.loadTexts: hwPWTemplatePeerAddr.setDescription('This object contain the value of the peer node address of the PW/PE maintenance protocol entity. ') hw_pw_template_ctrlword = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 4), hw_enable_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplateCtrlword.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateCtrlword.setDescription('Indicates the control word capability of the switch PW.') hw_pw_template_vccv = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 5), bits().clone(namedValues=named_values(('ccCw', 0), ('ccAlert', 1), ('ccLabel', 2), ('cvIcmpping', 3), ('cvLspping', 4), ('cvBfd', 5), ('ccTtl', 6)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplateVCCV.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateVCCV.setDescription('Indicates the optional VCCV capabilities of the PW template. According to whether the control word is enabled, the value can be ccCw(0)|ccAlert(1)|ccTtl(6)|cvLspping(4)|cvBfd(5) or ccAlert(1)|ccTtl(6)|cvLspping(4)|cvBfd(5). The default value is ccAlert(1)|ccTtl(6)|cvLspping(4)|cvBfd(5).') hw_pw_template_frag = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 6), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplateFrag.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateFrag.setDescription('Indicates whether or not fragmentaion is supported.') hw_pw_template_bandwidth = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 32000000))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWTemplateBandwidth.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateBandwidth.setDescription("Indicates the bandwitdh when signaling protocol is rsvp. Currently, can't support.'0' is the default value.") hw_pw_template_tnl_policy_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 8), octet_string().subtype(subtypeSpec=value_size_constraint(0, 39))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplateTnlPolicyName.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateTnlPolicyName.setDescription('Indicates the tunnel policy name used.') hw_pw_template_qo_s_behavior_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 9), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplateQoSBehaviorIndex.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateQoSBehaviorIndex.setDescription("Indicates the traffic behavior Index when QOS is implemented.Currently, can't support.'0' is the default value.") hw_pw_template_explicit_path_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 10), octet_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplateExplicitPathName.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateExplicitPathName.setDescription("Indicates the explicit path name set by the operator.Currently, can't support.") hw_pw_template_bfd_detect_multiplier = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 11), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(3, 50)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplateBFDDetectMultiplier.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateBFDDetectMultiplier.setDescription('The multiple of detection time.') hw_pw_template_bfd_min_receive_interval = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 12), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(3, 1000)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplateBFDMinReceiveInterval.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateBFDMinReceiveInterval.setDescription('The interval of bfd messages to be received.') hw_pw_template_bfd_min_transmit_interval = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 13), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(3, 1000)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplateBFDMinTransmitInterval.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateBFDMinTransmitInterval.setDescription('The interval of bfd messages to be sent.') hw_pw_template_dynamic_bfd_detect = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 14), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplateDynamicBFDDetect.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateDynamicBFDDetect.setDescription('This value indicates the capacitability to support dynamic BFD detect.') hw_pw_template_max_atm_cells = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 15), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 28))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplateMaxAtmCells.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateMaxAtmCells.setDescription('Specifies the MaxAtmCells.') hw_pw_template_atm_pack_overtime = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 16), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(100, 50000)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplateAtmPackOvertime.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateAtmPackOvertime.setDescription('Specifies the AtmPackOvertime.') hw_pw_template_pw_jitter_buffer_depth = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 17), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 64))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplatePwJitterBufferDepth.setStatus('current') if mibBuilder.loadTexts: hwPWTemplatePwJitterBufferDepth.setDescription('Specifies the PwJitterBufferDepth.') hw_pw_template_pw_tdm_encapsulation_num = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 18), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 40))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplatePwTdmEncapsulationNum.setStatus('current') if mibBuilder.loadTexts: hwPWTemplatePwTdmEncapsulationNum.setDescription('Specifies the PwTdmEncapsulationNum.') hw_pw_template_pw_idle_code = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 19), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 255), value_range_constraint(65535, 65535)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplatePwIdleCode.setStatus('current') if mibBuilder.loadTexts: hwPWTemplatePwIdleCode.setDescription('Specifies the PwIdleCode.') hw_pw_template_pw_rtp_header = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 20), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplatePwRtpHeader.setStatus('current') if mibBuilder.loadTexts: hwPWTemplatePwRtpHeader.setDescription('Specifies the PwRtpHeader.') hw_pw_template_pw_cc_seq_enable = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 21), hw_enable_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplatePwCCSeqEnable.setStatus('current') if mibBuilder.loadTexts: hwPWTemplatePwCCSeqEnable.setDescription('Specifies the CC Sequence is enable or not.') hw_pw_template_cir = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 22), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplateCir.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateCir.setDescription('Specifies the committed information rate, based on the PW template entry.') hw_pw_template_pir = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 23), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplatePir.setStatus('current') if mibBuilder.loadTexts: hwPWTemplatePir.setDescription('Specifies the peak information rate, based on the PW template entry.') hw_pw_template_qos_profile = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 24), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplateQosProfile.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateQosProfile.setDescription("Specifies the QoS profile's name, based on the PW template entry.") hw_pw_template_flow_label = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 25), enabled_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplateFlowLabel.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateFlowLabel.setDescription('The value of this object identifies whether the PW FlowLabel is enabled.') hw_pw_template_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 51), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplateRowStatus.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateRowStatus.setDescription("RowStatus for this Table. Restriction: The row must be created by 'createAndGo' handle only. Handle 'createAndWait' is forbidden.") hw_pw_template_mib_traps = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 6)) hw_pw_template_cannot_deleted = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 6, 1)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWTemplateName')) if mibBuilder.loadTexts: hwPWTemplateCannotDeleted.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateCannotDeleted.setDescription('This notification indicates the PWTemplate cannot be deleted.') hw_pw_table_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7)) hw_pw_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7, 1)) if mibBuilder.loadTexts: hwPWTable.setStatus('current') if mibBuilder.loadTexts: hwPWTable.setDescription('This table indicates a PW, that is Static PW or LDP PW') hw_pw_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7, 1, 1)).setIndexNames((0, 'HUAWEI-PWE3-MIB', 'hwPWId'), (0, 'HUAWEI-PWE3-MIB', 'hwPWType'), (0, 'HUAWEI-PWE3-MIB', 'hwPWPeerIp')) if mibBuilder.loadTexts: hwPWEntry.setStatus('current') if mibBuilder.loadTexts: hwPWEntry.setDescription('Provides the information of a VC key entry.') hw_pw_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7, 1, 1, 1), unsigned32()) if mibBuilder.loadTexts: hwPWId.setStatus('current') if mibBuilder.loadTexts: hwPWId.setDescription("Index for the conceptual row identifying a PW within this PW Emulation table.Used in the outgoing PW ID field within the 'Virtual Circuit FEC Element'.") hw_pw_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7, 1, 1, 2), hwl2_vpn_vc_encaps_type()) if mibBuilder.loadTexts: hwPWType.setStatus('current') if mibBuilder.loadTexts: hwPWType.setDescription('Index for the conceptual row identifying a PW within this PW Emulation table.This value indicate the service to be carried over this PW.') hw_pw_peer_ip = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7, 1, 1, 3), ip_address()) if mibBuilder.loadTexts: hwPWPeerIp.setStatus('current') if mibBuilder.loadTexts: hwPWPeerIp.setDescription('This object contain the value of the peer node address of the PW/PE maintenance protocol entity. This object SHOULD contain a value of all zeroes if not applicable.') hw_pw_interface_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7, 1, 1, 4), interface_index_or_zero()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWInterfaceIndex.setStatus('current') if mibBuilder.loadTexts: hwPWInterfaceIndex.setDescription('Index of the interface (or the virtual interface) associated with the PW.') hw_pwe3_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3)) hw_pwe3_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 1)) hw_pwe3_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 1, 1)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcGroup'), ('HUAWEI-PWE3-MIB', 'hwPWVcTnlGroup'), ('HUAWEI-PWE3-MIB', 'hwPWVcStatisticsGroup'), ('HUAWEI-PWE3-MIB', 'hwPWRemoteVcGroup'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateGroup'), ('HUAWEI-PWE3-MIB', 'hwPWNotificationControlGroup'), ('HUAWEI-PWE3-MIB', 'hwPWVcStateChangeReasonGroup'), ('HUAWEI-PWE3-MIB', 'hwPWVcNotificationGroup'), ('HUAWEI-PWE3-MIB', 'hwPWTableGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_pwe3_mib_compliance = hwPwe3MIBCompliance.setStatus('current') if mibBuilder.loadTexts: hwPwe3MIBCompliance.setDescription('The compliance statement for systems supporting the HUAWEI-PWE3-MIB.') hw_pwe3_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2)) hw_pw_vc_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 1)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcPeerAddrType'), ('HUAWEI-PWE3-MIB', 'hwPWVcPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwPWVcStatus'), ('HUAWEI-PWE3-MIB', 'hwPWVcInboundLabel'), ('HUAWEI-PWE3-MIB', 'hwPWVcOutboundLabel'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchSign'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchID'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchPeerAddrType'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchInboundLabel'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchOutboundLabel'), ('HUAWEI-PWE3-MIB', 'hwPWVcGroupID'), ('HUAWEI-PWE3-MIB', 'hwPWVcIfIndex'), ('HUAWEI-PWE3-MIB', 'hwPWVcAcStatus'), ('HUAWEI-PWE3-MIB', 'hwPWVcACOAMStatus'), ('HUAWEI-PWE3-MIB', 'hwPWVcMtu'), ('HUAWEI-PWE3-MIB', 'hwPWVcCtrlWord'), ('HUAWEI-PWE3-MIB', 'hwPWVcVCCV'), ('HUAWEI-PWE3-MIB', 'hwPWVcBandWidth'), ('HUAWEI-PWE3-MIB', 'hwPWVcMaxAtmCells'), ('HUAWEI-PWE3-MIB', 'hwPWVcTnlPolicyName'), ('HUAWEI-PWE3-MIB', 'hwPWVcQoSBehaviorIndex'), ('HUAWEI-PWE3-MIB', 'hwPWVcExplicitPathName'), ('HUAWEI-PWE3-MIB', 'hwPWVcTemplateName'), ('HUAWEI-PWE3-MIB', 'hwPWVcSecondary'), ('HUAWEI-PWE3-MIB', 'hwPWVcUpTime'), ('HUAWEI-PWE3-MIB', 'hwPWOAMSync'), ('HUAWEI-PWE3-MIB', 'hwPWVCForBfdIndex'), ('HUAWEI-PWE3-MIB', 'hwPWVcDelayTime'), ('HUAWEI-PWE3-MIB', 'hwPWVcReroutePolicy'), ('HUAWEI-PWE3-MIB', 'hwPWVcResumeTime'), ('HUAWEI-PWE3-MIB', 'hwPWVcRerouteReason'), ('HUAWEI-PWE3-MIB', 'hwPWVcLastRerouteTime'), ('HUAWEI-PWE3-MIB', 'hwPWVcManualSetFault'), ('HUAWEI-PWE3-MIB', 'hwPWVcActive'), ('HUAWEI-PWE3-MIB', 'hwPWVcVrIfIndex'), ('HUAWEI-PWE3-MIB', 'hwPWVcVrID'), ('HUAWEI-PWE3-MIB', 'hwPWBFDDetectMultiplier'), ('HUAWEI-PWE3-MIB', 'hwPWBFDMinReceiveInterval'), ('HUAWEI-PWE3-MIB', 'hwPWBFDMinTransmitInterval'), ('HUAWEI-PWE3-MIB', 'hwPWDynamicBFDDetect'), ('HUAWEI-PWE3-MIB', 'hwPWBFDRemoteVcID'), ('HUAWEI-PWE3-MIB', 'hwPWEthOamType'), ('HUAWEI-PWE3-MIB', 'hwPWCfmMaIndex'), ('HUAWEI-PWE3-MIB', 'hwPWVcUpStartTime'), ('HUAWEI-PWE3-MIB', 'hwPWVcUpSumTime'), ('HUAWEI-PWE3-MIB', 'hwPWVcIfName'), ('HUAWEI-PWE3-MIB', 'hwPWVcRowStatus'), ('HUAWEI-PWE3-MIB', 'hwPWVcAtmPackOvertime'), ('HUAWEI-PWE3-MIB', 'hwPWVcPwJitterBufferDepth'), ('HUAWEI-PWE3-MIB', 'hwPWVcPwTdmEncapsulationNum'), ('HUAWEI-PWE3-MIB', 'hwPWVcPwIdleCode'), ('HUAWEI-PWE3-MIB', 'hwPWVcPwRtpHeader'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchTnlPolicyName'), ('HUAWEI-PWE3-MIB', 'hwPWVcCfmMdIndex'), ('HUAWEI-PWE3-MIB', 'hwPWVcCfmMaName'), ('HUAWEI-PWE3-MIB', 'hwPWVcCfmMdName'), ('HUAWEI-PWE3-MIB', 'hwPWVcRawOrTagged'), ('HUAWEI-PWE3-MIB', 'hwPWVcInterworkingType'), ('HUAWEI-PWE3-MIB', 'hwPWVcCir'), ('HUAWEI-PWE3-MIB', 'hwPWVcPir'), ('HUAWEI-PWE3-MIB', 'hwPWVcQosProfile'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchCir'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchPir'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchQosProfile'), ('HUAWEI-PWE3-MIB', 'hwPWVcTrigger'), ('HUAWEI-PWE3-MIB', 'hwPWVcEnableACOAM'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchVrIfIndex'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchVrID'), ('HUAWEI-PWE3-MIB', 'hwPWVcQosParaFromPWT'), ('HUAWEI-PWE3-MIB', 'hwPWVcBfdParaFromPWT'), ('HUAWEI-PWE3-MIB', 'hwPwVcNegotiateMode'), ('HUAWEI-PWE3-MIB', 'hwPwVcIsBypass'), ('HUAWEI-PWE3-MIB', 'hwPwVcIsAdmin'), ('HUAWEI-PWE3-MIB', 'hwPwVcAdminPwIfIndex'), ('HUAWEI-PWE3-MIB', 'hwPwVcAdminPwLinkStatus'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchAdminPwIfIndex'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchAdminPwLinkStatus'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupAdminPwIfIndex'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupAdminPwLinkStatus'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupVcId'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupVcPeerAddrType'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupVcPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupVcReceiveLabel'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupVcSendLabel'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupVcTnlPolicyName'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupVcCir'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupVcPir'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupVcQosProfile'), ('HUAWEI-PWE3-MIB', 'hwPwVcSlaveMasterMode'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchVcSlaveMasterMode'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupVcSlaveMasterMode'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchVcActive'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupVcActive'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchCwTrans'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchVcServiceName'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupVcServiceName')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_pw_vc_group = hwPWVcGroup.setStatus('current') if mibBuilder.loadTexts: hwPWVcGroup.setDescription("The Pwe3's VC group.") hw_pw_vc_tnl_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 2)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcTnlType'), ('HUAWEI-PWE3-MIB', 'hwPWTnlForBfdIndex')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_pw_vc_tnl_group = hwPWVcTnlGroup.setStatus('current') if mibBuilder.loadTexts: hwPWVcTnlGroup.setDescription("The PWE3's VC Tunnel group.") hw_pw_vc_statistics_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 3)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcStatisticsRcvPkts'), ('HUAWEI-PWE3-MIB', 'hwPWVcStatisticsRcvBytes'), ('HUAWEI-PWE3-MIB', 'hwPWVcStatisticsSndPkts'), ('HUAWEI-PWE3-MIB', 'hwPWVcStatisticsSndBytes')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_pw_vc_statistics_group = hwPWVcStatisticsGroup.setStatus('current') if mibBuilder.loadTexts: hwPWVcStatisticsGroup.setDescription("The PWE3's VC Statistics group.") hw_pw_remote_vc_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 4)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWRemoteVcID'), ('HUAWEI-PWE3-MIB', 'hwPWRemoteVcType'), ('HUAWEI-PWE3-MIB', 'hwPWRemoteVcStatus'), ('HUAWEI-PWE3-MIB', 'hwPWRemoteVcGroupID'), ('HUAWEI-PWE3-MIB', 'hwPWRemoteVcMtu'), ('HUAWEI-PWE3-MIB', 'hwPWRemoteVcCtrlword'), ('HUAWEI-PWE3-MIB', 'hwPWRemoteVcMaxAtmCells'), ('HUAWEI-PWE3-MIB', 'hwPWRemoteVcNotif')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_pw_remote_vc_group = hwPWRemoteVcGroup.setStatus('current') if mibBuilder.loadTexts: hwPWRemoteVcGroup.setDescription("The PWE3's Remote VC group.") hw_pw_template_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 5)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWTemplatePeerAddrType'), ('HUAWEI-PWE3-MIB', 'hwPWTemplatePeerAddr'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateCtrlword'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateVCCV'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateFrag'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateBandwidth'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateTnlPolicyName'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateQoSBehaviorIndex'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateExplicitPathName'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateBFDDetectMultiplier'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateBFDMinReceiveInterval'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateBFDMinTransmitInterval'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateDynamicBFDDetect'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateMaxAtmCells'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateAtmPackOvertime'), ('HUAWEI-PWE3-MIB', 'hwPWTemplatePwJitterBufferDepth'), ('HUAWEI-PWE3-MIB', 'hwPWTemplatePwTdmEncapsulationNum'), ('HUAWEI-PWE3-MIB', 'hwPWTemplatePwIdleCode'), ('HUAWEI-PWE3-MIB', 'hwPWTemplatePwRtpHeader'), ('HUAWEI-PWE3-MIB', 'hwPWTemplatePwCCSeqEnable'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateCir'), ('HUAWEI-PWE3-MIB', 'hwPWTemplatePir'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateQosProfile'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateFlowLabel'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_pw_template_group = hwPWTemplateGroup.setStatus('current') if mibBuilder.loadTexts: hwPWTemplateGroup.setDescription("The PWE3's Template group.") hw_pw_notification_control_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 6)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcSwitchNotifEnable'), ('HUAWEI-PWE3-MIB', 'hwPWVcUpDownNotifEnable'), ('HUAWEI-PWE3-MIB', 'hwPWVcDeletedNotifEnable')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_pw_notification_control_group = hwPWNotificationControlGroup.setStatus('current') if mibBuilder.loadTexts: hwPWNotificationControlGroup.setDescription("The PWE3's Notification Control group.") hw_pw_vc_state_change_reason_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 7)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcStateChangeReason'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchRmtID')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_pw_vc_state_change_reason_group = hwPWVcStateChangeReasonGroup.setStatus('current') if mibBuilder.loadTexts: hwPWVcStateChangeReasonGroup.setDescription("The PWE3's Vc State Reason group.") hw_pw_vc_notification_group = notification_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 8)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcSwitchWtoP'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchPtoW'), ('HUAWEI-PWE3-MIB', 'hwPWVcDown'), ('HUAWEI-PWE3-MIB', 'hwPWVcUp'), ('HUAWEI-PWE3-MIB', 'hwPWVcDeleted'), ('HUAWEI-PWE3-MIB', 'hwPWVcBackup'), ('HUAWEI-PWE3-MIB', 'hwLdpPWVcDown'), ('HUAWEI-PWE3-MIB', 'hwLdpPWVcUp')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_pw_vc_notification_group = hwPWVcNotificationGroup.setStatus('current') if mibBuilder.loadTexts: hwPWVcNotificationGroup.setDescription("The PWE3's VC Notification group.") hw_ldp_pw_state_change_reason_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 9)).setObjects(('HUAWEI-PWE3-MIB', 'hwLdpPWStateChangeReason')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_ldp_pw_state_change_reason_group = hwLdpPWStateChangeReasonGroup.setStatus('current') if mibBuilder.loadTexts: hwLdpPWStateChangeReasonGroup.setDescription('The LDP PW VC State Reason group.') hw_pw_vc_tdm_perf_current_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 10)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcTDMPerfCurrentMissingPkts'), ('HUAWEI-PWE3-MIB', 'hwPWVcTDMPerfCurrentJtrBfrOverruns'), ('HUAWEI-PWE3-MIB', 'hwPWVcTDMPerfCurrentJtrBfrUnderruns'), ('HUAWEI-PWE3-MIB', 'hwPWVcTDMPerfCurrentMisOrderDropped'), ('HUAWEI-PWE3-MIB', 'hwPWVcTDMPerfCurrentMalformedPkt'), ('HUAWEI-PWE3-MIB', 'hwPWVcTDMPerfCurrentESs'), ('HUAWEI-PWE3-MIB', 'hwPWVcTDMPerfCurrentSESs'), ('HUAWEI-PWE3-MIB', 'hwPWVcTDMPerfCurrentUASs')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_pw_vc_tdm_perf_current_group = hwPWVcTDMPerfCurrentGroup.setStatus('current') if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentGroup.setDescription("The PWE3's VC TDM performance information group.") hw_l2vpn_svc_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3)) hw_svc_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3, 1)).setObjects(('HUAWEI-PWE3-MIB', 'hwSvcID'), ('HUAWEI-PWE3-MIB', 'hwSvcType'), ('HUAWEI-PWE3-MIB', 'hwSvcPeerAddrType'), ('HUAWEI-PWE3-MIB', 'hwSvcPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwSvcStatus'), ('HUAWEI-PWE3-MIB', 'hwSvcInboundLabel'), ('HUAWEI-PWE3-MIB', 'hwSvcOutboundLabel'), ('HUAWEI-PWE3-MIB', 'hwSvcGroupID'), ('HUAWEI-PWE3-MIB', 'hwSvcAcStatus'), ('HUAWEI-PWE3-MIB', 'hwSvcACOAMStatus'), ('HUAWEI-PWE3-MIB', 'hwSvcMtu'), ('HUAWEI-PWE3-MIB', 'hwSvcCtrlWord'), ('HUAWEI-PWE3-MIB', 'hwSvcVCCV'), ('HUAWEI-PWE3-MIB', 'hwSvcBandWidth'), ('HUAWEI-PWE3-MIB', 'hwSvcMaxAtmCells'), ('HUAWEI-PWE3-MIB', 'hwSvcTnlPolicyName'), ('HUAWEI-PWE3-MIB', 'hwSvcQoSBehaviorIndex'), ('HUAWEI-PWE3-MIB', 'hwSvcPWTemplateName'), ('HUAWEI-PWE3-MIB', 'hwSvcUpTime'), ('HUAWEI-PWE3-MIB', 'hwSvcOAMSync'), ('HUAWEI-PWE3-MIB', 'hwSvcForBfdIndex'), ('HUAWEI-PWE3-MIB', 'hwSvcSecondary'), ('HUAWEI-PWE3-MIB', 'hwSvcDelayTime'), ('HUAWEI-PWE3-MIB', 'hwSvcReroutePolicy'), ('HUAWEI-PWE3-MIB', 'hwSvcResumeTime'), ('HUAWEI-PWE3-MIB', 'hwSvcRerouteReason'), ('HUAWEI-PWE3-MIB', 'hwSvcLastRerouteTime'), ('HUAWEI-PWE3-MIB', 'hwSvcManualSetFault'), ('HUAWEI-PWE3-MIB', 'hwSvcActive'), ('HUAWEI-PWE3-MIB', 'hwSvcUpStartTime'), ('HUAWEI-PWE3-MIB', 'hwSvcUpSumTime'), ('HUAWEI-PWE3-MIB', 'hwSvcAtmPackOvertime'), ('HUAWEI-PWE3-MIB', 'hwSvcPwJitterBufferDepth'), ('HUAWEI-PWE3-MIB', 'hwSvcPwTdmEncapsulationNum'), ('HUAWEI-PWE3-MIB', 'hwSvcPwIdleCode'), ('HUAWEI-PWE3-MIB', 'hwSvcPwRtpHeader'), ('HUAWEI-PWE3-MIB', 'hwSvcRawOrTagged'), ('HUAWEI-PWE3-MIB', 'hwSvcInterworkingType'), ('HUAWEI-PWE3-MIB', 'hwSvcCir'), ('HUAWEI-PWE3-MIB', 'hwSvcPir'), ('HUAWEI-PWE3-MIB', 'hwSvcQosProfile'), ('HUAWEI-PWE3-MIB', 'hwSvcRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_svc_group = hwSvcGroup.setStatus('current') if mibBuilder.loadTexts: hwSvcGroup.setDescription("The L2vpn's SVC group.") hw_svc_tnl_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3, 2)).setObjects(('HUAWEI-PWE3-MIB', 'hwSvcTnlType'), ('HUAWEI-PWE3-MIB', 'hwSvcTnlForBfdIndex')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_svc_tnl_group = hwSvcTnlGroup.setStatus('current') if mibBuilder.loadTexts: hwSvcTnlGroup.setDescription("The L2vpn's SVC Tunnel group.") hw_svc_statistics_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3, 3)).setObjects(('HUAWEI-PWE3-MIB', 'hwSvcStatisticsRcvPkts'), ('HUAWEI-PWE3-MIB', 'hwSvcStatisticsRcvBytes'), ('HUAWEI-PWE3-MIB', 'hwSvcStatisticsSndPkts'), ('HUAWEI-PWE3-MIB', 'hwSvcStatisticsSndBytes')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_svc_statistics_group = hwSvcStatisticsGroup.setStatus('current') if mibBuilder.loadTexts: hwSvcStatisticsGroup.setDescription("The L2vpn's SVC Statistics group.") hw_svc_notification_control_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3, 4)).setObjects(('HUAWEI-PWE3-MIB', 'hwSvcSwitchNotifEnable'), ('HUAWEI-PWE3-MIB', 'hwSvcUpDownNotifEnable'), ('HUAWEI-PWE3-MIB', 'hwSvcDeletedNotifEnable')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_svc_notification_control_group = hwSvcNotificationControlGroup.setStatus('current') if mibBuilder.loadTexts: hwSvcNotificationControlGroup.setDescription("The L2vpn SVC's Notification Control group.") hw_svc_state_change_reason_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3, 5)).setObjects(('HUAWEI-PWE3-MIB', 'hwSvcStateChangeReason')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_svc_state_change_reason_group = hwSvcStateChangeReasonGroup.setStatus('current') if mibBuilder.loadTexts: hwSvcStateChangeReasonGroup.setDescription("The L2vpn's SVc State Reason group.") hw_svc_notification_group = notification_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3, 6)).setObjects(('HUAWEI-PWE3-MIB', 'hwSvcSwitchWtoP'), ('HUAWEI-PWE3-MIB', 'hwSvcSwitchPtoW'), ('HUAWEI-PWE3-MIB', 'hwSvcDown'), ('HUAWEI-PWE3-MIB', 'hwSvcUp'), ('HUAWEI-PWE3-MIB', 'hwSvcDeleted')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_svc_notification_group = hwSvcNotificationGroup.setStatus('current') if mibBuilder.loadTexts: hwSvcNotificationGroup.setDescription("The L2vpn's SVC Notification group.") hw_l2vpn_pw_table_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 4)) hw_pw_table_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 4, 1)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWInterfaceIndex')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_pw_table_group = hwPWTableGroup.setStatus('current') if mibBuilder.loadTexts: hwPWTableGroup.setDescription('The PW Table Group.') mibBuilder.exportSymbols('HUAWEI-PWE3-MIB', hwPWTemplateVCCV=hwPWTemplateVCCV, hwPWVcVCCV=hwPWVcVCCV, hwPWVcUp=hwPWVcUp, hwL2VpnPwe3=hwL2VpnPwe3, hwSvcInboundLabel=hwSvcInboundLabel, hwPwVcSwitchAdminPwIfIndex=hwPwVcSwitchAdminPwIfIndex, hwPWVcQosProfile=hwPWVcQosProfile, hwSvcInterworkingType=hwSvcInterworkingType, hwSvcTnlEntry=hwSvcTnlEntry, hwPWEntry=hwPWEntry, HWLdpPwStateChangeReason=HWLdpPwStateChangeReason, hwPWVcTDMPerfCurrentMissingPkts=hwPWVcTDMPerfCurrentMissingPkts, hwPWVcBackup=hwPWVcBackup, hwSvcStateChangeReason=hwSvcStateChangeReason, hwPWTemplatePwTdmEncapsulationNum=hwPWTemplatePwTdmEncapsulationNum, hwPWVcActive=hwPWVcActive, hwPWVcExplicitPathName=hwPWVcExplicitPathName, hwPWVcIfName=hwPWVcIfName, hwPWTemplateAtmPackOvertime=hwPWTemplateAtmPackOvertime, hwPWTemplatePwCCSeqEnable=hwPWTemplatePwCCSeqEnable, hwSvcEntry=hwSvcEntry, hwPWTemplateTnlPolicyName=hwPWTemplateTnlPolicyName, hwPWVCForBfdIndex=hwPWVCForBfdIndex, hwPWVcTnlEntry=hwPWVcTnlEntry, hwSvcStatisticsTable=hwSvcStatisticsTable, hwPWTemplateBFDDetectMultiplier=hwPWTemplateBFDDetectMultiplier, hwSvcStatisticsRcvBytes=hwSvcStatisticsRcvBytes, hwPWVcRerouteReason=hwPWVcRerouteReason, hwSvcSwitchWtoP=hwSvcSwitchWtoP, hwPWVcQoSBehaviorIndex=hwPWVcQoSBehaviorIndex, hwSvcTnlType=hwSvcTnlType, hwL2vpnSvcMIBTraps=hwL2vpnSvcMIBTraps, hwPWVcUpStartTime=hwPWVcUpStartTime, hwPwVcSwitchVcActive=hwPwVcSwitchVcActive, hwSvcOAMSync=hwSvcOAMSync, hwSvcLastRerouteTime=hwSvcLastRerouteTime, hwPWVcCfmMdIndex=hwPWVcCfmMdIndex, hwPWVcPwIdleCode=hwPWVcPwIdleCode, hwPWVcSwitchVrID=hwPWVcSwitchVrID, hwPWTemplatePwJitterBufferDepth=hwPWTemplatePwJitterBufferDepth, hwPWVcPwTdmEncapsulationNum=hwPWVcPwTdmEncapsulationNum, hwLdpPWVcUp=hwLdpPWVcUp, hwPWVcGroup=hwPWVcGroup, hwPWRemoteVcMtu=hwPWRemoteVcMtu, hwSvcStatisticsSndBytes=hwSvcStatisticsSndBytes, hwSvcTnlIndex=hwSvcTnlIndex, hwPwVcSwitchBackupVcActive=hwPwVcSwitchBackupVcActive, hwPWRemoteVcGroup=hwPWRemoteVcGroup, hwSvcGroup=hwSvcGroup, hwPWVcAcStatus=hwPWVcAcStatus, hwPWRemoteVcCtrlword=hwPWRemoteVcCtrlword, hwPWVcUpDownNotifEnable=hwPWVcUpDownNotifEnable, hwSvcNotificationGroup=hwSvcNotificationGroup, hwPWVcType=hwPWVcType, hwPWVcSwitchInboundLabel=hwPWVcSwitchInboundLabel, hwPWVcStatisticsRcvPkts=hwPWVcStatisticsRcvPkts, hwSvcStatus=hwSvcStatus, hwSvcDeletedNotifEnable=hwSvcDeletedNotifEnable, hwSvcStatisticsSndPkts=hwSvcStatisticsSndPkts, hwPWBFDDetectMultiplier=hwPWBFDDetectMultiplier, hwPWVcCfmMdName=hwPWVcCfmMdName, hwPWVcManualSetFault=hwPWVcManualSetFault, hwPwVcSlaveMasterMode=hwPwVcSlaveMasterMode, hwPWTemplateFrag=hwPWTemplateFrag, hwPWVcTDMPerfCurrentMalformedPkt=hwPWVcTDMPerfCurrentMalformedPkt, hwSvcRowStatus=hwSvcRowStatus, hwSvcNotificationControlGroup=hwSvcNotificationControlGroup, hwPwVcSwitchBackupVcCir=hwPwVcSwitchBackupVcCir, hwPWRemoteVcTable=hwPWRemoteVcTable, hwSvcAcStatus=hwSvcAcStatus, hwPWVcTDMPerfCurrentUASs=hwPWVcTDMPerfCurrentUASs, PYSNMP_MODULE_ID=hwL2VpnPwe3, hwSvcStatisticsEntry=hwSvcStatisticsEntry, hwPWVcSwitchID=hwPWVcSwitchID, hwSvcPWTemplateName=hwSvcPWTemplateName, hwPWVcSwitchPir=hwPWVcSwitchPir, hwPwVcSwitchCwTrans=hwPwVcSwitchCwTrans, hwPWBFDMinReceiveInterval=hwPWBFDMinReceiveInterval, hwPWVcSwitchPeerAddrType=hwPWVcSwitchPeerAddrType, hwPWVcSwitchTnlPolicyName=hwPWVcSwitchTnlPolicyName, hwPWVcPir=hwPWVcPir, hwPwVcAdminPwIfIndex=hwPwVcAdminPwIfIndex, hwSvcQoSBehaviorIndex=hwSvcQoSBehaviorIndex, hwPWVcEntry=hwPWVcEntry, hwPwVcIsBypass=hwPwVcIsBypass, hwPWVcStatus=hwPWVcStatus, hwPWVcReroutePolicy=hwPWVcReroutePolicy, hwPWVcMtu=hwPWVcMtu, hwPWVcLastRerouteTime=hwPWVcLastRerouteTime, hwPwVcSwitchBackupVcPeerAddrType=hwPwVcSwitchBackupVcPeerAddrType, hwSvcCtrlWord=hwSvcCtrlWord, hwSvcUpSumTime=hwSvcUpSumTime, hwSvcPwTdmEncapsulationNum=hwSvcPwTdmEncapsulationNum, hwSvcRawOrTagged=hwSvcRawOrTagged, hwPWTemplateExplicitPathName=hwPWTemplateExplicitPathName, hwPWVcNotificationGroup=hwPWVcNotificationGroup, hwPWTemplatePir=hwPWTemplatePir, hwPWTemplateMaxAtmCells=hwPWTemplateMaxAtmCells, hwPWRemoteVcMaxAtmCells=hwPWRemoteVcMaxAtmCells, hwPwVcAdminPwLinkStatus=hwPwVcAdminPwLinkStatus, hwPWTemplatePeerAddrType=hwPWTemplatePeerAddrType, hwPWInterfaceIndex=hwPWInterfaceIndex, hwPWVcPeerAddrType=hwPWVcPeerAddrType, hwPWVcVrIfIndex=hwPWVcVrIfIndex, hwPWTemplateDynamicBFDDetect=hwPWTemplateDynamicBFDDetect, hwPWVcEnableACOAM=hwPWVcEnableACOAM, hwPwVcSwitchBackupVcReceiveLabel=hwPwVcSwitchBackupVcReceiveLabel, hwPWTemplateBandwidth=hwPWTemplateBandwidth, hwPWVcUpTime=hwPWVcUpTime, hwPwVcSwitchBackupAdminPwLinkStatus=hwPwVcSwitchBackupAdminPwLinkStatus, hwPWVcStatisticsTable=hwPWVcStatisticsTable, hwPWVcTnlIndex=hwPWVcTnlIndex, hwPWVcStatisticsSndPkts=hwPWVcStatisticsSndPkts, hwPWVcCtrlWord=hwPWVcCtrlWord, hwLdpPWStateChangeReasonGroup=hwLdpPWStateChangeReasonGroup, hwPWTemplateQosProfile=hwPWTemplateQosProfile, hwPwVcSwitchBackupVcId=hwPwVcSwitchBackupVcId, hwSvcActive=hwSvcActive, hwPWVcTDMPerfCurrentEntry=hwPWVcTDMPerfCurrentEntry, hwSvcPwRtpHeader=hwSvcPwRtpHeader, hwPwe3MIBObjects=hwPwe3MIBObjects, hwSvcUpDownNotifEnable=hwSvcUpDownNotifEnable, hwPWTemplateGroup=hwPWTemplateGroup, hwSvcReroutePolicy=hwSvcReroutePolicy, hwSvcPwJitterBufferDepth=hwSvcPwJitterBufferDepth, hwLdpPWStateChangeReason=hwLdpPWStateChangeReason, hwPWTemplatePwIdleCode=hwPWTemplatePwIdleCode, hwPWVcID=hwPWVcID, hwPWVcTnlPolicyName=hwPWVcTnlPolicyName, hwPWVcTDMPerfCurrentESs=hwPWVcTDMPerfCurrentESs, hwPWTemplateBFDMinTransmitInterval=hwPWTemplateBFDMinTransmitInterval, hwSvcStateChangeReasonGroup=hwSvcStateChangeReasonGroup, hwPwVcSwitchBackupVcSendLabel=hwPwVcSwitchBackupVcSendLabel, hwPWTnlForBfdIndex=hwPWTnlForBfdIndex, hwSvcBandWidth=hwSvcBandWidth, hwPWVcTDMPerfCurrentMisOrderDropped=hwPWVcTDMPerfCurrentMisOrderDropped, hwPWTemplateName=hwPWTemplateName, hwPWVcCir=hwPWVcCir, hwPWTableGroup=hwPWTableGroup, hwSvcTnlTable=hwSvcTnlTable, hwPWVcOutboundLabel=hwPWVcOutboundLabel, hwPWTableObjects=hwPWTableObjects, hwPWRemoteVcGroupID=hwPWRemoteVcGroupID, hwPWVcStateChangeReason=hwPWVcStateChangeReason, hwSvcQosProfile=hwSvcQosProfile, hwSvcUpTime=hwSvcUpTime, hwSvcPwIdleCode=hwSvcPwIdleCode, hwPWVcSwitchRmtID=hwPWVcSwitchRmtID, hwPWVcInboundLabel=hwPWVcInboundLabel, hwPWVcBfdParaFromPWT=hwPWVcBfdParaFromPWT, hwPWVcSwitchNotifEnable=hwPWVcSwitchNotifEnable, hwSvcDeleted=hwSvcDeleted, hwSvcRerouteReason=hwSvcRerouteReason, hwPWVcQosParaFromPWT=hwPWVcQosParaFromPWT, hwPWRemoteVcType=hwPWRemoteVcType, hwPWVcRowStatus=hwPWVcRowStatus, hwPWVcRawOrTagged=hwPWVcRawOrTagged, hwPWTemplateMIBTraps=hwPWTemplateMIBTraps, hwPWVcACOAMStatus=hwPWVcACOAMStatus, hwPWBFDMinTransmitInterval=hwPWBFDMinTransmitInterval, hwPWVcSwitchQosProfile=hwPWVcSwitchQosProfile, hwPWVcSwitchVrIfIndex=hwPWVcSwitchVrIfIndex, hwPWType=hwPWType, hwPwVcSwitchBackupVcPir=hwPwVcSwitchBackupVcPir, hwPWVcSwitchSign=hwPWVcSwitchSign, hwPwVcSwitchBackupVcQosProfile=hwPwVcSwitchBackupVcQosProfile, hwPWTemplateFlowLabel=hwPWTemplateFlowLabel, hwPWVcTDMPerfCurrentJtrBfrOverruns=hwPWVcTDMPerfCurrentJtrBfrOverruns, hwPWVcGroupID=hwPWVcGroupID, hwPWVcUpSumTime=hwPWVcUpSumTime, hwPwe3MIBTraps=hwPwe3MIBTraps, hwPWVcTDMPerfCurrentTable=hwPWVcTDMPerfCurrentTable, hwSvcResumeTime=hwSvcResumeTime, hwPwVcSwitchBackupAdminPwIfIndex=hwPwVcSwitchBackupAdminPwIfIndex, hwPWTemplateRowStatus=hwPWTemplateRowStatus, hwPwe3MIBGroups=hwPwe3MIBGroups, hwSvcType=hwSvcType, hwSvcVCCV=hwSvcVCCV, hwPWVcStatisticsSndBytes=hwPWVcStatisticsSndBytes, hwSvcDelayTime=hwSvcDelayTime, hwSvcPir=hwSvcPir, hwPWVcPwRtpHeader=hwPWVcPwRtpHeader, hwPWRemoteVcNotif=hwPWRemoteVcNotif, hwPWTemplateQoSBehaviorIndex=hwPWTemplateQoSBehaviorIndex, hwL2vpnPWTableMIBGroups=hwL2vpnPWTableMIBGroups, hwPWVcTable=hwPWVcTable, hwPwVcSwitchAdminPwLinkStatus=hwPwVcSwitchAdminPwLinkStatus, hwPWRemoteVcEntry=hwPWRemoteVcEntry, hwLdpPWVcDown=hwLdpPWVcDown, hwSvcAtmPackOvertime=hwSvcAtmPackOvertime, hwPwe3MIBCompliance=hwPwe3MIBCompliance, hwPWVcPwJitterBufferDepth=hwPWVcPwJitterBufferDepth, hwPWVcSwitchCir=hwPWVcSwitchCir, hwPwVcSwitchVcServiceName=hwPwVcSwitchVcServiceName, hwPWTemplateBFDMinReceiveInterval=hwPWTemplateBFDMinReceiveInterval, hwPWVcDelayTime=hwPWVcDelayTime, hwSvcStatisticsGroup=hwSvcStatisticsGroup, hwPWVcTnlGroup=hwPWVcTnlGroup, hwSvcUp=hwSvcUp, hwSvcPeerAddrType=hwSvcPeerAddrType, hwPWVcStatisticsGroup=hwPWVcStatisticsGroup, hwPwe3MIBCompliances=hwPwe3MIBCompliances, hwL2Vpn=hwL2Vpn, hwPWVcInterworkingType=hwPWVcInterworkingType, hwPwe3Objects=hwPwe3Objects, hwPWVcSwitchPeerAddr=hwPWVcSwitchPeerAddr, hwPwVcIsAdmin=hwPwVcIsAdmin, hwPWOAMSync=hwPWOAMSync, hwPWVcTnlTable=hwPWVcTnlTable, hwSvcOutboundLabel=hwSvcOutboundLabel, hwPWTemplatePeerAddr=hwPWTemplatePeerAddr, hwPWVcMaxAtmCells=hwPWVcMaxAtmCells, hwPWVcCfmMaName=hwPWVcCfmMaName, hwPwVcSwitchBackupVcServiceName=hwPwVcSwitchBackupVcServiceName, hwPWVcStatisticsRcvBytes=hwPWVcStatisticsRcvBytes, hwSvcMtu=hwSvcMtu, hwSvcTnlForBfdIndex=hwSvcTnlForBfdIndex, hwPWVcTDMPerfCurrentGroup=hwPWVcTDMPerfCurrentGroup, hwPWBFDRemoteVcID=hwPWBFDRemoteVcID, hwPWVcTrigger=hwPWVcTrigger, hwSvcSwitchPtoW=hwSvcSwitchPtoW, hwPwVcSwitchBackupVcSlaveMasterMode=hwPwVcSwitchBackupVcSlaveMasterMode, hwPwe3MIBConformance=hwPwe3MIBConformance, hwSvcID=hwSvcID, hwPWTemplatePwRtpHeader=hwPWTemplatePwRtpHeader, hwSvcMaxAtmCells=hwSvcMaxAtmCells, hwSvcIfIndex=hwSvcIfIndex, hwPWEthOamType=hwPWEthOamType, hwPWVcIfIndex=hwPWVcIfIndex, hwSvcTnlPolicyName=hwSvcTnlPolicyName, hwPWTemplateCir=hwPWTemplateCir, hwPWVcStatisticsEntry=hwPWVcStatisticsEntry, hwPWVcDeleted=hwPWVcDeleted, hwPWRemoteVcStatus=hwPWRemoteVcStatus, hwPWVcTnlType=hwPWVcTnlType, hwSvcTnlGroup=hwSvcTnlGroup, hwPWVcResumeTime=hwPWVcResumeTime, hwPWVcTemplateName=hwPWVcTemplateName, hwPWVcSwitchOutboundLabel=hwPWVcSwitchOutboundLabel, hwSvcPeerAddr=hwSvcPeerAddr, hwPWId=hwPWId, hwPwVcSwitchVcSlaveMasterMode=hwPwVcSwitchVcSlaveMasterMode, hwPWCfmMaIndex=hwPWCfmMaIndex, hwPWTemplateCannotDeleted=hwPWTemplateCannotDeleted, hwPWVcSwitchPtoW=hwPWVcSwitchPtoW, hwPWVcAtmPackOvertime=hwPWVcAtmPackOvertime, hwPWVcSwitchWtoP=hwPWVcSwitchWtoP, hwPWTemplateCtrlword=hwPWTemplateCtrlword, hwPWVcTDMPerfCurrentJtrBfrUnderruns=hwPWVcTDMPerfCurrentJtrBfrUnderruns, hwSvcGroupID=hwSvcGroupID, hwPWRemoteVcID=hwPWRemoteVcID, hwPWVcDeletedNotifEnable=hwPWVcDeletedNotifEnable, hwPWVcBandWidth=hwPWVcBandWidth, hwPwVcNegotiateMode=hwPwVcNegotiateMode) mibBuilder.exportSymbols('HUAWEI-PWE3-MIB', hwSvcSwitchNotifEnable=hwSvcSwitchNotifEnable, hwSvcStatisticsRcvPkts=hwSvcStatisticsRcvPkts, hwPWVcDown=hwPWVcDown, hwPWVcTDMPerfCurrentSESs=hwPWVcTDMPerfCurrentSESs, hwPWVcStateChangeReasonGroup=hwPWVcStateChangeReasonGroup, hwPWVcPeerAddr=hwPWVcPeerAddr, hwPWVcVrID=hwPWVcVrID, hwPWVcSecondary=hwPWVcSecondary, hwPwVcSwitchBackupVcPeerAddr=hwPwVcSwitchBackupVcPeerAddr, hwPWNotificationControlGroup=hwPWNotificationControlGroup, hwSvcManualSetFault=hwSvcManualSetFault, hwSvcObjects=hwSvcObjects, hwSvcACOAMStatus=hwSvcACOAMStatus, hwSvcUpStartTime=hwSvcUpStartTime, hwPwVcSwitchBackupVcTnlPolicyName=hwPwVcSwitchBackupVcTnlPolicyName, hwPWTable=hwPWTable, hwSvcTable=hwSvcTable, hwPWTemplateTable=hwPWTemplateTable, hwSvcSecondary=hwSvcSecondary, hwPWPeerIp=hwPWPeerIp, hwL2vpnSvcMIBGroups=hwL2vpnSvcMIBGroups, hwSvcForBfdIndex=hwSvcForBfdIndex, hwSvcCir=hwSvcCir, hwPWDynamicBFDDetect=hwPWDynamicBFDDetect, hwSvcDown=hwSvcDown, hwPWTemplateEntry=hwPWTemplateEntry)
#**kwagrs use for complex agrument like dictionary store string values def func(**kwargs): for key, value in kwargs.items(): print("{} : {} ".format(key,value)) dict = {"Manish":"Male","Rashmi":"Female"} func(**dict)
def func(**kwargs): for (key, value) in kwargs.items(): print('{} : {} '.format(key, value)) dict = {'Manish': 'Male', 'Rashmi': 'Female'} func(**dict)
nome1 = 'Felipe' nome2 = 'Schmaedecke' for n in nome1: if n not in nome2: print(n, end=' ') for n in nome2: if n not in nome1: print(n, end=' ')
nome1 = 'Felipe' nome2 = 'Schmaedecke' for n in nome1: if n not in nome2: print(n, end=' ') for n in nome2: if n not in nome1: print(n, end=' ')
#The code is to take in numbers which are even and odd in the provided set even_numbers = [] odd_numbers = [] for number in range(0,1001): if number % 2 == 0: even_numbers.append(number) else: odd_numbers.append(number) print(even_numbers) print("\n") print("\n") print(odd_numbers)
even_numbers = [] odd_numbers = [] for number in range(0, 1001): if number % 2 == 0: even_numbers.append(number) else: odd_numbers.append(number) print(even_numbers) print('\n') print('\n') print(odd_numbers)
# # PySNMP MIB module AC-ANALOG-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/AC-ANALOG-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 16:54:29 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) # OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueRangeConstraint, ValueSizeConstraint, SingleValueConstraint, ConstraintsUnion, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsUnion", "ConstraintsIntersection") audioCodes, acProducts, acBoardMibs, acGeneric, acRegistrations = mibBuilder.importSymbols("AUDIOCODES-TYPES-MIB", "audioCodes", "acProducts", "acBoardMibs", "acGeneric", "acRegistrations") SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") Unsigned32, IpAddress, TimeTicks, NotificationType, ObjectIdentity, Bits, Counter32, iso, ModuleIdentity, MibIdentifier, Gauge32, MibScalar, MibTable, MibTableRow, MibTableColumn, Integer32, Counter64, enterprises = mibBuilder.importSymbols("SNMPv2-SMI", "Unsigned32", "IpAddress", "TimeTicks", "NotificationType", "ObjectIdentity", "Bits", "Counter32", "iso", "ModuleIdentity", "MibIdentifier", "Gauge32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Integer32", "Counter64", "enterprises") DateAndTime, TextualConvention, TAddress, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "DateAndTime", "TextualConvention", "TAddress", "DisplayString") acAnalog = ModuleIdentity((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8)) if mibBuilder.loadTexts: acAnalog.setLastUpdated('200911181414Z') if mibBuilder.loadTexts: acAnalog.setOrganization('AudioCodes Ltd') acAnalogConfiguration = MibIdentifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1)) acAnalogConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 1)) acAnalogMisc = MibIdentifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 1, 1)) acAnalogMiscCurrentDisconnectDuration = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 1, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(200, 1500))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acAnalogMiscCurrentDisconnectDuration.setStatus('current') acAnalogMiscFlashHookPeriod = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 1, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(25, 3000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acAnalogMiscFlashHookPeriod.setStatus('current') acAnalogMiscGroundKeyDetection = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acAnalogMiscGroundKeyDetection.setStatus('current') acAuxiliaryFiles = MibIdentifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 1, 2)) acAuxiliaryFilesFxsCoefficients = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 1, 2, 1), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 47))).setMaxAccess("readonly") if mibBuilder.loadTexts: acAuxiliaryFilesFxsCoefficients.setStatus('current') acAuxiliaryFilesFxoCoefficients = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 1, 2, 2), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 47))).setMaxAccess("readonly") if mibBuilder.loadTexts: acAuxiliaryFilesFxoCoefficients.setStatus('current') acAnalogFxoConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2)) acAnalogFxo = MibIdentifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1)) acAnalogFxoFarEndDisconnectType = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 128))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acAnalogFxoFarEndDisconnectType.setStatus('current') acAnalogFxoCountryCoefficients = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(66, 70))).clone(namedValues=NamedValues(("europe", 66), ("unitedStates", 70)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acAnalogFxoCountryCoefficients.setStatus('current') acAnalogFxoDCRemover = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acAnalogFxoDCRemover.setStatus('current') acAnalogFxoFarEndDisconnectToneTable = MibTable((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 21), ) if mibBuilder.loadTexts: acAnalogFxoFarEndDisconnectToneTable.setStatus('current') acAnalogFxoFarEndDisconnectToneEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 21, 1), ).setIndexNames((0, "AC-ANALOG-MIB", "acAnalogFxoFarEndDisconnectToneIndex")) if mibBuilder.loadTexts: acAnalogFxoFarEndDisconnectToneEntry.setStatus('current') acAnalogFxoFarEndDisconnectToneRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 21, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 1))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acAnalogFxoFarEndDisconnectToneRowStatus.setStatus('current') acAnalogFxoFarEndDisconnectToneAction = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 21, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 0))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acAnalogFxoFarEndDisconnectToneAction.setStatus('current') acAnalogFxoFarEndDisconnectToneActionResult = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 21, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 0))).setMaxAccess("readonly") if mibBuilder.loadTexts: acAnalogFxoFarEndDisconnectToneActionResult.setStatus('current') acAnalogFxoFarEndDisconnectToneIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 21, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4))).setMaxAccess("readonly") if mibBuilder.loadTexts: acAnalogFxoFarEndDisconnectToneIndex.setStatus('current') acAnalogFxoFarEndDisconnectToneType = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 21, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 298, 299))).clone(namedValues=NamedValues(("acNullTone", 0), ("acDialTone", 1), ("acRingingTone", 2), ("acBusyTone", 3), ("acCongestionTone", 4), ("acSpecialInfoTone", 5), ("acWarningTone", 6), ("acReorderTone", 7), ("acConfirmationTone", 8), ("acWaitingTone", 9), ("acCallProgressCo1Tone", 10), ("acCallProgressCo2Tone", 11), ("acOldMilliwattTone", 12), ("acNewMilliwattTone", 13), ("acMessageWaitingIndicator", 14), ("acStutterDialTone", 15), ("acStutterOffHookWarningTone", 16), ("acWaitingTone1", 17), ("acComfortTone", 18), ("acNAKTone", 19), ("acVacantNumberTone", 20), ("acSpecialConditionTone", 21), ("acDialTone2", 22), ("acOnHoldTone", 23), ("acCallTransferDialTone", 24), ("acCallForwardTone", 25), ("acCreditCardServiceTone", 26), ("acSpecialRecallDialTone", 27), ("acAlertingTone", 28), ("acNetworkCongestionTone", 29), ("acWaitingTone2", 30), ("acWaitingTone3", 31), ("acWaitingTone4", 32), ("acConfEnterTone", 33), ("acConfExitTone", 34), ("acConfLockTone", 35), ("acConfUnlockTone", 36), ("acConfTimeLimitTone", 37), ("acPayphoneRecognitionTone", 38), ("acCallerWaitingTone", 39), ("acCNGFaxTone", 40), ("acPrecConfNotifyType", 41), ("acPresConfNotifyType", 42), ("acPrecPreemptType", 43), ("acPrecRTType", 44), ("acR15reqOfANItone", 45), ("acCo1Tone", 200), ("acCo2Tone", 201), ("acPlayRecordBeepTone", 202), ("acTrunkTestingTestProgressTone", 203), ("acTrunkTestingTestTone", 204), ("acTrunkTestingGuardTone", 205), ("acFSKTrunkTestingTone", 206), ("acGeneralTrunkTestingTone1", 207), ("acGeneralTrunkTestingTone2", 208), ("acGeneralTrunkTestingTone3", 209), ("acSpecialInfoToneFirst", 210), ("acSpecialInfoToneSecond", 211), ("acSpecialInfoToneThird", 212), ("acTTYTone", 213), ("acTT904ContinuityTone", 214), ("acTTMilliwattLossMeasureTone", 215), ("acCarrierDialTone", 216), ("acCarrierAnswerTone", 217), ("acCarrierChargingTone", 218), ("acLongDistanceIndicatorTone", 219), ("acSTUModemFirstTone", 298), ("acSTUModemSecondTone", 299)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acAnalogFxoFarEndDisconnectToneType.setStatus('current') acAnalogFxsConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3)) acAnalogFxs = MibIdentifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1)) acAnalogFxsPolarityReversalType = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("soft", 0), ("hard", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acAnalogFxsPolarityReversalType.setStatus('current') acAnalogFxsMeteringType = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("mt12kHz", 0), ("mt16kHz", 1), ("mtPolarityReversal", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acAnalogFxsMeteringType.setStatus('current') acAnalogFxsLifeLineType = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("acLifeLineType-Hardware-Only", 0), ("acLifeLineTypeHardware-And-Link-Detection", 1), ("acLifeLineType-Hardware-And-Link-And-Network-Detection", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acAnalogFxsLifeLineType.setStatus('current') acAnalogFxsMinFlashHookTime = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(25, 300))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acAnalogFxsMinFlashHookTime.setStatus('current') acAnalogFxsCallerIDTimingMode = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acAnalogFxsCallerIDTimingMode.setStatus('current') acAnalogFxsBellcoreCallerIDTypeOneSubStandard = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("bellcore-Between-Rings", 0), ("bellcore-Not-Ring-Related", 1), ("bellcore-Before-Ring-RP-AS", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acAnalogFxsBellcoreCallerIDTypeOneSubStandard.setStatus('current') acAnalogFxsETSICallerIDTypeOneSubStandard = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("eTSI-Between-Rings", 0), ("eTSI-Before-Ring-DT-AS", 1), ("eTSI-Before-Ring-RP-AS", 2), ("eTSI-Before-Ring-LR-DT-AS", 3), ("eTSI-Not-Ring-Related-DT-AS", 4), ("eTSI-Not-Ring-Related-RP-AS", 5), ("eTSI-Not-Ring-Related-LR-DT-AS", 6)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acAnalogFxsETSICallerIDTypeOneSubStandard.setStatus('current') acAnalogFxsETSIVMWITypeOneStandard = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("eTSI-VMWI-Between-Rings", 0), ("eTSI-VMWI-Before-Ring-DT-AS", 1), ("eTSI-VMWI-Before-Ring-RP-AS", 2), ("eTSI-VMWI-Before-Ring-LR-DT-AS", 3), ("eTSI-VMWI-Not-Ring-Related-DT-AS", 4), ("eTSI-VMWI-Not-Ring-Related-RP-AS", 5), ("eTSI-VMWI-Not-Ring-Related-LR-DT-AS", 6)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acAnalogFxsETSIVMWITypeOneStandard.setStatus('current') acAnalogFxsBellcoreVMWITypeOneStandard = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("bellcore-VMWI-Between-Rings", 0), ("bellcore-VMWI-Not-Ring-Related", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acAnalogFxsBellcoreVMWITypeOneStandard.setStatus('current') acAnalogFxsDisableAutoCalibration = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 10), Unsigned32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acAnalogFxsDisableAutoCalibration.setStatus('current') acAnalogFxsExternalLifeLinePorts = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 11), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 24))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acAnalogFxsExternalLifeLinePorts.setStatus('current') acAnalogFxsCountryCoefficients = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(66, 70))).clone(namedValues=NamedValues(("europe", 66), ("unitedStates", 70)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acAnalogFxsCountryCoefficients.setStatus('current') acAnalogFxsTTXVoltageLevel = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(-1, 0, 1, 2))).clone(namedValues=NamedValues(("notAvailable", -1), ("ttxVoltageLevel0V", 0), ("ttxVoltageLevel05", 1), ("ttxVoltageLevel1V", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acAnalogFxsTTXVoltageLevel.setStatus('current') acAnalogStatus = MibIdentifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2)) acAnalogStatusMisc = MibIdentifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 1)) acAnalogStatusMiscFxsOrFxo = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("fXO", 0), ("fXS", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: acAnalogStatusMiscFxsOrFxo.setStatus('current') acAnalogStatusMiscBoardTemperature = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly") if mibBuilder.loadTexts: acAnalogStatusMiscBoardTemperature.setStatus('current') acAnalogStatusMiscAnalogChannelsCount = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 5000))).setMaxAccess("readonly") if mibBuilder.loadTexts: acAnalogStatusMiscAnalogChannelsCount.setStatus('current') acAnalogFxsFxo = MibIdentifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 20)) acAnalogFxsFxoTable = MibTable((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 20, 1), ) if mibBuilder.loadTexts: acAnalogFxsFxoTable.setStatus('current') acAnalogFxsFxoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 20, 1, 1), ).setIndexNames((0, "AC-ANALOG-MIB", "acAnalogFxsFxoIndex")) if mibBuilder.loadTexts: acAnalogFxsFxoEntry.setStatus('current') acAnalogFxsFxoIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 20, 1, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 24))) if mibBuilder.loadTexts: acAnalogFxsFxoIndex.setStatus('current') acAnalogFxsFxoType = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 20, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("fXO", 0), ("fXS", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: acAnalogFxsFxoType.setStatus('current') acAnalogFxsFxoChipRevNum = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 20, 1, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: acAnalogFxsFxoChipRevNum.setStatus('current') acAnalogFxsFxoHookState = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 20, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("onHookState", 1), ("offHookState", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: acAnalogFxsFxoHookState.setStatus('current') acAnalogAction = MibIdentifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3)) acAnalogFxoAction = MibIdentifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1)) acAnalogFxoLineTestTable = MibTable((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1), ) if mibBuilder.loadTexts: acAnalogFxoLineTestTable.setStatus('current') acAnalogFxoLineTestEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1), ).setIndexNames((0, "AC-ANALOG-MIB", "acAnalogFxoLineTestIndex")) if mibBuilder.loadTexts: acAnalogFxoLineTestEntry.setStatus('current') acAnalogFxoLineTestIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 24))) if mibBuilder.loadTexts: acAnalogFxoLineTestIndex.setStatus('current') acAnalogFxoLineTestActivate = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("noTestActivated", 0), ("runLineTest", 1), ("lineTestDone", 2), ("testFailed", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acAnalogFxoLineTestActivate.setStatus('current') acAnalogFxoLineTestHookState = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("onHookState", 1), ("offHookState", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: acAnalogFxoLineTestHookState.setStatus('current') acAnalogFxoLineTestPolarityStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("normalPolarity", 1), ("reversePolarity", 2), ("notAvailable", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: acAnalogFxoLineTestPolarityStatus.setStatus('current') acAnalogFxoLineTestLineConnectionStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("lineDisconnected", 1), ("lineConnected", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: acAnalogFxoLineTestLineConnectionStatus.setStatus('current') acAnalogFxoLineTestLineCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 24))).setMaxAccess("readonly") if mibBuilder.loadTexts: acAnalogFxoLineTestLineCurrent.setStatus('current') acAnalogFxoLineTestLineVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-128, 128))).setMaxAccess("readonly") if mibBuilder.loadTexts: acAnalogFxoLineTestLineVoltage.setStatus('current') acAnalogFxoLineTestRingState = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("off", 1), ("on", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: acAnalogFxoLineTestRingState.setStatus('current') acAnalogFxoLineTestLinePolarity = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("positive", 1), ("negative", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: acAnalogFxoLineTestLinePolarity.setStatus('current') acAnalogFxoLineTestMwiState = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("off", 1), ("on", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: acAnalogFxoLineTestMwiState.setStatus('current') acAnalogFxoLineTestLastCurrentDisconnectDuration = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 11), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: acAnalogFxoLineTestLastCurrentDisconnectDuration.setStatus('current') acAnalogFxsAction = MibIdentifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2)) acAnalogFxsLineTestTable = MibTable((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1), ) if mibBuilder.loadTexts: acAnalogFxsLineTestTable.setStatus('current') acAnalogFxsLineTestEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1), ).setIndexNames((0, "AC-ANALOG-MIB", "acAnalogFxsLineTestIndex")) if mibBuilder.loadTexts: acAnalogFxsLineTestEntry.setStatus('current') acAnalogFxsLineTestIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 24))) if mibBuilder.loadTexts: acAnalogFxsLineTestIndex.setStatus('current') acAnalogFxsLineTestActivate = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("noTestActivated", 0), ("runLineTest", 1), ("lineTestDone", 2), ("testFailed", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acAnalogFxsLineTestActivate.setStatus('current') acAnalogFxsLineTestHookState = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("onHookState", 1), ("offHookState", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: acAnalogFxsLineTestHookState.setStatus('current') acAnalogFxsLineTestRingState = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("offRingState", 1), ("onRingState", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: acAnalogFxsLineTestRingState.setStatus('current') acAnalogFxsLineTestPolarityStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("normalPolarity", 1), ("reversePolarity", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: acAnalogFxsLineTestPolarityStatus.setStatus('current') acAnalogFxsLineTestMessageWaitingIndication = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("noWaitingMessage", 1), ("waitingMessage", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: acAnalogFxsLineTestMessageWaitingIndication.setStatus('current') acAnalogFxsLineTestLineCurrentReading = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 3000))).setMaxAccess("readonly") if mibBuilder.loadTexts: acAnalogFxsLineTestLineCurrentReading.setStatus('current') acAnalogFxsLineTestLineVoltageReading = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-6000, 6000))).setMaxAccess("readonly") if mibBuilder.loadTexts: acAnalogFxsLineTestLineVoltageReading.setStatus('current') acAnalogFxsLineTestAnalogVoltageReading = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 9), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(300, 340))).setMaxAccess("readonly") if mibBuilder.loadTexts: acAnalogFxsLineTestAnalogVoltageReading.setStatus('current') acAnalogFxsLineTestRingVoltageReading = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-13000, 13000))).setMaxAccess("readonly") if mibBuilder.loadTexts: acAnalogFxsLineTestRingVoltageReading.setStatus('current') acAnalogFxsLineTestLongLineCurrentReading = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 11), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4000))).setMaxAccess("readonly") if mibBuilder.loadTexts: acAnalogFxsLineTestLongLineCurrentReading.setStatus('current') acAnalogCommonAction = MibIdentifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 3)) acAnalogCommonChannelTable = MibTable((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 3, 1), ) if mibBuilder.loadTexts: acAnalogCommonChannelTable.setStatus('current') acAnalogCommonChannelEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 3, 1, 1), ).setIndexNames((0, "AC-ANALOG-MIB", "acAnalogCommonChannelIndex")) if mibBuilder.loadTexts: acAnalogCommonChannelEntry.setStatus('current') acAnalogCommonChannelIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 3, 1, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 5000))) if mibBuilder.loadTexts: acAnalogCommonChannelIndex.setStatus('current') acAnalogCommonChannelAction = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 3, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("noAction", 0), ("reset", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acAnalogCommonChannelAction.setStatus('current') acAnalogLegs = MibIdentifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21)) acAnalogLegsTable = MibTable((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1), ) if mibBuilder.loadTexts: acAnalogLegsTable.setStatus('current') acAnalogLegsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1), ).setIndexNames((0, "AC-ANALOG-MIB", "acAnalogLegsLegIndex")) if mibBuilder.loadTexts: acAnalogLegsEntry.setStatus('current') acAnalogLegsLegIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 5000))) if mibBuilder.loadTexts: acAnalogLegsLegIndex.setStatus('current') acAnalogLegsCallIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 5000))).setMaxAccess("readonly") if mibBuilder.loadTexts: acAnalogLegsCallIndex.setStatus('current') acAnalogLegsAnalogType = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("fxs", 1), ("fxo", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: acAnalogLegsAnalogType.setStatus('current') acAnalogLegsEchoCanceller = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: acAnalogLegsEchoCanceller.setStatus('current') acAnalogLegsHighPassFilter = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: acAnalogLegsHighPassFilter.setStatus('current') acAnalogLegsDTMFDetection = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: acAnalogLegsDTMFDetection.setStatus('current') acAnalogLegsVoiceVolume = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 20000))).setMaxAccess("readonly") if mibBuilder.loadTexts: acAnalogLegsVoiceVolume.setStatus('current') acAnalogLegsInputGain = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1, 8), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 20000))).setMaxAccess("readonly") if mibBuilder.loadTexts: acAnalogLegsInputGain.setStatus('current') acAnalogLegsLegName = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1, 9), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: acAnalogLegsLegName.setStatus('current') mibBuilder.exportSymbols("AC-ANALOG-MIB", acAnalogFxoFarEndDisconnectToneEntry=acAnalogFxoFarEndDisconnectToneEntry, acAnalogLegsLegIndex=acAnalogLegsLegIndex, acAnalogFxsFxoType=acAnalogFxsFxoType, acAnalogConfig=acAnalogConfig, acAnalogLegsCallIndex=acAnalogLegsCallIndex, acAnalogFxoFarEndDisconnectToneTable=acAnalogFxoFarEndDisconnectToneTable, acAnalogStatusMiscAnalogChannelsCount=acAnalogStatusMiscAnalogChannelsCount, acAnalogFxsCountryCoefficients=acAnalogFxsCountryCoefficients, acAnalogLegs=acAnalogLegs, acAnalogFxsConfig=acAnalogFxsConfig, acAnalogFxsLineTestActivate=acAnalogFxsLineTestActivate, acAnalogFxsETSIVMWITypeOneStandard=acAnalogFxsETSIVMWITypeOneStandard, acAnalogMiscCurrentDisconnectDuration=acAnalogMiscCurrentDisconnectDuration, acAnalogFxsFxoEntry=acAnalogFxsFxoEntry, acAuxiliaryFilesFxsCoefficients=acAuxiliaryFilesFxsCoefficients, acAnalogFxsLineTestEntry=acAnalogFxsLineTestEntry, acAnalogFxsLineTestLineCurrentReading=acAnalogFxsLineTestLineCurrentReading, acAnalogFxoConfig=acAnalogFxoConfig, acAnalog=acAnalog, acAnalogFxsTTXVoltageLevel=acAnalogFxsTTXVoltageLevel, acAnalogMisc=acAnalogMisc, acAnalogFxsFxoTable=acAnalogFxsFxoTable, acAnalogFxsMinFlashHookTime=acAnalogFxsMinFlashHookTime, acAnalogLegsAnalogType=acAnalogLegsAnalogType, acAnalogFxoLineTestLinePolarity=acAnalogFxoLineTestLinePolarity, acAnalogFxoLineTestEntry=acAnalogFxoLineTestEntry, acAnalogLegsTable=acAnalogLegsTable, acAnalogLegsEchoCanceller=acAnalogLegsEchoCanceller, acAnalogFxsLineTestLongLineCurrentReading=acAnalogFxsLineTestLongLineCurrentReading, acAuxiliaryFiles=acAuxiliaryFiles, acAnalogFxsFxoChipRevNum=acAnalogFxsFxoChipRevNum, acAnalogFxoFarEndDisconnectToneActionResult=acAnalogFxoFarEndDisconnectToneActionResult, acAnalogFxoLineTestIndex=acAnalogFxoLineTestIndex, acAnalogFxsExternalLifeLinePorts=acAnalogFxsExternalLifeLinePorts, acAnalogFxsLineTestPolarityStatus=acAnalogFxsLineTestPolarityStatus, acAnalogFxsLineTestLineVoltageReading=acAnalogFxsLineTestLineVoltageReading, acAnalogConfiguration=acAnalogConfiguration, acAnalogAction=acAnalogAction, acAnalogFxs=acAnalogFxs, acAnalogCommonChannelTable=acAnalogCommonChannelTable, acAnalogFxsLifeLineType=acAnalogFxsLifeLineType, acAnalogStatusMiscBoardTemperature=acAnalogStatusMiscBoardTemperature, acAnalogMiscGroundKeyDetection=acAnalogMiscGroundKeyDetection, acAnalogFxoLineTestLineConnectionStatus=acAnalogFxoLineTestLineConnectionStatus, acAnalogLegsVoiceVolume=acAnalogLegsVoiceVolume, acAnalogFxsLineTestRingState=acAnalogFxsLineTestRingState, acAnalogFxsLineTestIndex=acAnalogFxsLineTestIndex, acAnalogFxsFxo=acAnalogFxsFxo, acAnalogCommonChannelAction=acAnalogCommonChannelAction, acAnalogFxoLineTestMwiState=acAnalogFxoLineTestMwiState, acAnalogFxsLineTestMessageWaitingIndication=acAnalogFxsLineTestMessageWaitingIndication, acAnalogFxsPolarityReversalType=acAnalogFxsPolarityReversalType, acAnalogLegsEntry=acAnalogLegsEntry, acAuxiliaryFilesFxoCoefficients=acAuxiliaryFilesFxoCoefficients, acAnalogFxoLineTestActivate=acAnalogFxoLineTestActivate, acAnalogFxoCountryCoefficients=acAnalogFxoCountryCoefficients, acAnalogStatus=acAnalogStatus, acAnalogFxsETSICallerIDTypeOneSubStandard=acAnalogFxsETSICallerIDTypeOneSubStandard, acAnalogFxoFarEndDisconnectToneAction=acAnalogFxoFarEndDisconnectToneAction, acAnalogFxsLineTestRingVoltageReading=acAnalogFxsLineTestRingVoltageReading, acAnalogFxsLineTestHookState=acAnalogFxsLineTestHookState, acAnalogFxsFxoHookState=acAnalogFxsFxoHookState, acAnalogFxsDisableAutoCalibration=acAnalogFxsDisableAutoCalibration, acAnalogFxsLineTestTable=acAnalogFxsLineTestTable, acAnalogFxoLineTestRingState=acAnalogFxoLineTestRingState, acAnalogFxoLineTestTable=acAnalogFxoLineTestTable, acAnalogLegsHighPassFilter=acAnalogLegsHighPassFilter, acAnalogFxsFxoIndex=acAnalogFxsFxoIndex, acAnalogFxo=acAnalogFxo, acAnalogFxsCallerIDTimingMode=acAnalogFxsCallerIDTimingMode, acAnalogStatusMisc=acAnalogStatusMisc, acAnalogLegsLegName=acAnalogLegsLegName, acAnalogFxoLineTestHookState=acAnalogFxoLineTestHookState, acAnalogFxoLineTestLineCurrent=acAnalogFxoLineTestLineCurrent, acAnalogFxoLineTestLastCurrentDisconnectDuration=acAnalogFxoLineTestLastCurrentDisconnectDuration, acAnalogFxsAction=acAnalogFxsAction, acAnalogFxsMeteringType=acAnalogFxsMeteringType, acAnalogFxsBellcoreVMWITypeOneStandard=acAnalogFxsBellcoreVMWITypeOneStandard, acAnalogLegsInputGain=acAnalogLegsInputGain, acAnalogCommonChannelIndex=acAnalogCommonChannelIndex, acAnalogFxoFarEndDisconnectType=acAnalogFxoFarEndDisconnectType, acAnalogFxsLineTestAnalogVoltageReading=acAnalogFxsLineTestAnalogVoltageReading, acAnalogFxoAction=acAnalogFxoAction, acAnalogFxoFarEndDisconnectToneIndex=acAnalogFxoFarEndDisconnectToneIndex, acAnalogFxoFarEndDisconnectToneType=acAnalogFxoFarEndDisconnectToneType, acAnalogLegsDTMFDetection=acAnalogLegsDTMFDetection, acAnalogFxoFarEndDisconnectToneRowStatus=acAnalogFxoFarEndDisconnectToneRowStatus, acAnalogMiscFlashHookPeriod=acAnalogMiscFlashHookPeriod, acAnalogFxoLineTestPolarityStatus=acAnalogFxoLineTestPolarityStatus, acAnalogStatusMiscFxsOrFxo=acAnalogStatusMiscFxsOrFxo, PYSNMP_MODULE_ID=acAnalog, acAnalogCommonAction=acAnalogCommonAction, acAnalogFxoLineTestLineVoltage=acAnalogFxoLineTestLineVoltage, acAnalogFxsBellcoreCallerIDTypeOneSubStandard=acAnalogFxsBellcoreCallerIDTypeOneSubStandard, acAnalogFxoDCRemover=acAnalogFxoDCRemover, acAnalogCommonChannelEntry=acAnalogCommonChannelEntry)
(octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_range_constraint, value_size_constraint, single_value_constraint, constraints_union, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'ValueSizeConstraint', 'SingleValueConstraint', 'ConstraintsUnion', 'ConstraintsIntersection') (audio_codes, ac_products, ac_board_mibs, ac_generic, ac_registrations) = mibBuilder.importSymbols('AUDIOCODES-TYPES-MIB', 'audioCodes', 'acProducts', 'acBoardMibs', 'acGeneric', 'acRegistrations') (snmp_admin_string,) = mibBuilder.importSymbols('SNMP-FRAMEWORK-MIB', 'SnmpAdminString') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (unsigned32, ip_address, time_ticks, notification_type, object_identity, bits, counter32, iso, module_identity, mib_identifier, gauge32, mib_scalar, mib_table, mib_table_row, mib_table_column, integer32, counter64, enterprises) = mibBuilder.importSymbols('SNMPv2-SMI', 'Unsigned32', 'IpAddress', 'TimeTicks', 'NotificationType', 'ObjectIdentity', 'Bits', 'Counter32', 'iso', 'ModuleIdentity', 'MibIdentifier', 'Gauge32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Integer32', 'Counter64', 'enterprises') (date_and_time, textual_convention, t_address, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'DateAndTime', 'TextualConvention', 'TAddress', 'DisplayString') ac_analog = module_identity((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8)) if mibBuilder.loadTexts: acAnalog.setLastUpdated('200911181414Z') if mibBuilder.loadTexts: acAnalog.setOrganization('AudioCodes Ltd') ac_analog_configuration = mib_identifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1)) ac_analog_config = mib_identifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 1)) ac_analog_misc = mib_identifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 1, 1)) ac_analog_misc_current_disconnect_duration = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 1, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(200, 1500))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acAnalogMiscCurrentDisconnectDuration.setStatus('current') ac_analog_misc_flash_hook_period = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 1, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(25, 3000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acAnalogMiscFlashHookPeriod.setStatus('current') ac_analog_misc_ground_key_detection = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disable', 0), ('enable', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acAnalogMiscGroundKeyDetection.setStatus('current') ac_auxiliary_files = mib_identifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 1, 2)) ac_auxiliary_files_fxs_coefficients = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 1, 2, 1), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(0, 47))).setMaxAccess('readonly') if mibBuilder.loadTexts: acAuxiliaryFilesFxsCoefficients.setStatus('current') ac_auxiliary_files_fxo_coefficients = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 1, 2, 2), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(0, 47))).setMaxAccess('readonly') if mibBuilder.loadTexts: acAuxiliaryFilesFxoCoefficients.setStatus('current') ac_analog_fxo_config = mib_identifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2)) ac_analog_fxo = mib_identifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1)) ac_analog_fxo_far_end_disconnect_type = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 128))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acAnalogFxoFarEndDisconnectType.setStatus('current') ac_analog_fxo_country_coefficients = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(66, 70))).clone(namedValues=named_values(('europe', 66), ('unitedStates', 70)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acAnalogFxoCountryCoefficients.setStatus('current') ac_analog_fxo_dc_remover = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disable', 0), ('enable', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acAnalogFxoDCRemover.setStatus('current') ac_analog_fxo_far_end_disconnect_tone_table = mib_table((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 21)) if mibBuilder.loadTexts: acAnalogFxoFarEndDisconnectToneTable.setStatus('current') ac_analog_fxo_far_end_disconnect_tone_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 21, 1)).setIndexNames((0, 'AC-ANALOG-MIB', 'acAnalogFxoFarEndDisconnectToneIndex')) if mibBuilder.loadTexts: acAnalogFxoFarEndDisconnectToneEntry.setStatus('current') ac_analog_fxo_far_end_disconnect_tone_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 21, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 1))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acAnalogFxoFarEndDisconnectToneRowStatus.setStatus('current') ac_analog_fxo_far_end_disconnect_tone_action = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 21, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 0))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acAnalogFxoFarEndDisconnectToneAction.setStatus('current') ac_analog_fxo_far_end_disconnect_tone_action_result = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 21, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 0))).setMaxAccess('readonly') if mibBuilder.loadTexts: acAnalogFxoFarEndDisconnectToneActionResult.setStatus('current') ac_analog_fxo_far_end_disconnect_tone_index = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 21, 1, 4), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4))).setMaxAccess('readonly') if mibBuilder.loadTexts: acAnalogFxoFarEndDisconnectToneIndex.setStatus('current') ac_analog_fxo_far_end_disconnect_tone_type = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 21, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 298, 299))).clone(namedValues=named_values(('acNullTone', 0), ('acDialTone', 1), ('acRingingTone', 2), ('acBusyTone', 3), ('acCongestionTone', 4), ('acSpecialInfoTone', 5), ('acWarningTone', 6), ('acReorderTone', 7), ('acConfirmationTone', 8), ('acWaitingTone', 9), ('acCallProgressCo1Tone', 10), ('acCallProgressCo2Tone', 11), ('acOldMilliwattTone', 12), ('acNewMilliwattTone', 13), ('acMessageWaitingIndicator', 14), ('acStutterDialTone', 15), ('acStutterOffHookWarningTone', 16), ('acWaitingTone1', 17), ('acComfortTone', 18), ('acNAKTone', 19), ('acVacantNumberTone', 20), ('acSpecialConditionTone', 21), ('acDialTone2', 22), ('acOnHoldTone', 23), ('acCallTransferDialTone', 24), ('acCallForwardTone', 25), ('acCreditCardServiceTone', 26), ('acSpecialRecallDialTone', 27), ('acAlertingTone', 28), ('acNetworkCongestionTone', 29), ('acWaitingTone2', 30), ('acWaitingTone3', 31), ('acWaitingTone4', 32), ('acConfEnterTone', 33), ('acConfExitTone', 34), ('acConfLockTone', 35), ('acConfUnlockTone', 36), ('acConfTimeLimitTone', 37), ('acPayphoneRecognitionTone', 38), ('acCallerWaitingTone', 39), ('acCNGFaxTone', 40), ('acPrecConfNotifyType', 41), ('acPresConfNotifyType', 42), ('acPrecPreemptType', 43), ('acPrecRTType', 44), ('acR15reqOfANItone', 45), ('acCo1Tone', 200), ('acCo2Tone', 201), ('acPlayRecordBeepTone', 202), ('acTrunkTestingTestProgressTone', 203), ('acTrunkTestingTestTone', 204), ('acTrunkTestingGuardTone', 205), ('acFSKTrunkTestingTone', 206), ('acGeneralTrunkTestingTone1', 207), ('acGeneralTrunkTestingTone2', 208), ('acGeneralTrunkTestingTone3', 209), ('acSpecialInfoToneFirst', 210), ('acSpecialInfoToneSecond', 211), ('acSpecialInfoToneThird', 212), ('acTTYTone', 213), ('acTT904ContinuityTone', 214), ('acTTMilliwattLossMeasureTone', 215), ('acCarrierDialTone', 216), ('acCarrierAnswerTone', 217), ('acCarrierChargingTone', 218), ('acLongDistanceIndicatorTone', 219), ('acSTUModemFirstTone', 298), ('acSTUModemSecondTone', 299)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acAnalogFxoFarEndDisconnectToneType.setStatus('current') ac_analog_fxs_config = mib_identifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3)) ac_analog_fxs = mib_identifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1)) ac_analog_fxs_polarity_reversal_type = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('soft', 0), ('hard', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acAnalogFxsPolarityReversalType.setStatus('current') ac_analog_fxs_metering_type = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('mt12kHz', 0), ('mt16kHz', 1), ('mtPolarityReversal', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acAnalogFxsMeteringType.setStatus('current') ac_analog_fxs_life_line_type = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('acLifeLineType-Hardware-Only', 0), ('acLifeLineTypeHardware-And-Link-Detection', 1), ('acLifeLineType-Hardware-And-Link-And-Network-Detection', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acAnalogFxsLifeLineType.setStatus('current') ac_analog_fxs_min_flash_hook_time = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 4), unsigned32().subtype(subtypeSpec=value_range_constraint(25, 300))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acAnalogFxsMinFlashHookTime.setStatus('current') ac_analog_fxs_caller_id_timing_mode = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disable', 0), ('enable', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acAnalogFxsCallerIDTimingMode.setStatus('current') ac_analog_fxs_bellcore_caller_id_type_one_sub_standard = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('bellcore-Between-Rings', 0), ('bellcore-Not-Ring-Related', 1), ('bellcore-Before-Ring-RP-AS', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acAnalogFxsBellcoreCallerIDTypeOneSubStandard.setStatus('current') ac_analog_fxs_etsi_caller_id_type_one_sub_standard = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('eTSI-Between-Rings', 0), ('eTSI-Before-Ring-DT-AS', 1), ('eTSI-Before-Ring-RP-AS', 2), ('eTSI-Before-Ring-LR-DT-AS', 3), ('eTSI-Not-Ring-Related-DT-AS', 4), ('eTSI-Not-Ring-Related-RP-AS', 5), ('eTSI-Not-Ring-Related-LR-DT-AS', 6)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acAnalogFxsETSICallerIDTypeOneSubStandard.setStatus('current') ac_analog_fxs_etsivmwi_type_one_standard = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('eTSI-VMWI-Between-Rings', 0), ('eTSI-VMWI-Before-Ring-DT-AS', 1), ('eTSI-VMWI-Before-Ring-RP-AS', 2), ('eTSI-VMWI-Before-Ring-LR-DT-AS', 3), ('eTSI-VMWI-Not-Ring-Related-DT-AS', 4), ('eTSI-VMWI-Not-Ring-Related-RP-AS', 5), ('eTSI-VMWI-Not-Ring-Related-LR-DT-AS', 6)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acAnalogFxsETSIVMWITypeOneStandard.setStatus('current') ac_analog_fxs_bellcore_vmwi_type_one_standard = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('bellcore-VMWI-Between-Rings', 0), ('bellcore-VMWI-Not-Ring-Related', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acAnalogFxsBellcoreVMWITypeOneStandard.setStatus('current') ac_analog_fxs_disable_auto_calibration = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 10), unsigned32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acAnalogFxsDisableAutoCalibration.setStatus('current') ac_analog_fxs_external_life_line_ports = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 11), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 24))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acAnalogFxsExternalLifeLinePorts.setStatus('current') ac_analog_fxs_country_coefficients = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(66, 70))).clone(namedValues=named_values(('europe', 66), ('unitedStates', 70)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acAnalogFxsCountryCoefficients.setStatus('current') ac_analog_fxs_ttx_voltage_level = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(-1, 0, 1, 2))).clone(namedValues=named_values(('notAvailable', -1), ('ttxVoltageLevel0V', 0), ('ttxVoltageLevel05', 1), ('ttxVoltageLevel1V', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acAnalogFxsTTXVoltageLevel.setStatus('current') ac_analog_status = mib_identifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2)) ac_analog_status_misc = mib_identifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 1)) ac_analog_status_misc_fxs_or_fxo = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('fXO', 0), ('fXS', 1)))).setMaxAccess('readonly') if mibBuilder.loadTexts: acAnalogStatusMiscFxsOrFxo.setStatus('current') ac_analog_status_misc_board_temperature = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readonly') if mibBuilder.loadTexts: acAnalogStatusMiscBoardTemperature.setStatus('current') ac_analog_status_misc_analog_channels_count = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 5000))).setMaxAccess('readonly') if mibBuilder.loadTexts: acAnalogStatusMiscAnalogChannelsCount.setStatus('current') ac_analog_fxs_fxo = mib_identifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 20)) ac_analog_fxs_fxo_table = mib_table((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 20, 1)) if mibBuilder.loadTexts: acAnalogFxsFxoTable.setStatus('current') ac_analog_fxs_fxo_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 20, 1, 1)).setIndexNames((0, 'AC-ANALOG-MIB', 'acAnalogFxsFxoIndex')) if mibBuilder.loadTexts: acAnalogFxsFxoEntry.setStatus('current') ac_analog_fxs_fxo_index = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 20, 1, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 24))) if mibBuilder.loadTexts: acAnalogFxsFxoIndex.setStatus('current') ac_analog_fxs_fxo_type = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 20, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('fXO', 0), ('fXS', 1)))).setMaxAccess('readonly') if mibBuilder.loadTexts: acAnalogFxsFxoType.setStatus('current') ac_analog_fxs_fxo_chip_rev_num = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 20, 1, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: acAnalogFxsFxoChipRevNum.setStatus('current') ac_analog_fxs_fxo_hook_state = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 20, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('onHookState', 1), ('offHookState', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: acAnalogFxsFxoHookState.setStatus('current') ac_analog_action = mib_identifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3)) ac_analog_fxo_action = mib_identifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1)) ac_analog_fxo_line_test_table = mib_table((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1)) if mibBuilder.loadTexts: acAnalogFxoLineTestTable.setStatus('current') ac_analog_fxo_line_test_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1)).setIndexNames((0, 'AC-ANALOG-MIB', 'acAnalogFxoLineTestIndex')) if mibBuilder.loadTexts: acAnalogFxoLineTestEntry.setStatus('current') ac_analog_fxo_line_test_index = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 24))) if mibBuilder.loadTexts: acAnalogFxoLineTestIndex.setStatus('current') ac_analog_fxo_line_test_activate = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3))).clone(namedValues=named_values(('noTestActivated', 0), ('runLineTest', 1), ('lineTestDone', 2), ('testFailed', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acAnalogFxoLineTestActivate.setStatus('current') ac_analog_fxo_line_test_hook_state = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('onHookState', 1), ('offHookState', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: acAnalogFxoLineTestHookState.setStatus('current') ac_analog_fxo_line_test_polarity_status = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('normalPolarity', 1), ('reversePolarity', 2), ('notAvailable', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: acAnalogFxoLineTestPolarityStatus.setStatus('current') ac_analog_fxo_line_test_line_connection_status = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('lineDisconnected', 1), ('lineConnected', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: acAnalogFxoLineTestLineConnectionStatus.setStatus('current') ac_analog_fxo_line_test_line_current = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(-1, 24))).setMaxAccess('readonly') if mibBuilder.loadTexts: acAnalogFxoLineTestLineCurrent.setStatus('current') ac_analog_fxo_line_test_line_voltage = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(-128, 128))).setMaxAccess('readonly') if mibBuilder.loadTexts: acAnalogFxoLineTestLineVoltage.setStatus('current') ac_analog_fxo_line_test_ring_state = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('off', 1), ('on', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: acAnalogFxoLineTestRingState.setStatus('current') ac_analog_fxo_line_test_line_polarity = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('positive', 1), ('negative', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: acAnalogFxoLineTestLinePolarity.setStatus('current') ac_analog_fxo_line_test_mwi_state = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('off', 1), ('on', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: acAnalogFxoLineTestMwiState.setStatus('current') ac_analog_fxo_line_test_last_current_disconnect_duration = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 11), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: acAnalogFxoLineTestLastCurrentDisconnectDuration.setStatus('current') ac_analog_fxs_action = mib_identifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2)) ac_analog_fxs_line_test_table = mib_table((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1)) if mibBuilder.loadTexts: acAnalogFxsLineTestTable.setStatus('current') ac_analog_fxs_line_test_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1)).setIndexNames((0, 'AC-ANALOG-MIB', 'acAnalogFxsLineTestIndex')) if mibBuilder.loadTexts: acAnalogFxsLineTestEntry.setStatus('current') ac_analog_fxs_line_test_index = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 24))) if mibBuilder.loadTexts: acAnalogFxsLineTestIndex.setStatus('current') ac_analog_fxs_line_test_activate = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3))).clone(namedValues=named_values(('noTestActivated', 0), ('runLineTest', 1), ('lineTestDone', 2), ('testFailed', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acAnalogFxsLineTestActivate.setStatus('current') ac_analog_fxs_line_test_hook_state = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('onHookState', 1), ('offHookState', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: acAnalogFxsLineTestHookState.setStatus('current') ac_analog_fxs_line_test_ring_state = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('offRingState', 1), ('onRingState', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: acAnalogFxsLineTestRingState.setStatus('current') ac_analog_fxs_line_test_polarity_status = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('normalPolarity', 1), ('reversePolarity', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: acAnalogFxsLineTestPolarityStatus.setStatus('current') ac_analog_fxs_line_test_message_waiting_indication = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('noWaitingMessage', 1), ('waitingMessage', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: acAnalogFxsLineTestMessageWaitingIndication.setStatus('current') ac_analog_fxs_line_test_line_current_reading = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 7), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 3000))).setMaxAccess('readonly') if mibBuilder.loadTexts: acAnalogFxsLineTestLineCurrentReading.setStatus('current') ac_analog_fxs_line_test_line_voltage_reading = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(-6000, 6000))).setMaxAccess('readonly') if mibBuilder.loadTexts: acAnalogFxsLineTestLineVoltageReading.setStatus('current') ac_analog_fxs_line_test_analog_voltage_reading = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 9), unsigned32().subtype(subtypeSpec=value_range_constraint(300, 340))).setMaxAccess('readonly') if mibBuilder.loadTexts: acAnalogFxsLineTestAnalogVoltageReading.setStatus('current') ac_analog_fxs_line_test_ring_voltage_reading = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(-13000, 13000))).setMaxAccess('readonly') if mibBuilder.loadTexts: acAnalogFxsLineTestRingVoltageReading.setStatus('current') ac_analog_fxs_line_test_long_line_current_reading = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 11), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4000))).setMaxAccess('readonly') if mibBuilder.loadTexts: acAnalogFxsLineTestLongLineCurrentReading.setStatus('current') ac_analog_common_action = mib_identifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 3)) ac_analog_common_channel_table = mib_table((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 3, 1)) if mibBuilder.loadTexts: acAnalogCommonChannelTable.setStatus('current') ac_analog_common_channel_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 3, 1, 1)).setIndexNames((0, 'AC-ANALOG-MIB', 'acAnalogCommonChannelIndex')) if mibBuilder.loadTexts: acAnalogCommonChannelEntry.setStatus('current') ac_analog_common_channel_index = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 3, 1, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 5000))) if mibBuilder.loadTexts: acAnalogCommonChannelIndex.setStatus('current') ac_analog_common_channel_action = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 3, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('noAction', 0), ('reset', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acAnalogCommonChannelAction.setStatus('current') ac_analog_legs = mib_identifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21)) ac_analog_legs_table = mib_table((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1)) if mibBuilder.loadTexts: acAnalogLegsTable.setStatus('current') ac_analog_legs_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1)).setIndexNames((0, 'AC-ANALOG-MIB', 'acAnalogLegsLegIndex')) if mibBuilder.loadTexts: acAnalogLegsEntry.setStatus('current') ac_analog_legs_leg_index = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 5000))) if mibBuilder.loadTexts: acAnalogLegsLegIndex.setStatus('current') ac_analog_legs_call_index = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 5000))).setMaxAccess('readonly') if mibBuilder.loadTexts: acAnalogLegsCallIndex.setStatus('current') ac_analog_legs_analog_type = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('fxs', 1), ('fxo', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: acAnalogLegsAnalogType.setStatus('current') ac_analog_legs_echo_canceller = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disable', 0), ('enable', 1)))).setMaxAccess('readonly') if mibBuilder.loadTexts: acAnalogLegsEchoCanceller.setStatus('current') ac_analog_legs_high_pass_filter = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disable', 0), ('enable', 1)))).setMaxAccess('readonly') if mibBuilder.loadTexts: acAnalogLegsHighPassFilter.setStatus('current') ac_analog_legs_dtmf_detection = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disable', 0), ('enable', 1)))).setMaxAccess('readonly') if mibBuilder.loadTexts: acAnalogLegsDTMFDetection.setStatus('current') ac_analog_legs_voice_volume = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1, 7), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 20000))).setMaxAccess('readonly') if mibBuilder.loadTexts: acAnalogLegsVoiceVolume.setStatus('current') ac_analog_legs_input_gain = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1, 8), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 20000))).setMaxAccess('readonly') if mibBuilder.loadTexts: acAnalogLegsInputGain.setStatus('current') ac_analog_legs_leg_name = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1, 9), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readonly') if mibBuilder.loadTexts: acAnalogLegsLegName.setStatus('current') mibBuilder.exportSymbols('AC-ANALOG-MIB', acAnalogFxoFarEndDisconnectToneEntry=acAnalogFxoFarEndDisconnectToneEntry, acAnalogLegsLegIndex=acAnalogLegsLegIndex, acAnalogFxsFxoType=acAnalogFxsFxoType, acAnalogConfig=acAnalogConfig, acAnalogLegsCallIndex=acAnalogLegsCallIndex, acAnalogFxoFarEndDisconnectToneTable=acAnalogFxoFarEndDisconnectToneTable, acAnalogStatusMiscAnalogChannelsCount=acAnalogStatusMiscAnalogChannelsCount, acAnalogFxsCountryCoefficients=acAnalogFxsCountryCoefficients, acAnalogLegs=acAnalogLegs, acAnalogFxsConfig=acAnalogFxsConfig, acAnalogFxsLineTestActivate=acAnalogFxsLineTestActivate, acAnalogFxsETSIVMWITypeOneStandard=acAnalogFxsETSIVMWITypeOneStandard, acAnalogMiscCurrentDisconnectDuration=acAnalogMiscCurrentDisconnectDuration, acAnalogFxsFxoEntry=acAnalogFxsFxoEntry, acAuxiliaryFilesFxsCoefficients=acAuxiliaryFilesFxsCoefficients, acAnalogFxsLineTestEntry=acAnalogFxsLineTestEntry, acAnalogFxsLineTestLineCurrentReading=acAnalogFxsLineTestLineCurrentReading, acAnalogFxoConfig=acAnalogFxoConfig, acAnalog=acAnalog, acAnalogFxsTTXVoltageLevel=acAnalogFxsTTXVoltageLevel, acAnalogMisc=acAnalogMisc, acAnalogFxsFxoTable=acAnalogFxsFxoTable, acAnalogFxsMinFlashHookTime=acAnalogFxsMinFlashHookTime, acAnalogLegsAnalogType=acAnalogLegsAnalogType, acAnalogFxoLineTestLinePolarity=acAnalogFxoLineTestLinePolarity, acAnalogFxoLineTestEntry=acAnalogFxoLineTestEntry, acAnalogLegsTable=acAnalogLegsTable, acAnalogLegsEchoCanceller=acAnalogLegsEchoCanceller, acAnalogFxsLineTestLongLineCurrentReading=acAnalogFxsLineTestLongLineCurrentReading, acAuxiliaryFiles=acAuxiliaryFiles, acAnalogFxsFxoChipRevNum=acAnalogFxsFxoChipRevNum, acAnalogFxoFarEndDisconnectToneActionResult=acAnalogFxoFarEndDisconnectToneActionResult, acAnalogFxoLineTestIndex=acAnalogFxoLineTestIndex, acAnalogFxsExternalLifeLinePorts=acAnalogFxsExternalLifeLinePorts, acAnalogFxsLineTestPolarityStatus=acAnalogFxsLineTestPolarityStatus, acAnalogFxsLineTestLineVoltageReading=acAnalogFxsLineTestLineVoltageReading, acAnalogConfiguration=acAnalogConfiguration, acAnalogAction=acAnalogAction, acAnalogFxs=acAnalogFxs, acAnalogCommonChannelTable=acAnalogCommonChannelTable, acAnalogFxsLifeLineType=acAnalogFxsLifeLineType, acAnalogStatusMiscBoardTemperature=acAnalogStatusMiscBoardTemperature, acAnalogMiscGroundKeyDetection=acAnalogMiscGroundKeyDetection, acAnalogFxoLineTestLineConnectionStatus=acAnalogFxoLineTestLineConnectionStatus, acAnalogLegsVoiceVolume=acAnalogLegsVoiceVolume, acAnalogFxsLineTestRingState=acAnalogFxsLineTestRingState, acAnalogFxsLineTestIndex=acAnalogFxsLineTestIndex, acAnalogFxsFxo=acAnalogFxsFxo, acAnalogCommonChannelAction=acAnalogCommonChannelAction, acAnalogFxoLineTestMwiState=acAnalogFxoLineTestMwiState, acAnalogFxsLineTestMessageWaitingIndication=acAnalogFxsLineTestMessageWaitingIndication, acAnalogFxsPolarityReversalType=acAnalogFxsPolarityReversalType, acAnalogLegsEntry=acAnalogLegsEntry, acAuxiliaryFilesFxoCoefficients=acAuxiliaryFilesFxoCoefficients, acAnalogFxoLineTestActivate=acAnalogFxoLineTestActivate, acAnalogFxoCountryCoefficients=acAnalogFxoCountryCoefficients, acAnalogStatus=acAnalogStatus, acAnalogFxsETSICallerIDTypeOneSubStandard=acAnalogFxsETSICallerIDTypeOneSubStandard, acAnalogFxoFarEndDisconnectToneAction=acAnalogFxoFarEndDisconnectToneAction, acAnalogFxsLineTestRingVoltageReading=acAnalogFxsLineTestRingVoltageReading, acAnalogFxsLineTestHookState=acAnalogFxsLineTestHookState, acAnalogFxsFxoHookState=acAnalogFxsFxoHookState, acAnalogFxsDisableAutoCalibration=acAnalogFxsDisableAutoCalibration, acAnalogFxsLineTestTable=acAnalogFxsLineTestTable, acAnalogFxoLineTestRingState=acAnalogFxoLineTestRingState, acAnalogFxoLineTestTable=acAnalogFxoLineTestTable, acAnalogLegsHighPassFilter=acAnalogLegsHighPassFilter, acAnalogFxsFxoIndex=acAnalogFxsFxoIndex, acAnalogFxo=acAnalogFxo, acAnalogFxsCallerIDTimingMode=acAnalogFxsCallerIDTimingMode, acAnalogStatusMisc=acAnalogStatusMisc, acAnalogLegsLegName=acAnalogLegsLegName, acAnalogFxoLineTestHookState=acAnalogFxoLineTestHookState, acAnalogFxoLineTestLineCurrent=acAnalogFxoLineTestLineCurrent, acAnalogFxoLineTestLastCurrentDisconnectDuration=acAnalogFxoLineTestLastCurrentDisconnectDuration, acAnalogFxsAction=acAnalogFxsAction, acAnalogFxsMeteringType=acAnalogFxsMeteringType, acAnalogFxsBellcoreVMWITypeOneStandard=acAnalogFxsBellcoreVMWITypeOneStandard, acAnalogLegsInputGain=acAnalogLegsInputGain, acAnalogCommonChannelIndex=acAnalogCommonChannelIndex, acAnalogFxoFarEndDisconnectType=acAnalogFxoFarEndDisconnectType, acAnalogFxsLineTestAnalogVoltageReading=acAnalogFxsLineTestAnalogVoltageReading, acAnalogFxoAction=acAnalogFxoAction, acAnalogFxoFarEndDisconnectToneIndex=acAnalogFxoFarEndDisconnectToneIndex, acAnalogFxoFarEndDisconnectToneType=acAnalogFxoFarEndDisconnectToneType, acAnalogLegsDTMFDetection=acAnalogLegsDTMFDetection, acAnalogFxoFarEndDisconnectToneRowStatus=acAnalogFxoFarEndDisconnectToneRowStatus, acAnalogMiscFlashHookPeriod=acAnalogMiscFlashHookPeriod, acAnalogFxoLineTestPolarityStatus=acAnalogFxoLineTestPolarityStatus, acAnalogStatusMiscFxsOrFxo=acAnalogStatusMiscFxsOrFxo, PYSNMP_MODULE_ID=acAnalog, acAnalogCommonAction=acAnalogCommonAction, acAnalogFxoLineTestLineVoltage=acAnalogFxoLineTestLineVoltage, acAnalogFxsBellcoreCallerIDTypeOneSubStandard=acAnalogFxsBellcoreCallerIDTypeOneSubStandard, acAnalogFxoDCRemover=acAnalogFxoDCRemover, acAnalogCommonChannelEntry=acAnalogCommonChannelEntry)
def cheese_and_crackers(cheese_count, boxes_of_crackers): print(f"You have {cheese_count} cheeses") print(f"You have {boxes_of_crackers} boxes of crackers") print("That's a lot") print("Get a blanket\n") print("We can just give the function numbers directly") cheese_and_crackers(20, 30) print("Or, we can use variables from our script") amount_of_cheese = 10 amount_of_crackers = 50 cheese_and_crackers(amount_of_cheese, amount_of_crackers) print("We can even do math inside too: ") cheese_and_crackers(10 + 20, 5 + 6) print("And we can combine the two, variables and math: ") cheese_and_crackers(amount_of_cheese + 100, amount_of_crackers + 1000)
def cheese_and_crackers(cheese_count, boxes_of_crackers): print(f'You have {cheese_count} cheeses') print(f'You have {boxes_of_crackers} boxes of crackers') print("That's a lot") print('Get a blanket\n') print('We can just give the function numbers directly') cheese_and_crackers(20, 30) print('Or, we can use variables from our script') amount_of_cheese = 10 amount_of_crackers = 50 cheese_and_crackers(amount_of_cheese, amount_of_crackers) print('We can even do math inside too: ') cheese_and_crackers(10 + 20, 5 + 6) print('And we can combine the two, variables and math: ') cheese_and_crackers(amount_of_cheese + 100, amount_of_crackers + 1000)
class Solution: def rob(self, nums): n = len(nums) if n == 1: return nums[0] dpa = [0] * (n + 1) dpb = [0] * (n + 1) for i in range(2, n + 1): dpa[i] = max(dpa[i - 1], dpa[i - 2] + nums[i - 2]) dpb[i] = max(dpb[i - 1], dpb[i - 2] + nums[i - 1]) return max(dpa[n], dpb[n]) if __name__ == "__main__": solution = Solution() print(solution.rob([2,3,2])) print(solution.rob([1,2,3,1]))
class Solution: def rob(self, nums): n = len(nums) if n == 1: return nums[0] dpa = [0] * (n + 1) dpb = [0] * (n + 1) for i in range(2, n + 1): dpa[i] = max(dpa[i - 1], dpa[i - 2] + nums[i - 2]) dpb[i] = max(dpb[i - 1], dpb[i - 2] + nums[i - 1]) return max(dpa[n], dpb[n]) if __name__ == '__main__': solution = solution() print(solution.rob([2, 3, 2])) print(solution.rob([1, 2, 3, 1]))
# !/usr/bin/env python3 # -*- coding:utf-8 -*- __author__ = 'Zhiquan Wang' __date__ = '2018/8/15 10:44' class MessageType(object): login_request = u'LoginRequest' login_reply = u'LoginReply' attack_request = u'AttackRequest' attack_reply = u'AttackReply' game_info = u'GameInfo' class JsonAttribute(object): msg_type = u'msg_type' # LoginRequest lr_usr_name = u'usr_name' # LoginReply lre_login_id = u'login_id' # AttackRequest ar_player_id = u'player_id' ar_target_x = u'target_x' ar_target_y = u'target_y' # AttackReply ap_is_suc = u'is_suc' # GameInfo gi_map_info = u'map_info' gi_round = u'round' gi_per_pos = u'per_pos' # pfRule pfr_max_round = u'max_round' pfr_map_height = u'map_height' pfr_map_width = u'map_width' pfr_player_num = u'player_num' pfr_empty_grid_time = u'empty_grid_time' pfr_player_grid_time = u'player_grid_time' # pfMap pfm_height = u'height' pfm_width = u'width' pfm_grid_map = u'grid_map' # pfGrid pfg_type = u'type' pfg_attribution = u'attribution' pfg_value = u'value'
__author__ = 'Zhiquan Wang' __date__ = '2018/8/15 10:44' class Messagetype(object): login_request = u'LoginRequest' login_reply = u'LoginReply' attack_request = u'AttackRequest' attack_reply = u'AttackReply' game_info = u'GameInfo' class Jsonattribute(object): msg_type = u'msg_type' lr_usr_name = u'usr_name' lre_login_id = u'login_id' ar_player_id = u'player_id' ar_target_x = u'target_x' ar_target_y = u'target_y' ap_is_suc = u'is_suc' gi_map_info = u'map_info' gi_round = u'round' gi_per_pos = u'per_pos' pfr_max_round = u'max_round' pfr_map_height = u'map_height' pfr_map_width = u'map_width' pfr_player_num = u'player_num' pfr_empty_grid_time = u'empty_grid_time' pfr_player_grid_time = u'player_grid_time' pfm_height = u'height' pfm_width = u'width' pfm_grid_map = u'grid_map' pfg_type = u'type' pfg_attribution = u'attribution' pfg_value = u'value'
#!/usr/bin/python3 # Because I decided to use the ThreadingMixIn in the HTTPServer # we will need to persist the data on disk... # DB_FILE = ':memory:' DB_FILE = 'db.sqlite3'
db_file = 'db.sqlite3'
class Solution: def zigzagLevelOrder(self, root: TreeNode) -> List[List[int]]: d = {} def dfs(node, level): if level not in d: d[level] = [] d[level].append(node.val) if node.left: dfs(node.left, level + 1) if node.right: dfs(node.right, level + 1) if root: dfs(root, 1) res = [] for i in d: if i % 2 == 0: d[i] = d[i][::-1] res.append(d[i]) return res
class Solution: def zigzag_level_order(self, root: TreeNode) -> List[List[int]]: d = {} def dfs(node, level): if level not in d: d[level] = [] d[level].append(node.val) if node.left: dfs(node.left, level + 1) if node.right: dfs(node.right, level + 1) if root: dfs(root, 1) res = [] for i in d: if i % 2 == 0: d[i] = d[i][::-1] res.append(d[i]) return res
# The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. # Find the sum of all the primes below two million. # Primes are hard....recycle code from problem 7... n = 2 limit = 1000 primes = [] prime = 0 primeSum = 0 while prime <= limit: for i in range(2,n): if (n % i) == 0: break else: primes.append(n) prime = n primeSum += n n += 1 print("THE LAST PRIME ADDED WAS: " + str(prime)) print("SO I'LL JUST GO AHEAD AND SUBTRACT THE LAST ENTRY...") print("THE SUM OF THE PRIMES IS: " + str(primeSum - primes[-1]))
n = 2 limit = 1000 primes = [] prime = 0 prime_sum = 0 while prime <= limit: for i in range(2, n): if n % i == 0: break else: primes.append(n) prime = n prime_sum += n n += 1 print('THE LAST PRIME ADDED WAS: ' + str(prime)) print("SO I'LL JUST GO AHEAD AND SUBTRACT THE LAST ENTRY...") print('THE SUM OF THE PRIMES IS: ' + str(primeSum - primes[-1]))
# String Literals hello_world = "Hello, World" hello_world_two = " Hello World " print(hello_world[1]) print(hello_world[0:5]) # Length of the string print(len(hello_world)) # Strip print(hello_world_two) print(hello_world_two.strip()) # Lower print(hello_world.lower()) # Upper print(hello_world.upper()) # Replace print(hello_world.replace("H", "J")) # Split print(hello_world.split(","))
hello_world = 'Hello, World' hello_world_two = ' Hello World ' print(hello_world[1]) print(hello_world[0:5]) print(len(hello_world)) print(hello_world_two) print(hello_world_two.strip()) print(hello_world.lower()) print(hello_world.upper()) print(hello_world.replace('H', 'J')) print(hello_world.split(','))
#Needs more comments #Node class class Node: def __init__(self, data, next=None): self.data = data self.next = next def getData(self): return self.data #Adjanceny List graph implementation class ALGraph: #initialize list def __init__(self): self.table = [] #add a vertex to the graph def insertVertex(self, data): temp = Node(data) self.table.append(temp) #search the graph for a certain vertex, returns the List index of the target def search(self, target): counter = 0 for i in self.table: if i.data == target: return counter counter += 1 return None #links def adjacentTo(self, vertex, neighbor): tableIndex = self.search(vertex) neighborNode = Node(neighbor) curr = self.table[tableIndex] while curr.next != None: curr = curr.next curr.next = neighborNode def pointUndirected(self, vertex, neighbor): self.adjacentTo(vertex, neighbor) self.adjacentTo(neighbor, vertex) def pointDirected(self, vertex, neighbor): self.adjacentTo(vertex, neighbor) def printGraph(self): for node in self.table: curr = node while(curr != None): print(curr.data, end="->") curr = curr.next print() test = ALGraph() test.insertVertex('A') test.insertVertex('B') test.insertVertex('C') test.insertVertex('D') test.insertVertex('E') test.pointUndirected('A', 'B') test.pointUndirected('A', 'C') test.pointUndirected('B', 'D') test.pointUndirected('D', 'E') test.pointUndirected('C', 'E') test.pointUndirected('B', 'E') test.printGraph()
class Node: def __init__(self, data, next=None): self.data = data self.next = next def get_data(self): return self.data class Algraph: def __init__(self): self.table = [] def insert_vertex(self, data): temp = node(data) self.table.append(temp) def search(self, target): counter = 0 for i in self.table: if i.data == target: return counter counter += 1 return None def adjacent_to(self, vertex, neighbor): table_index = self.search(vertex) neighbor_node = node(neighbor) curr = self.table[tableIndex] while curr.next != None: curr = curr.next curr.next = neighborNode def point_undirected(self, vertex, neighbor): self.adjacentTo(vertex, neighbor) self.adjacentTo(neighbor, vertex) def point_directed(self, vertex, neighbor): self.adjacentTo(vertex, neighbor) def print_graph(self): for node in self.table: curr = node while curr != None: print(curr.data, end='->') curr = curr.next print() test = al_graph() test.insertVertex('A') test.insertVertex('B') test.insertVertex('C') test.insertVertex('D') test.insertVertex('E') test.pointUndirected('A', 'B') test.pointUndirected('A', 'C') test.pointUndirected('B', 'D') test.pointUndirected('D', 'E') test.pointUndirected('C', 'E') test.pointUndirected('B', 'E') test.printGraph()
s = float(input('Digite o salario do funcionario: R$ ')) if s>1250: print('Quem ganhava R${} passa a ganhar R${:.2f} agora.'.format(s,s+(s*10/100))) else: print('Quem ganhava R${} passa a ganhar R${:.2f} agora'.format(s,s+(s*15/100)))
s = float(input('Digite o salario do funcionario: R$ ')) if s > 1250: print('Quem ganhava R${} passa a ganhar R${:.2f} agora.'.format(s, s + s * 10 / 100)) else: print('Quem ganhava R${} passa a ganhar R${:.2f} agora'.format(s, s + s * 15 / 100))
# Data Type in Python is an attribute of data which tells the interpreter how the programmer intends to use the data # There are three numeric data types in Python: # Integers # Integers (e.g. 2, 4, 20) # - Boolean (e.g. False and True, acting like 0 and 1) # Floating Point Numbers (e.g. 3.0, 5.2) # Complex Numbers (e.g. 1+j, 2+9j) # Integers (represents a whole number, positive or negative, without decimals and have no value limit) positive_integer = 34 negative_integer = -3237937 big_integer = 62733287329879274032843048 print(positive_integer) print(negative_integer) print(big_integer) print("**********************************************************") # Boolean (represents the truth values False and True and is a subtype of the Integer type) myBooleanValue1 = True myBooleanValue2 = False print(myBooleanValue1) print(myBooleanValue2) print("**********************************************************") # Conversion of Boolean to String print(type(str(myBooleanValue1))) print(type(str(myBooleanValue2))) print("**********************************************************") # Floats (represents a number, positive or negative, containing one or more decimals) myFloatValue1 = 3.2 myFloatValue2 = -91.9 myFloatValue3 = float(3.4) # using the "float" function myScientificFloatValue1 = 35e3 # small "e" myScientificFloatValue2 = 2E8 # big "E" print(myFloatValue1) print(myFloatValue2) print(myFloatValue3) print(myScientificFloatValue1) print(myScientificFloatValue2) print("**********************************************************") # Complex Numbers myComplexValue1 = 3 + 9j myComplexValue2 = 2 - 3j print(myComplexValue1) print(myComplexValue2) print("**********************************************************")
positive_integer = 34 negative_integer = -3237937 big_integer = 62733287329879274032843048 print(positive_integer) print(negative_integer) print(big_integer) print('**********************************************************') my_boolean_value1 = True my_boolean_value2 = False print(myBooleanValue1) print(myBooleanValue2) print('**********************************************************') print(type(str(myBooleanValue1))) print(type(str(myBooleanValue2))) print('**********************************************************') my_float_value1 = 3.2 my_float_value2 = -91.9 my_float_value3 = float(3.4) my_scientific_float_value1 = 35000.0 my_scientific_float_value2 = 200000000.0 print(myFloatValue1) print(myFloatValue2) print(myFloatValue3) print(myScientificFloatValue1) print(myScientificFloatValue2) print('**********************************************************') my_complex_value1 = 3 + 9j my_complex_value2 = 2 - 3j print(myComplexValue1) print(myComplexValue2) print('**********************************************************')
class Quadrilatero: def __init__(self, lado1, lado2): self.__lado1 = lado1 self.__lado2 = lado2 def retangulo(): pass def retangulo(): pass def retangulo(): pass
class Quadrilatero: def __init__(self, lado1, lado2): self.__lado1 = lado1 self.__lado2 = lado2 def retangulo(): pass def retangulo(): pass def retangulo(): pass
#creating a node class Node: def __init__(self,data): self.value=data self.left=None self.right=None #function to check if the tree is a mirror image of another tree def isMirror(troot1, troot2): if troot1 == None and troot2 == None: return True; if (troot1 != None and troot2 != None): if troot1.value == troot2.value: return (isMirror(troot1.left, troot2.right)and isMirror(troot1.right, troot2.left)) return False; #main root = Node(5) root.left = Node(3) root.right = Node(3) root.left.left = Node(2) root.left.right = Node(7) root.right.left = Node(7) root.right.right = Node(2) if isMirror(root,root) == True: #passing the same roots print("Yes!! It is a Symmetric Tree") else: print("Not a Symmetric Tree")
class Node: def __init__(self, data): self.value = data self.left = None self.right = None def is_mirror(troot1, troot2): if troot1 == None and troot2 == None: return True if troot1 != None and troot2 != None: if troot1.value == troot2.value: return is_mirror(troot1.left, troot2.right) and is_mirror(troot1.right, troot2.left) return False root = node(5) root.left = node(3) root.right = node(3) root.left.left = node(2) root.left.right = node(7) root.right.left = node(7) root.right.right = node(2) if is_mirror(root, root) == True: print('Yes!! It is a Symmetric Tree') else: print('Not a Symmetric Tree')
# pylint: skip-file # pylint: disable=too-many-instance-attributes class GcloudResourceBuilder(object): ''' Class to wrap the gcloud deployment manager ''' # pylint allows 5 # pylint: disable=too-many-arguments def __init__(self, clusterid, project, region, zone, verbose=False): ''' Constructor for gcloud resource ''' #super(GcloudDeploymentManager, self).__init__() self.clusterid = clusterid self.project = project self.region = region self.zone = zone self.verbose = verbose def build_instance_resources(self, names, mtype, metadata, tags, disk_info, network_info, provisioning=False, service_accounts=None, ): '''build instance resources and return them in a list''' results = [] for _name in names: disks = [Disk(_name + '-' + disk['name'], self.project, self.zone, disk['size'], disk.get('disk_type', 'pd-standard'), boot=disk.get('boot', False), device_name=disk['device_name'], image=disk.get('image', None), labels=disk.get('labels', None), label_finger_print=disk.get('label_finger_print', None), index=disk.get('index', None)) for disk in disk_info] inst_disks = [] for disk in disks: inst_disks.append(disk.get_supplement_disk()) results.append(disk) nics = [] for nic in network_info: _nic = NetworkInterface(_name + 'nic', self.project, self.zone, nic['network'], nic['subnetwork'], nic.get('access_config_name', None), nic.get('access_config_type', None)) nics.append(_nic.get_instance_interface()) if provisioning: metadata['new_provision'] = 'True' inst = VMInstance(_name, self.project, self.zone, mtype, metadata, tags, inst_disks, nics, service_accounts) results.append(inst) return results def build_health_check(self, rname, desc, interval, h_thres, port, timeout, unh_thres, req_path): '''create health check resource''' return HealthCheck(rname, self.project, self.zone, desc, interval, h_thres, port, timeout, unh_thres, req_path) def build_subnetwork(self, rname, ip_cidr_range, region, network): '''build subnetwork and return it''' return Subnetwork(rname, self.project, self.zone, ip_cidr_range, region, network) def build_target_pool(self, rname, desc, region, checks, instances, affin=None): '''build target pool resource and return it''' return TargetPool(rname, self.project, self.zone, desc, region, checks, instances, affin) def build_network(self, rname, desc, auto_create=False): '''build network resource and return it''' return Network(rname, self.project, self.zone, desc, auto_create) def build_address(self, rname, desc, region): '''build address resource and return it''' return Address(rname, self.project, self.zone, desc, region) def build_forwarding_rules(self, rules): '''build forwarding rule resources and return them''' resources = [] for rule in rules: resources.append(ForwardingRule(rule['name'], self.project, self.zone, rule['description'], rule['IPAddress'], rule['IPProtocol'], rule['region'], rule['portRange'], rule['target'])) return resources def build_firewall_rules(self, rules): '''build firewall resources and return them''' resources = [] for rule in rules: resources.append(FirewallRule(rule['name'], self.project, self.zone, rule['description'], rule['network'], rule['allowed'], rule.get('targetTags', []), rule['sourceRanges'])) return resources def build_disks(self, disks): '''build disk resources and return it''' results = [] for disk in disks: results.append(Disk(disk['name'], self.project, self.zone, disk['size'], disk.get('disk_type', 'pd-standard'), boot=disk.get('boot', False), device_name=disk['device_name'], image=disk.get('image', None), labels=disk.get('labels', None), label_finger_print=disk.get('label_finger_print', None) )) return results def build_pv_disks(self, disk_size_info): '''build disk resources for pvs and return them disk_size_count: - size: 1 count: 5 - size: 5 - count: 10 ''' results = [] for size_count in disk_size_info: size = size_count['size'] count = size_count['count'] d_type = size_count.get('disk_type', 'pd-standard') for idx in range(1, int(count) + 1): results.append(Disk('pv-%s-%dg-%d' % (self.project, size, idx), self.project, self.zone, size, disk_type=d_type, boot=False, device_name='pv_%dg%d' % (size, idx), image=None, labels={'purpose': 'customer-persistent-volume', 'clusterid': self.project, 'snaphost': 'daily', }, )) return results def build_storage_buckets(self, bucket_names): ''' create the resource for storage buckets''' results = [] for b_name in bucket_names: results.append(Bucket(b_name, self.project, self.zone)) return results
class Gcloudresourcebuilder(object): """ Class to wrap the gcloud deployment manager """ def __init__(self, clusterid, project, region, zone, verbose=False): """ Constructor for gcloud resource """ self.clusterid = clusterid self.project = project self.region = region self.zone = zone self.verbose = verbose def build_instance_resources(self, names, mtype, metadata, tags, disk_info, network_info, provisioning=False, service_accounts=None): """build instance resources and return them in a list""" results = [] for _name in names: disks = [disk(_name + '-' + disk['name'], self.project, self.zone, disk['size'], disk.get('disk_type', 'pd-standard'), boot=disk.get('boot', False), device_name=disk['device_name'], image=disk.get('image', None), labels=disk.get('labels', None), label_finger_print=disk.get('label_finger_print', None), index=disk.get('index', None)) for disk in disk_info] inst_disks = [] for disk in disks: inst_disks.append(disk.get_supplement_disk()) results.append(disk) nics = [] for nic in network_info: _nic = network_interface(_name + 'nic', self.project, self.zone, nic['network'], nic['subnetwork'], nic.get('access_config_name', None), nic.get('access_config_type', None)) nics.append(_nic.get_instance_interface()) if provisioning: metadata['new_provision'] = 'True' inst = vm_instance(_name, self.project, self.zone, mtype, metadata, tags, inst_disks, nics, service_accounts) results.append(inst) return results def build_health_check(self, rname, desc, interval, h_thres, port, timeout, unh_thres, req_path): """create health check resource""" return health_check(rname, self.project, self.zone, desc, interval, h_thres, port, timeout, unh_thres, req_path) def build_subnetwork(self, rname, ip_cidr_range, region, network): """build subnetwork and return it""" return subnetwork(rname, self.project, self.zone, ip_cidr_range, region, network) def build_target_pool(self, rname, desc, region, checks, instances, affin=None): """build target pool resource and return it""" return target_pool(rname, self.project, self.zone, desc, region, checks, instances, affin) def build_network(self, rname, desc, auto_create=False): """build network resource and return it""" return network(rname, self.project, self.zone, desc, auto_create) def build_address(self, rname, desc, region): """build address resource and return it""" return address(rname, self.project, self.zone, desc, region) def build_forwarding_rules(self, rules): """build forwarding rule resources and return them""" resources = [] for rule in rules: resources.append(forwarding_rule(rule['name'], self.project, self.zone, rule['description'], rule['IPAddress'], rule['IPProtocol'], rule['region'], rule['portRange'], rule['target'])) return resources def build_firewall_rules(self, rules): """build firewall resources and return them""" resources = [] for rule in rules: resources.append(firewall_rule(rule['name'], self.project, self.zone, rule['description'], rule['network'], rule['allowed'], rule.get('targetTags', []), rule['sourceRanges'])) return resources def build_disks(self, disks): """build disk resources and return it""" results = [] for disk in disks: results.append(disk(disk['name'], self.project, self.zone, disk['size'], disk.get('disk_type', 'pd-standard'), boot=disk.get('boot', False), device_name=disk['device_name'], image=disk.get('image', None), labels=disk.get('labels', None), label_finger_print=disk.get('label_finger_print', None))) return results def build_pv_disks(self, disk_size_info): """build disk resources for pvs and return them disk_size_count: - size: 1 count: 5 - size: 5 - count: 10 """ results = [] for size_count in disk_size_info: size = size_count['size'] count = size_count['count'] d_type = size_count.get('disk_type', 'pd-standard') for idx in range(1, int(count) + 1): results.append(disk('pv-%s-%dg-%d' % (self.project, size, idx), self.project, self.zone, size, disk_type=d_type, boot=False, device_name='pv_%dg%d' % (size, idx), image=None, labels={'purpose': 'customer-persistent-volume', 'clusterid': self.project, 'snaphost': 'daily'})) return results def build_storage_buckets(self, bucket_names): """ create the resource for storage buckets""" results = [] for b_name in bucket_names: results.append(bucket(b_name, self.project, self.zone)) return results
# Outputs strings with inverted commas # Author: Isabella Doyle message = 'John said "hi", I said "bye.' print(message)
message = 'John said "hi", I said "bye.' print(message)
# 000758_02_02_ifStatements.py print("000758_02_02_ifStatements:01") if 10 > 5: print("10 greater than 5") print("Program ended") print("") print("000758_02_02_ifStatements:02:nested") num = 12 if num > 5: print("Bigger than 5") if num <= 47: print("Between 5 and 47") print("") print("000758_02_02_ifStatements:q.03:nested") num = 7 if num > 3: print("3") if num < 5: print("5") if num == 7: print("7") print("") print("000758_02_02_ifStatements:q.03:nested:reorganized ") num = 7 if num > 3: print("3") if num < 5: print("5") if num == 7: print("7") print("") num = 7 if num > 3: print("3") if num < 5: print("5") if num == 7: print("7")
print('000758_02_02_ifStatements:01') if 10 > 5: print('10 greater than 5') print('Program ended') print('') print('000758_02_02_ifStatements:02:nested') num = 12 if num > 5: print('Bigger than 5') if num <= 47: print('Between 5 and 47') print('') print('000758_02_02_ifStatements:q.03:nested') num = 7 if num > 3: print('3') if num < 5: print('5') if num == 7: print('7') print('') print('000758_02_02_ifStatements:q.03:nested:reorganized ') num = 7 if num > 3: print('3') if num < 5: print('5') if num == 7: print('7') print('') num = 7 if num > 3: print('3') if num < 5: print('5') if num == 7: print('7')
PREFIX = "/api" CORS_POLICY = {"origins": ("*",), "max_age": 3600} class Base: def __init__(self, request, context=None): self.request = request @property def _index(self): return self.request.registry.settings["pyfapi.es.index"] def _result(self, result): return {"result": result, "error": ""} def _error(self, error): return {"result": {}, "error": error}
prefix = '/api' cors_policy = {'origins': ('*',), 'max_age': 3600} class Base: def __init__(self, request, context=None): self.request = request @property def _index(self): return self.request.registry.settings['pyfapi.es.index'] def _result(self, result): return {'result': result, 'error': ''} def _error(self, error): return {'result': {}, 'error': error}
# Exer 8 # # Creating a list of nice places to visit places_to_visit = ['island', 'australia', 'cananda', 'thailand'] print(places_to_visit) # putting the list into alphabetic order print(sorted(places_to_visit)) # putting the list back to its original order print(places_to_visit) # putting the list backwards places_to_visit.reverse() print(places_to_visit) # putting the list into alphabetic order permanently places_to_visit.sort() # printing list length print(len(places_to_visit))
places_to_visit = ['island', 'australia', 'cananda', 'thailand'] print(places_to_visit) print(sorted(places_to_visit)) print(places_to_visit) places_to_visit.reverse() print(places_to_visit) places_to_visit.sort() print(len(places_to_visit))
def print_matrix(matrix): for row in matrix: for elem in row: print(elem, end='\t') print() print(__name__) if __name__ == "__main__": print("Something to run as stand alone script")
def print_matrix(matrix): for row in matrix: for elem in row: print(elem, end='\t') print() print(__name__) if __name__ == '__main__': print('Something to run as stand alone script')
#!/usr/bin/env python3 # Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. __all__ = [ 'datastructures', 'exception', 'funcs', 'info', 'kprobe', 'prog', 'socket_filter', 'tc', 'util', ]
__all__ = ['datastructures', 'exception', 'funcs', 'info', 'kprobe', 'prog', 'socket_filter', 'tc', 'util']
l=[] print(l) l.append(10) print(l) l.append(11) print(l)
l = [] print(l) l.append(10) print(l) l.append(11) print(l)
# coding = utf-8 # @time : 2019/6/30 6:41 PM # @author : alchemistlee # @fileName: filter_long_tk.py # @abstract: if __name__ == '__main__': input_zh = '/root/workspace/translate_data/my_corpus_v6.zh-cut.processed6-bpe-v6-2-.test' input_en = '/root/workspace/translate_data/my_corpus_v6.en.tok.processed6-bpe-v6-2-.test' out_zh = '/root/workspace/translate_data/my_corpus_v6.zh-cut.processed6-bpe-v6-2-filter3.test' out_en = '/root/workspace/translate_data/my_corpus_v6.en.tok.processed6-bpe-v6-2-filter3.test' with open(input_zh,'r') as i_zh, open(input_en,'r') as i_en, open(out_zh,'w') as o_zh, open(out_en, 'w') as o_en: for row_zh, row_en in zip(i_zh, i_en): zh_toks = row_zh.split() if len(zh_toks) > 100: continue o_zh.write(row_zh.strip()+'\n') o_en.write(row_en.strip()+'\n')
if __name__ == '__main__': input_zh = '/root/workspace/translate_data/my_corpus_v6.zh-cut.processed6-bpe-v6-2-.test' input_en = '/root/workspace/translate_data/my_corpus_v6.en.tok.processed6-bpe-v6-2-.test' out_zh = '/root/workspace/translate_data/my_corpus_v6.zh-cut.processed6-bpe-v6-2-filter3.test' out_en = '/root/workspace/translate_data/my_corpus_v6.en.tok.processed6-bpe-v6-2-filter3.test' with open(input_zh, 'r') as i_zh, open(input_en, 'r') as i_en, open(out_zh, 'w') as o_zh, open(out_en, 'w') as o_en: for (row_zh, row_en) in zip(i_zh, i_en): zh_toks = row_zh.split() if len(zh_toks) > 100: continue o_zh.write(row_zh.strip() + '\n') o_en.write(row_en.strip() + '\n')
# # PySNMP MIB module Fore-frs-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Fore-frs-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:04:09 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) # OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint, ValueSizeConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion", "SingleValueConstraint", "ValueSizeConstraint", "ValueRangeConstraint") frameInternetworking, = mibBuilder.importSymbols("Fore-Common-MIB", "frameInternetworking") InterfaceIndex, = mibBuilder.importSymbols("IF-MIB", "InterfaceIndex") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") MibScalar, MibTable, MibTableRow, MibTableColumn, iso, Counter32, Bits, IpAddress, Counter64, Gauge32, Integer32, ObjectIdentity, Unsigned32, NotificationType, MibIdentifier, TimeTicks, ModuleIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "iso", "Counter32", "Bits", "IpAddress", "Counter64", "Gauge32", "Integer32", "ObjectIdentity", "Unsigned32", "NotificationType", "MibIdentifier", "TimeTicks", "ModuleIdentity") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") foreFrameRelayModule = ModuleIdentity((1, 3, 6, 1, 4, 1, 326, 1, 16, 1)) if mibBuilder.loadTexts: foreFrameRelayModule.setLastUpdated('9705011044-0400') if mibBuilder.loadTexts: foreFrameRelayModule.setOrganization('FORE') frextDlcmiTable = MibTable((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1), ) if mibBuilder.loadTexts: frextDlcmiTable.setStatus('current') frextDlcmiEntry = MibTableRow((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1), ).setIndexNames((0, "Fore-frs-MIB", "frextDlcmiServiceIfIndex")) if mibBuilder.loadTexts: frextDlcmiEntry.setStatus('current') frextDlcmiServiceIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 1), InterfaceIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextDlcmiServiceIfIndex.setStatus('current') frextDlcmiProfileLmiIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frextDlcmiProfileLmiIndex.setStatus('current') frextDlcmiProfileServiceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 3), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frextDlcmiProfileServiceIndex.setStatus('current') frextDlcmiStatsMonitor = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: frextDlcmiStatsMonitor.setStatus('current') frextDlcmiStatsEnabledTimeStamp = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 5), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextDlcmiStatsEnabledTimeStamp.setStatus('current') frextDlcmiLmiDlci = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextDlcmiLmiDlci.setStatus('current') frextDlcmiLmiFlowControl = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: frextDlcmiLmiFlowControl.setStatus('current') frextDlcmiRAControl = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: frextDlcmiRAControl.setStatus('current') frextDlcmiLmiBandwidthControl = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: frextDlcmiLmiBandwidthControl.setStatus('current') frextDlcmiRxAbortedFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextDlcmiRxAbortedFrames.setStatus('current') frextDlcmiRcvCrcErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextDlcmiRcvCrcErrors.setStatus('current') frextDlcmiRcvShortFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 12), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextDlcmiRcvShortFrames.setStatus('current') frextDlcmiRcvLongFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 13), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextDlcmiRcvLongFrames.setStatus('current') frextDlcmiRcvInvalidDLCI = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 14), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextDlcmiRcvInvalidDLCI.setStatus('current') frextDlcmiRcvUnknownErrs = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextDlcmiRcvUnknownErrs.setStatus('current') frextDlcmiLmiTxStatusResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextDlcmiLmiTxStatusResponses.setStatus('current') frextDlcmiLmiTxFullStatusResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextDlcmiLmiTxFullStatusResponses.setStatus('current') frextDlcmiLmiTxStatusEnquiries = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 18), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextDlcmiLmiTxStatusEnquiries.setStatus('current') frextDlcmiLmiTxFullStatusEnquiries = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 19), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextDlcmiLmiTxFullStatusEnquiries.setStatus('current') frextDlcmiLmiRxStatusResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 20), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextDlcmiLmiRxStatusResponses.setStatus('current') frextDlcmiLmiRxFullStatusResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 21), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextDlcmiLmiRxFullStatusResponses.setStatus('current') frextDlcmiLmiRxStatusEnquiries = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 22), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextDlcmiLmiRxStatusEnquiries.setStatus('current') frextDlcmiLmiRxFullStatusEnquiries = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 23), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextDlcmiLmiRxFullStatusEnquiries.setStatus('current') frextDlcmiLmiUnknownMessagesRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 24), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextDlcmiLmiUnknownMessagesRcvd.setStatus('current') frextDlcmiLmiStatusLostSequences = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 25), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextDlcmiLmiStatusLostSequences.setStatus('current') frextDlcmiLmiStatusEnqLostSequences = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 26), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextDlcmiLmiStatusEnqLostSequences.setStatus('current') frextDlcmiLmiMissingStatEnquiries = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 27), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextDlcmiLmiMissingStatEnquiries.setStatus('current') frextDlcmiLmiUnexpectedPVCStatMsg = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 28), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextDlcmiLmiUnexpectedPVCStatMsg.setStatus('current') frextDlcmiLmiUnexpectedDLCI = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 29), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextDlcmiLmiUnexpectedDLCI.setStatus('current') frextDlcmiLmiStatEnqRatePlus = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 30), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextDlcmiLmiStatEnqRatePlus.setStatus('current') frextDlcmiLmiInvInfoFrame = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 31), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextDlcmiLmiInvInfoFrame.setStatus('current') frextDlcmiLmiInvFrameHdr = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 32), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextDlcmiLmiInvFrameHdr.setStatus('current') frextDlcmiLmiNoIERepType = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 33), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextDlcmiLmiNoIERepType.setStatus('current') frextDlcmiLmiNoIEKeepAlive = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 34), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextDlcmiLmiNoIEKeepAlive.setStatus('current') frextDlcmiLmiMissingResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 35), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextDlcmiLmiMissingResponses.setStatus('current') frextDlcmiLmiUnsuppIERcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 36), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextDlcmiLmiUnsuppIERcvd.setStatus('current') frextDlcmiPvccs = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 37), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextDlcmiPvccs.setStatus('current') frextCircuitTable = MibTable((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2), ) if mibBuilder.loadTexts: frextCircuitTable.setStatus('current') frextCircuitEntry = MibTableRow((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1), ).setIndexNames((0, "Fore-frs-MIB", "frextCircuitServiceIfIndex"), (0, "Fore-frs-MIB", "frextCircuitDlci")) if mibBuilder.loadTexts: frextCircuitEntry.setStatus('current') frextCircuitServiceIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 1), InterfaceIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextCircuitServiceIfIndex.setStatus('current') frextCircuitDlci = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextCircuitDlci.setStatus('current') frextCircuitName = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frextCircuitName.setStatus('current') frextCircuitProfileFrRateIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 4), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frextCircuitProfileFrRateIndex.setStatus('current') frextCircuitREMonitor = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("none", 1), ("standard", 2))).clone('none')).setMaxAccess("readwrite") if mibBuilder.loadTexts: frextCircuitREMonitor.setStatus('current') frextCircuitRateFallbacks = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextCircuitRateFallbacks.setStatus('current') frextCircuitRateFallforwards = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextCircuitRateFallforwards.setStatus('current') frextCircuitEgFramesDroppedQueueFull = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextCircuitEgFramesDroppedQueueFull.setStatus('current') frextCircuitNormalSentFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextCircuitNormalSentFrames.setStatus('current') frextCircuitNormalSentOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextCircuitNormalSentOctets.setStatus('current') frextCircuitExcessSentOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextCircuitExcessSentOctets.setStatus('current') frextCircuitHeldBuffers = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 12), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextCircuitHeldBuffers.setStatus('current') frextCircuitOctetsOnQueue = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 13), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextCircuitOctetsOnQueue.setStatus('current') frextCircuitBuffersOnQueue = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 14), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextCircuitBuffersOnQueue.setStatus('current') frextCircuitRxMonNormalFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextCircuitRxMonNormalFrames.setStatus('current') frextCircuitRxMonNormalOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextCircuitRxMonNormalOctets.setStatus('current') frextCircuitRxMonExcessOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextCircuitRxMonExcessOctets.setStatus('current') frextCircuitRxMonDroppedOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 18), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextCircuitRxMonDroppedOctets.setStatus('current') frextCircuitRxMonDroppedDEFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 19), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextCircuitRxMonDroppedDEFrames.setStatus('current') frextCircuitRxMonDroppedDEOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 20), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextCircuitRxMonDroppedDEOctets.setStatus('current') frextCircuitRxMonDEOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 21), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextCircuitRxMonDEOctets.setStatus('current') frextCircuitRxMonSetDEFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 22), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextCircuitRxMonSetDEFrames.setStatus('current') frextCircuitRxMonSetDEOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 23), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextCircuitRxMonSetDEOctets.setStatus('current') frextCircuitRecvdBECNS = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 24), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextCircuitRecvdBECNS.setStatus('current') frextCircuitRecvdFECNS = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 25), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frextCircuitRecvdFECNS.setStatus('current') frsOamF5Table = MibTable((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 3), ) if mibBuilder.loadTexts: frsOamF5Table.setStatus('current') frsOamF5Entry = MibTableRow((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 3, 1), ).setIndexNames((0, "Fore-frs-MIB", "frsOamF5AtmIf"), (0, "Fore-frs-MIB", "frsOamF5AtmVpi"), (0, "Fore-frs-MIB", "frsOamF5AtmVci")) if mibBuilder.loadTexts: frsOamF5Entry.setStatus('current') frsOamF5AtmIf = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 3, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frsOamF5AtmIf.setStatus('current') frsOamF5AtmVpi = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 3, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frsOamF5AtmVpi.setStatus('current') frsOamF5AtmVci = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 3, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frsOamF5AtmVci.setStatus('current') frsOamF5AISRxCounter = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 3, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frsOamF5AISRxCounter.setStatus('current') frsOamF5AISTxCounter = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 3, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frsOamF5AISTxCounter.setStatus('current') frsOamF5RDIRxCounter = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 3, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frsOamF5RDIRxCounter.setStatus('current') frsOamF5RDITxCounter = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 3, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frsOamF5RDITxCounter.setStatus('current') mibBuilder.exportSymbols("Fore-frs-MIB", frextDlcmiLmiUnsuppIERcvd=frextDlcmiLmiUnsuppIERcvd, frextCircuitRxMonNormalOctets=frextCircuitRxMonNormalOctets, frsOamF5AtmIf=frsOamF5AtmIf, frextCircuitNormalSentFrames=frextCircuitNormalSentFrames, frextDlcmiLmiStatEnqRatePlus=frextDlcmiLmiStatEnqRatePlus, frextCircuitRateFallforwards=frextCircuitRateFallforwards, frextCircuitOctetsOnQueue=frextCircuitOctetsOnQueue, frextCircuitHeldBuffers=frextCircuitHeldBuffers, frextDlcmiLmiMissingResponses=frextDlcmiLmiMissingResponses, frextDlcmiLmiUnexpectedDLCI=frextDlcmiLmiUnexpectedDLCI, frextDlcmiLmiInvInfoFrame=frextDlcmiLmiInvInfoFrame, frextDlcmiLmiTxFullStatusResponses=frextDlcmiLmiTxFullStatusResponses, frsOamF5AISRxCounter=frsOamF5AISRxCounter, frextCircuitRxMonDroppedOctets=frextCircuitRxMonDroppedOctets, frextCircuitEntry=frextCircuitEntry, frextDlcmiProfileServiceIndex=frextDlcmiProfileServiceIndex, frextDlcmiLmiNoIERepType=frextDlcmiLmiNoIERepType, frextDlcmiServiceIfIndex=frextDlcmiServiceIfIndex, frextCircuitRxMonExcessOctets=frextCircuitRxMonExcessOctets, frextCircuitREMonitor=frextCircuitREMonitor, frextDlcmiEntry=frextDlcmiEntry, frextDlcmiRcvShortFrames=frextDlcmiRcvShortFrames, frsOamF5Table=frsOamF5Table, frsOamF5Entry=frsOamF5Entry, frextCircuitDlci=frextCircuitDlci, frextDlcmiRcvUnknownErrs=frextDlcmiRcvUnknownErrs, frextDlcmiPvccs=frextDlcmiPvccs, PYSNMP_MODULE_ID=foreFrameRelayModule, frextDlcmiRcvInvalidDLCI=frextDlcmiRcvInvalidDLCI, frsOamF5RDITxCounter=frsOamF5RDITxCounter, frextCircuitRecvdFECNS=frextCircuitRecvdFECNS, frextDlcmiLmiDlci=frextDlcmiLmiDlci, frextDlcmiLmiStatusEnqLostSequences=frextDlcmiLmiStatusEnqLostSequences, frsOamF5AtmVpi=frsOamF5AtmVpi, foreFrameRelayModule=foreFrameRelayModule, frextDlcmiRAControl=frextDlcmiRAControl, frextCircuitRxMonDroppedDEFrames=frextCircuitRxMonDroppedDEFrames, frextCircuitTable=frextCircuitTable, frextDlcmiLmiRxStatusResponses=frextDlcmiLmiRxStatusResponses, frsOamF5AtmVci=frsOamF5AtmVci, frextCircuitRxMonSetDEOctets=frextCircuitRxMonSetDEOctets, frextDlcmiLmiRxStatusEnquiries=frextDlcmiLmiRxStatusEnquiries, frsOamF5AISTxCounter=frsOamF5AISTxCounter, frsOamF5RDIRxCounter=frsOamF5RDIRxCounter, frextCircuitRateFallbacks=frextCircuitRateFallbacks, frextDlcmiTable=frextDlcmiTable, frextCircuitRecvdBECNS=frextCircuitRecvdBECNS, frextDlcmiLmiRxFullStatusEnquiries=frextDlcmiLmiRxFullStatusEnquiries, frextCircuitNormalSentOctets=frextCircuitNormalSentOctets, frextCircuitRxMonDroppedDEOctets=frextCircuitRxMonDroppedDEOctets, frextDlcmiLmiStatusLostSequences=frextDlcmiLmiStatusLostSequences, frextDlcmiLmiInvFrameHdr=frextDlcmiLmiInvFrameHdr, frextDlcmiLmiMissingStatEnquiries=frextDlcmiLmiMissingStatEnquiries, frextDlcmiRxAbortedFrames=frextDlcmiRxAbortedFrames, frextDlcmiLmiTxFullStatusEnquiries=frextDlcmiLmiTxFullStatusEnquiries, frextDlcmiLmiBandwidthControl=frextDlcmiLmiBandwidthControl, frextDlcmiProfileLmiIndex=frextDlcmiProfileLmiIndex, frextCircuitName=frextCircuitName, frextCircuitRxMonDEOctets=frextCircuitRxMonDEOctets, frextCircuitEgFramesDroppedQueueFull=frextCircuitEgFramesDroppedQueueFull, frextDlcmiLmiRxFullStatusResponses=frextDlcmiLmiRxFullStatusResponses, frextDlcmiStatsEnabledTimeStamp=frextDlcmiStatsEnabledTimeStamp, frextDlcmiRcvCrcErrors=frextDlcmiRcvCrcErrors, frextDlcmiLmiTxStatusEnquiries=frextDlcmiLmiTxStatusEnquiries, frextDlcmiRcvLongFrames=frextDlcmiRcvLongFrames, frextDlcmiLmiNoIEKeepAlive=frextDlcmiLmiNoIEKeepAlive, frextCircuitBuffersOnQueue=frextCircuitBuffersOnQueue, frextDlcmiLmiTxStatusResponses=frextDlcmiLmiTxStatusResponses, frextDlcmiLmiFlowControl=frextDlcmiLmiFlowControl, frextCircuitExcessSentOctets=frextCircuitExcessSentOctets, frextCircuitRxMonSetDEFrames=frextCircuitRxMonSetDEFrames, frextCircuitProfileFrRateIndex=frextCircuitProfileFrRateIndex, frextCircuitRxMonNormalFrames=frextCircuitRxMonNormalFrames, frextDlcmiLmiUnexpectedPVCStatMsg=frextDlcmiLmiUnexpectedPVCStatMsg, frextCircuitServiceIfIndex=frextCircuitServiceIfIndex, frextDlcmiLmiUnknownMessagesRcvd=frextDlcmiLmiUnknownMessagesRcvd, frextDlcmiStatsMonitor=frextDlcmiStatsMonitor)
(octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_intersection, constraints_union, single_value_constraint, value_size_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ConstraintsUnion', 'SingleValueConstraint', 'ValueSizeConstraint', 'ValueRangeConstraint') (frame_internetworking,) = mibBuilder.importSymbols('Fore-Common-MIB', 'frameInternetworking') (interface_index,) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndex') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (mib_scalar, mib_table, mib_table_row, mib_table_column, iso, counter32, bits, ip_address, counter64, gauge32, integer32, object_identity, unsigned32, notification_type, mib_identifier, time_ticks, module_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'iso', 'Counter32', 'Bits', 'IpAddress', 'Counter64', 'Gauge32', 'Integer32', 'ObjectIdentity', 'Unsigned32', 'NotificationType', 'MibIdentifier', 'TimeTicks', 'ModuleIdentity') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') fore_frame_relay_module = module_identity((1, 3, 6, 1, 4, 1, 326, 1, 16, 1)) if mibBuilder.loadTexts: foreFrameRelayModule.setLastUpdated('9705011044-0400') if mibBuilder.loadTexts: foreFrameRelayModule.setOrganization('FORE') frext_dlcmi_table = mib_table((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1)) if mibBuilder.loadTexts: frextDlcmiTable.setStatus('current') frext_dlcmi_entry = mib_table_row((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1)).setIndexNames((0, 'Fore-frs-MIB', 'frextDlcmiServiceIfIndex')) if mibBuilder.loadTexts: frextDlcmiEntry.setStatus('current') frext_dlcmi_service_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 1), interface_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextDlcmiServiceIfIndex.setStatus('current') frext_dlcmi_profile_lmi_index = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 2), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frextDlcmiProfileLmiIndex.setStatus('current') frext_dlcmi_profile_service_index = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 3), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frextDlcmiProfileServiceIndex.setStatus('current') frext_dlcmi_stats_monitor = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 4), 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: frextDlcmiStatsMonitor.setStatus('current') frext_dlcmi_stats_enabled_time_stamp = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 5), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextDlcmiStatsEnabledTimeStamp.setStatus('current') frext_dlcmi_lmi_dlci = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextDlcmiLmiDlci.setStatus('current') frext_dlcmi_lmi_flow_control = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 7), 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: frextDlcmiLmiFlowControl.setStatus('current') frext_dlcmi_ra_control = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 8), 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: frextDlcmiRAControl.setStatus('current') frext_dlcmi_lmi_bandwidth_control = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 9), 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: frextDlcmiLmiBandwidthControl.setStatus('current') frext_dlcmi_rx_aborted_frames = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextDlcmiRxAbortedFrames.setStatus('current') frext_dlcmi_rcv_crc_errors = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 11), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextDlcmiRcvCrcErrors.setStatus('current') frext_dlcmi_rcv_short_frames = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 12), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextDlcmiRcvShortFrames.setStatus('current') frext_dlcmi_rcv_long_frames = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 13), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextDlcmiRcvLongFrames.setStatus('current') frext_dlcmi_rcv_invalid_dlci = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 14), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextDlcmiRcvInvalidDLCI.setStatus('current') frext_dlcmi_rcv_unknown_errs = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 15), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextDlcmiRcvUnknownErrs.setStatus('current') frext_dlcmi_lmi_tx_status_responses = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 16), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextDlcmiLmiTxStatusResponses.setStatus('current') frext_dlcmi_lmi_tx_full_status_responses = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 17), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextDlcmiLmiTxFullStatusResponses.setStatus('current') frext_dlcmi_lmi_tx_status_enquiries = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 18), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextDlcmiLmiTxStatusEnquiries.setStatus('current') frext_dlcmi_lmi_tx_full_status_enquiries = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 19), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextDlcmiLmiTxFullStatusEnquiries.setStatus('current') frext_dlcmi_lmi_rx_status_responses = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 20), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextDlcmiLmiRxStatusResponses.setStatus('current') frext_dlcmi_lmi_rx_full_status_responses = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 21), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextDlcmiLmiRxFullStatusResponses.setStatus('current') frext_dlcmi_lmi_rx_status_enquiries = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 22), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextDlcmiLmiRxStatusEnquiries.setStatus('current') frext_dlcmi_lmi_rx_full_status_enquiries = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 23), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextDlcmiLmiRxFullStatusEnquiries.setStatus('current') frext_dlcmi_lmi_unknown_messages_rcvd = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 24), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextDlcmiLmiUnknownMessagesRcvd.setStatus('current') frext_dlcmi_lmi_status_lost_sequences = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 25), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextDlcmiLmiStatusLostSequences.setStatus('current') frext_dlcmi_lmi_status_enq_lost_sequences = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 26), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextDlcmiLmiStatusEnqLostSequences.setStatus('current') frext_dlcmi_lmi_missing_stat_enquiries = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 27), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextDlcmiLmiMissingStatEnquiries.setStatus('current') frext_dlcmi_lmi_unexpected_pvc_stat_msg = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 28), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextDlcmiLmiUnexpectedPVCStatMsg.setStatus('current') frext_dlcmi_lmi_unexpected_dlci = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 29), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextDlcmiLmiUnexpectedDLCI.setStatus('current') frext_dlcmi_lmi_stat_enq_rate_plus = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 30), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextDlcmiLmiStatEnqRatePlus.setStatus('current') frext_dlcmi_lmi_inv_info_frame = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 31), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextDlcmiLmiInvInfoFrame.setStatus('current') frext_dlcmi_lmi_inv_frame_hdr = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 32), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextDlcmiLmiInvFrameHdr.setStatus('current') frext_dlcmi_lmi_no_ie_rep_type = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 33), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextDlcmiLmiNoIERepType.setStatus('current') frext_dlcmi_lmi_no_ie_keep_alive = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 34), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextDlcmiLmiNoIEKeepAlive.setStatus('current') frext_dlcmi_lmi_missing_responses = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 35), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextDlcmiLmiMissingResponses.setStatus('current') frext_dlcmi_lmi_unsupp_ie_rcvd = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 36), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextDlcmiLmiUnsuppIERcvd.setStatus('current') frext_dlcmi_pvccs = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 37), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextDlcmiPvccs.setStatus('current') frext_circuit_table = mib_table((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2)) if mibBuilder.loadTexts: frextCircuitTable.setStatus('current') frext_circuit_entry = mib_table_row((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1)).setIndexNames((0, 'Fore-frs-MIB', 'frextCircuitServiceIfIndex'), (0, 'Fore-frs-MIB', 'frextCircuitDlci')) if mibBuilder.loadTexts: frextCircuitEntry.setStatus('current') frext_circuit_service_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 1), interface_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextCircuitServiceIfIndex.setStatus('current') frext_circuit_dlci = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextCircuitDlci.setStatus('current') frext_circuit_name = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 3), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frextCircuitName.setStatus('current') frext_circuit_profile_fr_rate_index = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 4), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frextCircuitProfileFrRateIndex.setStatus('current') frext_circuit_re_monitor = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('none', 1), ('standard', 2))).clone('none')).setMaxAccess('readwrite') if mibBuilder.loadTexts: frextCircuitREMonitor.setStatus('current') frext_circuit_rate_fallbacks = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextCircuitRateFallbacks.setStatus('current') frext_circuit_rate_fallforwards = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextCircuitRateFallforwards.setStatus('current') frext_circuit_eg_frames_dropped_queue_full = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextCircuitEgFramesDroppedQueueFull.setStatus('current') frext_circuit_normal_sent_frames = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextCircuitNormalSentFrames.setStatus('current') frext_circuit_normal_sent_octets = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextCircuitNormalSentOctets.setStatus('current') frext_circuit_excess_sent_octets = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 11), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextCircuitExcessSentOctets.setStatus('current') frext_circuit_held_buffers = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 12), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextCircuitHeldBuffers.setStatus('current') frext_circuit_octets_on_queue = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 13), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextCircuitOctetsOnQueue.setStatus('current') frext_circuit_buffers_on_queue = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 14), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextCircuitBuffersOnQueue.setStatus('current') frext_circuit_rx_mon_normal_frames = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 15), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextCircuitRxMonNormalFrames.setStatus('current') frext_circuit_rx_mon_normal_octets = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 16), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextCircuitRxMonNormalOctets.setStatus('current') frext_circuit_rx_mon_excess_octets = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 17), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextCircuitRxMonExcessOctets.setStatus('current') frext_circuit_rx_mon_dropped_octets = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 18), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextCircuitRxMonDroppedOctets.setStatus('current') frext_circuit_rx_mon_dropped_de_frames = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 19), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextCircuitRxMonDroppedDEFrames.setStatus('current') frext_circuit_rx_mon_dropped_de_octets = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 20), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextCircuitRxMonDroppedDEOctets.setStatus('current') frext_circuit_rx_mon_de_octets = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 21), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextCircuitRxMonDEOctets.setStatus('current') frext_circuit_rx_mon_set_de_frames = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 22), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextCircuitRxMonSetDEFrames.setStatus('current') frext_circuit_rx_mon_set_de_octets = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 23), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextCircuitRxMonSetDEOctets.setStatus('current') frext_circuit_recvd_becns = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 24), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextCircuitRecvdBECNS.setStatus('current') frext_circuit_recvd_fecns = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 25), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frextCircuitRecvdFECNS.setStatus('current') frs_oam_f5_table = mib_table((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 3)) if mibBuilder.loadTexts: frsOamF5Table.setStatus('current') frs_oam_f5_entry = mib_table_row((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 3, 1)).setIndexNames((0, 'Fore-frs-MIB', 'frsOamF5AtmIf'), (0, 'Fore-frs-MIB', 'frsOamF5AtmVpi'), (0, 'Fore-frs-MIB', 'frsOamF5AtmVci')) if mibBuilder.loadTexts: frsOamF5Entry.setStatus('current') frs_oam_f5_atm_if = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 3, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frsOamF5AtmIf.setStatus('current') frs_oam_f5_atm_vpi = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 3, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frsOamF5AtmVpi.setStatus('current') frs_oam_f5_atm_vci = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 3, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frsOamF5AtmVci.setStatus('current') frs_oam_f5_ais_rx_counter = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 3, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frsOamF5AISRxCounter.setStatus('current') frs_oam_f5_ais_tx_counter = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 3, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frsOamF5AISTxCounter.setStatus('current') frs_oam_f5_rdi_rx_counter = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 3, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frsOamF5RDIRxCounter.setStatus('current') frs_oam_f5_rdi_tx_counter = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 3, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frsOamF5RDITxCounter.setStatus('current') mibBuilder.exportSymbols('Fore-frs-MIB', frextDlcmiLmiUnsuppIERcvd=frextDlcmiLmiUnsuppIERcvd, frextCircuitRxMonNormalOctets=frextCircuitRxMonNormalOctets, frsOamF5AtmIf=frsOamF5AtmIf, frextCircuitNormalSentFrames=frextCircuitNormalSentFrames, frextDlcmiLmiStatEnqRatePlus=frextDlcmiLmiStatEnqRatePlus, frextCircuitRateFallforwards=frextCircuitRateFallforwards, frextCircuitOctetsOnQueue=frextCircuitOctetsOnQueue, frextCircuitHeldBuffers=frextCircuitHeldBuffers, frextDlcmiLmiMissingResponses=frextDlcmiLmiMissingResponses, frextDlcmiLmiUnexpectedDLCI=frextDlcmiLmiUnexpectedDLCI, frextDlcmiLmiInvInfoFrame=frextDlcmiLmiInvInfoFrame, frextDlcmiLmiTxFullStatusResponses=frextDlcmiLmiTxFullStatusResponses, frsOamF5AISRxCounter=frsOamF5AISRxCounter, frextCircuitRxMonDroppedOctets=frextCircuitRxMonDroppedOctets, frextCircuitEntry=frextCircuitEntry, frextDlcmiProfileServiceIndex=frextDlcmiProfileServiceIndex, frextDlcmiLmiNoIERepType=frextDlcmiLmiNoIERepType, frextDlcmiServiceIfIndex=frextDlcmiServiceIfIndex, frextCircuitRxMonExcessOctets=frextCircuitRxMonExcessOctets, frextCircuitREMonitor=frextCircuitREMonitor, frextDlcmiEntry=frextDlcmiEntry, frextDlcmiRcvShortFrames=frextDlcmiRcvShortFrames, frsOamF5Table=frsOamF5Table, frsOamF5Entry=frsOamF5Entry, frextCircuitDlci=frextCircuitDlci, frextDlcmiRcvUnknownErrs=frextDlcmiRcvUnknownErrs, frextDlcmiPvccs=frextDlcmiPvccs, PYSNMP_MODULE_ID=foreFrameRelayModule, frextDlcmiRcvInvalidDLCI=frextDlcmiRcvInvalidDLCI, frsOamF5RDITxCounter=frsOamF5RDITxCounter, frextCircuitRecvdFECNS=frextCircuitRecvdFECNS, frextDlcmiLmiDlci=frextDlcmiLmiDlci, frextDlcmiLmiStatusEnqLostSequences=frextDlcmiLmiStatusEnqLostSequences, frsOamF5AtmVpi=frsOamF5AtmVpi, foreFrameRelayModule=foreFrameRelayModule, frextDlcmiRAControl=frextDlcmiRAControl, frextCircuitRxMonDroppedDEFrames=frextCircuitRxMonDroppedDEFrames, frextCircuitTable=frextCircuitTable, frextDlcmiLmiRxStatusResponses=frextDlcmiLmiRxStatusResponses, frsOamF5AtmVci=frsOamF5AtmVci, frextCircuitRxMonSetDEOctets=frextCircuitRxMonSetDEOctets, frextDlcmiLmiRxStatusEnquiries=frextDlcmiLmiRxStatusEnquiries, frsOamF5AISTxCounter=frsOamF5AISTxCounter, frsOamF5RDIRxCounter=frsOamF5RDIRxCounter, frextCircuitRateFallbacks=frextCircuitRateFallbacks, frextDlcmiTable=frextDlcmiTable, frextCircuitRecvdBECNS=frextCircuitRecvdBECNS, frextDlcmiLmiRxFullStatusEnquiries=frextDlcmiLmiRxFullStatusEnquiries, frextCircuitNormalSentOctets=frextCircuitNormalSentOctets, frextCircuitRxMonDroppedDEOctets=frextCircuitRxMonDroppedDEOctets, frextDlcmiLmiStatusLostSequences=frextDlcmiLmiStatusLostSequences, frextDlcmiLmiInvFrameHdr=frextDlcmiLmiInvFrameHdr, frextDlcmiLmiMissingStatEnquiries=frextDlcmiLmiMissingStatEnquiries, frextDlcmiRxAbortedFrames=frextDlcmiRxAbortedFrames, frextDlcmiLmiTxFullStatusEnquiries=frextDlcmiLmiTxFullStatusEnquiries, frextDlcmiLmiBandwidthControl=frextDlcmiLmiBandwidthControl, frextDlcmiProfileLmiIndex=frextDlcmiProfileLmiIndex, frextCircuitName=frextCircuitName, frextCircuitRxMonDEOctets=frextCircuitRxMonDEOctets, frextCircuitEgFramesDroppedQueueFull=frextCircuitEgFramesDroppedQueueFull, frextDlcmiLmiRxFullStatusResponses=frextDlcmiLmiRxFullStatusResponses, frextDlcmiStatsEnabledTimeStamp=frextDlcmiStatsEnabledTimeStamp, frextDlcmiRcvCrcErrors=frextDlcmiRcvCrcErrors, frextDlcmiLmiTxStatusEnquiries=frextDlcmiLmiTxStatusEnquiries, frextDlcmiRcvLongFrames=frextDlcmiRcvLongFrames, frextDlcmiLmiNoIEKeepAlive=frextDlcmiLmiNoIEKeepAlive, frextCircuitBuffersOnQueue=frextCircuitBuffersOnQueue, frextDlcmiLmiTxStatusResponses=frextDlcmiLmiTxStatusResponses, frextDlcmiLmiFlowControl=frextDlcmiLmiFlowControl, frextCircuitExcessSentOctets=frextCircuitExcessSentOctets, frextCircuitRxMonSetDEFrames=frextCircuitRxMonSetDEFrames, frextCircuitProfileFrRateIndex=frextCircuitProfileFrRateIndex, frextCircuitRxMonNormalFrames=frextCircuitRxMonNormalFrames, frextDlcmiLmiUnexpectedPVCStatMsg=frextDlcmiLmiUnexpectedPVCStatMsg, frextCircuitServiceIfIndex=frextCircuitServiceIfIndex, frextDlcmiLmiUnknownMessagesRcvd=frextDlcmiLmiUnknownMessagesRcvd, frextDlcmiStatsMonitor=frextDlcmiStatsMonitor)
## pure function: has no side effect and returns a value based on their arguments def pure_function(x,y): temp = x + 2*y return temp / y + 2*x ##impure function some_list = [] def impure(arg): some_list.append(arg)
def pure_function(x, y): temp = x + 2 * y return temp / y + 2 * x some_list = [] def impure(arg): some_list.append(arg)
class Solution(object): def brokenCalc(self, X, Y): res = 0 while Y > X: res += Y % 2 + 1 Y = Y // 2 if Y % 2 == 0 else (Y + 1)//2 return res + X - Y def main(): startValue = 2 target = 3 startValue = 5 target = 8 startValue = 3 target = 10 startValue = 1 target = 1000000000 startValue = 1000000000 target = 1 obj = Solution() return obj.brokenCalc(startValue, target) if __name__ == "__main__": print(main())
class Solution(object): def broken_calc(self, X, Y): res = 0 while Y > X: res += Y % 2 + 1 y = Y // 2 if Y % 2 == 0 else (Y + 1) // 2 return res + X - Y def main(): start_value = 2 target = 3 start_value = 5 target = 8 start_value = 3 target = 10 start_value = 1 target = 1000000000 start_value = 1000000000 target = 1 obj = solution() return obj.brokenCalc(startValue, target) if __name__ == '__main__': print(main())
''' Created on Nov 22, 2010 @author: johantenbroeke '''
""" Created on Nov 22, 2010 @author: johantenbroeke """
# First we'll start an undo action, then Ctrl-Z will undo the actions of the whole script editor.beginUndoAction() # Do a Python regular expression replace, full support of Python regular expressions # This replaces any three uppercase letters that are repeated, # so ABDABD, DEFDEF or DGBDGB etc. the first 3 characters, # so ABD, DEF and DGB in these cases. editor.rereplace(r"([A-Z]{3})\1", r"\1") # Do a multi-line Python regular expression replace. # This example replaces any <br/> that is followed by another on the next line (with optional spaces in between), with a single one editor.rereplace(r"<br/>\s*\r\n\s*<br/>", "<br/>\r\n") # End the undo action, so Ctrl-Z will undo the above two actions editor.endUndoAction()
editor.beginUndoAction() editor.rereplace('([A-Z]{3})\\1', '\\1') editor.rereplace('<br/>\\s*\\r\\n\\s*<br/>', '<br/>\r\n') editor.endUndoAction()
class Product(object): def __init__(self, product_name:str, global_id, price, description="") -> None: self.product_id = global_id self.product_name = product_name self.description = description self.price = price print("created product {0.product_name}".format(self)) def __str__(self) -> str: return "{0.product_id}: {0.product_name}, ${0.price}".format(self)
class Product(object): def __init__(self, product_name: str, global_id, price, description='') -> None: self.product_id = global_id self.product_name = product_name self.description = description self.price = price print('created product {0.product_name}'.format(self)) def __str__(self) -> str: return '{0.product_id}: {0.product_name}, ${0.price}'.format(self)
# Modify the previous program such that only multiples of three or five are considered in the sum, e.g. 3, 5, 6, 9, 10, 12, 15 for n=17 num = int(input("Enter number: ")) def bubbles_sum(num): sum = 0 for a in range(1, num + 1): sum = sum + a if (a % 3 == 0 or a % 5 == 0) : sum = sum + a print(sum)
num = int(input('Enter number: ')) def bubbles_sum(num): sum = 0 for a in range(1, num + 1): sum = sum + a if a % 3 == 0 or a % 5 == 0: sum = sum + a print(sum)
# The channel to send the log messages to CHANNEL_NAME = "voice-log" # The bot token BOT_TOKEN = "NDI3NTIyNzMxNjgxsasdsagsadshvbn,.fgsfgjfkLHEGROoAxA"
channel_name = 'voice-log' bot_token = 'NDI3NTIyNzMxNjgxsasdsagsadshvbn,.fgsfgjfkLHEGROoAxA'
# use the function blackbox(lst) that is already defined lst = ["a", "b", "c"] blackbox_lst = blackbox(lst) print("modifies" if id(lst) == id(blackbox_lst) else "new")
lst = ['a', 'b', 'c'] blackbox_lst = blackbox(lst) print('modifies' if id(lst) == id(blackbox_lst) else 'new')
expected_output = { "instance": { "default": { "vrf": { "EVPN-BGP-Table": { "address_family": { "l2vpn evpn": { "prefixes": { "[3][40.0.0.3:164][0][32][40.0.0.7]/17": { "table_version": "234", "nlri_data": { "route-type": "3", "rd": "40.0.0.3:164", "eti": "0", "ip_len": "32", "orig_rtr_id": "40.0.0.7", "subnet": "17" }, "available_path": "1", "best_path": "1", "paths": "1 available, best #1, table EVPN-BGP-Table", "index": { 1: { "next_hop": "40.0.0.3", "gateway": "20.0.102.3", "originator": "20.0.102.3", "next_hop_via": "default", "update_group": 13, "localpref": 100, "origin_codes": "i", "status_codes": "*>", "refresh_epoch": 1, "route_info": "Local", "route_status": "Received from a RR-client", "ext_community": "RT:10:23000 ENCAP:8", "pmsi": { "tun_type": "IR", "vni": "22993", "tun_id": { "tun_endpoint": "40.0.0.3" } }, "recipient_pathid": "0", "transfer_pathid": "0x0" } } } } } } } } } } }
expected_output = {'instance': {'default': {'vrf': {'EVPN-BGP-Table': {'address_family': {'l2vpn evpn': {'prefixes': {'[3][40.0.0.3:164][0][32][40.0.0.7]/17': {'table_version': '234', 'nlri_data': {'route-type': '3', 'rd': '40.0.0.3:164', 'eti': '0', 'ip_len': '32', 'orig_rtr_id': '40.0.0.7', 'subnet': '17'}, 'available_path': '1', 'best_path': '1', 'paths': '1 available, best #1, table EVPN-BGP-Table', 'index': {1: {'next_hop': '40.0.0.3', 'gateway': '20.0.102.3', 'originator': '20.0.102.3', 'next_hop_via': 'default', 'update_group': 13, 'localpref': 100, 'origin_codes': 'i', 'status_codes': '*>', 'refresh_epoch': 1, 'route_info': 'Local', 'route_status': 'Received from a RR-client', 'ext_community': 'RT:10:23000 ENCAP:8', 'pmsi': {'tun_type': 'IR', 'vni': '22993', 'tun_id': {'tun_endpoint': '40.0.0.3'}}, 'recipient_pathid': '0', 'transfer_pathid': '0x0'}}}}}}}}}}}
def get_colnames(score: str): colnames = { "charlson": { "aids": "AIDS or HIV", "ami": "acute myocardial infarction", "canc": "cancer any malignancy", "cevd": "cerebrovascular disease", "chf": "congestive heart failure", "copd": "chronic obstructive pulmonary disease", "dementia": "dementia", "diab": "diabetes without complications", "diabwc": "diabetes with complications", "hp": "hemiplegia or paraplegia", "metacanc": "metastatic solid tumour", "mld": "mild liver disease", "msld": "moderate or severe liver disease", "pud": "peptic ulcer disease", "pvd": "peripheral vascular disease", "rend": "renal disease", "rheumd": "rheumatoid disease", }, "elixhauser": { "aids": " AIDS/HIV", "alcohol": " alcohol abuse", "blane": " blood loss anaemia", "carit": " cardiac arrhythmias", "chf": " congestive heart failure", "coag": " coagulopathy", "cpd": " chronic pulmonary disease", "dane": " deficiency anaemia", "depre": " depression", "diabc": " diabetes complicated", "diabunc": " diabetes uncomplicated", "drug": " drug abuse", "fed": " fluid and electrolyte disorders", "hypc": " hypertension complicated", "hypothy": " hypothyroidism", "hypunc": " hypertension uncomplicated", "ld": " liver disease", "lymph": " lymphoma", "metacanc": " metastatic cancer", "obes": " obesity", "ond": " other neurological disorders", "para": " paralysis", "pcd": " pulmonary circulation disorders", "psycho": " psychoses", "pud": " peptic ulcer disease excluding bleeding", "pvd": " peripheral vascular disorders", "rf": " renal failure", "rheumd": " rheumatoid arthritis/collaged vascular disease", "solidtum": " solid tumour without metastasis", "valv": " valvular disease", "wloss": " weight loss", }, } return colnames[score]
def get_colnames(score: str): colnames = {'charlson': {'aids': 'AIDS or HIV', 'ami': 'acute myocardial infarction', 'canc': 'cancer any malignancy', 'cevd': 'cerebrovascular disease', 'chf': 'congestive heart failure', 'copd': 'chronic obstructive pulmonary disease', 'dementia': 'dementia', 'diab': 'diabetes without complications', 'diabwc': 'diabetes with complications', 'hp': 'hemiplegia or paraplegia', 'metacanc': 'metastatic solid tumour', 'mld': 'mild liver disease', 'msld': 'moderate or severe liver disease', 'pud': 'peptic ulcer disease', 'pvd': 'peripheral vascular disease', 'rend': 'renal disease', 'rheumd': 'rheumatoid disease'}, 'elixhauser': {'aids': ' AIDS/HIV', 'alcohol': ' alcohol abuse', 'blane': ' blood loss anaemia', 'carit': ' cardiac arrhythmias', 'chf': ' congestive heart failure', 'coag': ' coagulopathy', 'cpd': ' chronic pulmonary disease', 'dane': ' deficiency anaemia', 'depre': ' depression', 'diabc': ' diabetes complicated', 'diabunc': ' diabetes uncomplicated', 'drug': ' drug abuse', 'fed': ' fluid and electrolyte disorders', 'hypc': ' hypertension complicated', 'hypothy': ' hypothyroidism', 'hypunc': ' hypertension uncomplicated', 'ld': ' liver disease', 'lymph': ' lymphoma', 'metacanc': ' metastatic cancer', 'obes': ' obesity', 'ond': ' other neurological disorders', 'para': ' paralysis', 'pcd': ' pulmonary circulation disorders', 'psycho': ' psychoses', 'pud': ' peptic ulcer disease excluding bleeding', 'pvd': ' peripheral vascular disorders', 'rf': ' renal failure', 'rheumd': ' rheumatoid arthritis/collaged vascular disease', 'solidtum': ' solid tumour without metastasis', 'valv': ' valvular disease', 'wloss': ' weight loss'}} return colnames[score]
#!/usr/bin/env python ''' Test Templates ''' regList = ["A", "B", "C", "D", "E", "F", "H", "L", "HL", "PC", "SP"] cpuTestFile = ''' namespace GameBoyEmulator.Desktop.Tests { [TestFixture] public class CPUTest { private const int RUN_CYCLES = 10; {TESTS} } } ''' baseTestTemplate = ''' [Test] public void TestOpcode{OPCODE}() { var cpu = new CPU(); for (var i = 0; i < RUN_CYCLES; i++) { cpu.Reset(); cpu.reg.RandomizeRegisters(); cpu.memory.RandomizeMemory(); var regBefore = cpu.reg.Clone(); CPUInstructions.opcodes[0x{OPCODE}](cpu); var regAfter = cpu.reg.Clone(); {CHECKS} } } ''' baseTestCBTemplate = ''' [Test] public void TestOpcodeCB{OPCODE}() { var cpu = new CPU(); for (var i = 0; i < RUN_CYCLES; i++) { cpu.Reset(); cpu.reg.RandomizeRegisters(); cpu.memory.RandomizeMemory(); var regBefore = cpu.reg.Clone(); CPUInstructions.CBOPS[0x{OPCODE}](cpu); var regAfter = cpu.reg.Clone(); {CHECKS} } } ''' cycleTestTemplate = ''' #region Test Cycles Assert.AreEqual(%s, regAfter.lastClockT); Assert.AreEqual(%s, regAfter.lastClockM); #endregion ''' def LoadTPL(tplname): f = open("CSharp/%s.cs" % tplname) tpl = f.read() f.close() return tpl def CheckFlagChange(flags): return not (flags["carry"] == None and flags["sub"] == None and flags["halfcarry"] == None and flags["zero"] == None) def GenFlagAssert(flags): flagAssert = ''' #region Flag Tests\n''' if flags["carry"] == False or flags["carry"] == True: flagAssert = flagAssert + " Assert.AreEqual(%s, regAfter.FlagCarry);\n" % str(flags["carry"]).lower() elif flags["carry"] == None: flagAssert = flagAssert + " Assert.AreEqual(regAfter.FlagCarry, regBefore.FlagCarry);\n" if flags["halfcarry"] == False or flags["halfcarry"] == True: flagAssert = flagAssert + " Assert.AreEqual(%s, regAfter.FlagHalfCarry);\n" % str(flags["halfcarry"]).lower() elif flags["halfcarry"] == None: flagAssert = flagAssert + " Assert.AreEqual(regAfter.FlagHalfCarry, regBefore.FlagHalfCarry);\n" if flags["sub"] == False or flags["sub"] == True: flagAssert = flagAssert + " Assert.AreEqual(%s, regAfter.FlagSub);\n" % str(flags["sub"]).lower() elif flags["sub"] == None: flagAssert = flagAssert + " Assert.AreEqual(regAfter.FlagSub, regBefore.FlagSub);\n" if flags["zero"] == False or flags["zero"] == True: flagAssert = flagAssert + " Assert.AreEqual(%s, regAfter.FlagZero);\n" % str(flags["zero"]).lower() elif flags["zero"] == None: flagAssert = flagAssert + " Assert.AreEqual(regAfter.FlagZero, regBefore.FlagZero);\n" flagAssert = flagAssert + " #endregion" return flagAssert def LDrr(instr, opcode, args, cycles, flags): regI, regO = args asserts = ''' #region Test no change to other regs\n''' for regA in regList: if regA != regI and not ((regI == "L" or regI == "H") and regA == "HL"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("LDrr").format( regI=regI, regO=regO, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def LDrHLm_(instr, opcode, args, cycles, flags): regO, = args asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != regO and not ((regO == "L" or regO == "H") and regA == "HL"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("LDrHLm_").format( regO=regO, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def LDHLmr_(instr, opcode, args, cycles, flags): regI, = args asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != regI: asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("LDHLmr_").format( regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def LDrn_(instr, opcode, args, cycles, flags): regO, = args asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != regO and regA != "PC" and not ((regO == "L" or regO == "H") and regA == "HL"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("LDrn_").format( regO=regO, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def LDHLmn(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "PC": asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("LDHLmn").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def LD__m_(instr, opcode, args, cycles, flags): regH, regL, regI = args asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != regI and not ((regI == "L" or regI == "H") and regA == "HL"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("LD__m_").format( regH=regH, regL=regL, regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def LDmm_(instr, opcode, args, cycles, flags): regI, = args asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != regI and regA != "PC" and not ((regI == "L" or regI == "H") and regA == "HL"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("LDmm_").format( regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def LD___m(instr, opcode, args, cycles, flags): regO, regH, regL = args asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != regO and not ((regO == "L" or regO == "H") and regA == "HL"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("LD___m").format( regH=regH, regL=regL, regO=regO, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def LD_mm(instr, opcode, args, cycles, flags): regO, = args asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != regO and regA != "PC" and not ((regO == "L" or regO == "H") and regA == "HL"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("LD_mm").format( regO=regO, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def LD__nn(instr, opcode, args, cycles, flags): regO1, regO2 = args asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != regO1 and regA != regO2 and regA != "PC" and not ((regO1 == "L" or regO1 == "H" or regO2 == "L" or regO2 == "H") and regA == "HL"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("LD__nn").format( regO1=regO1, regO2=regO2, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def LDSPnn(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "SP" and regA != "PC": asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("LDSPnn").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def LDmmSP(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "SP" and regA != "PC": asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("LDmmSP").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def LDHLIA(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "H" and regA != "L" and regA != "HL": asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("LDHLIA").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def LDAHLI(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "H" and regA != "L" and regA != "HL" and regA != "A": asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("LDAHLI").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def LDHLDA(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "H" and regA != "L" and regA != "HL": asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("LDHLDA").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def LDAHLD(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "H" and regA != "L" and regA != "HL" and regA != "A": asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("LDAHLD").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def LDAIOn(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "PC" and regA != "A": asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("LDAIOn").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def LDAIOnA(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "PC" and regA != "A": asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("LDAIOnA").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def LDIOnA(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "PC": asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("LDIOnA").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def LDAIOC(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "A": asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("LDAIOC").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def LDIOCA(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "A": asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("LDIOCA").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def LDHLSPn(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "HL" and regA != "PC" and regA != "H" and regA != "L" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("LDHLSPn").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def LDHLSPr(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "SP" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("LDHLSPr").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def ADDr(instr, opcode, args, cycles, flags): regI, = args asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "A" and regA != regI and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("ADDr").format( regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def ADDHL(instr, opcode, args, cycles, flags): if len(args) == 0: asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "A" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("ADDHLm").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) else: regA_, regB_ = args asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "HL" and regA != "H" and regA != "L" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("ADDHLrr").format( regA = regA_, regB = regB_, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def ADDHLSP(instr, opcode, args, cycles, flags): if len(args) == 0: asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "HL" and regA != "H" and regA != "L" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("ADDHLSP").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def ADDSPn(instr, opcode, args, cycles, flags): if len(args) == 0: asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "SP" and regA != "PC" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("ADDSPn").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def ADCr(instr, opcode, args, cycles, flags): regI, = args asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "A" and regA != regI and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("ADCr").format( regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def ADCHL(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "A" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("ADCHL").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def ADCn(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "A" and regA != "PC" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("ADCn").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def SUBr(instr, opcode, args, cycles, flags): regI, = args asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "A" and regA != regI and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("SUBr").format( regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def SUBHL(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "A" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("SUBHL").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def SUBn(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "A" and regA != "PC" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("SUBn").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def ADDn(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "A" and regA != "PC" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("ADDn").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def SBCr(instr, opcode, args, cycles, flags): regI, = args asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "A" and regA != regI and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("SBCr").format( regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def SBCHL(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "A" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("SBCHL").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def SBCn(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "A" and regA != "PC" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("SBCn").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def CPr(instr, opcode, args, cycles, flags): regI, = args asserts = '''#region Test no change to other regs\n''' for regA in regList: if not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("CPr").format( regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def CPHL(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("CPHL").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def CPn(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "PC" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("CPn").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def DAA(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "A" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("DAA").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def ANDr(instr, opcode, args, cycles, flags): regI, = args asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "A" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("ANDr").format( regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def ANDHL(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "A" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("ANDHL").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def ANDn(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "PC" and regA != "A" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("ANDn").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def ORr(instr, opcode, args, cycles, flags): regI, = args asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "A" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("ORr").format( regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def ORHL(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "A" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("ORHL").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def ORn(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "PC" and regA != "A" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("ORn").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def XORr(instr, opcode, args, cycles, flags): regI, = args asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "A" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("XORr").format( regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def XORHL(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "A" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("XORHL").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def XORn(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "PC" and regA != "A" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("XORn").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def INCr(instr, opcode, args, cycles, flags): if len(args) == 2: regA_, regB_ = args asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != regA_ and regA != regB_ and not ((regA_ == "H" or regA_ == "L" or (regB_ == "H" or regB_ == "L")) and regA == "HL") and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("INCrr").format( regA=regA_, regB=regB_, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) else: regI, = args asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != regI and not ((regI == "H" or regI == "L") and regA == "HL") and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("INCr").format( regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def INCHLm(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("INCHLm").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def DECr(instr, opcode, args, cycles, flags): if len(args) == 2: regA_, regB_ = args asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != regA_ and regA != regB_ and not ((regA_ == "H" or regA_ == "L" or (regB_ == "H" or regB_ == "L")) and regA == "HL") and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("DECrr").format( regA=regA_, regB=regB_, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) else: regI, = args asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != regI and not ((regI == "H" or regI == "L") and regA == "HL") and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("DECr").format( regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def DECHLm(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("DECHLm").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def INCSP(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "SP" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("INCSP").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def DECSP(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "SP" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("DECSP").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def RLA(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "A" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("RLA").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def RLCA(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "A" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("RLCA").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def RRA(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "A" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("RRA").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def RRCA(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "A" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("RRCA").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def CPL(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "A" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("CPL").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def CCF(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("CCF").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def SCF(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("SCF").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def RSTXX(instr, opcode, args, cycles, flags): addr, = args addr = int(addr[2:], 16) asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "PC" and regA != "SP" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("RSTXX").format( addr=addr, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def PUSH(instr, opcode, args, cycles, flags): regA_, regB_ = args asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "SP" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("PUSH").format( regA=regA_, regB=regB_, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def POP(instr, opcode, args, cycles, flags): regA_, regB_ = args asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "SP" and regA != regA_ and regA != regB_ and not ((regA_ == "H" or regB_ == "L") and regA == "HL") and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("POP").format( regA=regA_, regB=regB_, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def JPnn(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "PC" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("JPnn").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def JPHL(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "PC" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("JPHL").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def JPNZnn(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "PC" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n" return LoadTPL("JPNZnn").format( opcode=opcode, instr=instr, asserts=asserts, cycles=cycles, flags=GenFlagAssert(flags) ) def JPZnn(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "PC" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n" return LoadTPL("JPZnn").format( opcode=opcode, instr=instr, asserts=asserts, cycles=cycles, flags=GenFlagAssert(flags) ) def JPNCnn(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "PC" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n" return LoadTPL("JPNCnn").format( cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def JPCnn(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "PC" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n" return LoadTPL("JPCnn").format( cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def JRn(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "PC" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n" return LoadTPL("JRn").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def JRNZn(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "PC" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n" return LoadTPL("JRNZn").format( cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def JRZn(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "PC" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n" return LoadTPL("JRZn").format( cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def JRNCn(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "PC" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n" return LoadTPL("JRNCn").format( cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def JRCn(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "PC" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n" return LoadTPL("JRCn").format( cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def STOP(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "PC" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("STOP").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def CALLnn(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "PC" and regA != "SP" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("CALLnn").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def CALLNZnn(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "PC" and regA != "SP" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n" return LoadTPL("CALLNZnn").format( cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def CALLZnn(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "PC" and regA != "SP" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n" return LoadTPL("CALLZnn").format( cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def CALLNCnn(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "PC" and regA != "SP" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n" return LoadTPL("CALLNCnn").format( cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def CALLCnn(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "PC" and regA != "SP" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n" return LoadTPL("CALLCnn").format( cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def RET(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "PC" and regA != "SP" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("RET").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def RETI(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "PC" and regA != "SP" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("RETI").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def RETNZ(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "PC" and regA != "SP" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n" return LoadTPL("RETNZ").format( cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def RETZ(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "PC" and regA != "SP" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n" return LoadTPL("RETZ").format( cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def RETNC(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "PC" and regA != "SP" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n" return LoadTPL("RETNC").format( cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def RETC(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if regA != "PC" and regA != "SP" and not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n" return LoadTPL("RETC").format( cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def EI(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("EI").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def DI(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("DI").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def NOP(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("NOP").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def NOPWARN(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("NOPWARN").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) def HALT(instr, opcode, args, cycles, flags): asserts = '''#region Test no change to other regs\n''' for regA in regList: if not (CheckFlagChange(flags) and regA == "F"): asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA)) asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4)) return LoadTPL("HALT").format( opcode=opcode, instr=instr, asserts=asserts, flags=GenFlagAssert(flags) ) TestTemplates = { "LDrr": LDrr, "LDrHLm_": LDrHLm_, "LDrn_": LDrn_, "LDHLmr_": LDHLmr_, "LD__m_": LD__m_, "LDmm_": LDmm_, "LD___m": LD___m, "LD_mm": LD_mm, "LD__nn": LD__nn, "LDSPnn": LDSPnn, "LDmmSP": LDmmSP, "LDHLIA": LDHLIA, "LDAHLI": LDAHLI, "LDHLDA": LDHLDA, "LDAHLD": LDAHLD, "LDAIOn": LDAIOn, "LDAIOn": LDAIOn, "LDIOnA": LDIOnA, "LDAIOC": LDAIOC, "LDIOCA": LDIOCA, "LDHLSPn": LDHLSPn, "LDHLSPr": LDHLSPr, "ADDr": ADDr, "ADDn": ADDn, "ADDHL": ADDHL, "ADDHLSP": ADDHLSP, "ADDSPn": ADDSPn, "ADCr": ADCr, "ADCHL": ADCHL, "ADCn": ADCn, "SUBr": SUBr, "SUBHL": SUBHL, "SUBn": SUBn, "SBCr": SBCr, "SBCHL": SBCHL, "SBCn": SBCn, "CPr": CPr, "CPHL": CPHL, "CPn": CPn, "DAA": DAA, "ANDr": ANDr, "ANDHL": ANDHL, "ANDn": ANDn, "ORr": ORr, "ORHL": ORHL, "ORn": ORn, "XORr": XORr, "XORHL": XORHL, "XORn": XORn, "INCr": INCr, "INC": INCr, "INCHLm": INCHLm, "DECr": DECr, "DEC": DECr, "DECHLm": DECHLm, "INCSP": INCSP, "DECSP": DECSP, "RLA": RLA, "RLCA": RLCA, "RRA": RRA, "RRCA": RRCA, "CPL": CPL, "CCF": CCF, "SCF": SCF, "RSTXX": RSTXX, "PUSH": PUSH, "POP": POP, "JPnn": JPnn, "JPHL": JPHL, "JPNZnn": JPNZnn, "JPZnn": JPZnn, "JPNCnn": JPNCnn, "JPCnn": JPCnn, "JRn": JRn, "JRNZn": JRNZn, "JRZn": JRZn, "JRNCn": JRNCn, "JRCn": JRCn, "STOP": STOP, "CALLnn": CALLnn, "CALLNZnn": CALLNZnn, "CALLZnn": CALLZnn, "CALLNCnn": CALLNCnn, "CALLCnn": CALLCnn, "RET": RET, "RETI": RETI, "RETNZ": RETNZ, "RETZ": RETZ, "RETNC": RETNC, "RETC": RETC, "EI": EI, "DI": DI, "NOP": NOP, "NOPWARN": NOPWARN, "HALT": HALT, "LDHLmn": LDHLmn, } #print TestTemplates["LDrr"]("LDrr A, B", 0x78, ["A", "B"], 4, {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}) #print TestTemplates["LDrHLm_"]("LD A, [HL]", 0x7E, "A", 8, {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}) #print TestTemplates["LDrn_"]("LD A, d8", 0x3E, "A", 8, {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None})
""" Test Templates """ reg_list = ['A', 'B', 'C', 'D', 'E', 'F', 'H', 'L', 'HL', 'PC', 'SP'] cpu_test_file = '\nnamespace GameBoyEmulator.Desktop.Tests {\n [TestFixture]\n public class CPUTest {\n private const int RUN_CYCLES = 10;\n\n {TESTS}\n }\n}\n' base_test_template = '\n [Test]\n public void TestOpcode{OPCODE}() {\n var cpu = new CPU();\n for (var i = 0; i < RUN_CYCLES; i++) {\n cpu.Reset();\n cpu.reg.RandomizeRegisters();\n cpu.memory.RandomizeMemory();\n\n var regBefore = cpu.reg.Clone();\n CPUInstructions.opcodes[0x{OPCODE}](cpu);\n var regAfter = cpu.reg.Clone();\n\n {CHECKS}\n }\n }\n' base_test_cb_template = '\n [Test]\n public void TestOpcodeCB{OPCODE}() {\n var cpu = new CPU();\n for (var i = 0; i < RUN_CYCLES; i++) {\n cpu.Reset();\n cpu.reg.RandomizeRegisters();\n cpu.memory.RandomizeMemory();\n\n var regBefore = cpu.reg.Clone();\n CPUInstructions.CBOPS[0x{OPCODE}](cpu);\n var regAfter = cpu.reg.Clone();\n\n {CHECKS}\n }\n }\n' cycle_test_template = '\n #region Test Cycles\n Assert.AreEqual(%s, regAfter.lastClockT);\n Assert.AreEqual(%s, regAfter.lastClockM);\n #endregion\n' def load_tpl(tplname): f = open('CSharp/%s.cs' % tplname) tpl = f.read() f.close() return tpl def check_flag_change(flags): return not (flags['carry'] == None and flags['sub'] == None and (flags['halfcarry'] == None) and (flags['zero'] == None)) def gen_flag_assert(flags): flag_assert = '\n #region Flag Tests\n' if flags['carry'] == False or flags['carry'] == True: flag_assert = flagAssert + ' Assert.AreEqual(%s, regAfter.FlagCarry);\n' % str(flags['carry']).lower() elif flags['carry'] == None: flag_assert = flagAssert + ' Assert.AreEqual(regAfter.FlagCarry, regBefore.FlagCarry);\n' if flags['halfcarry'] == False or flags['halfcarry'] == True: flag_assert = flagAssert + ' Assert.AreEqual(%s, regAfter.FlagHalfCarry);\n' % str(flags['halfcarry']).lower() elif flags['halfcarry'] == None: flag_assert = flagAssert + ' Assert.AreEqual(regAfter.FlagHalfCarry, regBefore.FlagHalfCarry);\n' if flags['sub'] == False or flags['sub'] == True: flag_assert = flagAssert + ' Assert.AreEqual(%s, regAfter.FlagSub);\n' % str(flags['sub']).lower() elif flags['sub'] == None: flag_assert = flagAssert + ' Assert.AreEqual(regAfter.FlagSub, regBefore.FlagSub);\n' if flags['zero'] == False or flags['zero'] == True: flag_assert = flagAssert + ' Assert.AreEqual(%s, regAfter.FlagZero);\n' % str(flags['zero']).lower() elif flags['zero'] == None: flag_assert = flagAssert + ' Assert.AreEqual(regAfter.FlagZero, regBefore.FlagZero);\n' flag_assert = flagAssert + ' #endregion' return flagAssert def l_drr(instr, opcode, args, cycles, flags): (reg_i, reg_o) = args asserts = '\n #region Test no change to other regs\n' for reg_a in regList: if regA != regI and (not ((regI == 'L' or regI == 'H') and regA == 'HL')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('LDrr').format(regI=regI, regO=regO, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def l_dr_h_lm_(instr, opcode, args, cycles, flags): (reg_o,) = args asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != regO and (not ((regO == 'L' or regO == 'H') and regA == 'HL')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('LDrHLm_').format(regO=regO, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def ldh_lmr_(instr, opcode, args, cycles, flags): (reg_i,) = args asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != regI: asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('LDHLmr_').format(regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def l_drn_(instr, opcode, args, cycles, flags): (reg_o,) = args asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != regO and regA != 'PC' and (not ((regO == 'L' or regO == 'H') and regA == 'HL')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('LDrn_').format(regO=regO, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def ldh_lmn(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'PC': asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('LDHLmn').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def ld__m_(instr, opcode, args, cycles, flags): (reg_h, reg_l, reg_i) = args asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != regI and (not ((regI == 'L' or regI == 'H') and regA == 'HL')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('LD__m_').format(regH=regH, regL=regL, regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def l_dmm_(instr, opcode, args, cycles, flags): (reg_i,) = args asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != regI and regA != 'PC' and (not ((regI == 'L' or regI == 'H') and regA == 'HL')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('LDmm_').format(regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def ld___m(instr, opcode, args, cycles, flags): (reg_o, reg_h, reg_l) = args asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != regO and (not ((regO == 'L' or regO == 'H') and regA == 'HL')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('LD___m').format(regH=regH, regL=regL, regO=regO, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def ld_mm(instr, opcode, args, cycles, flags): (reg_o,) = args asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != regO and regA != 'PC' and (not ((regO == 'L' or regO == 'H') and regA == 'HL')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('LD_mm').format(regO=regO, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def ld__nn(instr, opcode, args, cycles, flags): (reg_o1, reg_o2) = args asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != regO1 and regA != regO2 and (regA != 'PC') and (not ((regO1 == 'L' or regO1 == 'H' or regO2 == 'L' or (regO2 == 'H')) and regA == 'HL')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('LD__nn').format(regO1=regO1, regO2=regO2, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def lds_pnn(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'SP' and regA != 'PC': asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('LDSPnn').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def l_dmm_sp(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'SP' and regA != 'PC': asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('LDmmSP').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def ldhlia(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'H' and regA != 'L' and (regA != 'HL'): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('LDHLIA').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def ldahli(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'H' and regA != 'L' and (regA != 'HL') and (regA != 'A'): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('LDAHLI').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def ldhlda(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'H' and regA != 'L' and (regA != 'HL'): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('LDHLDA').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def ldahld(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'H' and regA != 'L' and (regA != 'HL') and (regA != 'A'): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('LDAHLD').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def ldai_on(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'PC' and regA != 'A': asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('LDAIOn').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def ldai_on_a(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'PC' and regA != 'A': asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('LDAIOnA').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def ldi_on_a(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'PC': asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('LDIOnA').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def ldaioc(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'A': asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('LDAIOC').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def ldioca(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'A': asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('LDIOCA').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def ldhls_pn(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'HL' and regA != 'PC' and (regA != 'H') and (regA != 'L') and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('LDHLSPn').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def ldhls_pr(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'SP' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('LDHLSPr').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def ad_dr(instr, opcode, args, cycles, flags): (reg_i,) = args asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'A' and regA != regI and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('ADDr').format(regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def addhl(instr, opcode, args, cycles, flags): if len(args) == 0: asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'A' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('ADDHLm').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) else: (reg_a_, reg_b_) = args asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'HL' and regA != 'H' and (regA != 'L') and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('ADDHLrr').format(regA=regA_, regB=regB_, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def addhlsp(instr, opcode, args, cycles, flags): if len(args) == 0: asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'HL' and regA != 'H' and (regA != 'L') and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('ADDHLSP').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def adds_pn(instr, opcode, args, cycles, flags): if len(args) == 0: asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'SP' and regA != 'PC' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('ADDSPn').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def ad_cr(instr, opcode, args, cycles, flags): (reg_i,) = args asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'A' and regA != regI and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('ADCr').format(regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def adchl(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'A' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('ADCHL').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def ad_cn(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'A' and regA != 'PC' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('ADCn').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def su_br(instr, opcode, args, cycles, flags): (reg_i,) = args asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'A' and regA != regI and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('SUBr').format(regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def subhl(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'A' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('SUBHL').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def su_bn(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'A' and regA != 'PC' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('SUBn').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def ad_dn(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'A' and regA != 'PC' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('ADDn').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def sb_cr(instr, opcode, args, cycles, flags): (reg_i,) = args asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'A' and regA != regI and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('SBCr').format(regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def sbchl(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'A' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('SBCHL').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def sb_cn(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'A' and regA != 'PC' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('SBCn').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def c_pr(instr, opcode, args, cycles, flags): (reg_i,) = args asserts = '#region Test no change to other regs\n' for reg_a in regList: if not (check_flag_change(flags) and regA == 'F'): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('CPr').format(regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def cphl(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if not (check_flag_change(flags) and regA == 'F'): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('CPHL').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def c_pn(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'PC' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('CPn').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def daa(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'A' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('DAA').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def an_dr(instr, opcode, args, cycles, flags): (reg_i,) = args asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'A' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('ANDr').format(regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def andhl(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'A' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('ANDHL').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def an_dn(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'PC' and regA != 'A' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('ANDn').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def o_rr(instr, opcode, args, cycles, flags): (reg_i,) = args asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'A' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('ORr').format(regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def orhl(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'A' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('ORHL').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def o_rn(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'PC' and regA != 'A' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('ORn').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def xo_rr(instr, opcode, args, cycles, flags): (reg_i,) = args asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'A' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('XORr').format(regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def xorhl(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'A' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('XORHL').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def xo_rn(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'PC' and regA != 'A' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('XORn').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def in_cr(instr, opcode, args, cycles, flags): if len(args) == 2: (reg_a_, reg_b_) = args asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != regA_ and regA != regB_ and (not ((regA_ == 'H' or regA_ == 'L' or (regB_ == 'H' or regB_ == 'L')) and regA == 'HL')) and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('INCrr').format(regA=regA_, regB=regB_, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) else: (reg_i,) = args asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != regI and (not ((regI == 'H' or regI == 'L') and regA == 'HL')) and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('INCr').format(regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def inch_lm(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if not (check_flag_change(flags) and regA == 'F'): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('INCHLm').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def de_cr(instr, opcode, args, cycles, flags): if len(args) == 2: (reg_a_, reg_b_) = args asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != regA_ and regA != regB_ and (not ((regA_ == 'H' or regA_ == 'L' or (regB_ == 'H' or regB_ == 'L')) and regA == 'HL')) and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('DECrr').format(regA=regA_, regB=regB_, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) else: (reg_i,) = args asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != regI and (not ((regI == 'H' or regI == 'L') and regA == 'HL')) and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('DECr').format(regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def dech_lm(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if not (check_flag_change(flags) and regA == 'F'): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('DECHLm').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def incsp(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'SP' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('INCSP').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def decsp(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'SP' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('DECSP').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def rla(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'A' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('RLA').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def rlca(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'A' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('RLCA').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def rra(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'A' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('RRA').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def rrca(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'A' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('RRCA').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def cpl(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'A' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('CPL').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def ccf(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if not (check_flag_change(flags) and regA == 'F'): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('CCF').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def scf(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if not (check_flag_change(flags) and regA == 'F'): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('SCF').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def rstxx(instr, opcode, args, cycles, flags): (addr,) = args addr = int(addr[2:], 16) asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'PC' and regA != 'SP' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('RSTXX').format(addr=addr, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def push(instr, opcode, args, cycles, flags): (reg_a_, reg_b_) = args asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'SP' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('PUSH').format(regA=regA_, regB=regB_, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def pop(instr, opcode, args, cycles, flags): (reg_a_, reg_b_) = args asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'SP' and regA != regA_ and (regA != regB_) and (not ((regA_ == 'H' or regB_ == 'L') and regA == 'HL')) and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('POP').format(regA=regA_, regB=regB_, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def j_pnn(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'PC' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('JPnn').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def jphl(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'PC' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('JPHL').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def jpn_znn(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'PC' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n' return load_tpl('JPNZnn').format(opcode=opcode, instr=instr, asserts=asserts, cycles=cycles, flags=gen_flag_assert(flags)) def jp_znn(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'PC' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n' return load_tpl('JPZnn').format(opcode=opcode, instr=instr, asserts=asserts, cycles=cycles, flags=gen_flag_assert(flags)) def jpn_cnn(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'PC' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n' return load_tpl('JPNCnn').format(cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def jp_cnn(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'PC' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n' return load_tpl('JPCnn').format(cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def j_rn(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'PC' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n' return load_tpl('JRn').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def jrn_zn(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'PC' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n' return load_tpl('JRNZn').format(cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def jr_zn(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'PC' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n' return load_tpl('JRZn').format(cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def jrn_cn(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'PC' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n' return load_tpl('JRNCn').format(cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def jr_cn(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'PC' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n' return load_tpl('JRCn').format(cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def stop(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'PC' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('STOP').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def cal_lnn(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'PC' and regA != 'SP' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('CALLnn').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def calln_znn(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'PC' and regA != 'SP' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n' return load_tpl('CALLNZnn').format(cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def call_znn(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'PC' and regA != 'SP' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n' return load_tpl('CALLZnn').format(cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def calln_cnn(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'PC' and regA != 'SP' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n' return load_tpl('CALLNCnn').format(cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def call_cnn(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'PC' and regA != 'SP' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n' return load_tpl('CALLCnn').format(cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def ret(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'PC' and regA != 'SP' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('RET').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def reti(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'PC' and regA != 'SP' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('RETI').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def retnz(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'PC' and regA != 'SP' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n' return load_tpl('RETNZ').format(cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def retz(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'PC' and regA != 'SP' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n' return load_tpl('RETZ').format(cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def retnc(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'PC' and regA != 'SP' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n' return load_tpl('RETNC').format(cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def retc(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if regA != 'PC' and regA != 'SP' and (not (check_flag_change(flags) and regA == 'F')): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n' return load_tpl('RETC').format(cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def ei(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if not (check_flag_change(flags) and regA == 'F'): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('EI').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def di(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if not (check_flag_change(flags) and regA == 'F'): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('DI').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def nop(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if not (check_flag_change(flags) and regA == 'F'): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('NOP').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def nopwarn(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if not (check_flag_change(flags) and regA == 'F'): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('NOPWARN').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) def halt(instr, opcode, args, cycles, flags): asserts = '#region Test no change to other regs\n' for reg_a in regList: if not (check_flag_change(flags) and regA == 'F'): asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA) asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4)) return load_tpl('HALT').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags)) test_templates = {'LDrr': LDrr, 'LDrHLm_': LDrHLm_, 'LDrn_': LDrn_, 'LDHLmr_': LDHLmr_, 'LD__m_': LD__m_, 'LDmm_': LDmm_, 'LD___m': LD___m, 'LD_mm': LD_mm, 'LD__nn': LD__nn, 'LDSPnn': LDSPnn, 'LDmmSP': LDmmSP, 'LDHLIA': LDHLIA, 'LDAHLI': LDAHLI, 'LDHLDA': LDHLDA, 'LDAHLD': LDAHLD, 'LDAIOn': LDAIOn, 'LDAIOn': LDAIOn, 'LDIOnA': LDIOnA, 'LDAIOC': LDAIOC, 'LDIOCA': LDIOCA, 'LDHLSPn': LDHLSPn, 'LDHLSPr': LDHLSPr, 'ADDr': ADDr, 'ADDn': ADDn, 'ADDHL': ADDHL, 'ADDHLSP': ADDHLSP, 'ADDSPn': ADDSPn, 'ADCr': ADCr, 'ADCHL': ADCHL, 'ADCn': ADCn, 'SUBr': SUBr, 'SUBHL': SUBHL, 'SUBn': SUBn, 'SBCr': SBCr, 'SBCHL': SBCHL, 'SBCn': SBCn, 'CPr': CPr, 'CPHL': CPHL, 'CPn': CPn, 'DAA': DAA, 'ANDr': ANDr, 'ANDHL': ANDHL, 'ANDn': ANDn, 'ORr': ORr, 'ORHL': ORHL, 'ORn': ORn, 'XORr': XORr, 'XORHL': XORHL, 'XORn': XORn, 'INCr': INCr, 'INC': INCr, 'INCHLm': INCHLm, 'DECr': DECr, 'DEC': DECr, 'DECHLm': DECHLm, 'INCSP': INCSP, 'DECSP': DECSP, 'RLA': RLA, 'RLCA': RLCA, 'RRA': RRA, 'RRCA': RRCA, 'CPL': CPL, 'CCF': CCF, 'SCF': SCF, 'RSTXX': RSTXX, 'PUSH': PUSH, 'POP': POP, 'JPnn': JPnn, 'JPHL': JPHL, 'JPNZnn': JPNZnn, 'JPZnn': JPZnn, 'JPNCnn': JPNCnn, 'JPCnn': JPCnn, 'JRn': JRn, 'JRNZn': JRNZn, 'JRZn': JRZn, 'JRNCn': JRNCn, 'JRCn': JRCn, 'STOP': STOP, 'CALLnn': CALLnn, 'CALLNZnn': CALLNZnn, 'CALLZnn': CALLZnn, 'CALLNCnn': CALLNCnn, 'CALLCnn': CALLCnn, 'RET': RET, 'RETI': RETI, 'RETNZ': RETNZ, 'RETZ': RETZ, 'RETNC': RETNC, 'RETC': RETC, 'EI': EI, 'DI': DI, 'NOP': NOP, 'NOPWARN': NOPWARN, 'HALT': HALT, 'LDHLmn': LDHLmn}
#Start of code x=['a','e','i','o','u','A','E','I','O','U'] y=input("Enter an Alphabet: ") if y in x: print(y,"is a vowel") else: print(y,"is not a vowel") #End of code
x = ['a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U'] y = input('Enter an Alphabet: ') if y in x: print(y, 'is a vowel') else: print(y, 'is not a vowel')
AUTHENTICATION_BACKENDS = [ 'django.contrib.auth.backends.ModelBackend', 'utils.authenticate.GoogleBackend', ]
authentication_backends = ['django.contrib.auth.backends.ModelBackend', 'utils.authenticate.GoogleBackend']
N, M = map(int, input().split()) A = [] B = [] for i in range(N): A.append(list(map(int, input().split()))) for i in range(N): B.append(list(map(int, input().split()))) C = [] for i in range(N): tmp = [] for j in range(M): a = A[i][j] b = B[i][j] tmp.append(a ^ b) C.append(tmp) for i in range(N - 1): for j in range(M - 1): if C[i][j] == 0: continue else: C[i][j] = 0 C[i + 1][j] = 1 if C[i + 1][j] == 0 else 0 C[i][j + 1] = 1 if C[i][j + 1] == 0 else 0 C[i + 1][j + 1] = 1 if C[i + 1][j + 1] == 0 else 0 for i in range(N): for j in range(M): c = C[i][j] if c == 1: print("No") exit() print("Yes")
(n, m) = map(int, input().split()) a = [] b = [] for i in range(N): A.append(list(map(int, input().split()))) for i in range(N): B.append(list(map(int, input().split()))) c = [] for i in range(N): tmp = [] for j in range(M): a = A[i][j] b = B[i][j] tmp.append(a ^ b) C.append(tmp) for i in range(N - 1): for j in range(M - 1): if C[i][j] == 0: continue else: C[i][j] = 0 C[i + 1][j] = 1 if C[i + 1][j] == 0 else 0 C[i][j + 1] = 1 if C[i][j + 1] == 0 else 0 C[i + 1][j + 1] = 1 if C[i + 1][j + 1] == 0 else 0 for i in range(N): for j in range(M): c = C[i][j] if c == 1: print('No') exit() print('Yes')
contacts = {} running = True; while running: command = input('enter A(dd) D(elete) F(ind) Q(uit)') if command == 'A' or command == 'a': name = input('enter a new name'); print('enter a phone number for', name, end=':') number=input() contacts[name] = number elif command == 'D' or command == 'd': name = input('enter name to delete') del contacts[name] elif command == 'F' or command == 'f': name = input('enter a name to search for') print(name,contacts[name],sep=':') elif command == 'Q' or command == 'q': running = False elif command == 'list': print(contacts) else: print(command, 'is not a valid command')
contacts = {} running = True while running: command = input('enter A(dd) D(elete) F(ind) Q(uit)') if command == 'A' or command == 'a': name = input('enter a new name') print('enter a phone number for', name, end=':') number = input() contacts[name] = number elif command == 'D' or command == 'd': name = input('enter name to delete') del contacts[name] elif command == 'F' or command == 'f': name = input('enter a name to search for') print(name, contacts[name], sep=':') elif command == 'Q' or command == 'q': running = False elif command == 'list': print(contacts) else: print(command, 'is not a valid command')
class Atom: def __init__(self, symbol, atoms, neutr): self.symbol = str(symbol) self.atoms = int(atoms) self.neutrons = int(neutr) self.protons = int(0) self.mass = int(0) def proton_number(self): self.protons = self.atoms - self.neutrons return self.protons def mass_number(self): self.mass = int(sum([self.atoms, self.neutrons])) return self.mass def isotope(self, neutrons): self.neutrons = neutrons def __lt__(self, other): if self.protons == other.protons: return self.mass_number() < other.mass_number() def __le__(self, other): if self.protons == other.protons: return self.mass_number() <= other.mass_number() def __ge__(self, other): if self.protons == other.protons: return self.mass_number() >= other.mass_number() def __gt__(self, other): if self.protons == other.protons: return self.mass_number() > other.mass_number() # protium = Atom('H', 1, 1) # print(protium.n_neutrons) # protium.isotope(3) # print(protium.n_neutrons) protium = Atom('H', 1, 1) deuterium = Atom('H', 1, 2) oxygen = Atom('O', 8, 8) tritium = Atom('H', 1, 2) tritium.isotope(3) assert tritium.neutrons == 3 assert tritium.mass_number() == 4 assert protium < deuterium assert deuterium <= tritium assert tritium >= protium print(oxygen > tritium) # <-- this should raise an Exception
class Atom: def __init__(self, symbol, atoms, neutr): self.symbol = str(symbol) self.atoms = int(atoms) self.neutrons = int(neutr) self.protons = int(0) self.mass = int(0) def proton_number(self): self.protons = self.atoms - self.neutrons return self.protons def mass_number(self): self.mass = int(sum([self.atoms, self.neutrons])) return self.mass def isotope(self, neutrons): self.neutrons = neutrons def __lt__(self, other): if self.protons == other.protons: return self.mass_number() < other.mass_number() def __le__(self, other): if self.protons == other.protons: return self.mass_number() <= other.mass_number() def __ge__(self, other): if self.protons == other.protons: return self.mass_number() >= other.mass_number() def __gt__(self, other): if self.protons == other.protons: return self.mass_number() > other.mass_number() protium = atom('H', 1, 1) deuterium = atom('H', 1, 2) oxygen = atom('O', 8, 8) tritium = atom('H', 1, 2) tritium.isotope(3) assert tritium.neutrons == 3 assert tritium.mass_number() == 4 assert protium < deuterium assert deuterium <= tritium assert tritium >= protium print(oxygen > tritium)
#!/usr/bin/env python3 xList = [ int( x ) for x in input().split() ] xList = sorted( xList ) medianIndex = len( xList ) // 2 if len( xList ) % 2 == 0: print( ( xList[medianIndex-1] + xList[medianIndex] ) / 2. ) else: print( float( xList[ medianIndex ] ) )
x_list = [int(x) for x in input().split()] x_list = sorted(xList) median_index = len(xList) // 2 if len(xList) % 2 == 0: print((xList[medianIndex - 1] + xList[medianIndex]) / 2.0) else: print(float(xList[medianIndex]))
class Box(object): def __init__(self, side, height): self._side = side self._height = height def volume(self): return self._side * self._side * self._height def __lt__(self, other): return self.volume() < other def __eq__(self, other): return self.volume() == other def __gt__(self, other): return self.volume() > other def __repr__(self): return "Box(side=%s, height=%s)" % (self._side, self._height)
class Box(object): def __init__(self, side, height): self._side = side self._height = height def volume(self): return self._side * self._side * self._height def __lt__(self, other): return self.volume() < other def __eq__(self, other): return self.volume() == other def __gt__(self, other): return self.volume() > other def __repr__(self): return 'Box(side=%s, height=%s)' % (self._side, self._height)
class Card(): ranks = [str(n) for n in range(2, 10)] + list('TJQKA') rank_tran = {rank: n for n, rank in enumerate(ranks, 2)} def __init__(self, rank, suit): self.rank = rank self.suit = suit self._numrank = self.rank_tran[rank] def __eq__(self, other): return self._numrank == other._numrank def __ne__(self, other): return self._numrank != other._numrank def __lt__(self, other): return self._numrank < other._numrank def __gt__(self, other): return self._numrank > other._numrank def __repr__(self): return f'Card({self.rank}, {self.suit})'
class Card: ranks = [str(n) for n in range(2, 10)] + list('TJQKA') rank_tran = {rank: n for (n, rank) in enumerate(ranks, 2)} def __init__(self, rank, suit): self.rank = rank self.suit = suit self._numrank = self.rank_tran[rank] def __eq__(self, other): return self._numrank == other._numrank def __ne__(self, other): return self._numrank != other._numrank def __lt__(self, other): return self._numrank < other._numrank def __gt__(self, other): return self._numrank > other._numrank def __repr__(self): return f'Card({self.rank}, {self.suit})'
class Solution: def twoCitySchedCost(self, costs: List[List[int]]) -> int: # def helper(countA, countB, idx, cur_cost): # if idx == len(costs): # return cur_cost # if countA < len(costs) // 2 and countB < len(costs) // 2: # return min(helper(countA + 1, countB, idx + 1, cur_cost + costs[idx][0]), # helper(countA, countB + 1, idx + 1, cur_cost + costs[idx][1])) # return cur_cost + sum([costs[i][0] for i in range(idx, len(costs))]) if countA < len(costs) // 2 else cur_cost + sum([costs[i][1] for i in range(idx, len(costs))]) # return helper(0, 0, 0, 0) a_minus_b = sorted([(a - b, a, b) for a, b in costs]) return sum([cost[1] for cost in a_minus_b[:len(costs)//2]] + [cost[2] for cost in a_minus_b[len(costs)//2:]])
class Solution: def two_city_sched_cost(self, costs: List[List[int]]) -> int: a_minus_b = sorted([(a - b, a, b) for (a, b) in costs]) return sum([cost[1] for cost in a_minus_b[:len(costs) // 2]] + [cost[2] for cost in a_minus_b[len(costs) // 2:]])
enum_ = ''' [COMMENT_LINE_IMPORTS] # System from enum import Enum [COMMENT_LINE] [COMMENT_LINE_CLASS_NAME] class [CLASS_NAME](Enum): [TAB]Template = 0 [COMMENT_LINE] '''.strip()
enum_ = '\n[COMMENT_LINE_IMPORTS]\n\n# System\nfrom enum import Enum\n\n[COMMENT_LINE]\n\n\n\n[COMMENT_LINE_CLASS_NAME]\n\nclass [CLASS_NAME](Enum):\n[TAB]Template = 0\n\n\n[COMMENT_LINE]\n'.strip()
phones = [ {"id": 6, "latitude": 40.1011685523957, "longitude": -88.2200390954902}, {"id": 7, "latitude": 40.0963186128832, "longitude": -88.2255865263258}, {"id": 8, "latitude": 40.1153308841568, "longitude": -88.223901994968}, ] def get_phones(): return phones bad_data = [ {"id": 6, "longitude": -88.2200390954902}, {"id": 7, "latitude": 40.0963186128832, "longitude": -88.2255865263258}, {"id": 8, "latitude": 40.1153308841568, "longitude": -88.223901994968}, ] def get_bad_data(): return bad_data
phones = [{'id': 6, 'latitude': 40.1011685523957, 'longitude': -88.2200390954902}, {'id': 7, 'latitude': 40.0963186128832, 'longitude': -88.2255865263258}, {'id': 8, 'latitude': 40.1153308841568, 'longitude': -88.223901994968}] def get_phones(): return phones bad_data = [{'id': 6, 'longitude': -88.2200390954902}, {'id': 7, 'latitude': 40.0963186128832, 'longitude': -88.2255865263258}, {'id': 8, 'latitude': 40.1153308841568, 'longitude': -88.223901994968}] def get_bad_data(): return bad_data
ies = [] ies.append({ "iei" : "2C", "value" : "IMEISV", "type" : "5G mobile identity", "reference" : "9.10.3.4", "presence" : "O", "format" : "TLV", "length" : "11"}) ies.append({ "iei" : "7D", "value" : "NAS message container", "type" : "message container", "reference" : "9.10.3.31", "presence" : "O", "format" : "TLV-E", "length" : "3-n"}) msg_list[key]["ies"] = ies
ies = [] ies.append({'iei': '2C', 'value': 'IMEISV', 'type': '5G mobile identity', 'reference': '9.10.3.4', 'presence': 'O', 'format': 'TLV', 'length': '11'}) ies.append({'iei': '7D', 'value': 'NAS message container', 'type': 'message container', 'reference': '9.10.3.31', 'presence': 'O', 'format': 'TLV-E', 'length': '3-n'}) msg_list[key]['ies'] = ies
# Write a program that reads an integer and displays, using asterisks, a filled and hol- # low square, placed next to each other. For example if the side length is 5, the pro gram # should display # ***** ***** # ***** * * # ***** * * # ***** * * # ***** ***** side = int(input("Enter side length: ")) lineNum = 1 dotNum = 1 for i in range(side): dotNum = 1 # filled square for i in range(side): print("*", end = "") print(end=" ") # hollow square for i in range(side): if lineNum == 1 or lineNum == side: print("*", end = "") else: if dotNum == 1 or dotNum == side: print("*", end = "") else: print(" ", end = "") dotNum += 1 lineNum += 1 print()
side = int(input('Enter side length: ')) line_num = 1 dot_num = 1 for i in range(side): dot_num = 1 for i in range(side): print('*', end='') print(end=' ') for i in range(side): if lineNum == 1 or lineNum == side: print('*', end='') elif dotNum == 1 or dotNum == side: print('*', end='') else: print(' ', end='') dot_num += 1 line_num += 1 print()
class Solution: def countBits(self, num: int) -> List[int]: result = [0] * (1 + num) for i in range(1, 1 + num): result[i] = result[i&(i - 1)] + 1 return result
class Solution: def count_bits(self, num: int) -> List[int]: result = [0] * (1 + num) for i in range(1, 1 + num): result[i] = result[i & i - 1] + 1 return result
# function to check if two strings are # anagram or not def anagram(s1, s2): # the sorted strings are checked if(sorted(s1)== sorted(s2)): print("The strings are anagrams.") else: print("The strings aren't anagrams.") #commonCharacterCount def commonCharacterCount(s1, s2): #find intersection(common elements) and put them into a list s = list(set(s1)) sum1 = 0 for i in s: #count the no.of occurances of each char in s1 and s2 and take the min to avoid duplication sum1+=min(s1.count(i),s2.count(i)) return sum1 def isBananagram(s1, s2): # if((commonCharacterCount(s1, s2)) and ( sorted(s1)== sorted(s2))): if((commonCharacterCount(s1, s2)) and anagram(s1, s2)): print("The string are Bannagrams") else: print("The string are not bananagrams")
def anagram(s1, s2): if sorted(s1) == sorted(s2): print('The strings are anagrams.') else: print("The strings aren't anagrams.") def common_character_count(s1, s2): s = list(set(s1)) sum1 = 0 for i in s: sum1 += min(s1.count(i), s2.count(i)) return sum1 def is_bananagram(s1, s2): if common_character_count(s1, s2) and anagram(s1, s2): print('The string are Bannagrams') else: print('The string are not bananagrams')
#!/usr/bin/env python # -*- coding: utf-8 -*- # Back of envelope calculations for a precious metals mining company try: oz_per_yr = int(input("How many ounces will be produced annually?: ")) price_per_oz = int(input("What is the estimated USD price per ounce for the year?: ")) aisc = int(input("What is the USD AISC?: ")) exchange_rate = float(input("What is the USD/CAD exchange rate?: ")) shrs_out = int(input("How many shares are outstanding?: ")) pe = int(input("What is the estimated PE ratio?: ")) values = { 'oz_per_yr': oz_per_yr, 'price_per_oz': price_per_oz, 'aisc': aisc, 'exchange_rate': exchange_rate, 'shrs_out': shrs_out, 'pe': pe } def share_price_calc(vals): oz_per_yr = vals['oz_per_yr'] price_per_oz = vals['price_per_oz'] aisc = vals['aisc'] exchange_rate = vals['exchange_rate'] shrs_out = vals['shrs_out'] pe = vals['pe'] share_price = (((oz_per_yr * (price_per_oz - aisc)) * exchange_rate) /shrs_out) * pe return share_price except ValueError: print("ValueError: Please enter a number (not a string).") finally: try: print(share_price_calc(values)) except Exception: print("Exception resulting from ValueError: Please enter a number (not a string).")
try: oz_per_yr = int(input('How many ounces will be produced annually?: ')) price_per_oz = int(input('What is the estimated USD price per ounce for the year?: ')) aisc = int(input('What is the USD AISC?: ')) exchange_rate = float(input('What is the USD/CAD exchange rate?: ')) shrs_out = int(input('How many shares are outstanding?: ')) pe = int(input('What is the estimated PE ratio?: ')) values = {'oz_per_yr': oz_per_yr, 'price_per_oz': price_per_oz, 'aisc': aisc, 'exchange_rate': exchange_rate, 'shrs_out': shrs_out, 'pe': pe} def share_price_calc(vals): oz_per_yr = vals['oz_per_yr'] price_per_oz = vals['price_per_oz'] aisc = vals['aisc'] exchange_rate = vals['exchange_rate'] shrs_out = vals['shrs_out'] pe = vals['pe'] share_price = oz_per_yr * (price_per_oz - aisc) * exchange_rate / shrs_out * pe return share_price except ValueError: print('ValueError: Please enter a number (not a string).') finally: try: print(share_price_calc(values)) except Exception: print('Exception resulting from ValueError: Please enter a number (not a string).')
class MergeSort: def __init__(self,array): self.array = array def result(self): self.sort(0,len(self.array)-1) return self.array def sort(self,front,rear): if front>rear or front == rear: return mid = int((front+rear)/2) self.sort(front,mid) self.sort(mid+1,rear) self.merge(front,mid,rear) def merge(self,front,mid,rear): n1 = mid-front+1 n2 = rear-mid L = [] R = [] for i in range(n1): L.append(self.array[front+i]) for j in range(n2): R.append(self.array[mid+j+1]) L.append(float('inf')) R.append(float('inf')) i = 0 j = 0 for k in range(front,rear+1): if L[i]<=R[j]: self.array[k]=L[i] i=i+1 else: self.array[k]=R[j] j=j+1 test = list(map(int,input().split(' '))) t = MergeSort(test) print(t.result())
class Mergesort: def __init__(self, array): self.array = array def result(self): self.sort(0, len(self.array) - 1) return self.array def sort(self, front, rear): if front > rear or front == rear: return mid = int((front + rear) / 2) self.sort(front, mid) self.sort(mid + 1, rear) self.merge(front, mid, rear) def merge(self, front, mid, rear): n1 = mid - front + 1 n2 = rear - mid l = [] r = [] for i in range(n1): L.append(self.array[front + i]) for j in range(n2): R.append(self.array[mid + j + 1]) L.append(float('inf')) R.append(float('inf')) i = 0 j = 0 for k in range(front, rear + 1): if L[i] <= R[j]: self.array[k] = L[i] i = i + 1 else: self.array[k] = R[j] j = j + 1 test = list(map(int, input().split(' '))) t = merge_sort(test) print(t.result())
#!/usr/bin/python def find_max_palindrome(min=100,max=999): max_palindrome = 0 a = 999 while a > 99: b = 999 while b >= a: prod = a*b if prod > max_palindrome and str(prod)==(str(prod)[::-1]): max_palindrome = prod b -= 1 a -= 1 return max_palindrome print (find_max_palindrome())
def find_max_palindrome(min=100, max=999): max_palindrome = 0 a = 999 while a > 99: b = 999 while b >= a: prod = a * b if prod > max_palindrome and str(prod) == str(prod)[::-1]: max_palindrome = prod b -= 1 a -= 1 return max_palindrome print(find_max_palindrome())
def write(): systemInfo_file = open("writeTest.txt", "a") systemInfo_file.write("\nTEST DATA2") systemInfo_file.close()
def write(): system_info_file = open('writeTest.txt', 'a') systemInfo_file.write('\nTEST DATA2') systemInfo_file.close()
# Problem Statement: https://www.hackerrank.com/challenges/exceptions/problem for _ in range(int(input())): try: a, b = map(int, input().split()) print(a // b) except (ZeroDivisionError, ValueError) as e: print(f'Error Code: {e}')
for _ in range(int(input())): try: (a, b) = map(int, input().split()) print(a // b) except (ZeroDivisionError, ValueError) as e: print(f'Error Code: {e}')
class Location: __slots__ = 'name', '_longitude', '_latitude' def __init__(self, name, longitude, latitude): self._longitude = longitude self._latitude = latitude self.name = name @property def longitude(self): return self._longitude @property def latitude(self): return self._latitude print(Location.__dict__) # {'__module__': '__main__', '__slots__': ('name', '_longitude', '_latitude'), '__init__': <function Location.__init__ at 0x00000237D7A39B80>, 'longitude': <property object at 0x00000237D7A36DB0>, 'latitude': <property object at 0x00000237D7A3F590>, # '_latitude': <member '_latitude' of 'Location' objects>, '_longitude': <member '_longitude' of 'Location' objects>, 'name': # <member 'name' of 'Location' objects>, '__doc__': None} Location.map_service = 'Google Maps' l = Location('Mumbai',longitude= 19.0760, latitude=72.8777) print(l.name, l.longitude, l.latitude) # ('Mumbai', 19.076, 72.8777) try: l.__dict__ except AttributeError as ex: print(ex) # 'Location' object has no attribute '__dict__' try: l.map_link = 'http://maps.google.com/...' except AttributeError as ex: print(ex) # 'Location' object has no attribute 'map_link' del l.name try: print(l.name) except AttributeError as ex: print(f'Attribute Error: {ex}') # Attribute Error: name l.name = 'Mumbai' print(l.name) # 'Mumbai' class Person: def __init__(self, name): self.name = name class Student(Person): __slots__ = 'age', def __init__(self, name, age): super().__init__(name) self.age = age s = Student('Python', 30) print(s.name, s.age, s.__dict__) # ('Python', 30, {'name': 'Python'}) class Person: __slots__ = '_name', 'age' def __init__(self, name, age): self.name = name self.age = age @property def name(self): return self._name @name.setter def name(self, name): self._name = name p = Person('Eric', 78) print(p.name, p.age) #('Eric', 78) try: print(p.__dict__) except AttributeError as ex: print(ex) # 'Person' object has no attribute '__dict__' hasattr(Person.name, '__get__'), hasattr(Person.name, '__set__') #(True, True) hasattr(Person.age, '__get__'), hasattr(Person.age, '__set__') #(True, True) class Person: __slots__ = 'name', '__dict__' def __init__(self, name, age): self.name = name self.age = age p = Person('Alex', 19) print(p.name, p.age, p.__dict__)
class Location: __slots__ = ('name', '_longitude', '_latitude') def __init__(self, name, longitude, latitude): self._longitude = longitude self._latitude = latitude self.name = name @property def longitude(self): return self._longitude @property def latitude(self): return self._latitude print(Location.__dict__) Location.map_service = 'Google Maps' l = location('Mumbai', longitude=19.076, latitude=72.8777) print(l.name, l.longitude, l.latitude) try: l.__dict__ except AttributeError as ex: print(ex) try: l.map_link = 'http://maps.google.com/...' except AttributeError as ex: print(ex) del l.name try: print(l.name) except AttributeError as ex: print(f'Attribute Error: {ex}') l.name = 'Mumbai' print(l.name) class Person: def __init__(self, name): self.name = name class Student(Person): __slots__ = ('age',) def __init__(self, name, age): super().__init__(name) self.age = age s = student('Python', 30) print(s.name, s.age, s.__dict__) class Person: __slots__ = ('_name', 'age') def __init__(self, name, age): self.name = name self.age = age @property def name(self): return self._name @name.setter def name(self, name): self._name = name p = person('Eric', 78) print(p.name, p.age) try: print(p.__dict__) except AttributeError as ex: print(ex) (hasattr(Person.name, '__get__'), hasattr(Person.name, '__set__')) (hasattr(Person.age, '__get__'), hasattr(Person.age, '__set__')) class Person: __slots__ = ('name', '__dict__') def __init__(self, name, age): self.name = name self.age = age p = person('Alex', 19) print(p.name, p.age, p.__dict__)
class Solution: def longestConsecutive(self, nums: List[int]) -> int: if not nums: return 0 nums.sort() count = 1 longest_streak = [] for index, value in enumerate(nums): if index + 1 >= len(nums): break if nums[index + 1] == value + 1: count += 1 longest_streak.append(count) else: count = 1 if not longest_streak: return count return max(longest_streak) A = Solution() print(A.longestConsecutive([9,1,4,7,3,-1,0,5,8,-1,6])) print(A.longestConsecutive([1])) print(A.longestConsecutive([])) print(A.longestConsecutive([-3,-2,-1,0])) print(A.longestConsecutive([1,1,1,1]))
class Solution: def longest_consecutive(self, nums: List[int]) -> int: if not nums: return 0 nums.sort() count = 1 longest_streak = [] for (index, value) in enumerate(nums): if index + 1 >= len(nums): break if nums[index + 1] == value + 1: count += 1 longest_streak.append(count) else: count = 1 if not longest_streak: return count return max(longest_streak) a = solution() print(A.longestConsecutive([9, 1, 4, 7, 3, -1, 0, 5, 8, -1, 6])) print(A.longestConsecutive([1])) print(A.longestConsecutive([])) print(A.longestConsecutive([-3, -2, -1, 0])) print(A.longestConsecutive([1, 1, 1, 1]))
jobs = {} class JobInfo(object): def __init__(self, jobId): self.jobId = jobId self.data = None self.handlers = []
jobs = {} class Jobinfo(object): def __init__(self, jobId): self.jobId = jobId self.data = None self.handlers = []
print(list(enumerate([]))) print(list(enumerate([1, 2, 3]))) print(list(enumerate([1, 2, 3], 5))) print(list(enumerate([1, 2, 3], -5))) print(list(enumerate(range(10000))))
print(list(enumerate([]))) print(list(enumerate([1, 2, 3]))) print(list(enumerate([1, 2, 3], 5))) print(list(enumerate([1, 2, 3], -5))) print(list(enumerate(range(10000))))
programming_dictonary = { "Bug":"An error in program that prevents the program running as expected", "Function":"A piece of code that you can call over and over again", } # Retreive print(programming_dictonary["Bug"]) # Adding items programming_dictonary["Loop"] = "The action of doing something again and again" empty_list = [] empty_dictonary = {} # wipe an existing dictonary - helpful in wiping out data of game # programming_dictonary = {} print(programming_dictonary.keys()) print(programming_dictonary.values()) # editing dictonary values programming_dictonary["Bug"] = "An moth in your computer" print(programming_dictonary) # Loop through dictonary for key in programming_dictonary: print(key,end=" : ") print(programming_dictonary[key])
programming_dictonary = {'Bug': 'An error in program that prevents the program running as expected', 'Function': 'A piece of code that you can call over and over again'} print(programming_dictonary['Bug']) programming_dictonary['Loop'] = 'The action of doing something again and again' empty_list = [] empty_dictonary = {} print(programming_dictonary.keys()) print(programming_dictonary.values()) programming_dictonary['Bug'] = 'An moth in your computer' print(programming_dictonary) for key in programming_dictonary: print(key, end=' : ') print(programming_dictonary[key])
# ========== base graph node class / generic knowledge representation (AST/ASG) class Object(): # node constructor with scalar initializer def __init__(self, V): # node class/type tag self.type = self.__class__.__name__.lower() # node name / scalar value self.value = V # slot{}s / attributes / associative array self.slot = {} # nest[]ed elements / ordered container self.nest = [] ## ============================================================== text dump # `print` callback method def __repr__(self): return self.dump() # pytest: dump without id,hashes,.. def test(self): return self.dump(test=True) # full text tree dump def dump(self, cycle=[], depth=0, prefix='', test=False): # head ret = self.pad(depth) + self.head(prefix, test) # cycle if self in cycle: return ret + ' _/' # slot{}s for i in self.keys(): ret += self[i].dump(cycle + [self], depth + 1, f'{i} = ', test) # nest[]ed for j, k in enumerate(self.nest): ret += k.dump(cycle + [self], depth + 1, f'{j}: ', test) # subtree return ret # tree padding def pad(self, depth): return '\n' + '\t' * depth # short `<T:V>`` header-only dump def head(self, prefix='', test=False): ret = f'{prefix}<{self.type}:{self.value}>' if not test: ret += f' @{id(self):x}' return ret ## ============================================================== operators # ` S.keys() ` sorted slot keys def keys(self): return sorted(self.slot.keys()) def __getitem__(self, key): assert isinstance(key, str) return self.slot[key] def __setitem__(self, key, that): assert isinstance(key, str) assert isinstance(that, Object) self.slot[key] = that return self def __lshift__(self, that): return self.__setitem__(that.type, that) def __rshift__(self, that): return self.__setitem__(that.value, that) # ` A // B ` push subgraph def __floordiv__(self, that): assert isinstance(that, Object) self.nest += [that] return self ## ========================================================== serialization def json(self, cycle=[], depth=0): raise NotImplementedError(self.json) ## ======================================================= graph evaluation def eval(self, env): raise NotImplementedError(self.eval)
class Object: def __init__(self, V): self.type = self.__class__.__name__.lower() self.value = V self.slot = {} self.nest = [] def __repr__(self): return self.dump() def test(self): return self.dump(test=True) def dump(self, cycle=[], depth=0, prefix='', test=False): ret = self.pad(depth) + self.head(prefix, test) if self in cycle: return ret + ' _/' for i in self.keys(): ret += self[i].dump(cycle + [self], depth + 1, f'{i} = ', test) for (j, k) in enumerate(self.nest): ret += k.dump(cycle + [self], depth + 1, f'{j}: ', test) return ret def pad(self, depth): return '\n' + '\t' * depth def head(self, prefix='', test=False): ret = f'{prefix}<{self.type}:{self.value}>' if not test: ret += f' @{id(self):x}' return ret def keys(self): return sorted(self.slot.keys()) def __getitem__(self, key): assert isinstance(key, str) return self.slot[key] def __setitem__(self, key, that): assert isinstance(key, str) assert isinstance(that, Object) self.slot[key] = that return self def __lshift__(self, that): return self.__setitem__(that.type, that) def __rshift__(self, that): return self.__setitem__(that.value, that) def __floordiv__(self, that): assert isinstance(that, Object) self.nest += [that] return self def json(self, cycle=[], depth=0): raise not_implemented_error(self.json) def eval(self, env): raise not_implemented_error(self.eval)