content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
class Solution: def twoSum(self, numbers, target): res = None left = 0 right = len(numbers) - 1 while left < right: result = numbers[left] + numbers[right] if result == target: res = [left + 1, right + 1] break elif result < target: left += 1 elif result > target: right -= 1 return res if __name__ == '__main__': soul = Solution() print(soul.twoSum([2, 7, 11, 15], 9))
class Solution: def two_sum(self, numbers, target): res = None left = 0 right = len(numbers) - 1 while left < right: result = numbers[left] + numbers[right] if result == target: res = [left + 1, right + 1] break elif result < target: left += 1 elif result > target: right -= 1 return res if __name__ == '__main__': soul = solution() print(soul.twoSum([2, 7, 11, 15], 9))
class CaesarShiftCipher: def __init__(self, shift=1): self.shift = shift def encrypt(self, plaintext): return ''.join( [self.num_2_char((self.char_2_num(letter) + self.shift) % 26) for letter in plaintext.lower()] ).upper() def decrypt(self, ciphertext: str) -> str: return ''.join( [self.num_2_char((self.char_2_num(letter) - self.shift) % 26) for letter in ciphertext.lower()] ).lower() @staticmethod def char_2_num(character: str) -> int: return ord(character.lower()) - ord('a') @staticmethod def num_2_char(number: int) -> str: return chr(number + ord('a'))
class Caesarshiftcipher: def __init__(self, shift=1): self.shift = shift def encrypt(self, plaintext): return ''.join([self.num_2_char((self.char_2_num(letter) + self.shift) % 26) for letter in plaintext.lower()]).upper() def decrypt(self, ciphertext: str) -> str: return ''.join([self.num_2_char((self.char_2_num(letter) - self.shift) % 26) for letter in ciphertext.lower()]).lower() @staticmethod def char_2_num(character: str) -> int: return ord(character.lower()) - ord('a') @staticmethod def num_2_char(number: int) -> str: return chr(number + ord('a'))
def factorial(n): if n < 2: return 1 return n * factorial(n - 1) def main(): n=6 print(factorial(n)) main()
def factorial(n): if n < 2: return 1 return n * factorial(n - 1) def main(): n = 6 print(factorial(n)) main()
numbers = [int(n) for n in input().split(' ')] n = len(numbers) for i in range(n): for j in range(0, n - i - 1): if numbers[j] > numbers[j + 1]: numbers[j], numbers[j + 1] = numbers[j + 1], numbers[j] print(' '.join([str(n) for n in numbers]))
numbers = [int(n) for n in input().split(' ')] n = len(numbers) for i in range(n): for j in range(0, n - i - 1): if numbers[j] > numbers[j + 1]: (numbers[j], numbers[j + 1]) = (numbers[j + 1], numbers[j]) print(' '.join([str(n) for n in numbers]))
# coding: utf8 # try something like def index(): '''main page that allows searching for and displaying audio listings''' #create search form formSearch = FORM(INPUT(_id='searchInput', requires=[IS_NOT_EMPTY(error_message='you have to enter something to search for'), IS_LENGTH(50, error_message='you can\'t have such a long search term, limit is 50 characters')]), INPUT(_type='submit', _id='searchButton'), _action='', _onsubmit='return search()', _method='get') return dict(formSearch=formSearch)
def index(): """main page that allows searching for and displaying audio listings""" form_search = form(input(_id='searchInput', requires=[is_not_empty(error_message='you have to enter something to search for'), is_length(50, error_message="you can't have such a long search term, limit is 50 characters")]), input(_type='submit', _id='searchButton'), _action='', _onsubmit='return search()', _method='get') return dict(formSearch=formSearch)
# Register the HourglassTree report addon register(REPORT, id = 'hourglass_chart', name = _("Hourglass Tree"), description = _("Produces a graphical report combining an ancestor tree and a descendant tree."), version = '1.0.0', gramps_target_version = '5.1', status = STABLE, fname = 'hourglasstree.py', authors = ["Peter Zingg"], authors_email = ["[email protected]"], category = CATEGORY_DRAW, require_active = True, reportclass = 'HourglassTree', optionclass = 'HourglassTreeOptions', report_modes = [REPORT_MODE_GUI, REPORT_MODE_CLI], ) if False: register(REPORT, id = 'family_hourglass_chart', name = _("Family Hourglass Tree"), description = _("Produces a graphical report combining an ancestor tree and a descendant tree."), version = '1.0.0', gramps_target_version = '5.1', status = STABLE, fname = 'hourglasstree.py', authors = ["Peter Zingg"], authors_email = ["[email protected]"], category = CATEGORY_DRAW, require_active = True, reportclass = 'HourglassTree', optionclass = 'HourglassTreeOptions', report_modes = [REPORT_MODE_GUI, REPORT_MODE_CLI], )
register(REPORT, id='hourglass_chart', name=_('Hourglass Tree'), description=_('Produces a graphical report combining an ancestor tree and a descendant tree.'), version='1.0.0', gramps_target_version='5.1', status=STABLE, fname='hourglasstree.py', authors=['Peter Zingg'], authors_email=['[email protected]'], category=CATEGORY_DRAW, require_active=True, reportclass='HourglassTree', optionclass='HourglassTreeOptions', report_modes=[REPORT_MODE_GUI, REPORT_MODE_CLI]) if False: register(REPORT, id='family_hourglass_chart', name=_('Family Hourglass Tree'), description=_('Produces a graphical report combining an ancestor tree and a descendant tree.'), version='1.0.0', gramps_target_version='5.1', status=STABLE, fname='hourglasstree.py', authors=['Peter Zingg'], authors_email=['[email protected]'], category=CATEGORY_DRAW, require_active=True, reportclass='HourglassTree', optionclass='HourglassTreeOptions', report_modes=[REPORT_MODE_GUI, REPORT_MODE_CLI])
# # PySNMP MIB module Nortel-Magellan-Passport-PppMIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Nortel-Magellan-Passport-PppMIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:18:42 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") ValueSizeConstraint, ConstraintsIntersection, SingleValueConstraint, ValueRangeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ConstraintsIntersection", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsUnion") Integer32, RowStatus, Gauge32, StorageType, Counter32, Unsigned32, DisplayString, InterfaceIndex = mibBuilder.importSymbols("Nortel-Magellan-Passport-StandardTextualConventionsMIB", "Integer32", "RowStatus", "Gauge32", "StorageType", "Counter32", "Unsigned32", "DisplayString", "InterfaceIndex") NonReplicated, Link = mibBuilder.importSymbols("Nortel-Magellan-Passport-TextualConventionsMIB", "NonReplicated", "Link") components, passportMIBs = mibBuilder.importSymbols("Nortel-Magellan-Passport-UsefulDefinitionsMIB", "components", "passportMIBs") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") Integer32, iso, TimeTicks, MibIdentifier, NotificationType, Gauge32, Counter32, ModuleIdentity, Unsigned32, IpAddress, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter64, Bits, ObjectIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "iso", "TimeTicks", "MibIdentifier", "NotificationType", "Gauge32", "Counter32", "ModuleIdentity", "Unsigned32", "IpAddress", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter64", "Bits", "ObjectIdentity") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") pppMIB = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 33)) ppp = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102)) pppRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 1), ) if mibBuilder.loadTexts: pppRowStatusTable.setStatus('mandatory') pppRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-PppMIB", "pppIndex")) if mibBuilder.loadTexts: pppRowStatusEntry.setStatus('mandatory') pppRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 1, 1, 1), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: pppRowStatus.setStatus('mandatory') pppComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppComponentName.setStatus('mandatory') pppStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppStorageType.setStatus('mandatory') pppIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))) if mibBuilder.loadTexts: pppIndex.setStatus('mandatory') pppCidDataTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 20), ) if mibBuilder.loadTexts: pppCidDataTable.setStatus('mandatory') pppCidDataEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 20, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-PppMIB", "pppIndex")) if mibBuilder.loadTexts: pppCidDataEntry.setStatus('mandatory') pppCustomerIdentifier = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 20, 1, 1), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 8191), ))).setMaxAccess("readwrite") if mibBuilder.loadTexts: pppCustomerIdentifier.setStatus('mandatory') pppIfEntryTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 21), ) if mibBuilder.loadTexts: pppIfEntryTable.setStatus('mandatory') pppIfEntryEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 21, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-PppMIB", "pppIndex")) if mibBuilder.loadTexts: pppIfEntryEntry.setStatus('mandatory') pppIfAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 21, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("testing", 3))).clone('up')).setMaxAccess("readwrite") if mibBuilder.loadTexts: pppIfAdminStatus.setStatus('mandatory') pppIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 21, 1, 2), InterfaceIndex().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: pppIfIndex.setStatus('mandatory') pppMpTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 22), ) if mibBuilder.loadTexts: pppMpTable.setStatus('mandatory') pppMpEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 22, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-PppMIB", "pppIndex")) if mibBuilder.loadTexts: pppMpEntry.setStatus('mandatory') pppLinkToProtocolPort = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 22, 1, 1), Link()).setMaxAccess("readwrite") if mibBuilder.loadTexts: pppLinkToProtocolPort.setStatus('mandatory') pppStateTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 23), ) if mibBuilder.loadTexts: pppStateTable.setStatus('mandatory') pppStateEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 23, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-PppMIB", "pppIndex")) if mibBuilder.loadTexts: pppStateEntry.setStatus('mandatory') pppAdminState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 23, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("locked", 0), ("unlocked", 1), ("shuttingDown", 2))).clone('unlocked')).setMaxAccess("readonly") if mibBuilder.loadTexts: pppAdminState.setStatus('mandatory') pppOperationalState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 23, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1))).clone('disabled')).setMaxAccess("readonly") if mibBuilder.loadTexts: pppOperationalState.setStatus('mandatory') pppUsageState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 23, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("idle", 0), ("active", 1), ("busy", 2))).clone('idle')).setMaxAccess("readonly") if mibBuilder.loadTexts: pppUsageState.setStatus('mandatory') pppOperStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 24), ) if mibBuilder.loadTexts: pppOperStatusTable.setStatus('mandatory') pppOperStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 24, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-PppMIB", "pppIndex")) if mibBuilder.loadTexts: pppOperStatusEntry.setStatus('mandatory') pppSnmpOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 24, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("testing", 3))).clone('up')).setMaxAccess("readonly") if mibBuilder.loadTexts: pppSnmpOperStatus.setStatus('mandatory') pppLnk = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2)) pppLnkRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 1), ) if mibBuilder.loadTexts: pppLnkRowStatusTable.setStatus('mandatory') pppLnkRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-PppMIB", "pppIndex"), (0, "Nortel-Magellan-Passport-PppMIB", "pppLnkIndex")) if mibBuilder.loadTexts: pppLnkRowStatusEntry.setStatus('mandatory') pppLnkRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLnkRowStatus.setStatus('mandatory') pppLnkComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLnkComponentName.setStatus('mandatory') pppLnkStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLnkStorageType.setStatus('mandatory') pppLnkIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 1, 1, 10), NonReplicated()) if mibBuilder.loadTexts: pppLnkIndex.setStatus('mandatory') pppLnkProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 10), ) if mibBuilder.loadTexts: pppLnkProvTable.setStatus('mandatory') pppLnkProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-PppMIB", "pppIndex"), (0, "Nortel-Magellan-Passport-PppMIB", "pppLnkIndex")) if mibBuilder.loadTexts: pppLnkProvEntry.setStatus('mandatory') pppLnkConfigInitialMru = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 10, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(68, 18000)).clone(18000)).setMaxAccess("readwrite") if mibBuilder.loadTexts: pppLnkConfigInitialMru.setStatus('mandatory') pppLnkConfigMagicNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 10, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2))).clone('enabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: pppLnkConfigMagicNumber.setStatus('mandatory') pppLnkRestartTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 10, 1, 6), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1000, 10000)).clone(3000)).setMaxAccess("readwrite") if mibBuilder.loadTexts: pppLnkRestartTimer.setStatus('mandatory') pppLnkContinuityMonitor = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 10, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('enabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: pppLnkContinuityMonitor.setStatus('mandatory') pppLnkNegativeAckTries = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 10, 1, 8), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295)).clone(10)).setMaxAccess("readwrite") if mibBuilder.loadTexts: pppLnkNegativeAckTries.setStatus('mandatory') pppLnkQualityThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 10, 1, 9), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(10, 99)).clone(90)).setMaxAccess("readwrite") if mibBuilder.loadTexts: pppLnkQualityThreshold.setStatus('mandatory') pppLnkQualityWindow = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 10, 1, 10), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(10, 400)).clone(30)).setMaxAccess("readwrite") if mibBuilder.loadTexts: pppLnkQualityWindow.setStatus('mandatory') pppLnkTerminateRequestTries = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 10, 1, 11), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295)).clone(10)).setMaxAccess("readwrite") if mibBuilder.loadTexts: pppLnkTerminateRequestTries.setStatus('mandatory') pppLnkConfigureRequestTries = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 10, 1, 12), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295)).clone(1000000000)).setMaxAccess("readwrite") if mibBuilder.loadTexts: pppLnkConfigureRequestTries.setStatus('mandatory') pppLnkOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 11), ) if mibBuilder.loadTexts: pppLnkOperTable.setStatus('mandatory') pppLnkOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 11, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-PppMIB", "pppIndex"), (0, "Nortel-Magellan-Passport-PppMIB", "pppLnkIndex")) if mibBuilder.loadTexts: pppLnkOperEntry.setStatus('mandatory') pppLnkOperState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 11, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("initial", 0), ("starting", 1), ("closed", 2), ("stopped", 3), ("closing", 4), ("stopping", 5), ("reqsent", 6), ("ackrcvd", 7), ("acksent", 8), ("opened", 9))).clone('initial')).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLnkOperState.setStatus('mandatory') pppLnkLineCondition = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 11, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 3, 4))).clone(namedValues=NamedValues(("ok", 0), ("looped", 1), ("noClock", 3), ("badLineCondition", 4))).clone('ok')).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLnkLineCondition.setStatus('mandatory') pppLnkBadAddresses = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 11, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLnkBadAddresses.setStatus('mandatory') pppLnkBadControls = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 11, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLnkBadControls.setStatus('mandatory') pppLnkPacketTooLongs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 11, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLnkPacketTooLongs.setStatus('mandatory') pppLnkBadFcss = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 11, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLnkBadFcss.setStatus('mandatory') pppLnkLocalMru = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 11, 1, 8), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483648)).clone(1)).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLnkLocalMru.setStatus('mandatory') pppLnkRemoteMru = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 11, 1, 9), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483648))).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLnkRemoteMru.setStatus('mandatory') pppLnkTransmitFcsSize = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 11, 1, 16), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 128))).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLnkTransmitFcsSize.setStatus('mandatory') pppLnkReceiveFcsSize = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 11, 1, 17), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 128))).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLnkReceiveFcsSize.setStatus('mandatory') pppLqm = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 3)) pppLqmRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 3, 1), ) if mibBuilder.loadTexts: pppLqmRowStatusTable.setStatus('mandatory') pppLqmRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 3, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-PppMIB", "pppIndex"), (0, "Nortel-Magellan-Passport-PppMIB", "pppLqmIndex")) if mibBuilder.loadTexts: pppLqmRowStatusEntry.setStatus('mandatory') pppLqmRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 3, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLqmRowStatus.setStatus('mandatory') pppLqmComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 3, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLqmComponentName.setStatus('mandatory') pppLqmStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 3, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLqmStorageType.setStatus('mandatory') pppLqmIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 3, 1, 1, 10), NonReplicated()) if mibBuilder.loadTexts: pppLqmIndex.setStatus('mandatory') pppLqmProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 3, 10), ) if mibBuilder.loadTexts: pppLqmProvTable.setStatus('mandatory') pppLqmProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 3, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-PppMIB", "pppIndex"), (0, "Nortel-Magellan-Passport-PppMIB", "pppLqmIndex")) if mibBuilder.loadTexts: pppLqmProvEntry.setStatus('mandatory') pppLqmConfigPeriod = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 3, 10, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: pppLqmConfigPeriod.setStatus('mandatory') pppLqmConfigStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 3, 10, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: pppLqmConfigStatus.setStatus('mandatory') pppLqmOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 3, 11), ) if mibBuilder.loadTexts: pppLqmOperTable.setStatus('mandatory') pppLqmOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 3, 11, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-PppMIB", "pppIndex"), (0, "Nortel-Magellan-Passport-PppMIB", "pppLqmIndex")) if mibBuilder.loadTexts: pppLqmOperEntry.setStatus('mandatory') pppLqmQuality = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 3, 11, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("good", 1), ("bad", 2), ("notDetermined", 3))).clone('notDetermined')).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLqmQuality.setStatus('mandatory') pppLqmInGoodOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 3, 11, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLqmInGoodOctets.setStatus('mandatory') pppLqmLocalPeriod = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 3, 11, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295)).clone(1)).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLqmLocalPeriod.setStatus('mandatory') pppLqmRemotePeriod = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 3, 11, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295)).clone(1)).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLqmRemotePeriod.setStatus('mandatory') pppLqmOutLqrs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 3, 11, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLqmOutLqrs.setStatus('mandatory') pppLqmInLqrs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 3, 11, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLqmInLqrs.setStatus('mandatory') pppNcp = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4)) pppNcpRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 1), ) if mibBuilder.loadTexts: pppNcpRowStatusTable.setStatus('mandatory') pppNcpRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-PppMIB", "pppIndex"), (0, "Nortel-Magellan-Passport-PppMIB", "pppNcpIndex")) if mibBuilder.loadTexts: pppNcpRowStatusEntry.setStatus('mandatory') pppNcpRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppNcpRowStatus.setStatus('mandatory') pppNcpComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppNcpComponentName.setStatus('mandatory') pppNcpStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppNcpStorageType.setStatus('mandatory') pppNcpIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 1, 1, 10), NonReplicated()) if mibBuilder.loadTexts: pppNcpIndex.setStatus('mandatory') pppNcpBprovTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 11), ) if mibBuilder.loadTexts: pppNcpBprovTable.setStatus('mandatory') pppNcpBprovEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 11, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-PppMIB", "pppIndex"), (0, "Nortel-Magellan-Passport-PppMIB", "pppNcpIndex")) if mibBuilder.loadTexts: pppNcpBprovEntry.setStatus('mandatory') pppNcpBConfigTinygram = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 11, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2))).clone('enabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: pppNcpBConfigTinygram.setStatus('mandatory') pppNcpBConfigLanId = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 11, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2))).clone('enabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: pppNcpBConfigLanId.setStatus('mandatory') pppNcpIpOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 12), ) if mibBuilder.loadTexts: pppNcpIpOperTable.setStatus('mandatory') pppNcpIpOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 12, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-PppMIB", "pppIndex"), (0, "Nortel-Magellan-Passport-PppMIB", "pppNcpIndex")) if mibBuilder.loadTexts: pppNcpIpOperEntry.setStatus('mandatory') pppNcpIpOperState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 12, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("initial", 0), ("starting", 1), ("closed", 2), ("stopped", 3), ("closing", 4), ("stopping", 5), ("reqsent", 6), ("ackrcvd", 7), ("acksent", 8), ("opened", 9))).clone('initial')).setMaxAccess("readonly") if mibBuilder.loadTexts: pppNcpIpOperState.setStatus('mandatory') pppNcpBoperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 14), ) if mibBuilder.loadTexts: pppNcpBoperTable.setStatus('mandatory') pppNcpBoperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 14, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-PppMIB", "pppIndex"), (0, "Nortel-Magellan-Passport-PppMIB", "pppNcpIndex")) if mibBuilder.loadTexts: pppNcpBoperEntry.setStatus('mandatory') pppNcpBOperState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 14, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("initial", 0), ("starting", 1), ("closed", 2), ("stopped", 3), ("closing", 4), ("stopping", 5), ("reqsent", 6), ("ackrcvd", 7), ("acksent", 8), ("opened", 9))).clone('initial')).setMaxAccess("readonly") if mibBuilder.loadTexts: pppNcpBOperState.setStatus('mandatory') pppNcpBLocalToRemoteTinygramComp = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 14, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2))).clone('disabled')).setMaxAccess("readonly") if mibBuilder.loadTexts: pppNcpBLocalToRemoteTinygramComp.setStatus('mandatory') pppNcpBRemoteToLocalTinygramComp = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 14, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2))).clone('disabled')).setMaxAccess("readonly") if mibBuilder.loadTexts: pppNcpBRemoteToLocalTinygramComp.setStatus('mandatory') pppNcpBLocalToRemoteLanId = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 14, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2))).clone('disabled')).setMaxAccess("readonly") if mibBuilder.loadTexts: pppNcpBLocalToRemoteLanId.setStatus('mandatory') pppNcpBRemoteToLocalLanId = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 14, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2))).clone('disabled')).setMaxAccess("readonly") if mibBuilder.loadTexts: pppNcpBRemoteToLocalLanId.setStatus('mandatory') pppNcpOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 16), ) if mibBuilder.loadTexts: pppNcpOperTable.setStatus('mandatory') pppNcpOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 16, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-PppMIB", "pppIndex"), (0, "Nortel-Magellan-Passport-PppMIB", "pppNcpIndex")) if mibBuilder.loadTexts: pppNcpOperEntry.setStatus('mandatory') pppNcpAppletalkOperState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 16, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("initial", 0), ("starting", 1), ("closed", 2), ("stopped", 3), ("closing", 4), ("stopping", 5), ("reqsent", 6), ("ackrcvd", 7), ("acksent", 8), ("opened", 9))).clone('initial')).setMaxAccess("readonly") if mibBuilder.loadTexts: pppNcpAppletalkOperState.setStatus('mandatory') pppNcpIpxOperState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 16, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("initial", 0), ("starting", 1), ("closed", 2), ("stopped", 3), ("closing", 4), ("stopping", 5), ("reqsent", 6), ("ackrcvd", 7), ("acksent", 8), ("opened", 9))).clone('initial')).setMaxAccess("readonly") if mibBuilder.loadTexts: pppNcpIpxOperState.setStatus('mandatory') pppNcpXnsOperState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 16, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("initial", 0), ("starting", 1), ("closed", 2), ("stopped", 3), ("closing", 4), ("stopping", 5), ("reqsent", 6), ("ackrcvd", 7), ("acksent", 8), ("opened", 9))).clone('initial')).setMaxAccess("readonly") if mibBuilder.loadTexts: pppNcpXnsOperState.setStatus('mandatory') pppNcpDecnetOperState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 16, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("initial", 0), ("starting", 1), ("closed", 2), ("stopped", 3), ("closing", 4), ("stopping", 5), ("reqsent", 6), ("ackrcvd", 7), ("acksent", 8), ("opened", 9))).clone('initial')).setMaxAccess("readonly") if mibBuilder.loadTexts: pppNcpDecnetOperState.setStatus('mandatory') pppNcpBmcEntry = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 2)) pppNcpBmcEntryRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 2, 1), ) if mibBuilder.loadTexts: pppNcpBmcEntryRowStatusTable.setStatus('mandatory') pppNcpBmcEntryRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 2, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-PppMIB", "pppIndex"), (0, "Nortel-Magellan-Passport-PppMIB", "pppNcpIndex"), (0, "Nortel-Magellan-Passport-PppMIB", "pppNcpBmcEntryMacTypeIndex")) if mibBuilder.loadTexts: pppNcpBmcEntryRowStatusEntry.setStatus('mandatory') pppNcpBmcEntryRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 2, 1, 1, 1), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: pppNcpBmcEntryRowStatus.setStatus('mandatory') pppNcpBmcEntryComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 2, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppNcpBmcEntryComponentName.setStatus('mandatory') pppNcpBmcEntryStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 2, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppNcpBmcEntryStorageType.setStatus('mandatory') pppNcpBmcEntryMacTypeIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 2, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("ethernet", 1), ("tokenBus", 2), ("tokenRing", 3), ("fddi", 4)))) if mibBuilder.loadTexts: pppNcpBmcEntryMacTypeIndex.setStatus('mandatory') pppNcpBmcEntryProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 2, 10), ) if mibBuilder.loadTexts: pppNcpBmcEntryProvTable.setStatus('mandatory') pppNcpBmcEntryProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 2, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-PppMIB", "pppIndex"), (0, "Nortel-Magellan-Passport-PppMIB", "pppNcpIndex"), (0, "Nortel-Magellan-Passport-PppMIB", "pppNcpBmcEntryMacTypeIndex")) if mibBuilder.loadTexts: pppNcpBmcEntryProvEntry.setStatus('mandatory') pppNcpBmcEntryLocalStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 2, 10, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("accept", 1))).clone('accept')).setMaxAccess("readwrite") if mibBuilder.loadTexts: pppNcpBmcEntryLocalStatus.setStatus('mandatory') pppNcpBmEntry = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 3)) pppNcpBmEntryRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 3, 1), ) if mibBuilder.loadTexts: pppNcpBmEntryRowStatusTable.setStatus('mandatory') pppNcpBmEntryRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 3, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-PppMIB", "pppIndex"), (0, "Nortel-Magellan-Passport-PppMIB", "pppNcpIndex"), (0, "Nortel-Magellan-Passport-PppMIB", "pppNcpBmEntryMacTypeIndex")) if mibBuilder.loadTexts: pppNcpBmEntryRowStatusEntry.setStatus('mandatory') pppNcpBmEntryRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 3, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppNcpBmEntryRowStatus.setStatus('mandatory') pppNcpBmEntryComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 3, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppNcpBmEntryComponentName.setStatus('mandatory') pppNcpBmEntryStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 3, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppNcpBmEntryStorageType.setStatus('mandatory') pppNcpBmEntryMacTypeIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 3, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("ethernet", 1), ("tokenBus", 2), ("tokenRing", 3), ("fddi", 4)))) if mibBuilder.loadTexts: pppNcpBmEntryMacTypeIndex.setStatus('mandatory') pppNcpBmEntryOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 3, 10), ) if mibBuilder.loadTexts: pppNcpBmEntryOperTable.setStatus('mandatory') pppNcpBmEntryOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 3, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-PppMIB", "pppIndex"), (0, "Nortel-Magellan-Passport-PppMIB", "pppNcpIndex"), (0, "Nortel-Magellan-Passport-PppMIB", "pppNcpBmEntryMacTypeIndex")) if mibBuilder.loadTexts: pppNcpBmEntryOperEntry.setStatus('mandatory') pppNcpBmEntryLocalStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 3, 10, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("accept", 1), ("dontAccept", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: pppNcpBmEntryLocalStatus.setStatus('mandatory') pppNcpBmEntryRemoteStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 3, 10, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("accept", 1), ("dontAccept", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: pppNcpBmEntryRemoteStatus.setStatus('mandatory') pppFramer = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5)) pppFramerRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 1), ) if mibBuilder.loadTexts: pppFramerRowStatusTable.setStatus('mandatory') pppFramerRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-PppMIB", "pppIndex"), (0, "Nortel-Magellan-Passport-PppMIB", "pppFramerIndex")) if mibBuilder.loadTexts: pppFramerRowStatusEntry.setStatus('mandatory') pppFramerRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppFramerRowStatus.setStatus('mandatory') pppFramerComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppFramerComponentName.setStatus('mandatory') pppFramerStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppFramerStorageType.setStatus('mandatory') pppFramerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 1, 1, 10), NonReplicated()) if mibBuilder.loadTexts: pppFramerIndex.setStatus('mandatory') pppFramerProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 10), ) if mibBuilder.loadTexts: pppFramerProvTable.setStatus('mandatory') pppFramerProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-PppMIB", "pppIndex"), (0, "Nortel-Magellan-Passport-PppMIB", "pppFramerIndex")) if mibBuilder.loadTexts: pppFramerProvEntry.setStatus('mandatory') pppFramerInterfaceName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 10, 1, 1), Link()).setMaxAccess("readwrite") if mibBuilder.loadTexts: pppFramerInterfaceName.setStatus('mandatory') pppFramerStateTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 12), ) if mibBuilder.loadTexts: pppFramerStateTable.setStatus('mandatory') pppFramerStateEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 12, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-PppMIB", "pppIndex"), (0, "Nortel-Magellan-Passport-PppMIB", "pppFramerIndex")) if mibBuilder.loadTexts: pppFramerStateEntry.setStatus('mandatory') pppFramerAdminState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 12, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("locked", 0), ("unlocked", 1), ("shuttingDown", 2))).clone('unlocked')).setMaxAccess("readonly") if mibBuilder.loadTexts: pppFramerAdminState.setStatus('mandatory') pppFramerOperationalState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 12, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1))).clone('disabled')).setMaxAccess("readonly") if mibBuilder.loadTexts: pppFramerOperationalState.setStatus('mandatory') pppFramerUsageState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 12, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("idle", 0), ("active", 1), ("busy", 2))).clone('idle')).setMaxAccess("readonly") if mibBuilder.loadTexts: pppFramerUsageState.setStatus('mandatory') pppFramerStatsTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 13), ) if mibBuilder.loadTexts: pppFramerStatsTable.setStatus('mandatory') pppFramerStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 13, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-PppMIB", "pppIndex"), (0, "Nortel-Magellan-Passport-PppMIB", "pppFramerIndex")) if mibBuilder.loadTexts: pppFramerStatsEntry.setStatus('mandatory') pppFramerFrmToIf = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 13, 1, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppFramerFrmToIf.setStatus('mandatory') pppFramerFrmFromIf = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 13, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppFramerFrmFromIf.setStatus('mandatory') pppFramerAborts = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 13, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppFramerAborts.setStatus('mandatory') pppFramerCrcErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 13, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppFramerCrcErrors.setStatus('mandatory') pppFramerLrcErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 13, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppFramerLrcErrors.setStatus('mandatory') pppFramerNonOctetErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 13, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppFramerNonOctetErrors.setStatus('mandatory') pppFramerOverruns = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 13, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppFramerOverruns.setStatus('mandatory') pppFramerUnderruns = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 13, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppFramerUnderruns.setStatus('mandatory') pppFramerLargeFrmErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 13, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppFramerLargeFrmErrors.setStatus('mandatory') pppFramerUtilTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 14), ) if mibBuilder.loadTexts: pppFramerUtilTable.setStatus('mandatory') pppFramerUtilEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 14, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-PppMIB", "pppIndex"), (0, "Nortel-Magellan-Passport-PppMIB", "pppFramerIndex")) if mibBuilder.loadTexts: pppFramerUtilEntry.setStatus('mandatory') pppFramerNormPrioLinkUtilToIf = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 14, 1, 1), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly") if mibBuilder.loadTexts: pppFramerNormPrioLinkUtilToIf.setStatus('mandatory') pppFramerNormPrioLinkUtilFromIf = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 14, 1, 3), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly") if mibBuilder.loadTexts: pppFramerNormPrioLinkUtilFromIf.setStatus('mandatory') pppLeq = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6)) pppLeqRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 1), ) if mibBuilder.loadTexts: pppLeqRowStatusTable.setStatus('mandatory') pppLeqRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-PppMIB", "pppIndex"), (0, "Nortel-Magellan-Passport-PppMIB", "pppLeqIndex")) if mibBuilder.loadTexts: pppLeqRowStatusEntry.setStatus('mandatory') pppLeqRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 1, 1, 1), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: pppLeqRowStatus.setStatus('mandatory') pppLeqComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLeqComponentName.setStatus('mandatory') pppLeqStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLeqStorageType.setStatus('mandatory') pppLeqIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 1, 1, 10), NonReplicated()) if mibBuilder.loadTexts: pppLeqIndex.setStatus('mandatory') pppLeqProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 10), ) if mibBuilder.loadTexts: pppLeqProvTable.setStatus('mandatory') pppLeqProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-PppMIB", "pppIndex"), (0, "Nortel-Magellan-Passport-PppMIB", "pppLeqIndex")) if mibBuilder.loadTexts: pppLeqProvEntry.setStatus('mandatory') pppLeqMaxPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 10, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 2048))).setMaxAccess("readwrite") if mibBuilder.loadTexts: pppLeqMaxPackets.setStatus('mandatory') pppLeqMaxMsecData = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 10, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(100, 60000)).clone(10000)).setMaxAccess("readwrite") if mibBuilder.loadTexts: pppLeqMaxMsecData.setStatus('mandatory') pppLeqMaxPercentMulticast = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 10, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 100)).clone(50)).setMaxAccess("readwrite") if mibBuilder.loadTexts: pppLeqMaxPercentMulticast.setStatus('mandatory') pppLeqTimeToLive = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 10, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(100, 60000)).clone(10000)).setMaxAccess("readwrite") if mibBuilder.loadTexts: pppLeqTimeToLive.setStatus('mandatory') pppLeqStatsTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 11), ) if mibBuilder.loadTexts: pppLeqStatsTable.setStatus('mandatory') pppLeqStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 11, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-PppMIB", "pppIndex"), (0, "Nortel-Magellan-Passport-PppMIB", "pppLeqIndex")) if mibBuilder.loadTexts: pppLeqStatsEntry.setStatus('mandatory') pppLeqTimedOutPkt = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 11, 1, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLeqTimedOutPkt.setStatus('mandatory') pppLeqHardwareForcedPkt = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 11, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLeqHardwareForcedPkt.setStatus('mandatory') pppLeqForcedPktDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 11, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLeqForcedPktDiscards.setStatus('mandatory') pppLeqQueuePurgeDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 11, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLeqQueuePurgeDiscards.setStatus('mandatory') pppLeqTStatsTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 12), ) if mibBuilder.loadTexts: pppLeqTStatsTable.setStatus('mandatory') pppLeqTStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 12, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-PppMIB", "pppIndex"), (0, "Nortel-Magellan-Passport-PppMIB", "pppLeqIndex")) if mibBuilder.loadTexts: pppLeqTStatsEntry.setStatus('mandatory') pppLeqTotalPktHandled = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 12, 1, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLeqTotalPktHandled.setStatus('mandatory') pppLeqTotalPktForwarded = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 12, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLeqTotalPktForwarded.setStatus('mandatory') pppLeqTotalPktQueued = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 12, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLeqTotalPktQueued.setStatus('mandatory') pppLeqTotalMulticastPkt = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 12, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLeqTotalMulticastPkt.setStatus('mandatory') pppLeqTotalPktDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 12, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLeqTotalPktDiscards.setStatus('mandatory') pppLeqCStatsTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 13), ) if mibBuilder.loadTexts: pppLeqCStatsTable.setStatus('mandatory') pppLeqCStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 13, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-PppMIB", "pppIndex"), (0, "Nortel-Magellan-Passport-PppMIB", "pppLeqIndex")) if mibBuilder.loadTexts: pppLeqCStatsEntry.setStatus('mandatory') pppLeqCurrentPktQueued = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 13, 1, 1), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLeqCurrentPktQueued.setStatus('mandatory') pppLeqCurrentBytesQueued = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 13, 1, 2), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLeqCurrentBytesQueued.setStatus('mandatory') pppLeqCurrentMulticastQueued = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 13, 1, 3), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLeqCurrentMulticastQueued.setStatus('mandatory') pppLeqThrStatsTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 14), ) if mibBuilder.loadTexts: pppLeqThrStatsTable.setStatus('mandatory') pppLeqThrStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 14, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-PppMIB", "pppIndex"), (0, "Nortel-Magellan-Passport-PppMIB", "pppLeqIndex")) if mibBuilder.loadTexts: pppLeqThrStatsEntry.setStatus('mandatory') pppLeqQueuePktThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 14, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLeqQueuePktThreshold.setStatus('mandatory') pppLeqPktThresholdExceeded = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 14, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLeqPktThresholdExceeded.setStatus('mandatory') pppLeqQueueByteThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 14, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLeqQueueByteThreshold.setStatus('mandatory') pppLeqByteThresholdExceeded = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 14, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLeqByteThresholdExceeded.setStatus('mandatory') pppLeqQueueMulticastThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 14, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLeqQueueMulticastThreshold.setStatus('mandatory') pppLeqMulThresholdExceeded = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 14, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLeqMulThresholdExceeded.setStatus('mandatory') pppLeqMemThresholdExceeded = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 14, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: pppLeqMemThresholdExceeded.setStatus('mandatory') pppGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 33, 1)) pppGroupBC = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 33, 1, 3)) pppGroupBC02 = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 33, 1, 3, 3)) pppGroupBC02A = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 33, 1, 3, 3, 2)) pppCapabilities = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 33, 3)) pppCapabilitiesBC = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 33, 3, 3)) pppCapabilitiesBC02 = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 33, 3, 3, 3)) pppCapabilitiesBC02A = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 33, 3, 3, 3, 2)) mibBuilder.exportSymbols("Nortel-Magellan-Passport-PppMIB", pppLeqTimeToLive=pppLeqTimeToLive, pppLnkStorageType=pppLnkStorageType, pppLqmOutLqrs=pppLqmOutLqrs, pppLeqRowStatus=pppLeqRowStatus, pppFramerInterfaceName=pppFramerInterfaceName, pppNcpBConfigLanId=pppNcpBConfigLanId, pppFramerRowStatusEntry=pppFramerRowStatusEntry, pppLnkTransmitFcsSize=pppLnkTransmitFcsSize, pppLnkQualityWindow=pppLnkQualityWindow, pppNcpBmcEntryLocalStatus=pppNcpBmcEntryLocalStatus, pppLeqThrStatsTable=pppLeqThrStatsTable, pppNcpBmEntryOperEntry=pppNcpBmEntryOperEntry, pppCidDataTable=pppCidDataTable, pppLnkConfigInitialMru=pppLnkConfigInitialMru, pppNcpIndex=pppNcpIndex, pppLeqTotalPktQueued=pppLeqTotalPktQueued, pppGroupBC02A=pppGroupBC02A, pppMpTable=pppMpTable, pppNcp=pppNcp, pppNcpBprovEntry=pppNcpBprovEntry, pppNcpBmEntry=pppNcpBmEntry, pppNcpIpOperEntry=pppNcpIpOperEntry, pppLeqStorageType=pppLeqStorageType, pppLqmQuality=pppLqmQuality, pppNcpBprovTable=pppNcpBprovTable, pppNcpBLocalToRemoteLanId=pppNcpBLocalToRemoteLanId, pppIfAdminStatus=pppIfAdminStatus, pppCapabilitiesBC02A=pppCapabilitiesBC02A, pppFramerAdminState=pppFramerAdminState, pppLnkProvEntry=pppLnkProvEntry, pppNcpBmEntryRowStatusTable=pppNcpBmEntryRowStatusTable, pppLeqThrStatsEntry=pppLeqThrStatsEntry, pppLqmConfigStatus=pppLqmConfigStatus, pppNcpRowStatus=pppNcpRowStatus, pppFramerNormPrioLinkUtilFromIf=pppFramerNormPrioLinkUtilFromIf, pppFramerStateTable=pppFramerStateTable, pppLnk=pppLnk, pppGroupBC=pppGroupBC, pppLnkReceiveFcsSize=pppLnkReceiveFcsSize, pppNcpBmcEntryRowStatusTable=pppNcpBmcEntryRowStatusTable, pppLnkConfigMagicNumber=pppLnkConfigMagicNumber, ppp=ppp, pppLeqForcedPktDiscards=pppLeqForcedPktDiscards, pppNcpRowStatusEntry=pppNcpRowStatusEntry, pppLnkContinuityMonitor=pppLnkContinuityMonitor, pppLeqHardwareForcedPkt=pppLeqHardwareForcedPkt, pppNcpBmEntryRemoteStatus=pppNcpBmEntryRemoteStatus, pppNcpBmEntryLocalStatus=pppNcpBmEntryLocalStatus, pppFramerUnderruns=pppFramerUnderruns, pppFramerNormPrioLinkUtilToIf=pppFramerNormPrioLinkUtilToIf, pppLeqStatsEntry=pppLeqStatsEntry, pppLeqRowStatusTable=pppLeqRowStatusTable, pppNcpBmEntryMacTypeIndex=pppNcpBmEntryMacTypeIndex, pppLeqProvEntry=pppLeqProvEntry, pppLeqMulThresholdExceeded=pppLeqMulThresholdExceeded, pppLeqCurrentBytesQueued=pppLeqCurrentBytesQueued, pppGroup=pppGroup, pppFramerOperationalState=pppFramerOperationalState, pppLeq=pppLeq, pppNcpBOperState=pppNcpBOperState, pppFramer=pppFramer, pppLqmRowStatusEntry=pppLqmRowStatusEntry, pppNcpIpOperState=pppNcpIpOperState, pppNcpXnsOperState=pppNcpXnsOperState, pppLqmIndex=pppLqmIndex, pppNcpBmcEntryProvTable=pppNcpBmcEntryProvTable, pppLnkLineCondition=pppLnkLineCondition, pppLqmComponentName=pppLqmComponentName, pppLeqMaxPackets=pppLeqMaxPackets, pppLqmStorageType=pppLqmStorageType, pppLeqTimedOutPkt=pppLeqTimedOutPkt, pppLeqTotalPktHandled=pppLeqTotalPktHandled, pppNcpIpxOperState=pppNcpIpxOperState, pppLeqTotalPktForwarded=pppLeqTotalPktForwarded, pppRowStatusTable=pppRowStatusTable, pppLqmInLqrs=pppLqmInLqrs, pppLnkRemoteMru=pppLnkRemoteMru, pppLnkTerminateRequestTries=pppLnkTerminateRequestTries, pppLnkConfigureRequestTries=pppLnkConfigureRequestTries, pppLnkBadAddresses=pppLnkBadAddresses, pppNcpBmcEntryProvEntry=pppNcpBmcEntryProvEntry, pppStateTable=pppStateTable, pppCapabilities=pppCapabilities, pppFramerNonOctetErrors=pppFramerNonOctetErrors, pppIfEntryEntry=pppIfEntryEntry, pppLqm=pppLqm, pppNcpBRemoteToLocalLanId=pppNcpBRemoteToLocalLanId, pppIndex=pppIndex, pppUsageState=pppUsageState, pppLqmConfigPeriod=pppLqmConfigPeriod, pppLnkOperEntry=pppLnkOperEntry, pppLqmRemotePeriod=pppLqmRemotePeriod, pppLeqProvTable=pppLeqProvTable, pppLeqMaxMsecData=pppLeqMaxMsecData, pppGroupBC02=pppGroupBC02, pppFramerUtilTable=pppFramerUtilTable, pppCapabilitiesBC02=pppCapabilitiesBC02, pppCapabilitiesBC=pppCapabilitiesBC, pppFramerLargeFrmErrors=pppFramerLargeFrmErrors, pppLnkRowStatusTable=pppLnkRowStatusTable, pppLnkBadControls=pppLnkBadControls, pppLeqByteThresholdExceeded=pppLeqByteThresholdExceeded, pppLeqPktThresholdExceeded=pppLeqPktThresholdExceeded, pppStorageType=pppStorageType, pppFramerIndex=pppFramerIndex, pppFramerOverruns=pppFramerOverruns, pppLeqCStatsEntry=pppLeqCStatsEntry, pppNcpOperTable=pppNcpOperTable, pppLnkRowStatusEntry=pppLnkRowStatusEntry, pppLeqStatsTable=pppLeqStatsTable, pppOperStatusEntry=pppOperStatusEntry, pppLeqCurrentPktQueued=pppLeqCurrentPktQueued, pppLeqQueueMulticastThreshold=pppLeqQueueMulticastThreshold, pppLeqTStatsEntry=pppLeqTStatsEntry, pppLnkProvTable=pppLnkProvTable, pppRowStatus=pppRowStatus, pppNcpBLocalToRemoteTinygramComp=pppNcpBLocalToRemoteTinygramComp, pppNcpComponentName=pppNcpComponentName, pppLqmOperEntry=pppLqmOperEntry, pppLeqCStatsTable=pppLeqCStatsTable, pppLqmProvTable=pppLqmProvTable, pppNcpBmEntryRowStatus=pppNcpBmEntryRowStatus, pppLeqTStatsTable=pppLeqTStatsTable, pppFramerLrcErrors=pppFramerLrcErrors, pppLqmRowStatusTable=pppLqmRowStatusTable, pppNcpBmEntryComponentName=pppNcpBmEntryComponentName, pppFramerProvTable=pppFramerProvTable, pppNcpAppletalkOperState=pppNcpAppletalkOperState, pppNcpBConfigTinygram=pppNcpBConfigTinygram, pppFramerStorageType=pppFramerStorageType, pppCustomerIdentifier=pppCustomerIdentifier, pppLnkQualityThreshold=pppLnkQualityThreshold, pppNcpBmcEntryComponentName=pppNcpBmcEntryComponentName, pppNcpBmcEntryRowStatusEntry=pppNcpBmcEntryRowStatusEntry, pppLeqMaxPercentMulticast=pppLeqMaxPercentMulticast, pppNcpBoperTable=pppNcpBoperTable, pppLnkLocalMru=pppLnkLocalMru, pppFramerCrcErrors=pppFramerCrcErrors, pppNcpRowStatusTable=pppNcpRowStatusTable, pppLeqMemThresholdExceeded=pppLeqMemThresholdExceeded, pppLnkBadFcss=pppLnkBadFcss, pppNcpBoperEntry=pppNcpBoperEntry, pppCidDataEntry=pppCidDataEntry, pppNcpBRemoteToLocalTinygramComp=pppNcpBRemoteToLocalTinygramComp, pppIfEntryTable=pppIfEntryTable, pppFramerStatsTable=pppFramerStatsTable, pppNcpBmEntryRowStatusEntry=pppNcpBmEntryRowStatusEntry, pppLnkIndex=pppLnkIndex, pppStateEntry=pppStateEntry, pppLeqIndex=pppLeqIndex, pppFramerStateEntry=pppFramerStateEntry, pppComponentName=pppComponentName, pppLnkComponentName=pppLnkComponentName, pppNcpBmEntryStorageType=pppNcpBmEntryStorageType, pppLeqRowStatusEntry=pppLeqRowStatusEntry, pppLeqComponentName=pppLeqComponentName, pppLeqTotalMulticastPkt=pppLeqTotalMulticastPkt, pppAdminState=pppAdminState, pppSnmpOperStatus=pppSnmpOperStatus, pppRowStatusEntry=pppRowStatusEntry, pppNcpBmcEntry=pppNcpBmcEntry, pppNcpBmEntryOperTable=pppNcpBmEntryOperTable, pppLeqQueueByteThreshold=pppLeqQueueByteThreshold, pppMpEntry=pppMpEntry, pppLnkPacketTooLongs=pppLnkPacketTooLongs, pppFramerStatsEntry=pppFramerStatsEntry, pppLeqQueuePurgeDiscards=pppLeqQueuePurgeDiscards, pppLnkRestartTimer=pppLnkRestartTimer, pppIfIndex=pppIfIndex, pppFramerRowStatusTable=pppFramerRowStatusTable, pppFramerRowStatus=pppFramerRowStatus, pppNcpBmcEntryMacTypeIndex=pppNcpBmcEntryMacTypeIndex, pppLnkNegativeAckTries=pppLnkNegativeAckTries, pppFramerFrmToIf=pppFramerFrmToIf, pppOperationalState=pppOperationalState, pppLnkOperTable=pppLnkOperTable, pppLqmRowStatus=pppLqmRowStatus, pppFramerAborts=pppFramerAborts, pppNcpIpOperTable=pppNcpIpOperTable, pppNcpDecnetOperState=pppNcpDecnetOperState, pppMIB=pppMIB, pppLqmOperTable=pppLqmOperTable, pppLeqQueuePktThreshold=pppLeqQueuePktThreshold, pppLinkToProtocolPort=pppLinkToProtocolPort, pppNcpBmcEntryRowStatus=pppNcpBmcEntryRowStatus, pppLqmLocalPeriod=pppLqmLocalPeriod, pppLnkOperState=pppLnkOperState, pppNcpBmcEntryStorageType=pppNcpBmcEntryStorageType, pppNcpOperEntry=pppNcpOperEntry, pppFramerUsageState=pppFramerUsageState, pppFramerUtilEntry=pppFramerUtilEntry, pppOperStatusTable=pppOperStatusTable, pppLeqCurrentMulticastQueued=pppLeqCurrentMulticastQueued, pppLnkRowStatus=pppLnkRowStatus, pppLeqTotalPktDiscards=pppLeqTotalPktDiscards, pppFramerComponentName=pppFramerComponentName, pppLqmProvEntry=pppLqmProvEntry, pppNcpStorageType=pppNcpStorageType, pppFramerFrmFromIf=pppFramerFrmFromIf, pppFramerProvEntry=pppFramerProvEntry, pppLqmInGoodOctets=pppLqmInGoodOctets)
(octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, constraints_intersection, single_value_constraint, value_range_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ConstraintsIntersection', 'SingleValueConstraint', 'ValueRangeConstraint', 'ConstraintsUnion') (integer32, row_status, gauge32, storage_type, counter32, unsigned32, display_string, interface_index) = mibBuilder.importSymbols('Nortel-Magellan-Passport-StandardTextualConventionsMIB', 'Integer32', 'RowStatus', 'Gauge32', 'StorageType', 'Counter32', 'Unsigned32', 'DisplayString', 'InterfaceIndex') (non_replicated, link) = mibBuilder.importSymbols('Nortel-Magellan-Passport-TextualConventionsMIB', 'NonReplicated', 'Link') (components, passport_mi_bs) = mibBuilder.importSymbols('Nortel-Magellan-Passport-UsefulDefinitionsMIB', 'components', 'passportMIBs') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (integer32, iso, time_ticks, mib_identifier, notification_type, gauge32, counter32, module_identity, unsigned32, ip_address, mib_scalar, mib_table, mib_table_row, mib_table_column, counter64, bits, object_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'Integer32', 'iso', 'TimeTicks', 'MibIdentifier', 'NotificationType', 'Gauge32', 'Counter32', 'ModuleIdentity', 'Unsigned32', 'IpAddress', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter64', 'Bits', 'ObjectIdentity') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') ppp_mib = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 33)) ppp = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102)) ppp_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 1)) if mibBuilder.loadTexts: pppRowStatusTable.setStatus('mandatory') ppp_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 1, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-PppMIB', 'pppIndex')) if mibBuilder.loadTexts: pppRowStatusEntry.setStatus('mandatory') ppp_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 1, 1, 1), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: pppRowStatus.setStatus('mandatory') ppp_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 1, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppComponentName.setStatus('mandatory') ppp_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 1, 1, 4), storage_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppStorageType.setStatus('mandatory') ppp_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 1, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))) if mibBuilder.loadTexts: pppIndex.setStatus('mandatory') ppp_cid_data_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 20)) if mibBuilder.loadTexts: pppCidDataTable.setStatus('mandatory') ppp_cid_data_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 20, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-PppMIB', 'pppIndex')) if mibBuilder.loadTexts: pppCidDataEntry.setStatus('mandatory') ppp_customer_identifier = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 20, 1, 1), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(1, 8191)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: pppCustomerIdentifier.setStatus('mandatory') ppp_if_entry_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 21)) if mibBuilder.loadTexts: pppIfEntryTable.setStatus('mandatory') ppp_if_entry_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 21, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-PppMIB', 'pppIndex')) if mibBuilder.loadTexts: pppIfEntryEntry.setStatus('mandatory') ppp_if_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 21, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('up', 1), ('down', 2), ('testing', 3))).clone('up')).setMaxAccess('readwrite') if mibBuilder.loadTexts: pppIfAdminStatus.setStatus('mandatory') ppp_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 21, 1, 2), interface_index().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: pppIfIndex.setStatus('mandatory') ppp_mp_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 22)) if mibBuilder.loadTexts: pppMpTable.setStatus('mandatory') ppp_mp_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 22, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-PppMIB', 'pppIndex')) if mibBuilder.loadTexts: pppMpEntry.setStatus('mandatory') ppp_link_to_protocol_port = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 22, 1, 1), link()).setMaxAccess('readwrite') if mibBuilder.loadTexts: pppLinkToProtocolPort.setStatus('mandatory') ppp_state_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 23)) if mibBuilder.loadTexts: pppStateTable.setStatus('mandatory') ppp_state_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 23, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-PppMIB', 'pppIndex')) if mibBuilder.loadTexts: pppStateEntry.setStatus('mandatory') ppp_admin_state = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 23, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('locked', 0), ('unlocked', 1), ('shuttingDown', 2))).clone('unlocked')).setMaxAccess('readonly') if mibBuilder.loadTexts: pppAdminState.setStatus('mandatory') ppp_operational_state = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 23, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disabled', 0), ('enabled', 1))).clone('disabled')).setMaxAccess('readonly') if mibBuilder.loadTexts: pppOperationalState.setStatus('mandatory') ppp_usage_state = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 23, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('idle', 0), ('active', 1), ('busy', 2))).clone('idle')).setMaxAccess('readonly') if mibBuilder.loadTexts: pppUsageState.setStatus('mandatory') ppp_oper_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 24)) if mibBuilder.loadTexts: pppOperStatusTable.setStatus('mandatory') ppp_oper_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 24, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-PppMIB', 'pppIndex')) if mibBuilder.loadTexts: pppOperStatusEntry.setStatus('mandatory') ppp_snmp_oper_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 24, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('up', 1), ('down', 2), ('testing', 3))).clone('up')).setMaxAccess('readonly') if mibBuilder.loadTexts: pppSnmpOperStatus.setStatus('mandatory') ppp_lnk = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2)) ppp_lnk_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 1)) if mibBuilder.loadTexts: pppLnkRowStatusTable.setStatus('mandatory') ppp_lnk_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 1, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-PppMIB', 'pppIndex'), (0, 'Nortel-Magellan-Passport-PppMIB', 'pppLnkIndex')) if mibBuilder.loadTexts: pppLnkRowStatusEntry.setStatus('mandatory') ppp_lnk_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 1, 1, 1), row_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLnkRowStatus.setStatus('mandatory') ppp_lnk_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 1, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLnkComponentName.setStatus('mandatory') ppp_lnk_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 1, 1, 4), storage_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLnkStorageType.setStatus('mandatory') ppp_lnk_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 1, 1, 10), non_replicated()) if mibBuilder.loadTexts: pppLnkIndex.setStatus('mandatory') ppp_lnk_prov_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 10)) if mibBuilder.loadTexts: pppLnkProvTable.setStatus('mandatory') ppp_lnk_prov_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 10, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-PppMIB', 'pppIndex'), (0, 'Nortel-Magellan-Passport-PppMIB', 'pppLnkIndex')) if mibBuilder.loadTexts: pppLnkProvEntry.setStatus('mandatory') ppp_lnk_config_initial_mru = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 10, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(68, 18000)).clone(18000)).setMaxAccess('readwrite') if mibBuilder.loadTexts: pppLnkConfigInitialMru.setStatus('mandatory') ppp_lnk_config_magic_number = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 10, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2))).clone('enabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: pppLnkConfigMagicNumber.setStatus('mandatory') ppp_lnk_restart_timer = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 10, 1, 6), unsigned32().subtype(subtypeSpec=value_range_constraint(1000, 10000)).clone(3000)).setMaxAccess('readwrite') if mibBuilder.loadTexts: pppLnkRestartTimer.setStatus('mandatory') ppp_lnk_continuity_monitor = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 10, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('enabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: pppLnkContinuityMonitor.setStatus('mandatory') ppp_lnk_negative_ack_tries = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 10, 1, 8), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295)).clone(10)).setMaxAccess('readwrite') if mibBuilder.loadTexts: pppLnkNegativeAckTries.setStatus('mandatory') ppp_lnk_quality_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 10, 1, 9), unsigned32().subtype(subtypeSpec=value_range_constraint(10, 99)).clone(90)).setMaxAccess('readwrite') if mibBuilder.loadTexts: pppLnkQualityThreshold.setStatus('mandatory') ppp_lnk_quality_window = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 10, 1, 10), unsigned32().subtype(subtypeSpec=value_range_constraint(10, 400)).clone(30)).setMaxAccess('readwrite') if mibBuilder.loadTexts: pppLnkQualityWindow.setStatus('mandatory') ppp_lnk_terminate_request_tries = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 10, 1, 11), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295)).clone(10)).setMaxAccess('readwrite') if mibBuilder.loadTexts: pppLnkTerminateRequestTries.setStatus('mandatory') ppp_lnk_configure_request_tries = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 10, 1, 12), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295)).clone(1000000000)).setMaxAccess('readwrite') if mibBuilder.loadTexts: pppLnkConfigureRequestTries.setStatus('mandatory') ppp_lnk_oper_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 11)) if mibBuilder.loadTexts: pppLnkOperTable.setStatus('mandatory') ppp_lnk_oper_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 11, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-PppMIB', 'pppIndex'), (0, 'Nortel-Magellan-Passport-PppMIB', 'pppLnkIndex')) if mibBuilder.loadTexts: pppLnkOperEntry.setStatus('mandatory') ppp_lnk_oper_state = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 11, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('initial', 0), ('starting', 1), ('closed', 2), ('stopped', 3), ('closing', 4), ('stopping', 5), ('reqsent', 6), ('ackrcvd', 7), ('acksent', 8), ('opened', 9))).clone('initial')).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLnkOperState.setStatus('mandatory') ppp_lnk_line_condition = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 11, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 3, 4))).clone(namedValues=named_values(('ok', 0), ('looped', 1), ('noClock', 3), ('badLineCondition', 4))).clone('ok')).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLnkLineCondition.setStatus('mandatory') ppp_lnk_bad_addresses = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 11, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLnkBadAddresses.setStatus('mandatory') ppp_lnk_bad_controls = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 11, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLnkBadControls.setStatus('mandatory') ppp_lnk_packet_too_longs = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 11, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLnkPacketTooLongs.setStatus('mandatory') ppp_lnk_bad_fcss = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 11, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLnkBadFcss.setStatus('mandatory') ppp_lnk_local_mru = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 11, 1, 8), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 2147483648)).clone(1)).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLnkLocalMru.setStatus('mandatory') ppp_lnk_remote_mru = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 11, 1, 9), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 2147483648))).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLnkRemoteMru.setStatus('mandatory') ppp_lnk_transmit_fcs_size = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 11, 1, 16), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 128))).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLnkTransmitFcsSize.setStatus('mandatory') ppp_lnk_receive_fcs_size = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 2, 11, 1, 17), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 128))).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLnkReceiveFcsSize.setStatus('mandatory') ppp_lqm = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 3)) ppp_lqm_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 3, 1)) if mibBuilder.loadTexts: pppLqmRowStatusTable.setStatus('mandatory') ppp_lqm_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 3, 1, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-PppMIB', 'pppIndex'), (0, 'Nortel-Magellan-Passport-PppMIB', 'pppLqmIndex')) if mibBuilder.loadTexts: pppLqmRowStatusEntry.setStatus('mandatory') ppp_lqm_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 3, 1, 1, 1), row_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLqmRowStatus.setStatus('mandatory') ppp_lqm_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 3, 1, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLqmComponentName.setStatus('mandatory') ppp_lqm_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 3, 1, 1, 4), storage_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLqmStorageType.setStatus('mandatory') ppp_lqm_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 3, 1, 1, 10), non_replicated()) if mibBuilder.loadTexts: pppLqmIndex.setStatus('mandatory') ppp_lqm_prov_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 3, 10)) if mibBuilder.loadTexts: pppLqmProvTable.setStatus('mandatory') ppp_lqm_prov_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 3, 10, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-PppMIB', 'pppIndex'), (0, 'Nortel-Magellan-Passport-PppMIB', 'pppLqmIndex')) if mibBuilder.loadTexts: pppLqmProvEntry.setStatus('mandatory') ppp_lqm_config_period = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 3, 10, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: pppLqmConfigPeriod.setStatus('mandatory') ppp_lqm_config_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 3, 10, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2))).clone('disabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: pppLqmConfigStatus.setStatus('mandatory') ppp_lqm_oper_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 3, 11)) if mibBuilder.loadTexts: pppLqmOperTable.setStatus('mandatory') ppp_lqm_oper_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 3, 11, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-PppMIB', 'pppIndex'), (0, 'Nortel-Magellan-Passport-PppMIB', 'pppLqmIndex')) if mibBuilder.loadTexts: pppLqmOperEntry.setStatus('mandatory') ppp_lqm_quality = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 3, 11, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('good', 1), ('bad', 2), ('notDetermined', 3))).clone('notDetermined')).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLqmQuality.setStatus('mandatory') ppp_lqm_in_good_octets = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 3, 11, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLqmInGoodOctets.setStatus('mandatory') ppp_lqm_local_period = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 3, 11, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4294967295)).clone(1)).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLqmLocalPeriod.setStatus('mandatory') ppp_lqm_remote_period = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 3, 11, 1, 4), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4294967295)).clone(1)).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLqmRemotePeriod.setStatus('mandatory') ppp_lqm_out_lqrs = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 3, 11, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLqmOutLqrs.setStatus('mandatory') ppp_lqm_in_lqrs = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 3, 11, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLqmInLqrs.setStatus('mandatory') ppp_ncp = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4)) ppp_ncp_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 1)) if mibBuilder.loadTexts: pppNcpRowStatusTable.setStatus('mandatory') ppp_ncp_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 1, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-PppMIB', 'pppIndex'), (0, 'Nortel-Magellan-Passport-PppMIB', 'pppNcpIndex')) if mibBuilder.loadTexts: pppNcpRowStatusEntry.setStatus('mandatory') ppp_ncp_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 1, 1, 1), row_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppNcpRowStatus.setStatus('mandatory') ppp_ncp_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 1, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppNcpComponentName.setStatus('mandatory') ppp_ncp_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 1, 1, 4), storage_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppNcpStorageType.setStatus('mandatory') ppp_ncp_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 1, 1, 10), non_replicated()) if mibBuilder.loadTexts: pppNcpIndex.setStatus('mandatory') ppp_ncp_bprov_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 11)) if mibBuilder.loadTexts: pppNcpBprovTable.setStatus('mandatory') ppp_ncp_bprov_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 11, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-PppMIB', 'pppIndex'), (0, 'Nortel-Magellan-Passport-PppMIB', 'pppNcpIndex')) if mibBuilder.loadTexts: pppNcpBprovEntry.setStatus('mandatory') ppp_ncp_b_config_tinygram = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 11, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2))).clone('enabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: pppNcpBConfigTinygram.setStatus('mandatory') ppp_ncp_b_config_lan_id = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 11, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2))).clone('enabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: pppNcpBConfigLanId.setStatus('mandatory') ppp_ncp_ip_oper_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 12)) if mibBuilder.loadTexts: pppNcpIpOperTable.setStatus('mandatory') ppp_ncp_ip_oper_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 12, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-PppMIB', 'pppIndex'), (0, 'Nortel-Magellan-Passport-PppMIB', 'pppNcpIndex')) if mibBuilder.loadTexts: pppNcpIpOperEntry.setStatus('mandatory') ppp_ncp_ip_oper_state = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 12, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('initial', 0), ('starting', 1), ('closed', 2), ('stopped', 3), ('closing', 4), ('stopping', 5), ('reqsent', 6), ('ackrcvd', 7), ('acksent', 8), ('opened', 9))).clone('initial')).setMaxAccess('readonly') if mibBuilder.loadTexts: pppNcpIpOperState.setStatus('mandatory') ppp_ncp_boper_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 14)) if mibBuilder.loadTexts: pppNcpBoperTable.setStatus('mandatory') ppp_ncp_boper_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 14, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-PppMIB', 'pppIndex'), (0, 'Nortel-Magellan-Passport-PppMIB', 'pppNcpIndex')) if mibBuilder.loadTexts: pppNcpBoperEntry.setStatus('mandatory') ppp_ncp_b_oper_state = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 14, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('initial', 0), ('starting', 1), ('closed', 2), ('stopped', 3), ('closing', 4), ('stopping', 5), ('reqsent', 6), ('ackrcvd', 7), ('acksent', 8), ('opened', 9))).clone('initial')).setMaxAccess('readonly') if mibBuilder.loadTexts: pppNcpBOperState.setStatus('mandatory') ppp_ncp_b_local_to_remote_tinygram_comp = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 14, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2))).clone('disabled')).setMaxAccess('readonly') if mibBuilder.loadTexts: pppNcpBLocalToRemoteTinygramComp.setStatus('mandatory') ppp_ncp_b_remote_to_local_tinygram_comp = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 14, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2))).clone('disabled')).setMaxAccess('readonly') if mibBuilder.loadTexts: pppNcpBRemoteToLocalTinygramComp.setStatus('mandatory') ppp_ncp_b_local_to_remote_lan_id = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 14, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2))).clone('disabled')).setMaxAccess('readonly') if mibBuilder.loadTexts: pppNcpBLocalToRemoteLanId.setStatus('mandatory') ppp_ncp_b_remote_to_local_lan_id = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 14, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2))).clone('disabled')).setMaxAccess('readonly') if mibBuilder.loadTexts: pppNcpBRemoteToLocalLanId.setStatus('mandatory') ppp_ncp_oper_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 16)) if mibBuilder.loadTexts: pppNcpOperTable.setStatus('mandatory') ppp_ncp_oper_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 16, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-PppMIB', 'pppIndex'), (0, 'Nortel-Magellan-Passport-PppMIB', 'pppNcpIndex')) if mibBuilder.loadTexts: pppNcpOperEntry.setStatus('mandatory') ppp_ncp_appletalk_oper_state = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 16, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('initial', 0), ('starting', 1), ('closed', 2), ('stopped', 3), ('closing', 4), ('stopping', 5), ('reqsent', 6), ('ackrcvd', 7), ('acksent', 8), ('opened', 9))).clone('initial')).setMaxAccess('readonly') if mibBuilder.loadTexts: pppNcpAppletalkOperState.setStatus('mandatory') ppp_ncp_ipx_oper_state = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 16, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('initial', 0), ('starting', 1), ('closed', 2), ('stopped', 3), ('closing', 4), ('stopping', 5), ('reqsent', 6), ('ackrcvd', 7), ('acksent', 8), ('opened', 9))).clone('initial')).setMaxAccess('readonly') if mibBuilder.loadTexts: pppNcpIpxOperState.setStatus('mandatory') ppp_ncp_xns_oper_state = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 16, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('initial', 0), ('starting', 1), ('closed', 2), ('stopped', 3), ('closing', 4), ('stopping', 5), ('reqsent', 6), ('ackrcvd', 7), ('acksent', 8), ('opened', 9))).clone('initial')).setMaxAccess('readonly') if mibBuilder.loadTexts: pppNcpXnsOperState.setStatus('mandatory') ppp_ncp_decnet_oper_state = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 16, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('initial', 0), ('starting', 1), ('closed', 2), ('stopped', 3), ('closing', 4), ('stopping', 5), ('reqsent', 6), ('ackrcvd', 7), ('acksent', 8), ('opened', 9))).clone('initial')).setMaxAccess('readonly') if mibBuilder.loadTexts: pppNcpDecnetOperState.setStatus('mandatory') ppp_ncp_bmc_entry = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 2)) ppp_ncp_bmc_entry_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 2, 1)) if mibBuilder.loadTexts: pppNcpBmcEntryRowStatusTable.setStatus('mandatory') ppp_ncp_bmc_entry_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 2, 1, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-PppMIB', 'pppIndex'), (0, 'Nortel-Magellan-Passport-PppMIB', 'pppNcpIndex'), (0, 'Nortel-Magellan-Passport-PppMIB', 'pppNcpBmcEntryMacTypeIndex')) if mibBuilder.loadTexts: pppNcpBmcEntryRowStatusEntry.setStatus('mandatory') ppp_ncp_bmc_entry_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 2, 1, 1, 1), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: pppNcpBmcEntryRowStatus.setStatus('mandatory') ppp_ncp_bmc_entry_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 2, 1, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppNcpBmcEntryComponentName.setStatus('mandatory') ppp_ncp_bmc_entry_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 2, 1, 1, 4), storage_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppNcpBmcEntryStorageType.setStatus('mandatory') ppp_ncp_bmc_entry_mac_type_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 2, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('ethernet', 1), ('tokenBus', 2), ('tokenRing', 3), ('fddi', 4)))) if mibBuilder.loadTexts: pppNcpBmcEntryMacTypeIndex.setStatus('mandatory') ppp_ncp_bmc_entry_prov_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 2, 10)) if mibBuilder.loadTexts: pppNcpBmcEntryProvTable.setStatus('mandatory') ppp_ncp_bmc_entry_prov_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 2, 10, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-PppMIB', 'pppIndex'), (0, 'Nortel-Magellan-Passport-PppMIB', 'pppNcpIndex'), (0, 'Nortel-Magellan-Passport-PppMIB', 'pppNcpBmcEntryMacTypeIndex')) if mibBuilder.loadTexts: pppNcpBmcEntryProvEntry.setStatus('mandatory') ppp_ncp_bmc_entry_local_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 2, 10, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('accept', 1))).clone('accept')).setMaxAccess('readwrite') if mibBuilder.loadTexts: pppNcpBmcEntryLocalStatus.setStatus('mandatory') ppp_ncp_bm_entry = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 3)) ppp_ncp_bm_entry_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 3, 1)) if mibBuilder.loadTexts: pppNcpBmEntryRowStatusTable.setStatus('mandatory') ppp_ncp_bm_entry_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 3, 1, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-PppMIB', 'pppIndex'), (0, 'Nortel-Magellan-Passport-PppMIB', 'pppNcpIndex'), (0, 'Nortel-Magellan-Passport-PppMIB', 'pppNcpBmEntryMacTypeIndex')) if mibBuilder.loadTexts: pppNcpBmEntryRowStatusEntry.setStatus('mandatory') ppp_ncp_bm_entry_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 3, 1, 1, 1), row_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppNcpBmEntryRowStatus.setStatus('mandatory') ppp_ncp_bm_entry_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 3, 1, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppNcpBmEntryComponentName.setStatus('mandatory') ppp_ncp_bm_entry_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 3, 1, 1, 4), storage_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppNcpBmEntryStorageType.setStatus('mandatory') ppp_ncp_bm_entry_mac_type_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 3, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('ethernet', 1), ('tokenBus', 2), ('tokenRing', 3), ('fddi', 4)))) if mibBuilder.loadTexts: pppNcpBmEntryMacTypeIndex.setStatus('mandatory') ppp_ncp_bm_entry_oper_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 3, 10)) if mibBuilder.loadTexts: pppNcpBmEntryOperTable.setStatus('mandatory') ppp_ncp_bm_entry_oper_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 3, 10, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-PppMIB', 'pppIndex'), (0, 'Nortel-Magellan-Passport-PppMIB', 'pppNcpIndex'), (0, 'Nortel-Magellan-Passport-PppMIB', 'pppNcpBmEntryMacTypeIndex')) if mibBuilder.loadTexts: pppNcpBmEntryOperEntry.setStatus('mandatory') ppp_ncp_bm_entry_local_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 3, 10, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('accept', 1), ('dontAccept', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: pppNcpBmEntryLocalStatus.setStatus('mandatory') ppp_ncp_bm_entry_remote_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 4, 3, 10, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('accept', 1), ('dontAccept', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: pppNcpBmEntryRemoteStatus.setStatus('mandatory') ppp_framer = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5)) ppp_framer_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 1)) if mibBuilder.loadTexts: pppFramerRowStatusTable.setStatus('mandatory') ppp_framer_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 1, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-PppMIB', 'pppIndex'), (0, 'Nortel-Magellan-Passport-PppMIB', 'pppFramerIndex')) if mibBuilder.loadTexts: pppFramerRowStatusEntry.setStatus('mandatory') ppp_framer_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 1, 1, 1), row_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppFramerRowStatus.setStatus('mandatory') ppp_framer_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 1, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppFramerComponentName.setStatus('mandatory') ppp_framer_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 1, 1, 4), storage_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppFramerStorageType.setStatus('mandatory') ppp_framer_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 1, 1, 10), non_replicated()) if mibBuilder.loadTexts: pppFramerIndex.setStatus('mandatory') ppp_framer_prov_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 10)) if mibBuilder.loadTexts: pppFramerProvTable.setStatus('mandatory') ppp_framer_prov_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 10, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-PppMIB', 'pppIndex'), (0, 'Nortel-Magellan-Passport-PppMIB', 'pppFramerIndex')) if mibBuilder.loadTexts: pppFramerProvEntry.setStatus('mandatory') ppp_framer_interface_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 10, 1, 1), link()).setMaxAccess('readwrite') if mibBuilder.loadTexts: pppFramerInterfaceName.setStatus('mandatory') ppp_framer_state_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 12)) if mibBuilder.loadTexts: pppFramerStateTable.setStatus('mandatory') ppp_framer_state_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 12, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-PppMIB', 'pppIndex'), (0, 'Nortel-Magellan-Passport-PppMIB', 'pppFramerIndex')) if mibBuilder.loadTexts: pppFramerStateEntry.setStatus('mandatory') ppp_framer_admin_state = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 12, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('locked', 0), ('unlocked', 1), ('shuttingDown', 2))).clone('unlocked')).setMaxAccess('readonly') if mibBuilder.loadTexts: pppFramerAdminState.setStatus('mandatory') ppp_framer_operational_state = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 12, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disabled', 0), ('enabled', 1))).clone('disabled')).setMaxAccess('readonly') if mibBuilder.loadTexts: pppFramerOperationalState.setStatus('mandatory') ppp_framer_usage_state = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 12, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('idle', 0), ('active', 1), ('busy', 2))).clone('idle')).setMaxAccess('readonly') if mibBuilder.loadTexts: pppFramerUsageState.setStatus('mandatory') ppp_framer_stats_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 13)) if mibBuilder.loadTexts: pppFramerStatsTable.setStatus('mandatory') ppp_framer_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 13, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-PppMIB', 'pppIndex'), (0, 'Nortel-Magellan-Passport-PppMIB', 'pppFramerIndex')) if mibBuilder.loadTexts: pppFramerStatsEntry.setStatus('mandatory') ppp_framer_frm_to_if = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 13, 1, 1), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppFramerFrmToIf.setStatus('mandatory') ppp_framer_frm_from_if = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 13, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppFramerFrmFromIf.setStatus('mandatory') ppp_framer_aborts = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 13, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppFramerAborts.setStatus('mandatory') ppp_framer_crc_errors = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 13, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppFramerCrcErrors.setStatus('mandatory') ppp_framer_lrc_errors = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 13, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppFramerLrcErrors.setStatus('mandatory') ppp_framer_non_octet_errors = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 13, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppFramerNonOctetErrors.setStatus('mandatory') ppp_framer_overruns = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 13, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppFramerOverruns.setStatus('mandatory') ppp_framer_underruns = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 13, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppFramerUnderruns.setStatus('mandatory') ppp_framer_large_frm_errors = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 13, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppFramerLargeFrmErrors.setStatus('mandatory') ppp_framer_util_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 14)) if mibBuilder.loadTexts: pppFramerUtilTable.setStatus('mandatory') ppp_framer_util_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 14, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-PppMIB', 'pppIndex'), (0, 'Nortel-Magellan-Passport-PppMIB', 'pppFramerIndex')) if mibBuilder.loadTexts: pppFramerUtilEntry.setStatus('mandatory') ppp_framer_norm_prio_link_util_to_if = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 14, 1, 1), gauge32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readonly') if mibBuilder.loadTexts: pppFramerNormPrioLinkUtilToIf.setStatus('mandatory') ppp_framer_norm_prio_link_util_from_if = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 5, 14, 1, 3), gauge32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readonly') if mibBuilder.loadTexts: pppFramerNormPrioLinkUtilFromIf.setStatus('mandatory') ppp_leq = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6)) ppp_leq_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 1)) if mibBuilder.loadTexts: pppLeqRowStatusTable.setStatus('mandatory') ppp_leq_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 1, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-PppMIB', 'pppIndex'), (0, 'Nortel-Magellan-Passport-PppMIB', 'pppLeqIndex')) if mibBuilder.loadTexts: pppLeqRowStatusEntry.setStatus('mandatory') ppp_leq_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 1, 1, 1), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: pppLeqRowStatus.setStatus('mandatory') ppp_leq_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 1, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLeqComponentName.setStatus('mandatory') ppp_leq_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 1, 1, 4), storage_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLeqStorageType.setStatus('mandatory') ppp_leq_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 1, 1, 10), non_replicated()) if mibBuilder.loadTexts: pppLeqIndex.setStatus('mandatory') ppp_leq_prov_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 10)) if mibBuilder.loadTexts: pppLeqProvTable.setStatus('mandatory') ppp_leq_prov_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 10, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-PppMIB', 'pppIndex'), (0, 'Nortel-Magellan-Passport-PppMIB', 'pppLeqIndex')) if mibBuilder.loadTexts: pppLeqProvEntry.setStatus('mandatory') ppp_leq_max_packets = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 10, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 2048))).setMaxAccess('readwrite') if mibBuilder.loadTexts: pppLeqMaxPackets.setStatus('mandatory') ppp_leq_max_msec_data = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 10, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(100, 60000)).clone(10000)).setMaxAccess('readwrite') if mibBuilder.loadTexts: pppLeqMaxMsecData.setStatus('mandatory') ppp_leq_max_percent_multicast = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 10, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 100)).clone(50)).setMaxAccess('readwrite') if mibBuilder.loadTexts: pppLeqMaxPercentMulticast.setStatus('mandatory') ppp_leq_time_to_live = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 10, 1, 4), unsigned32().subtype(subtypeSpec=value_range_constraint(100, 60000)).clone(10000)).setMaxAccess('readwrite') if mibBuilder.loadTexts: pppLeqTimeToLive.setStatus('mandatory') ppp_leq_stats_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 11)) if mibBuilder.loadTexts: pppLeqStatsTable.setStatus('mandatory') ppp_leq_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 11, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-PppMIB', 'pppIndex'), (0, 'Nortel-Magellan-Passport-PppMIB', 'pppLeqIndex')) if mibBuilder.loadTexts: pppLeqStatsEntry.setStatus('mandatory') ppp_leq_timed_out_pkt = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 11, 1, 1), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLeqTimedOutPkt.setStatus('mandatory') ppp_leq_hardware_forced_pkt = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 11, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLeqHardwareForcedPkt.setStatus('mandatory') ppp_leq_forced_pkt_discards = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 11, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLeqForcedPktDiscards.setStatus('mandatory') ppp_leq_queue_purge_discards = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 11, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLeqQueuePurgeDiscards.setStatus('mandatory') ppp_leq_t_stats_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 12)) if mibBuilder.loadTexts: pppLeqTStatsTable.setStatus('mandatory') ppp_leq_t_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 12, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-PppMIB', 'pppIndex'), (0, 'Nortel-Magellan-Passport-PppMIB', 'pppLeqIndex')) if mibBuilder.loadTexts: pppLeqTStatsEntry.setStatus('mandatory') ppp_leq_total_pkt_handled = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 12, 1, 1), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLeqTotalPktHandled.setStatus('mandatory') ppp_leq_total_pkt_forwarded = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 12, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLeqTotalPktForwarded.setStatus('mandatory') ppp_leq_total_pkt_queued = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 12, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLeqTotalPktQueued.setStatus('mandatory') ppp_leq_total_multicast_pkt = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 12, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLeqTotalMulticastPkt.setStatus('mandatory') ppp_leq_total_pkt_discards = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 12, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLeqTotalPktDiscards.setStatus('mandatory') ppp_leq_c_stats_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 13)) if mibBuilder.loadTexts: pppLeqCStatsTable.setStatus('mandatory') ppp_leq_c_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 13, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-PppMIB', 'pppIndex'), (0, 'Nortel-Magellan-Passport-PppMIB', 'pppLeqIndex')) if mibBuilder.loadTexts: pppLeqCStatsEntry.setStatus('mandatory') ppp_leq_current_pkt_queued = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 13, 1, 1), gauge32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLeqCurrentPktQueued.setStatus('mandatory') ppp_leq_current_bytes_queued = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 13, 1, 2), gauge32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLeqCurrentBytesQueued.setStatus('mandatory') ppp_leq_current_multicast_queued = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 13, 1, 3), gauge32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLeqCurrentMulticastQueued.setStatus('mandatory') ppp_leq_thr_stats_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 14)) if mibBuilder.loadTexts: pppLeqThrStatsTable.setStatus('mandatory') ppp_leq_thr_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 14, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-PppMIB', 'pppIndex'), (0, 'Nortel-Magellan-Passport-PppMIB', 'pppLeqIndex')) if mibBuilder.loadTexts: pppLeqThrStatsEntry.setStatus('mandatory') ppp_leq_queue_pkt_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 14, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLeqQueuePktThreshold.setStatus('mandatory') ppp_leq_pkt_threshold_exceeded = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 14, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLeqPktThresholdExceeded.setStatus('mandatory') ppp_leq_queue_byte_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 14, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLeqQueueByteThreshold.setStatus('mandatory') ppp_leq_byte_threshold_exceeded = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 14, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLeqByteThresholdExceeded.setStatus('mandatory') ppp_leq_queue_multicast_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 14, 1, 5), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLeqQueueMulticastThreshold.setStatus('mandatory') ppp_leq_mul_threshold_exceeded = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 14, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLeqMulThresholdExceeded.setStatus('mandatory') ppp_leq_mem_threshold_exceeded = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 102, 6, 14, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: pppLeqMemThresholdExceeded.setStatus('mandatory') ppp_group = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 33, 1)) ppp_group_bc = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 33, 1, 3)) ppp_group_bc02 = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 33, 1, 3, 3)) ppp_group_bc02_a = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 33, 1, 3, 3, 2)) ppp_capabilities = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 33, 3)) ppp_capabilities_bc = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 33, 3, 3)) ppp_capabilities_bc02 = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 33, 3, 3, 3)) ppp_capabilities_bc02_a = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 33, 3, 3, 3, 2)) mibBuilder.exportSymbols('Nortel-Magellan-Passport-PppMIB', pppLeqTimeToLive=pppLeqTimeToLive, pppLnkStorageType=pppLnkStorageType, pppLqmOutLqrs=pppLqmOutLqrs, pppLeqRowStatus=pppLeqRowStatus, pppFramerInterfaceName=pppFramerInterfaceName, pppNcpBConfigLanId=pppNcpBConfigLanId, pppFramerRowStatusEntry=pppFramerRowStatusEntry, pppLnkTransmitFcsSize=pppLnkTransmitFcsSize, pppLnkQualityWindow=pppLnkQualityWindow, pppNcpBmcEntryLocalStatus=pppNcpBmcEntryLocalStatus, pppLeqThrStatsTable=pppLeqThrStatsTable, pppNcpBmEntryOperEntry=pppNcpBmEntryOperEntry, pppCidDataTable=pppCidDataTable, pppLnkConfigInitialMru=pppLnkConfigInitialMru, pppNcpIndex=pppNcpIndex, pppLeqTotalPktQueued=pppLeqTotalPktQueued, pppGroupBC02A=pppGroupBC02A, pppMpTable=pppMpTable, pppNcp=pppNcp, pppNcpBprovEntry=pppNcpBprovEntry, pppNcpBmEntry=pppNcpBmEntry, pppNcpIpOperEntry=pppNcpIpOperEntry, pppLeqStorageType=pppLeqStorageType, pppLqmQuality=pppLqmQuality, pppNcpBprovTable=pppNcpBprovTable, pppNcpBLocalToRemoteLanId=pppNcpBLocalToRemoteLanId, pppIfAdminStatus=pppIfAdminStatus, pppCapabilitiesBC02A=pppCapabilitiesBC02A, pppFramerAdminState=pppFramerAdminState, pppLnkProvEntry=pppLnkProvEntry, pppNcpBmEntryRowStatusTable=pppNcpBmEntryRowStatusTable, pppLeqThrStatsEntry=pppLeqThrStatsEntry, pppLqmConfigStatus=pppLqmConfigStatus, pppNcpRowStatus=pppNcpRowStatus, pppFramerNormPrioLinkUtilFromIf=pppFramerNormPrioLinkUtilFromIf, pppFramerStateTable=pppFramerStateTable, pppLnk=pppLnk, pppGroupBC=pppGroupBC, pppLnkReceiveFcsSize=pppLnkReceiveFcsSize, pppNcpBmcEntryRowStatusTable=pppNcpBmcEntryRowStatusTable, pppLnkConfigMagicNumber=pppLnkConfigMagicNumber, ppp=ppp, pppLeqForcedPktDiscards=pppLeqForcedPktDiscards, pppNcpRowStatusEntry=pppNcpRowStatusEntry, pppLnkContinuityMonitor=pppLnkContinuityMonitor, pppLeqHardwareForcedPkt=pppLeqHardwareForcedPkt, pppNcpBmEntryRemoteStatus=pppNcpBmEntryRemoteStatus, pppNcpBmEntryLocalStatus=pppNcpBmEntryLocalStatus, pppFramerUnderruns=pppFramerUnderruns, pppFramerNormPrioLinkUtilToIf=pppFramerNormPrioLinkUtilToIf, pppLeqStatsEntry=pppLeqStatsEntry, pppLeqRowStatusTable=pppLeqRowStatusTable, pppNcpBmEntryMacTypeIndex=pppNcpBmEntryMacTypeIndex, pppLeqProvEntry=pppLeqProvEntry, pppLeqMulThresholdExceeded=pppLeqMulThresholdExceeded, pppLeqCurrentBytesQueued=pppLeqCurrentBytesQueued, pppGroup=pppGroup, pppFramerOperationalState=pppFramerOperationalState, pppLeq=pppLeq, pppNcpBOperState=pppNcpBOperState, pppFramer=pppFramer, pppLqmRowStatusEntry=pppLqmRowStatusEntry, pppNcpIpOperState=pppNcpIpOperState, pppNcpXnsOperState=pppNcpXnsOperState, pppLqmIndex=pppLqmIndex, pppNcpBmcEntryProvTable=pppNcpBmcEntryProvTable, pppLnkLineCondition=pppLnkLineCondition, pppLqmComponentName=pppLqmComponentName, pppLeqMaxPackets=pppLeqMaxPackets, pppLqmStorageType=pppLqmStorageType, pppLeqTimedOutPkt=pppLeqTimedOutPkt, pppLeqTotalPktHandled=pppLeqTotalPktHandled, pppNcpIpxOperState=pppNcpIpxOperState, pppLeqTotalPktForwarded=pppLeqTotalPktForwarded, pppRowStatusTable=pppRowStatusTable, pppLqmInLqrs=pppLqmInLqrs, pppLnkRemoteMru=pppLnkRemoteMru, pppLnkTerminateRequestTries=pppLnkTerminateRequestTries, pppLnkConfigureRequestTries=pppLnkConfigureRequestTries, pppLnkBadAddresses=pppLnkBadAddresses, pppNcpBmcEntryProvEntry=pppNcpBmcEntryProvEntry, pppStateTable=pppStateTable, pppCapabilities=pppCapabilities, pppFramerNonOctetErrors=pppFramerNonOctetErrors, pppIfEntryEntry=pppIfEntryEntry, pppLqm=pppLqm, pppNcpBRemoteToLocalLanId=pppNcpBRemoteToLocalLanId, pppIndex=pppIndex, pppUsageState=pppUsageState, pppLqmConfigPeriod=pppLqmConfigPeriod, pppLnkOperEntry=pppLnkOperEntry, pppLqmRemotePeriod=pppLqmRemotePeriod, pppLeqProvTable=pppLeqProvTable, pppLeqMaxMsecData=pppLeqMaxMsecData, pppGroupBC02=pppGroupBC02, pppFramerUtilTable=pppFramerUtilTable, pppCapabilitiesBC02=pppCapabilitiesBC02, pppCapabilitiesBC=pppCapabilitiesBC, pppFramerLargeFrmErrors=pppFramerLargeFrmErrors, pppLnkRowStatusTable=pppLnkRowStatusTable, pppLnkBadControls=pppLnkBadControls, pppLeqByteThresholdExceeded=pppLeqByteThresholdExceeded, pppLeqPktThresholdExceeded=pppLeqPktThresholdExceeded, pppStorageType=pppStorageType, pppFramerIndex=pppFramerIndex, pppFramerOverruns=pppFramerOverruns, pppLeqCStatsEntry=pppLeqCStatsEntry, pppNcpOperTable=pppNcpOperTable, pppLnkRowStatusEntry=pppLnkRowStatusEntry, pppLeqStatsTable=pppLeqStatsTable, pppOperStatusEntry=pppOperStatusEntry, pppLeqCurrentPktQueued=pppLeqCurrentPktQueued, pppLeqQueueMulticastThreshold=pppLeqQueueMulticastThreshold, pppLeqTStatsEntry=pppLeqTStatsEntry, pppLnkProvTable=pppLnkProvTable, pppRowStatus=pppRowStatus, pppNcpBLocalToRemoteTinygramComp=pppNcpBLocalToRemoteTinygramComp, pppNcpComponentName=pppNcpComponentName, pppLqmOperEntry=pppLqmOperEntry, pppLeqCStatsTable=pppLeqCStatsTable, pppLqmProvTable=pppLqmProvTable, pppNcpBmEntryRowStatus=pppNcpBmEntryRowStatus, pppLeqTStatsTable=pppLeqTStatsTable, pppFramerLrcErrors=pppFramerLrcErrors, pppLqmRowStatusTable=pppLqmRowStatusTable, pppNcpBmEntryComponentName=pppNcpBmEntryComponentName, pppFramerProvTable=pppFramerProvTable, pppNcpAppletalkOperState=pppNcpAppletalkOperState, pppNcpBConfigTinygram=pppNcpBConfigTinygram, pppFramerStorageType=pppFramerStorageType, pppCustomerIdentifier=pppCustomerIdentifier, pppLnkQualityThreshold=pppLnkQualityThreshold, pppNcpBmcEntryComponentName=pppNcpBmcEntryComponentName, pppNcpBmcEntryRowStatusEntry=pppNcpBmcEntryRowStatusEntry, pppLeqMaxPercentMulticast=pppLeqMaxPercentMulticast, pppNcpBoperTable=pppNcpBoperTable, pppLnkLocalMru=pppLnkLocalMru, pppFramerCrcErrors=pppFramerCrcErrors, pppNcpRowStatusTable=pppNcpRowStatusTable, pppLeqMemThresholdExceeded=pppLeqMemThresholdExceeded, pppLnkBadFcss=pppLnkBadFcss, pppNcpBoperEntry=pppNcpBoperEntry, pppCidDataEntry=pppCidDataEntry, pppNcpBRemoteToLocalTinygramComp=pppNcpBRemoteToLocalTinygramComp, pppIfEntryTable=pppIfEntryTable, pppFramerStatsTable=pppFramerStatsTable, pppNcpBmEntryRowStatusEntry=pppNcpBmEntryRowStatusEntry, pppLnkIndex=pppLnkIndex, pppStateEntry=pppStateEntry, pppLeqIndex=pppLeqIndex, pppFramerStateEntry=pppFramerStateEntry, pppComponentName=pppComponentName, pppLnkComponentName=pppLnkComponentName, pppNcpBmEntryStorageType=pppNcpBmEntryStorageType, pppLeqRowStatusEntry=pppLeqRowStatusEntry, pppLeqComponentName=pppLeqComponentName, pppLeqTotalMulticastPkt=pppLeqTotalMulticastPkt, pppAdminState=pppAdminState, pppSnmpOperStatus=pppSnmpOperStatus, pppRowStatusEntry=pppRowStatusEntry, pppNcpBmcEntry=pppNcpBmcEntry, pppNcpBmEntryOperTable=pppNcpBmEntryOperTable, pppLeqQueueByteThreshold=pppLeqQueueByteThreshold, pppMpEntry=pppMpEntry, pppLnkPacketTooLongs=pppLnkPacketTooLongs, pppFramerStatsEntry=pppFramerStatsEntry, pppLeqQueuePurgeDiscards=pppLeqQueuePurgeDiscards, pppLnkRestartTimer=pppLnkRestartTimer, pppIfIndex=pppIfIndex, pppFramerRowStatusTable=pppFramerRowStatusTable, pppFramerRowStatus=pppFramerRowStatus, pppNcpBmcEntryMacTypeIndex=pppNcpBmcEntryMacTypeIndex, pppLnkNegativeAckTries=pppLnkNegativeAckTries, pppFramerFrmToIf=pppFramerFrmToIf, pppOperationalState=pppOperationalState, pppLnkOperTable=pppLnkOperTable, pppLqmRowStatus=pppLqmRowStatus, pppFramerAborts=pppFramerAborts, pppNcpIpOperTable=pppNcpIpOperTable, pppNcpDecnetOperState=pppNcpDecnetOperState, pppMIB=pppMIB, pppLqmOperTable=pppLqmOperTable, pppLeqQueuePktThreshold=pppLeqQueuePktThreshold, pppLinkToProtocolPort=pppLinkToProtocolPort, pppNcpBmcEntryRowStatus=pppNcpBmcEntryRowStatus, pppLqmLocalPeriod=pppLqmLocalPeriod, pppLnkOperState=pppLnkOperState, pppNcpBmcEntryStorageType=pppNcpBmcEntryStorageType, pppNcpOperEntry=pppNcpOperEntry, pppFramerUsageState=pppFramerUsageState, pppFramerUtilEntry=pppFramerUtilEntry, pppOperStatusTable=pppOperStatusTable, pppLeqCurrentMulticastQueued=pppLeqCurrentMulticastQueued, pppLnkRowStatus=pppLnkRowStatus, pppLeqTotalPktDiscards=pppLeqTotalPktDiscards, pppFramerComponentName=pppFramerComponentName, pppLqmProvEntry=pppLqmProvEntry, pppNcpStorageType=pppNcpStorageType, pppFramerFrmFromIf=pppFramerFrmFromIf, pppFramerProvEntry=pppFramerProvEntry, pppLqmInGoodOctets=pppLqmInGoodOctets)
# # This file contains the Python code from Program 9.8 of # "Data Structures and Algorithms # with Object-Oriented Design Patterns in Python" # by Bruno R. Preiss. # # Copyright (c) 2003 by Bruno R. Preiss, P.Eng. All rights reserved. # # http://www.brpreiss.com/books/opus7/programs/pgm09_08.txt # class Tree(Container): def accept(self, visitor): assert isinstance(visitor, Visitor) self.depthFirstTraversal(PreOrder(visitor)) # ...
class Tree(Container): def accept(self, visitor): assert isinstance(visitor, Visitor) self.depthFirstTraversal(pre_order(visitor))
x = int(input("Insert some numbers: ")) ev = 0 od = 0 while x > 0: if x%2 ==0: ev += 1 else: od += 1 x = x//10 print("Even numbers = %d, Odd numbers = %d" % (ev,od))
x = int(input('Insert some numbers: ')) ev = 0 od = 0 while x > 0: if x % 2 == 0: ev += 1 else: od += 1 x = x // 10 print('Even numbers = %d, Odd numbers = %d' % (ev, od))
'''A special two digit number is a number such that when the sum of its digits is added to the product of its digits, the result should be equal to the original two-digit number. Implement a program to accept a two digit number and check whether it is a special two digit number or not. Input Format a two digit number Constraints 10<=n<=99 Output Format Yes or No Sample Input 0 59 Sample Output 0 Yes Sample Input 1 69 Sample Output 1 Yes Sample Input 2 11 Sample Output 2 No''' #solution def special(num): summ = 0 prod = 1 for i in str(num): summ+=int(i) prod*=int(i) return "Yes" if num == (summ+prod) else "No" print(special(int(input())))
"""A special two digit number is a number such that when the sum of its digits is added to the product of its digits, the result should be equal to the original two-digit number. Implement a program to accept a two digit number and check whether it is a special two digit number or not. Input Format a two digit number Constraints 10<=n<=99 Output Format Yes or No Sample Input 0 59 Sample Output 0 Yes Sample Input 1 69 Sample Output 1 Yes Sample Input 2 11 Sample Output 2 No""" def special(num): summ = 0 prod = 1 for i in str(num): summ += int(i) prod *= int(i) return 'Yes' if num == summ + prod else 'No' print(special(int(input())))
def latex_template(name, title): return '\n'.join((r"\begin{figure}[H]", r" \centering", rf" \incfig[0.8]{{{name}}}", rf" \caption{{{title}}}", rf" \label{{fig:{name}}}", r" \vspace{-0.5cm}", r"\end{figure}"))
def latex_template(name, title): return '\n'.join(('\\begin{figure}[H]', ' \\centering', f' \\incfig[0.8]{{{name}}}', f' \\caption{{{title}}}', f' \\label{{fig:{name}}}', ' \\vspace{-0.5cm}', '\\end{figure}'))
houses = {(0, 0)} with open('Day 3 - input', 'r') as f: directions = f.readline() current_location = [0, 0] for direction in directions[::2]: if direction == '^': current_location[1] += 1 houses.add(tuple(current_location)) elif direction == '>': current_location[0] += 1 houses.add(tuple(current_location)) elif direction == 'v': current_location[1] -= 1 houses.add(tuple(current_location)) else: current_location[0] -= 1 houses.add(tuple(current_location)) current_location = [0, 0] for direction in directions[1::2]: if direction == '^': current_location[1] += 1 houses.add(tuple(current_location)) elif direction == '>': current_location[0] += 1 houses.add(tuple(current_location)) elif direction == 'v': current_location[1] -= 1 houses.add(tuple(current_location)) else: current_location[0] -= 1 houses.add(tuple(current_location)) print(len(houses))
houses = {(0, 0)} with open('Day 3 - input', 'r') as f: directions = f.readline() current_location = [0, 0] for direction in directions[::2]: if direction == '^': current_location[1] += 1 houses.add(tuple(current_location)) elif direction == '>': current_location[0] += 1 houses.add(tuple(current_location)) elif direction == 'v': current_location[1] -= 1 houses.add(tuple(current_location)) else: current_location[0] -= 1 houses.add(tuple(current_location)) current_location = [0, 0] for direction in directions[1::2]: if direction == '^': current_location[1] += 1 houses.add(tuple(current_location)) elif direction == '>': current_location[0] += 1 houses.add(tuple(current_location)) elif direction == 'v': current_location[1] -= 1 houses.add(tuple(current_location)) else: current_location[0] -= 1 houses.add(tuple(current_location)) print(len(houses))
class Profile: def __init__(self, id, username, email, allowed_buy, first_name, last_name, is_staff, is_current, **kwargs): self.id = id self.user_name = username self.email = email self.allowed_buy = allowed_buy self.first_name = first_name self.last_name = last_name self.is_staff = is_staff self.is_current = is_current @property def name(self): name = '' if len(self.first_name) > 0: name += self.first_name if len(self.last_name) > 0: name += ' ' + self.last_name if len(name) == 0: name += self.user_name return name class Product: def __init__(self, id, name, quantity, price_cent, displayed, **kwargs): self.id = id self.name = name self.quantity = quantity self.price_cent = price_cent self.displayed = displayed class SaleEntry: def __init__(self, id, profile, product, date, **kwargs): self.id = id self.profile = profile self.product = product self.date = date class Event: def __init__(self, id, name, price_group, active, **kwargs): self.id = id self.name = name self.price_group = price_group self.active = active class Comment: def __init__(self, profile, comment, **kwargs): self.profile = profile self.comment = comment
class Profile: def __init__(self, id, username, email, allowed_buy, first_name, last_name, is_staff, is_current, **kwargs): self.id = id self.user_name = username self.email = email self.allowed_buy = allowed_buy self.first_name = first_name self.last_name = last_name self.is_staff = is_staff self.is_current = is_current @property def name(self): name = '' if len(self.first_name) > 0: name += self.first_name if len(self.last_name) > 0: name += ' ' + self.last_name if len(name) == 0: name += self.user_name return name class Product: def __init__(self, id, name, quantity, price_cent, displayed, **kwargs): self.id = id self.name = name self.quantity = quantity self.price_cent = price_cent self.displayed = displayed class Saleentry: def __init__(self, id, profile, product, date, **kwargs): self.id = id self.profile = profile self.product = product self.date = date class Event: def __init__(self, id, name, price_group, active, **kwargs): self.id = id self.name = name self.price_group = price_group self.active = active class Comment: def __init__(self, profile, comment, **kwargs): self.profile = profile self.comment = comment
#!/usr/bin/env python class Graph: def __init__(self, n, edges): # n is the number of vertices # edges is a list of tuples which represents one edge self.n = n self.V = set(list(range(n))) self.E = [set() for i in range(n)] for e in edges: v, w = e self.E[v].add(w) self.E[w].add(v) def __str__(self): ret = '' ret += 'There are %d vertices.\n' % self.n for v in self.V: ret += 'Vertex %d has edges to: %s\n' % (v, self.E[v]) return ret if __name__ == '__main__': n = 4 edges = [[1, 0], [1, 2], [1, 3]] g1 = Graph(n, edges) n = 6 edges = [[0, 3], [1, 3], [2, 3], [4, 3], [5, 4]] g2 = Graph(n, edges) print(g1) print(g2)
class Graph: def __init__(self, n, edges): self.n = n self.V = set(list(range(n))) self.E = [set() for i in range(n)] for e in edges: (v, w) = e self.E[v].add(w) self.E[w].add(v) def __str__(self): ret = '' ret += 'There are %d vertices.\n' % self.n for v in self.V: ret += 'Vertex %d has edges to: %s\n' % (v, self.E[v]) return ret if __name__ == '__main__': n = 4 edges = [[1, 0], [1, 2], [1, 3]] g1 = graph(n, edges) n = 6 edges = [[0, 3], [1, 3], [2, 3], [4, 3], [5, 4]] g2 = graph(n, edges) print(g1) print(g2)
''' Adapt the code from one of the functions above to create a new function called 'multiplier'. The user should be able to input two numbers that are stored in variables. The function should multiply the two variables together and return the result to a variable in the main program. The main program should output the variable containing the result returned from the function. ''' input_one= int(input("enter a number ")) input_two= int(input("enter another number ")) def multiplier(): return input_one * input_two output_num = multiplier() print(output_num)
""" Adapt the code from one of the functions above to create a new function called 'multiplier'. The user should be able to input two numbers that are stored in variables. The function should multiply the two variables together and return the result to a variable in the main program. The main program should output the variable containing the result returned from the function. """ input_one = int(input('enter a number ')) input_two = int(input('enter another number ')) def multiplier(): return input_one * input_two output_num = multiplier() print(output_num)
my_dictionary={ 'nama': 'Elyas', 'usia': 19, 'status': 'mahasiswa' } my_dictionary["usia"]=20 print(my_dictionary)
my_dictionary = {'nama': 'Elyas', 'usia': 19, 'status': 'mahasiswa'} my_dictionary['usia'] = 20 print(my_dictionary)
#!/usr/bin/env python3 #encoding=utf-8 #------------------------------------------------ # Usage: python3 3-decorator2.py # Description: Tracer call with key-word only #------------------------------------------------ class Tracer: # state via instance attributes def __init__(self, func): # on @ decorator self.func = func self.calls = 0 # save func for later call def __call__(self, *args, **kwargs): self.calls += 1 print('call %s to %s' % (self.calls, self.func.__name__)) return self.func(*args, **kwargs) @Tracer def spam(a, b, c): # Same as: spam = Tracer(spam) print(a + b + c) # Triggers Tracer.__init__ @Tracer def eggs(x, y): # Same as: eggs = Tracer(eggs) print(x ** y) # Wrap eggs in Tracer object if __name__ == '__main__': spam(1, 2, 3) # Really calls Tracer instance: runs tracer.__call__ spam(a=4, b=5, c=6) # spam is an instance attribute eggs(2, 16) # Really calls Tracer instance, self.func is eggs eggs(4, y=7) # self.calls is per-decoration here
class Tracer: def __init__(self, func): self.func = func self.calls = 0 def __call__(self, *args, **kwargs): self.calls += 1 print('call %s to %s' % (self.calls, self.func.__name__)) return self.func(*args, **kwargs) @Tracer def spam(a, b, c): print(a + b + c) @Tracer def eggs(x, y): print(x ** y) if __name__ == '__main__': spam(1, 2, 3) spam(a=4, b=5, c=6) eggs(2, 16) eggs(4, y=7)
# Enter your code here. Read input from STDIN. Print output to STDOUT class TwoStackQueue: def __init__(self): self.forward_stack = [] self.reverse_stack = [] def dequeue(self): if not self.reverse_stack: while self.forward_stack: self.reverse_stack.append(self.forward_stack.pop()) return self.reverse_stack.pop() def enqueue(self, element): self.forward_stack.append(element) def front(self): front = self.dequeue() # adding back to reverse as we only need to seek the front element self.reverse_stack.append(front) return front def main(): queue = TwoStackQueue() n = int(input()) for i in range(n): query_input = input().split() query_type = int(query_input[0]) if query_type == 1: queue.enqueue(int(query_input[1])) elif query_type == 2: queue.dequeue() elif query_type == 3: print(queue.front()) else: raise Exception("invalid input") main()
class Twostackqueue: def __init__(self): self.forward_stack = [] self.reverse_stack = [] def dequeue(self): if not self.reverse_stack: while self.forward_stack: self.reverse_stack.append(self.forward_stack.pop()) return self.reverse_stack.pop() def enqueue(self, element): self.forward_stack.append(element) def front(self): front = self.dequeue() self.reverse_stack.append(front) return front def main(): queue = two_stack_queue() n = int(input()) for i in range(n): query_input = input().split() query_type = int(query_input[0]) if query_type == 1: queue.enqueue(int(query_input[1])) elif query_type == 2: queue.dequeue() elif query_type == 3: print(queue.front()) else: raise exception('invalid input') main()
N, K = map(int, input().split()) result = 0 while N != 0: result += 1 N //= K print(result)
(n, k) = map(int, input().split()) result = 0 while N != 0: result += 1 n //= K print(result)
EXPECTED_SECRETS = [ "EQ_SERVER_SIDE_STORAGE_USER_ID_SALT", "EQ_SERVER_SIDE_STORAGE_USER_IK_SALT", "EQ_SERVER_SIDE_STORAGE_ENCRYPTION_USER_PEPPER", "EQ_SECRET_KEY", "EQ_RABBITMQ_USERNAME", "EQ_RABBITMQ_PASSWORD", ] def validate_required_secrets(secrets): for required_secret in EXPECTED_SECRETS: if required_secret not in secrets["secrets"]: raise Exception("Missing Secret [{}]".format(required_secret)) class SecretStore: def __init__(self, secrets): self.secrets = secrets.get("secrets", {}) def get_secret_by_name(self, secret_name): return self.secrets.get(secret_name)
expected_secrets = ['EQ_SERVER_SIDE_STORAGE_USER_ID_SALT', 'EQ_SERVER_SIDE_STORAGE_USER_IK_SALT', 'EQ_SERVER_SIDE_STORAGE_ENCRYPTION_USER_PEPPER', 'EQ_SECRET_KEY', 'EQ_RABBITMQ_USERNAME', 'EQ_RABBITMQ_PASSWORD'] def validate_required_secrets(secrets): for required_secret in EXPECTED_SECRETS: if required_secret not in secrets['secrets']: raise exception('Missing Secret [{}]'.format(required_secret)) class Secretstore: def __init__(self, secrets): self.secrets = secrets.get('secrets', {}) def get_secret_by_name(self, secret_name): return self.secrets.get(secret_name)
{ "targets": [{ "target_name": "fuse", "include_dirs": [ "<!(node -e \"require('napi-macros')\")", "<!(node -e \"require('fuse-shared-library/include')\")", ], "libraries": [ "<!(node -e \"require('fuse-shared-library/lib')\")", ], "sources": [ "fuse-native.c" ], 'xcode_settings': { 'OTHER_CFLAGS': [ '-g', '-O3', '-Wall' ] }, 'cflags': [ '-g', '-O3', '-Wall' ], }, { "target_name": "postinstall", "type": "none", "dependencies": ["fuse"], "copies": [{ "destination": "build/Release", "files": [ "<!(node -e \"require('fuse-shared-library/lib')\")" ], }] }] }
{'targets': [{'target_name': 'fuse', 'include_dirs': ['<!(node -e "require(\'napi-macros\')")', '<!(node -e "require(\'fuse-shared-library/include\')")'], 'libraries': ['<!(node -e "require(\'fuse-shared-library/lib\')")'], 'sources': ['fuse-native.c'], 'xcode_settings': {'OTHER_CFLAGS': ['-g', '-O3', '-Wall']}, 'cflags': ['-g', '-O3', '-Wall']}, {'target_name': 'postinstall', 'type': 'none', 'dependencies': ['fuse'], 'copies': [{'destination': 'build/Release', 'files': ['<!(node -e "require(\'fuse-shared-library/lib\')")']}]}]}
def split_list(list, n): target_list = [] cut = int(len(list) / n) if cut == 0: list = [[x] for x in list] none_array = [[] for i in range(0, n - len(list))] return list + none_array for i in range(0, n - 1): target_list.append(list[cut * i:cut * (1 + i)]) target_list.append(list[cut * (n - 1):len(list)]) return target_list if __name__ == '__main__': list = [x for x in range(1040)] result = split_list(list, 50) print(result)
def split_list(list, n): target_list = [] cut = int(len(list) / n) if cut == 0: list = [[x] for x in list] none_array = [[] for i in range(0, n - len(list))] return list + none_array for i in range(0, n - 1): target_list.append(list[cut * i:cut * (1 + i)]) target_list.append(list[cut * (n - 1):len(list)]) return target_list if __name__ == '__main__': list = [x for x in range(1040)] result = split_list(list, 50) print(result)
# # This file contains the Python code from Program 15.18 of # "Data Structures and Algorithms # with Object-Oriented Design Patterns in Python" # by Bruno R. Preiss. # # Copyright (c) 2003 by Bruno R. Preiss, P.Eng. All rights reserved. # # http://www.brpreiss.com/books/opus7/programs/pgm15_18.txt # class RadixSorter(Sorter): r = 8 R = 1 << r p = (32 + r - 1) / r def __init__(self): self._count = Array(self.R) self._tempArray = None # ...
class Radixsorter(Sorter): r = 8 r = 1 << r p = (32 + r - 1) / r def __init__(self): self._count = array(self.R) self._tempArray = None
somthing = 'F5fjDxitafeZwPdwsmBL-Q' key_api = 'MiT75-jn5D_6MENzkehT5EReeVdYhp_86hQKYQp-3o10wIVXAbOakIT6khg8Y-_PBiy2fKPuAQFp9x7W80Ubn3xdiS8eCfy-nc7qtLNvs6oyAzdU2CsCRHEniyJUYHYx'
somthing = 'F5fjDxitafeZwPdwsmBL-Q' key_api = 'MiT75-jn5D_6MENzkehT5EReeVdYhp_86hQKYQp-3o10wIVXAbOakIT6khg8Y-_PBiy2fKPuAQFp9x7W80Ubn3xdiS8eCfy-nc7qtLNvs6oyAzdU2CsCRHEniyJUYHYx'
# -*- coding: utf-8 -*- ## courses table Course = db.define_table("courses", Field("title", label=T('Title')), Field("short_description", "text", label=T('Short Description')), Field("description", "text", widget=ckeditor.widget, label=T('Description')), Field("price", "float", default=0, label=T('Price')), Field("discount", "float", default=0, label=T('Discount')), Field("max_students", "integer", default=10, label=T('Max Students')), Field("total_hours", "integer", default=10, label=T('Total Hours')), Field("banner", "upload", label=T('Banner')), Field("icon", "upload", label=T('Icon')), Field("course_owner", "reference auth_user", label=T('Owner')) ) ## classes table Class = db.define_table("classes", Field("course", "reference courses", label=T('Course')), Field("start_date", "date", label=T('Start Date')), Field("end_date", "date", label=T('End Date')), Field("available_until", "date", label=T('Available Until')), Field("status", label=T('Status')) ) ## students table Student = db.define_table("students", Field("student", "reference auth_user", label=T('Student')), Field("class_id", "reference classes", label=T('Class Id')) ) ## modules table Module = db.define_table("modules", Field("title", label=T('Title')), Field("description", "text", widget=ckeditor.widget, label=T('Description')), Field("place", "integer", label=T('Place')), Field("course_id", "reference courses", label=T('Course Id')) ) ## single lesson table Lesson = db.define_table("lessons", Field("title", label=T('Title')), Field("lesson_module", "reference modules", label=T('Module')), Field("place", "integer", label=T('Place')) ) ## schedule lessons table Schedule_Lesson = db.define_table("schedule_lessons", Field("lesson_id", "reference lessons", label=T('Lesson Id')), Field("class_id", "reference classes", label=T('Class Id')), Field("release_date", "date", label=T('Release Date')) ) ## video lesson table Video = db.define_table("videos", Field("video_url", label=T('Video URL')), Field("video_upload", "upload",label=T('Upload Video')), Field("place", "integer", label=T('Place')), Field("lesson", "reference lessons", label=T('Lesson')), Field("lesson_type", "integer", default=1, label=T('Lesson Type')) ) ## text lesson table Text = db.define_table("texts", Field("body", "text", widget=ckeditor.widget, label=T('Body')), Field("place", "integer", label=T('Place')), Field("lesson", "reference lessons", label=T('Lesson')), Field("lesson_type", "integer", default=2, label=T('Lesson Type')) ) ## exercise lesson table Exercise = db.define_table("exercises", Field("question", "text", widget=ckeditor.widget, label=T('Question')), Field("alternative_a", label=T('Alternative A')), Field("alternative_b", label=T('Alternative B')), Field("alternative_c", label=T('Alternative C')), Field("alternative_d", label=T('Alternative D')), Field("correct", "integer", label=T('Correct Alternative')), Field("place", "integer", label=T('Place')), Field("lesson", "reference lessons", label=T('Lesson')), Field("lesson_type", "integer", default=3, label=T('Lesson Type')) ) ## track lesson table Track = db.define_table("tracks", Field("user_id", "reference auth_user", label=T('User Id')), Field("user_class", "reference classes", label=T('User Class')), Field("lesson", "reference lessons", label=T('User Lesson')) ) ## calendar table Date = db.define_table("dates", Field("title", label=T('Title')), Field("marked_date", "date", label=T('Date')), Field("class_id", "reference classes", label=T('Class Id')) ) ## forum table Forum = db.define_table("forum", Field("title", label=T('Title')), Field("body", "text", widget=ckeditor.widget, label=T('Body')), Field("class_id", "reference classes", label=T('Class Id')), auth.signature ) ## forum comments table Comment = db.define_table("comments", Field("body", "text", widget=ckeditor.widget, label=T('Body')), Field("post", "reference forum", label=T('Post')), auth.signature ) ## course interest table Interest = db.define_table("interests", Field("email", label=T('E-mail')), Field("course", "reference courses", label=T('Course')), auth.signature ) ## teacher's announcement table Announcement = db.define_table("announcements", Field("title", label=T('Title')), Field("body", "text", widget=ckeditor.widget, label=T('Body')), Field("class_id", "reference classes", label=T('Class Id')) ) ## certificates' info Certificate = db.define_table("certificates", Field("bg_template", "upload", label=T('Template')), Field("class_id", "reference classes", label=T('Class Id')), Field("teacher_signature", "upload", label=T('Signature')) ) ###################### ### PAYMENT TABLES ### ###################### ## register user's orders Order = db.define_table('orders', Field('user_id', 'reference auth_user', label=T('User Id')), Field('order_date', 'datetime', label=T('Order Date')), Field('products', 'list:reference classes', label=T('Products')), Field('amount', 'double', label=T('Amount')), Field('status', label=T('Status')), Field('token', label=T('Token')) ) ## stores pending transactions to connect to payment services Pending = db.define_table('pending_transactions', Field('order_id', 'reference orders', label=T('Order Id')), Field('confirmed', 'boolean', default=False, label=T('Confirmed')), auth.signature ) ## stores confirmed transactions to register user's payments Confirmed = db.define_table('confirmed_transactions', Field('order_id', 'reference orders', label=T('Order Id')), Field('pending_id', 'reference pending_transactions', ondelete='SET NULL', label=T('Pending Id')), Field('confirmation_time', 'datetime', label=T('Confirmation Time')), auth.signature )
course = db.define_table('courses', field('title', label=t('Title')), field('short_description', 'text', label=t('Short Description')), field('description', 'text', widget=ckeditor.widget, label=t('Description')), field('price', 'float', default=0, label=t('Price')), field('discount', 'float', default=0, label=t('Discount')), field('max_students', 'integer', default=10, label=t('Max Students')), field('total_hours', 'integer', default=10, label=t('Total Hours')), field('banner', 'upload', label=t('Banner')), field('icon', 'upload', label=t('Icon')), field('course_owner', 'reference auth_user', label=t('Owner'))) class = db.define_table('classes', field('course', 'reference courses', label=t('Course')), field('start_date', 'date', label=t('Start Date')), field('end_date', 'date', label=t('End Date')), field('available_until', 'date', label=t('Available Until')), field('status', label=t('Status'))) student = db.define_table('students', field('student', 'reference auth_user', label=t('Student')), field('class_id', 'reference classes', label=t('Class Id'))) module = db.define_table('modules', field('title', label=t('Title')), field('description', 'text', widget=ckeditor.widget, label=t('Description')), field('place', 'integer', label=t('Place')), field('course_id', 'reference courses', label=t('Course Id'))) lesson = db.define_table('lessons', field('title', label=t('Title')), field('lesson_module', 'reference modules', label=t('Module')), field('place', 'integer', label=t('Place'))) schedule__lesson = db.define_table('schedule_lessons', field('lesson_id', 'reference lessons', label=t('Lesson Id')), field('class_id', 'reference classes', label=t('Class Id')), field('release_date', 'date', label=t('Release Date'))) video = db.define_table('videos', field('video_url', label=t('Video URL')), field('video_upload', 'upload', label=t('Upload Video')), field('place', 'integer', label=t('Place')), field('lesson', 'reference lessons', label=t('Lesson')), field('lesson_type', 'integer', default=1, label=t('Lesson Type'))) text = db.define_table('texts', field('body', 'text', widget=ckeditor.widget, label=t('Body')), field('place', 'integer', label=t('Place')), field('lesson', 'reference lessons', label=t('Lesson')), field('lesson_type', 'integer', default=2, label=t('Lesson Type'))) exercise = db.define_table('exercises', field('question', 'text', widget=ckeditor.widget, label=t('Question')), field('alternative_a', label=t('Alternative A')), field('alternative_b', label=t('Alternative B')), field('alternative_c', label=t('Alternative C')), field('alternative_d', label=t('Alternative D')), field('correct', 'integer', label=t('Correct Alternative')), field('place', 'integer', label=t('Place')), field('lesson', 'reference lessons', label=t('Lesson')), field('lesson_type', 'integer', default=3, label=t('Lesson Type'))) track = db.define_table('tracks', field('user_id', 'reference auth_user', label=t('User Id')), field('user_class', 'reference classes', label=t('User Class')), field('lesson', 'reference lessons', label=t('User Lesson'))) date = db.define_table('dates', field('title', label=t('Title')), field('marked_date', 'date', label=t('Date')), field('class_id', 'reference classes', label=t('Class Id'))) forum = db.define_table('forum', field('title', label=t('Title')), field('body', 'text', widget=ckeditor.widget, label=t('Body')), field('class_id', 'reference classes', label=t('Class Id')), auth.signature) comment = db.define_table('comments', field('body', 'text', widget=ckeditor.widget, label=t('Body')), field('post', 'reference forum', label=t('Post')), auth.signature) interest = db.define_table('interests', field('email', label=t('E-mail')), field('course', 'reference courses', label=t('Course')), auth.signature) announcement = db.define_table('announcements', field('title', label=t('Title')), field('body', 'text', widget=ckeditor.widget, label=t('Body')), field('class_id', 'reference classes', label=t('Class Id'))) certificate = db.define_table('certificates', field('bg_template', 'upload', label=t('Template')), field('class_id', 'reference classes', label=t('Class Id')), field('teacher_signature', 'upload', label=t('Signature'))) order = db.define_table('orders', field('user_id', 'reference auth_user', label=t('User Id')), field('order_date', 'datetime', label=t('Order Date')), field('products', 'list:reference classes', label=t('Products')), field('amount', 'double', label=t('Amount')), field('status', label=t('Status')), field('token', label=t('Token'))) pending = db.define_table('pending_transactions', field('order_id', 'reference orders', label=t('Order Id')), field('confirmed', 'boolean', default=False, label=t('Confirmed')), auth.signature) confirmed = db.define_table('confirmed_transactions', field('order_id', 'reference orders', label=t('Order Id')), field('pending_id', 'reference pending_transactions', ondelete='SET NULL', label=t('Pending Id')), field('confirmation_time', 'datetime', label=t('Confirmation Time')), auth.signature)
def get_encoder_decoder_hp(model='gin', decoder=None): if model == 'gin': model_hp = { "num_layers": 5, "hidden": [64,64,64,64], "dropout": 0.5, "act": "relu", "eps": "False", "mlp_layers": 2, "neighbor_pooling_type": "sum", } elif model == 'gat': model_hp = { # hp from model "num_layers": 2, "hidden": [8], "heads": 8, "dropout": 0.6, "act": "elu", } elif model == 'gcn': model_hp = { "num_layers": 2, "hidden": [16], "dropout": 0.5, "act": "relu" } elif model == 'sage': model_hp = { "num_layers": 2, "hidden": [64], "dropout": 0.5, "act": "relu", "agg": "mean", } elif model == 'topk': model_hp = { "num_layers": 5, "hidden": [64, 64, 64, 64] } if decoder is None: decoder_hp = { "hidden": 64, "dropout": 0.5, "act": "relu", "graph_pooling_type": "sum" } elif decoder == "JKSumPoolMLP": decoder_hp = { "dropout": 0.5, "graph_pooling_type": "sum" } elif decoder == "topk": decoder_hp = { "dropout": 0.5 } return model_hp, decoder_hp
def get_encoder_decoder_hp(model='gin', decoder=None): if model == 'gin': model_hp = {'num_layers': 5, 'hidden': [64, 64, 64, 64], 'dropout': 0.5, 'act': 'relu', 'eps': 'False', 'mlp_layers': 2, 'neighbor_pooling_type': 'sum'} elif model == 'gat': model_hp = {'num_layers': 2, 'hidden': [8], 'heads': 8, 'dropout': 0.6, 'act': 'elu'} elif model == 'gcn': model_hp = {'num_layers': 2, 'hidden': [16], 'dropout': 0.5, 'act': 'relu'} elif model == 'sage': model_hp = {'num_layers': 2, 'hidden': [64], 'dropout': 0.5, 'act': 'relu', 'agg': 'mean'} elif model == 'topk': model_hp = {'num_layers': 5, 'hidden': [64, 64, 64, 64]} if decoder is None: decoder_hp = {'hidden': 64, 'dropout': 0.5, 'act': 'relu', 'graph_pooling_type': 'sum'} elif decoder == 'JKSumPoolMLP': decoder_hp = {'dropout': 0.5, 'graph_pooling_type': 'sum'} elif decoder == 'topk': decoder_hp = {'dropout': 0.5} return (model_hp, decoder_hp)
class Solution: def canConstruct(self, ransomNote: str, magazine: str) -> bool: count_r={} for c in ransomNote: if c not in count_r: count_r[c]=1 else: count_r[c]+=1 print(count_r) for cr in magazine: if cr not in count_r or count_r[cr]==0: # print("entered") continue else: count_r[cr]-=1 print(count_r) x=sum(count_r.values()) print(x) if x==0: return 1 else: return 0
class Solution: def can_construct(self, ransomNote: str, magazine: str) -> bool: count_r = {} for c in ransomNote: if c not in count_r: count_r[c] = 1 else: count_r[c] += 1 print(count_r) for cr in magazine: if cr not in count_r or count_r[cr] == 0: continue else: count_r[cr] -= 1 print(count_r) x = sum(count_r.values()) print(x) if x == 0: return 1 else: return 0
BOTTLE_CONTENT_MANAGER_API_PORT = 8081 BOTTLE_DEORATOR_PORTFOLIOS_API_PORT = 8082 BOTTLE_DEORATOR_TAGS_API_PORT = 8083 BOTTLE_DEORATOR_VOTES_API_PORT = 8084 USE_SOLR_AS_PERSISTENCE = True SOLR_URL = 'http://localhost:8983/solr' DECORATION_SOLR_FIELD_0 = 'portfolios' DECORATION_SOLR_FIELD_1 = 'tags'
bottle_content_manager_api_port = 8081 bottle_deorator_portfolios_api_port = 8082 bottle_deorator_tags_api_port = 8083 bottle_deorator_votes_api_port = 8084 use_solr_as_persistence = True solr_url = 'http://localhost:8983/solr' decoration_solr_field_0 = 'portfolios' decoration_solr_field_1 = 'tags'
# keep a list of the N best things we have seen, discard anything else class nbest(object): def __init__(self,N=1000): self.store = [] self.N = N def add(self,item): self.store.append(item) self.store.sort(reverse=True) self.store = self.store[:self.N] def __getitem__(self,k): return self.store[k] def __len__(self): return len(self.store)
class Nbest(object): def __init__(self, N=1000): self.store = [] self.N = N def add(self, item): self.store.append(item) self.store.sort(reverse=True) self.store = self.store[:self.N] def __getitem__(self, k): return self.store[k] def __len__(self): return len(self.store)
#f = open("datum/iris.csv") #print (f.read()) #f.close() #closing file is good practice #Using ff code will make closing file unnecessary with open("datum/iris.csv") as f: contents = (f.read()) print(contents)
with open('datum/iris.csv') as f: contents = f.read() print(contents)
def main(j, args, params, tags, tasklet): page = args.page logpath = args.requestContext.params.get('logpath') templatepath = args.requestContext.params.get('templatepath') installedpath = args.requestContext.params.get('installedpath') metapath = args.requestContext.params.get('metapath') domain = args.requestContext.params.get('domain') name = args.requestContext.params.get('servicename') instance = args.requestContext.params.get('instance') instancestr = ':%s' % instance if instance else '' page.addHeading("Code editors for %s:%s%s" % (domain, name, instancestr), 2) for representation, path in (('Installed', installedpath), ('Logs', logpath), ('Template', templatepath), ('Metadata', metapath)): if not path or not j.system.fs.exists(path): continue page.addHeading("%s" % representation, 3) page.addExplorer(path, readonly=False, tree=True, height=300) params.result = page return params def match(j, args, params, tags, tasklet): return True
def main(j, args, params, tags, tasklet): page = args.page logpath = args.requestContext.params.get('logpath') templatepath = args.requestContext.params.get('templatepath') installedpath = args.requestContext.params.get('installedpath') metapath = args.requestContext.params.get('metapath') domain = args.requestContext.params.get('domain') name = args.requestContext.params.get('servicename') instance = args.requestContext.params.get('instance') instancestr = ':%s' % instance if instance else '' page.addHeading('Code editors for %s:%s%s' % (domain, name, instancestr), 2) for (representation, path) in (('Installed', installedpath), ('Logs', logpath), ('Template', templatepath), ('Metadata', metapath)): if not path or not j.system.fs.exists(path): continue page.addHeading('%s' % representation, 3) page.addExplorer(path, readonly=False, tree=True, height=300) params.result = page return params def match(j, args, params, tags, tasklet): return True
def cargarListas(nombrearchivo,lista): try: archivo = open(nombrearchivo, "rt") while True: linea = archivo.readline() if not linea: break linea = linea[:-1] listaNombre, Articulos = linea.split("=") if Articulos.strip() == "": listaArticulos = [] else: listaArticulos = Articulos.split(",") lista.append([listaNombre,listaArticulos]) archivo.close() except: print("") return lista def salvarListas(nommbrearchivo,listas): try: archivo = open(nommbrearchivo, "wt") for lista in listas: listaarchivo = "" for articulos in lista[1]: listaarchivo += "{0},".format(articulos) archivo.write(lista[0] + "=" + listaarchivo[:-1] + "\n") archivo.close() except: print("\nError al Guardar Archivo") input() def getListaNombre(lista,lista_actual): if len(lista) == 0: return '** LISTA VACIA **' else: return lista[lista_actual][0] def agregarLista(lista,listaNombre): lista.append([listaNombre,[]]) return lista def agregarArticulo(lista,listaNombre): lista.append(listaNombre) return lista def borrarLista(lista,listaNumero): lista.pop(listaNumero) return lista
def cargar_listas(nombrearchivo, lista): try: archivo = open(nombrearchivo, 'rt') while True: linea = archivo.readline() if not linea: break linea = linea[:-1] (lista_nombre, articulos) = linea.split('=') if Articulos.strip() == '': lista_articulos = [] else: lista_articulos = Articulos.split(',') lista.append([listaNombre, listaArticulos]) archivo.close() except: print('') return lista def salvar_listas(nommbrearchivo, listas): try: archivo = open(nommbrearchivo, 'wt') for lista in listas: listaarchivo = '' for articulos in lista[1]: listaarchivo += '{0},'.format(articulos) archivo.write(lista[0] + '=' + listaarchivo[:-1] + '\n') archivo.close() except: print('\nError al Guardar Archivo') input() def get_lista_nombre(lista, lista_actual): if len(lista) == 0: return '** LISTA VACIA **' else: return lista[lista_actual][0] def agregar_lista(lista, listaNombre): lista.append([listaNombre, []]) return lista def agregar_articulo(lista, listaNombre): lista.append(listaNombre) return lista def borrar_lista(lista, listaNumero): lista.pop(listaNumero) return lista
first_number = int(input()) prime_count = 0 while True: if 1>= first_number: break running_number = first_number divider = first_number // 2 if ( 0 == first_number % 2 ) else ( first_number // 2 ) + 1; count = 0 while divider != 1: if 0 == running_number % divider: count += 1 divider -= 1 if count == 0: prime_count += 1 first_number -= 1 if 1 == first_number: break print(prime_count)
first_number = int(input()) prime_count = 0 while True: if 1 >= first_number: break running_number = first_number divider = first_number // 2 if 0 == first_number % 2 else first_number // 2 + 1 count = 0 while divider != 1: if 0 == running_number % divider: count += 1 divider -= 1 if count == 0: prime_count += 1 first_number -= 1 if 1 == first_number: break print(prime_count)
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. ALLOWED_PARAM_MERGE_STRATEGIES = (OVERWRITE, MERGE, DEEP_MERGE) = ( 'overwrite', 'merge', 'deep_merge') def get_param_merge_strategy(merge_strategies, param_key): if merge_strategies is None: return OVERWRITE env_default = merge_strategies.get('default', OVERWRITE) merge_strategy = merge_strategies.get(param_key, env_default) if merge_strategy in ALLOWED_PARAM_MERGE_STRATEGIES: return merge_strategy return env_default
allowed_param_merge_strategies = (overwrite, merge, deep_merge) = ('overwrite', 'merge', 'deep_merge') def get_param_merge_strategy(merge_strategies, param_key): if merge_strategies is None: return OVERWRITE env_default = merge_strategies.get('default', OVERWRITE) merge_strategy = merge_strategies.get(param_key, env_default) if merge_strategy in ALLOWED_PARAM_MERGE_STRATEGIES: return merge_strategy return env_default
# for item in ["mash","john","sera"]: # print(item) # for item in range(5,10,2): # print(item) # for x in range(4): # for y in range(3): # print(f"({x}, {y})") numbers = [5, 2 , 5 ,2 ,2] for item in numbers: output = "" for count in range(item): output += "X" print(output)
numbers = [5, 2, 5, 2, 2] for item in numbers: output = '' for count in range(item): output += 'X' print(output)
# Problem: https://www.hackerrank.com/challenges/30-data-types/problem # Score: 30.0 i = 4 d = 4.0 s = 'HackerRank ' x = int(input()) y = float(input()) z = input() print(i+x, d+y, s+z, sep='\n')
i = 4 d = 4.0 s = 'HackerRank ' x = int(input()) y = float(input()) z = input() print(i + x, d + y, s + z, sep='\n')
class ConsumerRegister: all_consumers = {} def __init__(self, name): self.name = name self.consumer_class = None def consumer(self): def decorator(plugin_cls): self.consumer_class = plugin_cls self.all_consumers[self.name] = { 'consumer_cls': self.consumer_class } return plugin_cls return decorator @classmethod def get_consumer(cls, name): try: return cls.all_consumers[name] except KeyError: return None
class Consumerregister: all_consumers = {} def __init__(self, name): self.name = name self.consumer_class = None def consumer(self): def decorator(plugin_cls): self.consumer_class = plugin_cls self.all_consumers[self.name] = {'consumer_cls': self.consumer_class} return plugin_cls return decorator @classmethod def get_consumer(cls, name): try: return cls.all_consumers[name] except KeyError: return None
class ConfigBase: def __init__(self,**kwargs): for k,v in kwargs.items(): setattr(self,k,v) @classmethod def get_class_config_info_dict(cls): if issubclass(cls.__base__, ConfigBase): dic=cls.__base__.get_class_config_info_dict() else: dic = {} for k, v in cls.__dict__.items(): if not k.startswith('_') and k[0].upper() == k[0] and v is not None: dic[k] = v return dic def get_config_info_dict(self): dic=self.get_class_config_info_dict() for k, v in self.__dict__.items(): if not k.startswith('_') and k[0].upper() == k[0] and v is not None: dic[k] = v return dic
class Configbase: def __init__(self, **kwargs): for (k, v) in kwargs.items(): setattr(self, k, v) @classmethod def get_class_config_info_dict(cls): if issubclass(cls.__base__, ConfigBase): dic = cls.__base__.get_class_config_info_dict() else: dic = {} for (k, v) in cls.__dict__.items(): if not k.startswith('_') and k[0].upper() == k[0] and (v is not None): dic[k] = v return dic def get_config_info_dict(self): dic = self.get_class_config_info_dict() for (k, v) in self.__dict__.items(): if not k.startswith('_') and k[0].upper() == k[0] and (v is not None): dic[k] = v return dic
def mergeSort(arr): if len(arr) >1: mid = len(arr)//2 L = arr[:mid] R = arr[mid:] mergeSort(L) mergeSort(R) i = j = k = 0 while i < len(L) and j < len(R): if L[i] < R[j]: arr[k] = L[i] i+= 1 else: arr[k] = R[j] j+= 1 k+= 1 while i < len(L): arr[k] = L[i] i+= 1 k+= 1 while j < len(R): arr[k] = R[j] j+= 1 k+= 1 def printList(arr): for i in range(len(arr)): print(arr[i], end =" ") print() if __name__ == '__main__': arr = [12, 34, 11, 2, 10] print ("Given array is", end ="\n") printList(arr) mergeSort(arr) print("Sorted array is: ", end ="\n") printList(arr)
def merge_sort(arr): if len(arr) > 1: mid = len(arr) // 2 l = arr[:mid] r = arr[mid:] merge_sort(L) merge_sort(R) i = j = k = 0 while i < len(L) and j < len(R): if L[i] < R[j]: arr[k] = L[i] i += 1 else: arr[k] = R[j] j += 1 k += 1 while i < len(L): arr[k] = L[i] i += 1 k += 1 while j < len(R): arr[k] = R[j] j += 1 k += 1 def print_list(arr): for i in range(len(arr)): print(arr[i], end=' ') print() if __name__ == '__main__': arr = [12, 34, 11, 2, 10] print('Given array is', end='\n') print_list(arr) merge_sort(arr) print('Sorted array is: ', end='\n') print_list(arr)
#python 3.5.2 class Stack: def __init__(self): self.items = [] def isEmpty(self): self.items == [] def push(self, item): self.items.append(item) def pop(self): return self.items.pop() def peek(self): return self.items[len(self.items)-1] def size(self): return len(self.items) def converDecToBinary(decimalNo, debug): s = Stack() temp = decimalNo remainder = 0 pushNo = 0 result = "" while temp > 0: remainder = temp%2 if remainder == 0: if debug : pushNo = 0 s.push('0') else: if debug : pushNo = 1 s.push('1') temp = temp//2 if debug : print( temp , 'remainder', pushNo) print( s.items ) print('-'*20) print('REVERSE THE NUMBERS') while s.size() != 0: if debug : print( s.items ) result = result + s.pop() print('-'*20) return result print( converDecToBinary(6 , True) ) print('-'*20) ''' 3 remainder 0 ['0'] -------------------- 1 remainder 1 ['0', '1'] -------------------- 0 remainder 1 ['0', '1', '1'] -------------------- REVERSE THE NUMBERS ['0', '1', '1'] ['0', '1'] ['0'] -------------------- 110 -------------------- '''
class Stack: def __init__(self): self.items = [] def is_empty(self): self.items == [] def push(self, item): self.items.append(item) def pop(self): return self.items.pop() def peek(self): return self.items[len(self.items) - 1] def size(self): return len(self.items) def conver_dec_to_binary(decimalNo, debug): s = stack() temp = decimalNo remainder = 0 push_no = 0 result = '' while temp > 0: remainder = temp % 2 if remainder == 0: if debug: push_no = 0 s.push('0') else: if debug: push_no = 1 s.push('1') temp = temp // 2 if debug: print(temp, 'remainder', pushNo) print(s.items) print('-' * 20) print('REVERSE THE NUMBERS') while s.size() != 0: if debug: print(s.items) result = result + s.pop() print('-' * 20) return result print(conver_dec_to_binary(6, True)) print('-' * 20) "\n3 remainder 0\n['0']\n--------------------\n1 remainder 1\n['0', '1']\n--------------------\n0 remainder 1\n['0', '1', '1']\n--------------------\nREVERSE THE NUMBERS\n['0', '1', '1']\n['0', '1']\n['0']\n--------------------\n110\n--------------------\n"
class TextManipulation: def formatText(text): newText = text.replace("&", "\n") return newText
class Textmanipulation: def format_text(text): new_text = text.replace('&', '\n') return newText
# Map query config QUERY_RADIUS = 3000 # mts. Radius to use on OSM data queries. MIN_DISTANCE_FOR_NEW_QUERY = 1000 # mts. Minimum distance to query area edge before issuing a new query. FULL_STOP_MAX_SPEED = 1.39 # m/s Max speed for considering car is stopped.
query_radius = 3000 min_distance_for_new_query = 1000 full_stop_max_speed = 1.39
# THIS FILE IS GENERATED FROM PYWAVELETS SETUP.PY short_version = '0.3.0' version = '0.3.0' full_version = '0.3.0.dev-7ea3e91' git_revision = '7ea3e919b1d7bbf4d7685c47d3d10c16c599cd06' release = False if not release: version = full_version
short_version = '0.3.0' version = '0.3.0' full_version = '0.3.0.dev-7ea3e91' git_revision = '7ea3e919b1d7bbf4d7685c47d3d10c16c599cd06' release = False if not release: version = full_version
''' Create a function that sums two arguments together. If only one argument is provided, then return a function that expects one argument and returns the sum. For example, addTogether(2, 3) should return 5, and addTogether(2) should return a function. Calling this returned function with a single argument will then return the sum: var sumTwoAnd = addTogether(2); sumTwoAnd(3) returns 5. If either argument isn't a valid number, return undefined. ''' def addTogether(*args): if len(args) == 2: return sum(args) elif len(args) == 1: return lambda v: v + args[0] addTogether(2,3)
""" Create a function that sums two arguments together. If only one argument is provided, then return a function that expects one argument and returns the sum. For example, addTogether(2, 3) should return 5, and addTogether(2) should return a function. Calling this returned function with a single argument will then return the sum: var sumTwoAnd = addTogether(2); sumTwoAnd(3) returns 5. If either argument isn't a valid number, return undefined. """ def add_together(*args): if len(args) == 2: return sum(args) elif len(args) == 1: return lambda v: v + args[0] add_together(2, 3)
exp_name = 'prenet_c32s6d5_lstm' work_dir = f'./work_dirs/{exp_name}' # model settings model = dict( type='MultiStageRestorer', generator=dict( type='PReNet', in_channels=3, out_channels=3, mid_channels=32, recurrent_unit='LSTM', num_stages=6, num_resblocks=5, recursive_resblock=False ), losses=[dict(type='SSIMLoss', loss_weight=1.0, reduction='mean', recurrent=False)], ) # model training and testing settings train_cfg = None test_cfg = dict(metrics=['PSNR', 'SSIM']) # dataset settings train_dataset_type = 'DerainPairedDataset' val_dataset_type = 'DerainPairedDataset' train_pipeline = [ dict( type='LoadPairedImageFromFile', io_backend='disk', key='gt,lq', flag='color' ), dict(type='ArgsCrop', keys=['lq', 'gt']), dict(type='RescaleToZeroOne', keys=['lq', 'gt']), dict(type='ImageToTensor', keys=['lq', 'gt']), dict( type='Collect', keys=['lq', 'gt'], meta_keys=['lq_path', 'gt_path'] ) ] test_pipeline = [ dict( type='LoadPairedImageFromFile', io_backend='disk', key='gt,lq', flag='color' ), dict(type='RescaleToZeroOne', keys=['lq', 'gt']), dict(type='ImageToTensor', keys=['lq', 'gt']), dict( type='Collect', keys=['lq', 'gt'], meta_keys=['lq_path', 'gt_path'] ) ] data_root = '../data/Rain200L' data = dict( workers_per_gpu=8, train_dataloader=dict(samples_per_gpu=18, drop_last=True), val_dataloader=dict(samples_per_gpu=1), test_dataloader=dict(samples_per_gpu=1), train=dict( type='ExhaustivePatchDataset', patch_size=100, stride=80, # set to 100 for Rain1200 and Rain1400 dataset dataset=dict( type=train_dataset_type, dataroot=data_root, pipeline=train_pipeline, test_mode=False ) ), val=dict( type=val_dataset_type, dataroot=data_root, pipeline=test_pipeline, test_mode=True ), test=dict( type=val_dataset_type, dataroot=data_root, pipeline=test_pipeline, test_mode=True ) ) # optimizer optimizers = dict(type='Adam', lr=1e-3, betas=(0.9, 0.999)) optimizer_config = dict(grad_clip=None) # learning policy runner = dict(type='EpochBasedRunner', max_epochs=100) lr_config = dict( policy='Step', by_epoch=True, step=[30, 50, 80], gamma=0.2 ) checkpoint_config = dict(interval=10, save_optimizer=True, by_epoch=True) evaluation = dict(interval=25, save_image=True, by_epoch=True) log_config = dict( interval=400, hooks=[ dict(type='TextLoggerHook', by_epoch=False) ] ) visual_config = None # runtime settings dist_params = dict(backend='nccl') log_level = 'INFO' load_from = None resume_from = None workflow = [('train', 1)]
exp_name = 'prenet_c32s6d5_lstm' work_dir = f'./work_dirs/{exp_name}' model = dict(type='MultiStageRestorer', generator=dict(type='PReNet', in_channels=3, out_channels=3, mid_channels=32, recurrent_unit='LSTM', num_stages=6, num_resblocks=5, recursive_resblock=False), losses=[dict(type='SSIMLoss', loss_weight=1.0, reduction='mean', recurrent=False)]) train_cfg = None test_cfg = dict(metrics=['PSNR', 'SSIM']) train_dataset_type = 'DerainPairedDataset' val_dataset_type = 'DerainPairedDataset' train_pipeline = [dict(type='LoadPairedImageFromFile', io_backend='disk', key='gt,lq', flag='color'), dict(type='ArgsCrop', keys=['lq', 'gt']), dict(type='RescaleToZeroOne', keys=['lq', 'gt']), dict(type='ImageToTensor', keys=['lq', 'gt']), dict(type='Collect', keys=['lq', 'gt'], meta_keys=['lq_path', 'gt_path'])] test_pipeline = [dict(type='LoadPairedImageFromFile', io_backend='disk', key='gt,lq', flag='color'), dict(type='RescaleToZeroOne', keys=['lq', 'gt']), dict(type='ImageToTensor', keys=['lq', 'gt']), dict(type='Collect', keys=['lq', 'gt'], meta_keys=['lq_path', 'gt_path'])] data_root = '../data/Rain200L' data = dict(workers_per_gpu=8, train_dataloader=dict(samples_per_gpu=18, drop_last=True), val_dataloader=dict(samples_per_gpu=1), test_dataloader=dict(samples_per_gpu=1), train=dict(type='ExhaustivePatchDataset', patch_size=100, stride=80, dataset=dict(type=train_dataset_type, dataroot=data_root, pipeline=train_pipeline, test_mode=False)), val=dict(type=val_dataset_type, dataroot=data_root, pipeline=test_pipeline, test_mode=True), test=dict(type=val_dataset_type, dataroot=data_root, pipeline=test_pipeline, test_mode=True)) optimizers = dict(type='Adam', lr=0.001, betas=(0.9, 0.999)) optimizer_config = dict(grad_clip=None) runner = dict(type='EpochBasedRunner', max_epochs=100) lr_config = dict(policy='Step', by_epoch=True, step=[30, 50, 80], gamma=0.2) checkpoint_config = dict(interval=10, save_optimizer=True, by_epoch=True) evaluation = dict(interval=25, save_image=True, by_epoch=True) log_config = dict(interval=400, hooks=[dict(type='TextLoggerHook', by_epoch=False)]) visual_config = None dist_params = dict(backend='nccl') log_level = 'INFO' load_from = None resume_from = None workflow = [('train', 1)]
def findDecision(obj): #obj[0]: Coupon, obj[1]: Education, obj[2]: Occupation, obj[3]: Restaurant20to50, obj[4]: Distance # {"feature": "Coupon", "instances": 127, "metric_value": 0.9671, "depth": 1} if obj[0]>0: # {"feature": "Occupation", "instances": 111, "metric_value": 0.9353, "depth": 2} if obj[2]<=7.990990990990991: # {"feature": "Restaurant20to50", "instances": 68, "metric_value": 0.8113, "depth": 3} if obj[3]<=2.0: # {"feature": "Distance", "instances": 61, "metric_value": 0.8537, "depth": 4} if obj[4]>1: # {"feature": "Education", "instances": 36, "metric_value": 0.7107, "depth": 5} if obj[1]<=2: return 'True' elif obj[1]>2: return 'True' else: return 'True' elif obj[4]<=1: # {"feature": "Education", "instances": 25, "metric_value": 0.971, "depth": 5} if obj[1]>1: return 'False' elif obj[1]<=1: return 'True' else: return 'True' else: return 'True' elif obj[3]>2.0: return 'True' else: return 'True' elif obj[2]>7.990990990990991: # {"feature": "Restaurant20to50", "instances": 43, "metric_value": 0.9996, "depth": 3} if obj[3]>-1.0: # {"feature": "Education", "instances": 41, "metric_value": 0.9996, "depth": 4} if obj[1]<=3: # {"feature": "Distance", "instances": 35, "metric_value": 0.9947, "depth": 5} if obj[4]>1: return 'False' elif obj[4]<=1: return 'True' else: return 'True' elif obj[1]>3: # {"feature": "Distance", "instances": 6, "metric_value": 0.65, "depth": 5} if obj[4]<=1: return 'True' elif obj[4]>1: return 'True' else: return 'True' else: return 'True' elif obj[3]<=-1.0: return 'False' else: return 'False' else: return 'False' elif obj[0]<=0: # {"feature": "Education", "instances": 16, "metric_value": 0.896, "depth": 2} if obj[1]>0: # {"feature": "Restaurant20to50", "instances": 12, "metric_value": 0.9799, "depth": 3} if obj[3]>0.0: # {"feature": "Occupation", "instances": 10, "metric_value": 1.0, "depth": 4} if obj[2]<=6: # {"feature": "Distance", "instances": 6, "metric_value": 0.9183, "depth": 5} if obj[4]<=2: return 'True' elif obj[4]>2: return 'False' else: return 'False' elif obj[2]>6: # {"feature": "Distance", "instances": 4, "metric_value": 0.8113, "depth": 5} if obj[4]>2: return 'True' elif obj[4]<=2: return 'False' else: return 'False' else: return 'False' elif obj[3]<=0.0: return 'False' else: return 'False' elif obj[1]<=0: return 'False' else: return 'False' else: return 'False'
def find_decision(obj): if obj[0] > 0: if obj[2] <= 7.990990990990991: if obj[3] <= 2.0: if obj[4] > 1: if obj[1] <= 2: return 'True' elif obj[1] > 2: return 'True' else: return 'True' elif obj[4] <= 1: if obj[1] > 1: return 'False' elif obj[1] <= 1: return 'True' else: return 'True' else: return 'True' elif obj[3] > 2.0: return 'True' else: return 'True' elif obj[2] > 7.990990990990991: if obj[3] > -1.0: if obj[1] <= 3: if obj[4] > 1: return 'False' elif obj[4] <= 1: return 'True' else: return 'True' elif obj[1] > 3: if obj[4] <= 1: return 'True' elif obj[4] > 1: return 'True' else: return 'True' else: return 'True' elif obj[3] <= -1.0: return 'False' else: return 'False' else: return 'False' elif obj[0] <= 0: if obj[1] > 0: if obj[3] > 0.0: if obj[2] <= 6: if obj[4] <= 2: return 'True' elif obj[4] > 2: return 'False' else: return 'False' elif obj[2] > 6: if obj[4] > 2: return 'True' elif obj[4] <= 2: return 'False' else: return 'False' else: return 'False' elif obj[3] <= 0.0: return 'False' else: return 'False' elif obj[1] <= 0: return 'False' else: return 'False' else: return 'False'
a = 1 a = a + 2 print(a) a += 2 print(a) word = "race" word += " car" print(word)
a = 1 a = a + 2 print(a) a += 2 print(a) word = 'race' word += ' car' print(word)
# compare_versions.py # software library for question B def compare_versions(string1, string2): seperator = "." # first load the strings and then seperate the individual numbers into a list by # using the split function string1 = string1.split(seperator) string2 = string2.split(seperator) # loop through all the version levels for level in range(0, len(string1)): # if the current two levels are equal, then continue in the loop if string1[level] == string2[level]: continue # if all the levels are the same, then return that the versions are equal return print("Version %s is equal to version %s. " %(seperator.join(string1), seperator.join(string2))) # if the current level of string1 one is higher than string 2, return # string 1 elif string1[level] > string2[level]: return print("Version %s is greater than %s. " %(seperator.join(string1), seperator.join(string2))) break # else, return string2 else: return print("Version %s is greater than %s. " %(seperator.join(string2), seperator.join(string1))) break # Another cool way to answer this question: # Use python tuples! There is built in logic when comparing them def compare_tuples(string1, string2): seperator = "." # convert the strings to tuples string1 = tuple(string1.split(seperator)) string2 = tuple(string2.split(seperator)) # compare the tuples to each other and return whichever one is greater if (string1 == string2): return print("Version %s is equal to version %s. " %(seperator.join(string1), seperator.join(string2))) elif string1 > string2: return print("Version %s is greater than %s. " %(seperator.join(string1), seperator.join(string2))) else: return print("Version %s is greater than %s. " %(seperator.join(string2), seperator.join(string1)))
def compare_versions(string1, string2): seperator = '.' string1 = string1.split(seperator) string2 = string2.split(seperator) for level in range(0, len(string1)): if string1[level] == string2[level]: continue return print('Version %s is equal to version %s. ' % (seperator.join(string1), seperator.join(string2))) elif string1[level] > string2[level]: return print('Version %s is greater than %s. ' % (seperator.join(string1), seperator.join(string2))) break else: return print('Version %s is greater than %s. ' % (seperator.join(string2), seperator.join(string1))) break def compare_tuples(string1, string2): seperator = '.' string1 = tuple(string1.split(seperator)) string2 = tuple(string2.split(seperator)) if string1 == string2: return print('Version %s is equal to version %s. ' % (seperator.join(string1), seperator.join(string2))) elif string1 > string2: return print('Version %s is greater than %s. ' % (seperator.join(string1), seperator.join(string2))) else: return print('Version %s is greater than %s. ' % (seperator.join(string2), seperator.join(string1)))
class BaseSubmission: def __init__(self, team_name, player_names): self.team_name = team_name self.player_names = player_names def get_actions(self, obs): ''' Overview: You must implement this function. ''' raise NotImplementedError
class Basesubmission: def __init__(self, team_name, player_names): self.team_name = team_name self.player_names = player_names def get_actions(self, obs): """ Overview: You must implement this function. """ raise NotImplementedError
class R1DataCheckSpecificDto: def __init__(self, id_r1_data_check_specific=None, init_event=None, end_event=None, init_pixel=None, end_pixel=None, init_sample=None, end_sample=None, init_subrun=None, end_subrun=None, type_of_gap_calc=None, list_of_module_in_detail=None): self.__id_r1_data_check_specific = id_r1_data_check_specific self.__init_event = init_event self.__end_event = end_event self.__init_pixel = init_pixel self.__end_pixel = end_pixel self.__init_sample = init_sample self.__end_sample = end_sample self.__init_subrun = init_subrun self.__end_subrun = end_subrun self.__type_of_gap_calc = type_of_gap_calc self.__list_of_module_in_detail = list_of_module_in_detail @property def id_r1_data_check_specific(self): return self.__id_r1_data_check_specific @property def init_event(self): return self.__init_event @property def end_event(self): return self.__end_event @property def init_pixel(self): return self.__init_pixel @property def end_pixel(self): return self.__end_pixel @property def init_sample(self): return self.__init_sample @property def end_sample(self): return self.__end_sample @property def init_subrun(self): return self.__init_subrun @property def end_subrun(self): return self.__end_subrun @property def type_of_gap_calc(self): return self.__type_of_gap_calc @property def list_of_module_in_detail(self): return self.__list_of_module_in_detail @id_r1_data_check_specific.setter def id_r1_data_check_specific(self, value): self.__id_r1_data_check_specific = value @init_event.setter def init_event(self, value): self.__init_event = value @end_event.setter def end_event(self, value): self.__end_event = value @init_pixel.setter def init_pixel(self, value): self.__init_pixel = value @end_pixel.setter def end_pixel(self, value): self.__end_pixel = value @init_sample.setter def init_sample(self, value): self.__init_sample = value @end_sample.setter def end_sample(self, value): self.__end_sample = value @init_subrun.setter def init_subrun(self, value): self.__init_subrun = value @end_subrun.setter def end_subrun(self, value): self.__end_subrun = value @type_of_gap_calc.setter def type_of_gap_calc(self, value): self.__type_of_gap_calc = value @list_of_module_in_detail.setter def list_of_module_in_detail(self, value): self.__list_of_module_in_detail = value def create_r1_data_check_specific(id_r1_data_check_specific, init_event, end_event, init_pixel, end_pixel, init_sample, end_sample, init_subrun, end_subrun, type_of_gap_calc, list_of_module_in_detail): dto = R1DataCheckSpecificDto() dto.id_r1_data_check_specific = id_r1_data_check_specific dto.init_event = init_event dto.end_event = end_event dto.init_pixel = init_pixel dto.end_pixel = end_pixel dto.init_sample = init_sample dto.end_sample = end_sample dto.init_subrun = init_subrun dto.end_subrun = end_subrun dto.type_of_gap_calc = type_of_gap_calc dto.list_of_module_in_detail = list_of_module_in_detail return dto
class R1Datacheckspecificdto: def __init__(self, id_r1_data_check_specific=None, init_event=None, end_event=None, init_pixel=None, end_pixel=None, init_sample=None, end_sample=None, init_subrun=None, end_subrun=None, type_of_gap_calc=None, list_of_module_in_detail=None): self.__id_r1_data_check_specific = id_r1_data_check_specific self.__init_event = init_event self.__end_event = end_event self.__init_pixel = init_pixel self.__end_pixel = end_pixel self.__init_sample = init_sample self.__end_sample = end_sample self.__init_subrun = init_subrun self.__end_subrun = end_subrun self.__type_of_gap_calc = type_of_gap_calc self.__list_of_module_in_detail = list_of_module_in_detail @property def id_r1_data_check_specific(self): return self.__id_r1_data_check_specific @property def init_event(self): return self.__init_event @property def end_event(self): return self.__end_event @property def init_pixel(self): return self.__init_pixel @property def end_pixel(self): return self.__end_pixel @property def init_sample(self): return self.__init_sample @property def end_sample(self): return self.__end_sample @property def init_subrun(self): return self.__init_subrun @property def end_subrun(self): return self.__end_subrun @property def type_of_gap_calc(self): return self.__type_of_gap_calc @property def list_of_module_in_detail(self): return self.__list_of_module_in_detail @id_r1_data_check_specific.setter def id_r1_data_check_specific(self, value): self.__id_r1_data_check_specific = value @init_event.setter def init_event(self, value): self.__init_event = value @end_event.setter def end_event(self, value): self.__end_event = value @init_pixel.setter def init_pixel(self, value): self.__init_pixel = value @end_pixel.setter def end_pixel(self, value): self.__end_pixel = value @init_sample.setter def init_sample(self, value): self.__init_sample = value @end_sample.setter def end_sample(self, value): self.__end_sample = value @init_subrun.setter def init_subrun(self, value): self.__init_subrun = value @end_subrun.setter def end_subrun(self, value): self.__end_subrun = value @type_of_gap_calc.setter def type_of_gap_calc(self, value): self.__type_of_gap_calc = value @list_of_module_in_detail.setter def list_of_module_in_detail(self, value): self.__list_of_module_in_detail = value def create_r1_data_check_specific(id_r1_data_check_specific, init_event, end_event, init_pixel, end_pixel, init_sample, end_sample, init_subrun, end_subrun, type_of_gap_calc, list_of_module_in_detail): dto = r1_data_check_specific_dto() dto.id_r1_data_check_specific = id_r1_data_check_specific dto.init_event = init_event dto.end_event = end_event dto.init_pixel = init_pixel dto.end_pixel = end_pixel dto.init_sample = init_sample dto.end_sample = end_sample dto.init_subrun = init_subrun dto.end_subrun = end_subrun dto.type_of_gap_calc = type_of_gap_calc dto.list_of_module_in_detail = list_of_module_in_detail return dto
def takethis(): fullspeed() i01.moveHead(14,90) i01.moveArm("left",13,45,95,10) i01.moveArm("right",5,90,30,10) i01.moveHand("left",2,2,2,2,2,60) i01.moveHand("right",81,66,82,60,105,113) i01.moveTorso(85,76,90) sleep(3) closelefthand() i01.moveTorso(110,90,90) sleep(2) isitaball() i01.mouth.speak("what is it")
def takethis(): fullspeed() i01.moveHead(14, 90) i01.moveArm('left', 13, 45, 95, 10) i01.moveArm('right', 5, 90, 30, 10) i01.moveHand('left', 2, 2, 2, 2, 2, 60) i01.moveHand('right', 81, 66, 82, 60, 105, 113) i01.moveTorso(85, 76, 90) sleep(3) closelefthand() i01.moveTorso(110, 90, 90) sleep(2) isitaball() i01.mouth.speak('what is it')
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2019-05-18 23:29:05 # @Author : Ivy Mong ([email protected]) arr1 = [1, 3, 4, 6, 10] arr2 = [2, 5, 8, 11] ind = 0 ans = arr1.copy() for i in range(len(arr2)): while ind < len(arr1): if arr2[i] <= arr1[ind]: ans.insert(ind+i, arr2[i]) break else: ind += 1 else: ans = ans + arr2[i:] print(ans)
arr1 = [1, 3, 4, 6, 10] arr2 = [2, 5, 8, 11] ind = 0 ans = arr1.copy() for i in range(len(arr2)): while ind < len(arr1): if arr2[i] <= arr1[ind]: ans.insert(ind + i, arr2[i]) break else: ind += 1 else: ans = ans + arr2[i:] print(ans)
print('Dratuti!') print('Hello!') print('Hello, Georgios!') print('Hello, Pupa!')
print('Dratuti!') print('Hello!') print('Hello, Georgios!') print('Hello, Pupa!')
# Copyright (C) 2018 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # Repository rule to download, extract and patch breakpad. _BASE = "https://chromium.googlesource.com/breakpad/breakpad"; def _breakpad_impl(repository_ctx): repository_ctx.download_and_extract( url = _BASE + "/+archive/" + repository_ctx.attr.commit + ".tar.gz", output = ".", ) repository_ctx.symlink(Label("@gapid//tools/build/third_party/breakpad:breakpad.BUILD"), "BUILD") if repository_ctx.os.name.startswith("windows"): # Patch up breakpad on windows and add the dump_syms src. repository_ctx.symlink(Label("@gapid//tools/build/third_party/breakpad:windows.patch"), "windows.patch") repository_ctx.symlink(Label("@gapid//tools/build/third_party/breakpad:dump_syms_pe.cc"), "src/tools/windows/dump_syms/dump_syms_pe.cc") bash_exe = repository_ctx.os.environ["BAZEL_SH"] if "BAZEL_SH" in repository_ctx.os.environ else "c:/tools/msys64/usr/bin/bash.exe" result = repository_ctx.execute([bash_exe, "-c", "cd {} && /usr/bin/patch -p1 -i windows.patch".format(repository_ctx.path("."))]) if result.return_code: fail("Failed to apply patch: (%d)\n%s" % (result.return_code, result.stderr)) breakpad = repository_rule( implementation = _breakpad_impl, attrs = { "commit": attr.string(mandatory = True), }, )
_base = 'https://chromium.googlesource.com/breakpad/breakpad' def _breakpad_impl(repository_ctx): repository_ctx.download_and_extract(url=_BASE + '/+archive/' + repository_ctx.attr.commit + '.tar.gz', output='.') repository_ctx.symlink(label('@gapid//tools/build/third_party/breakpad:breakpad.BUILD'), 'BUILD') if repository_ctx.os.name.startswith('windows'): repository_ctx.symlink(label('@gapid//tools/build/third_party/breakpad:windows.patch'), 'windows.patch') repository_ctx.symlink(label('@gapid//tools/build/third_party/breakpad:dump_syms_pe.cc'), 'src/tools/windows/dump_syms/dump_syms_pe.cc') bash_exe = repository_ctx.os.environ['BAZEL_SH'] if 'BAZEL_SH' in repository_ctx.os.environ else 'c:/tools/msys64/usr/bin/bash.exe' result = repository_ctx.execute([bash_exe, '-c', 'cd {} && /usr/bin/patch -p1 -i windows.patch'.format(repository_ctx.path('.'))]) if result.return_code: fail('Failed to apply patch: (%d)\n%s' % (result.return_code, result.stderr)) breakpad = repository_rule(implementation=_breakpad_impl, attrs={'commit': attr.string(mandatory=True)})
DEBUG = True SECRET_KEY = "iECgbYWReMNxkRprrzMo5KAQYnb2UeZ3bwvReTSt+VSESW0OB8zbglT+6rEcDW9X" SQLALCHEMY_DATABASE_URI = "mysql+pymysql://root:[email protected]:3306/fisher"
debug = True secret_key = 'iECgbYWReMNxkRprrzMo5KAQYnb2UeZ3bwvReTSt+VSESW0OB8zbglT+6rEcDW9X' sqlalchemy_database_uri = 'mysql+pymysql://root:[email protected]:3306/fisher'
def test_shib_redirect(client, app): r = client.get("/login/shib") assert r.status_code == 302 def test_shib_login(app, client): r = client.get( "/login/shib/login", headers={app.config["SHIBBOLETH_HEADER"]: "test"} ) assert r.status_code == 200 def test_shib_login_redirect(app, client): r = client.get("/login/shib?redirect=http://localhost") r = client.get( "/login/shib/login", headers={app.config["SHIBBOLETH_HEADER"]: "test"} ) assert r.status_code == 302 assert r.headers["Location"] == "http://localhost" def test_shib_login_fail(client): r = client.get("/login/shib/login") assert r.status_code == 401
def test_shib_redirect(client, app): r = client.get('/login/shib') assert r.status_code == 302 def test_shib_login(app, client): r = client.get('/login/shib/login', headers={app.config['SHIBBOLETH_HEADER']: 'test'}) assert r.status_code == 200 def test_shib_login_redirect(app, client): r = client.get('/login/shib?redirect=http://localhost') r = client.get('/login/shib/login', headers={app.config['SHIBBOLETH_HEADER']: 'test'}) assert r.status_code == 302 assert r.headers['Location'] == 'http://localhost' def test_shib_login_fail(client): r = client.get('/login/shib/login') assert r.status_code == 401
siblings = int(input()) popsicles = int(input()) #your code goes here if((popsicles % siblings)==0): print("give away") else: print("eat them yourself")
siblings = int(input()) popsicles = int(input()) if popsicles % siblings == 0: print('give away') else: print('eat them yourself')
class Solution: def minMeetingRooms(self, intervals: List[List[int]]) -> int: minHeap = [] # store end times of each room for start, end in sorted(intervals): if minHeap and start >= minHeap[0]: heapq.heappop(minHeap) heapq.heappush(minHeap, end) return len(minHeap)
class Solution: def min_meeting_rooms(self, intervals: List[List[int]]) -> int: min_heap = [] for (start, end) in sorted(intervals): if minHeap and start >= minHeap[0]: heapq.heappop(minHeap) heapq.heappush(minHeap, end) return len(minHeap)
class custom_range: def __init__(self, start, end, step=1): self.start = start self.end = end self.step = step self.increment = 1 if self.step < 0: self.start, self.end = self.end, self.start self.increment = -1 def __iter__(self): return self def __next__(self): if self.increment > 0: if self.start > self.end: raise StopIteration() else: if self.start < self.end: raise StopIteration() temp = self.start self.start += self.step return temp one_to_ten = custom_range(1, 10) for num in one_to_ten: print(num)
class Custom_Range: def __init__(self, start, end, step=1): self.start = start self.end = end self.step = step self.increment = 1 if self.step < 0: (self.start, self.end) = (self.end, self.start) self.increment = -1 def __iter__(self): return self def __next__(self): if self.increment > 0: if self.start > self.end: raise stop_iteration() elif self.start < self.end: raise stop_iteration() temp = self.start self.start += self.step return temp one_to_ten = custom_range(1, 10) for num in one_to_ten: print(num)
digits = "0123456789abcdefghijklmnopqrstuvwxyz" def baseN(num,b): return (((num == 0) and "0" ) or ( baseN(num // b, b).lstrip("0") + digits[num % b])) # alternatively: def baseN(num,b): if num == 0: return "0" result = "" while num != 0: num, d = divmod(num, b) result += digits[d] return result[::-1] # reverse k = 26 s = baseN(k,16) # returns the string 1a
digits = '0123456789abcdefghijklmnopqrstuvwxyz' def base_n(num, b): return num == 0 and '0' or base_n(num // b, b).lstrip('0') + digits[num % b] def base_n(num, b): if num == 0: return '0' result = '' while num != 0: (num, d) = divmod(num, b) result += digits[d] return result[::-1] k = 26 s = base_n(k, 16)
class Counter: "This is a counter class" def __init__(self): self.value = 0 def increment(self): "Increments the counter" self.value = self.value + 1 def decrement(self): "Decrements the counter" self.value = self.value - 1
class Counter: """This is a counter class""" def __init__(self): self.value = 0 def increment(self): """Increments the counter""" self.value = self.value + 1 def decrement(self): """Decrements the counter""" self.value = self.value - 1
# Find Fractional Number # https://www.acmicpc.net/problem/1193 n = int(input()) i = 1 while True: sums = int((1 + i) * i * 0.5) if sums >= n: if (i%2) == 0: x = i - (sums - n) y = (sums - n) + 1 else: x = (sums - n) + 1 y = i - (sums - n) print(str(x)+'/'+str(y)) break i = i + 1
n = int(input()) i = 1 while True: sums = int((1 + i) * i * 0.5) if sums >= n: if i % 2 == 0: x = i - (sums - n) y = sums - n + 1 else: x = sums - n + 1 y = i - (sums - n) print(str(x) + '/' + str(y)) break i = i + 1
def for_l(): for row in range(6): for col in range(4): if col==1 and row<5or (row==5 and (col==0 or col==2 or col==3)) : print("*",end=" ") else: print(" ",end=" ") print() def while_l(): row=0 while row<6: col=0 while col<4: if col==1 and row<5or (row==5 and (col==0 or col==2 or col==3)) : print("*",end=" ") else: print(" ",end=" ") col+=1 row+=1 print()
def for_l(): for row in range(6): for col in range(4): if col == 1 and row < 5 or (row == 5 and (col == 0 or col == 2 or col == 3)): print('*', end=' ') else: print(' ', end=' ') print() def while_l(): row = 0 while row < 6: col = 0 while col < 4: if col == 1 and row < 5 or (row == 5 and (col == 0 or col == 2 or col == 3)): print('*', end=' ') else: print(' ', end=' ') col += 1 row += 1 print()
# # 120. Triangle # # Q: https://leetcode.com/problems/triangle/ # A: https://leetcode.com/problems/triangle/discuss/38726/Kt-Js-Py3-Cpp-The-ART-of-Dynamic-Programming # # TopDown class Solution: def minimumTotal(self, A: List[List[int]]) -> int: N = len(A) def go(i = 0, j = 0): if i == N: return 0 return A[i][j] + min(go(i + 1, j), go(i + 1, j + 1)) return go() # TopDownMemo class Solution: def minimumTotal(self, A: List[List[int]]) -> int: N = len(A) @cache def go(i = 0, j = 0): if i == N: return 0 return A[i][j] + min(go(i + 1, j), go(i + 1, j + 1)) return go() # BottomUp class Solution: def minimumTotal(self, A: List[List[int]]) -> int: N = len(A) for i in range(N - 2, -1, -1): for j in range(0, len(A[i])): A[i][j] += min(A[i + 1][j], A[i + 1][j + 1]) return A[0][0]
class Solution: def minimum_total(self, A: List[List[int]]) -> int: n = len(A) def go(i=0, j=0): if i == N: return 0 return A[i][j] + min(go(i + 1, j), go(i + 1, j + 1)) return go() class Solution: def minimum_total(self, A: List[List[int]]) -> int: n = len(A) @cache def go(i=0, j=0): if i == N: return 0 return A[i][j] + min(go(i + 1, j), go(i + 1, j + 1)) return go() class Solution: def minimum_total(self, A: List[List[int]]) -> int: n = len(A) for i in range(N - 2, -1, -1): for j in range(0, len(A[i])): A[i][j] += min(A[i + 1][j], A[i + 1][j + 1]) return A[0][0]
def remove_duplicates_v2(arr): dedupe_arr = [] for i in arr: if i not in dedupe_arr: dedupe_arr.append(i) return dedupe_arr result = remove_duplicates([0,0,0,1,1,2,2,3,4,5]) print(result)
def remove_duplicates_v2(arr): dedupe_arr = [] for i in arr: if i not in dedupe_arr: dedupe_arr.append(i) return dedupe_arr result = remove_duplicates([0, 0, 0, 1, 1, 2, 2, 3, 4, 5]) print(result)
dimensions = (200, 50) print(dimensions[0]) print(dimensions[1]) for dimension in dimensions: print(dimension)
dimensions = (200, 50) print(dimensions[0]) print(dimensions[1]) for dimension in dimensions: print(dimension)
class Config(): def __init__(self): pass def to_dict(self): res_dict = dict() for key, value in self.__dict__.items(): if isinstance(value, Config): res_dict.update(value.to_dict()) else: res_dict[key] = value return res_dict class OptimizerConfig(Config): def __init__(self): pass def create_optimizer(self): raise NotImplementedError() class MemoryConfig(Config): def __init__(self): pass
class Config: def __init__(self): pass def to_dict(self): res_dict = dict() for (key, value) in self.__dict__.items(): if isinstance(value, Config): res_dict.update(value.to_dict()) else: res_dict[key] = value return res_dict class Optimizerconfig(Config): def __init__(self): pass def create_optimizer(self): raise not_implemented_error() class Memoryconfig(Config): def __init__(self): pass
def lazy(func): fnattr = "__lazy_" + func.__name__ @property def wrapper(*args, **kwargs): if not hasattr(func, fnattr): setattr(func, fnattr, func(*args, **kwargs)) return getattr(func, fnattr) return wrapper
def lazy(func): fnattr = '__lazy_' + func.__name__ @property def wrapper(*args, **kwargs): if not hasattr(func, fnattr): setattr(func, fnattr, func(*args, **kwargs)) return getattr(func, fnattr) return wrapper
# # PySNMP MIB module CXFrameRelay-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CXFrameRelay-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 18:17:11 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, ValueRangeConstraint, ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsIntersection", "ConstraintsUnion", "SingleValueConstraint") cxModuleHwPhysSlot, = mibBuilder.importSymbols("CXModuleHardware-MIB", "cxModuleHwPhysSlot") SapIndex, Alias, cxFrameRelay = mibBuilder.importSymbols("CXProduct-SMI", "SapIndex", "Alias", "cxFrameRelay") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Gauge32, iso, NotificationType, TimeTicks, IpAddress, MibIdentifier, Counter64, NotificationType, ModuleIdentity, Counter32, MibScalar, MibTable, MibTableRow, MibTableColumn, Integer32, Bits, ObjectIdentity, Unsigned32 = mibBuilder.importSymbols("SNMPv2-SMI", "Gauge32", "iso", "NotificationType", "TimeTicks", "IpAddress", "MibIdentifier", "Counter64", "NotificationType", "ModuleIdentity", "Counter32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Integer32", "Bits", "ObjectIdentity", "Unsigned32") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") class DLCI(Integer32): subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(1, 1022) frpSapTable = MibTable((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1), ) if mibBuilder.loadTexts: frpSapTable.setStatus('mandatory') frpSapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1), ).setIndexNames((0, "CXFrameRelay-MIB", "frpSapNumber")) if mibBuilder.loadTexts: frpSapEntry.setStatus('mandatory') frpSapNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 1), SapIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapNumber.setStatus('mandatory') frpSapRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("invalid", 1), ("valid", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapRowStatus.setStatus('mandatory') frpSapAlias = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 3), Alias()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapAlias.setStatus('mandatory') frpSapCompanionAlias = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 4), Alias()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapCompanionAlias.setStatus('mandatory') frpSapType = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("lower", 1), ("upper", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapType.setStatus('mandatory') frpSapAddressLength = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(2, 3, 4))).clone(namedValues=NamedValues(("two-octets", 2), ("three-octets", 3), ("four-octets", 4))).clone('two-octets')).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapAddressLength.setStatus('mandatory') frpSapMaxSupportedVCs = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1022))).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapMaxSupportedVCs.setStatus('deprecated') frpSapVCBase = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1022))).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapVCBase.setStatus('deprecated') frpSapOutCongestionManagement = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapOutCongestionManagement.setStatus('mandatory') frpSapResourceAllocation = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 99)).clone(80)).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapResourceAllocation.setStatus('mandatory') frpSapLinkManagement = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("none", 1), ("frameRelayForum", 2), ("ansiAnnexD", 3), ("ccittAnnexA", 4), ("dama1", 5), ("dama2", 6), ("auto", 7))).clone('none')).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapLinkManagement.setStatus('mandatory') frpSapInterfaceType = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("uniUser", 1), ("uniNetwork", 2), ("nni", 3))).clone('uniUser')).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapInterfaceType.setStatus('mandatory') frpSapPollingInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(5, 30)).clone(10)).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapPollingInterval.setStatus('mandatory') frpSapPollingVerification = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 14), Integer32().subtype(subtypeSpec=ValueRangeConstraint(5, 30)).clone(15)).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapPollingVerification.setStatus('mandatory') frpSapFullEnquiryInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255)).clone(6)).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapFullEnquiryInterval.setStatus('mandatory') frpSapErrorThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 16), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 10)).clone(3)).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapErrorThreshold.setStatus('mandatory') frpSapMonitoredEvents = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 17), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 10)).clone(4)).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapMonitoredEvents.setStatus('mandatory') frpSapMode = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("frameRelay", 1), ("transparent", 2), ("frameRelayAtmNIwf", 3))).clone('frameRelay')).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapMode.setStatus('mandatory') frpSapPrioQueue1HitRatio = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 19), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapPrioQueue1HitRatio.setStatus('mandatory') frpSapPrioQueue2HitRatio = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 20), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapPrioQueue2HitRatio.setStatus('mandatory') frpSapPrioQueue3HitRatio = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 21), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapPrioQueue3HitRatio.setStatus('mandatory') frpSapPrioQueue4HitRatio = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 22), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapPrioQueue4HitRatio.setStatus('mandatory') frpSapDialEntry = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 23), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapDialEntry.setStatus('mandatory') frpSapFilterBitMap = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 24), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapFilterBitMap.setStatus('mandatory') frpSapLmiFlavor = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 25), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("strict", 2), ("tolerant", 3))).clone('tolerant')).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapLmiFlavor.setStatus('mandatory') frpSapGenerator = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 33), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2), ("retrigger", 3))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapGenerator.setStatus('mandatory') frpSapGeneratorDlciNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 34), DLCI().clone(16)).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapGeneratorDlciNumber.setStatus('mandatory') frpSapGeneratorFrameSize = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 35), Integer32().subtype(subtypeSpec=ValueRangeConstraint(32, 4096)).clone(32)).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapGeneratorFrameSize.setStatus('mandatory') frpSapGeneratorNumberOfFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 36), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 200)).clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapGeneratorNumberOfFrames.setStatus('mandatory') frpSapGeneratorInterFrameDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 37), Integer32().subtype(subtypeSpec=ValueRangeConstraint(50, 60000)).clone(50)).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapGeneratorInterFrameDelay.setStatus('mandatory') frpSapBillingTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 38), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 525600)).clone(1440)).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapBillingTimer.setStatus('mandatory') frpSapSdLmMessageInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 39), Integer32().subtype(subtypeSpec=ValueRangeConstraint(10, 65535)).clone(50)).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapSdLmMessageInterval.setStatus('obsolete') frpSapSdLmActiveTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 40), Integer32().subtype(subtypeSpec=ValueRangeConstraint(10, 65535)).clone(1000)).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSapSdLmActiveTimer.setStatus('obsolete') frpSaptrapTrap1 = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 48), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpSaptrapTrap1.setStatus('mandatory') frpSapControl = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 53), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("retriggerBillingTimer", 1)))).setMaxAccess("writeonly") if mibBuilder.loadTexts: frpSapControl.setStatus('mandatory') frpSapControlStats = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 54), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("clearSapStats", 1), ("clearAllCircuitStats", 2)))).setMaxAccess("writeonly") if mibBuilder.loadTexts: frpSapControlStats.setStatus('mandatory') frpSapstatLinkManagementState = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 55), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("linkDown", 1), ("linkUp", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatLinkManagementState.setStatus('mandatory') frpSapstatCurrentLinkManagementType = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 56), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("none", 1), ("frameRelayForum", 2), ("ansiAnnexD", 3), ("ccittAnnexA", 4), ("dama1", 5), ("dama2", 6), ("discovering", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatCurrentLinkManagementType.setStatus('mandatory') frpSapstatTxDataFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 61), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatTxDataFrames.setStatus('mandatory') frpSapstatRxDataFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 62), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatRxDataFrames.setStatus('mandatory') frpSapstatTxDataOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 63), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatTxDataOctets.setStatus('mandatory') frpSapstatRxDataOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 64), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatRxDataOctets.setStatus('mandatory') frpSapstatTxLmiFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 65), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatTxLmiFrames.setStatus('mandatory') frpSapstatRxLmiFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 66), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatRxLmiFrames.setStatus('mandatory') frpSapstatTxQueuedDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 67), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatTxQueuedDiscards.setStatus('mandatory') frpSapstatRxCIRExceededDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 79), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatRxCIRExceededDiscards.setStatus('mandatory') frpSapstatRxSysCongestionDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 80), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatRxSysCongestionDiscards.setStatus('mandatory') frpSapstatRxUnavailInboundDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 81), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatRxUnavailInboundDiscards.setStatus('mandatory') frpSapstatRxUnavailOutboundDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 82), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatRxUnavailOutboundDiscards.setStatus('mandatory') frpSapstatRxInvalidVCDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 83), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatRxInvalidVCDiscards.setStatus('mandatory') frpSapstatRxBadStatusDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 84), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatRxBadStatusDiscards.setStatus('mandatory') frpSapstatRxMiscellaneousDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 85), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatRxMiscellaneousDiscards.setStatus('mandatory') frpSapstatRxCIRExceeds = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 86), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatRxCIRExceeds.setStatus('mandatory') frpSapstatRxShortFrameDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 87), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatRxShortFrameDiscards.setStatus('mandatory') frpSapstatLmiInvalidFieldDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 97), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatLmiInvalidFieldDiscards.setStatus('mandatory') frpSapstatLmiInvalidSequenceDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 98), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatLmiInvalidSequenceDiscards.setStatus('mandatory') frpSapstatLmiTimeouts = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 99), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatLmiTimeouts.setStatus('mandatory') frpSapstatLmiInvalidStatusDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 100), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatLmiInvalidStatusDiscards.setStatus('mandatory') frpSapstatLmiInvalidStatusEnqDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 101), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatLmiInvalidStatusEnqDiscards.setStatus('mandatory') frpSapstatLmiInvalidUpdStatusDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 102), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpSapstatLmiInvalidUpdStatusDiscards.setStatus('mandatory') frpCircuitTable = MibTable((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2), ) if mibBuilder.loadTexts: frpCircuitTable.setStatus('mandatory') frpCircuitEntry = MibTableRow((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1), ).setIndexNames((0, "CXFrameRelay-MIB", "frpCircuitSapNumber"), (0, "CXFrameRelay-MIB", "frpCircuitDlci")) if mibBuilder.loadTexts: frpCircuitEntry.setStatus('mandatory') frpCircuitSapNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 1), SapIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitSapNumber.setStatus('mandatory') frpCircuitDlci = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 2), DLCI()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitDlci.setStatus('mandatory') frpCircuitRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("invalid", 1), ("valid", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpCircuitRowStatus.setStatus('mandatory') frpCircuitPriorityLevel = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("veryHigh", 1), ("high", 2), ("medium", 3), ("low", 4))).clone('medium')).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpCircuitPriorityLevel.setStatus('mandatory') frpCircuitCommittedBurst = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 5), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpCircuitCommittedBurst.setStatus('mandatory') frpCircuitExcessBurst = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 6), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpCircuitExcessBurst.setStatus('mandatory') frpCircuitCommittedInformationRate = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpCircuitCommittedInformationRate.setStatus('mandatory') frpCircuitCIRManagement = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("disabled", 1), ("enabled-inbound", 2), ("monitor-inbound", 3), ("enabled-outbound", 4))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpCircuitCIRManagement.setStatus('mandatory') frpCircuitMultiProtEncaps = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpCircuitMultiProtEncaps.setStatus('mandatory') frpCircuitHighPriorityBurst = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 10), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpCircuitHighPriorityBurst.setStatus('mandatory') frpCircuitLowPriorityBurst = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 11), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpCircuitLowPriorityBurst.setStatus('mandatory') frpCircuitFragmentationSize = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 18), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpCircuitFragmentationSize.setStatus('mandatory') frpCircuitAlias = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 19), Alias()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpCircuitAlias.setStatus('mandatory') frpCircuitCompanionSapNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 20), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpCircuitCompanionSapNumber.setStatus('mandatory') frpCircuitCompanionDlci = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 21), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpCircuitCompanionDlci.setStatus('mandatory') frpCircuitAlternateSapNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 22), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpCircuitAlternateSapNumber.setStatus('mandatory') frpCircuitAlternateDlci = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 23), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpCircuitAlternateDlci.setStatus('mandatory') frpCircuitMulticastGroupId = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 24), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitMulticastGroupId.setStatus('mandatory') frpCircuitMulticastType = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 25), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("noMulticastAssociation", 1), ("rootOneWay", 2), ("leafOneWay", 3), ("rootTwoWay", 4), ("leafTwoWay", 5), ("rootNWay", 6), ("rootTwoWaySinglePass", 7), ("leafTwoWaySinglePass", 8))).clone('noMulticastAssociation')).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitMulticastType.setStatus('mandatory') frpCircuitCompressionPort = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 26), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpCircuitCompressionPort.setStatus('mandatory') frpCircuitExpressService = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 27), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2))).clone('enabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpCircuitExpressService.setStatus('mandatory') frpCircuittrapTrap1 = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 32), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpCircuittrapTrap1.setStatus('mandatory') frpCircuittrapTrap2 = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 33), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpCircuittrapTrap2.setStatus('mandatory') frpCircuitControlStats = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 39), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("clearCircuitStats", 1)))).setMaxAccess("writeonly") if mibBuilder.loadTexts: frpCircuitControlStats.setStatus('mandatory') frpCircuitstatReportedState = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 40), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("notReported", 1), ("reportedActive", 2), ("reportedInactive", 3))).clone('notReported')).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatReportedState.setStatus('mandatory') frpCircuitstatRouteState = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 41), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("noRoute", 1), ("routeNotOperational", 2), ("routeOperational", 3))).clone('noRoute')).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatRouteState.setStatus('mandatory') frpCircuitstatAlternateRouteState = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 42), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("noRoute", 1), ("routeNotOperational", 2), ("routeOperational", 3), ("alternateCircuit", 4))).clone('noRoute')).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatAlternateRouteState.setStatus('mandatory') frpCircuitstatLocalCreationTime = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 47), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatLocalCreationTime.setStatus('mandatory') frpCircuitstatRemoteCreationTime = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 48), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatRemoteCreationTime.setStatus('mandatory') frpCircuitstatTxFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 49), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatTxFrames.setStatus('mandatory') frpCircuitstatRxFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 50), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatRxFrames.setStatus('mandatory') frpCircuitstatTxOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 51), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatTxOctets.setStatus('mandatory') frpCircuitstatRxOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 52), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatRxOctets.setStatus('mandatory') frpCircuitstatTxFECNs = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 53), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatTxFECNs.setStatus('mandatory') frpCircuitstatRxFECNs = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 54), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatRxFECNs.setStatus('mandatory') frpCircuitstatTxBECNs = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 55), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatTxBECNs.setStatus('mandatory') frpCircuitstatRxBECNs = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 56), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatRxBECNs.setStatus('mandatory') frpCircuitstatTxQueuedDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 63), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatTxQueuedDiscards.setStatus('mandatory') frpCircuitstatRxCIRExceededDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 70), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatRxCIRExceededDiscards.setStatus('mandatory') frpCircuitstatRxSysCongestionDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 71), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatRxSysCongestionDiscards.setStatus('mandatory') frpCircuitstatRxUnavailInboundDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 72), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatRxUnavailInboundDiscards.setStatus('mandatory') frpCircuitstatRxUnavailOutboundDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 73), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatRxUnavailOutboundDiscards.setStatus('mandatory') frpCircuitstatRxCIRExceeds = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 74), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatRxCIRExceeds.setStatus('mandatory') frpCircuitstatFragmentationFailures = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 75), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatFragmentationFailures.setStatus('mandatory') frpCircuitstatDeFragmentationFailures = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 76), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpCircuitstatDeFragmentationFailures.setStatus('mandatory') frpReportedPvcTable = MibTable((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 3), ) if mibBuilder.loadTexts: frpReportedPvcTable.setStatus('mandatory') frpReportedPvcEntry = MibTableRow((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 3, 1), ).setIndexNames((0, "CXFrameRelay-MIB", "frpReportedPvcSapNumber")) if mibBuilder.loadTexts: frpReportedPvcEntry.setStatus('mandatory') frpReportedPvcSapNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 3, 1, 1), SapIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpReportedPvcSapNumber.setStatus('mandatory') frpReportedPvcDlci = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 3, 1, 2), DLCI()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpReportedPvcDlci.setStatus('mandatory') frpReportedPvcLocallyConfigured = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: frpReportedPvcLocallyConfigured.setStatus('mandatory') frpReportedPvcStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("inactive", 1), ("active", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: frpReportedPvcStatus.setStatus('mandatory') frpMulticastTable = MibTable((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 4), ) if mibBuilder.loadTexts: frpMulticastTable.setStatus('mandatory') frpMulticastEntry = MibTableRow((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 4, 1), ).setIndexNames((0, "CXFrameRelay-MIB", "frpMulticastGroupId"), (0, "CXFrameRelay-MIB", "frpMulticastSapNumber"), (0, "CXFrameRelay-MIB", "frpMulticastDlci")) if mibBuilder.loadTexts: frpMulticastEntry.setStatus('mandatory') frpMulticastGroupId = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: frpMulticastGroupId.setStatus('mandatory') frpMulticastSapNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 4, 1, 2), SapIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpMulticastSapNumber.setStatus('mandatory') frpMulticastDlci = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 4, 1, 3), DLCI()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpMulticastDlci.setStatus('mandatory') frpMulticastRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 4, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("invalid", 1), ("valid", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpMulticastRowStatus.setStatus('mandatory') frpMulticastMemberType = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 4, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("root", 1), ("leaf", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpMulticastMemberType.setStatus('mandatory') frpMulticastServiceType = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 4, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("oneWay", 1), ("twoWay", 2), ("nWay", 3), ("twoWaySinglePass", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: frpMulticastServiceType.setStatus('mandatory') frpMulticastMemberStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 4, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("inactive", 1), ("active", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: frpMulticastMemberStatus.setStatus('mandatory') frpMibLevel = MibScalar((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: frpMibLevel.setStatus('mandatory') frpSapInterfaceStatusChange = NotificationType((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3) + (0,1)).setObjects(("CXModuleHardware-MIB", "cxModuleHwPhysSlot"), ("CXFrameRelay-MIB", "frpSapNumber"), ("CXFrameRelay-MIB", "frpSapstatLinkManagementState")) frpPvcReportedStatusChange = NotificationType((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3) + (0,2)).setObjects(("CXModuleHardware-MIB", "cxModuleHwPhysSlot"), ("CXFrameRelay-MIB", "frpCircuitSapNumber"), ("CXFrameRelay-MIB", "frpCircuitDlci"), ("CXFrameRelay-MIB", "frpCircuitstatReportedState")) frpPvcBillingStats = NotificationType((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3) + (0,3)).setObjects(("CXModuleHardware-MIB", "cxModuleHwPhysSlot"), ("CXFrameRelay-MIB", "frpCircuitSapNumber"), ("CXFrameRelay-MIB", "frpCircuitDlci"), ("CXFrameRelay-MIB", "frpCircuitstatTxFrames"), ("CXFrameRelay-MIB", "frpCircuitstatRxFrames"), ("CXFrameRelay-MIB", "frpCircuitstatTxOctets"), ("CXFrameRelay-MIB", "frpCircuitstatRxOctets")) mibBuilder.exportSymbols("CXFrameRelay-MIB", frpCircuitstatRxCIRExceededDiscards=frpCircuitstatRxCIRExceededDiscards, frpSapGenerator=frpSapGenerator, frpSapstatLinkManagementState=frpSapstatLinkManagementState, frpPvcBillingStats=frpPvcBillingStats, frpSapInterfaceType=frpSapInterfaceType, frpMulticastTable=frpMulticastTable, frpCircuitstatRxBECNs=frpCircuitstatRxBECNs, frpSapstatRxUnavailOutboundDiscards=frpSapstatRxUnavailOutboundDiscards, frpSapstatLmiTimeouts=frpSapstatLmiTimeouts, frpSapControlStats=frpSapControlStats, frpCircuitstatRouteState=frpCircuitstatRouteState, frpCircuitstatRemoteCreationTime=frpCircuitstatRemoteCreationTime, frpSapSdLmMessageInterval=frpSapSdLmMessageInterval, frpCircuitstatDeFragmentationFailures=frpCircuitstatDeFragmentationFailures, frpSapPrioQueue1HitRatio=frpSapPrioQueue1HitRatio, frpSapTable=frpSapTable, frpSapstatRxDataOctets=frpSapstatRxDataOctets, frpCircuitLowPriorityBurst=frpCircuitLowPriorityBurst, frpMulticastDlci=frpMulticastDlci, frpCircuitCompanionSapNumber=frpCircuitCompanionSapNumber, frpSapGeneratorFrameSize=frpSapGeneratorFrameSize, frpReportedPvcEntry=frpReportedPvcEntry, frpSapControl=frpSapControl, frpSapGeneratorInterFrameDelay=frpSapGeneratorInterFrameDelay, frpMibLevel=frpMibLevel, frpSapGeneratorNumberOfFrames=frpSapGeneratorNumberOfFrames, frpMulticastRowStatus=frpMulticastRowStatus, frpSapstatLmiInvalidUpdStatusDiscards=frpSapstatLmiInvalidUpdStatusDiscards, frpMulticastGroupId=frpMulticastGroupId, frpSapPollingInterval=frpSapPollingInterval, frpSapstatRxLmiFrames=frpSapstatRxLmiFrames, frpSapNumber=frpSapNumber, frpSapFilterBitMap=frpSapFilterBitMap, frpCircuitFragmentationSize=frpCircuitFragmentationSize, frpCircuitstatAlternateRouteState=frpCircuitstatAlternateRouteState, frpSapMode=frpSapMode, frpSapLinkManagement=frpSapLinkManagement, frpCircuitstatRxOctets=frpCircuitstatRxOctets, frpCircuittrapTrap2=frpCircuittrapTrap2, frpSapstatRxMiscellaneousDiscards=frpSapstatRxMiscellaneousDiscards, frpSapRowStatus=frpSapRowStatus, frpCircuitRowStatus=frpCircuitRowStatus, frpSapstatRxSysCongestionDiscards=frpSapstatRxSysCongestionDiscards, frpSapPrioQueue4HitRatio=frpSapPrioQueue4HitRatio, frpSapstatRxDataFrames=frpSapstatRxDataFrames, frpSapOutCongestionManagement=frpSapOutCongestionManagement, frpSapstatTxDataFrames=frpSapstatTxDataFrames, frpCircuitExpressService=frpCircuitExpressService, frpCircuitAlternateSapNumber=frpCircuitAlternateSapNumber, frpCircuitCompanionDlci=frpCircuitCompanionDlci, frpSapAddressLength=frpSapAddressLength, frpSapPollingVerification=frpSapPollingVerification, frpCircuitCommittedBurst=frpCircuitCommittedBurst, frpCircuitSapNumber=frpCircuitSapNumber, frpPvcReportedStatusChange=frpPvcReportedStatusChange, frpReportedPvcDlci=frpReportedPvcDlci, frpSapstatRxCIRExceededDiscards=frpSapstatRxCIRExceededDiscards, frpSapPrioQueue3HitRatio=frpSapPrioQueue3HitRatio, frpReportedPvcTable=frpReportedPvcTable, frpCircuitstatRxFrames=frpCircuitstatRxFrames, frpCircuitExcessBurst=frpCircuitExcessBurst, frpCircuitstatFragmentationFailures=frpCircuitstatFragmentationFailures, frpCircuitstatLocalCreationTime=frpCircuitstatLocalCreationTime, frpSapstatLmiInvalidStatusEnqDiscards=frpSapstatLmiInvalidStatusEnqDiscards, frpSapstatTxLmiFrames=frpSapstatTxLmiFrames, frpReportedPvcStatus=frpReportedPvcStatus, frpSapGeneratorDlciNumber=frpSapGeneratorDlciNumber, frpMulticastServiceType=frpMulticastServiceType, frpSapMonitoredEvents=frpSapMonitoredEvents, frpReportedPvcSapNumber=frpReportedPvcSapNumber, frpSaptrapTrap1=frpSaptrapTrap1, frpSapstatLmiInvalidStatusDiscards=frpSapstatLmiInvalidStatusDiscards, frpCircuitCommittedInformationRate=frpCircuitCommittedInformationRate, frpCircuittrapTrap1=frpCircuittrapTrap1, frpReportedPvcLocallyConfigured=frpReportedPvcLocallyConfigured, frpCircuitstatRxSysCongestionDiscards=frpCircuitstatRxSysCongestionDiscards, frpMulticastMemberType=frpMulticastMemberType, frpSapstatLmiInvalidFieldDiscards=frpSapstatLmiInvalidFieldDiscards, frpSapstatRxBadStatusDiscards=frpSapstatRxBadStatusDiscards, frpSapstatCurrentLinkManagementType=frpSapstatCurrentLinkManagementType, frpSapstatRxCIRExceeds=frpSapstatRxCIRExceeds, frpSapErrorThreshold=frpSapErrorThreshold, frpSapAlias=frpSapAlias, frpSapMaxSupportedVCs=frpSapMaxSupportedVCs, frpCircuitstatTxFECNs=frpCircuitstatTxFECNs, frpSapResourceAllocation=frpSapResourceAllocation, frpSapBillingTimer=frpSapBillingTimer, frpSapEntry=frpSapEntry, frpSapstatRxInvalidVCDiscards=frpSapstatRxInvalidVCDiscards, frpSapstatTxDataOctets=frpSapstatTxDataOctets, frpSapVCBase=frpSapVCBase, frpCircuitAlias=frpCircuitAlias, frpCircuitstatRxFECNs=frpCircuitstatRxFECNs, frpSapstatLmiInvalidSequenceDiscards=frpSapstatLmiInvalidSequenceDiscards, frpCircuitstatReportedState=frpCircuitstatReportedState, frpMulticastEntry=frpMulticastEntry, DLCI=DLCI, frpMulticastSapNumber=frpMulticastSapNumber, frpCircuitstatRxUnavailOutboundDiscards=frpCircuitstatRxUnavailOutboundDiscards, frpMulticastMemberStatus=frpMulticastMemberStatus, frpCircuitMulticastType=frpCircuitMulticastType, frpCircuitMultiProtEncaps=frpCircuitMultiProtEncaps, frpSapPrioQueue2HitRatio=frpSapPrioQueue2HitRatio, frpCircuitTable=frpCircuitTable, frpCircuitCIRManagement=frpCircuitCIRManagement, frpSapstatTxQueuedDiscards=frpSapstatTxQueuedDiscards, frpCircuitstatRxCIRExceeds=frpCircuitstatRxCIRExceeds, frpSapSdLmActiveTimer=frpSapSdLmActiveTimer, frpCircuitPriorityLevel=frpCircuitPriorityLevel, frpCircuitHighPriorityBurst=frpCircuitHighPriorityBurst, frpCircuitstatRxUnavailInboundDiscards=frpCircuitstatRxUnavailInboundDiscards, frpSapInterfaceStatusChange=frpSapInterfaceStatusChange, frpSapFullEnquiryInterval=frpSapFullEnquiryInterval, frpSapCompanionAlias=frpSapCompanionAlias, frpCircuitAlternateDlci=frpCircuitAlternateDlci, frpCircuitMulticastGroupId=frpCircuitMulticastGroupId, frpCircuitControlStats=frpCircuitControlStats, frpCircuitEntry=frpCircuitEntry, frpCircuitstatTxOctets=frpCircuitstatTxOctets, frpCircuitstatTxFrames=frpCircuitstatTxFrames, frpSapstatRxShortFrameDiscards=frpSapstatRxShortFrameDiscards, frpSapDialEntry=frpSapDialEntry, frpCircuitDlci=frpCircuitDlci, frpCircuitstatTxQueuedDiscards=frpCircuitstatTxQueuedDiscards, frpSapstatRxUnavailInboundDiscards=frpSapstatRxUnavailInboundDiscards, frpCircuitstatTxBECNs=frpCircuitstatTxBECNs, frpSapLmiFlavor=frpSapLmiFlavor, frpSapType=frpSapType, frpCircuitCompressionPort=frpCircuitCompressionPort)
(object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, value_range_constraint, constraints_intersection, constraints_union, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsIntersection', 'ConstraintsUnion', 'SingleValueConstraint') (cx_module_hw_phys_slot,) = mibBuilder.importSymbols('CXModuleHardware-MIB', 'cxModuleHwPhysSlot') (sap_index, alias, cx_frame_relay) = mibBuilder.importSymbols('CXProduct-SMI', 'SapIndex', 'Alias', 'cxFrameRelay') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (gauge32, iso, notification_type, time_ticks, ip_address, mib_identifier, counter64, notification_type, module_identity, counter32, mib_scalar, mib_table, mib_table_row, mib_table_column, integer32, bits, object_identity, unsigned32) = mibBuilder.importSymbols('SNMPv2-SMI', 'Gauge32', 'iso', 'NotificationType', 'TimeTicks', 'IpAddress', 'MibIdentifier', 'Counter64', 'NotificationType', 'ModuleIdentity', 'Counter32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Integer32', 'Bits', 'ObjectIdentity', 'Unsigned32') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') class Dlci(Integer32): subtype_spec = Integer32.subtypeSpec + value_range_constraint(1, 1022) frp_sap_table = mib_table((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1)) if mibBuilder.loadTexts: frpSapTable.setStatus('mandatory') frp_sap_entry = mib_table_row((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1)).setIndexNames((0, 'CXFrameRelay-MIB', 'frpSapNumber')) if mibBuilder.loadTexts: frpSapEntry.setStatus('mandatory') frp_sap_number = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 1), sap_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapNumber.setStatus('mandatory') frp_sap_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('invalid', 1), ('valid', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapRowStatus.setStatus('mandatory') frp_sap_alias = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 3), alias()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapAlias.setStatus('mandatory') frp_sap_companion_alias = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 4), alias()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapCompanionAlias.setStatus('mandatory') frp_sap_type = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('lower', 1), ('upper', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapType.setStatus('mandatory') frp_sap_address_length = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(2, 3, 4))).clone(namedValues=named_values(('two-octets', 2), ('three-octets', 3), ('four-octets', 4))).clone('two-octets')).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapAddressLength.setStatus('mandatory') frp_sap_max_supported_v_cs = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(1, 1022))).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapMaxSupportedVCs.setStatus('deprecated') frp_sap_vc_base = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(1, 1022))).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapVCBase.setStatus('deprecated') frp_sap_out_congestion_management = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2))).clone('disabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapOutCongestionManagement.setStatus('mandatory') frp_sap_resource_allocation = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(1, 99)).clone(80)).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapResourceAllocation.setStatus('mandatory') frp_sap_link_management = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('none', 1), ('frameRelayForum', 2), ('ansiAnnexD', 3), ('ccittAnnexA', 4), ('dama1', 5), ('dama2', 6), ('auto', 7))).clone('none')).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapLinkManagement.setStatus('mandatory') frp_sap_interface_type = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('uniUser', 1), ('uniNetwork', 2), ('nni', 3))).clone('uniUser')).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapInterfaceType.setStatus('mandatory') frp_sap_polling_interval = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 13), integer32().subtype(subtypeSpec=value_range_constraint(5, 30)).clone(10)).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapPollingInterval.setStatus('mandatory') frp_sap_polling_verification = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 14), integer32().subtype(subtypeSpec=value_range_constraint(5, 30)).clone(15)).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapPollingVerification.setStatus('mandatory') frp_sap_full_enquiry_interval = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 15), integer32().subtype(subtypeSpec=value_range_constraint(1, 255)).clone(6)).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapFullEnquiryInterval.setStatus('mandatory') frp_sap_error_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 16), integer32().subtype(subtypeSpec=value_range_constraint(1, 10)).clone(3)).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapErrorThreshold.setStatus('mandatory') frp_sap_monitored_events = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 17), integer32().subtype(subtypeSpec=value_range_constraint(1, 10)).clone(4)).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapMonitoredEvents.setStatus('mandatory') frp_sap_mode = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('frameRelay', 1), ('transparent', 2), ('frameRelayAtmNIwf', 3))).clone('frameRelay')).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapMode.setStatus('mandatory') frp_sap_prio_queue1_hit_ratio = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 19), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapPrioQueue1HitRatio.setStatus('mandatory') frp_sap_prio_queue2_hit_ratio = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 20), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapPrioQueue2HitRatio.setStatus('mandatory') frp_sap_prio_queue3_hit_ratio = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 21), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapPrioQueue3HitRatio.setStatus('mandatory') frp_sap_prio_queue4_hit_ratio = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 22), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapPrioQueue4HitRatio.setStatus('mandatory') frp_sap_dial_entry = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 23), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapDialEntry.setStatus('mandatory') frp_sap_filter_bit_map = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 24), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapFilterBitMap.setStatus('mandatory') frp_sap_lmi_flavor = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 25), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('strict', 2), ('tolerant', 3))).clone('tolerant')).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapLmiFlavor.setStatus('mandatory') frp_sap_generator = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 33), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2), ('retrigger', 3))).clone('disabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapGenerator.setStatus('mandatory') frp_sap_generator_dlci_number = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 34), dlci().clone(16)).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapGeneratorDlciNumber.setStatus('mandatory') frp_sap_generator_frame_size = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 35), integer32().subtype(subtypeSpec=value_range_constraint(32, 4096)).clone(32)).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapGeneratorFrameSize.setStatus('mandatory') frp_sap_generator_number_of_frames = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 36), integer32().subtype(subtypeSpec=value_range_constraint(1, 200)).clone(1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapGeneratorNumberOfFrames.setStatus('mandatory') frp_sap_generator_inter_frame_delay = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 37), integer32().subtype(subtypeSpec=value_range_constraint(50, 60000)).clone(50)).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapGeneratorInterFrameDelay.setStatus('mandatory') frp_sap_billing_timer = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 38), integer32().subtype(subtypeSpec=value_range_constraint(1, 525600)).clone(1440)).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapBillingTimer.setStatus('mandatory') frp_sap_sd_lm_message_interval = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 39), integer32().subtype(subtypeSpec=value_range_constraint(10, 65535)).clone(50)).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapSdLmMessageInterval.setStatus('obsolete') frp_sap_sd_lm_active_timer = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 40), integer32().subtype(subtypeSpec=value_range_constraint(10, 65535)).clone(1000)).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSapSdLmActiveTimer.setStatus('obsolete') frp_saptrap_trap1 = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 48), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2))).clone('disabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpSaptrapTrap1.setStatus('mandatory') frp_sap_control = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 53), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('retriggerBillingTimer', 1)))).setMaxAccess('writeonly') if mibBuilder.loadTexts: frpSapControl.setStatus('mandatory') frp_sap_control_stats = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 54), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('clearSapStats', 1), ('clearAllCircuitStats', 2)))).setMaxAccess('writeonly') if mibBuilder.loadTexts: frpSapControlStats.setStatus('mandatory') frp_sapstat_link_management_state = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 55), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('linkDown', 1), ('linkUp', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatLinkManagementState.setStatus('mandatory') frp_sapstat_current_link_management_type = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 56), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('none', 1), ('frameRelayForum', 2), ('ansiAnnexD', 3), ('ccittAnnexA', 4), ('dama1', 5), ('dama2', 6), ('discovering', 7)))).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatCurrentLinkManagementType.setStatus('mandatory') frp_sapstat_tx_data_frames = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 61), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatTxDataFrames.setStatus('mandatory') frp_sapstat_rx_data_frames = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 62), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatRxDataFrames.setStatus('mandatory') frp_sapstat_tx_data_octets = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 63), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatTxDataOctets.setStatus('mandatory') frp_sapstat_rx_data_octets = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 64), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatRxDataOctets.setStatus('mandatory') frp_sapstat_tx_lmi_frames = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 65), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatTxLmiFrames.setStatus('mandatory') frp_sapstat_rx_lmi_frames = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 66), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatRxLmiFrames.setStatus('mandatory') frp_sapstat_tx_queued_discards = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 67), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatTxQueuedDiscards.setStatus('mandatory') frp_sapstat_rx_cir_exceeded_discards = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 79), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatRxCIRExceededDiscards.setStatus('mandatory') frp_sapstat_rx_sys_congestion_discards = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 80), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatRxSysCongestionDiscards.setStatus('mandatory') frp_sapstat_rx_unavail_inbound_discards = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 81), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatRxUnavailInboundDiscards.setStatus('mandatory') frp_sapstat_rx_unavail_outbound_discards = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 82), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatRxUnavailOutboundDiscards.setStatus('mandatory') frp_sapstat_rx_invalid_vc_discards = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 83), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatRxInvalidVCDiscards.setStatus('mandatory') frp_sapstat_rx_bad_status_discards = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 84), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatRxBadStatusDiscards.setStatus('mandatory') frp_sapstat_rx_miscellaneous_discards = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 85), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatRxMiscellaneousDiscards.setStatus('mandatory') frp_sapstat_rx_cir_exceeds = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 86), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatRxCIRExceeds.setStatus('mandatory') frp_sapstat_rx_short_frame_discards = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 87), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatRxShortFrameDiscards.setStatus('mandatory') frp_sapstat_lmi_invalid_field_discards = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 97), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatLmiInvalidFieldDiscards.setStatus('mandatory') frp_sapstat_lmi_invalid_sequence_discards = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 98), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatLmiInvalidSequenceDiscards.setStatus('mandatory') frp_sapstat_lmi_timeouts = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 99), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatLmiTimeouts.setStatus('mandatory') frp_sapstat_lmi_invalid_status_discards = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 100), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatLmiInvalidStatusDiscards.setStatus('mandatory') frp_sapstat_lmi_invalid_status_enq_discards = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 101), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatLmiInvalidStatusEnqDiscards.setStatus('mandatory') frp_sapstat_lmi_invalid_upd_status_discards = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 1, 1, 102), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpSapstatLmiInvalidUpdStatusDiscards.setStatus('mandatory') frp_circuit_table = mib_table((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2)) if mibBuilder.loadTexts: frpCircuitTable.setStatus('mandatory') frp_circuit_entry = mib_table_row((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1)).setIndexNames((0, 'CXFrameRelay-MIB', 'frpCircuitSapNumber'), (0, 'CXFrameRelay-MIB', 'frpCircuitDlci')) if mibBuilder.loadTexts: frpCircuitEntry.setStatus('mandatory') frp_circuit_sap_number = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 1), sap_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitSapNumber.setStatus('mandatory') frp_circuit_dlci = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 2), dlci()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitDlci.setStatus('mandatory') frp_circuit_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('invalid', 1), ('valid', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpCircuitRowStatus.setStatus('mandatory') frp_circuit_priority_level = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('veryHigh', 1), ('high', 2), ('medium', 3), ('low', 4))).clone('medium')).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpCircuitPriorityLevel.setStatus('mandatory') frp_circuit_committed_burst = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 5), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpCircuitCommittedBurst.setStatus('mandatory') frp_circuit_excess_burst = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 6), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpCircuitExcessBurst.setStatus('mandatory') frp_circuit_committed_information_rate = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 7), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpCircuitCommittedInformationRate.setStatus('mandatory') frp_circuit_cir_management = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('disabled', 1), ('enabled-inbound', 2), ('monitor-inbound', 3), ('enabled-outbound', 4))).clone('disabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpCircuitCIRManagement.setStatus('mandatory') frp_circuit_multi_prot_encaps = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2))).clone('disabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpCircuitMultiProtEncaps.setStatus('mandatory') frp_circuit_high_priority_burst = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 10), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpCircuitHighPriorityBurst.setStatus('mandatory') frp_circuit_low_priority_burst = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 11), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpCircuitLowPriorityBurst.setStatus('mandatory') frp_circuit_fragmentation_size = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 18), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpCircuitFragmentationSize.setStatus('mandatory') frp_circuit_alias = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 19), alias()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpCircuitAlias.setStatus('mandatory') frp_circuit_companion_sap_number = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 20), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpCircuitCompanionSapNumber.setStatus('mandatory') frp_circuit_companion_dlci = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 21), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpCircuitCompanionDlci.setStatus('mandatory') frp_circuit_alternate_sap_number = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 22), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpCircuitAlternateSapNumber.setStatus('mandatory') frp_circuit_alternate_dlci = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 23), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpCircuitAlternateDlci.setStatus('mandatory') frp_circuit_multicast_group_id = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 24), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitMulticastGroupId.setStatus('mandatory') frp_circuit_multicast_type = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 25), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('noMulticastAssociation', 1), ('rootOneWay', 2), ('leafOneWay', 3), ('rootTwoWay', 4), ('leafTwoWay', 5), ('rootNWay', 6), ('rootTwoWaySinglePass', 7), ('leafTwoWaySinglePass', 8))).clone('noMulticastAssociation')).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitMulticastType.setStatus('mandatory') frp_circuit_compression_port = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 26), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpCircuitCompressionPort.setStatus('mandatory') frp_circuit_express_service = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 27), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2))).clone('enabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpCircuitExpressService.setStatus('mandatory') frp_circuittrap_trap1 = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 32), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2))).clone('disabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpCircuittrapTrap1.setStatus('mandatory') frp_circuittrap_trap2 = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 33), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2))).clone('disabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpCircuittrapTrap2.setStatus('mandatory') frp_circuit_control_stats = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 39), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('clearCircuitStats', 1)))).setMaxAccess('writeonly') if mibBuilder.loadTexts: frpCircuitControlStats.setStatus('mandatory') frp_circuitstat_reported_state = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 40), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('notReported', 1), ('reportedActive', 2), ('reportedInactive', 3))).clone('notReported')).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatReportedState.setStatus('mandatory') frp_circuitstat_route_state = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 41), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('noRoute', 1), ('routeNotOperational', 2), ('routeOperational', 3))).clone('noRoute')).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatRouteState.setStatus('mandatory') frp_circuitstat_alternate_route_state = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 42), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('noRoute', 1), ('routeNotOperational', 2), ('routeOperational', 3), ('alternateCircuit', 4))).clone('noRoute')).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatAlternateRouteState.setStatus('mandatory') frp_circuitstat_local_creation_time = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 47), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatLocalCreationTime.setStatus('mandatory') frp_circuitstat_remote_creation_time = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 48), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatRemoteCreationTime.setStatus('mandatory') frp_circuitstat_tx_frames = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 49), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatTxFrames.setStatus('mandatory') frp_circuitstat_rx_frames = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 50), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatRxFrames.setStatus('mandatory') frp_circuitstat_tx_octets = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 51), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatTxOctets.setStatus('mandatory') frp_circuitstat_rx_octets = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 52), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatRxOctets.setStatus('mandatory') frp_circuitstat_tx_fec_ns = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 53), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatTxFECNs.setStatus('mandatory') frp_circuitstat_rx_fec_ns = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 54), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatRxFECNs.setStatus('mandatory') frp_circuitstat_tx_bec_ns = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 55), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatTxBECNs.setStatus('mandatory') frp_circuitstat_rx_bec_ns = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 56), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatRxBECNs.setStatus('mandatory') frp_circuitstat_tx_queued_discards = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 63), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatTxQueuedDiscards.setStatus('mandatory') frp_circuitstat_rx_cir_exceeded_discards = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 70), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatRxCIRExceededDiscards.setStatus('mandatory') frp_circuitstat_rx_sys_congestion_discards = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 71), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatRxSysCongestionDiscards.setStatus('mandatory') frp_circuitstat_rx_unavail_inbound_discards = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 72), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatRxUnavailInboundDiscards.setStatus('mandatory') frp_circuitstat_rx_unavail_outbound_discards = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 73), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatRxUnavailOutboundDiscards.setStatus('mandatory') frp_circuitstat_rx_cir_exceeds = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 74), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatRxCIRExceeds.setStatus('mandatory') frp_circuitstat_fragmentation_failures = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 75), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatFragmentationFailures.setStatus('mandatory') frp_circuitstat_de_fragmentation_failures = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 2, 1, 76), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpCircuitstatDeFragmentationFailures.setStatus('mandatory') frp_reported_pvc_table = mib_table((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 3)) if mibBuilder.loadTexts: frpReportedPvcTable.setStatus('mandatory') frp_reported_pvc_entry = mib_table_row((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 3, 1)).setIndexNames((0, 'CXFrameRelay-MIB', 'frpReportedPvcSapNumber')) if mibBuilder.loadTexts: frpReportedPvcEntry.setStatus('mandatory') frp_reported_pvc_sap_number = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 3, 1, 1), sap_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpReportedPvcSapNumber.setStatus('mandatory') frp_reported_pvc_dlci = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 3, 1, 2), dlci()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpReportedPvcDlci.setStatus('mandatory') frp_reported_pvc_locally_configured = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 3, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: frpReportedPvcLocallyConfigured.setStatus('mandatory') frp_reported_pvc_status = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 3, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('inactive', 1), ('active', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: frpReportedPvcStatus.setStatus('mandatory') frp_multicast_table = mib_table((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 4)) if mibBuilder.loadTexts: frpMulticastTable.setStatus('mandatory') frp_multicast_entry = mib_table_row((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 4, 1)).setIndexNames((0, 'CXFrameRelay-MIB', 'frpMulticastGroupId'), (0, 'CXFrameRelay-MIB', 'frpMulticastSapNumber'), (0, 'CXFrameRelay-MIB', 'frpMulticastDlci')) if mibBuilder.loadTexts: frpMulticastEntry.setStatus('mandatory') frp_multicast_group_id = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 4, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: frpMulticastGroupId.setStatus('mandatory') frp_multicast_sap_number = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 4, 1, 2), sap_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpMulticastSapNumber.setStatus('mandatory') frp_multicast_dlci = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 4, 1, 3), dlci()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpMulticastDlci.setStatus('mandatory') frp_multicast_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 4, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('invalid', 1), ('valid', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpMulticastRowStatus.setStatus('mandatory') frp_multicast_member_type = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 4, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('root', 1), ('leaf', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpMulticastMemberType.setStatus('mandatory') frp_multicast_service_type = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 4, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('oneWay', 1), ('twoWay', 2), ('nWay', 3), ('twoWaySinglePass', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: frpMulticastServiceType.setStatus('mandatory') frp_multicast_member_status = mib_table_column((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 4, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('inactive', 1), ('active', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: frpMulticastMemberStatus.setStatus('mandatory') frp_mib_level = mib_scalar((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: frpMibLevel.setStatus('mandatory') frp_sap_interface_status_change = notification_type((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3) + (0, 1)).setObjects(('CXModuleHardware-MIB', 'cxModuleHwPhysSlot'), ('CXFrameRelay-MIB', 'frpSapNumber'), ('CXFrameRelay-MIB', 'frpSapstatLinkManagementState')) frp_pvc_reported_status_change = notification_type((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3) + (0, 2)).setObjects(('CXModuleHardware-MIB', 'cxModuleHwPhysSlot'), ('CXFrameRelay-MIB', 'frpCircuitSapNumber'), ('CXFrameRelay-MIB', 'frpCircuitDlci'), ('CXFrameRelay-MIB', 'frpCircuitstatReportedState')) frp_pvc_billing_stats = notification_type((1, 3, 6, 1, 4, 1, 495, 2, 1, 6, 3) + (0, 3)).setObjects(('CXModuleHardware-MIB', 'cxModuleHwPhysSlot'), ('CXFrameRelay-MIB', 'frpCircuitSapNumber'), ('CXFrameRelay-MIB', 'frpCircuitDlci'), ('CXFrameRelay-MIB', 'frpCircuitstatTxFrames'), ('CXFrameRelay-MIB', 'frpCircuitstatRxFrames'), ('CXFrameRelay-MIB', 'frpCircuitstatTxOctets'), ('CXFrameRelay-MIB', 'frpCircuitstatRxOctets')) mibBuilder.exportSymbols('CXFrameRelay-MIB', frpCircuitstatRxCIRExceededDiscards=frpCircuitstatRxCIRExceededDiscards, frpSapGenerator=frpSapGenerator, frpSapstatLinkManagementState=frpSapstatLinkManagementState, frpPvcBillingStats=frpPvcBillingStats, frpSapInterfaceType=frpSapInterfaceType, frpMulticastTable=frpMulticastTable, frpCircuitstatRxBECNs=frpCircuitstatRxBECNs, frpSapstatRxUnavailOutboundDiscards=frpSapstatRxUnavailOutboundDiscards, frpSapstatLmiTimeouts=frpSapstatLmiTimeouts, frpSapControlStats=frpSapControlStats, frpCircuitstatRouteState=frpCircuitstatRouteState, frpCircuitstatRemoteCreationTime=frpCircuitstatRemoteCreationTime, frpSapSdLmMessageInterval=frpSapSdLmMessageInterval, frpCircuitstatDeFragmentationFailures=frpCircuitstatDeFragmentationFailures, frpSapPrioQueue1HitRatio=frpSapPrioQueue1HitRatio, frpSapTable=frpSapTable, frpSapstatRxDataOctets=frpSapstatRxDataOctets, frpCircuitLowPriorityBurst=frpCircuitLowPriorityBurst, frpMulticastDlci=frpMulticastDlci, frpCircuitCompanionSapNumber=frpCircuitCompanionSapNumber, frpSapGeneratorFrameSize=frpSapGeneratorFrameSize, frpReportedPvcEntry=frpReportedPvcEntry, frpSapControl=frpSapControl, frpSapGeneratorInterFrameDelay=frpSapGeneratorInterFrameDelay, frpMibLevel=frpMibLevel, frpSapGeneratorNumberOfFrames=frpSapGeneratorNumberOfFrames, frpMulticastRowStatus=frpMulticastRowStatus, frpSapstatLmiInvalidUpdStatusDiscards=frpSapstatLmiInvalidUpdStatusDiscards, frpMulticastGroupId=frpMulticastGroupId, frpSapPollingInterval=frpSapPollingInterval, frpSapstatRxLmiFrames=frpSapstatRxLmiFrames, frpSapNumber=frpSapNumber, frpSapFilterBitMap=frpSapFilterBitMap, frpCircuitFragmentationSize=frpCircuitFragmentationSize, frpCircuitstatAlternateRouteState=frpCircuitstatAlternateRouteState, frpSapMode=frpSapMode, frpSapLinkManagement=frpSapLinkManagement, frpCircuitstatRxOctets=frpCircuitstatRxOctets, frpCircuittrapTrap2=frpCircuittrapTrap2, frpSapstatRxMiscellaneousDiscards=frpSapstatRxMiscellaneousDiscards, frpSapRowStatus=frpSapRowStatus, frpCircuitRowStatus=frpCircuitRowStatus, frpSapstatRxSysCongestionDiscards=frpSapstatRxSysCongestionDiscards, frpSapPrioQueue4HitRatio=frpSapPrioQueue4HitRatio, frpSapstatRxDataFrames=frpSapstatRxDataFrames, frpSapOutCongestionManagement=frpSapOutCongestionManagement, frpSapstatTxDataFrames=frpSapstatTxDataFrames, frpCircuitExpressService=frpCircuitExpressService, frpCircuitAlternateSapNumber=frpCircuitAlternateSapNumber, frpCircuitCompanionDlci=frpCircuitCompanionDlci, frpSapAddressLength=frpSapAddressLength, frpSapPollingVerification=frpSapPollingVerification, frpCircuitCommittedBurst=frpCircuitCommittedBurst, frpCircuitSapNumber=frpCircuitSapNumber, frpPvcReportedStatusChange=frpPvcReportedStatusChange, frpReportedPvcDlci=frpReportedPvcDlci, frpSapstatRxCIRExceededDiscards=frpSapstatRxCIRExceededDiscards, frpSapPrioQueue3HitRatio=frpSapPrioQueue3HitRatio, frpReportedPvcTable=frpReportedPvcTable, frpCircuitstatRxFrames=frpCircuitstatRxFrames, frpCircuitExcessBurst=frpCircuitExcessBurst, frpCircuitstatFragmentationFailures=frpCircuitstatFragmentationFailures, frpCircuitstatLocalCreationTime=frpCircuitstatLocalCreationTime, frpSapstatLmiInvalidStatusEnqDiscards=frpSapstatLmiInvalidStatusEnqDiscards, frpSapstatTxLmiFrames=frpSapstatTxLmiFrames, frpReportedPvcStatus=frpReportedPvcStatus, frpSapGeneratorDlciNumber=frpSapGeneratorDlciNumber, frpMulticastServiceType=frpMulticastServiceType, frpSapMonitoredEvents=frpSapMonitoredEvents, frpReportedPvcSapNumber=frpReportedPvcSapNumber, frpSaptrapTrap1=frpSaptrapTrap1, frpSapstatLmiInvalidStatusDiscards=frpSapstatLmiInvalidStatusDiscards, frpCircuitCommittedInformationRate=frpCircuitCommittedInformationRate, frpCircuittrapTrap1=frpCircuittrapTrap1, frpReportedPvcLocallyConfigured=frpReportedPvcLocallyConfigured, frpCircuitstatRxSysCongestionDiscards=frpCircuitstatRxSysCongestionDiscards, frpMulticastMemberType=frpMulticastMemberType, frpSapstatLmiInvalidFieldDiscards=frpSapstatLmiInvalidFieldDiscards, frpSapstatRxBadStatusDiscards=frpSapstatRxBadStatusDiscards, frpSapstatCurrentLinkManagementType=frpSapstatCurrentLinkManagementType, frpSapstatRxCIRExceeds=frpSapstatRxCIRExceeds, frpSapErrorThreshold=frpSapErrorThreshold, frpSapAlias=frpSapAlias, frpSapMaxSupportedVCs=frpSapMaxSupportedVCs, frpCircuitstatTxFECNs=frpCircuitstatTxFECNs, frpSapResourceAllocation=frpSapResourceAllocation, frpSapBillingTimer=frpSapBillingTimer, frpSapEntry=frpSapEntry, frpSapstatRxInvalidVCDiscards=frpSapstatRxInvalidVCDiscards, frpSapstatTxDataOctets=frpSapstatTxDataOctets, frpSapVCBase=frpSapVCBase, frpCircuitAlias=frpCircuitAlias, frpCircuitstatRxFECNs=frpCircuitstatRxFECNs, frpSapstatLmiInvalidSequenceDiscards=frpSapstatLmiInvalidSequenceDiscards, frpCircuitstatReportedState=frpCircuitstatReportedState, frpMulticastEntry=frpMulticastEntry, DLCI=DLCI, frpMulticastSapNumber=frpMulticastSapNumber, frpCircuitstatRxUnavailOutboundDiscards=frpCircuitstatRxUnavailOutboundDiscards, frpMulticastMemberStatus=frpMulticastMemberStatus, frpCircuitMulticastType=frpCircuitMulticastType, frpCircuitMultiProtEncaps=frpCircuitMultiProtEncaps, frpSapPrioQueue2HitRatio=frpSapPrioQueue2HitRatio, frpCircuitTable=frpCircuitTable, frpCircuitCIRManagement=frpCircuitCIRManagement, frpSapstatTxQueuedDiscards=frpSapstatTxQueuedDiscards, frpCircuitstatRxCIRExceeds=frpCircuitstatRxCIRExceeds, frpSapSdLmActiveTimer=frpSapSdLmActiveTimer, frpCircuitPriorityLevel=frpCircuitPriorityLevel, frpCircuitHighPriorityBurst=frpCircuitHighPriorityBurst, frpCircuitstatRxUnavailInboundDiscards=frpCircuitstatRxUnavailInboundDiscards, frpSapInterfaceStatusChange=frpSapInterfaceStatusChange, frpSapFullEnquiryInterval=frpSapFullEnquiryInterval, frpSapCompanionAlias=frpSapCompanionAlias, frpCircuitAlternateDlci=frpCircuitAlternateDlci, frpCircuitMulticastGroupId=frpCircuitMulticastGroupId, frpCircuitControlStats=frpCircuitControlStats, frpCircuitEntry=frpCircuitEntry, frpCircuitstatTxOctets=frpCircuitstatTxOctets, frpCircuitstatTxFrames=frpCircuitstatTxFrames, frpSapstatRxShortFrameDiscards=frpSapstatRxShortFrameDiscards, frpSapDialEntry=frpSapDialEntry, frpCircuitDlci=frpCircuitDlci, frpCircuitstatTxQueuedDiscards=frpCircuitstatTxQueuedDiscards, frpSapstatRxUnavailInboundDiscards=frpSapstatRxUnavailInboundDiscards, frpCircuitstatTxBECNs=frpCircuitstatTxBECNs, frpSapLmiFlavor=frpSapLmiFlavor, frpSapType=frpSapType, frpCircuitCompressionPort=frpCircuitCompressionPort)
# Note that this file is multi-lingual and can be used in both Python # and POSIX shell. # This file should define a variable VERSION which we use as the # debugger version number. VERSION = '2.9.0'
version = '2.9.0'
def reverse(input): #reverse as string return input[::-1] #An alternative approach I wass using - string to list '''myinput = input mylist = list(myinput) #print (mylist) mylist.reverse() return (mylist)''' '''while True: if input == None: print (None) break else: #find length of list l=len(mylist)-1 #while loop to reverse while l >= 0: print (mylist[l]) l -= 1 #actual reverse function happens here #return(mylist) #not working: '' input and '' puctuated sentence.''' reverse(input = 'robot') reverse(input = 'Ramen') reverse(input = 'I\'m hungry!') reverse(input = 'racecar')
def reverse(input): return input[::-1] 'myinput = input\n mylist = list(myinput)\n #print (mylist)\n mylist.reverse()\n return (mylist)' "while True:\n if input == None:\n print (None)\n break\n else:\n #find length of list\n l=len(mylist)-1\n #while loop to reverse\n while l >= 0:\n print (mylist[l])\n l -= 1\n#actual reverse function happens here\n \n #return(mylist)\n #not working: '' input and '' puctuated sentence." reverse(input='robot') reverse(input='Ramen') reverse(input="I'm hungry!") reverse(input='racecar')
# Similar to longest substring with k different characters, with k = 2 class Solution: def totalFruit(self, tree: List[int]) -> int: if not tree or len(tree) == 0: return 0 left = 0 ans = 0 baskets = {} # Use the dictionary to store the last index all fruits/letters in the array for t, fruit in enumerate(tree): baskets[fruit] = t if len(baskets) > 2: left = min(baskets.values()) del baskets[tree[left]] left += 1 ans = max(ans, t - left + 1) return ans
class Solution: def total_fruit(self, tree: List[int]) -> int: if not tree or len(tree) == 0: return 0 left = 0 ans = 0 baskets = {} for (t, fruit) in enumerate(tree): baskets[fruit] = t if len(baskets) > 2: left = min(baskets.values()) del baskets[tree[left]] left += 1 ans = max(ans, t - left + 1) return ans
''' Return Permutations of a String Given a string, find and return all the possible permutations of the input string. Note : The order of permutations are not important. Sample Input : abc Sample Output : abc acb bac bca cab cba ''' def permutations(string): #Implement Your Code Here if len(string) == 1: return [string] temp = permutations(string[1:]) output = [] for i in temp: for j in range(len(i)+1): smallString = i[:j] + string[0] + i[j:] output.append(smallString) return output string = input() ans = permutations(string) for s in ans: print(s)
""" Return Permutations of a String Given a string, find and return all the possible permutations of the input string. Note : The order of permutations are not important. Sample Input : abc Sample Output : abc acb bac bca cab cba """ def permutations(string): if len(string) == 1: return [string] temp = permutations(string[1:]) output = [] for i in temp: for j in range(len(i) + 1): small_string = i[:j] + string[0] + i[j:] output.append(smallString) return output string = input() ans = permutations(string) for s in ans: print(s)
def get_hours_since_midnight(seconds): ''' Type the code to calculate total hours given n(number) of seconds For example, given 3800 seconds the total hours is 1 ''' return (seconds//3600) ''' IF YOU ARE OK WITH A GRADE OF 70 FOR THIS ASSIGNMENT STOP HERE. ''' def get_minutes(seconds): ''' Type the code to calculate total minutes less whole hour given n(number) of seconds For example, given 3800 seconds the total minutes is 3 ''' seconds_left = (seconds % 3600) return (seconds_left // 60) def get_seconds(seconds): ''' Type the code to calculate total minutes less whole hour given n(number) of seconds For example, given 3800 seconds the total minutes is 20 ''' seconds_left = (seconds % 3600) return (seconds_left % 60) # used the // to get the amount of minutes left and the % to get the remaining seconds.
def get_hours_since_midnight(seconds): """ Type the code to calculate total hours given n(number) of seconds For example, given 3800 seconds the total hours is 1 """ return seconds // 3600 '\nIF YOU ARE OK WITH A GRADE OF 70 FOR THIS ASSIGNMENT STOP HERE.\n' def get_minutes(seconds): """ Type the code to calculate total minutes less whole hour given n(number) of seconds For example, given 3800 seconds the total minutes is 3 """ seconds_left = seconds % 3600 return seconds_left // 60 def get_seconds(seconds): """ Type the code to calculate total minutes less whole hour given n(number) of seconds For example, given 3800 seconds the total minutes is 20 """ seconds_left = seconds % 3600 return seconds_left % 60
class BingoBoard: def __init__(self) -> None: self.board = [] self.markedNums = 0 def __repr__(self) -> str: ret = '' for line in self.board: for num in line: ret += num + ' ' ret += '\n' return ret def check_value(self, val: str): r = 0 c = 0 found = 0 for row in self.board: for num in row: if num == val: row.pop(c) row.insert(c, '-1') found = 1 break c += 1 if found: break r += 1 c = 0 if found: self.markedNums += 1 # check if we have a winner winner = 0 if self.markedNums >= 5 and found: # check row for i in range(5): if self.board[r][i] == '-1': winner = 1 else: winner = 0 break if winner: return 1 # check column for j in range(5): if self.board[j][c] == '-1': winner = 1 else: winner = 0 break if winner: return 1 else: return 0 def calculate_winning_score(self): sum = 0 for row in self.board: for num in row: if num != '-1': sum += int(num) return sum def getInput(numbers, boards): lineNum = 0 with open('4.in', 'r') as file: curr_board = None for line in file: if lineNum == 0: numbers.extend(line.strip('\n').split(',')) else: if line == '\n' and curr_board: boards.append(curr_board) curr_board = BingoBoard() elif line == '\n': curr_board = BingoBoard() else: curr_board.board.append(line.strip('\n').split()) lineNum += 1 boards.append(curr_board) def solution(): numbers = [] boards = [] getInput(numbers, boards) numberOfBoards = len(boards) winningBoards = [] for num in numbers: boardNum = 0 for board in boards: if boardNum in winningBoards: pass else: winnerBool = board.check_value(num) if winnerBool: if len(winningBoards) != numberOfBoards - 1: winningBoards.append(boardNum) else: # calculate score sum = board.calculate_winning_score() print(int(num) * sum) return 0 boardNum += 1 solution()
class Bingoboard: def __init__(self) -> None: self.board = [] self.markedNums = 0 def __repr__(self) -> str: ret = '' for line in self.board: for num in line: ret += num + ' ' ret += '\n' return ret def check_value(self, val: str): r = 0 c = 0 found = 0 for row in self.board: for num in row: if num == val: row.pop(c) row.insert(c, '-1') found = 1 break c += 1 if found: break r += 1 c = 0 if found: self.markedNums += 1 winner = 0 if self.markedNums >= 5 and found: for i in range(5): if self.board[r][i] == '-1': winner = 1 else: winner = 0 break if winner: return 1 for j in range(5): if self.board[j][c] == '-1': winner = 1 else: winner = 0 break if winner: return 1 else: return 0 def calculate_winning_score(self): sum = 0 for row in self.board: for num in row: if num != '-1': sum += int(num) return sum def get_input(numbers, boards): line_num = 0 with open('4.in', 'r') as file: curr_board = None for line in file: if lineNum == 0: numbers.extend(line.strip('\n').split(',')) elif line == '\n' and curr_board: boards.append(curr_board) curr_board = bingo_board() elif line == '\n': curr_board = bingo_board() else: curr_board.board.append(line.strip('\n').split()) line_num += 1 boards.append(curr_board) def solution(): numbers = [] boards = [] get_input(numbers, boards) number_of_boards = len(boards) winning_boards = [] for num in numbers: board_num = 0 for board in boards: if boardNum in winningBoards: pass else: winner_bool = board.check_value(num) if winnerBool: if len(winningBoards) != numberOfBoards - 1: winningBoards.append(boardNum) else: sum = board.calculate_winning_score() print(int(num) * sum) return 0 board_num += 1 solution()
#! /usr/bin/env python3 # coding: utf-8 def main(): with open('sample1.txt','r') as f: content = f.read() content = content.upper() with open('sample2.txt','w') as f: f.write(content) if __name__ =='__main__': main()
def main(): with open('sample1.txt', 'r') as f: content = f.read() content = content.upper() with open('sample2.txt', 'w') as f: f.write(content) if __name__ == '__main__': main()
f_chr6 = open("/hwfssz1/ST_BIOCHEM/P18Z10200N0032/liyiyan/SV_Caller/HG002/chr6_reads.fastq") liness = f_chr6.readlines() reads_list = [] for i in range(1,len(liness),4): reads_list.append(liness[i]) res = min(reads_list, key=len,default='') print(len(res)-1)
f_chr6 = open('/hwfssz1/ST_BIOCHEM/P18Z10200N0032/liyiyan/SV_Caller/HG002/chr6_reads.fastq') liness = f_chr6.readlines() reads_list = [] for i in range(1, len(liness), 4): reads_list.append(liness[i]) res = min(reads_list, key=len, default='') print(len(res) - 1)
qtd = 0 soma = 0 for i in range(1, 101, 1): if i % 2 == 0: qtd += 1 soma += i media = soma / qtd print('A media dos pares de 1 ate 100 e de {} '.format(media))
qtd = 0 soma = 0 for i in range(1, 101, 1): if i % 2 == 0: qtd += 1 soma += i media = soma / qtd print('A media dos pares de 1 ate 100 e de {} '.format(media))
names = ["Adam", "Alex", "Mariah", "Martine", "Columbus"] for word in names: print(word)
names = ['Adam', 'Alex', 'Mariah', 'Martine', 'Columbus'] for word in names: print(word)
# # PySNMP MIB module HPNSAECC-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HPNSAECC-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:42: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) # Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ConstraintsUnion, ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsUnion", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Counter64, MibIdentifier, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter32, NotificationType, iso, Integer32, Gauge32, IpAddress, enterprises, Unsigned32, ObjectIdentity, NotificationType, ModuleIdentity, TimeTicks = mibBuilder.importSymbols("SNMPv2-SMI", "Counter64", "MibIdentifier", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter32", "NotificationType", "iso", "Integer32", "Gauge32", "IpAddress", "enterprises", "Unsigned32", "ObjectIdentity", "NotificationType", "ModuleIdentity", "TimeTicks") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") hp = MibIdentifier((1, 3, 6, 1, 4, 1, 11)) nm = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2)) hpnsa = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 23)) hpnsaECC = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 23, 6)) hpnsaEccMibRev = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 1)) hpnsaEccAgent = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 2)) hpnsaEccLog = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3)) hpnsaEccMibRevMajor = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnsaEccMibRevMajor.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccMibRevMajor.setDescription('The major revision level of the MIB.') hpnsaEccMibRevMinor = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnsaEccMibRevMinor.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccMibRevMinor.setDescription('The minor revision level of the MIB.') hpnsaEccAgentTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 2, 1), ) if mibBuilder.loadTexts: hpnsaEccAgentTable.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccAgentTable.setDescription('A table of SNMP Agents that satisfy requests for this MIB.') hpnsaEccAgentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 2, 1, 1), ).setIndexNames((0, "HPNSAECC-MIB", "hpnsaEccAgentIndex")) if mibBuilder.loadTexts: hpnsaEccAgentEntry.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccAgentEntry.setDescription('A description of the agents that access ECC Memory related information.') hpnsaEccAgentIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnsaEccAgentIndex.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccAgentIndex.setDescription('A unique index for this module description.') hpnsaEccAgentName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 2, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnsaEccAgentName.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccAgentName.setDescription('Name of the Agent/Agents satisfying SNMP requests for this MIB.') hpnsaEccAgentVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 2, 1, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 5))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnsaEccAgentVersion.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccAgentVersion.setDescription('Version number of the Agent/Agents satisfying SNMP requests for this MIB.') hpnsaEccAgentDate = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 2, 1, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnsaEccAgentDate.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccAgentDate.setDescription('The date on which this Agent was created. field octets contents range _________________________________________________ 1 1 years since 1900 0..255 2 2 month 1..12 3 3 day 1..31 4 4 hour 0..23 5 5 minute 0..59 6 6 second 0..59 ') hpnsaEccStatus = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("notSupported", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnsaEccStatus.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccStatus.setDescription('ECC memory system tracking status: 1 - ECC memory is not supported in this machine 2 - ECC memory logging is disabled due to some errors (example, too many single or multiple bits error occurred in a short period of time) 3 - ECC memory logging is enabled and functioning.') hpnsaEccEraseLog = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnsaEccEraseLog.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccEraseLog.setDescription("Set this variable to integer value 1234 and without changing it again before hpnsaEccPollTime expired, will erase the system's Log area.") hpnsaEccTotalErrCorrected = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnsaEccTotalErrCorrected.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccTotalErrCorrected.setDescription('Total number of ECC memory error had occurred and been corrected.') hpnsaEccTrapEnable = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 0))).clone(namedValues=NamedValues(("trapOn", 1), ("trapOff", 0)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnsaEccTrapEnable.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccTrapEnable.setDescription('Set this variable to 1, the ECC memory errors are forwarded as SNMP traps. No trap are generated if this variable is set to 0.') hpnsaEccTrapDelay = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(100, 5000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnsaEccTrapDelay.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccTrapDelay.setDescription('Delay in milliseconds between the sending of ECC traps.') hpnsaEccPollTime = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(60, 2592000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnsaEccPollTime.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccPollTime.setDescription('Seconds between checking of ECC memory error.') hpnsaEccMemErrTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 7), ) if mibBuilder.loadTexts: hpnsaEccMemErrTable.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccMemErrTable.setDescription('A table of ECC memory error descriptions.') hpnsaEccMemErrEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 7, 1), ).setIndexNames((0, "HPNSAECC-MIB", "hpnsaEccMemErrIndex")) if mibBuilder.loadTexts: hpnsaEccMemErrEntry.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccMemErrEntry.setDescription('ECC memory error description.') hpnsaEccMemErrIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 7, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnsaEccMemErrIndex.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccMemErrIndex.setDescription('A unique index for the ECC memory error log.') hpnsaEccMemErrTime = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 7, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnsaEccMemErrTime.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccMemErrTime.setDescription('The Server local time when the ECC memory error occurred.') hpnsaEccMemErrDesc = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 7, 1, 3), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnsaEccMemErrDesc.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccMemErrDesc.setDescription('A string indicating the SIMM location when ECC memory error occurred.') hpnsaEccErrorCorrected = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 23, 6) + (0,4353)) if mibBuilder.loadTexts: hpnsaEccErrorCorrected.setDescription('An ECC single-bit error has been corrected in one of the memory modules') hpnsaEccSBEOverflow = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 23, 6) + (0,4354)) if mibBuilder.loadTexts: hpnsaEccSBEOverflow.setDescription("Error logging for ECC single-bit errors has been disabled due to too many SBE's detected in a short time period") hpnsaEccMemoryResize = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 23, 6) + (0,4355)) if mibBuilder.loadTexts: hpnsaEccMemoryResize.setDescription('ECC Memory size has been adjusted during the Power-On-Self-Test during the last boot due to a failed memory module') hpnsaEccMultiBitError = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 23, 6) + (0,4357)) if mibBuilder.loadTexts: hpnsaEccMultiBitError.setDescription('An ECC double-bit error has occurred in one of the memory modules') hpnsaEccMultiBitErrorOverflow = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 23, 6) + (0,4358)) if mibBuilder.loadTexts: hpnsaEccMultiBitErrorOverflow.setDescription("Error logging for ECC multiple-bit errors has been disabled due to too many MBE's detected in a short time period") mibBuilder.exportSymbols("HPNSAECC-MIB", hpnsa=hpnsa, hpnsaEccMemErrDesc=hpnsaEccMemErrDesc, hpnsaEccAgentVersion=hpnsaEccAgentVersion, hp=hp, hpnsaEccMibRevMajor=hpnsaEccMibRevMajor, hpnsaEccMemErrTable=hpnsaEccMemErrTable, hpnsaEccLog=hpnsaEccLog, hpnsaEccAgentEntry=hpnsaEccAgentEntry, hpnsaEccAgentDate=hpnsaEccAgentDate, hpnsaEccAgentIndex=hpnsaEccAgentIndex, hpnsaEccMibRev=hpnsaEccMibRev, hpnsaEccMibRevMinor=hpnsaEccMibRevMinor, hpnsaEccMemErrEntry=hpnsaEccMemErrEntry, hpnsaEccErrorCorrected=hpnsaEccErrorCorrected, hpnsaEccAgent=hpnsaEccAgent, hpnsaEccMemErrTime=hpnsaEccMemErrTime, hpnsaEccMemErrIndex=hpnsaEccMemErrIndex, hpnsaEccMemoryResize=hpnsaEccMemoryResize, hpnsaEccMultiBitErrorOverflow=hpnsaEccMultiBitErrorOverflow, hpnsaEccMultiBitError=hpnsaEccMultiBitError, hpnsaEccTrapEnable=hpnsaEccTrapEnable, hpnsaEccAgentTable=hpnsaEccAgentTable, hpnsaEccTrapDelay=hpnsaEccTrapDelay, hpnsaEccEraseLog=hpnsaEccEraseLog, hpnsaEccSBEOverflow=hpnsaEccSBEOverflow, hpnsaEccTotalErrCorrected=hpnsaEccTotalErrCorrected, hpnsaEccAgentName=hpnsaEccAgentName, hpnsaEccPollTime=hpnsaEccPollTime, hpnsaEccStatus=hpnsaEccStatus, hpnsaECC=hpnsaECC, nm=nm)
(integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, constraints_union, constraints_intersection, value_size_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ConstraintsUnion', 'ConstraintsIntersection', 'ValueSizeConstraint', 'ValueRangeConstraint') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (counter64, mib_identifier, bits, mib_scalar, mib_table, mib_table_row, mib_table_column, counter32, notification_type, iso, integer32, gauge32, ip_address, enterprises, unsigned32, object_identity, notification_type, module_identity, time_ticks) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter64', 'MibIdentifier', 'Bits', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter32', 'NotificationType', 'iso', 'Integer32', 'Gauge32', 'IpAddress', 'enterprises', 'Unsigned32', 'ObjectIdentity', 'NotificationType', 'ModuleIdentity', 'TimeTicks') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') hp = mib_identifier((1, 3, 6, 1, 4, 1, 11)) nm = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2)) hpnsa = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 23)) hpnsa_ecc = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 23, 6)) hpnsa_ecc_mib_rev = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 1)) hpnsa_ecc_agent = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 2)) hpnsa_ecc_log = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3)) hpnsa_ecc_mib_rev_major = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnsaEccMibRevMajor.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccMibRevMajor.setDescription('The major revision level of the MIB.') hpnsa_ecc_mib_rev_minor = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnsaEccMibRevMinor.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccMibRevMinor.setDescription('The minor revision level of the MIB.') hpnsa_ecc_agent_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 2, 1)) if mibBuilder.loadTexts: hpnsaEccAgentTable.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccAgentTable.setDescription('A table of SNMP Agents that satisfy requests for this MIB.') hpnsa_ecc_agent_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 2, 1, 1)).setIndexNames((0, 'HPNSAECC-MIB', 'hpnsaEccAgentIndex')) if mibBuilder.loadTexts: hpnsaEccAgentEntry.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccAgentEntry.setDescription('A description of the agents that access ECC Memory related information.') hpnsa_ecc_agent_index = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 2, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnsaEccAgentIndex.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccAgentIndex.setDescription('A unique index for this module description.') hpnsa_ecc_agent_name = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 2, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnsaEccAgentName.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccAgentName.setDescription('Name of the Agent/Agents satisfying SNMP requests for this MIB.') hpnsa_ecc_agent_version = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 2, 1, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 5))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnsaEccAgentVersion.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccAgentVersion.setDescription('Version number of the Agent/Agents satisfying SNMP requests for this MIB.') hpnsa_ecc_agent_date = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 2, 1, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(6, 6)).setFixedLength(6)).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnsaEccAgentDate.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccAgentDate.setDescription('The date on which this Agent was created. field octets contents range _________________________________________________ 1 1 years since 1900 0..255 2 2 month 1..12 3 3 day 1..31 4 4 hour 0..23 5 5 minute 0..59 6 6 second 0..59 ') hpnsa_ecc_status = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('notSupported', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnsaEccStatus.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccStatus.setDescription('ECC memory system tracking status: 1 - ECC memory is not supported in this machine 2 - ECC memory logging is disabled due to some errors (example, too many single or multiple bits error occurred in a short period of time) 3 - ECC memory logging is enabled and functioning.') hpnsa_ecc_erase_log = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 2), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnsaEccEraseLog.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccEraseLog.setDescription("Set this variable to integer value 1234 and without changing it again before hpnsaEccPollTime expired, will erase the system's Log area.") hpnsa_ecc_total_err_corrected = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnsaEccTotalErrCorrected.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccTotalErrCorrected.setDescription('Total number of ECC memory error had occurred and been corrected.') hpnsa_ecc_trap_enable = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 0))).clone(namedValues=named_values(('trapOn', 1), ('trapOff', 0)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnsaEccTrapEnable.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccTrapEnable.setDescription('Set this variable to 1, the ECC memory errors are forwarded as SNMP traps. No trap are generated if this variable is set to 0.') hpnsa_ecc_trap_delay = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 5), integer32().subtype(subtypeSpec=value_range_constraint(100, 5000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnsaEccTrapDelay.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccTrapDelay.setDescription('Delay in milliseconds between the sending of ECC traps.') hpnsa_ecc_poll_time = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 6), integer32().subtype(subtypeSpec=value_range_constraint(60, 2592000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnsaEccPollTime.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccPollTime.setDescription('Seconds between checking of ECC memory error.') hpnsa_ecc_mem_err_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 7)) if mibBuilder.loadTexts: hpnsaEccMemErrTable.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccMemErrTable.setDescription('A table of ECC memory error descriptions.') hpnsa_ecc_mem_err_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 7, 1)).setIndexNames((0, 'HPNSAECC-MIB', 'hpnsaEccMemErrIndex')) if mibBuilder.loadTexts: hpnsaEccMemErrEntry.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccMemErrEntry.setDescription('ECC memory error description.') hpnsa_ecc_mem_err_index = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 7, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnsaEccMemErrIndex.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccMemErrIndex.setDescription('A unique index for the ECC memory error log.') hpnsa_ecc_mem_err_time = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 7, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnsaEccMemErrTime.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccMemErrTime.setDescription('The Server local time when the ECC memory error occurred.') hpnsa_ecc_mem_err_desc = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 23, 6, 3, 7, 1, 3), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnsaEccMemErrDesc.setStatus('mandatory') if mibBuilder.loadTexts: hpnsaEccMemErrDesc.setDescription('A string indicating the SIMM location when ECC memory error occurred.') hpnsa_ecc_error_corrected = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 23, 6) + (0, 4353)) if mibBuilder.loadTexts: hpnsaEccErrorCorrected.setDescription('An ECC single-bit error has been corrected in one of the memory modules') hpnsa_ecc_sbe_overflow = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 23, 6) + (0, 4354)) if mibBuilder.loadTexts: hpnsaEccSBEOverflow.setDescription("Error logging for ECC single-bit errors has been disabled due to too many SBE's detected in a short time period") hpnsa_ecc_memory_resize = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 23, 6) + (0, 4355)) if mibBuilder.loadTexts: hpnsaEccMemoryResize.setDescription('ECC Memory size has been adjusted during the Power-On-Self-Test during the last boot due to a failed memory module') hpnsa_ecc_multi_bit_error = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 23, 6) + (0, 4357)) if mibBuilder.loadTexts: hpnsaEccMultiBitError.setDescription('An ECC double-bit error has occurred in one of the memory modules') hpnsa_ecc_multi_bit_error_overflow = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 23, 6) + (0, 4358)) if mibBuilder.loadTexts: hpnsaEccMultiBitErrorOverflow.setDescription("Error logging for ECC multiple-bit errors has been disabled due to too many MBE's detected in a short time period") mibBuilder.exportSymbols('HPNSAECC-MIB', hpnsa=hpnsa, hpnsaEccMemErrDesc=hpnsaEccMemErrDesc, hpnsaEccAgentVersion=hpnsaEccAgentVersion, hp=hp, hpnsaEccMibRevMajor=hpnsaEccMibRevMajor, hpnsaEccMemErrTable=hpnsaEccMemErrTable, hpnsaEccLog=hpnsaEccLog, hpnsaEccAgentEntry=hpnsaEccAgentEntry, hpnsaEccAgentDate=hpnsaEccAgentDate, hpnsaEccAgentIndex=hpnsaEccAgentIndex, hpnsaEccMibRev=hpnsaEccMibRev, hpnsaEccMibRevMinor=hpnsaEccMibRevMinor, hpnsaEccMemErrEntry=hpnsaEccMemErrEntry, hpnsaEccErrorCorrected=hpnsaEccErrorCorrected, hpnsaEccAgent=hpnsaEccAgent, hpnsaEccMemErrTime=hpnsaEccMemErrTime, hpnsaEccMemErrIndex=hpnsaEccMemErrIndex, hpnsaEccMemoryResize=hpnsaEccMemoryResize, hpnsaEccMultiBitErrorOverflow=hpnsaEccMultiBitErrorOverflow, hpnsaEccMultiBitError=hpnsaEccMultiBitError, hpnsaEccTrapEnable=hpnsaEccTrapEnable, hpnsaEccAgentTable=hpnsaEccAgentTable, hpnsaEccTrapDelay=hpnsaEccTrapDelay, hpnsaEccEraseLog=hpnsaEccEraseLog, hpnsaEccSBEOverflow=hpnsaEccSBEOverflow, hpnsaEccTotalErrCorrected=hpnsaEccTotalErrCorrected, hpnsaEccAgentName=hpnsaEccAgentName, hpnsaEccPollTime=hpnsaEccPollTime, hpnsaEccStatus=hpnsaEccStatus, hpnsaECC=hpnsaECC, nm=nm)
# status: testado com exemplos da prova if __name__ == '__main__': n = int(input()) cubes = [int(x) for x in input().split()] ways = 0 for x in range(0, n): x_sum = cubes[x] for y in range(x, n): if x == y: if cubes[y] % 8 == 0: ways += 1 else: x_sum += cubes[y] if x_sum % 8 == 0: ways += 1 print(ways)
if __name__ == '__main__': n = int(input()) cubes = [int(x) for x in input().split()] ways = 0 for x in range(0, n): x_sum = cubes[x] for y in range(x, n): if x == y: if cubes[y] % 8 == 0: ways += 1 else: x_sum += cubes[y] if x_sum % 8 == 0: ways += 1 print(ways)
def albumFromID(id:int): return f'https://www.jiosaavn.com/api.php?__call=content.getAlbumDetails&_format=json&cc=in&_marker=0%3F_marker=0&albumid={id}' def albumsearchFromSTRING(query:str): return f'https://www.jiosaavn.com/api.php?__call=autocomplete.get&_format=json&_marker=0&cc=in&includeMetaTags=1&query={"+".join(query.split(" "))}' def songFromID(id:str): return f'https://www.jiosaavn.com/api.php?__call=song.getDetails&cc=in&_marker=0%3F_marker%3D0&_format=json&pids={id}' def songsearchFromSTRING(query:str,p:int,n:int): return f'https://www.jiosaavn.com/api.php?p={p}&_format=json&_marker=0&api_version=4&ctx=wap6dot0&n={n}&__call=search.getResults&q={"+".join(query.split(" "))}' def lyricsFromID(id:str): return f'https://www.jiosaavn.com/api.php?__call=lyrics.getLyrics&ctx=web6dot0&api_version=4&_format=json&_marker=0%3F_marker=0&lyrics_id={id}' def playlistFromID(id:str): return f'https://www.jiosaavn.com/api.php?__call=playlist.getDetails&_format=json&cc=in&_marker=0%3F_marker%3D0&listid={id}'
def album_from_id(id: int): return f'https://www.jiosaavn.com/api.php?__call=content.getAlbumDetails&_format=json&cc=in&_marker=0%3F_marker=0&albumid={id}' def albumsearch_from_string(query: str): return f"https://www.jiosaavn.com/api.php?__call=autocomplete.get&_format=json&_marker=0&cc=in&includeMetaTags=1&query={'+'.join(query.split(' '))}" def song_from_id(id: str): return f'https://www.jiosaavn.com/api.php?__call=song.getDetails&cc=in&_marker=0%3F_marker%3D0&_format=json&pids={id}' def songsearch_from_string(query: str, p: int, n: int): return f"https://www.jiosaavn.com/api.php?p={p}&_format=json&_marker=0&api_version=4&ctx=wap6dot0&n={n}&__call=search.getResults&q={'+'.join(query.split(' '))}" def lyrics_from_id(id: str): return f'https://www.jiosaavn.com/api.php?__call=lyrics.getLyrics&ctx=web6dot0&api_version=4&_format=json&_marker=0%3F_marker=0&lyrics_id={id}' def playlist_from_id(id: str): return f'https://www.jiosaavn.com/api.php?__call=playlist.getDetails&_format=json&cc=in&_marker=0%3F_marker%3D0&listid={id}'
def samesign(a, b): return a * b > 0 def bisect(func, low, high): 'Find root of continuous function where f(low) and f(high) have opposite signs' assert not samesign(func(low), func(high)) for i in range(54): midpoint = (low + high) / 2.0 if samesign(func(low), func(midpoint)): low = midpoint else: high = midpoint return midpoint def f(x): return x**3 + x - 1 x = bisect(f, 0, 1) print(x, f(x))
def samesign(a, b): return a * b > 0 def bisect(func, low, high): """Find root of continuous function where f(low) and f(high) have opposite signs""" assert not samesign(func(low), func(high)) for i in range(54): midpoint = (low + high) / 2.0 if samesign(func(low), func(midpoint)): low = midpoint else: high = midpoint return midpoint def f(x): return x ** 3 + x - 1 x = bisect(f, 0, 1) print(x, f(x))
i = 1 while i <= 9: j = 1 while j <= i: print("{}x{}={}\t".format(j, i, i * j), end='') j += 1 print() i += 1
i = 1 while i <= 9: j = 1 while j <= i: print('{}x{}={}\t'.format(j, i, i * j), end='') j += 1 print() i += 1
print('Hello my dear') #comments are essential but I am always to lazy print ('what is your name?') myName = input() print('it is nice to meet you,' + myName) print('the length of you name is :') print(len(myName)) print ('what is your age?') myAge = input () print('you will be ' + str(int(myAge) +1) +' in a year')
print('Hello my dear') print('what is your name?') my_name = input() print('it is nice to meet you,' + myName) print('the length of you name is :') print(len(myName)) print('what is your age?') my_age = input() print('you will be ' + str(int(myAge) + 1) + ' in a year')
#encoding:utf-8 subreddit = 'HermitCraft' t_channel = '@r_HermitCraft' def send_post(submission, r2t): return r2t.send_simple(submission, min_upvotes_limit=100)
subreddit = 'HermitCraft' t_channel = '@r_HermitCraft' def send_post(submission, r2t): return r2t.send_simple(submission, min_upvotes_limit=100)
# exc. 7.1.4 def squared_numbers(start, stop): while start <= stop: print(start**2) start += 1 def main(): start = -3 stop = 3 squared_numbers(start, stop) if __name__ == "__main__": main()
def squared_numbers(start, stop): while start <= stop: print(start ** 2) start += 1 def main(): start = -3 stop = 3 squared_numbers(start, stop) if __name__ == '__main__': main()
lado = float(input()) altura = float(input()) numero = int(input()) area_1 = lado * altura area_2 = 0 erro_max = 0 # Fazer o somatorio porposto pelo exercicio for x in range(-50,51): atual = numero + x for j in range (0,atual): area_2 += lado * (altura/(atual)) modulo_dif = abs(area_1 - area_2) # Pegar o maior erro maximo if erro_max < modulo_dif: erro_max = modulo_dif num = atual # resetar o somatorio area_2 = 0 print("n_max = {0:d}\nerro_maximo = {1:.14f}".format(num,erro_max))
lado = float(input()) altura = float(input()) numero = int(input()) area_1 = lado * altura area_2 = 0 erro_max = 0 for x in range(-50, 51): atual = numero + x for j in range(0, atual): area_2 += lado * (altura / atual) modulo_dif = abs(area_1 - area_2) if erro_max < modulo_dif: erro_max = modulo_dif num = atual area_2 = 0 print('n_max = {0:d}\nerro_maximo = {1:.14f}'.format(num, erro_max))
# Important class class ImportantClass: def __init__(self, var): # Instance variable self.var = var # Important function def importantFunction(self, old_var, new_var): return old_var + new_var # Make users happy def makeUsersHappy(self, users): print("Success!")
class Importantclass: def __init__(self, var): self.var = var def important_function(self, old_var, new_var): return old_var + new_var def make_users_happy(self, users): print('Success!')
def en_even(r): return r[0] == "en" and len(r[1]) % 2 == 0 def en_odd(r): return r[0] == "en" and len(r[1]) % 2 == 1 def predict(w): def result(r): return (r[0],r[1], np.dot(w.T, r[2])[0][0], r[3]) return result train = rdd.filter(en_even) test = rdd.filter(en_odd) nxxt = train.map(x_xtranspose) nres = nxxt.reduce(np.add) nxy = train.map(xy_scale) nres2 = nxy.reduce(np.add) nweights = np.dot(np.linalg.inv(nres), nres2.T) # Make predictions on test with our train weights pred = test.map(predict(nweights)) # Because we already filtered by code "en" pred = pred.filter(lambda r: r[1] == "yahoo")
def en_even(r): return r[0] == 'en' and len(r[1]) % 2 == 0 def en_odd(r): return r[0] == 'en' and len(r[1]) % 2 == 1 def predict(w): def result(r): return (r[0], r[1], np.dot(w.T, r[2])[0][0], r[3]) return result train = rdd.filter(en_even) test = rdd.filter(en_odd) nxxt = train.map(x_xtranspose) nres = nxxt.reduce(np.add) nxy = train.map(xy_scale) nres2 = nxy.reduce(np.add) nweights = np.dot(np.linalg.inv(nres), nres2.T) pred = test.map(predict(nweights)) pred = pred.filter(lambda r: r[1] == 'yahoo')
rsa_key_data = [ "9cf7192b51a574d1ad3ccb08ba09b87f228573893eee355529ff243e90fd4b86f79a82097cc7922c0485bed1616b1656a9b0b19ef78ea8ec34c384019adc5d5bf4db2d2a0a2d9cf14277bdcb7056f48b81214e3f7f7742231e29673966f9b1106862112cc798dba8d4a138bb5abfc6d4c12d53a5d39b2f783da916da20852ee139bbafda61d429caf2a4f30847ce7e7ae32ab4061e27dd9e4d00d60910249db8d8559dd85f7ca59659ef400c8f6318700f4e97f0c6f4165de80641490433c88da8682befe68eb311f54af2b07d97ac74edb5399cf054764211694fbb8d1d333f3269f235abe025067f811ff83a2224826219b309ea3e6c968f42b3e52f245dc9", "010001", "b5ab7b159220b18e363258f61ebde08bae83d6ce2dbfe4adc143628c527887acde9de09bf9b49f438019004d71855f30c2d69b6c29bb9882ab641b3387409fe9199464a7faa4b5230c56d9e17cd9ed074bc00180ebed62bae3af28e6ff2ac2654ad968834c5d5c88f8d9d3cc5e167b10453b049d4e454a5761fb0ac717185907", "dd2fffa9814296156a6926cd17b65564187e424dcadce9b032246ad7e46448bb0f9e0ff3c64f987424b1a40bc694e2e9ac4fb1930d163582d7acf20653a1c44b97846c1c5fd8a7b19bb225fb39c30e25410483deaf8c2538d222b748c4d8103b11cec04f666a5c0dbcbf5d5f625f158f65746c3fafe6418145f7cffa5fadeeaf" ]
rsa_key_data = ['9cf7192b51a574d1ad3ccb08ba09b87f228573893eee355529ff243e90fd4b86f79a82097cc7922c0485bed1616b1656a9b0b19ef78ea8ec34c384019adc5d5bf4db2d2a0a2d9cf14277bdcb7056f48b81214e3f7f7742231e29673966f9b1106862112cc798dba8d4a138bb5abfc6d4c12d53a5d39b2f783da916da20852ee139bbafda61d429caf2a4f30847ce7e7ae32ab4061e27dd9e4d00d60910249db8d8559dd85f7ca59659ef400c8f6318700f4e97f0c6f4165de80641490433c88da8682befe68eb311f54af2b07d97ac74edb5399cf054764211694fbb8d1d333f3269f235abe025067f811ff83a2224826219b309ea3e6c968f42b3e52f245dc9', '010001', 'b5ab7b159220b18e363258f61ebde08bae83d6ce2dbfe4adc143628c527887acde9de09bf9b49f438019004d71855f30c2d69b6c29bb9882ab641b3387409fe9199464a7faa4b5230c56d9e17cd9ed074bc00180ebed62bae3af28e6ff2ac2654ad968834c5d5c88f8d9d3cc5e167b10453b049d4e454a5761fb0ac717185907', 'dd2fffa9814296156a6926cd17b65564187e424dcadce9b032246ad7e46448bb0f9e0ff3c64f987424b1a40bc694e2e9ac4fb1930d163582d7acf20653a1c44b97846c1c5fd8a7b19bb225fb39c30e25410483deaf8c2538d222b748c4d8103b11cec04f666a5c0dbcbf5d5f625f158f65746c3fafe6418145f7cffa5fadeeaf']
def main(): data = open("day3/input.txt", "r") data = [line.strip() for line in data.readlines()] tree_counter = 0 x = 0 for line in data: if x >= len(line): x = x % (len(line)) if line[x] == "#": tree_counter += 1 x += 3 print(tree_counter) if __name__ == "__main__": main()
def main(): data = open('day3/input.txt', 'r') data = [line.strip() for line in data.readlines()] tree_counter = 0 x = 0 for line in data: if x >= len(line): x = x % len(line) if line[x] == '#': tree_counter += 1 x += 3 print(tree_counter) if __name__ == '__main__': main()
iterations = 1 generations_list = [500] populations_list = [30] elitism_list = [0.2, 0.8] mutables_list = [1]
iterations = 1 generations_list = [500] populations_list = [30] elitism_list = [0.2, 0.8] mutables_list = [1]
{ 'variables': { 'target_arch%': 'ia32', 'naclversion': '0.4.5' }, 'targets': [ { 'target_name': 'sodium', 'sources': [ 'sodium.cc', ], "dependencies": [ "<(module_root_dir)/deps/libsodium.gyp:libsodium" ], 'include_dirs': [ './deps/libsodium-<(naclversion)/src/libsodium/include' ], 'cflags!': [ '-fno-exceptions' ], } ] }
{'variables': {'target_arch%': 'ia32', 'naclversion': '0.4.5'}, 'targets': [{'target_name': 'sodium', 'sources': ['sodium.cc'], 'dependencies': ['<(module_root_dir)/deps/libsodium.gyp:libsodium'], 'include_dirs': ['./deps/libsodium-<(naclversion)/src/libsodium/include'], 'cflags!': ['-fno-exceptions']}]}
l, r = int(input()), int(input()) / 100 count = 1 result = 0 while True: l = int(l*r) if l <= 5: break result += (2**count)*l count += 1 print(result)
(l, r) = (int(input()), int(input()) / 100) count = 1 result = 0 while True: l = int(l * r) if l <= 5: break result += 2 ** count * l count += 1 print(result)
# Given a collection of numbers that might contain duplicates, return all possible unique permutations. # For example, # [1,1,2] have the following unique permutations: # [1,1,2], [1,2,1], and [2,1,1]. class Solution: # @param {integer[]} nums # @return {integer[][]} def permuteUnique(self, nums): if not nums: return nums res = {(nums[0],)} for i in range(1, len(nums)): tmp = set() while res: base = res.pop() for j in range(len(base)+ 1): tmp.add(tuple(base[:j]) + (nums[i],) + tuple(base[j:])) res = tmp return [ list(t) for t in res ] # dic = {str([nums[0]]):1} # res = [[nums[0]]] # for i in range(1, len(nums)): # for j in range(len(res)): # base = res.pop(0) # dic.pop(str(base)) # for k in range(len(base)+ 1): # tmp = base[:k] + [nums[i]] + base[k:] # if str(tmp) not in dic: # res.append(base[:k] + [nums[i]] + base[k:]) # dic[str(tmp)] = 1 # return res
class Solution: def permute_unique(self, nums): if not nums: return nums res = {(nums[0],)} for i in range(1, len(nums)): tmp = set() while res: base = res.pop() for j in range(len(base) + 1): tmp.add(tuple(base[:j]) + (nums[i],) + tuple(base[j:])) res = tmp return [list(t) for t in res]
class Person: ''' This class represents a person ''' def __init__(self, id, firstname, lastname, dob): self.id = id self.firstname = firstname self.lastname = lastname self.dob = dob def __str__(self): return "University ID Number: " + self.id + "\nName: " + self.firstname + " " + self.lastname def __repr__(self): return self.firstname + " " + self.lastname def get_salary(self): return 0 class Student(Person): ''' This class represents a Student ''' def __init__(self, id, firstname, lastname, dob, start_year): self.start_year = start_year self.courses = [] # invoking the __init__ of the parent class # Person.__init__(self, firstname, lastname, dob) # or better call super() super().__init__(id, firstname, lastname, dob) def add_course(self, course_id): self.courses.append(course_id) def get_courses(): return self.courses def __str__(self): return super().__str__() + ". This student has the following courses on records: " + str(list(self.courses)) # A student has no salary. def get_salary(self): return 0 class Professor(Person): ''' This class represents a Professor in the university system. ''' def __init__(self, id, firstname, lastname, dob, hiring_year, salary): self.hiring_year = hiring_year self.salary = salary self.courses = set() self.research_projects = set() super().__init__(id, firstname, lastname, dob) def __str__(self): return super().__str__() + ". This Professor is the instructor of record of following courses : " + str( list(self.courses)) def add_course(self, course_id): self.courses.add(course_id) def add_courses(self, courses): for course in courses: self.courses.add(course) def get_courses(): return self.courses def get_salary(self): return self.salary class Staff(Person): ''' This class represents a staff member. ''' def __init__(self, id, firstname, lastname, dob, hiring_year, salary): self.hiring_year = hiring_year self.salary = salary super().__init__(id, firstname, lastname, dob) def __str__(self): return super().__str__() + ". This Staff memeber has a salary of " + str(self.salary) def get_salary(self): return self.salary class Teaching_Assistant(Staff, Student): ''' A Teaching Assistant is a student and is a staff member. ''' def __init__(self, id, firstname, lastname, dob, start_year, hiring_year, salary): Student.__init__(self, id, firstname, lastname, dob, start_year) self.hiring_year = hiring_year self.salary = salary # Staff().__init__(self, id, firstname, lastname, dob, hiring_year, salary) def __str__(self): return Student.__str__(self) + Staff.__str__(self)
class Person: """ This class represents a person """ def __init__(self, id, firstname, lastname, dob): self.id = id self.firstname = firstname self.lastname = lastname self.dob = dob def __str__(self): return 'University ID Number: ' + self.id + '\nName: ' + self.firstname + ' ' + self.lastname def __repr__(self): return self.firstname + ' ' + self.lastname def get_salary(self): return 0 class Student(Person): """ This class represents a Student """ def __init__(self, id, firstname, lastname, dob, start_year): self.start_year = start_year self.courses = [] super().__init__(id, firstname, lastname, dob) def add_course(self, course_id): self.courses.append(course_id) def get_courses(): return self.courses def __str__(self): return super().__str__() + '. This student has the following courses on records: ' + str(list(self.courses)) def get_salary(self): return 0 class Professor(Person): """ This class represents a Professor in the university system. """ def __init__(self, id, firstname, lastname, dob, hiring_year, salary): self.hiring_year = hiring_year self.salary = salary self.courses = set() self.research_projects = set() super().__init__(id, firstname, lastname, dob) def __str__(self): return super().__str__() + '. This Professor is the instructor of record of following courses : ' + str(list(self.courses)) def add_course(self, course_id): self.courses.add(course_id) def add_courses(self, courses): for course in courses: self.courses.add(course) def get_courses(): return self.courses def get_salary(self): return self.salary class Staff(Person): """ This class represents a staff member. """ def __init__(self, id, firstname, lastname, dob, hiring_year, salary): self.hiring_year = hiring_year self.salary = salary super().__init__(id, firstname, lastname, dob) def __str__(self): return super().__str__() + '. This Staff memeber has a salary of ' + str(self.salary) def get_salary(self): return self.salary class Teaching_Assistant(Staff, Student): """ A Teaching Assistant is a student and is a staff member. """ def __init__(self, id, firstname, lastname, dob, start_year, hiring_year, salary): Student.__init__(self, id, firstname, lastname, dob, start_year) self.hiring_year = hiring_year self.salary = salary def __str__(self): return Student.__str__(self) + Staff.__str__(self)
## CamelCase Method ## 6 kyu ## https://www.codewars.com//kata/587731fda577b3d1b0001196 def camel_case(string): return ''.join([word.title() for word in string.split()])
def camel_case(string): return ''.join([word.title() for word in string.split()])
# # PySNMP MIB module Juniper-E2-Registry (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Juniper-E2-Registry # Produced by pysmi-0.3.4 at Mon Apr 29 19:51:41 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, ValueRangeConstraint, ValueSizeConstraint, ConstraintsIntersection, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsIntersection", "SingleValueConstraint") juniAdmin, = mibBuilder.importSymbols("Juniper-Registry", "juniAdmin") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") iso, Integer32, Unsigned32, ModuleIdentity, Bits, MibIdentifier, TimeTicks, ObjectIdentity, IpAddress, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, Counter32, Counter64, Gauge32 = mibBuilder.importSymbols("SNMPv2-SMI", "iso", "Integer32", "Unsigned32", "ModuleIdentity", "Bits", "MibIdentifier", "TimeTicks", "ObjectIdentity", "IpAddress", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "Counter32", "Counter64", "Gauge32") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") juniE2Registry = ModuleIdentity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3)) juniE2Registry.setRevisions(('2004-05-19 17:42', '2003-08-18 20:27',)) if mibBuilder.loadTexts: juniE2Registry.setLastUpdated('200405191742Z') if mibBuilder.loadTexts: juniE2Registry.setOrganization('Juniper Networks, Inc.') juniE2EntPhysicalType = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1)) e2Chassis = ObjectIdentity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 1)) if mibBuilder.loadTexts: e2Chassis.setStatus('current') e320Chassis = ObjectIdentity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 1, 1)) if mibBuilder.loadTexts: e320Chassis.setStatus('current') e2FanAssembly = ObjectIdentity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 2)) if mibBuilder.loadTexts: e2FanAssembly.setStatus('current') e320PrimaryFanAssembly = ObjectIdentity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 2, 1)) if mibBuilder.loadTexts: e320PrimaryFanAssembly.setStatus('current') e320AuxiliaryFanAssembly = ObjectIdentity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 2, 2)) if mibBuilder.loadTexts: e320AuxiliaryFanAssembly.setStatus('current') e2PowerInput = ObjectIdentity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 3)) if mibBuilder.loadTexts: e2PowerInput.setStatus('current') e320PowerDistributionModule = ObjectIdentity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 3, 1)) if mibBuilder.loadTexts: e320PowerDistributionModule.setStatus('current') e2Midplane = ObjectIdentity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 4)) if mibBuilder.loadTexts: e2Midplane.setStatus('current') e320Midplane = ObjectIdentity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 4, 1)) if mibBuilder.loadTexts: e320Midplane.setStatus('current') e2SrpModule = ObjectIdentity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 5)) if mibBuilder.loadTexts: e2SrpModule.setStatus('current') e320Srp100Module = ObjectIdentity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 5, 1)) if mibBuilder.loadTexts: e320Srp100Module.setStatus('current') e320Srp320Module = ObjectIdentity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 5, 99)) if mibBuilder.loadTexts: e320Srp320Module.setStatus('current') e2SwitchFabricModule = ObjectIdentity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 6)) if mibBuilder.loadTexts: e2SwitchFabricModule.setStatus('current') e320FabricSlice100Module = ObjectIdentity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 6, 1)) if mibBuilder.loadTexts: e320FabricSlice100Module.setStatus('current') e320FabricSlice320Module = ObjectIdentity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 6, 99)) if mibBuilder.loadTexts: e320FabricSlice320Module.setStatus('current') e2SrpIoa = ObjectIdentity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 7)) if mibBuilder.loadTexts: e2SrpIoa.setStatus('current') e320SrpIoa = ObjectIdentity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 7, 1)) if mibBuilder.loadTexts: e320SrpIoa.setStatus('current') e2ForwardingModule = ObjectIdentity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 8)) if mibBuilder.loadTexts: e2ForwardingModule.setStatus('current') e3204gLeModule = ObjectIdentity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 8, 1)) if mibBuilder.loadTexts: e3204gLeModule.setStatus('current') e320Ge4PortModule = ObjectIdentity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 8, 2)) if mibBuilder.loadTexts: e320Ge4PortModule.setStatus('current') e320Oc48Pos1PortModule = ObjectIdentity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 8, 3)) if mibBuilder.loadTexts: e320Oc48Pos1PortModule.setStatus('current') e320Oc48RPos1PortModule = ObjectIdentity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 8, 4)) if mibBuilder.loadTexts: e320Oc48RPos1PortModule.setStatus('current') e320OcXModule = ObjectIdentity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 8, 5)) if mibBuilder.loadTexts: e320OcXModule.setStatus('current') e320MfgSerdesTestModule = ObjectIdentity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 8, 99)) if mibBuilder.loadTexts: e320MfgSerdesTestModule.setStatus('current') e2ForwardingIoa = ObjectIdentity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 9)) if mibBuilder.loadTexts: e2ForwardingIoa.setStatus('current') e3204GeIoa = ObjectIdentity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 9, 1)) if mibBuilder.loadTexts: e3204GeIoa.setStatus('current') e320Oc48PosIoa = ObjectIdentity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 9, 2)) if mibBuilder.loadTexts: e320Oc48PosIoa.setStatus('current') e320Oc48RPosIoa = ObjectIdentity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 9, 3)) if mibBuilder.loadTexts: e320Oc48RPosIoa.setStatus('current') mibBuilder.exportSymbols("Juniper-E2-Registry", e320PrimaryFanAssembly=e320PrimaryFanAssembly, e320FabricSlice320Module=e320FabricSlice320Module, juniE2Registry=juniE2Registry, e320Midplane=e320Midplane, e2SrpIoa=e2SrpIoa, e320Srp100Module=e320Srp100Module, e2PowerInput=e2PowerInput, e3204GeIoa=e3204GeIoa, e2SwitchFabricModule=e2SwitchFabricModule, e320Oc48Pos1PortModule=e320Oc48Pos1PortModule, e320Srp320Module=e320Srp320Module, e320FabricSlice100Module=e320FabricSlice100Module, e320OcXModule=e320OcXModule, e320SrpIoa=e320SrpIoa, e320AuxiliaryFanAssembly=e320AuxiliaryFanAssembly, PYSNMP_MODULE_ID=juniE2Registry, e320PowerDistributionModule=e320PowerDistributionModule, e2FanAssembly=e2FanAssembly, e320Oc48RPosIoa=e320Oc48RPosIoa, e320Chassis=e320Chassis, e2Chassis=e2Chassis, e320Oc48RPos1PortModule=e320Oc48RPos1PortModule, e2ForwardingModule=e2ForwardingModule, e320MfgSerdesTestModule=e320MfgSerdesTestModule, e2SrpModule=e2SrpModule, e2ForwardingIoa=e2ForwardingIoa, e320Ge4PortModule=e320Ge4PortModule, juniE2EntPhysicalType=juniE2EntPhysicalType, e3204gLeModule=e3204gLeModule, e320Oc48PosIoa=e320Oc48PosIoa, e2Midplane=e2Midplane)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, value_range_constraint, value_size_constraint, constraints_intersection, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ValueRangeConstraint', 'ValueSizeConstraint', 'ConstraintsIntersection', 'SingleValueConstraint') (juni_admin,) = mibBuilder.importSymbols('Juniper-Registry', 'juniAdmin') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (iso, integer32, unsigned32, module_identity, bits, mib_identifier, time_ticks, object_identity, ip_address, mib_scalar, mib_table, mib_table_row, mib_table_column, notification_type, counter32, counter64, gauge32) = mibBuilder.importSymbols('SNMPv2-SMI', 'iso', 'Integer32', 'Unsigned32', 'ModuleIdentity', 'Bits', 'MibIdentifier', 'TimeTicks', 'ObjectIdentity', 'IpAddress', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'NotificationType', 'Counter32', 'Counter64', 'Gauge32') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') juni_e2_registry = module_identity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3)) juniE2Registry.setRevisions(('2004-05-19 17:42', '2003-08-18 20:27')) if mibBuilder.loadTexts: juniE2Registry.setLastUpdated('200405191742Z') if mibBuilder.loadTexts: juniE2Registry.setOrganization('Juniper Networks, Inc.') juni_e2_ent_physical_type = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1)) e2_chassis = object_identity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 1)) if mibBuilder.loadTexts: e2Chassis.setStatus('current') e320_chassis = object_identity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 1, 1)) if mibBuilder.loadTexts: e320Chassis.setStatus('current') e2_fan_assembly = object_identity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 2)) if mibBuilder.loadTexts: e2FanAssembly.setStatus('current') e320_primary_fan_assembly = object_identity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 2, 1)) if mibBuilder.loadTexts: e320PrimaryFanAssembly.setStatus('current') e320_auxiliary_fan_assembly = object_identity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 2, 2)) if mibBuilder.loadTexts: e320AuxiliaryFanAssembly.setStatus('current') e2_power_input = object_identity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 3)) if mibBuilder.loadTexts: e2PowerInput.setStatus('current') e320_power_distribution_module = object_identity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 3, 1)) if mibBuilder.loadTexts: e320PowerDistributionModule.setStatus('current') e2_midplane = object_identity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 4)) if mibBuilder.loadTexts: e2Midplane.setStatus('current') e320_midplane = object_identity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 4, 1)) if mibBuilder.loadTexts: e320Midplane.setStatus('current') e2_srp_module = object_identity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 5)) if mibBuilder.loadTexts: e2SrpModule.setStatus('current') e320_srp100_module = object_identity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 5, 1)) if mibBuilder.loadTexts: e320Srp100Module.setStatus('current') e320_srp320_module = object_identity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 5, 99)) if mibBuilder.loadTexts: e320Srp320Module.setStatus('current') e2_switch_fabric_module = object_identity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 6)) if mibBuilder.loadTexts: e2SwitchFabricModule.setStatus('current') e320_fabric_slice100_module = object_identity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 6, 1)) if mibBuilder.loadTexts: e320FabricSlice100Module.setStatus('current') e320_fabric_slice320_module = object_identity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 6, 99)) if mibBuilder.loadTexts: e320FabricSlice320Module.setStatus('current') e2_srp_ioa = object_identity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 7)) if mibBuilder.loadTexts: e2SrpIoa.setStatus('current') e320_srp_ioa = object_identity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 7, 1)) if mibBuilder.loadTexts: e320SrpIoa.setStatus('current') e2_forwarding_module = object_identity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 8)) if mibBuilder.loadTexts: e2ForwardingModule.setStatus('current') e3204g_le_module = object_identity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 8, 1)) if mibBuilder.loadTexts: e3204gLeModule.setStatus('current') e320_ge4_port_module = object_identity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 8, 2)) if mibBuilder.loadTexts: e320Ge4PortModule.setStatus('current') e320_oc48_pos1_port_module = object_identity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 8, 3)) if mibBuilder.loadTexts: e320Oc48Pos1PortModule.setStatus('current') e320_oc48_r_pos1_port_module = object_identity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 8, 4)) if mibBuilder.loadTexts: e320Oc48RPos1PortModule.setStatus('current') e320_oc_x_module = object_identity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 8, 5)) if mibBuilder.loadTexts: e320OcXModule.setStatus('current') e320_mfg_serdes_test_module = object_identity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 8, 99)) if mibBuilder.loadTexts: e320MfgSerdesTestModule.setStatus('current') e2_forwarding_ioa = object_identity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 9)) if mibBuilder.loadTexts: e2ForwardingIoa.setStatus('current') e3204_ge_ioa = object_identity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 9, 1)) if mibBuilder.loadTexts: e3204GeIoa.setStatus('current') e320_oc48_pos_ioa = object_identity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 9, 2)) if mibBuilder.loadTexts: e320Oc48PosIoa.setStatus('current') e320_oc48_r_pos_ioa = object_identity((1, 3, 6, 1, 4, 1, 4874, 4, 2, 3, 1, 9, 3)) if mibBuilder.loadTexts: e320Oc48RPosIoa.setStatus('current') mibBuilder.exportSymbols('Juniper-E2-Registry', e320PrimaryFanAssembly=e320PrimaryFanAssembly, e320FabricSlice320Module=e320FabricSlice320Module, juniE2Registry=juniE2Registry, e320Midplane=e320Midplane, e2SrpIoa=e2SrpIoa, e320Srp100Module=e320Srp100Module, e2PowerInput=e2PowerInput, e3204GeIoa=e3204GeIoa, e2SwitchFabricModule=e2SwitchFabricModule, e320Oc48Pos1PortModule=e320Oc48Pos1PortModule, e320Srp320Module=e320Srp320Module, e320FabricSlice100Module=e320FabricSlice100Module, e320OcXModule=e320OcXModule, e320SrpIoa=e320SrpIoa, e320AuxiliaryFanAssembly=e320AuxiliaryFanAssembly, PYSNMP_MODULE_ID=juniE2Registry, e320PowerDistributionModule=e320PowerDistributionModule, e2FanAssembly=e2FanAssembly, e320Oc48RPosIoa=e320Oc48RPosIoa, e320Chassis=e320Chassis, e2Chassis=e2Chassis, e320Oc48RPos1PortModule=e320Oc48RPos1PortModule, e2ForwardingModule=e2ForwardingModule, e320MfgSerdesTestModule=e320MfgSerdesTestModule, e2SrpModule=e2SrpModule, e2ForwardingIoa=e2ForwardingIoa, e320Ge4PortModule=e320Ge4PortModule, juniE2EntPhysicalType=juniE2EntPhysicalType, e3204gLeModule=e3204gLeModule, e320Oc48PosIoa=e320Oc48PosIoa, e2Midplane=e2Midplane)
class Solution: def XXX(self, height: List[int]) -> int: left = 0 right = len(height)-1 temp = 0 while left<right: temp = max(temp,min(height[left],height[right])*(right-left)) if height[left] < height[right]: left+=1 else: right-=1 return temp
class Solution: def xxx(self, height: List[int]) -> int: left = 0 right = len(height) - 1 temp = 0 while left < right: temp = max(temp, min(height[left], height[right]) * (right - left)) if height[left] < height[right]: left += 1 else: right -= 1 return temp