content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
#!/bin/env python3 def gift_area(l, w, h): side_a = l*w side_b = w*h side_c = l*h return 2*side_a+2*side_b+2*side_c+min((side_a, side_b, side_c)) def gift_ribbon(l, w, h): side_a = 2*l+2*w side_b = 2*w+2*h side_c = 2*l+2*h ribbon = min((side_a, side_b, side_c)) ribbon += l*w*h return ribbon if __name__ == "__main__": with open("d02.txt") as f: lines = f.readlines() gifts = [] for l in lines: fields = l.split("x") gifts.append([int(f) for f in fields]) area = 0 ribbon = 0 for g in gifts: area += gift_area(g[0], g[1], g[2]) ribbon += gift_ribbon(g[0], g[1], g[2]) print(area) print(ribbon)
def gift_area(l, w, h): side_a = l * w side_b = w * h side_c = l * h return 2 * side_a + 2 * side_b + 2 * side_c + min((side_a, side_b, side_c)) def gift_ribbon(l, w, h): side_a = 2 * l + 2 * w side_b = 2 * w + 2 * h side_c = 2 * l + 2 * h ribbon = min((side_a, side_b, side_c)) ribbon += l * w * h return ribbon if __name__ == '__main__': with open('d02.txt') as f: lines = f.readlines() gifts = [] for l in lines: fields = l.split('x') gifts.append([int(f) for f in fields]) area = 0 ribbon = 0 for g in gifts: area += gift_area(g[0], g[1], g[2]) ribbon += gift_ribbon(g[0], g[1], g[2]) print(area) print(ribbon)
class C: pass def method(x): pass c = C() method(1)
class C: pass def method(x): pass c = c() method(1)
tb = [54, 0,55,54,61, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 66, 0,64,66,61, 0, 0, 0, 0, 0, 0 ,0, 0, 0, 0, 0, 54, 0,55,54,61, 0,66, 0,64] expander = lambda i: [i, 300] if i > 0 else [0,0] tkm = [expander(i) for i in tb] print(tkm)
tb = [54, 0, 55, 54, 61, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 66, 0, 64, 66, 61, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 0, 55, 54, 61, 0, 66, 0, 64] expander = lambda i: [i, 300] if i > 0 else [0, 0] tkm = [expander(i) for i in tb] print(tkm)
if __name__ == '__main__': with open("../R/problem_module.R") as filename: lines = filename.readlines() for line in lines: if "<- function(" in line: function_name = line.split("<-")[0] print(f"### {function_name.strip()}\n") print("#### Main Documentation\n") print("```{r, comment=NA, echo=FALSE}") print(f'tools::Rd2txt(paste0(root, "{function_name.strip()}", ext))\n```\n')
if __name__ == '__main__': with open('../R/problem_module.R') as filename: lines = filename.readlines() for line in lines: if '<- function(' in line: function_name = line.split('<-')[0] print(f'### {function_name.strip()}\n') print('#### Main Documentation\n') print('```{r, comment=NA, echo=FALSE}') print(f'tools::Rd2txt(paste0(root, "{function_name.strip()}", ext))\n```\n')
for t in range(int(input())): word=input() ispalin=True for i in range(int(len(word)/2)): if word[i]=="*" or word[len(word)-1-i]=="*": break elif word[i]!=word[len(word)-1-i]: ispalin=False print(f"#{t+1} Not exist") break else: continue if ispalin: print(f"#{t+1} Exist")
for t in range(int(input())): word = input() ispalin = True for i in range(int(len(word) / 2)): if word[i] == '*' or word[len(word) - 1 - i] == '*': break elif word[i] != word[len(word) - 1 - i]: ispalin = False print(f'#{t + 1} Not exist') break else: continue if ispalin: print(f'#{t + 1} Exist')
''' Program implemented to count number of 1's in its binary number ''' def countSetBits(n): if n == 0: return 0 else: return (n&1) + countSetBits(n>>1) n = int(input()) print(countSetBits(n))
""" Program implemented to count number of 1's in its binary number """ def count_set_bits(n): if n == 0: return 0 else: return (n & 1) + count_set_bits(n >> 1) n = int(input()) print(count_set_bits(n))
#in=42 #golden=8 n = input_int() c = 0 while (n > 1): c = c + 1 if n % 2 == 0: n = n // 2 else: n = 3 * n + 1 print(c)
n = input_int() c = 0 while n > 1: c = c + 1 if n % 2 == 0: n = n // 2 else: n = 3 * n + 1 print(c)
def outer(): a = 0 b = 1 def inner(): print(a) b=4 print(b) # b += 1 # A #b = 4 # B inner() outer() for i in range(10): print(i) print(i)
def outer(): a = 0 b = 1 def inner(): print(a) b = 4 print(b) inner() outer() for i in range(10): print(i) print(i)
class MyClass: count = 0 def __init__(self, val): self.val = self.filterint(val) MyClass.count += 1 @staticmethod def filterint(value): if not isinstance(value, int): print("Entered value is not an INT, value set to 0") return 0 else: return value if __name__ == '__main__': a = MyClass(5) b = MyClass(10) c = MyClass(15) print(a.val) print(b.val) print(c.val) print(a.filterint(100))
class Myclass: count = 0 def __init__(self, val): self.val = self.filterint(val) MyClass.count += 1 @staticmethod def filterint(value): if not isinstance(value, int): print('Entered value is not an INT, value set to 0') return 0 else: return value if __name__ == '__main__': a = my_class(5) b = my_class(10) c = my_class(15) print(a.val) print(b.val) print(c.val) print(a.filterint(100))
# # PySNMP MIB module RETIX-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/RETIX-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:47:44 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") ConstraintsIntersection, ConstraintsUnion, ValueRangeConstraint, SingleValueConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion", "ValueRangeConstraint", "SingleValueConstraint", "ValueSizeConstraint") MibScalar, MibTable, MibTableRow, MibTableColumn = mibBuilder.importSymbols("RFC1212", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") iso, Bits, Unsigned32, ObjectIdentity, MibIdentifier, Gauge32, NotificationType, ModuleIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, enterprises, IpAddress, Counter32, Counter64, Integer32, TimeTicks = mibBuilder.importSymbols("SNMPv2-SMI", "iso", "Bits", "Unsigned32", "ObjectIdentity", "MibIdentifier", "Gauge32", "NotificationType", "ModuleIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "enterprises", "IpAddress", "Counter32", "Counter64", "Integer32", "TimeTicks") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") retix = MibIdentifier((1, 3, 6, 1, 4, 1, 72)) station = MibIdentifier((1, 3, 6, 1, 4, 1, 72, 1)) lapb = MibIdentifier((1, 3, 6, 1, 4, 1, 72, 2)) ieee8023 = MibIdentifier((1, 3, 6, 1, 4, 1, 72, 3)) phySerIf = MibIdentifier((1, 3, 6, 1, 4, 1, 72, 4)) mlink = MibIdentifier((1, 3, 6, 1, 4, 1, 72, 5)) lan = MibIdentifier((1, 3, 6, 1, 4, 1, 72, 6)) bridge = MibIdentifier((1, 3, 6, 1, 4, 1, 72, 7)) product = MibIdentifier((1, 3, 6, 1, 4, 1, 72, 8)) router = MibIdentifier((1, 3, 6, 1, 4, 1, 72, 10)) boot = MibIdentifier((1, 3, 6, 1, 4, 1, 72, 11)) boothelper = MibIdentifier((1, 3, 6, 1, 4, 1, 72, 12)) remote = MibIdentifier((1, 3, 6, 1, 4, 1, 72, 13)) ipx = MibIdentifier((1, 3, 6, 1, 4, 1, 72, 13, 1)) decnet = MibIdentifier((1, 3, 6, 1, 4, 1, 72, 13, 2)) rmtLapb = MibIdentifier((1, 3, 6, 1, 4, 1, 72, 13, 3)) x25 = MibIdentifier((1, 3, 6, 1, 4, 1, 72, 13, 4)) stationTime = MibScalar((1, 3, 6, 1, 4, 1, 72, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(13, 13)).setFixedLength(13)).setMaxAccess("readwrite") if mibBuilder.loadTexts: stationTime.setStatus('mandatory') stationCountResets = MibScalar((1, 3, 6, 1, 4, 1, 72, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: stationCountResets.setStatus('mandatory') freeBufferCount = MibScalar((1, 3, 6, 1, 4, 1, 72, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: freeBufferCount.setStatus('mandatory') freeHeaderCount = MibScalar((1, 3, 6, 1, 4, 1, 72, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: freeHeaderCount.setStatus('mandatory') physBlkSize = MibScalar((1, 3, 6, 1, 4, 1, 72, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(300, 1600))).setMaxAccess("readonly") if mibBuilder.loadTexts: physBlkSize.setStatus('mandatory') newPhysBlkSize = MibScalar((1, 3, 6, 1, 4, 1, 72, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(300, 1600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: newPhysBlkSize.setStatus('mandatory') resetStation = MibScalar((1, 3, 6, 1, 4, 1, 72, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("noAction", 1), ("resetStation", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: resetStation.setStatus('mandatory') initStation = MibScalar((1, 3, 6, 1, 4, 1, 72, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("noAction", 1), ("initialize", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: initStation.setStatus('mandatory') resetStats = MibScalar((1, 3, 6, 1, 4, 1, 72, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("noAction", 1), ("resetStats", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: resetStats.setStatus('mandatory') processorLoading = MibScalar((1, 3, 6, 1, 4, 1, 72, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: processorLoading.setStatus('mandatory') trapDestinationTable = MibIdentifier((1, 3, 6, 1, 4, 1, 72, 1, 11)) trapDestTable = MibTable((1, 3, 6, 1, 4, 1, 72, 1, 11, 1), ) if mibBuilder.loadTexts: trapDestTable.setStatus('mandatory') trapDestEntry = MibTableRow((1, 3, 6, 1, 4, 1, 72, 1, 11, 1, 1), ).setIndexNames((0, "RETIX-MIB", "trapDestEntryIpAddr")) if mibBuilder.loadTexts: trapDestEntry.setStatus('mandatory') trapDestEntryIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 1, 11, 1, 1, 1), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: trapDestEntryIpAddr.setStatus('mandatory') trapDestEntryCommunityName = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 1, 11, 1, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 10))).setMaxAccess("readwrite") if mibBuilder.loadTexts: trapDestEntryCommunityName.setStatus('mandatory') trapDestEntryType = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 1, 11, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("valid", 1), ("invalid", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: trapDestEntryType.setStatus('mandatory') trapDestAction = MibScalar((1, 3, 6, 1, 4, 1, 72, 1, 11, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("noAction", 1), ("clearTable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: trapDestAction.setStatus('mandatory') trapDestPage = MibScalar((1, 3, 6, 1, 4, 1, 72, 1, 11, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(240, 240)).setFixedLength(240)).setMaxAccess("readonly") if mibBuilder.loadTexts: trapDestPage.setStatus('mandatory') passWord = MibScalar((1, 3, 6, 1, 4, 1, 72, 1, 12), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 10))).setMaxAccess("readwrite") if mibBuilder.loadTexts: passWord.setStatus('mandatory') snmpAccessPolicyObject = MibIdentifier((1, 3, 6, 1, 4, 1, 72, 1, 13)) snmpAccessPolicyTable = MibTable((1, 3, 6, 1, 4, 1, 72, 1, 13, 1), ) if mibBuilder.loadTexts: snmpAccessPolicyTable.setStatus('mandatory') snmpAccessPolicyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 72, 1, 13, 1, 1), ).setIndexNames((0, "RETIX-MIB", "accessPolicyIndex")) if mibBuilder.loadTexts: snmpAccessPolicyEntry.setStatus('mandatory') accessPolicyIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 1, 13, 1, 1, 1), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: accessPolicyIndex.setStatus('mandatory') communityName = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 1, 13, 1, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 10))).setMaxAccess("readwrite") if mibBuilder.loadTexts: communityName.setStatus('mandatory') accessMode = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 1, 13, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 3))).setMaxAccess("readwrite") if mibBuilder.loadTexts: accessMode.setStatus('mandatory') snmpAccessPolicyType = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 1, 13, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("valid", 1), ("invalid", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: snmpAccessPolicyType.setStatus('mandatory') snmpAccessPolicyAction = MibScalar((1, 3, 6, 1, 4, 1, 72, 1, 13, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("noAction", 1), ("clearTable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: snmpAccessPolicyAction.setStatus('mandatory') snmpAccessPolicyPage = MibScalar((1, 3, 6, 1, 4, 1, 72, 1, 13, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(256, 256)).setFixedLength(256)).setMaxAccess("readonly") if mibBuilder.loadTexts: snmpAccessPolicyPage.setStatus('mandatory') authenticationTrapStatus = MibScalar((1, 3, 6, 1, 4, 1, 72, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: authenticationTrapStatus.setStatus('mandatory') serialTxQueueSize = MibScalar((1, 3, 6, 1, 4, 1, 72, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 127))).setMaxAccess("readwrite") if mibBuilder.loadTexts: serialTxQueueSize.setStatus('mandatory') internalQueueCurrentLength = MibScalar((1, 3, 6, 1, 4, 1, 72, 1, 16), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: internalQueueCurrentLength.setStatus('mandatory') queueUpperLimit = MibScalar((1, 3, 6, 1, 4, 1, 72, 1, 17), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: queueUpperLimit.setStatus('mandatory') lanQueueSize = MibScalar((1, 3, 6, 1, 4, 1, 72, 1, 18), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lanQueueSize.setStatus('mandatory') lapbNumber = MibScalar((1, 3, 6, 1, 4, 1, 72, 2, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lapbNumber.setStatus('mandatory') lapbTable = MibTable((1, 3, 6, 1, 4, 1, 72, 2, 2), ) if mibBuilder.loadTexts: lapbTable.setStatus('mandatory') lapbEntry = MibTableRow((1, 3, 6, 1, 4, 1, 72, 2, 2, 1), ).setIndexNames((0, "RETIX-MIB", "lapbIndex")) if mibBuilder.loadTexts: lapbEntry.setStatus('mandatory') lapbIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 2, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lapbIndex.setStatus('mandatory') lapbModeT1 = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 2, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readwrite") if mibBuilder.loadTexts: lapbModeT1.setStatus('mandatory') lapbAutoT1value = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 2, 2, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lapbAutoT1value.setStatus('mandatory') lapbManualT1value = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 2, 2, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(10, 5000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: lapbManualT1value.setStatus('mandatory') lapbWindow = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 2, 2, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(7, 127))).setMaxAccess("readonly") if mibBuilder.loadTexts: lapbWindow.setStatus('mandatory') lapbPolarity = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 2, 2, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readonly") if mibBuilder.loadTexts: lapbPolarity.setStatus('mandatory') lapbCountResets = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 2, 2, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lapbCountResets.setStatus('mandatory') lapbCountSentFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 2, 2, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lapbCountSentFrames.setStatus('mandatory') lapbCountRcvFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 2, 2, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lapbCountRcvFrames.setStatus('mandatory') lapbCountSentOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 2, 2, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lapbCountSentOctets.setStatus('mandatory') lapbCountRcvOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 2, 2, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lapbCountRcvOctets.setStatus('mandatory') lapbCountAborts = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 2, 2, 1, 12), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lapbCountAborts.setStatus('mandatory') lapbCountCrcErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 2, 2, 1, 13), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lapbCountCrcErrors.setStatus('mandatory') lapbState = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 2, 2, 1, 14), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lapbState.setStatus('mandatory') lapbLastResetTime = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 2, 2, 1, 15), OctetString().subtype(subtypeSpec=ValueSizeConstraint(13, 13)).setFixedLength(13)).setMaxAccess("readonly") if mibBuilder.loadTexts: lapbLastResetTime.setStatus('mandatory') lapbLastResetReason = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 2, 2, 1, 16), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 8))).setMaxAccess("readonly") if mibBuilder.loadTexts: lapbLastResetReason.setStatus('mandatory') lapbLinkReset = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 2, 2, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("noAction", 1), ("reset", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: lapbLinkReset.setStatus('mandatory') lapbRetryCount = MibScalar((1, 3, 6, 1, 4, 1, 72, 2, 3), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: lapbRetryCount.setStatus('mandatory') ieee8023Number = MibScalar((1, 3, 6, 1, 4, 1, 72, 3, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8023Number.setStatus('mandatory') ieee8023Table = MibTable((1, 3, 6, 1, 4, 1, 72, 3, 2), ) if mibBuilder.loadTexts: ieee8023Table.setStatus('mandatory') ieee8023Entry = MibTableRow((1, 3, 6, 1, 4, 1, 72, 3, 2, 1), ).setIndexNames((0, "RETIX-MIB", "ieee8023Index")) if mibBuilder.loadTexts: ieee8023Entry.setStatus('mandatory') ieee8023Index = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8023Index.setStatus('mandatory') ieee8023FramesTransmittedOks = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8023FramesTransmittedOks.setStatus('mandatory') ieee8023SingleCollisionFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8023SingleCollisionFrames.setStatus('mandatory') ieee8023MultipleCollisionFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8023MultipleCollisionFrames.setStatus('mandatory') ieee8023OctetsTransmittedOks = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8023OctetsTransmittedOks.setStatus('mandatory') ieee8023DeferredTransmissions = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8023DeferredTransmissions.setStatus('mandatory') ieee8023MulticastFramesTransmittedOks = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8023MulticastFramesTransmittedOks.setStatus('mandatory') ieee8023BroadcastFramesTransmittedOks = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8023BroadcastFramesTransmittedOks.setStatus('mandatory') ieee8023LateCollisions = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8023LateCollisions.setStatus('mandatory') ieee8023ExcessiveCollisions = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8023ExcessiveCollisions.setStatus('mandatory') ieee8023InternalMACTransmitErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8023InternalMACTransmitErrors.setStatus('mandatory') ieee8023CarrierSenseErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 12), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8023CarrierSenseErrors.setStatus('mandatory') ieee8023ExcessiveDeferrals = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 13), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8023ExcessiveDeferrals.setStatus('mandatory') ieee8023FramesReceivedOks = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 14), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8023FramesReceivedOks.setStatus('mandatory') ieee8023OctetsReceivedOks = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8023OctetsReceivedOks.setStatus('mandatory') ieee8023MulticastFramesReceivedOks = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8023MulticastFramesReceivedOks.setStatus('mandatory') ieee8023BroadcastFramesReceivedOks = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8023BroadcastFramesReceivedOks.setStatus('mandatory') ieee8023FrameTooLongs = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 18), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8023FrameTooLongs.setStatus('mandatory') ieee8023AlignmentErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 19), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8023AlignmentErrors.setStatus('mandatory') ieee8023FCSErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 20), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8023FCSErrors.setStatus('mandatory') ieee8023inRangeLengthErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 21), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8023inRangeLengthErrors.setStatus('mandatory') ieee8023outOfRangeLengthFields = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 22), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8023outOfRangeLengthFields.setStatus('mandatory') ieee8023InternalMACReceiveErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 23), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8023InternalMACReceiveErrors.setStatus('mandatory') ieee8023InitializeMAC = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 24), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("initialize", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8023InitializeMAC.setStatus('mandatory') ieee8023PromiscuousReceiveStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 25), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8023PromiscuousReceiveStatus.setStatus('mandatory') ieee8023MACSubLayerStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 26), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8023MACSubLayerStatus.setStatus('mandatory') ieee8023TransmitStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 27), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8023TransmitStatus.setStatus('mandatory') ieee8023MulticastReceiveStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 28), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8023MulticastReceiveStatus.setStatus('mandatory') ieee8023MACAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 29), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8023MACAddress.setStatus('mandatory') ieee8023SQETestErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 30), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8023SQETestErrors.setStatus('mandatory') ieee8023NewMACAddress = MibTable((1, 3, 6, 1, 4, 1, 72, 3, 3), ) if mibBuilder.loadTexts: ieee8023NewMACAddress.setStatus('mandatory') ieee8023NewMACAddressEntry = MibTableRow((1, 3, 6, 1, 4, 1, 72, 3, 3, 1), ).setIndexNames((0, "RETIX-MIB", "ieee8023NewMACAddressIndex")) if mibBuilder.loadTexts: ieee8023NewMACAddressEntry.setStatus('mandatory') ieee8023NewMACAddressIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 3, 3, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8023NewMACAddressIndex.setStatus('mandatory') ieee8023NewMACAddressValue = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 3, 3, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8023NewMACAddressValue.setStatus('mandatory') phySerIfNumber = MibScalar((1, 3, 6, 1, 4, 1, 72, 4, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: phySerIfNumber.setStatus('mandatory') phySerIfTable = MibTable((1, 3, 6, 1, 4, 1, 72, 4, 2), ) if mibBuilder.loadTexts: phySerIfTable.setStatus('mandatory') phySerIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 72, 4, 2, 1), ).setIndexNames((0, "RETIX-MIB", "phySerIfIndex")) if mibBuilder.loadTexts: phySerIfEntry.setStatus('mandatory') phySerIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 4, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: phySerIfIndex.setStatus('mandatory') phySerIfInterfaceType = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 4, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("x21dte", 1), ("x21dce", 2), ("rs449", 3), ("g703", 4), ("v35", 5), ("v35btb", 6), ("rs232", 7), ("t1", 8)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: phySerIfInterfaceType.setStatus('mandatory') phySerIfMeasuredSpeed = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 4, 2, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: phySerIfMeasuredSpeed.setStatus('mandatory') phySerIfIsSpeedsettable = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 4, 2, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readonly") if mibBuilder.loadTexts: phySerIfIsSpeedsettable.setStatus('mandatory') phySerIfPortSpeed = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 4, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1200, 2400, 4800, 9600, 19200, 24000, 32000, 48000, 64000, 256000, 512000, 1024000, 2048000))).clone(namedValues=NamedValues(("b1200", 1200), ("b2400", 2400), ("b4800", 4800), ("b9600", 9600), ("b19200", 19200), ("b24000", 24000), ("b32000", 32000), ("b48000", 48000), ("b64000", 64000), ("b256000", 256000), ("b512000", 512000), ("b1024000", 1024000), ("b2048000", 2048000)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: phySerIfPortSpeed.setStatus('mandatory') phySerIfTransitDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 4, 2, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: phySerIfTransitDelay.setStatus('mandatory') phySerIfT1clockSource = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 4, 2, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: phySerIfT1clockSource.setStatus('mandatory') phySerIfT1SlotLvalue = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 4, 2, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 24))).setMaxAccess("readwrite") if mibBuilder.loadTexts: phySerIfT1SlotLvalue.setStatus('mandatory') phySerIfT1SlotHvalue = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 4, 2, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 24))).setMaxAccess("readwrite") if mibBuilder.loadTexts: phySerIfT1SlotHvalue.setStatus('mandatory') phySerIfT1dRatePerChan = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 4, 2, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readwrite") if mibBuilder.loadTexts: phySerIfT1dRatePerChan.setStatus('mandatory') phySerIfT1frameAndCode = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 4, 2, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 3))).setMaxAccess("readwrite") if mibBuilder.loadTexts: phySerIfT1frameAndCode.setStatus('mandatory') phySerIfPartnerAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 4, 2, 1, 12), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 6))).setMaxAccess("readonly") if mibBuilder.loadTexts: phySerIfPartnerAddress.setStatus('mandatory') mlinkNumber = MibScalar((1, 3, 6, 1, 4, 1, 72, 5, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mlinkNumber.setStatus('mandatory') mlinkTable = MibTable((1, 3, 6, 1, 4, 1, 72, 5, 2), ) if mibBuilder.loadTexts: mlinkTable.setStatus('mandatory') mlinkEntry = MibTableRow((1, 3, 6, 1, 4, 1, 72, 5, 2, 1), ).setIndexNames((0, "RETIX-MIB", "mlinkIndex")) if mibBuilder.loadTexts: mlinkEntry.setStatus('mandatory') mlinkIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 5, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mlinkIndex.setStatus('mandatory') mlinkState = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 5, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 3))).setMaxAccess("readonly") if mibBuilder.loadTexts: mlinkState.setStatus('mandatory') mlinkSendSeq = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 5, 2, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mlinkSendSeq.setStatus('mandatory') mlinkRcvSeq = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 5, 2, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mlinkRcvSeq.setStatus('mandatory') mlinkSendUpperEdge = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 5, 2, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mlinkSendUpperEdge.setStatus('mandatory') mlinkRcvUpperEdge = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 5, 2, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mlinkRcvUpperEdge.setStatus('mandatory') mlinkLostFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 5, 2, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mlinkLostFrames.setStatus('mandatory') deletedMlinkFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 5, 2, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: deletedMlinkFrames.setStatus('mandatory') expressQueueCurrentLength = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 5, 2, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: expressQueueCurrentLength.setStatus('mandatory') expressQueueUpperLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 5, 2, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: expressQueueUpperLimit.setStatus('mandatory') hiPriQueueCurrentLength = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 5, 2, 1, 11), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hiPriQueueCurrentLength.setStatus('mandatory') hiPriQueueUpperLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 5, 2, 1, 12), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hiPriQueueUpperLimit.setStatus('mandatory') loPriQueueCurrentLength = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 5, 2, 1, 13), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: loPriQueueCurrentLength.setStatus('mandatory') loPriQueueUpperLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 5, 2, 1, 14), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: loPriQueueUpperLimit.setStatus('mandatory') mlinkWindow = MibScalar((1, 3, 6, 1, 4, 1, 72, 5, 3), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mlinkWindow.setStatus('mandatory') mlinkRxTimeout = MibScalar((1, 3, 6, 1, 4, 1, 72, 5, 4), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mlinkRxTimeout.setStatus('mandatory') lanInterfaceType = MibScalar((1, 3, 6, 1, 4, 1, 72, 6, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("tenBase5", 1), ("oneBase5", 2), ("tenBase2", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: lanInterfaceType.setStatus('mandatory') portNumber = MibScalar((1, 3, 6, 1, 4, 1, 72, 7, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: portNumber.setStatus('mandatory') bridgeStatsTable = MibTable((1, 3, 6, 1, 4, 1, 72, 7, 2), ) if mibBuilder.loadTexts: bridgeStatsTable.setStatus('mandatory') bridgeStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 72, 7, 2, 1), ).setIndexNames((0, "RETIX-MIB", "bridgeStatsIndex")) if mibBuilder.loadTexts: bridgeStatsEntry.setStatus('mandatory') bridgeStatsIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 7, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: bridgeStatsIndex.setStatus('mandatory') averageForwardedFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 7, 2, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: averageForwardedFrames.setStatus('mandatory') maxForwardedFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 7, 2, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: maxForwardedFrames.setStatus('mandatory') averageRejectedFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 7, 2, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: averageRejectedFrames.setStatus('mandatory') maxRejectedFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 7, 2, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: maxRejectedFrames.setStatus('mandatory') lanAccepts = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 7, 2, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lanAccepts.setStatus('mandatory') lanRejects = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 7, 2, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lanRejects.setStatus('mandatory') deletedLanFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 7, 2, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: deletedLanFrames.setStatus('mandatory') stpTable = MibTable((1, 3, 6, 1, 4, 1, 72, 7, 3), ) if mibBuilder.loadTexts: stpTable.setStatus('mandatory') stpEntry = MibTableRow((1, 3, 6, 1, 4, 1, 72, 7, 3, 1), ).setIndexNames((0, "RETIX-MIB", "stpIndex")) if mibBuilder.loadTexts: stpEntry.setStatus('mandatory') stpIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 7, 3, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: stpIndex.setStatus('mandatory') pathCostMode = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 7, 3, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readwrite") if mibBuilder.loadTexts: pathCostMode.setStatus('mandatory') pathCostAutoValue = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 7, 3, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: pathCostAutoValue.setStatus('mandatory') pathCostManualValue = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 7, 3, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: pathCostManualValue.setStatus('mandatory') portSpatState = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 7, 3, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: portSpatState.setStatus('mandatory') portPriorityMode = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 7, 3, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readwrite") if mibBuilder.loadTexts: portPriorityMode.setStatus('mandatory') portPriorityAutoValue = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 7, 3, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: portPriorityAutoValue.setStatus('mandatory') portPriorityManualValue = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 7, 3, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: portPriorityManualValue.setStatus('mandatory') spanningTree = MibScalar((1, 3, 6, 1, 4, 1, 72, 7, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readwrite") if mibBuilder.loadTexts: spanningTree.setStatus('mandatory') spatPriority = MibScalar((1, 3, 6, 1, 4, 1, 72, 7, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: spatPriority.setStatus('mandatory') spatHelloTimer = MibScalar((1, 3, 6, 1, 4, 1, 72, 7, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 10))).setMaxAccess("readwrite") if mibBuilder.loadTexts: spatHelloTimer.setStatus('mandatory') spatResetTimer = MibScalar((1, 3, 6, 1, 4, 1, 72, 7, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1800))).setMaxAccess("readwrite") if mibBuilder.loadTexts: spatResetTimer.setStatus('mandatory') spatVersion = MibScalar((1, 3, 6, 1, 4, 1, 72, 7, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(3, 8))).clone(namedValues=NamedValues(("revisionC", 3), ("revision8", 8)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: spatVersion.setStatus('mandatory') spanningMcastAddr = MibScalar((1, 3, 6, 1, 4, 1, 72, 7, 9), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readwrite") if mibBuilder.loadTexts: spanningMcastAddr.setStatus('mandatory') operatingMode = MibScalar((1, 3, 6, 1, 4, 1, 72, 7, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readwrite") if mibBuilder.loadTexts: operatingMode.setStatus('mandatory') preconfSourceFilter = MibScalar((1, 3, 6, 1, 4, 1, 72, 7, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readwrite") if mibBuilder.loadTexts: preconfSourceFilter.setStatus('mandatory') typeFilter = MibScalar((1, 3, 6, 1, 4, 1, 72, 7, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readwrite") if mibBuilder.loadTexts: typeFilter.setStatus('mandatory') typePrioritisation = MibScalar((1, 3, 6, 1, 4, 1, 72, 7, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readwrite") if mibBuilder.loadTexts: typePrioritisation.setStatus('mandatory') dynamicLearningInLM = MibScalar((1, 3, 6, 1, 4, 1, 72, 7, 14), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readwrite") if mibBuilder.loadTexts: dynamicLearningInLM.setStatus('mandatory') forgetAddressTimer = MibScalar((1, 3, 6, 1, 4, 1, 72, 7, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(24, 1000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: forgetAddressTimer.setStatus('mandatory') deleteAddressTimer = MibScalar((1, 3, 6, 1, 4, 1, 72, 7, 16), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 20000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: deleteAddressTimer.setStatus('mandatory') multicastDisposition = MibScalar((1, 3, 6, 1, 4, 1, 72, 7, 17), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readwrite") if mibBuilder.loadTexts: multicastDisposition.setStatus('mandatory') filterMatches = MibScalar((1, 3, 6, 1, 4, 1, 72, 7, 18), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readwrite") if mibBuilder.loadTexts: filterMatches.setStatus('mandatory') ieeeFormatFilter = MibScalar((1, 3, 6, 1, 4, 1, 72, 7, 19), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieeeFormatFilter.setStatus('mandatory') priorityMatches = MibScalar((1, 3, 6, 1, 4, 1, 72, 7, 20), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readwrite") if mibBuilder.loadTexts: priorityMatches.setStatus('mandatory') ieeeFormatPriority = MibScalar((1, 3, 6, 1, 4, 1, 72, 7, 21), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieeeFormatPriority.setStatus('mandatory') averagePeriod = MibScalar((1, 3, 6, 1, 4, 1, 72, 7, 22), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: averagePeriod.setStatus('mandatory') triangulation = MibScalar((1, 3, 6, 1, 4, 1, 72, 7, 23), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readwrite") if mibBuilder.loadTexts: triangulation.setStatus('mandatory') adaptiveRouting = MibScalar((1, 3, 6, 1, 4, 1, 72, 7, 24), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readwrite") if mibBuilder.loadTexts: adaptiveRouting.setStatus('mandatory') adaptiveMcastAddr = MibScalar((1, 3, 6, 1, 4, 1, 72, 7, 25), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readwrite") if mibBuilder.loadTexts: adaptiveMcastAddr.setStatus('mandatory') arAddressInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 72, 7, 26)) standbyRemote = MibScalar((1, 3, 6, 1, 4, 1, 72, 7, 26, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: standbyRemote.setStatus('mandatory') standbyLocal = MibScalar((1, 3, 6, 1, 4, 1, 72, 7, 26, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: standbyLocal.setStatus('mandatory') activeRemote = MibScalar((1, 3, 6, 1, 4, 1, 72, 7, 26, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: activeRemote.setStatus('mandatory') activeLocal = MibScalar((1, 3, 6, 1, 4, 1, 72, 7, 26, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: activeLocal.setStatus('mandatory') maxSerialLoading = MibScalar((1, 3, 6, 1, 4, 1, 72, 7, 27), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: maxSerialLoading.setStatus('mandatory') serialLoadPeriod = MibScalar((1, 3, 6, 1, 4, 1, 72, 7, 28), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(10, 20, 30, 40, 50, 60))).clone(namedValues=NamedValues(("ten", 10), ("twenty", 20), ("thirty", 30), ("forty", 40), ("fifty", 50), ("sixty", 60)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: serialLoadPeriod.setStatus('mandatory') serialLoading = MibScalar((1, 3, 6, 1, 4, 1, 72, 7, 29), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: serialLoading.setStatus('mandatory') filteringDataBaseTable = MibIdentifier((1, 3, 6, 1, 4, 1, 72, 7, 30)) filteringDbTable = MibTable((1, 3, 6, 1, 4, 1, 72, 7, 30, 1), ) if mibBuilder.loadTexts: filteringDbTable.setStatus('mandatory') filteringDbEntry = MibTableRow((1, 3, 6, 1, 4, 1, 72, 7, 30, 1, 1), ).setIndexNames((0, "RETIX-MIB", "filteringDbMacAddress")) if mibBuilder.loadTexts: filteringDbEntry.setStatus('mandatory') filteringDbMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 7, 30, 1, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readwrite") if mibBuilder.loadTexts: filteringDbMacAddress.setStatus('mandatory') filteringDbDisposition = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 7, 30, 1, 1, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: filteringDbDisposition.setStatus('mandatory') filteringDbStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 7, 30, 1, 1, 3), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: filteringDbStatus.setStatus('mandatory') filteringDbType = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 7, 30, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("valid", 1), ("invalid", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: filteringDbType.setStatus('mandatory') filteringDbAction = MibScalar((1, 3, 6, 1, 4, 1, 72, 7, 30, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("noAction", 1), ("clearTable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: filteringDbAction.setStatus('mandatory') priorityTable = MibIdentifier((1, 3, 6, 1, 4, 1, 72, 7, 31)) prioritySubTable = MibTable((1, 3, 6, 1, 4, 1, 72, 7, 31, 1), ) if mibBuilder.loadTexts: prioritySubTable.setStatus('mandatory') priorityTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 72, 7, 31, 1, 1), ).setIndexNames((0, "RETIX-MIB", "priorityTableEntryValue")) if mibBuilder.loadTexts: priorityTableEntry.setStatus('mandatory') priorityTableEntryValue = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 7, 31, 1, 1, 1), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: priorityTableEntryValue.setStatus('mandatory') priorityTableEntryType = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 7, 31, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("valid", 1), ("invalid", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: priorityTableEntryType.setStatus('mandatory') priorityTableAction = MibScalar((1, 3, 6, 1, 4, 1, 72, 7, 31, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("noAction", 1), ("clearTable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: priorityTableAction.setStatus('mandatory') priorityPage = MibScalar((1, 3, 6, 1, 4, 1, 72, 7, 31, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(16, 16)).setFixedLength(16)).setMaxAccess("readwrite") if mibBuilder.loadTexts: priorityPage.setStatus('optional') filterTable = MibIdentifier((1, 3, 6, 1, 4, 1, 72, 7, 32)) filterSubTable = MibTable((1, 3, 6, 1, 4, 1, 72, 7, 32, 1), ) if mibBuilder.loadTexts: filterSubTable.setStatus('mandatory') filterTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 72, 7, 32, 1, 1), ).setIndexNames((0, "RETIX-MIB", "filterTableEntryValue")) if mibBuilder.loadTexts: filterTableEntry.setStatus('mandatory') filterTableEntryValue = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 7, 32, 1, 1, 1), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: filterTableEntryValue.setStatus('mandatory') filterTableEntryType = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 7, 32, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("valid", 1), ("invalid", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: filterTableEntryType.setStatus('mandatory') filterTableAction = MibScalar((1, 3, 6, 1, 4, 1, 72, 7, 32, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("noAction", 1), ("clearTable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: filterTableAction.setStatus('mandatory') filterPage = MibScalar((1, 3, 6, 1, 4, 1, 72, 7, 32, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(16, 16)).setFixedLength(16)).setMaxAccess("readwrite") if mibBuilder.loadTexts: filterPage.setStatus('mandatory') ipRSTable = MibTable((1, 3, 6, 1, 4, 1, 72, 10, 1), ) if mibBuilder.loadTexts: ipRSTable.setStatus('mandatory') ipRSEntry = MibTableRow((1, 3, 6, 1, 4, 1, 72, 10, 1, 1), ).setIndexNames((0, "RETIX-MIB", "ipRSIndex")) if mibBuilder.loadTexts: ipRSEntry.setStatus('mandatory') ipRSIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 10, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipRSIndex.setStatus('mandatory') gwProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 10, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 8))).clone(namedValues=NamedValues(("none", 1), ("rip", 8)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: gwProtocol.setStatus('mandatory') ifStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 10, 1, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ifStatus.setStatus('mandatory') receivedTotalDgms = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 10, 1, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: receivedTotalDgms.setStatus('mandatory') transmittedTotalDgms = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 10, 1, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: transmittedTotalDgms.setStatus('mandatory') outDiscardsTotalDgms = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 10, 1, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: outDiscardsTotalDgms.setStatus('mandatory') noRouteTotalDgms = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 10, 1, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: noRouteTotalDgms.setStatus('mandatory') icmpRSTable = MibIdentifier((1, 3, 6, 1, 4, 1, 72, 10, 2)) destUnreachLastRx = MibScalar((1, 3, 6, 1, 4, 1, 72, 10, 2, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(13, 13)).setFixedLength(13)).setMaxAccess("readonly") if mibBuilder.loadTexts: destUnreachLastRx.setStatus('mandatory') destUnreachLastTx = MibScalar((1, 3, 6, 1, 4, 1, 72, 10, 2, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(13, 13)).setFixedLength(13)).setMaxAccess("readonly") if mibBuilder.loadTexts: destUnreachLastTx.setStatus('mandatory') sourceQuenchLastRx = MibScalar((1, 3, 6, 1, 4, 1, 72, 10, 2, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(13, 13)).setFixedLength(13)).setMaxAccess("readonly") if mibBuilder.loadTexts: sourceQuenchLastRx.setStatus('mandatory') sourceQuenchLastTx = MibScalar((1, 3, 6, 1, 4, 1, 72, 10, 2, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(13, 13)).setFixedLength(13)).setMaxAccess("readonly") if mibBuilder.loadTexts: sourceQuenchLastTx.setStatus('mandatory') redirectsLastRx = MibScalar((1, 3, 6, 1, 4, 1, 72, 10, 2, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(13, 13)).setFixedLength(13)).setMaxAccess("readonly") if mibBuilder.loadTexts: redirectsLastRx.setStatus('mandatory') redirectsLastTx = MibScalar((1, 3, 6, 1, 4, 1, 72, 10, 2, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(13, 13)).setFixedLength(13)).setMaxAccess("readonly") if mibBuilder.loadTexts: redirectsLastTx.setStatus('mandatory') echoRequestsLastRx = MibScalar((1, 3, 6, 1, 4, 1, 72, 10, 2, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(13, 13)).setFixedLength(13)).setMaxAccess("readonly") if mibBuilder.loadTexts: echoRequestsLastRx.setStatus('mandatory') echoRequestsLastTx = MibScalar((1, 3, 6, 1, 4, 1, 72, 10, 2, 8), OctetString().subtype(subtypeSpec=ValueSizeConstraint(13, 13)).setFixedLength(13)).setMaxAccess("readonly") if mibBuilder.loadTexts: echoRequestsLastTx.setStatus('mandatory') timeExceededLastRx = MibScalar((1, 3, 6, 1, 4, 1, 72, 10, 2, 9), OctetString().subtype(subtypeSpec=ValueSizeConstraint(13, 13)).setFixedLength(13)).setMaxAccess("readonly") if mibBuilder.loadTexts: timeExceededLastRx.setStatus('mandatory') timeExceededLastTx = MibScalar((1, 3, 6, 1, 4, 1, 72, 10, 2, 10), OctetString().subtype(subtypeSpec=ValueSizeConstraint(13, 13)).setFixedLength(13)).setMaxAccess("readonly") if mibBuilder.loadTexts: timeExceededLastTx.setStatus('mandatory') paramProbLastRx = MibScalar((1, 3, 6, 1, 4, 1, 72, 10, 2, 11), OctetString().subtype(subtypeSpec=ValueSizeConstraint(13, 13)).setFixedLength(13)).setMaxAccess("readonly") if mibBuilder.loadTexts: paramProbLastRx.setStatus('mandatory') paramProbLastTx = MibScalar((1, 3, 6, 1, 4, 1, 72, 10, 2, 12), OctetString().subtype(subtypeSpec=ValueSizeConstraint(13, 13)).setFixedLength(13)).setMaxAccess("readonly") if mibBuilder.loadTexts: paramProbLastTx.setStatus('mandatory') ipRouting = MibScalar((1, 3, 6, 1, 4, 1, 72, 10, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipRouting.setStatus('mandatory') bootpRetryCount = MibScalar((1, 3, 6, 1, 4, 1, 72, 11, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: bootpRetryCount.setStatus('mandatory') downloadRetryCount = MibScalar((1, 3, 6, 1, 4, 1, 72, 11, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: downloadRetryCount.setStatus('mandatory') downloadFilename = MibScalar((1, 3, 6, 1, 4, 1, 72, 11, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readwrite") if mibBuilder.loadTexts: downloadFilename.setStatus('mandatory') bootserverIpAddress = MibScalar((1, 3, 6, 1, 4, 1, 72, 11, 4), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: bootserverIpAddress.setStatus('mandatory') loadserverIpAddress = MibScalar((1, 3, 6, 1, 4, 1, 72, 11, 5), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: loadserverIpAddress.setStatus('mandatory') uniqueBroadcastAddress = MibScalar((1, 3, 6, 1, 4, 1, 72, 11, 6), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: uniqueBroadcastAddress.setStatus('mandatory') tftpRetryCount = MibScalar((1, 3, 6, 1, 4, 1, 72, 11, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: tftpRetryCount.setStatus('mandatory') tftpRetryPeriod = MibScalar((1, 3, 6, 1, 4, 1, 72, 11, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: tftpRetryPeriod.setStatus('mandatory') initiateBootpDll = MibScalar((1, 3, 6, 1, 4, 1, 72, 11, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("noAction", 1), ("initiateBoot", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: initiateBootpDll.setStatus('mandatory') boothelperEnabled = MibScalar((1, 3, 6, 1, 4, 1, 72, 12, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readwrite") if mibBuilder.loadTexts: boothelperEnabled.setStatus('mandatory') boothelperHopsLimit = MibScalar((1, 3, 6, 1, 4, 1, 72, 12, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: boothelperHopsLimit.setStatus('mandatory') boothelperForwardingAddress = MibScalar((1, 3, 6, 1, 4, 1, 72, 12, 3), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: boothelperForwardingAddress.setStatus('mandatory') ipxRouting = MibScalar((1, 3, 6, 1, 4, 1, 72, 13, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipxRouting.setStatus('mandatory') ipxIfNumber = MibScalar((1, 3, 6, 1, 4, 1, 72, 13, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipxIfNumber.setStatus('mandatory') ipxIfTable = MibTable((1, 3, 6, 1, 4, 1, 72, 13, 1, 3), ) if mibBuilder.loadTexts: ipxIfTable.setStatus('mandatory') ipxIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 72, 13, 1, 3, 1), ).setIndexNames((0, "RETIX-MIB", "ipxIfIndex")) if mibBuilder.loadTexts: ipxIfEntry.setStatus('mandatory') ipxIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 1, 3, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipxIfIndex.setStatus('mandatory') ipxIfNwkNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 1, 3, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(8, 8)).setFixedLength(8)).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipxIfNwkNumber.setStatus('mandatory') ipxIfIPXAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 1, 3, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(26, 26)).setFixedLength(26)).setMaxAccess("readonly") if mibBuilder.loadTexts: ipxIfIPXAddress.setStatus('mandatory') ipxIfEncapsulation = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 1, 3, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 6))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipxIfEncapsulation.setStatus('mandatory') ipxIfDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 1, 3, 1, 5), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipxIfDelay.setStatus('mandatory') ipxRoutingTable = MibTable((1, 3, 6, 1, 4, 1, 72, 13, 1, 4), ) if mibBuilder.loadTexts: ipxRoutingTable.setStatus('mandatory') ipxRITEntry = MibTableRow((1, 3, 6, 1, 4, 1, 72, 13, 1, 4, 1), ).setIndexNames((0, "RETIX-MIB", "ipxRITDestNwkNumber")) if mibBuilder.loadTexts: ipxRITEntry.setStatus('mandatory') ipxRITDestNwkNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 1, 4, 1, 1), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipxRITDestNwkNumber.setStatus('mandatory') ipxRITGwyHostAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 1, 4, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(10, 10)).setFixedLength(10)).setMaxAccess("readonly") if mibBuilder.loadTexts: ipxRITGwyHostAddress.setStatus('mandatory') ipxRITHopCount = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 1, 4, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipxRITHopCount.setStatus('mandatory') ipxRITDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 1, 4, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipxRITDelay.setStatus('mandatory') ipxRITInterface = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 1, 4, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipxRITInterface.setStatus('mandatory') ipxRITDirectConnect = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 1, 4, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipxRITDirectConnect.setStatus('mandatory') ipxSAPBinderyTable = MibTable((1, 3, 6, 1, 4, 1, 72, 13, 1, 5), ) if mibBuilder.loadTexts: ipxSAPBinderyTable.setStatus('mandatory') ipxSAPBinderyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 72, 13, 1, 5, 1), ).setIndexNames((0, "RETIX-MIB", "ipxSAPBinderyType"), (0, "RETIX-MIB", "ipxSAPBinderyServerIPXAddress")) if mibBuilder.loadTexts: ipxSAPBinderyEntry.setStatus('mandatory') ipxSAPBinderyType = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 1, 5, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 36, 71, 65535))).clone(namedValues=NamedValues(("user", 1), ("userGroup", 2), ("printQueue", 3), ("fileServer", 4), ("jobServer", 5), ("gateway", 6), ("printServer", 7), ("archiveQueue", 8), ("archiveServer", 9), ("jobQueue", 10), ("administration", 11), ("remoteBridgeServer", 36), ("advertizingPrintServer", 71), ("wild", 65535)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ipxSAPBinderyType.setStatus('mandatory') ipxSAPBinderyServerIPXAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 1, 5, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(26, 26)).setFixedLength(26)).setMaxAccess("readonly") if mibBuilder.loadTexts: ipxSAPBinderyServerIPXAddress.setStatus('mandatory') ipxSAPBinderyServerName = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 1, 5, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 48))).setMaxAccess("readonly") if mibBuilder.loadTexts: ipxSAPBinderyServerName.setStatus('mandatory') ipxSAPBinderyHopCount = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 1, 5, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipxSAPBinderyHopCount.setStatus('mandatory') ipxSAPBinderySocket = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 1, 5, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipxSAPBinderySocket.setStatus('mandatory') ipxReceivedDgms = MibScalar((1, 3, 6, 1, 4, 1, 72, 13, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipxReceivedDgms.setStatus('mandatory') ipxTransmittedDgms = MibScalar((1, 3, 6, 1, 4, 1, 72, 13, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipxTransmittedDgms.setStatus('mandatory') ipxNotRoutedRxDgms = MibScalar((1, 3, 6, 1, 4, 1, 72, 13, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipxNotRoutedRxDgms.setStatus('mandatory') ipxForwardedDgms = MibScalar((1, 3, 6, 1, 4, 1, 72, 13, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipxForwardedDgms.setStatus('mandatory') ipxInDelivers = MibScalar((1, 3, 6, 1, 4, 1, 72, 13, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipxInDelivers.setStatus('mandatory') ipxInHdrErrors = MibScalar((1, 3, 6, 1, 4, 1, 72, 13, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipxInHdrErrors.setStatus('mandatory') ipxAccessViolations = MibScalar((1, 3, 6, 1, 4, 1, 72, 13, 1, 12), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipxAccessViolations.setStatus('mandatory') ipxInDiscards = MibScalar((1, 3, 6, 1, 4, 1, 72, 13, 1, 13), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipxInDiscards.setStatus('mandatory') ipxOutDiscards = MibScalar((1, 3, 6, 1, 4, 1, 72, 13, 1, 14), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipxOutDiscards.setStatus('mandatory') ipxOtherDiscards = MibScalar((1, 3, 6, 1, 4, 1, 72, 13, 1, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipxOtherDiscards.setStatus('mandatory') dcntRouting = MibScalar((1, 3, 6, 1, 4, 1, 72, 13, 2, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readwrite") if mibBuilder.loadTexts: dcntRouting.setStatus('mandatory') dcntIfNumber = MibScalar((1, 3, 6, 1, 4, 1, 72, 13, 2, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: dcntIfNumber.setStatus('mandatory') dcntIfTable = MibTable((1, 3, 6, 1, 4, 1, 72, 13, 2, 3), ) if mibBuilder.loadTexts: dcntIfTable.setStatus('mandatory') dcntIfTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 72, 13, 2, 3, 1), ).setIndexNames((0, "RETIX-MIB", "dcntIfIndex")) if mibBuilder.loadTexts: dcntIfTableEntry.setStatus('mandatory') dcntIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 2, 3, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: dcntIfIndex.setStatus('mandatory') dcntIfCost = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 2, 3, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1023))).setMaxAccess("readwrite") if mibBuilder.loadTexts: dcntIfCost.setStatus('mandatory') dcntIfRtrPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 2, 3, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 127))).setMaxAccess("readwrite") if mibBuilder.loadTexts: dcntIfRtrPriority.setStatus('mandatory') dcntIfDesgntdRtr = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 2, 3, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readonly") if mibBuilder.loadTexts: dcntIfDesgntdRtr.setStatus('mandatory') dcntIfHelloTimerBCT3 = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 2, 3, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 8191))).setMaxAccess("readwrite") if mibBuilder.loadTexts: dcntIfHelloTimerBCT3.setStatus('mandatory') dcntRoutingTable = MibTable((1, 3, 6, 1, 4, 1, 72, 13, 2, 4), ) if mibBuilder.loadTexts: dcntRoutingTable.setStatus('mandatory') dcntRITEntry = MibTableRow((1, 3, 6, 1, 4, 1, 72, 13, 2, 4, 1), ).setIndexNames((0, "RETIX-MIB", "dcntRITDestNode")) if mibBuilder.loadTexts: dcntRITEntry.setStatus('mandatory') dcntRITDestNode = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 2, 4, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: dcntRITDestNode.setStatus('mandatory') dcntRITNextHop = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 2, 4, 1, 2), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: dcntRITNextHop.setStatus('mandatory') dcntRITCost = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 2, 4, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: dcntRITCost.setStatus('mandatory') dcntRITHops = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 2, 4, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: dcntRITHops.setStatus('mandatory') dcntRITInterface = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 2, 4, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: dcntRITInterface.setStatus('mandatory') dcntAreaRoutingTable = MibTable((1, 3, 6, 1, 4, 1, 72, 13, 2, 5), ) if mibBuilder.loadTexts: dcntAreaRoutingTable.setStatus('mandatory') dcntAreaRITEntry = MibTableRow((1, 3, 6, 1, 4, 1, 72, 13, 2, 5, 1), ).setIndexNames((0, "RETIX-MIB", "dcntAreaRITDestArea")) if mibBuilder.loadTexts: dcntAreaRITEntry.setStatus('mandatory') dcntAreaRITDestArea = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 2, 5, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: dcntAreaRITDestArea.setStatus('mandatory') dcntAreaRITNextHop = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 2, 5, 1, 2), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: dcntAreaRITNextHop.setStatus('mandatory') dcntAreaRITCost = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 2, 5, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: dcntAreaRITCost.setStatus('mandatory') dcntAreaRITHops = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 2, 5, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: dcntAreaRITHops.setStatus('mandatory') dcntAreaRITInterface = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 2, 5, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: dcntAreaRITInterface.setStatus('mandatory') dcntNodeAddress = MibScalar((1, 3, 6, 1, 4, 1, 72, 13, 2, 6), OctetString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: dcntNodeAddress.setStatus('mandatory') dcntInterAreaMaxCost = MibScalar((1, 3, 6, 1, 4, 1, 72, 13, 2, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1023))).setMaxAccess("readwrite") if mibBuilder.loadTexts: dcntInterAreaMaxCost.setStatus('mandatory') dcntInterAreaMaxHops = MibScalar((1, 3, 6, 1, 4, 1, 72, 13, 2, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1023))).setMaxAccess("readwrite") if mibBuilder.loadTexts: dcntInterAreaMaxHops.setStatus('mandatory') dcntIntraAreaMaxCost = MibScalar((1, 3, 6, 1, 4, 1, 72, 13, 2, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1023))).setMaxAccess("readwrite") if mibBuilder.loadTexts: dcntIntraAreaMaxCost.setStatus('mandatory') dcntIntraAreaMaxHops = MibScalar((1, 3, 6, 1, 4, 1, 72, 13, 2, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1023))).setMaxAccess("readwrite") if mibBuilder.loadTexts: dcntIntraAreaMaxHops.setStatus('mandatory') dcntMaxVisits = MibScalar((1, 3, 6, 1, 4, 1, 72, 13, 2, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 63))).setMaxAccess("readwrite") if mibBuilder.loadTexts: dcntMaxVisits.setStatus('mandatory') dcntRtngMsgTimerBCT1 = MibScalar((1, 3, 6, 1, 4, 1, 72, 13, 2, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(5, 30))).setMaxAccess("readwrite") if mibBuilder.loadTexts: dcntRtngMsgTimerBCT1.setStatus('mandatory') dcntRateControlFreqTimerT2 = MibScalar((1, 3, 6, 1, 4, 1, 72, 13, 2, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 5))).setMaxAccess("readwrite") if mibBuilder.loadTexts: dcntRateControlFreqTimerT2.setStatus('mandatory') dcntReveivedDgms = MibScalar((1, 3, 6, 1, 4, 1, 72, 13, 2, 14), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: dcntReveivedDgms.setStatus('mandatory') dcntForwardedDgms = MibScalar((1, 3, 6, 1, 4, 1, 72, 13, 2, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: dcntForwardedDgms.setStatus('mandatory') dcntOutRequestedDgms = MibScalar((1, 3, 6, 1, 4, 1, 72, 13, 2, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: dcntOutRequestedDgms.setStatus('mandatory') dcntInDiscards = MibScalar((1, 3, 6, 1, 4, 1, 72, 13, 2, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: dcntInDiscards.setStatus('mandatory') dcntOutDiscards = MibScalar((1, 3, 6, 1, 4, 1, 72, 13, 2, 18), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: dcntOutDiscards.setStatus('mandatory') dcntNoRoutes = MibScalar((1, 3, 6, 1, 4, 1, 72, 13, 2, 19), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: dcntNoRoutes.setStatus('mandatory') dcntInHdrErrors = MibScalar((1, 3, 6, 1, 4, 1, 72, 13, 2, 20), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: dcntInHdrErrors.setStatus('mandatory') rmtLapbConfigTable = MibTable((1, 3, 6, 1, 4, 1, 72, 13, 3, 1), ) if mibBuilder.loadTexts: rmtLapbConfigTable.setStatus('mandatory') rmtLapbCTEntry = MibTableRow((1, 3, 6, 1, 4, 1, 72, 13, 3, 1, 1), ).setIndexNames((0, "RETIX-MIB", "rmtLapbCTIndex")) if mibBuilder.loadTexts: rmtLapbCTEntry.setStatus('mandatory') rmtLapbCTIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 3, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rmtLapbCTIndex.setStatus('mandatory') rmtLapbCTLinkAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 3, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readwrite") if mibBuilder.loadTexts: rmtLapbCTLinkAddr.setStatus('mandatory') rmtLapbCTExtSeqNumbering = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 3, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readwrite") if mibBuilder.loadTexts: rmtLapbCTExtSeqNumbering.setStatus('mandatory') rmtLapbCTWindow = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 3, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 127))).setMaxAccess("readwrite") if mibBuilder.loadTexts: rmtLapbCTWindow.setStatus('mandatory') rmtLapbCTModeT1 = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 3, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readwrite") if mibBuilder.loadTexts: rmtLapbCTModeT1.setStatus('mandatory') rmtLapbCTManualT1Value = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 3, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(10, 5000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: rmtLapbCTManualT1Value.setStatus('mandatory') rmtLapbCTT3LinkIdleTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 3, 1, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: rmtLapbCTT3LinkIdleTimer.setStatus('mandatory') rmtLapbCTN2RetryCount = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 3, 1, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: rmtLapbCTN2RetryCount.setStatus('mandatory') rmtLapbCTLinkReset = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 3, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("noAction", 1), ("resetLink", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: rmtLapbCTLinkReset.setStatus('mandatory') rmtLapbCTX25PortLineSpeed = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 3, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1200, 2400, 4800, 9600, 19200, 32000, 48000, 64000))).clone(namedValues=NamedValues(("b1200", 1200), ("b2400", 2400), ("b4800", 4800), ("b9600", 9600), ("b19200", 19200), ("b32000", 32000), ("b48000", 48000), ("b64000", 64000)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: rmtLapbCTX25PortLineSpeed.setStatus('mandatory') rmtLapbCTInitLinkConnect = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 3, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("noAction", 1), ("connect", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: rmtLapbCTInitLinkConnect.setStatus('mandatory') rmtLapbStatsTable = MibTable((1, 3, 6, 1, 4, 1, 72, 13, 3, 2), ) if mibBuilder.loadTexts: rmtLapbStatsTable.setStatus('mandatory') rmtLapbSTEntry = MibTableRow((1, 3, 6, 1, 4, 1, 72, 13, 3, 2, 1), ).setIndexNames((0, "RETIX-MIB", "rmtLapbSTIndex")) if mibBuilder.loadTexts: rmtLapbSTEntry.setStatus('mandatory') rmtLapbSTIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 3, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rmtLapbSTIndex.setStatus('mandatory') rmtLapbSTState = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 3, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 3))).setMaxAccess("readonly") if mibBuilder.loadTexts: rmtLapbSTState.setStatus('mandatory') rmtLapbSTAutoT1value = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 3, 2, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rmtLapbSTAutoT1value.setStatus('mandatory') rmtLapbSTLastResetTime = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 3, 2, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(13, 13)).setFixedLength(13)).setMaxAccess("readonly") if mibBuilder.loadTexts: rmtLapbSTLastResetTime.setStatus('mandatory') rmtLapbSTLastResetReason = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 3, 2, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 8))).setMaxAccess("readonly") if mibBuilder.loadTexts: rmtLapbSTLastResetReason.setStatus('mandatory') rmtLapbSTCountResets = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 3, 2, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rmtLapbSTCountResets.setStatus('mandatory') rmtLapbSTCountSentFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 3, 2, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rmtLapbSTCountSentFrames.setStatus('mandatory') rmtLapbSTCountRcvFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 3, 2, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rmtLapbSTCountRcvFrames.setStatus('mandatory') rmtLapbSTCountSentOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 3, 2, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rmtLapbSTCountSentOctets.setStatus('mandatory') rmtLapbSTCountRcvOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 3, 2, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rmtLapbSTCountRcvOctets.setStatus('mandatory') rmtLapbSTCountAborts = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 3, 2, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rmtLapbSTCountAborts.setStatus('mandatory') rmtLapbSTCountCrcErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 3, 2, 1, 12), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rmtLapbSTCountCrcErrors.setStatus('mandatory') x25Operation = MibScalar((1, 3, 6, 1, 4, 1, 72, 13, 4, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readonly") if mibBuilder.loadTexts: x25Operation.setStatus('mandatory') x25OperNextReset = MibScalar((1, 3, 6, 1, 4, 1, 72, 13, 4, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readwrite") if mibBuilder.loadTexts: x25OperNextReset.setStatus('mandatory') x25ConSetupTable = MibTable((1, 3, 6, 1, 4, 1, 72, 13, 4, 3), ) if mibBuilder.loadTexts: x25ConSetupTable.setStatus('mandatory') x25CSTEntry = MibTableRow((1, 3, 6, 1, 4, 1, 72, 13, 4, 3, 1), ).setIndexNames((0, "RETIX-MIB", "x25CSTIndex")) if mibBuilder.loadTexts: x25CSTEntry.setStatus('mandatory') x25CSTIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 3, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: x25CSTIndex.setStatus('mandatory') x25CST8084Switch = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 3, 1, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: x25CST8084Switch.setStatus('mandatory') x25CSTSrcDTEAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 3, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(15, 15)).setFixedLength(15)).setMaxAccess("readwrite") if mibBuilder.loadTexts: x25CSTSrcDTEAddr.setStatus('mandatory') x25CSTDestDTEAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 3, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(15, 15)).setFixedLength(15)).setMaxAccess("readwrite") if mibBuilder.loadTexts: x25CSTDestDTEAddr.setStatus('mandatory') x25CST2WayLgclChanNum = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 3, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4095))).setMaxAccess("readwrite") if mibBuilder.loadTexts: x25CST2WayLgclChanNum.setStatus('mandatory') x25CSTPktSeqNumFlg = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 3, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 4))).clone(namedValues=NamedValues(("mod8", 1), ("mod128", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: x25CSTPktSeqNumFlg.setStatus('mandatory') x25CSTFlowCntrlNeg = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 3, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readwrite") if mibBuilder.loadTexts: x25CSTFlowCntrlNeg.setStatus('mandatory') x25CSTDefaultWinSize = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 3, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 127))).setMaxAccess("readwrite") if mibBuilder.loadTexts: x25CSTDefaultWinSize.setStatus('mandatory') x25CSTDefaultPktSize = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 3, 1, 9), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: x25CSTDefaultPktSize.setStatus('mandatory') x25CSTNegWinSize = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 3, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 127))).setMaxAccess("readwrite") if mibBuilder.loadTexts: x25CSTNegWinSize.setStatus('mandatory') x25CSTNegPktSize = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 3, 1, 11), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: x25CSTNegPktSize.setStatus('mandatory') x25CSTCUGSub = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 3, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4))).setMaxAccess("readwrite") if mibBuilder.loadTexts: x25CSTCUGSub.setStatus('mandatory') x25CSTLclCUGValue = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 3, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 99))).setMaxAccess("readwrite") if mibBuilder.loadTexts: x25CSTLclCUGValue.setStatus('mandatory') x25CSTRvrsChrgReq = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 3, 1, 14), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readwrite") if mibBuilder.loadTexts: x25CSTRvrsChrgReq.setStatus('mandatory') x25CSTRvrsChrgAcc = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 3, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readwrite") if mibBuilder.loadTexts: x25CSTRvrsChrgAcc.setStatus('mandatory') x25ConControlTable = MibTable((1, 3, 6, 1, 4, 1, 72, 13, 4, 4), ) if mibBuilder.loadTexts: x25ConControlTable.setStatus('mandatory') x25CCTEntry = MibTableRow((1, 3, 6, 1, 4, 1, 72, 13, 4, 4, 1), ).setIndexNames((0, "RETIX-MIB", "x25CCTIndex")) if mibBuilder.loadTexts: x25CCTEntry.setStatus('mandatory') x25CCTIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 4, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: x25CCTIndex.setStatus('mandatory') x25CCTManualConnect = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 4, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("noAction", 1), ("connect", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: x25CCTManualConnect.setStatus('mandatory') x25CCTManualDisconnect = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 4, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("noAction", 1), ("disconnect", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: x25CCTManualDisconnect.setStatus('mandatory') x25CCTCfgAutoConRetry = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 4, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readwrite") if mibBuilder.loadTexts: x25CCTCfgAutoConRetry.setStatus('mandatory') x25CCTOperAutoConRetryFlg = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 4, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readonly") if mibBuilder.loadTexts: x25CCTOperAutoConRetryFlg.setStatus('mandatory') x25CCTAutoConRetryTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 4, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 3600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: x25CCTAutoConRetryTimer.setStatus('mandatory') x25CCTMaxAutoConRetries = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 4, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: x25CCTMaxAutoConRetries.setStatus('mandatory') x25CCTCfgTODControl = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 4, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readwrite") if mibBuilder.loadTexts: x25CCTCfgTODControl.setStatus('mandatory') x25CCTCurrentTODControl = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 4, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readwrite") if mibBuilder.loadTexts: x25CCTCurrentTODControl.setStatus('mandatory') x25CCTTODToConnect = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 4, 1, 10), OctetString().subtype(subtypeSpec=ValueSizeConstraint(4, 4)).setFixedLength(4)).setMaxAccess("readwrite") if mibBuilder.loadTexts: x25CCTTODToConnect.setStatus('mandatory') x25CCTTODToDisconnect = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 4, 1, 11), OctetString().subtype(subtypeSpec=ValueSizeConstraint(4, 4)).setFixedLength(4)).setMaxAccess("readwrite") if mibBuilder.loadTexts: x25CCTTODToDisconnect.setStatus('mandatory') x25TimerTable = MibTable((1, 3, 6, 1, 4, 1, 72, 13, 4, 5), ) if mibBuilder.loadTexts: x25TimerTable.setStatus('mandatory') x25TTEntry = MibTableRow((1, 3, 6, 1, 4, 1, 72, 13, 4, 5, 1), ).setIndexNames((0, "RETIX-MIB", "x25TTIndex")) if mibBuilder.loadTexts: x25TTEntry.setStatus('mandatory') x25TTIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 5, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: x25TTIndex.setStatus('mandatory') x25TTT20Timer = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 5, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1024))).setMaxAccess("readwrite") if mibBuilder.loadTexts: x25TTT20Timer.setStatus('mandatory') x25TTT21Timer = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 5, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1024))).setMaxAccess("readwrite") if mibBuilder.loadTexts: x25TTT21Timer.setStatus('mandatory') x25TTT22Timer = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 5, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1024))).setMaxAccess("readwrite") if mibBuilder.loadTexts: x25TTT22Timer.setStatus('mandatory') x25TTT23Timer = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 5, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1024))).setMaxAccess("readwrite") if mibBuilder.loadTexts: x25TTT23Timer.setStatus('mandatory') x25TTR20Limit = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 5, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: x25TTR20Limit.setStatus('mandatory') x25TTR22Limit = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 5, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: x25TTR22Limit.setStatus('mandatory') x25TTR23Limit = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 5, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: x25TTR23Limit.setStatus('mandatory') x25StatusTable = MibTable((1, 3, 6, 1, 4, 1, 72, 13, 4, 6), ) if mibBuilder.loadTexts: x25StatusTable.setStatus('mandatory') x25StatusTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 72, 13, 4, 6, 1), ).setIndexNames((0, "RETIX-MIB", "x25StatusIndex")) if mibBuilder.loadTexts: x25StatusTableEntry.setStatus('mandatory') x25StatusIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 6, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: x25StatusIndex.setStatus('mandatory') x25StatusIfStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 6, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: x25StatusIfStatus.setStatus('mandatory') x25StatusSVCStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 6, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: x25StatusSVCStatus.setStatus('mandatory') x25StatusWinSize = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 6, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: x25StatusWinSize.setStatus('mandatory') x25StatusPktSize = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 6, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: x25StatusPktSize.setStatus('mandatory') x25StatusCauseLastInClear = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 6, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: x25StatusCauseLastInClear.setStatus('mandatory') x25StatusDiagLastInClear = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 6, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: x25StatusDiagLastInClear.setStatus('mandatory') x25StatsTable = MibTable((1, 3, 6, 1, 4, 1, 72, 13, 4, 7), ) if mibBuilder.loadTexts: x25StatsTable.setStatus('mandatory') x25StatsTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 72, 13, 4, 7, 1), ).setIndexNames((0, "RETIX-MIB", "x25STSVCIndex")) if mibBuilder.loadTexts: x25StatsTableEntry.setStatus('mandatory') x25STSVCIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 7, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: x25STSVCIndex.setStatus('mandatory') x25STTxDataPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 7, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: x25STTxDataPkts.setStatus('mandatory') x25STRxDataPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 7, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: x25STRxDataPkts.setStatus('mandatory') x25STTxConnectReqPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 7, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: x25STTxConnectReqPkts.setStatus('mandatory') x25STRxIncomingCallPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 7, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: x25STRxIncomingCallPkts.setStatus('mandatory') x25STTxClearReqPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 7, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: x25STTxClearReqPkts.setStatus('mandatory') x25STRxClearIndPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 7, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: x25STRxClearIndPkts.setStatus('mandatory') x25STTxResetReqPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 7, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: x25STTxResetReqPkts.setStatus('mandatory') x25STRxResetIndPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 7, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: x25STRxResetIndPkts.setStatus('mandatory') x25STTxRestartReqPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 7, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: x25STTxRestartReqPkts.setStatus('mandatory') x25STRxRestartIndPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 72, 13, 4, 7, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: x25STRxRestartIndPkts.setStatus('mandatory') mibBuilder.exportSymbols("RETIX-MIB", x25StatsTable=x25StatsTable, ipxOtherDiscards=ipxOtherDiscards, mlink=mlink, triangulation=triangulation, x25STTxDataPkts=x25STTxDataPkts, redirectsLastTx=redirectsLastTx, trapDestEntry=trapDestEntry, serialLoading=serialLoading, x25StatusDiagLastInClear=x25StatusDiagLastInClear, receivedTotalDgms=receivedTotalDgms, snmpAccessPolicyTable=snmpAccessPolicyTable, phySerIfT1frameAndCode=phySerIfT1frameAndCode, x25CSTDefaultWinSize=x25CSTDefaultWinSize, maxRejectedFrames=maxRejectedFrames, x25CCTEntry=x25CCTEntry, x25CSTSrcDTEAddr=x25CSTSrcDTEAddr, filterTableAction=filterTableAction, authenticationTrapStatus=authenticationTrapStatus, ipRouting=ipRouting, operatingMode=operatingMode, lapbCountRcvOctets=lapbCountRcvOctets, ipxRITInterface=ipxRITInterface, phySerIfTransitDelay=phySerIfTransitDelay, priorityMatches=priorityMatches, x25STTxConnectReqPkts=x25STTxConnectReqPkts, x25CSTFlowCntrlNeg=x25CSTFlowCntrlNeg, ipxRITEntry=ipxRITEntry, ieee8023Entry=ieee8023Entry, averagePeriod=averagePeriod, remote=remote, x25=x25, x25STTxRestartReqPkts=x25STTxRestartReqPkts, dcntIfCost=dcntIfCost, lapbEntry=lapbEntry, ifStatus=ifStatus, ipxIfEntry=ipxIfEntry, mlinkTable=mlinkTable, ipxNotRoutedRxDgms=ipxNotRoutedRxDgms, ieee8023FrameTooLongs=ieee8023FrameTooLongs, portPriorityAutoValue=portPriorityAutoValue, phySerIfT1SlotLvalue=phySerIfT1SlotLvalue, spatHelloTimer=spatHelloTimer, rmtLapbStatsTable=rmtLapbStatsTable, internalQueueCurrentLength=internalQueueCurrentLength, ipxRITGwyHostAddress=ipxRITGwyHostAddress, dcntIntraAreaMaxCost=dcntIntraAreaMaxCost, bridge=bridge, ieee8023NewMACAddressIndex=ieee8023NewMACAddressIndex, echoRequestsLastTx=echoRequestsLastTx, rmtLapbSTCountSentOctets=rmtLapbSTCountSentOctets, mlinkIndex=mlinkIndex, lapbLastResetReason=lapbLastResetReason, x25CSTDestDTEAddr=x25CSTDestDTEAddr, ipxForwardedDgms=ipxForwardedDgms, boothelper=boothelper, dcntRITCost=dcntRITCost, dcntNodeAddress=dcntNodeAddress, rmtLapbSTIndex=rmtLapbSTIndex, ieee8023FramesReceivedOks=ieee8023FramesReceivedOks, sourceQuenchLastTx=sourceQuenchLastTx, lanAccepts=lanAccepts, ieee8023SingleCollisionFrames=ieee8023SingleCollisionFrames, snmpAccessPolicyAction=snmpAccessPolicyAction, ipxSAPBinderyEntry=ipxSAPBinderyEntry, maxSerialLoading=maxSerialLoading, ipxTransmittedDgms=ipxTransmittedDgms, phySerIfT1dRatePerChan=phySerIfT1dRatePerChan, x25CCTMaxAutoConRetries=x25CCTMaxAutoConRetries, x25CSTIndex=x25CSTIndex, portSpatState=portSpatState, x25StatusIfStatus=x25StatusIfStatus, lapbIndex=lapbIndex, downloadRetryCount=downloadRetryCount, x25ConControlTable=x25ConControlTable, x25STRxIncomingCallPkts=x25STRxIncomingCallPkts, ipxIfNwkNumber=ipxIfNwkNumber, stpTable=stpTable, dcntForwardedDgms=dcntForwardedDgms, ieee8023LateCollisions=ieee8023LateCollisions, activeRemote=activeRemote, ipxRITDirectConnect=ipxRITDirectConnect, filterSubTable=filterSubTable, x25CCTManualDisconnect=x25CCTManualDisconnect, lapbCountAborts=lapbCountAborts, rmtLapbSTLastResetReason=rmtLapbSTLastResetReason, x25StatusCauseLastInClear=x25StatusCauseLastInClear, x25TTT23Timer=x25TTT23Timer, ieee8023MulticastReceiveStatus=ieee8023MulticastReceiveStatus, ieee8023NewMACAddressEntry=ieee8023NewMACAddressEntry, dynamicLearningInLM=dynamicLearningInLM, mlinkEntry=mlinkEntry, retix=retix, dcntIfHelloTimerBCT3=dcntIfHelloTimerBCT3, ieee8023MulticastFramesReceivedOks=ieee8023MulticastFramesReceivedOks, rmtLapbCTExtSeqNumbering=rmtLapbCTExtSeqNumbering, dcntAreaRITEntry=dcntAreaRITEntry, x25StatusTable=x25StatusTable, redirectsLastRx=redirectsLastRx, ieee8023OctetsTransmittedOks=ieee8023OctetsTransmittedOks, ieee8023InternalMACTransmitErrors=ieee8023InternalMACTransmitErrors, snmpAccessPolicyType=snmpAccessPolicyType, ieee8023FramesTransmittedOks=ieee8023FramesTransmittedOks, x25CCTIndex=x25CCTIndex, dcntAreaRoutingTable=dcntAreaRoutingTable, ieee8023MulticastFramesTransmittedOks=ieee8023MulticastFramesTransmittedOks, ipxInDiscards=ipxInDiscards, product=product, x25TTT22Timer=x25TTT22Timer, typeFilter=typeFilter, ieee8023CarrierSenseErrors=ieee8023CarrierSenseErrors, stpIndex=stpIndex, uniqueBroadcastAddress=uniqueBroadcastAddress, boothelperEnabled=boothelperEnabled, trapDestAction=trapDestAction, snmpAccessPolicyObject=snmpAccessPolicyObject, dcntRITInterface=dcntRITInterface, x25STRxResetIndPkts=x25STRxResetIndPkts, trapDestinationTable=trapDestinationTable, lapbState=lapbState, expressQueueUpperLimit=expressQueueUpperLimit, ipxRITDestNwkNumber=ipxRITDestNwkNumber, accessPolicyIndex=accessPolicyIndex, filteringDbStatus=filteringDbStatus, ipxIfIndex=ipxIfIndex, phySerIfTable=phySerIfTable, rmtLapbSTCountResets=rmtLapbSTCountResets, x25StatsTableEntry=x25StatsTableEntry, station=station, dcntIntraAreaMaxHops=dcntIntraAreaMaxHops, filteringDbDisposition=filteringDbDisposition, rmtLapbCTN2RetryCount=rmtLapbCTN2RetryCount, spanningTree=spanningTree, downloadFilename=downloadFilename, ieee8023=ieee8023, filteringDbEntry=filteringDbEntry, ieee8023NewMACAddress=ieee8023NewMACAddress, phySerIfMeasuredSpeed=phySerIfMeasuredSpeed, accessMode=accessMode, x25CCTAutoConRetryTimer=x25CCTAutoConRetryTimer, lapbWindow=lapbWindow, dcntIfTableEntry=dcntIfTableEntry, typePrioritisation=typePrioritisation, loPriQueueUpperLimit=loPriQueueUpperLimit, lapbPolarity=lapbPolarity, x25CSTRvrsChrgAcc=x25CSTRvrsChrgAcc, x25CST8084Switch=x25CST8084Switch, rmtLapbSTEntry=rmtLapbSTEntry, x25STRxClearIndPkts=x25STRxClearIndPkts, dcntInterAreaMaxHops=dcntInterAreaMaxHops, rmtLapbSTLastResetTime=rmtLapbSTLastResetTime, spatVersion=spatVersion, priorityPage=priorityPage, echoRequestsLastRx=echoRequestsLastRx, rmtLapbCTLinkReset=rmtLapbCTLinkReset, dcntInterAreaMaxCost=dcntInterAreaMaxCost, phySerIfPortSpeed=phySerIfPortSpeed, ieee8023Index=ieee8023Index, dcntOutRequestedDgms=dcntOutRequestedDgms, ieee8023Number=ieee8023Number, rmtLapbCTInitLinkConnect=rmtLapbCTInitLinkConnect, priorityTableEntryValue=priorityTableEntryValue, stationTime=stationTime, forgetAddressTimer=forgetAddressTimer, ipxIfTable=ipxIfTable, x25ConSetupTable=x25ConSetupTable, phySerIfT1SlotHvalue=phySerIfT1SlotHvalue, dcntRateControlFreqTimerT2=dcntRateControlFreqTimerT2, ipxRITDelay=ipxRITDelay, ieee8023AlignmentErrors=ieee8023AlignmentErrors, rmtLapbCTModeT1=rmtLapbCTModeT1, deletedMlinkFrames=deletedMlinkFrames, stpEntry=stpEntry, filterTableEntryValue=filterTableEntryValue, ieee8023ExcessiveDeferrals=ieee8023ExcessiveDeferrals, ieee8023FCSErrors=ieee8023FCSErrors, queueUpperLimit=queueUpperLimit, x25CSTEntry=x25CSTEntry, dcntRITEntry=dcntRITEntry, ipxOutDiscards=ipxOutDiscards, dcntAreaRITCost=dcntAreaRITCost, expressQueueCurrentLength=expressQueueCurrentLength, resetStation=resetStation, ieee8023InternalMACReceiveErrors=ieee8023InternalMACReceiveErrors, icmpRSTable=icmpRSTable, ipxIfEncapsulation=ipxIfEncapsulation, dcntNoRoutes=dcntNoRoutes, ipxSAPBinderyServerIPXAddress=ipxSAPBinderyServerIPXAddress, x25Operation=x25Operation, phySerIfIsSpeedsettable=phySerIfIsSpeedsettable, ieee8023BroadcastFramesTransmittedOks=ieee8023BroadcastFramesTransmittedOks, phySerIfEntry=phySerIfEntry, lanInterfaceType=lanInterfaceType, mlinkSendSeq=mlinkSendSeq, rmtLapbSTState=rmtLapbSTState, dcntRouting=dcntRouting, ipxSAPBinderyHopCount=ipxSAPBinderyHopCount, rmtLapbConfigTable=rmtLapbConfigTable, rmtLapbSTCountCrcErrors=rmtLapbSTCountCrcErrors, lapb=lapb, rmtLapb=rmtLapb, physBlkSize=physBlkSize, ipxInDelivers=ipxInDelivers, mlinkRxTimeout=mlinkRxTimeout, trapDestEntryCommunityName=trapDestEntryCommunityName, ieeeFormatPriority=ieeeFormatPriority, x25TimerTable=x25TimerTable, lapbCountResets=lapbCountResets, x25CCTManualConnect=x25CCTManualConnect, x25TTR20Limit=x25TTR20Limit, ipxRouting=ipxRouting, trapDestEntryIpAddr=trapDestEntryIpAddr, ipxInHdrErrors=ipxInHdrErrors, x25StatusTableEntry=x25StatusTableEntry, x25CCTOperAutoConRetryFlg=x25CCTOperAutoConRetryFlg, lapbCountRcvFrames=lapbCountRcvFrames, pathCostAutoValue=pathCostAutoValue, filteringDbAction=filteringDbAction, x25OperNextReset=x25OperNextReset, loPriQueueCurrentLength=loPriQueueCurrentLength, spanningMcastAddr=spanningMcastAddr, timeExceededLastTx=timeExceededLastTx, ieee8023SQETestErrors=ieee8023SQETestErrors, newPhysBlkSize=newPhysBlkSize, portNumber=portNumber, rmtLapbSTCountRcvFrames=rmtLapbSTCountRcvFrames, rmtLapbCTX25PortLineSpeed=rmtLapbCTX25PortLineSpeed, ipxSAPBinderyTable=ipxSAPBinderyTable, filteringDbMacAddress=filteringDbMacAddress, dcntIfNumber=dcntIfNumber, paramProbLastTx=paramProbLastTx, phySerIfT1clockSource=phySerIfT1clockSource, dcntIfDesgntdRtr=dcntIfDesgntdRtr, mlinkState=mlinkState, preconfSourceFilter=preconfSourceFilter, x25STRxDataPkts=x25STRxDataPkts, ipRSEntry=ipRSEntry, tftpRetryPeriod=tftpRetryPeriod, x25TTR23Limit=x25TTR23Limit, lapbModeT1=lapbModeT1, phySerIfPartnerAddress=phySerIfPartnerAddress, phySerIfNumber=phySerIfNumber, boothelperForwardingAddress=boothelperForwardingAddress, bridgeStatsEntry=bridgeStatsEntry, ipxSAPBinderyType=ipxSAPBinderyType, rmtLapbSTCountRcvOctets=rmtLapbSTCountRcvOctets, dcntAreaRITNextHop=dcntAreaRITNextHop, rmtLapbCTEntry=rmtLapbCTEntry, phySerIf=phySerIf, lapbNumber=lapbNumber, x25StatusIndex=x25StatusIndex, ipxReceivedDgms=ipxReceivedDgms, ieee8023InitializeMAC=ieee8023InitializeMAC, portPriorityMode=portPriorityMode, x25CSTNegWinSize=x25CSTNegWinSize) mibBuilder.exportSymbols("RETIX-MIB", ieee8023MultipleCollisionFrames=ieee8023MultipleCollisionFrames, x25CSTPktSeqNumFlg=x25CSTPktSeqNumFlg, paramProbLastRx=paramProbLastRx, lapbRetryCount=lapbRetryCount, deletedLanFrames=deletedLanFrames, x25TTIndex=x25TTIndex, priorityTableAction=priorityTableAction, boot=boot, mlinkRcvSeq=mlinkRcvSeq, spatResetTimer=spatResetTimer, mlinkLostFrames=mlinkLostFrames, ieeeFormatFilter=ieeeFormatFilter, filteringDbType=filteringDbType, snmpAccessPolicyEntry=snmpAccessPolicyEntry, timeExceededLastRx=timeExceededLastRx, standbyRemote=standbyRemote, x25TTT21Timer=x25TTT21Timer, lapbLastResetTime=lapbLastResetTime, destUnreachLastRx=destUnreachLastRx, initiateBootpDll=initiateBootpDll, ieee8023inRangeLengthErrors=ieee8023inRangeLengthErrors, ipxAccessViolations=ipxAccessViolations, loadserverIpAddress=loadserverIpAddress, ipxSAPBinderySocket=ipxSAPBinderySocket, ieee8023DeferredTransmissions=ieee8023DeferredTransmissions, dcntIfRtrPriority=dcntIfRtrPriority, averageForwardedFrames=averageForwardedFrames, x25CCTTODToConnect=x25CCTTODToConnect, rmtLapbSTCountSentFrames=rmtLapbSTCountSentFrames, x25StatusWinSize=x25StatusWinSize, ipxSAPBinderyServerName=ipxSAPBinderyServerName, dcntIfIndex=dcntIfIndex, boothelperHopsLimit=boothelperHopsLimit, router=router, serialLoadPeriod=serialLoadPeriod, hiPriQueueCurrentLength=hiPriQueueCurrentLength, ipxIfIPXAddress=ipxIfIPXAddress, standbyLocal=standbyLocal, spatPriority=spatPriority, ieee8023BroadcastFramesReceivedOks=ieee8023BroadcastFramesReceivedOks, destUnreachLastTx=destUnreachLastTx, multicastDisposition=multicastDisposition, gwProtocol=gwProtocol, transmittedTotalDgms=transmittedTotalDgms, pathCostMode=pathCostMode, phySerIfIndex=phySerIfIndex, x25CSTLclCUGValue=x25CSTLclCUGValue, x25CSTNegPktSize=x25CSTNegPktSize, filterTableEntry=filterTableEntry, resetStats=resetStats, lapbManualT1value=lapbManualT1value, trapDestTable=trapDestTable, x25TTEntry=x25TTEntry, dcntRITDestNode=dcntRITDestNode, dcntInDiscards=dcntInDiscards, dcntMaxVisits=dcntMaxVisits, rmtLapbSTCountAborts=rmtLapbSTCountAborts, rmtLapbSTAutoT1value=rmtLapbSTAutoT1value, rmtLapbCTLinkAddr=rmtLapbCTLinkAddr, ipxRoutingTable=ipxRoutingTable, rmtLapbCTManualT1Value=rmtLapbCTManualT1Value, ieee8023PromiscuousReceiveStatus=ieee8023PromiscuousReceiveStatus, filterTable=filterTable, x25CCTCurrentTODControl=x25CCTCurrentTODControl, ieee8023MACAddress=ieee8023MACAddress, lan=lan, sourceQuenchLastRx=sourceQuenchLastRx, x25CSTCUGSub=x25CSTCUGSub, serialTxQueueSize=serialTxQueueSize, dcntIfTable=dcntIfTable, communityName=communityName, dcntRtngMsgTimerBCT1=dcntRtngMsgTimerBCT1, filteringDbTable=filteringDbTable, maxForwardedFrames=maxForwardedFrames, lanQueueSize=lanQueueSize, x25CCTCfgAutoConRetry=x25CCTCfgAutoConRetry, x25StatusSVCStatus=x25StatusSVCStatus, noRouteTotalDgms=noRouteTotalDgms, x25TTR22Limit=x25TTR22Limit, dcntAreaRITDestArea=dcntAreaRITDestArea, initStation=initStation, priorityTableEntryType=priorityTableEntryType, dcntAreaRITInterface=dcntAreaRITInterface, x25STSVCIndex=x25STSVCIndex, filterTableEntryType=filterTableEntryType, bridgeStatsIndex=bridgeStatsIndex, mlinkWindow=mlinkWindow, ieee8023Table=ieee8023Table, filteringDataBaseTable=filteringDataBaseTable, ieee8023ExcessiveCollisions=ieee8023ExcessiveCollisions, activeLocal=activeLocal, lapbCountCrcErrors=lapbCountCrcErrors, ieee8023NewMACAddressValue=ieee8023NewMACAddressValue, x25CST2WayLgclChanNum=x25CST2WayLgclChanNum, pathCostManualValue=pathCostManualValue, dcntInHdrErrors=dcntInHdrErrors, ieee8023OctetsReceivedOks=ieee8023OctetsReceivedOks, dcntAreaRITHops=dcntAreaRITHops, lapbAutoT1value=lapbAutoT1value, ieee8023outOfRangeLengthFields=ieee8023outOfRangeLengthFields, x25STTxClearReqPkts=x25STTxClearReqPkts, filterPage=filterPage, snmpAccessPolicyPage=snmpAccessPolicyPage, ipRSTable=ipRSTable, phySerIfInterfaceType=phySerIfInterfaceType, x25TTT20Timer=x25TTT20Timer, rmtLapbCTWindow=rmtLapbCTWindow, x25STTxResetReqPkts=x25STTxResetReqPkts, bootpRetryCount=bootpRetryCount, x25CSTRvrsChrgReq=x25CSTRvrsChrgReq, dcntRITHops=dcntRITHops, adaptiveMcastAddr=adaptiveMcastAddr, passWord=passWord, priorityTableEntry=priorityTableEntry, bootserverIpAddress=bootserverIpAddress, filterMatches=filterMatches, rmtLapbCTT3LinkIdleTimer=rmtLapbCTT3LinkIdleTimer, ipxIfDelay=ipxIfDelay, hiPriQueueUpperLimit=hiPriQueueUpperLimit, x25STRxRestartIndPkts=x25STRxRestartIndPkts, lapbCountSentFrames=lapbCountSentFrames, processorLoading=processorLoading, dcntOutDiscards=dcntOutDiscards, mlinkNumber=mlinkNumber, freeBufferCount=freeBufferCount, ipxIfNumber=ipxIfNumber, mlinkSendUpperEdge=mlinkSendUpperEdge, tftpRetryCount=tftpRetryCount, ipxRITHopCount=ipxRITHopCount, trapDestEntryType=trapDestEntryType, adaptiveRouting=adaptiveRouting, lapbCountSentOctets=lapbCountSentOctets, lapbLinkReset=lapbLinkReset, bridgeStatsTable=bridgeStatsTable, arAddressInfo=arAddressInfo, dcntRoutingTable=dcntRoutingTable, prioritySubTable=prioritySubTable, decnet=decnet, ieee8023TransmitStatus=ieee8023TransmitStatus, averageRejectedFrames=averageRejectedFrames, stationCountResets=stationCountResets, x25CCTCfgTODControl=x25CCTCfgTODControl, x25CSTDefaultPktSize=x25CSTDefaultPktSize, x25StatusPktSize=x25StatusPktSize, mlinkRcvUpperEdge=mlinkRcvUpperEdge, lanRejects=lanRejects, dcntReveivedDgms=dcntReveivedDgms, rmtLapbCTIndex=rmtLapbCTIndex, outDiscardsTotalDgms=outDiscardsTotalDgms, priorityTable=priorityTable, lapbTable=lapbTable, ipRSIndex=ipRSIndex, trapDestPage=trapDestPage, x25CCTTODToDisconnect=x25CCTTODToDisconnect, ieee8023MACSubLayerStatus=ieee8023MACSubLayerStatus, freeHeaderCount=freeHeaderCount, portPriorityManualValue=portPriorityManualValue, ipx=ipx, deleteAddressTimer=deleteAddressTimer, dcntRITNextHop=dcntRITNextHop)
(octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_intersection, constraints_union, value_range_constraint, single_value_constraint, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ConstraintsUnion', 'ValueRangeConstraint', 'SingleValueConstraint', 'ValueSizeConstraint') (mib_scalar, mib_table, mib_table_row, mib_table_column) = mibBuilder.importSymbols('RFC1212', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (iso, bits, unsigned32, object_identity, mib_identifier, gauge32, notification_type, module_identity, mib_scalar, mib_table, mib_table_row, mib_table_column, enterprises, ip_address, counter32, counter64, integer32, time_ticks) = mibBuilder.importSymbols('SNMPv2-SMI', 'iso', 'Bits', 'Unsigned32', 'ObjectIdentity', 'MibIdentifier', 'Gauge32', 'NotificationType', 'ModuleIdentity', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'enterprises', 'IpAddress', 'Counter32', 'Counter64', 'Integer32', 'TimeTicks') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') retix = mib_identifier((1, 3, 6, 1, 4, 1, 72)) station = mib_identifier((1, 3, 6, 1, 4, 1, 72, 1)) lapb = mib_identifier((1, 3, 6, 1, 4, 1, 72, 2)) ieee8023 = mib_identifier((1, 3, 6, 1, 4, 1, 72, 3)) phy_ser_if = mib_identifier((1, 3, 6, 1, 4, 1, 72, 4)) mlink = mib_identifier((1, 3, 6, 1, 4, 1, 72, 5)) lan = mib_identifier((1, 3, 6, 1, 4, 1, 72, 6)) bridge = mib_identifier((1, 3, 6, 1, 4, 1, 72, 7)) product = mib_identifier((1, 3, 6, 1, 4, 1, 72, 8)) router = mib_identifier((1, 3, 6, 1, 4, 1, 72, 10)) boot = mib_identifier((1, 3, 6, 1, 4, 1, 72, 11)) boothelper = mib_identifier((1, 3, 6, 1, 4, 1, 72, 12)) remote = mib_identifier((1, 3, 6, 1, 4, 1, 72, 13)) ipx = mib_identifier((1, 3, 6, 1, 4, 1, 72, 13, 1)) decnet = mib_identifier((1, 3, 6, 1, 4, 1, 72, 13, 2)) rmt_lapb = mib_identifier((1, 3, 6, 1, 4, 1, 72, 13, 3)) x25 = mib_identifier((1, 3, 6, 1, 4, 1, 72, 13, 4)) station_time = mib_scalar((1, 3, 6, 1, 4, 1, 72, 1, 1), octet_string().subtype(subtypeSpec=value_size_constraint(13, 13)).setFixedLength(13)).setMaxAccess('readwrite') if mibBuilder.loadTexts: stationTime.setStatus('mandatory') station_count_resets = mib_scalar((1, 3, 6, 1, 4, 1, 72, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: stationCountResets.setStatus('mandatory') free_buffer_count = mib_scalar((1, 3, 6, 1, 4, 1, 72, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: freeBufferCount.setStatus('mandatory') free_header_count = mib_scalar((1, 3, 6, 1, 4, 1, 72, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: freeHeaderCount.setStatus('mandatory') phys_blk_size = mib_scalar((1, 3, 6, 1, 4, 1, 72, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(300, 1600))).setMaxAccess('readonly') if mibBuilder.loadTexts: physBlkSize.setStatus('mandatory') new_phys_blk_size = mib_scalar((1, 3, 6, 1, 4, 1, 72, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(300, 1600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: newPhysBlkSize.setStatus('mandatory') reset_station = mib_scalar((1, 3, 6, 1, 4, 1, 72, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('noAction', 1), ('resetStation', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: resetStation.setStatus('mandatory') init_station = mib_scalar((1, 3, 6, 1, 4, 1, 72, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('noAction', 1), ('initialize', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: initStation.setStatus('mandatory') reset_stats = mib_scalar((1, 3, 6, 1, 4, 1, 72, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('noAction', 1), ('resetStats', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: resetStats.setStatus('mandatory') processor_loading = mib_scalar((1, 3, 6, 1, 4, 1, 72, 1, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: processorLoading.setStatus('mandatory') trap_destination_table = mib_identifier((1, 3, 6, 1, 4, 1, 72, 1, 11)) trap_dest_table = mib_table((1, 3, 6, 1, 4, 1, 72, 1, 11, 1)) if mibBuilder.loadTexts: trapDestTable.setStatus('mandatory') trap_dest_entry = mib_table_row((1, 3, 6, 1, 4, 1, 72, 1, 11, 1, 1)).setIndexNames((0, 'RETIX-MIB', 'trapDestEntryIpAddr')) if mibBuilder.loadTexts: trapDestEntry.setStatus('mandatory') trap_dest_entry_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 72, 1, 11, 1, 1, 1), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: trapDestEntryIpAddr.setStatus('mandatory') trap_dest_entry_community_name = mib_table_column((1, 3, 6, 1, 4, 1, 72, 1, 11, 1, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 10))).setMaxAccess('readwrite') if mibBuilder.loadTexts: trapDestEntryCommunityName.setStatus('mandatory') trap_dest_entry_type = mib_table_column((1, 3, 6, 1, 4, 1, 72, 1, 11, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('valid', 1), ('invalid', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: trapDestEntryType.setStatus('mandatory') trap_dest_action = mib_scalar((1, 3, 6, 1, 4, 1, 72, 1, 11, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('noAction', 1), ('clearTable', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: trapDestAction.setStatus('mandatory') trap_dest_page = mib_scalar((1, 3, 6, 1, 4, 1, 72, 1, 11, 3), octet_string().subtype(subtypeSpec=value_size_constraint(240, 240)).setFixedLength(240)).setMaxAccess('readonly') if mibBuilder.loadTexts: trapDestPage.setStatus('mandatory') pass_word = mib_scalar((1, 3, 6, 1, 4, 1, 72, 1, 12), octet_string().subtype(subtypeSpec=value_size_constraint(0, 10))).setMaxAccess('readwrite') if mibBuilder.loadTexts: passWord.setStatus('mandatory') snmp_access_policy_object = mib_identifier((1, 3, 6, 1, 4, 1, 72, 1, 13)) snmp_access_policy_table = mib_table((1, 3, 6, 1, 4, 1, 72, 1, 13, 1)) if mibBuilder.loadTexts: snmpAccessPolicyTable.setStatus('mandatory') snmp_access_policy_entry = mib_table_row((1, 3, 6, 1, 4, 1, 72, 1, 13, 1, 1)).setIndexNames((0, 'RETIX-MIB', 'accessPolicyIndex')) if mibBuilder.loadTexts: snmpAccessPolicyEntry.setStatus('mandatory') access_policy_index = mib_table_column((1, 3, 6, 1, 4, 1, 72, 1, 13, 1, 1, 1), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: accessPolicyIndex.setStatus('mandatory') community_name = mib_table_column((1, 3, 6, 1, 4, 1, 72, 1, 13, 1, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 10))).setMaxAccess('readwrite') if mibBuilder.loadTexts: communityName.setStatus('mandatory') access_mode = mib_table_column((1, 3, 6, 1, 4, 1, 72, 1, 13, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 3))).setMaxAccess('readwrite') if mibBuilder.loadTexts: accessMode.setStatus('mandatory') snmp_access_policy_type = mib_table_column((1, 3, 6, 1, 4, 1, 72, 1, 13, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('valid', 1), ('invalid', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: snmpAccessPolicyType.setStatus('mandatory') snmp_access_policy_action = mib_scalar((1, 3, 6, 1, 4, 1, 72, 1, 13, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('noAction', 1), ('clearTable', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: snmpAccessPolicyAction.setStatus('mandatory') snmp_access_policy_page = mib_scalar((1, 3, 6, 1, 4, 1, 72, 1, 13, 3), octet_string().subtype(subtypeSpec=value_size_constraint(256, 256)).setFixedLength(256)).setMaxAccess('readonly') if mibBuilder.loadTexts: snmpAccessPolicyPage.setStatus('mandatory') authentication_trap_status = mib_scalar((1, 3, 6, 1, 4, 1, 72, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: authenticationTrapStatus.setStatus('mandatory') serial_tx_queue_size = mib_scalar((1, 3, 6, 1, 4, 1, 72, 1, 15), integer32().subtype(subtypeSpec=value_range_constraint(1, 127))).setMaxAccess('readwrite') if mibBuilder.loadTexts: serialTxQueueSize.setStatus('mandatory') internal_queue_current_length = mib_scalar((1, 3, 6, 1, 4, 1, 72, 1, 16), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: internalQueueCurrentLength.setStatus('mandatory') queue_upper_limit = mib_scalar((1, 3, 6, 1, 4, 1, 72, 1, 17), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: queueUpperLimit.setStatus('mandatory') lan_queue_size = mib_scalar((1, 3, 6, 1, 4, 1, 72, 1, 18), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lanQueueSize.setStatus('mandatory') lapb_number = mib_scalar((1, 3, 6, 1, 4, 1, 72, 2, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lapbNumber.setStatus('mandatory') lapb_table = mib_table((1, 3, 6, 1, 4, 1, 72, 2, 2)) if mibBuilder.loadTexts: lapbTable.setStatus('mandatory') lapb_entry = mib_table_row((1, 3, 6, 1, 4, 1, 72, 2, 2, 1)).setIndexNames((0, 'RETIX-MIB', 'lapbIndex')) if mibBuilder.loadTexts: lapbEntry.setStatus('mandatory') lapb_index = mib_table_column((1, 3, 6, 1, 4, 1, 72, 2, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lapbIndex.setStatus('mandatory') lapb_mode_t1 = mib_table_column((1, 3, 6, 1, 4, 1, 72, 2, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readwrite') if mibBuilder.loadTexts: lapbModeT1.setStatus('mandatory') lapb_auto_t1value = mib_table_column((1, 3, 6, 1, 4, 1, 72, 2, 2, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lapbAutoT1value.setStatus('mandatory') lapb_manual_t1value = mib_table_column((1, 3, 6, 1, 4, 1, 72, 2, 2, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(10, 5000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: lapbManualT1value.setStatus('mandatory') lapb_window = mib_table_column((1, 3, 6, 1, 4, 1, 72, 2, 2, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(7, 127))).setMaxAccess('readonly') if mibBuilder.loadTexts: lapbWindow.setStatus('mandatory') lapb_polarity = mib_table_column((1, 3, 6, 1, 4, 1, 72, 2, 2, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readonly') if mibBuilder.loadTexts: lapbPolarity.setStatus('mandatory') lapb_count_resets = mib_table_column((1, 3, 6, 1, 4, 1, 72, 2, 2, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lapbCountResets.setStatus('mandatory') lapb_count_sent_frames = mib_table_column((1, 3, 6, 1, 4, 1, 72, 2, 2, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lapbCountSentFrames.setStatus('mandatory') lapb_count_rcv_frames = mib_table_column((1, 3, 6, 1, 4, 1, 72, 2, 2, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lapbCountRcvFrames.setStatus('mandatory') lapb_count_sent_octets = mib_table_column((1, 3, 6, 1, 4, 1, 72, 2, 2, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lapbCountSentOctets.setStatus('mandatory') lapb_count_rcv_octets = mib_table_column((1, 3, 6, 1, 4, 1, 72, 2, 2, 1, 11), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lapbCountRcvOctets.setStatus('mandatory') lapb_count_aborts = mib_table_column((1, 3, 6, 1, 4, 1, 72, 2, 2, 1, 12), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lapbCountAborts.setStatus('mandatory') lapb_count_crc_errors = mib_table_column((1, 3, 6, 1, 4, 1, 72, 2, 2, 1, 13), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lapbCountCrcErrors.setStatus('mandatory') lapb_state = mib_table_column((1, 3, 6, 1, 4, 1, 72, 2, 2, 1, 14), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lapbState.setStatus('mandatory') lapb_last_reset_time = mib_table_column((1, 3, 6, 1, 4, 1, 72, 2, 2, 1, 15), octet_string().subtype(subtypeSpec=value_size_constraint(13, 13)).setFixedLength(13)).setMaxAccess('readonly') if mibBuilder.loadTexts: lapbLastResetTime.setStatus('mandatory') lapb_last_reset_reason = mib_table_column((1, 3, 6, 1, 4, 1, 72, 2, 2, 1, 16), integer32().subtype(subtypeSpec=value_range_constraint(0, 8))).setMaxAccess('readonly') if mibBuilder.loadTexts: lapbLastResetReason.setStatus('mandatory') lapb_link_reset = mib_table_column((1, 3, 6, 1, 4, 1, 72, 2, 2, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('noAction', 1), ('reset', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: lapbLinkReset.setStatus('mandatory') lapb_retry_count = mib_scalar((1, 3, 6, 1, 4, 1, 72, 2, 3), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: lapbRetryCount.setStatus('mandatory') ieee8023_number = mib_scalar((1, 3, 6, 1, 4, 1, 72, 3, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8023Number.setStatus('mandatory') ieee8023_table = mib_table((1, 3, 6, 1, 4, 1, 72, 3, 2)) if mibBuilder.loadTexts: ieee8023Table.setStatus('mandatory') ieee8023_entry = mib_table_row((1, 3, 6, 1, 4, 1, 72, 3, 2, 1)).setIndexNames((0, 'RETIX-MIB', 'ieee8023Index')) if mibBuilder.loadTexts: ieee8023Entry.setStatus('mandatory') ieee8023_index = mib_table_column((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8023Index.setStatus('mandatory') ieee8023_frames_transmitted_oks = mib_table_column((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8023FramesTransmittedOks.setStatus('mandatory') ieee8023_single_collision_frames = mib_table_column((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8023SingleCollisionFrames.setStatus('mandatory') ieee8023_multiple_collision_frames = mib_table_column((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8023MultipleCollisionFrames.setStatus('mandatory') ieee8023_octets_transmitted_oks = mib_table_column((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8023OctetsTransmittedOks.setStatus('mandatory') ieee8023_deferred_transmissions = mib_table_column((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8023DeferredTransmissions.setStatus('mandatory') ieee8023_multicast_frames_transmitted_oks = mib_table_column((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8023MulticastFramesTransmittedOks.setStatus('mandatory') ieee8023_broadcast_frames_transmitted_oks = mib_table_column((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8023BroadcastFramesTransmittedOks.setStatus('mandatory') ieee8023_late_collisions = mib_table_column((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8023LateCollisions.setStatus('mandatory') ieee8023_excessive_collisions = mib_table_column((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8023ExcessiveCollisions.setStatus('mandatory') ieee8023_internal_mac_transmit_errors = mib_table_column((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 11), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8023InternalMACTransmitErrors.setStatus('mandatory') ieee8023_carrier_sense_errors = mib_table_column((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 12), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8023CarrierSenseErrors.setStatus('mandatory') ieee8023_excessive_deferrals = mib_table_column((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 13), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8023ExcessiveDeferrals.setStatus('mandatory') ieee8023_frames_received_oks = mib_table_column((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 14), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8023FramesReceivedOks.setStatus('mandatory') ieee8023_octets_received_oks = mib_table_column((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 15), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8023OctetsReceivedOks.setStatus('mandatory') ieee8023_multicast_frames_received_oks = mib_table_column((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 16), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8023MulticastFramesReceivedOks.setStatus('mandatory') ieee8023_broadcast_frames_received_oks = mib_table_column((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 17), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8023BroadcastFramesReceivedOks.setStatus('mandatory') ieee8023_frame_too_longs = mib_table_column((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 18), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8023FrameTooLongs.setStatus('mandatory') ieee8023_alignment_errors = mib_table_column((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 19), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8023AlignmentErrors.setStatus('mandatory') ieee8023_fcs_errors = mib_table_column((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 20), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8023FCSErrors.setStatus('mandatory') ieee8023in_range_length_errors = mib_table_column((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 21), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8023inRangeLengthErrors.setStatus('mandatory') ieee8023out_of_range_length_fields = mib_table_column((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 22), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8023outOfRangeLengthFields.setStatus('mandatory') ieee8023_internal_mac_receive_errors = mib_table_column((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 23), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8023InternalMACReceiveErrors.setStatus('mandatory') ieee8023_initialize_mac = mib_table_column((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 24), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('initialize', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8023InitializeMAC.setStatus('mandatory') ieee8023_promiscuous_receive_status = mib_table_column((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 25), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('enabled', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8023PromiscuousReceiveStatus.setStatus('mandatory') ieee8023_mac_sub_layer_status = mib_table_column((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 26), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('enabled', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8023MACSubLayerStatus.setStatus('mandatory') ieee8023_transmit_status = mib_table_column((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 27), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8023TransmitStatus.setStatus('mandatory') ieee8023_multicast_receive_status = mib_table_column((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 28), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('enabled', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8023MulticastReceiveStatus.setStatus('mandatory') ieee8023_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 29), octet_string().subtype(subtypeSpec=value_size_constraint(6, 6)).setFixedLength(6)).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8023MACAddress.setStatus('mandatory') ieee8023_sqe_test_errors = mib_table_column((1, 3, 6, 1, 4, 1, 72, 3, 2, 1, 30), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8023SQETestErrors.setStatus('mandatory') ieee8023_new_mac_address = mib_table((1, 3, 6, 1, 4, 1, 72, 3, 3)) if mibBuilder.loadTexts: ieee8023NewMACAddress.setStatus('mandatory') ieee8023_new_mac_address_entry = mib_table_row((1, 3, 6, 1, 4, 1, 72, 3, 3, 1)).setIndexNames((0, 'RETIX-MIB', 'ieee8023NewMACAddressIndex')) if mibBuilder.loadTexts: ieee8023NewMACAddressEntry.setStatus('mandatory') ieee8023_new_mac_address_index = mib_table_column((1, 3, 6, 1, 4, 1, 72, 3, 3, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8023NewMACAddressIndex.setStatus('mandatory') ieee8023_new_mac_address_value = mib_table_column((1, 3, 6, 1, 4, 1, 72, 3, 3, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(6, 6)).setFixedLength(6)).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8023NewMACAddressValue.setStatus('mandatory') phy_ser_if_number = mib_scalar((1, 3, 6, 1, 4, 1, 72, 4, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: phySerIfNumber.setStatus('mandatory') phy_ser_if_table = mib_table((1, 3, 6, 1, 4, 1, 72, 4, 2)) if mibBuilder.loadTexts: phySerIfTable.setStatus('mandatory') phy_ser_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 72, 4, 2, 1)).setIndexNames((0, 'RETIX-MIB', 'phySerIfIndex')) if mibBuilder.loadTexts: phySerIfEntry.setStatus('mandatory') phy_ser_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 72, 4, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: phySerIfIndex.setStatus('mandatory') phy_ser_if_interface_type = mib_table_column((1, 3, 6, 1, 4, 1, 72, 4, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('x21dte', 1), ('x21dce', 2), ('rs449', 3), ('g703', 4), ('v35', 5), ('v35btb', 6), ('rs232', 7), ('t1', 8)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: phySerIfInterfaceType.setStatus('mandatory') phy_ser_if_measured_speed = mib_table_column((1, 3, 6, 1, 4, 1, 72, 4, 2, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: phySerIfMeasuredSpeed.setStatus('mandatory') phy_ser_if_is_speedsettable = mib_table_column((1, 3, 6, 1, 4, 1, 72, 4, 2, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readonly') if mibBuilder.loadTexts: phySerIfIsSpeedsettable.setStatus('mandatory') phy_ser_if_port_speed = mib_table_column((1, 3, 6, 1, 4, 1, 72, 4, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1200, 2400, 4800, 9600, 19200, 24000, 32000, 48000, 64000, 256000, 512000, 1024000, 2048000))).clone(namedValues=named_values(('b1200', 1200), ('b2400', 2400), ('b4800', 4800), ('b9600', 9600), ('b19200', 19200), ('b24000', 24000), ('b32000', 32000), ('b48000', 48000), ('b64000', 64000), ('b256000', 256000), ('b512000', 512000), ('b1024000', 1024000), ('b2048000', 2048000)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: phySerIfPortSpeed.setStatus('mandatory') phy_ser_if_transit_delay = mib_table_column((1, 3, 6, 1, 4, 1, 72, 4, 2, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: phySerIfTransitDelay.setStatus('mandatory') phy_ser_if_t1clock_source = mib_table_column((1, 3, 6, 1, 4, 1, 72, 4, 2, 1, 7), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: phySerIfT1clockSource.setStatus('mandatory') phy_ser_if_t1_slot_lvalue = mib_table_column((1, 3, 6, 1, 4, 1, 72, 4, 2, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(1, 24))).setMaxAccess('readwrite') if mibBuilder.loadTexts: phySerIfT1SlotLvalue.setStatus('mandatory') phy_ser_if_t1_slot_hvalue = mib_table_column((1, 3, 6, 1, 4, 1, 72, 4, 2, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(1, 24))).setMaxAccess('readwrite') if mibBuilder.loadTexts: phySerIfT1SlotHvalue.setStatus('mandatory') phy_ser_if_t1d_rate_per_chan = mib_table_column((1, 3, 6, 1, 4, 1, 72, 4, 2, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readwrite') if mibBuilder.loadTexts: phySerIfT1dRatePerChan.setStatus('mandatory') phy_ser_if_t1frame_and_code = mib_table_column((1, 3, 6, 1, 4, 1, 72, 4, 2, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(0, 3))).setMaxAccess('readwrite') if mibBuilder.loadTexts: phySerIfT1frameAndCode.setStatus('mandatory') phy_ser_if_partner_address = mib_table_column((1, 3, 6, 1, 4, 1, 72, 4, 2, 1, 12), octet_string().subtype(subtypeSpec=value_size_constraint(0, 6))).setMaxAccess('readonly') if mibBuilder.loadTexts: phySerIfPartnerAddress.setStatus('mandatory') mlink_number = mib_scalar((1, 3, 6, 1, 4, 1, 72, 5, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mlinkNumber.setStatus('mandatory') mlink_table = mib_table((1, 3, 6, 1, 4, 1, 72, 5, 2)) if mibBuilder.loadTexts: mlinkTable.setStatus('mandatory') mlink_entry = mib_table_row((1, 3, 6, 1, 4, 1, 72, 5, 2, 1)).setIndexNames((0, 'RETIX-MIB', 'mlinkIndex')) if mibBuilder.loadTexts: mlinkEntry.setStatus('mandatory') mlink_index = mib_table_column((1, 3, 6, 1, 4, 1, 72, 5, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mlinkIndex.setStatus('mandatory') mlink_state = mib_table_column((1, 3, 6, 1, 4, 1, 72, 5, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 3))).setMaxAccess('readonly') if mibBuilder.loadTexts: mlinkState.setStatus('mandatory') mlink_send_seq = mib_table_column((1, 3, 6, 1, 4, 1, 72, 5, 2, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mlinkSendSeq.setStatus('mandatory') mlink_rcv_seq = mib_table_column((1, 3, 6, 1, 4, 1, 72, 5, 2, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mlinkRcvSeq.setStatus('mandatory') mlink_send_upper_edge = mib_table_column((1, 3, 6, 1, 4, 1, 72, 5, 2, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mlinkSendUpperEdge.setStatus('mandatory') mlink_rcv_upper_edge = mib_table_column((1, 3, 6, 1, 4, 1, 72, 5, 2, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mlinkRcvUpperEdge.setStatus('mandatory') mlink_lost_frames = mib_table_column((1, 3, 6, 1, 4, 1, 72, 5, 2, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mlinkLostFrames.setStatus('mandatory') deleted_mlink_frames = mib_table_column((1, 3, 6, 1, 4, 1, 72, 5, 2, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: deletedMlinkFrames.setStatus('mandatory') express_queue_current_length = mib_table_column((1, 3, 6, 1, 4, 1, 72, 5, 2, 1, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: expressQueueCurrentLength.setStatus('mandatory') express_queue_upper_limit = mib_table_column((1, 3, 6, 1, 4, 1, 72, 5, 2, 1, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: expressQueueUpperLimit.setStatus('mandatory') hi_pri_queue_current_length = mib_table_column((1, 3, 6, 1, 4, 1, 72, 5, 2, 1, 11), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hiPriQueueCurrentLength.setStatus('mandatory') hi_pri_queue_upper_limit = mib_table_column((1, 3, 6, 1, 4, 1, 72, 5, 2, 1, 12), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hiPriQueueUpperLimit.setStatus('mandatory') lo_pri_queue_current_length = mib_table_column((1, 3, 6, 1, 4, 1, 72, 5, 2, 1, 13), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: loPriQueueCurrentLength.setStatus('mandatory') lo_pri_queue_upper_limit = mib_table_column((1, 3, 6, 1, 4, 1, 72, 5, 2, 1, 14), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: loPriQueueUpperLimit.setStatus('mandatory') mlink_window = mib_scalar((1, 3, 6, 1, 4, 1, 72, 5, 3), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: mlinkWindow.setStatus('mandatory') mlink_rx_timeout = mib_scalar((1, 3, 6, 1, 4, 1, 72, 5, 4), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: mlinkRxTimeout.setStatus('mandatory') lan_interface_type = mib_scalar((1, 3, 6, 1, 4, 1, 72, 6, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('tenBase5', 1), ('oneBase5', 2), ('tenBase2', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: lanInterfaceType.setStatus('mandatory') port_number = mib_scalar((1, 3, 6, 1, 4, 1, 72, 7, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: portNumber.setStatus('mandatory') bridge_stats_table = mib_table((1, 3, 6, 1, 4, 1, 72, 7, 2)) if mibBuilder.loadTexts: bridgeStatsTable.setStatus('mandatory') bridge_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 72, 7, 2, 1)).setIndexNames((0, 'RETIX-MIB', 'bridgeStatsIndex')) if mibBuilder.loadTexts: bridgeStatsEntry.setStatus('mandatory') bridge_stats_index = mib_table_column((1, 3, 6, 1, 4, 1, 72, 7, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: bridgeStatsIndex.setStatus('mandatory') average_forwarded_frames = mib_table_column((1, 3, 6, 1, 4, 1, 72, 7, 2, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: averageForwardedFrames.setStatus('mandatory') max_forwarded_frames = mib_table_column((1, 3, 6, 1, 4, 1, 72, 7, 2, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: maxForwardedFrames.setStatus('mandatory') average_rejected_frames = mib_table_column((1, 3, 6, 1, 4, 1, 72, 7, 2, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: averageRejectedFrames.setStatus('mandatory') max_rejected_frames = mib_table_column((1, 3, 6, 1, 4, 1, 72, 7, 2, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: maxRejectedFrames.setStatus('mandatory') lan_accepts = mib_table_column((1, 3, 6, 1, 4, 1, 72, 7, 2, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lanAccepts.setStatus('mandatory') lan_rejects = mib_table_column((1, 3, 6, 1, 4, 1, 72, 7, 2, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lanRejects.setStatus('mandatory') deleted_lan_frames = mib_table_column((1, 3, 6, 1, 4, 1, 72, 7, 2, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: deletedLanFrames.setStatus('mandatory') stp_table = mib_table((1, 3, 6, 1, 4, 1, 72, 7, 3)) if mibBuilder.loadTexts: stpTable.setStatus('mandatory') stp_entry = mib_table_row((1, 3, 6, 1, 4, 1, 72, 7, 3, 1)).setIndexNames((0, 'RETIX-MIB', 'stpIndex')) if mibBuilder.loadTexts: stpEntry.setStatus('mandatory') stp_index = mib_table_column((1, 3, 6, 1, 4, 1, 72, 7, 3, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: stpIndex.setStatus('mandatory') path_cost_mode = mib_table_column((1, 3, 6, 1, 4, 1, 72, 7, 3, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readwrite') if mibBuilder.loadTexts: pathCostMode.setStatus('mandatory') path_cost_auto_value = mib_table_column((1, 3, 6, 1, 4, 1, 72, 7, 3, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: pathCostAutoValue.setStatus('mandatory') path_cost_manual_value = mib_table_column((1, 3, 6, 1, 4, 1, 72, 7, 3, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: pathCostManualValue.setStatus('mandatory') port_spat_state = mib_table_column((1, 3, 6, 1, 4, 1, 72, 7, 3, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: portSpatState.setStatus('mandatory') port_priority_mode = mib_table_column((1, 3, 6, 1, 4, 1, 72, 7, 3, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readwrite') if mibBuilder.loadTexts: portPriorityMode.setStatus('mandatory') port_priority_auto_value = mib_table_column((1, 3, 6, 1, 4, 1, 72, 7, 3, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: portPriorityAutoValue.setStatus('mandatory') port_priority_manual_value = mib_table_column((1, 3, 6, 1, 4, 1, 72, 7, 3, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: portPriorityManualValue.setStatus('mandatory') spanning_tree = mib_scalar((1, 3, 6, 1, 4, 1, 72, 7, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readwrite') if mibBuilder.loadTexts: spanningTree.setStatus('mandatory') spat_priority = mib_scalar((1, 3, 6, 1, 4, 1, 72, 7, 5), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: spatPriority.setStatus('mandatory') spat_hello_timer = mib_scalar((1, 3, 6, 1, 4, 1, 72, 7, 6), integer32().subtype(subtypeSpec=value_range_constraint(1, 10))).setMaxAccess('readwrite') if mibBuilder.loadTexts: spatHelloTimer.setStatus('mandatory') spat_reset_timer = mib_scalar((1, 3, 6, 1, 4, 1, 72, 7, 7), integer32().subtype(subtypeSpec=value_range_constraint(1, 1800))).setMaxAccess('readwrite') if mibBuilder.loadTexts: spatResetTimer.setStatus('mandatory') spat_version = mib_scalar((1, 3, 6, 1, 4, 1, 72, 7, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(3, 8))).clone(namedValues=named_values(('revisionC', 3), ('revision8', 8)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: spatVersion.setStatus('mandatory') spanning_mcast_addr = mib_scalar((1, 3, 6, 1, 4, 1, 72, 7, 9), octet_string().subtype(subtypeSpec=value_size_constraint(6, 6)).setFixedLength(6)).setMaxAccess('readwrite') if mibBuilder.loadTexts: spanningMcastAddr.setStatus('mandatory') operating_mode = mib_scalar((1, 3, 6, 1, 4, 1, 72, 7, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readwrite') if mibBuilder.loadTexts: operatingMode.setStatus('mandatory') preconf_source_filter = mib_scalar((1, 3, 6, 1, 4, 1, 72, 7, 11), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readwrite') if mibBuilder.loadTexts: preconfSourceFilter.setStatus('mandatory') type_filter = mib_scalar((1, 3, 6, 1, 4, 1, 72, 7, 12), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readwrite') if mibBuilder.loadTexts: typeFilter.setStatus('mandatory') type_prioritisation = mib_scalar((1, 3, 6, 1, 4, 1, 72, 7, 13), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readwrite') if mibBuilder.loadTexts: typePrioritisation.setStatus('mandatory') dynamic_learning_in_lm = mib_scalar((1, 3, 6, 1, 4, 1, 72, 7, 14), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readwrite') if mibBuilder.loadTexts: dynamicLearningInLM.setStatus('mandatory') forget_address_timer = mib_scalar((1, 3, 6, 1, 4, 1, 72, 7, 15), integer32().subtype(subtypeSpec=value_range_constraint(24, 1000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: forgetAddressTimer.setStatus('mandatory') delete_address_timer = mib_scalar((1, 3, 6, 1, 4, 1, 72, 7, 16), integer32().subtype(subtypeSpec=value_range_constraint(1, 20000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: deleteAddressTimer.setStatus('mandatory') multicast_disposition = mib_scalar((1, 3, 6, 1, 4, 1, 72, 7, 17), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readwrite') if mibBuilder.loadTexts: multicastDisposition.setStatus('mandatory') filter_matches = mib_scalar((1, 3, 6, 1, 4, 1, 72, 7, 18), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readwrite') if mibBuilder.loadTexts: filterMatches.setStatus('mandatory') ieee_format_filter = mib_scalar((1, 3, 6, 1, 4, 1, 72, 7, 19), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieeeFormatFilter.setStatus('mandatory') priority_matches = mib_scalar((1, 3, 6, 1, 4, 1, 72, 7, 20), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readwrite') if mibBuilder.loadTexts: priorityMatches.setStatus('mandatory') ieee_format_priority = mib_scalar((1, 3, 6, 1, 4, 1, 72, 7, 21), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieeeFormatPriority.setStatus('mandatory') average_period = mib_scalar((1, 3, 6, 1, 4, 1, 72, 7, 22), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: averagePeriod.setStatus('mandatory') triangulation = mib_scalar((1, 3, 6, 1, 4, 1, 72, 7, 23), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readwrite') if mibBuilder.loadTexts: triangulation.setStatus('mandatory') adaptive_routing = mib_scalar((1, 3, 6, 1, 4, 1, 72, 7, 24), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readwrite') if mibBuilder.loadTexts: adaptiveRouting.setStatus('mandatory') adaptive_mcast_addr = mib_scalar((1, 3, 6, 1, 4, 1, 72, 7, 25), octet_string().subtype(subtypeSpec=value_size_constraint(6, 6)).setFixedLength(6)).setMaxAccess('readwrite') if mibBuilder.loadTexts: adaptiveMcastAddr.setStatus('mandatory') ar_address_info = mib_identifier((1, 3, 6, 1, 4, 1, 72, 7, 26)) standby_remote = mib_scalar((1, 3, 6, 1, 4, 1, 72, 7, 26, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: standbyRemote.setStatus('mandatory') standby_local = mib_scalar((1, 3, 6, 1, 4, 1, 72, 7, 26, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: standbyLocal.setStatus('mandatory') active_remote = mib_scalar((1, 3, 6, 1, 4, 1, 72, 7, 26, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: activeRemote.setStatus('mandatory') active_local = mib_scalar((1, 3, 6, 1, 4, 1, 72, 7, 26, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: activeLocal.setStatus('mandatory') max_serial_loading = mib_scalar((1, 3, 6, 1, 4, 1, 72, 7, 27), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: maxSerialLoading.setStatus('mandatory') serial_load_period = mib_scalar((1, 3, 6, 1, 4, 1, 72, 7, 28), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(10, 20, 30, 40, 50, 60))).clone(namedValues=named_values(('ten', 10), ('twenty', 20), ('thirty', 30), ('forty', 40), ('fifty', 50), ('sixty', 60)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: serialLoadPeriod.setStatus('mandatory') serial_loading = mib_scalar((1, 3, 6, 1, 4, 1, 72, 7, 29), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: serialLoading.setStatus('mandatory') filtering_data_base_table = mib_identifier((1, 3, 6, 1, 4, 1, 72, 7, 30)) filtering_db_table = mib_table((1, 3, 6, 1, 4, 1, 72, 7, 30, 1)) if mibBuilder.loadTexts: filteringDbTable.setStatus('mandatory') filtering_db_entry = mib_table_row((1, 3, 6, 1, 4, 1, 72, 7, 30, 1, 1)).setIndexNames((0, 'RETIX-MIB', 'filteringDbMacAddress')) if mibBuilder.loadTexts: filteringDbEntry.setStatus('mandatory') filtering_db_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 72, 7, 30, 1, 1, 1), octet_string().subtype(subtypeSpec=value_size_constraint(6, 6)).setFixedLength(6)).setMaxAccess('readwrite') if mibBuilder.loadTexts: filteringDbMacAddress.setStatus('mandatory') filtering_db_disposition = mib_table_column((1, 3, 6, 1, 4, 1, 72, 7, 30, 1, 1, 2), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: filteringDbDisposition.setStatus('mandatory') filtering_db_status = mib_table_column((1, 3, 6, 1, 4, 1, 72, 7, 30, 1, 1, 3), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: filteringDbStatus.setStatus('mandatory') filtering_db_type = mib_table_column((1, 3, 6, 1, 4, 1, 72, 7, 30, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('valid', 1), ('invalid', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: filteringDbType.setStatus('mandatory') filtering_db_action = mib_scalar((1, 3, 6, 1, 4, 1, 72, 7, 30, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('noAction', 1), ('clearTable', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: filteringDbAction.setStatus('mandatory') priority_table = mib_identifier((1, 3, 6, 1, 4, 1, 72, 7, 31)) priority_sub_table = mib_table((1, 3, 6, 1, 4, 1, 72, 7, 31, 1)) if mibBuilder.loadTexts: prioritySubTable.setStatus('mandatory') priority_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 72, 7, 31, 1, 1)).setIndexNames((0, 'RETIX-MIB', 'priorityTableEntryValue')) if mibBuilder.loadTexts: priorityTableEntry.setStatus('mandatory') priority_table_entry_value = mib_table_column((1, 3, 6, 1, 4, 1, 72, 7, 31, 1, 1, 1), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: priorityTableEntryValue.setStatus('mandatory') priority_table_entry_type = mib_table_column((1, 3, 6, 1, 4, 1, 72, 7, 31, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('valid', 1), ('invalid', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: priorityTableEntryType.setStatus('mandatory') priority_table_action = mib_scalar((1, 3, 6, 1, 4, 1, 72, 7, 31, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('noAction', 1), ('clearTable', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: priorityTableAction.setStatus('mandatory') priority_page = mib_scalar((1, 3, 6, 1, 4, 1, 72, 7, 31, 3), octet_string().subtype(subtypeSpec=value_size_constraint(16, 16)).setFixedLength(16)).setMaxAccess('readwrite') if mibBuilder.loadTexts: priorityPage.setStatus('optional') filter_table = mib_identifier((1, 3, 6, 1, 4, 1, 72, 7, 32)) filter_sub_table = mib_table((1, 3, 6, 1, 4, 1, 72, 7, 32, 1)) if mibBuilder.loadTexts: filterSubTable.setStatus('mandatory') filter_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 72, 7, 32, 1, 1)).setIndexNames((0, 'RETIX-MIB', 'filterTableEntryValue')) if mibBuilder.loadTexts: filterTableEntry.setStatus('mandatory') filter_table_entry_value = mib_table_column((1, 3, 6, 1, 4, 1, 72, 7, 32, 1, 1, 1), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: filterTableEntryValue.setStatus('mandatory') filter_table_entry_type = mib_table_column((1, 3, 6, 1, 4, 1, 72, 7, 32, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('valid', 1), ('invalid', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: filterTableEntryType.setStatus('mandatory') filter_table_action = mib_scalar((1, 3, 6, 1, 4, 1, 72, 7, 32, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('noAction', 1), ('clearTable', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: filterTableAction.setStatus('mandatory') filter_page = mib_scalar((1, 3, 6, 1, 4, 1, 72, 7, 32, 3), octet_string().subtype(subtypeSpec=value_size_constraint(16, 16)).setFixedLength(16)).setMaxAccess('readwrite') if mibBuilder.loadTexts: filterPage.setStatus('mandatory') ip_rs_table = mib_table((1, 3, 6, 1, 4, 1, 72, 10, 1)) if mibBuilder.loadTexts: ipRSTable.setStatus('mandatory') ip_rs_entry = mib_table_row((1, 3, 6, 1, 4, 1, 72, 10, 1, 1)).setIndexNames((0, 'RETIX-MIB', 'ipRSIndex')) if mibBuilder.loadTexts: ipRSEntry.setStatus('mandatory') ip_rs_index = mib_table_column((1, 3, 6, 1, 4, 1, 72, 10, 1, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipRSIndex.setStatus('mandatory') gw_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 72, 10, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 8))).clone(namedValues=named_values(('none', 1), ('rip', 8)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: gwProtocol.setStatus('mandatory') if_status = mib_table_column((1, 3, 6, 1, 4, 1, 72, 10, 1, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ifStatus.setStatus('mandatory') received_total_dgms = mib_table_column((1, 3, 6, 1, 4, 1, 72, 10, 1, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: receivedTotalDgms.setStatus('mandatory') transmitted_total_dgms = mib_table_column((1, 3, 6, 1, 4, 1, 72, 10, 1, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: transmittedTotalDgms.setStatus('mandatory') out_discards_total_dgms = mib_table_column((1, 3, 6, 1, 4, 1, 72, 10, 1, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: outDiscardsTotalDgms.setStatus('mandatory') no_route_total_dgms = mib_table_column((1, 3, 6, 1, 4, 1, 72, 10, 1, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: noRouteTotalDgms.setStatus('mandatory') icmp_rs_table = mib_identifier((1, 3, 6, 1, 4, 1, 72, 10, 2)) dest_unreach_last_rx = mib_scalar((1, 3, 6, 1, 4, 1, 72, 10, 2, 1), octet_string().subtype(subtypeSpec=value_size_constraint(13, 13)).setFixedLength(13)).setMaxAccess('readonly') if mibBuilder.loadTexts: destUnreachLastRx.setStatus('mandatory') dest_unreach_last_tx = mib_scalar((1, 3, 6, 1, 4, 1, 72, 10, 2, 2), octet_string().subtype(subtypeSpec=value_size_constraint(13, 13)).setFixedLength(13)).setMaxAccess('readonly') if mibBuilder.loadTexts: destUnreachLastTx.setStatus('mandatory') source_quench_last_rx = mib_scalar((1, 3, 6, 1, 4, 1, 72, 10, 2, 3), octet_string().subtype(subtypeSpec=value_size_constraint(13, 13)).setFixedLength(13)).setMaxAccess('readonly') if mibBuilder.loadTexts: sourceQuenchLastRx.setStatus('mandatory') source_quench_last_tx = mib_scalar((1, 3, 6, 1, 4, 1, 72, 10, 2, 4), octet_string().subtype(subtypeSpec=value_size_constraint(13, 13)).setFixedLength(13)).setMaxAccess('readonly') if mibBuilder.loadTexts: sourceQuenchLastTx.setStatus('mandatory') redirects_last_rx = mib_scalar((1, 3, 6, 1, 4, 1, 72, 10, 2, 5), octet_string().subtype(subtypeSpec=value_size_constraint(13, 13)).setFixedLength(13)).setMaxAccess('readonly') if mibBuilder.loadTexts: redirectsLastRx.setStatus('mandatory') redirects_last_tx = mib_scalar((1, 3, 6, 1, 4, 1, 72, 10, 2, 6), octet_string().subtype(subtypeSpec=value_size_constraint(13, 13)).setFixedLength(13)).setMaxAccess('readonly') if mibBuilder.loadTexts: redirectsLastTx.setStatus('mandatory') echo_requests_last_rx = mib_scalar((1, 3, 6, 1, 4, 1, 72, 10, 2, 7), octet_string().subtype(subtypeSpec=value_size_constraint(13, 13)).setFixedLength(13)).setMaxAccess('readonly') if mibBuilder.loadTexts: echoRequestsLastRx.setStatus('mandatory') echo_requests_last_tx = mib_scalar((1, 3, 6, 1, 4, 1, 72, 10, 2, 8), octet_string().subtype(subtypeSpec=value_size_constraint(13, 13)).setFixedLength(13)).setMaxAccess('readonly') if mibBuilder.loadTexts: echoRequestsLastTx.setStatus('mandatory') time_exceeded_last_rx = mib_scalar((1, 3, 6, 1, 4, 1, 72, 10, 2, 9), octet_string().subtype(subtypeSpec=value_size_constraint(13, 13)).setFixedLength(13)).setMaxAccess('readonly') if mibBuilder.loadTexts: timeExceededLastRx.setStatus('mandatory') time_exceeded_last_tx = mib_scalar((1, 3, 6, 1, 4, 1, 72, 10, 2, 10), octet_string().subtype(subtypeSpec=value_size_constraint(13, 13)).setFixedLength(13)).setMaxAccess('readonly') if mibBuilder.loadTexts: timeExceededLastTx.setStatus('mandatory') param_prob_last_rx = mib_scalar((1, 3, 6, 1, 4, 1, 72, 10, 2, 11), octet_string().subtype(subtypeSpec=value_size_constraint(13, 13)).setFixedLength(13)).setMaxAccess('readonly') if mibBuilder.loadTexts: paramProbLastRx.setStatus('mandatory') param_prob_last_tx = mib_scalar((1, 3, 6, 1, 4, 1, 72, 10, 2, 12), octet_string().subtype(subtypeSpec=value_size_constraint(13, 13)).setFixedLength(13)).setMaxAccess('readonly') if mibBuilder.loadTexts: paramProbLastTx.setStatus('mandatory') ip_routing = mib_scalar((1, 3, 6, 1, 4, 1, 72, 10, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipRouting.setStatus('mandatory') bootp_retry_count = mib_scalar((1, 3, 6, 1, 4, 1, 72, 11, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: bootpRetryCount.setStatus('mandatory') download_retry_count = mib_scalar((1, 3, 6, 1, 4, 1, 72, 11, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: downloadRetryCount.setStatus('mandatory') download_filename = mib_scalar((1, 3, 6, 1, 4, 1, 72, 11, 3), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readwrite') if mibBuilder.loadTexts: downloadFilename.setStatus('mandatory') bootserver_ip_address = mib_scalar((1, 3, 6, 1, 4, 1, 72, 11, 4), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: bootserverIpAddress.setStatus('mandatory') loadserver_ip_address = mib_scalar((1, 3, 6, 1, 4, 1, 72, 11, 5), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: loadserverIpAddress.setStatus('mandatory') unique_broadcast_address = mib_scalar((1, 3, 6, 1, 4, 1, 72, 11, 6), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: uniqueBroadcastAddress.setStatus('mandatory') tftp_retry_count = mib_scalar((1, 3, 6, 1, 4, 1, 72, 11, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: tftpRetryCount.setStatus('mandatory') tftp_retry_period = mib_scalar((1, 3, 6, 1, 4, 1, 72, 11, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: tftpRetryPeriod.setStatus('mandatory') initiate_bootp_dll = mib_scalar((1, 3, 6, 1, 4, 1, 72, 11, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('noAction', 1), ('initiateBoot', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: initiateBootpDll.setStatus('mandatory') boothelper_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 72, 12, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readwrite') if mibBuilder.loadTexts: boothelperEnabled.setStatus('mandatory') boothelper_hops_limit = mib_scalar((1, 3, 6, 1, 4, 1, 72, 12, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: boothelperHopsLimit.setStatus('mandatory') boothelper_forwarding_address = mib_scalar((1, 3, 6, 1, 4, 1, 72, 12, 3), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: boothelperForwardingAddress.setStatus('mandatory') ipx_routing = mib_scalar((1, 3, 6, 1, 4, 1, 72, 13, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipxRouting.setStatus('mandatory') ipx_if_number = mib_scalar((1, 3, 6, 1, 4, 1, 72, 13, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipxIfNumber.setStatus('mandatory') ipx_if_table = mib_table((1, 3, 6, 1, 4, 1, 72, 13, 1, 3)) if mibBuilder.loadTexts: ipxIfTable.setStatus('mandatory') ipx_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 72, 13, 1, 3, 1)).setIndexNames((0, 'RETIX-MIB', 'ipxIfIndex')) if mibBuilder.loadTexts: ipxIfEntry.setStatus('mandatory') ipx_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 1, 3, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipxIfIndex.setStatus('mandatory') ipx_if_nwk_number = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 1, 3, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(8, 8)).setFixedLength(8)).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipxIfNwkNumber.setStatus('mandatory') ipx_if_ipx_address = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 1, 3, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(26, 26)).setFixedLength(26)).setMaxAccess('readonly') if mibBuilder.loadTexts: ipxIfIPXAddress.setStatus('mandatory') ipx_if_encapsulation = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 1, 3, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 6))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipxIfEncapsulation.setStatus('mandatory') ipx_if_delay = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 1, 3, 1, 5), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipxIfDelay.setStatus('mandatory') ipx_routing_table = mib_table((1, 3, 6, 1, 4, 1, 72, 13, 1, 4)) if mibBuilder.loadTexts: ipxRoutingTable.setStatus('mandatory') ipx_rit_entry = mib_table_row((1, 3, 6, 1, 4, 1, 72, 13, 1, 4, 1)).setIndexNames((0, 'RETIX-MIB', 'ipxRITDestNwkNumber')) if mibBuilder.loadTexts: ipxRITEntry.setStatus('mandatory') ipx_rit_dest_nwk_number = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 1, 4, 1, 1), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipxRITDestNwkNumber.setStatus('mandatory') ipx_rit_gwy_host_address = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 1, 4, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(10, 10)).setFixedLength(10)).setMaxAccess('readonly') if mibBuilder.loadTexts: ipxRITGwyHostAddress.setStatus('mandatory') ipx_rit_hop_count = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 1, 4, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipxRITHopCount.setStatus('mandatory') ipx_rit_delay = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 1, 4, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipxRITDelay.setStatus('mandatory') ipx_rit_interface = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 1, 4, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipxRITInterface.setStatus('mandatory') ipx_rit_direct_connect = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 1, 4, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipxRITDirectConnect.setStatus('mandatory') ipx_sap_bindery_table = mib_table((1, 3, 6, 1, 4, 1, 72, 13, 1, 5)) if mibBuilder.loadTexts: ipxSAPBinderyTable.setStatus('mandatory') ipx_sap_bindery_entry = mib_table_row((1, 3, 6, 1, 4, 1, 72, 13, 1, 5, 1)).setIndexNames((0, 'RETIX-MIB', 'ipxSAPBinderyType'), (0, 'RETIX-MIB', 'ipxSAPBinderyServerIPXAddress')) if mibBuilder.loadTexts: ipxSAPBinderyEntry.setStatus('mandatory') ipx_sap_bindery_type = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 1, 5, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 36, 71, 65535))).clone(namedValues=named_values(('user', 1), ('userGroup', 2), ('printQueue', 3), ('fileServer', 4), ('jobServer', 5), ('gateway', 6), ('printServer', 7), ('archiveQueue', 8), ('archiveServer', 9), ('jobQueue', 10), ('administration', 11), ('remoteBridgeServer', 36), ('advertizingPrintServer', 71), ('wild', 65535)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ipxSAPBinderyType.setStatus('mandatory') ipx_sap_bindery_server_ipx_address = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 1, 5, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(26, 26)).setFixedLength(26)).setMaxAccess('readonly') if mibBuilder.loadTexts: ipxSAPBinderyServerIPXAddress.setStatus('mandatory') ipx_sap_bindery_server_name = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 1, 5, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(0, 48))).setMaxAccess('readonly') if mibBuilder.loadTexts: ipxSAPBinderyServerName.setStatus('mandatory') ipx_sap_bindery_hop_count = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 1, 5, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipxSAPBinderyHopCount.setStatus('mandatory') ipx_sap_bindery_socket = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 1, 5, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipxSAPBinderySocket.setStatus('mandatory') ipx_received_dgms = mib_scalar((1, 3, 6, 1, 4, 1, 72, 13, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipxReceivedDgms.setStatus('mandatory') ipx_transmitted_dgms = mib_scalar((1, 3, 6, 1, 4, 1, 72, 13, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipxTransmittedDgms.setStatus('mandatory') ipx_not_routed_rx_dgms = mib_scalar((1, 3, 6, 1, 4, 1, 72, 13, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipxNotRoutedRxDgms.setStatus('mandatory') ipx_forwarded_dgms = mib_scalar((1, 3, 6, 1, 4, 1, 72, 13, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipxForwardedDgms.setStatus('mandatory') ipx_in_delivers = mib_scalar((1, 3, 6, 1, 4, 1, 72, 13, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipxInDelivers.setStatus('mandatory') ipx_in_hdr_errors = mib_scalar((1, 3, 6, 1, 4, 1, 72, 13, 1, 11), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipxInHdrErrors.setStatus('mandatory') ipx_access_violations = mib_scalar((1, 3, 6, 1, 4, 1, 72, 13, 1, 12), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipxAccessViolations.setStatus('mandatory') ipx_in_discards = mib_scalar((1, 3, 6, 1, 4, 1, 72, 13, 1, 13), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipxInDiscards.setStatus('mandatory') ipx_out_discards = mib_scalar((1, 3, 6, 1, 4, 1, 72, 13, 1, 14), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipxOutDiscards.setStatus('mandatory') ipx_other_discards = mib_scalar((1, 3, 6, 1, 4, 1, 72, 13, 1, 15), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipxOtherDiscards.setStatus('mandatory') dcnt_routing = mib_scalar((1, 3, 6, 1, 4, 1, 72, 13, 2, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readwrite') if mibBuilder.loadTexts: dcntRouting.setStatus('mandatory') dcnt_if_number = mib_scalar((1, 3, 6, 1, 4, 1, 72, 13, 2, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: dcntIfNumber.setStatus('mandatory') dcnt_if_table = mib_table((1, 3, 6, 1, 4, 1, 72, 13, 2, 3)) if mibBuilder.loadTexts: dcntIfTable.setStatus('mandatory') dcnt_if_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 72, 13, 2, 3, 1)).setIndexNames((0, 'RETIX-MIB', 'dcntIfIndex')) if mibBuilder.loadTexts: dcntIfTableEntry.setStatus('mandatory') dcnt_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 2, 3, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: dcntIfIndex.setStatus('mandatory') dcnt_if_cost = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 2, 3, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 1023))).setMaxAccess('readwrite') if mibBuilder.loadTexts: dcntIfCost.setStatus('mandatory') dcnt_if_rtr_priority = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 2, 3, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 127))).setMaxAccess('readwrite') if mibBuilder.loadTexts: dcntIfRtrPriority.setStatus('mandatory') dcnt_if_desgntd_rtr = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 2, 3, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readonly') if mibBuilder.loadTexts: dcntIfDesgntdRtr.setStatus('mandatory') dcnt_if_hello_timer_bct3 = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 2, 3, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(1, 8191))).setMaxAccess('readwrite') if mibBuilder.loadTexts: dcntIfHelloTimerBCT3.setStatus('mandatory') dcnt_routing_table = mib_table((1, 3, 6, 1, 4, 1, 72, 13, 2, 4)) if mibBuilder.loadTexts: dcntRoutingTable.setStatus('mandatory') dcnt_rit_entry = mib_table_row((1, 3, 6, 1, 4, 1, 72, 13, 2, 4, 1)).setIndexNames((0, 'RETIX-MIB', 'dcntRITDestNode')) if mibBuilder.loadTexts: dcntRITEntry.setStatus('mandatory') dcnt_rit_dest_node = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 2, 4, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: dcntRITDestNode.setStatus('mandatory') dcnt_rit_next_hop = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 2, 4, 1, 2), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: dcntRITNextHop.setStatus('mandatory') dcnt_rit_cost = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 2, 4, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: dcntRITCost.setStatus('mandatory') dcnt_rit_hops = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 2, 4, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: dcntRITHops.setStatus('mandatory') dcnt_rit_interface = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 2, 4, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: dcntRITInterface.setStatus('mandatory') dcnt_area_routing_table = mib_table((1, 3, 6, 1, 4, 1, 72, 13, 2, 5)) if mibBuilder.loadTexts: dcntAreaRoutingTable.setStatus('mandatory') dcnt_area_rit_entry = mib_table_row((1, 3, 6, 1, 4, 1, 72, 13, 2, 5, 1)).setIndexNames((0, 'RETIX-MIB', 'dcntAreaRITDestArea')) if mibBuilder.loadTexts: dcntAreaRITEntry.setStatus('mandatory') dcnt_area_rit_dest_area = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 2, 5, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: dcntAreaRITDestArea.setStatus('mandatory') dcnt_area_rit_next_hop = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 2, 5, 1, 2), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: dcntAreaRITNextHop.setStatus('mandatory') dcnt_area_rit_cost = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 2, 5, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: dcntAreaRITCost.setStatus('mandatory') dcnt_area_rit_hops = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 2, 5, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: dcntAreaRITHops.setStatus('mandatory') dcnt_area_rit_interface = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 2, 5, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: dcntAreaRITInterface.setStatus('mandatory') dcnt_node_address = mib_scalar((1, 3, 6, 1, 4, 1, 72, 13, 2, 6), octet_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: dcntNodeAddress.setStatus('mandatory') dcnt_inter_area_max_cost = mib_scalar((1, 3, 6, 1, 4, 1, 72, 13, 2, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 1023))).setMaxAccess('readwrite') if mibBuilder.loadTexts: dcntInterAreaMaxCost.setStatus('mandatory') dcnt_inter_area_max_hops = mib_scalar((1, 3, 6, 1, 4, 1, 72, 13, 2, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 1023))).setMaxAccess('readwrite') if mibBuilder.loadTexts: dcntInterAreaMaxHops.setStatus('mandatory') dcnt_intra_area_max_cost = mib_scalar((1, 3, 6, 1, 4, 1, 72, 13, 2, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 1023))).setMaxAccess('readwrite') if mibBuilder.loadTexts: dcntIntraAreaMaxCost.setStatus('mandatory') dcnt_intra_area_max_hops = mib_scalar((1, 3, 6, 1, 4, 1, 72, 13, 2, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 1023))).setMaxAccess('readwrite') if mibBuilder.loadTexts: dcntIntraAreaMaxHops.setStatus('mandatory') dcnt_max_visits = mib_scalar((1, 3, 6, 1, 4, 1, 72, 13, 2, 11), integer32().subtype(subtypeSpec=value_range_constraint(0, 63))).setMaxAccess('readwrite') if mibBuilder.loadTexts: dcntMaxVisits.setStatus('mandatory') dcnt_rtng_msg_timer_bct1 = mib_scalar((1, 3, 6, 1, 4, 1, 72, 13, 2, 12), integer32().subtype(subtypeSpec=value_range_constraint(5, 30))).setMaxAccess('readwrite') if mibBuilder.loadTexts: dcntRtngMsgTimerBCT1.setStatus('mandatory') dcnt_rate_control_freq_timer_t2 = mib_scalar((1, 3, 6, 1, 4, 1, 72, 13, 2, 13), integer32().subtype(subtypeSpec=value_range_constraint(1, 5))).setMaxAccess('readwrite') if mibBuilder.loadTexts: dcntRateControlFreqTimerT2.setStatus('mandatory') dcnt_reveived_dgms = mib_scalar((1, 3, 6, 1, 4, 1, 72, 13, 2, 14), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: dcntReveivedDgms.setStatus('mandatory') dcnt_forwarded_dgms = mib_scalar((1, 3, 6, 1, 4, 1, 72, 13, 2, 15), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: dcntForwardedDgms.setStatus('mandatory') dcnt_out_requested_dgms = mib_scalar((1, 3, 6, 1, 4, 1, 72, 13, 2, 16), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: dcntOutRequestedDgms.setStatus('mandatory') dcnt_in_discards = mib_scalar((1, 3, 6, 1, 4, 1, 72, 13, 2, 17), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: dcntInDiscards.setStatus('mandatory') dcnt_out_discards = mib_scalar((1, 3, 6, 1, 4, 1, 72, 13, 2, 18), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: dcntOutDiscards.setStatus('mandatory') dcnt_no_routes = mib_scalar((1, 3, 6, 1, 4, 1, 72, 13, 2, 19), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: dcntNoRoutes.setStatus('mandatory') dcnt_in_hdr_errors = mib_scalar((1, 3, 6, 1, 4, 1, 72, 13, 2, 20), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: dcntInHdrErrors.setStatus('mandatory') rmt_lapb_config_table = mib_table((1, 3, 6, 1, 4, 1, 72, 13, 3, 1)) if mibBuilder.loadTexts: rmtLapbConfigTable.setStatus('mandatory') rmt_lapb_ct_entry = mib_table_row((1, 3, 6, 1, 4, 1, 72, 13, 3, 1, 1)).setIndexNames((0, 'RETIX-MIB', 'rmtLapbCTIndex')) if mibBuilder.loadTexts: rmtLapbCTEntry.setStatus('mandatory') rmt_lapb_ct_index = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 3, 1, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rmtLapbCTIndex.setStatus('mandatory') rmt_lapb_ct_link_addr = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 3, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readwrite') if mibBuilder.loadTexts: rmtLapbCTLinkAddr.setStatus('mandatory') rmt_lapb_ct_ext_seq_numbering = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 3, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readwrite') if mibBuilder.loadTexts: rmtLapbCTExtSeqNumbering.setStatus('mandatory') rmt_lapb_ct_window = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 3, 1, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 127))).setMaxAccess('readwrite') if mibBuilder.loadTexts: rmtLapbCTWindow.setStatus('mandatory') rmt_lapb_ct_mode_t1 = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 3, 1, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readwrite') if mibBuilder.loadTexts: rmtLapbCTModeT1.setStatus('mandatory') rmt_lapb_ct_manual_t1_value = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 3, 1, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(10, 5000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: rmtLapbCTManualT1Value.setStatus('mandatory') rmt_lapb_ctt3_link_idle_timer = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 3, 1, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: rmtLapbCTT3LinkIdleTimer.setStatus('mandatory') rmt_lapb_ctn2_retry_count = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 3, 1, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(1, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: rmtLapbCTN2RetryCount.setStatus('mandatory') rmt_lapb_ct_link_reset = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 3, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('noAction', 1), ('resetLink', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: rmtLapbCTLinkReset.setStatus('mandatory') rmt_lapb_ctx25_port_line_speed = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 3, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1200, 2400, 4800, 9600, 19200, 32000, 48000, 64000))).clone(namedValues=named_values(('b1200', 1200), ('b2400', 2400), ('b4800', 4800), ('b9600', 9600), ('b19200', 19200), ('b32000', 32000), ('b48000', 48000), ('b64000', 64000)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: rmtLapbCTX25PortLineSpeed.setStatus('mandatory') rmt_lapb_ct_init_link_connect = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 3, 1, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('noAction', 1), ('connect', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: rmtLapbCTInitLinkConnect.setStatus('mandatory') rmt_lapb_stats_table = mib_table((1, 3, 6, 1, 4, 1, 72, 13, 3, 2)) if mibBuilder.loadTexts: rmtLapbStatsTable.setStatus('mandatory') rmt_lapb_st_entry = mib_table_row((1, 3, 6, 1, 4, 1, 72, 13, 3, 2, 1)).setIndexNames((0, 'RETIX-MIB', 'rmtLapbSTIndex')) if mibBuilder.loadTexts: rmtLapbSTEntry.setStatus('mandatory') rmt_lapb_st_index = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 3, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rmtLapbSTIndex.setStatus('mandatory') rmt_lapb_st_state = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 3, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 3))).setMaxAccess('readonly') if mibBuilder.loadTexts: rmtLapbSTState.setStatus('mandatory') rmt_lapb_st_auto_t1value = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 3, 2, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rmtLapbSTAutoT1value.setStatus('mandatory') rmt_lapb_st_last_reset_time = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 3, 2, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(13, 13)).setFixedLength(13)).setMaxAccess('readonly') if mibBuilder.loadTexts: rmtLapbSTLastResetTime.setStatus('mandatory') rmt_lapb_st_last_reset_reason = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 3, 2, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 8))).setMaxAccess('readonly') if mibBuilder.loadTexts: rmtLapbSTLastResetReason.setStatus('mandatory') rmt_lapb_st_count_resets = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 3, 2, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rmtLapbSTCountResets.setStatus('mandatory') rmt_lapb_st_count_sent_frames = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 3, 2, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rmtLapbSTCountSentFrames.setStatus('mandatory') rmt_lapb_st_count_rcv_frames = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 3, 2, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rmtLapbSTCountRcvFrames.setStatus('mandatory') rmt_lapb_st_count_sent_octets = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 3, 2, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rmtLapbSTCountSentOctets.setStatus('mandatory') rmt_lapb_st_count_rcv_octets = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 3, 2, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rmtLapbSTCountRcvOctets.setStatus('mandatory') rmt_lapb_st_count_aborts = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 3, 2, 1, 11), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rmtLapbSTCountAborts.setStatus('mandatory') rmt_lapb_st_count_crc_errors = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 3, 2, 1, 12), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rmtLapbSTCountCrcErrors.setStatus('mandatory') x25_operation = mib_scalar((1, 3, 6, 1, 4, 1, 72, 13, 4, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readonly') if mibBuilder.loadTexts: x25Operation.setStatus('mandatory') x25_oper_next_reset = mib_scalar((1, 3, 6, 1, 4, 1, 72, 13, 4, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readwrite') if mibBuilder.loadTexts: x25OperNextReset.setStatus('mandatory') x25_con_setup_table = mib_table((1, 3, 6, 1, 4, 1, 72, 13, 4, 3)) if mibBuilder.loadTexts: x25ConSetupTable.setStatus('mandatory') x25_cst_entry = mib_table_row((1, 3, 6, 1, 4, 1, 72, 13, 4, 3, 1)).setIndexNames((0, 'RETIX-MIB', 'x25CSTIndex')) if mibBuilder.loadTexts: x25CSTEntry.setStatus('mandatory') x25_cst_index = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 3, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: x25CSTIndex.setStatus('mandatory') x25_cst8084_switch = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 3, 1, 2), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: x25CST8084Switch.setStatus('mandatory') x25_cst_src_dte_addr = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 3, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(15, 15)).setFixedLength(15)).setMaxAccess('readwrite') if mibBuilder.loadTexts: x25CSTSrcDTEAddr.setStatus('mandatory') x25_cst_dest_dte_addr = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 3, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(15, 15)).setFixedLength(15)).setMaxAccess('readwrite') if mibBuilder.loadTexts: x25CSTDestDTEAddr.setStatus('mandatory') x25_cst2_way_lgcl_chan_num = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 3, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(1, 4095))).setMaxAccess('readwrite') if mibBuilder.loadTexts: x25CST2WayLgclChanNum.setStatus('mandatory') x25_cst_pkt_seq_num_flg = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 3, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 4))).clone(namedValues=named_values(('mod8', 1), ('mod128', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: x25CSTPktSeqNumFlg.setStatus('mandatory') x25_cst_flow_cntrl_neg = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 3, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readwrite') if mibBuilder.loadTexts: x25CSTFlowCntrlNeg.setStatus('mandatory') x25_cst_default_win_size = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 3, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(1, 127))).setMaxAccess('readwrite') if mibBuilder.loadTexts: x25CSTDefaultWinSize.setStatus('mandatory') x25_cst_default_pkt_size = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 3, 1, 9), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: x25CSTDefaultPktSize.setStatus('mandatory') x25_cst_neg_win_size = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 3, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(1, 127))).setMaxAccess('readwrite') if mibBuilder.loadTexts: x25CSTNegWinSize.setStatus('mandatory') x25_cst_neg_pkt_size = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 3, 1, 11), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: x25CSTNegPktSize.setStatus('mandatory') x25_cstcug_sub = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 3, 1, 12), integer32().subtype(subtypeSpec=value_range_constraint(0, 4))).setMaxAccess('readwrite') if mibBuilder.loadTexts: x25CSTCUGSub.setStatus('mandatory') x25_cst_lcl_cug_value = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 3, 1, 13), integer32().subtype(subtypeSpec=value_range_constraint(0, 99))).setMaxAccess('readwrite') if mibBuilder.loadTexts: x25CSTLclCUGValue.setStatus('mandatory') x25_cst_rvrs_chrg_req = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 3, 1, 14), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readwrite') if mibBuilder.loadTexts: x25CSTRvrsChrgReq.setStatus('mandatory') x25_cst_rvrs_chrg_acc = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 3, 1, 15), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readwrite') if mibBuilder.loadTexts: x25CSTRvrsChrgAcc.setStatus('mandatory') x25_con_control_table = mib_table((1, 3, 6, 1, 4, 1, 72, 13, 4, 4)) if mibBuilder.loadTexts: x25ConControlTable.setStatus('mandatory') x25_cct_entry = mib_table_row((1, 3, 6, 1, 4, 1, 72, 13, 4, 4, 1)).setIndexNames((0, 'RETIX-MIB', 'x25CCTIndex')) if mibBuilder.loadTexts: x25CCTEntry.setStatus('mandatory') x25_cct_index = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 4, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: x25CCTIndex.setStatus('mandatory') x25_cct_manual_connect = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 4, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('noAction', 1), ('connect', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: x25CCTManualConnect.setStatus('mandatory') x25_cct_manual_disconnect = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 4, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('noAction', 1), ('disconnect', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: x25CCTManualDisconnect.setStatus('mandatory') x25_cct_cfg_auto_con_retry = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 4, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readwrite') if mibBuilder.loadTexts: x25CCTCfgAutoConRetry.setStatus('mandatory') x25_cct_oper_auto_con_retry_flg = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 4, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readonly') if mibBuilder.loadTexts: x25CCTOperAutoConRetryFlg.setStatus('mandatory') x25_cct_auto_con_retry_timer = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 4, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(1, 3600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: x25CCTAutoConRetryTimer.setStatus('mandatory') x25_cct_max_auto_con_retries = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 4, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: x25CCTMaxAutoConRetries.setStatus('mandatory') x25_cct_cfg_tod_control = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 4, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readwrite') if mibBuilder.loadTexts: x25CCTCfgTODControl.setStatus('mandatory') x25_cct_current_tod_control = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 4, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readwrite') if mibBuilder.loadTexts: x25CCTCurrentTODControl.setStatus('mandatory') x25_ccttod_to_connect = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 4, 1, 10), octet_string().subtype(subtypeSpec=value_size_constraint(4, 4)).setFixedLength(4)).setMaxAccess('readwrite') if mibBuilder.loadTexts: x25CCTTODToConnect.setStatus('mandatory') x25_ccttod_to_disconnect = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 4, 1, 11), octet_string().subtype(subtypeSpec=value_size_constraint(4, 4)).setFixedLength(4)).setMaxAccess('readwrite') if mibBuilder.loadTexts: x25CCTTODToDisconnect.setStatus('mandatory') x25_timer_table = mib_table((1, 3, 6, 1, 4, 1, 72, 13, 4, 5)) if mibBuilder.loadTexts: x25TimerTable.setStatus('mandatory') x25_tt_entry = mib_table_row((1, 3, 6, 1, 4, 1, 72, 13, 4, 5, 1)).setIndexNames((0, 'RETIX-MIB', 'x25TTIndex')) if mibBuilder.loadTexts: x25TTEntry.setStatus('mandatory') x25_tt_index = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 5, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: x25TTIndex.setStatus('mandatory') x25_ttt20_timer = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 5, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 1024))).setMaxAccess('readwrite') if mibBuilder.loadTexts: x25TTT20Timer.setStatus('mandatory') x25_ttt21_timer = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 5, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(1, 1024))).setMaxAccess('readwrite') if mibBuilder.loadTexts: x25TTT21Timer.setStatus('mandatory') x25_ttt22_timer = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 5, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 1024))).setMaxAccess('readwrite') if mibBuilder.loadTexts: x25TTT22Timer.setStatus('mandatory') x25_ttt23_timer = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 5, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(1, 1024))).setMaxAccess('readwrite') if mibBuilder.loadTexts: x25TTT23Timer.setStatus('mandatory') x25_ttr20_limit = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 5, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(1, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: x25TTR20Limit.setStatus('mandatory') x25_ttr22_limit = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 5, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(1, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: x25TTR22Limit.setStatus('mandatory') x25_ttr23_limit = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 5, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(1, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: x25TTR23Limit.setStatus('mandatory') x25_status_table = mib_table((1, 3, 6, 1, 4, 1, 72, 13, 4, 6)) if mibBuilder.loadTexts: x25StatusTable.setStatus('mandatory') x25_status_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 72, 13, 4, 6, 1)).setIndexNames((0, 'RETIX-MIB', 'x25StatusIndex')) if mibBuilder.loadTexts: x25StatusTableEntry.setStatus('mandatory') x25_status_index = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 6, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: x25StatusIndex.setStatus('mandatory') x25_status_if_status = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 6, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: x25StatusIfStatus.setStatus('mandatory') x25_status_svc_status = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 6, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: x25StatusSVCStatus.setStatus('mandatory') x25_status_win_size = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 6, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: x25StatusWinSize.setStatus('mandatory') x25_status_pkt_size = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 6, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: x25StatusPktSize.setStatus('mandatory') x25_status_cause_last_in_clear = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 6, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: x25StatusCauseLastInClear.setStatus('mandatory') x25_status_diag_last_in_clear = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 6, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: x25StatusDiagLastInClear.setStatus('mandatory') x25_stats_table = mib_table((1, 3, 6, 1, 4, 1, 72, 13, 4, 7)) if mibBuilder.loadTexts: x25StatsTable.setStatus('mandatory') x25_stats_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 72, 13, 4, 7, 1)).setIndexNames((0, 'RETIX-MIB', 'x25STSVCIndex')) if mibBuilder.loadTexts: x25StatsTableEntry.setStatus('mandatory') x25_stsvc_index = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 7, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: x25STSVCIndex.setStatus('mandatory') x25_st_tx_data_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 7, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: x25STTxDataPkts.setStatus('mandatory') x25_st_rx_data_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 7, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: x25STRxDataPkts.setStatus('mandatory') x25_st_tx_connect_req_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 7, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: x25STTxConnectReqPkts.setStatus('mandatory') x25_st_rx_incoming_call_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 7, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: x25STRxIncomingCallPkts.setStatus('mandatory') x25_st_tx_clear_req_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 7, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: x25STTxClearReqPkts.setStatus('mandatory') x25_st_rx_clear_ind_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 7, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: x25STRxClearIndPkts.setStatus('mandatory') x25_st_tx_reset_req_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 7, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: x25STTxResetReqPkts.setStatus('mandatory') x25_st_rx_reset_ind_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 7, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: x25STRxResetIndPkts.setStatus('mandatory') x25_st_tx_restart_req_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 7, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: x25STTxRestartReqPkts.setStatus('mandatory') x25_st_rx_restart_ind_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 72, 13, 4, 7, 1, 11), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: x25STRxRestartIndPkts.setStatus('mandatory') mibBuilder.exportSymbols('RETIX-MIB', x25StatsTable=x25StatsTable, ipxOtherDiscards=ipxOtherDiscards, mlink=mlink, triangulation=triangulation, x25STTxDataPkts=x25STTxDataPkts, redirectsLastTx=redirectsLastTx, trapDestEntry=trapDestEntry, serialLoading=serialLoading, x25StatusDiagLastInClear=x25StatusDiagLastInClear, receivedTotalDgms=receivedTotalDgms, snmpAccessPolicyTable=snmpAccessPolicyTable, phySerIfT1frameAndCode=phySerIfT1frameAndCode, x25CSTDefaultWinSize=x25CSTDefaultWinSize, maxRejectedFrames=maxRejectedFrames, x25CCTEntry=x25CCTEntry, x25CSTSrcDTEAddr=x25CSTSrcDTEAddr, filterTableAction=filterTableAction, authenticationTrapStatus=authenticationTrapStatus, ipRouting=ipRouting, operatingMode=operatingMode, lapbCountRcvOctets=lapbCountRcvOctets, ipxRITInterface=ipxRITInterface, phySerIfTransitDelay=phySerIfTransitDelay, priorityMatches=priorityMatches, x25STTxConnectReqPkts=x25STTxConnectReqPkts, x25CSTFlowCntrlNeg=x25CSTFlowCntrlNeg, ipxRITEntry=ipxRITEntry, ieee8023Entry=ieee8023Entry, averagePeriod=averagePeriod, remote=remote, x25=x25, x25STTxRestartReqPkts=x25STTxRestartReqPkts, dcntIfCost=dcntIfCost, lapbEntry=lapbEntry, ifStatus=ifStatus, ipxIfEntry=ipxIfEntry, mlinkTable=mlinkTable, ipxNotRoutedRxDgms=ipxNotRoutedRxDgms, ieee8023FrameTooLongs=ieee8023FrameTooLongs, portPriorityAutoValue=portPriorityAutoValue, phySerIfT1SlotLvalue=phySerIfT1SlotLvalue, spatHelloTimer=spatHelloTimer, rmtLapbStatsTable=rmtLapbStatsTable, internalQueueCurrentLength=internalQueueCurrentLength, ipxRITGwyHostAddress=ipxRITGwyHostAddress, dcntIntraAreaMaxCost=dcntIntraAreaMaxCost, bridge=bridge, ieee8023NewMACAddressIndex=ieee8023NewMACAddressIndex, echoRequestsLastTx=echoRequestsLastTx, rmtLapbSTCountSentOctets=rmtLapbSTCountSentOctets, mlinkIndex=mlinkIndex, lapbLastResetReason=lapbLastResetReason, x25CSTDestDTEAddr=x25CSTDestDTEAddr, ipxForwardedDgms=ipxForwardedDgms, boothelper=boothelper, dcntRITCost=dcntRITCost, dcntNodeAddress=dcntNodeAddress, rmtLapbSTIndex=rmtLapbSTIndex, ieee8023FramesReceivedOks=ieee8023FramesReceivedOks, sourceQuenchLastTx=sourceQuenchLastTx, lanAccepts=lanAccepts, ieee8023SingleCollisionFrames=ieee8023SingleCollisionFrames, snmpAccessPolicyAction=snmpAccessPolicyAction, ipxSAPBinderyEntry=ipxSAPBinderyEntry, maxSerialLoading=maxSerialLoading, ipxTransmittedDgms=ipxTransmittedDgms, phySerIfT1dRatePerChan=phySerIfT1dRatePerChan, x25CCTMaxAutoConRetries=x25CCTMaxAutoConRetries, x25CSTIndex=x25CSTIndex, portSpatState=portSpatState, x25StatusIfStatus=x25StatusIfStatus, lapbIndex=lapbIndex, downloadRetryCount=downloadRetryCount, x25ConControlTable=x25ConControlTable, x25STRxIncomingCallPkts=x25STRxIncomingCallPkts, ipxIfNwkNumber=ipxIfNwkNumber, stpTable=stpTable, dcntForwardedDgms=dcntForwardedDgms, ieee8023LateCollisions=ieee8023LateCollisions, activeRemote=activeRemote, ipxRITDirectConnect=ipxRITDirectConnect, filterSubTable=filterSubTable, x25CCTManualDisconnect=x25CCTManualDisconnect, lapbCountAborts=lapbCountAborts, rmtLapbSTLastResetReason=rmtLapbSTLastResetReason, x25StatusCauseLastInClear=x25StatusCauseLastInClear, x25TTT23Timer=x25TTT23Timer, ieee8023MulticastReceiveStatus=ieee8023MulticastReceiveStatus, ieee8023NewMACAddressEntry=ieee8023NewMACAddressEntry, dynamicLearningInLM=dynamicLearningInLM, mlinkEntry=mlinkEntry, retix=retix, dcntIfHelloTimerBCT3=dcntIfHelloTimerBCT3, ieee8023MulticastFramesReceivedOks=ieee8023MulticastFramesReceivedOks, rmtLapbCTExtSeqNumbering=rmtLapbCTExtSeqNumbering, dcntAreaRITEntry=dcntAreaRITEntry, x25StatusTable=x25StatusTable, redirectsLastRx=redirectsLastRx, ieee8023OctetsTransmittedOks=ieee8023OctetsTransmittedOks, ieee8023InternalMACTransmitErrors=ieee8023InternalMACTransmitErrors, snmpAccessPolicyType=snmpAccessPolicyType, ieee8023FramesTransmittedOks=ieee8023FramesTransmittedOks, x25CCTIndex=x25CCTIndex, dcntAreaRoutingTable=dcntAreaRoutingTable, ieee8023MulticastFramesTransmittedOks=ieee8023MulticastFramesTransmittedOks, ipxInDiscards=ipxInDiscards, product=product, x25TTT22Timer=x25TTT22Timer, typeFilter=typeFilter, ieee8023CarrierSenseErrors=ieee8023CarrierSenseErrors, stpIndex=stpIndex, uniqueBroadcastAddress=uniqueBroadcastAddress, boothelperEnabled=boothelperEnabled, trapDestAction=trapDestAction, snmpAccessPolicyObject=snmpAccessPolicyObject, dcntRITInterface=dcntRITInterface, x25STRxResetIndPkts=x25STRxResetIndPkts, trapDestinationTable=trapDestinationTable, lapbState=lapbState, expressQueueUpperLimit=expressQueueUpperLimit, ipxRITDestNwkNumber=ipxRITDestNwkNumber, accessPolicyIndex=accessPolicyIndex, filteringDbStatus=filteringDbStatus, ipxIfIndex=ipxIfIndex, phySerIfTable=phySerIfTable, rmtLapbSTCountResets=rmtLapbSTCountResets, x25StatsTableEntry=x25StatsTableEntry, station=station, dcntIntraAreaMaxHops=dcntIntraAreaMaxHops, filteringDbDisposition=filteringDbDisposition, rmtLapbCTN2RetryCount=rmtLapbCTN2RetryCount, spanningTree=spanningTree, downloadFilename=downloadFilename, ieee8023=ieee8023, filteringDbEntry=filteringDbEntry, ieee8023NewMACAddress=ieee8023NewMACAddress, phySerIfMeasuredSpeed=phySerIfMeasuredSpeed, accessMode=accessMode, x25CCTAutoConRetryTimer=x25CCTAutoConRetryTimer, lapbWindow=lapbWindow, dcntIfTableEntry=dcntIfTableEntry, typePrioritisation=typePrioritisation, loPriQueueUpperLimit=loPriQueueUpperLimit, lapbPolarity=lapbPolarity, x25CSTRvrsChrgAcc=x25CSTRvrsChrgAcc, x25CST8084Switch=x25CST8084Switch, rmtLapbSTEntry=rmtLapbSTEntry, x25STRxClearIndPkts=x25STRxClearIndPkts, dcntInterAreaMaxHops=dcntInterAreaMaxHops, rmtLapbSTLastResetTime=rmtLapbSTLastResetTime, spatVersion=spatVersion, priorityPage=priorityPage, echoRequestsLastRx=echoRequestsLastRx, rmtLapbCTLinkReset=rmtLapbCTLinkReset, dcntInterAreaMaxCost=dcntInterAreaMaxCost, phySerIfPortSpeed=phySerIfPortSpeed, ieee8023Index=ieee8023Index, dcntOutRequestedDgms=dcntOutRequestedDgms, ieee8023Number=ieee8023Number, rmtLapbCTInitLinkConnect=rmtLapbCTInitLinkConnect, priorityTableEntryValue=priorityTableEntryValue, stationTime=stationTime, forgetAddressTimer=forgetAddressTimer, ipxIfTable=ipxIfTable, x25ConSetupTable=x25ConSetupTable, phySerIfT1SlotHvalue=phySerIfT1SlotHvalue, dcntRateControlFreqTimerT2=dcntRateControlFreqTimerT2, ipxRITDelay=ipxRITDelay, ieee8023AlignmentErrors=ieee8023AlignmentErrors, rmtLapbCTModeT1=rmtLapbCTModeT1, deletedMlinkFrames=deletedMlinkFrames, stpEntry=stpEntry, filterTableEntryValue=filterTableEntryValue, ieee8023ExcessiveDeferrals=ieee8023ExcessiveDeferrals, ieee8023FCSErrors=ieee8023FCSErrors, queueUpperLimit=queueUpperLimit, x25CSTEntry=x25CSTEntry, dcntRITEntry=dcntRITEntry, ipxOutDiscards=ipxOutDiscards, dcntAreaRITCost=dcntAreaRITCost, expressQueueCurrentLength=expressQueueCurrentLength, resetStation=resetStation, ieee8023InternalMACReceiveErrors=ieee8023InternalMACReceiveErrors, icmpRSTable=icmpRSTable, ipxIfEncapsulation=ipxIfEncapsulation, dcntNoRoutes=dcntNoRoutes, ipxSAPBinderyServerIPXAddress=ipxSAPBinderyServerIPXAddress, x25Operation=x25Operation, phySerIfIsSpeedsettable=phySerIfIsSpeedsettable, ieee8023BroadcastFramesTransmittedOks=ieee8023BroadcastFramesTransmittedOks, phySerIfEntry=phySerIfEntry, lanInterfaceType=lanInterfaceType, mlinkSendSeq=mlinkSendSeq, rmtLapbSTState=rmtLapbSTState, dcntRouting=dcntRouting, ipxSAPBinderyHopCount=ipxSAPBinderyHopCount, rmtLapbConfigTable=rmtLapbConfigTable, rmtLapbSTCountCrcErrors=rmtLapbSTCountCrcErrors, lapb=lapb, rmtLapb=rmtLapb, physBlkSize=physBlkSize, ipxInDelivers=ipxInDelivers, mlinkRxTimeout=mlinkRxTimeout, trapDestEntryCommunityName=trapDestEntryCommunityName, ieeeFormatPriority=ieeeFormatPriority, x25TimerTable=x25TimerTable, lapbCountResets=lapbCountResets, x25CCTManualConnect=x25CCTManualConnect, x25TTR20Limit=x25TTR20Limit, ipxRouting=ipxRouting, trapDestEntryIpAddr=trapDestEntryIpAddr, ipxInHdrErrors=ipxInHdrErrors, x25StatusTableEntry=x25StatusTableEntry, x25CCTOperAutoConRetryFlg=x25CCTOperAutoConRetryFlg, lapbCountRcvFrames=lapbCountRcvFrames, pathCostAutoValue=pathCostAutoValue, filteringDbAction=filteringDbAction, x25OperNextReset=x25OperNextReset, loPriQueueCurrentLength=loPriQueueCurrentLength, spanningMcastAddr=spanningMcastAddr, timeExceededLastTx=timeExceededLastTx, ieee8023SQETestErrors=ieee8023SQETestErrors, newPhysBlkSize=newPhysBlkSize, portNumber=portNumber, rmtLapbSTCountRcvFrames=rmtLapbSTCountRcvFrames, rmtLapbCTX25PortLineSpeed=rmtLapbCTX25PortLineSpeed, ipxSAPBinderyTable=ipxSAPBinderyTable, filteringDbMacAddress=filteringDbMacAddress, dcntIfNumber=dcntIfNumber, paramProbLastTx=paramProbLastTx, phySerIfT1clockSource=phySerIfT1clockSource, dcntIfDesgntdRtr=dcntIfDesgntdRtr, mlinkState=mlinkState, preconfSourceFilter=preconfSourceFilter, x25STRxDataPkts=x25STRxDataPkts, ipRSEntry=ipRSEntry, tftpRetryPeriod=tftpRetryPeriod, x25TTR23Limit=x25TTR23Limit, lapbModeT1=lapbModeT1, phySerIfPartnerAddress=phySerIfPartnerAddress, phySerIfNumber=phySerIfNumber, boothelperForwardingAddress=boothelperForwardingAddress, bridgeStatsEntry=bridgeStatsEntry, ipxSAPBinderyType=ipxSAPBinderyType, rmtLapbSTCountRcvOctets=rmtLapbSTCountRcvOctets, dcntAreaRITNextHop=dcntAreaRITNextHop, rmtLapbCTEntry=rmtLapbCTEntry, phySerIf=phySerIf, lapbNumber=lapbNumber, x25StatusIndex=x25StatusIndex, ipxReceivedDgms=ipxReceivedDgms, ieee8023InitializeMAC=ieee8023InitializeMAC, portPriorityMode=portPriorityMode, x25CSTNegWinSize=x25CSTNegWinSize) mibBuilder.exportSymbols('RETIX-MIB', ieee8023MultipleCollisionFrames=ieee8023MultipleCollisionFrames, x25CSTPktSeqNumFlg=x25CSTPktSeqNumFlg, paramProbLastRx=paramProbLastRx, lapbRetryCount=lapbRetryCount, deletedLanFrames=deletedLanFrames, x25TTIndex=x25TTIndex, priorityTableAction=priorityTableAction, boot=boot, mlinkRcvSeq=mlinkRcvSeq, spatResetTimer=spatResetTimer, mlinkLostFrames=mlinkLostFrames, ieeeFormatFilter=ieeeFormatFilter, filteringDbType=filteringDbType, snmpAccessPolicyEntry=snmpAccessPolicyEntry, timeExceededLastRx=timeExceededLastRx, standbyRemote=standbyRemote, x25TTT21Timer=x25TTT21Timer, lapbLastResetTime=lapbLastResetTime, destUnreachLastRx=destUnreachLastRx, initiateBootpDll=initiateBootpDll, ieee8023inRangeLengthErrors=ieee8023inRangeLengthErrors, ipxAccessViolations=ipxAccessViolations, loadserverIpAddress=loadserverIpAddress, ipxSAPBinderySocket=ipxSAPBinderySocket, ieee8023DeferredTransmissions=ieee8023DeferredTransmissions, dcntIfRtrPriority=dcntIfRtrPriority, averageForwardedFrames=averageForwardedFrames, x25CCTTODToConnect=x25CCTTODToConnect, rmtLapbSTCountSentFrames=rmtLapbSTCountSentFrames, x25StatusWinSize=x25StatusWinSize, ipxSAPBinderyServerName=ipxSAPBinderyServerName, dcntIfIndex=dcntIfIndex, boothelperHopsLimit=boothelperHopsLimit, router=router, serialLoadPeriod=serialLoadPeriod, hiPriQueueCurrentLength=hiPriQueueCurrentLength, ipxIfIPXAddress=ipxIfIPXAddress, standbyLocal=standbyLocal, spatPriority=spatPriority, ieee8023BroadcastFramesReceivedOks=ieee8023BroadcastFramesReceivedOks, destUnreachLastTx=destUnreachLastTx, multicastDisposition=multicastDisposition, gwProtocol=gwProtocol, transmittedTotalDgms=transmittedTotalDgms, pathCostMode=pathCostMode, phySerIfIndex=phySerIfIndex, x25CSTLclCUGValue=x25CSTLclCUGValue, x25CSTNegPktSize=x25CSTNegPktSize, filterTableEntry=filterTableEntry, resetStats=resetStats, lapbManualT1value=lapbManualT1value, trapDestTable=trapDestTable, x25TTEntry=x25TTEntry, dcntRITDestNode=dcntRITDestNode, dcntInDiscards=dcntInDiscards, dcntMaxVisits=dcntMaxVisits, rmtLapbSTCountAborts=rmtLapbSTCountAborts, rmtLapbSTAutoT1value=rmtLapbSTAutoT1value, rmtLapbCTLinkAddr=rmtLapbCTLinkAddr, ipxRoutingTable=ipxRoutingTable, rmtLapbCTManualT1Value=rmtLapbCTManualT1Value, ieee8023PromiscuousReceiveStatus=ieee8023PromiscuousReceiveStatus, filterTable=filterTable, x25CCTCurrentTODControl=x25CCTCurrentTODControl, ieee8023MACAddress=ieee8023MACAddress, lan=lan, sourceQuenchLastRx=sourceQuenchLastRx, x25CSTCUGSub=x25CSTCUGSub, serialTxQueueSize=serialTxQueueSize, dcntIfTable=dcntIfTable, communityName=communityName, dcntRtngMsgTimerBCT1=dcntRtngMsgTimerBCT1, filteringDbTable=filteringDbTable, maxForwardedFrames=maxForwardedFrames, lanQueueSize=lanQueueSize, x25CCTCfgAutoConRetry=x25CCTCfgAutoConRetry, x25StatusSVCStatus=x25StatusSVCStatus, noRouteTotalDgms=noRouteTotalDgms, x25TTR22Limit=x25TTR22Limit, dcntAreaRITDestArea=dcntAreaRITDestArea, initStation=initStation, priorityTableEntryType=priorityTableEntryType, dcntAreaRITInterface=dcntAreaRITInterface, x25STSVCIndex=x25STSVCIndex, filterTableEntryType=filterTableEntryType, bridgeStatsIndex=bridgeStatsIndex, mlinkWindow=mlinkWindow, ieee8023Table=ieee8023Table, filteringDataBaseTable=filteringDataBaseTable, ieee8023ExcessiveCollisions=ieee8023ExcessiveCollisions, activeLocal=activeLocal, lapbCountCrcErrors=lapbCountCrcErrors, ieee8023NewMACAddressValue=ieee8023NewMACAddressValue, x25CST2WayLgclChanNum=x25CST2WayLgclChanNum, pathCostManualValue=pathCostManualValue, dcntInHdrErrors=dcntInHdrErrors, ieee8023OctetsReceivedOks=ieee8023OctetsReceivedOks, dcntAreaRITHops=dcntAreaRITHops, lapbAutoT1value=lapbAutoT1value, ieee8023outOfRangeLengthFields=ieee8023outOfRangeLengthFields, x25STTxClearReqPkts=x25STTxClearReqPkts, filterPage=filterPage, snmpAccessPolicyPage=snmpAccessPolicyPage, ipRSTable=ipRSTable, phySerIfInterfaceType=phySerIfInterfaceType, x25TTT20Timer=x25TTT20Timer, rmtLapbCTWindow=rmtLapbCTWindow, x25STTxResetReqPkts=x25STTxResetReqPkts, bootpRetryCount=bootpRetryCount, x25CSTRvrsChrgReq=x25CSTRvrsChrgReq, dcntRITHops=dcntRITHops, adaptiveMcastAddr=adaptiveMcastAddr, passWord=passWord, priorityTableEntry=priorityTableEntry, bootserverIpAddress=bootserverIpAddress, filterMatches=filterMatches, rmtLapbCTT3LinkIdleTimer=rmtLapbCTT3LinkIdleTimer, ipxIfDelay=ipxIfDelay, hiPriQueueUpperLimit=hiPriQueueUpperLimit, x25STRxRestartIndPkts=x25STRxRestartIndPkts, lapbCountSentFrames=lapbCountSentFrames, processorLoading=processorLoading, dcntOutDiscards=dcntOutDiscards, mlinkNumber=mlinkNumber, freeBufferCount=freeBufferCount, ipxIfNumber=ipxIfNumber, mlinkSendUpperEdge=mlinkSendUpperEdge, tftpRetryCount=tftpRetryCount, ipxRITHopCount=ipxRITHopCount, trapDestEntryType=trapDestEntryType, adaptiveRouting=adaptiveRouting, lapbCountSentOctets=lapbCountSentOctets, lapbLinkReset=lapbLinkReset, bridgeStatsTable=bridgeStatsTable, arAddressInfo=arAddressInfo, dcntRoutingTable=dcntRoutingTable, prioritySubTable=prioritySubTable, decnet=decnet, ieee8023TransmitStatus=ieee8023TransmitStatus, averageRejectedFrames=averageRejectedFrames, stationCountResets=stationCountResets, x25CCTCfgTODControl=x25CCTCfgTODControl, x25CSTDefaultPktSize=x25CSTDefaultPktSize, x25StatusPktSize=x25StatusPktSize, mlinkRcvUpperEdge=mlinkRcvUpperEdge, lanRejects=lanRejects, dcntReveivedDgms=dcntReveivedDgms, rmtLapbCTIndex=rmtLapbCTIndex, outDiscardsTotalDgms=outDiscardsTotalDgms, priorityTable=priorityTable, lapbTable=lapbTable, ipRSIndex=ipRSIndex, trapDestPage=trapDestPage, x25CCTTODToDisconnect=x25CCTTODToDisconnect, ieee8023MACSubLayerStatus=ieee8023MACSubLayerStatus, freeHeaderCount=freeHeaderCount, portPriorityManualValue=portPriorityManualValue, ipx=ipx, deleteAddressTimer=deleteAddressTimer, dcntRITNextHop=dcntRITNextHop)
class StudentAssignmentService: def __init__(self, student, AssignmentClass): self.assignment = AssignmentClass() self.assignment.student = student self.attempts = 0 self.correct_attempts = 0 def check(self, code): self.attempts += 1 result = self.assignment.check(code) if result: self.correct_attempts += 1 return result def lesson(self): return self.assignment.lesson()
class Studentassignmentservice: def __init__(self, student, AssignmentClass): self.assignment = assignment_class() self.assignment.student = student self.attempts = 0 self.correct_attempts = 0 def check(self, code): self.attempts += 1 result = self.assignment.check(code) if result: self.correct_attempts += 1 return result def lesson(self): return self.assignment.lesson()
# get the dimension of the query location i.e. latitude and logitude # raise an exception of the given query Id not found in the input file def getDimensionsofQueryLoc(inputFile, queryLocId): with open(inputFile) as infile: header = infile.readline().strip() headerIndex={ headerName.lower():index for index,headerName in enumerate(header.split(","))} for line in infile: values = line.strip().split(",") if values[headerIndex["locid"]].lower()==queryLocId: return float(values[headerIndex["latitude"]]),float(values[headerIndex["longitude"]]),values[headerIndex["category"]] return None,None,None # Calculate the euclidean distance between 2 points def calculateDistance(x1, y1, x2, y2): distance =((x2-x1)*(x2-x1) + (y2-y1)*(y2-y1))**0.5 return distance # Calculate the standard deviation def getStandardDeviation(distSorted, avg): std = 0 for distance in distSorted: std += (avg - distance)*(avg - distance) std/=len(distSorted) std=std**0.5 return std # All the distances are round off to 4 decimal place at the end def main(inputFile,queryLocId,d1,d2): queryLocId=queryLocId.lower() #get the dimensions of the given query location id X1, Y1, category = getDimensionsofQueryLoc(inputFile, queryLocId) category=category.lower() if not X1: print("Invalid location ID") return [],[],[],[] # calculate the cordinates of top right and bottom left corner of the rectangle formed topRightX, topRightY = X1+d1, Y1+d2 bottomLeftX, bottomLeftY = X1-d1, Y1-d2 locList=[] # list of location falls inside the rectangle simLocList=[] # list of locations with same category as given query location category distSorted=[] # list containing distance of locations in ascending order with same location category sumDistance=0 # sum of distances in distSorted list with open(inputFile) as infile: # next(infile) # skip the header row header = infile.readline().strip() headerIndex={ headerName.lower():index for index,headerName in enumerate(header.split(","))} for line in infile: values = line.strip().split(",") if not (values[headerIndex["latitude"]] and values[headerIndex["longitude"]]): continue # get dimensions of the iterated location X2, Y2 = float(values[headerIndex["latitude"]]), float(values[headerIndex["longitude"]]) #check if the iterated location is not same as query location and it falls under the defined rectangle if values[headerIndex["locid"]].lower()!=queryLocId and X2<=topRightX and X2>=bottomLeftX and Y2<=topRightY and Y2>=bottomLeftY: #add the location to loclist locList.append(values[headerIndex["locid"]]) #if location category is same then # 1. Add it to simList # 2. Calculate its distance with query location and add it to distSorted list # 3. Add its value to sumDistance (it will help in calculating the average distance) if values[headerIndex["category"]].lower() == category: simLocList.append(values[headerIndex["locid"]]) distance=calculateDistance(X1, Y1 ,X2, Y2) distSorted.append(distance) sumDistance += distance if not distSorted: return simLocList,[],[],[] # calculate the average distance and the standard deviation of all the distances avg = sumDistance/len(distSorted); std = getStandardDeviation(distSorted, avg) # sort the distance list and return the result for i, dist in enumerate(distSorted): distSorted[i] = round(dist,4) return locList, simLocList, sorted(distSorted), [round(avg,4), round(std,4)]
def get_dimensionsof_query_loc(inputFile, queryLocId): with open(inputFile) as infile: header = infile.readline().strip() header_index = {headerName.lower(): index for (index, header_name) in enumerate(header.split(','))} for line in infile: values = line.strip().split(',') if values[headerIndex['locid']].lower() == queryLocId: return (float(values[headerIndex['latitude']]), float(values[headerIndex['longitude']]), values[headerIndex['category']]) return (None, None, None) def calculate_distance(x1, y1, x2, y2): distance = ((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)) ** 0.5 return distance def get_standard_deviation(distSorted, avg): std = 0 for distance in distSorted: std += (avg - distance) * (avg - distance) std /= len(distSorted) std = std ** 0.5 return std def main(inputFile, queryLocId, d1, d2): query_loc_id = queryLocId.lower() (x1, y1, category) = get_dimensionsof_query_loc(inputFile, queryLocId) category = category.lower() if not X1: print('Invalid location ID') return ([], [], [], []) (top_right_x, top_right_y) = (X1 + d1, Y1 + d2) (bottom_left_x, bottom_left_y) = (X1 - d1, Y1 - d2) loc_list = [] sim_loc_list = [] dist_sorted = [] sum_distance = 0 with open(inputFile) as infile: header = infile.readline().strip() header_index = {headerName.lower(): index for (index, header_name) in enumerate(header.split(','))} for line in infile: values = line.strip().split(',') if not (values[headerIndex['latitude']] and values[headerIndex['longitude']]): continue (x2, y2) = (float(values[headerIndex['latitude']]), float(values[headerIndex['longitude']])) if values[headerIndex['locid']].lower() != queryLocId and X2 <= topRightX and (X2 >= bottomLeftX) and (Y2 <= topRightY) and (Y2 >= bottomLeftY): locList.append(values[headerIndex['locid']]) if values[headerIndex['category']].lower() == category: simLocList.append(values[headerIndex['locid']]) distance = calculate_distance(X1, Y1, X2, Y2) distSorted.append(distance) sum_distance += distance if not distSorted: return (simLocList, [], [], []) avg = sumDistance / len(distSorted) std = get_standard_deviation(distSorted, avg) for (i, dist) in enumerate(distSorted): distSorted[i] = round(dist, 4) return (locList, simLocList, sorted(distSorted), [round(avg, 4), round(std, 4)])
n = int(input()) s = input().lower() output = 'YES' for letter in 'abcdefghijklmnopqrstuvwxyz': if letter not in s: output = 'NO' break print(output)
n = int(input()) s = input().lower() output = 'YES' for letter in 'abcdefghijklmnopqrstuvwxyz': if letter not in s: output = 'NO' break print(output)
num1, num2 = 5,0 try: quotient = num1/num2 message = "Quotient is" + ' ' + str(quotient) where (quotient = num1/num2) except ZeroDivisionError: message = "Cannot divide by zero" print(message)
(num1, num2) = (5, 0) try: quotient = num1 / num2 message = 'Quotient is' + ' ' + str(quotient) where(quotient=num1 / num2) except ZeroDivisionError: message = 'Cannot divide by zero' print(message)
''' Created on 30-Oct-2017 @author: Gokulraj ''' def mergesort(a,left,right): if len(right)-len(left)<=1: return(left) elif right-left>1: mid=(right+left)//2; l=a[left:mid] r=a[mid+1:right] mergesort(a,l,r) mergesort(a,l,r) merge(a,l,r) def merge(A,B): (c,m,n)=([],len(A),len(B)) i,j=0,0 if i==m: c.append(B[j]) j=j+1 elif A[i]<=B[j]: c.append(A[i]) i=i+1 elif A[i]>B[j]: c.append(B[j]) j=j+1 else: c.append(A[i]) i=i+1 return(c) a=[10,20,3,19,8,15,2,1] left=0 right=len(a)-1 d=mergesort(a,left,right) print(d)
""" Created on 30-Oct-2017 @author: Gokulraj """ def mergesort(a, left, right): if len(right) - len(left) <= 1: return left elif right - left > 1: mid = (right + left) // 2 l = a[left:mid] r = a[mid + 1:right] mergesort(a, l, r) mergesort(a, l, r) merge(a, l, r) def merge(A, B): (c, m, n) = ([], len(A), len(B)) (i, j) = (0, 0) if i == m: c.append(B[j]) j = j + 1 elif A[i] <= B[j]: c.append(A[i]) i = i + 1 elif A[i] > B[j]: c.append(B[j]) j = j + 1 else: c.append(A[i]) i = i + 1 return c a = [10, 20, 3, 19, 8, 15, 2, 1] left = 0 right = len(a) - 1 d = mergesort(a, left, right) print(d)
class Enum: def __init__(self, name, value): self.name = name self.value = value def __init_subclass__(cls): cls._enum_names_ = {} cls._enum_values_ = {} for key, value in cls.__dict__.items(): if not key.startswith('_') and isinstance(value, cls._enum_type_): enum = cls(key, value) cls._enum_names_[key] = enum cls._enum_values_[value] = enum def __class_getitem__(cls, klass): if isinstance(klass, type): return type(cls.__name__, (cls,), {'_enum_type_': klass}) return klass def __repr__(self): return f'<{self.__class__.__name__} name={self.name}, value={self.value!r}>' def __eq__(self, value): if isinstance(value, self.__class__): value = value.value if not isinstance(value, self._enum_type_): return NotImplemented return self.value == value def __ne__(self, value): if isinstance(value, self.__class__): value = value.value if not isinstance(value, self._enum_type_): return NotImplemented return self.value != value @classmethod def try_enum(cls, value): try: return cls._enum_values_[value] except KeyError: return cls('undefined', value) @classmethod def try_value(cls, enum): if isinstance(enum, cls): return enum.value elif isinstance(enum, cls._enum_type_): return enum raise ValueError(f'{enum!r} is not a valid {cls.__name__}') class ChannelType(Enum[int]): GUILD_TEXT = 0 DM = 1 GUILD_VOICE = 2 GROUP_DM = 3 GUILD_CATEGORY = 4 GUILD_NEWS = 5 GUILD_STORE = 6 GUILD_NEWS_THREAD = 10 GUILD_PUBLIC_THREAD = 11 GUILD_PRIVATE_THREAD = 12 GUILD_STAGE_VOICE = 13 class VideoQualityMode(Enum[int]): AUTO = 1 FULL = 2 class EmbedType(Enum[str]): RICH = 'rich' IMAGE = 'image' VIDEO = 'video' GIFV = 'gifv' ARTICLE = 'article' LINK = 'link' class MessageNotificationsLevel(Enum[int]): ALL_MESSAGES = 0 ONLY_MENTIONS = 1 class ExplicitContentFilterLevel(Enum[int]): DISABLED = 0 MEMBERS_WITHOUT_ROLES = 1 ALL_MEMBERS = 2 class MFALevel(Enum[int]): NONE = 0 ELEVATED = 1 class VerificationLevel(Enum[int]): NONE = 0 LOW = 1 MEDIUM = 2 HIGH = 3 VERY_HIGH = 4 class GuildNSFWLevel(Enum[int]): DEFAULT = 0 EXPLICIT = 1 SAFE = 2 AGE_RESTRICTED = 3 class PremiumTier(Enum[int]): NONE = 0 TIER_1 = 1 TIER_2 = 2 TIER_3 = 3 class GuildFeature(Enum[str]): ANIMATED_ICON = 'ANIMATED_ICON' BANNER = 'BANNER' COMMERCE = 'COMMERCE' COMMUNITY = 'COMMUNITY' DISCOVERABLE = 'DISCOVERABLE' FEATURABLE = 'FEATURABLE' INVITE_SPLASH = 'INVITE_SPLASH' MEMBER_VERIFIVATION_GATE_ENABLED = 'MEMBER_VEFIFICATION_GATE_ENNABLED' NEWS = 'NEWS' PARTNERED = 'PARTNERED' PREVIEW_ENABLED = 'PREVIEW_ENABLED' VANITY_URL = 'VANITY_URL' VERIFIED = 'VERIFIED' VIP_REGIONS = 'VIP_REGIONS' WELCOME_SCREEN_ENABLED = 'WELCOME_SCREEN_ENABLED' TICKETED_EVENTS_ENABLED = 'TICKETED_EVENTS_ENABLED' MONETIZATION_ENABLED = 'MONETIZATION_ENABLED' MORE_STICKERS = 'MORE_STICKERS' class IntegrationType(Enum[str]): TWITCH = 'twitch' YOUTUBE = 'youtube' DISCORD = 'discord' class IntegrationExpireBehavior(Enum[int]): REMOVE_ROLE = 0 KICK = 1 class InviteTargetType(Enum[int]): STREAM = 1 EMBEDDED_APPLICATION = 2 class MessageType(Enum[int]): DEFAULT = 0 RECIPIENT_ADD = 1 RECIPIENT_REMOVE = 2 CALL = 3 CHANNEL_NAME_CHANGE = 4 CHANNEL_ICON_CHANGE = 5 CHANNEL_PINNED_MESSAGE = 6 GUILD_MEMBER_JOIN = 7 USER_PERMIUM_GUILD_SUBSCRIPTION = 8 USER_PERMIUM_GUILD_SUBSCRIPTION_TIER_1 = 9 USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_2 = 10 USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_3 = 11 CHANNEL_FOLLOW_ADD = 12 GUILD_DISCOVERY_DISQUALIFIED = 14 GUILD_DISCOVERY_REQUALIFIED = 15 GUILD_DISCOVERY_GRACE_PERIOD_INITIAL_WARNING = 16 GUILD_DISCOVERY_GRACE_PERIOD_FINAL_WARNING = 17 THREAD_CREATED = 18 REPLY = 19 APPLICATION_COMMAND = 20 THREAD_STARTER_MESSAGE = 21 GUILD_INVITE_REMINDER = 22 class PermissionOverwriteType(Enum[int]): ROLE = 0 MEMBER = 1 class StageInstancePrivacyLevel(Enum[int]): PUBLIC = 1 GUILD_ONLY = 2 class PremiumType(Enum[int]): NONE = 0 NITRO_CLASSIC = 1 NITRO = 2 class StickerType(Enum[int]): STANDARD = 1 GUILD = 2 class StickerFormatType(Enum[int]): PNG = 1 APNG = 2 LOTTIE = 3 class MessageActivityType(Enum[int]): JOIN = 1 SPECTATE = 2 LISTEN = 3 JOIN_REQUEST = 5 class TeamMembershipState(Enum[int]): INVITED = 1 ACCEPTED = 2 class WebhookType(Enum[int]): INCOMING = 1 CHANNEL_FOLLOWER = 2 APPLICATION = 3
class Enum: def __init__(self, name, value): self.name = name self.value = value def __init_subclass__(cls): cls._enum_names_ = {} cls._enum_values_ = {} for (key, value) in cls.__dict__.items(): if not key.startswith('_') and isinstance(value, cls._enum_type_): enum = cls(key, value) cls._enum_names_[key] = enum cls._enum_values_[value] = enum def __class_getitem__(cls, klass): if isinstance(klass, type): return type(cls.__name__, (cls,), {'_enum_type_': klass}) return klass def __repr__(self): return f'<{self.__class__.__name__} name={self.name}, value={self.value!r}>' def __eq__(self, value): if isinstance(value, self.__class__): value = value.value if not isinstance(value, self._enum_type_): return NotImplemented return self.value == value def __ne__(self, value): if isinstance(value, self.__class__): value = value.value if not isinstance(value, self._enum_type_): return NotImplemented return self.value != value @classmethod def try_enum(cls, value): try: return cls._enum_values_[value] except KeyError: return cls('undefined', value) @classmethod def try_value(cls, enum): if isinstance(enum, cls): return enum.value elif isinstance(enum, cls._enum_type_): return enum raise value_error(f'{enum!r} is not a valid {cls.__name__}') class Channeltype(Enum[int]): guild_text = 0 dm = 1 guild_voice = 2 group_dm = 3 guild_category = 4 guild_news = 5 guild_store = 6 guild_news_thread = 10 guild_public_thread = 11 guild_private_thread = 12 guild_stage_voice = 13 class Videoqualitymode(Enum[int]): auto = 1 full = 2 class Embedtype(Enum[str]): rich = 'rich' image = 'image' video = 'video' gifv = 'gifv' article = 'article' link = 'link' class Messagenotificationslevel(Enum[int]): all_messages = 0 only_mentions = 1 class Explicitcontentfilterlevel(Enum[int]): disabled = 0 members_without_roles = 1 all_members = 2 class Mfalevel(Enum[int]): none = 0 elevated = 1 class Verificationlevel(Enum[int]): none = 0 low = 1 medium = 2 high = 3 very_high = 4 class Guildnsfwlevel(Enum[int]): default = 0 explicit = 1 safe = 2 age_restricted = 3 class Premiumtier(Enum[int]): none = 0 tier_1 = 1 tier_2 = 2 tier_3 = 3 class Guildfeature(Enum[str]): animated_icon = 'ANIMATED_ICON' banner = 'BANNER' commerce = 'COMMERCE' community = 'COMMUNITY' discoverable = 'DISCOVERABLE' featurable = 'FEATURABLE' invite_splash = 'INVITE_SPLASH' member_verifivation_gate_enabled = 'MEMBER_VEFIFICATION_GATE_ENNABLED' news = 'NEWS' partnered = 'PARTNERED' preview_enabled = 'PREVIEW_ENABLED' vanity_url = 'VANITY_URL' verified = 'VERIFIED' vip_regions = 'VIP_REGIONS' welcome_screen_enabled = 'WELCOME_SCREEN_ENABLED' ticketed_events_enabled = 'TICKETED_EVENTS_ENABLED' monetization_enabled = 'MONETIZATION_ENABLED' more_stickers = 'MORE_STICKERS' class Integrationtype(Enum[str]): twitch = 'twitch' youtube = 'youtube' discord = 'discord' class Integrationexpirebehavior(Enum[int]): remove_role = 0 kick = 1 class Invitetargettype(Enum[int]): stream = 1 embedded_application = 2 class Messagetype(Enum[int]): default = 0 recipient_add = 1 recipient_remove = 2 call = 3 channel_name_change = 4 channel_icon_change = 5 channel_pinned_message = 6 guild_member_join = 7 user_permium_guild_subscription = 8 user_permium_guild_subscription_tier_1 = 9 user_premium_guild_subscription_tier_2 = 10 user_premium_guild_subscription_tier_3 = 11 channel_follow_add = 12 guild_discovery_disqualified = 14 guild_discovery_requalified = 15 guild_discovery_grace_period_initial_warning = 16 guild_discovery_grace_period_final_warning = 17 thread_created = 18 reply = 19 application_command = 20 thread_starter_message = 21 guild_invite_reminder = 22 class Permissionoverwritetype(Enum[int]): role = 0 member = 1 class Stageinstanceprivacylevel(Enum[int]): public = 1 guild_only = 2 class Premiumtype(Enum[int]): none = 0 nitro_classic = 1 nitro = 2 class Stickertype(Enum[int]): standard = 1 guild = 2 class Stickerformattype(Enum[int]): png = 1 apng = 2 lottie = 3 class Messageactivitytype(Enum[int]): join = 1 spectate = 2 listen = 3 join_request = 5 class Teammembershipstate(Enum[int]): invited = 1 accepted = 2 class Webhooktype(Enum[int]): incoming = 1 channel_follower = 2 application = 3
# config.sample.py # Rename this file to config.py before running this application and change the database values below # LED GPIO Pin numbers - these are the default values, feel free to change them as needed LED_PINS = { 'green': 12, 'yellow': 25, 'red': 18 } EMAIL_CONFIG = { 'username': '<USERNAME>', 'password': '<PASSWORD>', 'smtpServer': 'smtp.gmail.com', 'port': 465, 'sender': 'Email of who will send it', 'recipient': 'Email of who will receive it' } DATABASE_CONFIG = { 'host' : 'localhost', 'dbname' : 'uptime', 'dbuser' : 'DATABASE_USER', 'dbpass' : 'DATABASE_PASSWORD' }
led_pins = {'green': 12, 'yellow': 25, 'red': 18} email_config = {'username': '<USERNAME>', 'password': '<PASSWORD>', 'smtpServer': 'smtp.gmail.com', 'port': 465, 'sender': 'Email of who will send it', 'recipient': 'Email of who will receive it'} database_config = {'host': 'localhost', 'dbname': 'uptime', 'dbuser': 'DATABASE_USER', 'dbpass': 'DATABASE_PASSWORD'}
def selection_sort(A: list): for i in range(len(A) - 1): smallest_index = i for j in range(i + 1, len(A)): if A[i] > A[j]: smallest_index = j A[i], A[smallest_index] = A[smallest_index], A[i] A = [4, 2, 1, 5, 62, 5] B = [3, 3, 2, 4, 6, 65, 8, 5] C = [5, 4, 3, 2, 1] D = [1, 2, 3, 4, 5] selection_sort(A) selection_sort(B) selection_sort(C) selection_sort(D) print(A, B, C, D)
def selection_sort(A: list): for i in range(len(A) - 1): smallest_index = i for j in range(i + 1, len(A)): if A[i] > A[j]: smallest_index = j (A[i], A[smallest_index]) = (A[smallest_index], A[i]) a = [4, 2, 1, 5, 62, 5] b = [3, 3, 2, 4, 6, 65, 8, 5] c = [5, 4, 3, 2, 1] d = [1, 2, 3, 4, 5] selection_sort(A) selection_sort(B) selection_sort(C) selection_sort(D) print(A, B, C, D)
inventory = [ {"name": "apples", "quantity": 2}, {"name": "bananas", "quantity": 0}, {"name": "cherries", "quantity": 5}, {"name": "oranges", "quantity": 10}, {"name": "berries", "quantity": 7}, ] def checkIfFruitPresent(foodlist: list, target: str): # Check if the name is present ins the list or not print(f"We keep {target} inventory") if target in list( map(lambda x: x["name"], foodlist) ) else print(f"We dont keep {target} at our store") def checkIfFruitInStock(foodlist: list, target: str): # First check if the fruit is present in the list if target in list(map(lambda x: x["name"], foodlist)): # If fruit is present then check if the quantity of the fruit is greater than 0 print(f"{target} is in stock") if list( filter(lambda fruit: fruit["name"] == target, foodlist) )[0]["quantity"] > 0 else print(f"{target} is out of stock") else: print(f"We dont keep {target} at our store") checkIfFruitPresent(inventory, "apples") checkIfFruitInStock(inventory, "apples") checkIfFruitInStock(inventory, "bananas") checkIfFruitInStock(inventory, "tomatoes")
inventory = [{'name': 'apples', 'quantity': 2}, {'name': 'bananas', 'quantity': 0}, {'name': 'cherries', 'quantity': 5}, {'name': 'oranges', 'quantity': 10}, {'name': 'berries', 'quantity': 7}] def check_if_fruit_present(foodlist: list, target: str): print(f'We keep {target} inventory') if target in list(map(lambda x: x['name'], foodlist)) else print(f'We dont keep {target} at our store') def check_if_fruit_in_stock(foodlist: list, target: str): if target in list(map(lambda x: x['name'], foodlist)): print(f'{target} is in stock') if list(filter(lambda fruit: fruit['name'] == target, foodlist))[0]['quantity'] > 0 else print(f'{target} is out of stock') else: print(f'We dont keep {target} at our store') check_if_fruit_present(inventory, 'apples') check_if_fruit_in_stock(inventory, 'apples') check_if_fruit_in_stock(inventory, 'bananas') check_if_fruit_in_stock(inventory, 'tomatoes')
# The goal is divide a bill print("Let's go divide the bill in Brazil. Insert the values and insert '0' for finish") sum = 0 valor = 1 while valor != 0: valor = float(input('Enter the value here in R$: ')) sum = sum + valor p = float(input('Enter the number of payers: ')) print(input('The total was R$ {}. Getting R$ {:.2f} for each person'.format(sum, (sum / p))))
print("Let's go divide the bill in Brazil. Insert the values and insert '0' for finish") sum = 0 valor = 1 while valor != 0: valor = float(input('Enter the value here in R$: ')) sum = sum + valor p = float(input('Enter the number of payers: ')) print(input('The total was R$ {}. Getting R$ {:.2f} for each person'.format(sum, sum / p)))
#SearchEmployeeScreen BACK_BUTTON_TEXT = u"Back" CODE_TEXT = u"Code" DEPARTMENT_TEXT = u"Department" DOB_TEXT = u"DOB" DROPDOWN_DEPARTMENT_TEXT = u"Department" DROPDOWN_DOB_TEXT = u"DOB" DROPDOWN_EMPCODE_TEXT = u"Employee Code" DROPDOWN_NAME_TEXT = u"Name" DROPDOWN_SALARY_TEXT = u"Salary" GENDER_TEXT = u"Gender" HELP_OPTION_TEXT = u"Here you can search for employee records by field." NAME_TEXT = u"Name" NO_EMP_RECORDS_TEXT = u"There are no employee records." REGISTER_BUTTON_TEXT = u"Create Account" SALARY_TEXT = u"Salary" SEARCH_BUTTON_TEXT = u"Search" SEARCH_BY_TEXT = u"Search By: " SEARCH_EMP_SCREEN_NONETYPE_ERROR_TEXT = u"Please enter Search Criteria." SEARCH_FOR_TEXT = u"Search For: " SEARCH_FOR_EMPLOYEES_TEXT = u"Search for Employees : " SPACE_TEXT = u"------------------------"
back_button_text = u'Back' code_text = u'Code' department_text = u'Department' dob_text = u'DOB' dropdown_department_text = u'Department' dropdown_dob_text = u'DOB' dropdown_empcode_text = u'Employee Code' dropdown_name_text = u'Name' dropdown_salary_text = u'Salary' gender_text = u'Gender' help_option_text = u'Here you can search for employee records by field.' name_text = u'Name' no_emp_records_text = u'There are no employee records.' register_button_text = u'Create Account' salary_text = u'Salary' search_button_text = u'Search' search_by_text = u'Search By: ' search_emp_screen_nonetype_error_text = u'Please enter Search Criteria.' search_for_text = u'Search For: ' search_for_employees_text = u'Search for Employees : ' space_text = u'------------------------'
print ("Pythagorean Triplets with smaller side upto 10 -->") # form : (m^2 - n^2, 2*m*n, m^2 + n^2) # generate all (m, n) pairs such that m^2 - n^2 <= 10 # if we take (m > n), for m >= 6, m^2 - n^2 will always be greater than 10 # so m ranges from 1 to 5 and n ranges from 1 to m-1 pythTriplets = [(m*m - n*n, 2*m*n, m*m + n*n) for (m,n) in [(x, y) for x in range (1, 6) for y in range (1, x)] if m*m - n*n <= 10] print (pythTriplets)
print('Pythagorean Triplets with smaller side upto 10 -->') pyth_triplets = [(m * m - n * n, 2 * m * n, m * m + n * n) for (m, n) in [(x, y) for x in range(1, 6) for y in range(1, x)] if m * m - n * n <= 10] print(pythTriplets)
print("What is your name?") name = input() print("How old are you?") age = int(input()) print("Where do you live?") residency = input() print("This is `{0}` \nIt is `{1}` \n(S)he live in `{2}` ".format(name, age, residency))
print('What is your name?') name = input() print('How old are you?') age = int(input()) print('Where do you live?') residency = input() print('This is `{0}` \nIt is `{1}` \n(S)he live in `{2}` '.format(name, age, residency))
#!/usr/bin/env python3 class TypeCacher(): def __init__(self): self.cached_types = {} self.num_cached_types = 0 def get_cached_type_str(self, type_str): if type_str in self.cached_types: cached_type_str = 'cached_type_%d' % self.cached_types[type_str] else: cached_type_str = 'cached_type_%d' % self.num_cached_types self.cached_types[type_str] = self.num_cached_types self.num_cached_types += 1 return cached_type_str def dump_to_file(self, path): with open(path, 'w') as output: output.write('// Generated file, please do not edit directly\n\n') for cached_type, val in self.cached_types.items(): type_id_str = cached_type.split(' ')[0] s = 'static %s cached_type_%d = %s;\n' % (type_id_str, val, cached_type) output.write(s) type_cacher = TypeCacher() class CodeGenerator(): def __init__(self, path, vector_element_name, enclose_element_with, rw): self.file = open(path, 'w') self.write_header() self.vector_element_name = vector_element_name self.enclose_element_with = enclose_element_with self.rw = rw # if you do not exclude these, when you run code like `Architecture['x86_64']`, # if will create integer of size 576 self.excluded_intrinsics = [ 'INTRINSIC_XED_IFORM_XSAVE_MEMmxsave', 'INTRINSIC_XED_IFORM_XSAVE64_MEMmxsave', 'INTRINSIC_XED_IFORM_XSAVEOPT_MEMmxsave', 'INTRINSIC_XED_IFORM_XSAVEOPT64_MEMmxsave', 'INTRINSIC_XED_IFORM_XSAVES_MEMmxsave', 'INTRINSIC_XED_IFORM_XSAVES64_MEMmxsave', 'INTRINSIC_XED_IFORM_XSAVEC_MEMmxsave', 'INTRINSIC_XED_IFORM_XSAVEC64_MEMmxsave', 'INTRINSIC_XED_IFORM_XRSTOR_MEMmxsave', 'INTRINSIC_XED_IFORM_XRSTOR64_MEMmxsave', 'INTRINSIC_XED_IFORM_XRSTORS_MEMmxsave', 'INTRINSIC_XED_IFORM_XRSTORS64_MEMmxsave', ] def clean_up(self): self.file.close() def write_header(self): self.file.write('// Generated file, please do not edit directly\n\n') def generate_intrinsic(self, ins): global type_cacher if ins.iform in self.excluded_intrinsics: return s = 'case %s:' % ins.iform s += '\n\treturn ' return_str = 'vector<%s> ' % self.vector_element_name return_str += '{ ' for operand in ins.operands: if not self.rw in operand.rw: continue op_str = operand.generate_str() # cached_op_str = type_cacher.get_cached_type_str(op_str) if self.enclose_element_with == '': return_str += '%s, ' % op_str else: return_str += '%s(%s), ' % (self.enclose_element_with, op_str) if return_str.endswith(', '): return_str = return_str[:-2] return_str += ' }' return_str = type_cacher.get_cached_type_str(return_str) s += return_str s += ';\n' self.file.write(s) class Intrinsic(): def __init__(self): self.iform = '' self.operands = [] self.vl = None def reset(self): self.iform = '' self.operands = [] self.vl = None def set_iform(self, iform): self.iform = iform def set_VL(self, vl): self.vl = vl def add_operand(self, operand): if operand.oc2 == 'vv': if self.vl is None: print('cannot determine number of elements') # more info goes here else: operand.oc2 = self.vl operand.parse() self.operands.append(operand) class Operand(): def __init__(self, xtype, rw, oc2): self.xtype = xtype self.rw = rw self.oc2 = oc2 def parse(self): # from build/obj/dgen/all-element-types.txt # #XTYPE TYPE BITS-PER-ELEM # # # var VARIABLE 0 # instruction must set NELEM and ELEMENT_SIZE # struct STRUCT 0 # many elements of different widths # int INT 0 # one element, all the bits, width varies # uint UINT 0 # one element, all the bits, width varies # # # i1 INT 1 # i8 INT 8 # i16 INT 16 # i32 INT 32 # i64 INT 64 # u8 UINT 8 # u16 UINT 16 # u32 UINT 32 # u64 UINT 64 # u128 UINT 128 # u256 UINT 256 # f32 SINGLE 32 # f64 DOUBLE 64 # f80 LONGDOUBLE 80 # b80 LONGBCD 80 self.signed = (self.xtype[0] == 'i') if self.xtype[0] == 'f': self.type = 'float' elif self.xtype == 'i1': self.type = 'boolean' else: self.type = 'int' # thse lengths are obtained from A.2.2 Codes for Operand Type # of the Intel Dev Manual Volume 2 # See comment inside for varying sizes size_mapping = { 'f80': 80, 'mem32real': 32, 'mem64real': 64, 'mem80real': 80, 'm32real': 32, 'm32int': 32, 'm64real': 64, 'm64int': 32, 'm80real': 80, 'mskw': 1, 'mem14': 14 * 8, 'mem28': 28 * 8, 'mem16': 16 * 8, 'mem94': 94 * 8, 'mem108': 108 * 8, 'mem32int': 32, 'mem16int': 16, "mem80dec": 80, 'b': 8, 'w': 16, 'd': 32, 'q': 64, 'u64': 64, 'dq': 128, 'qq': 256, 'zd': 512, 'zu8': 512, 'zi8': 512, 'zi16': 512, 'zu16': 512, 'zuf64': 512, 'zuf32': 512, 'zf32': 512, 'zf64': 512, 'zi64': 512, 'zu64': 512, 'zu128': 512, 'zi32': 512, 'zu32': 512, 'VL512': 512, 'VL256': 256, 'VL128': 128, 'ss': 128, 'sd': 128, 'ps': 128, 'pd': 128, 'zbf16': 16, 's': 80, 's64': 64, 'a16': 16, 'a32': 32, 'xud': 128, 'xuq': 128, # The specifiers below actually map to variable sizes, e.g., v can be # "Word, doubleword or quadword (in 64-bit mode), depending on operand-size attribute". # However, instructions that contain such operands are mostly covered by explicit liftings, # for example, add, sub, and mov, etc. So they do not mess up the types # Excpetions are lzcnt, tzcnt, popcnt, and crc32, # which have to be further splitted into various finer-grained intrinsics 'v': 32, 'z': 32, 'y': 64, # below specifiers are not found in the list, their size are determined manually 'spw': 32, 'spw8': 32, 'spw2': 32, 'spw3': 32, 'spw5': 32, 'wrd': 16, 'bnd32': 32, 'bnd64': 64, 'p': 64, 'p2': 64, 'mfpxenv': 512 * 8, 'mxsave': 576 * 8, 'mprefetch': 64, 'pmmsz16': 14 * 8, 'pmmsz32': 24 * 8, 'rFLAGS': 64, 'eFLAGS': 32, 'GPR64_R': 64, 'GPR64_B': 64, 'GPRv_R': 64, 'GPRv_B': 64, 'GPR32_R': 32, 'GPR32_B': 32, 'GPR16_R': 16, 'GPR16_B': 16, 'GPR8_R': 8, 'GPR8_B': 8, 'GPRy_B': 64, 'GPRz_B': 64, 'GPRz_R': 64, 'GPR8_SB': 64, 'A_GPR_R': 64, 'A_GPR_B': 64, 'GPRv_SB': 64, 'BND_R': 64, 'BND_B': 64, 'OeAX': 16, 'OrAX': 16, 'OrBX': 16, 'OrCX': 16, 'OrDX': 16, 'OrBP': 16, 'OrSP': 16, 'ArAX': 16, 'ArBX': 16, 'ArCX': 16, 'ArDI': 16, 'ArSI': 16, 'ArBP': 16, 'FINAL_SSEG0': 16, 'FINAL_SSEG1': 16, 'FINAL_DSEG': 16, 'FINAL_DSEG0': 16, 'FINAL_DSEG1': 16, 'FINAL_ESEG': 16, 'FINAL_ESEG1': 16, 'SEG': 16, 'SEG_MOV': 16, 'SrSP': 64, 'rIP': 64, 'CR_R': 32, 'DR_R': 32, 'XED_REG_AL': 8, 'XED_REG_AH': 8, 'XED_REG_BL': 8, 'XED_REG_BH': 8, 'XED_REG_CL': 8, 'XED_REG_DL': 8, 'XED_REG_AX': 16, 'XED_REG_BX': 16, 'XED_REG_CX': 16, 'XED_REG_DX': 16, 'XED_REG_BP': 16, 'XED_REG_SP': 16, 'XED_REG_SI': 16, 'XED_REG_DI': 16, 'XED_REG_SS': 16, 'XED_REG_DS': 16, 'XED_REG_ES': 16, 'XED_REG_IP': 16, 'XED_REG_FS': 16, 'XED_REG_GS': 16, 'XED_REG_CS': 16, 'XED_REG_EAX': 32, 'XED_REG_EBX': 32, 'XED_REG_ECX': 32, 'XED_REG_EDX': 32, 'XED_REG_EIP': 32, 'XED_REG_ESP': 32, 'XED_REG_EBP': 32, 'XED_REG_ESI': 32, 'XED_REG_EDI': 32, 'XED_REG_RAX': 64, 'XED_REG_RBX': 64, 'XED_REG_RCX': 64, 'XED_REG_RDX': 64, 'XED_REG_RIP': 64, 'XED_REG_RSP': 64, 'XED_REG_RBP': 64, 'XED_REG_RSI': 64, 'XED_REG_RDI': 64, 'XED_REG_R11': 64, 'XED_REG_X87STATUS': 16, 'XED_REG_X87CONTROL': 16, 'XED_REG_X87TAG': 16, 'XED_REG_X87PUSH': 64, 'XED_REG_X87POP': 64, 'XED_REG_X87POP2': 64, 'XED_REG_CR0': 64, 'XED_REG_XCR0': 64, 'XED_REG_MXCSR': 32, 'XED_REG_GDTR': 48, 'XED_REG_LDTR': 48, 'XED_REG_IDTR': 48, 'XED_REG_TR': 64, 'XED_REG_TSC': 64, 'XED_REG_TSCAUX': 64, 'XED_REG_MSRS': 64, } # if '_' in self.oc2: # self.oc2 = self.oc2.split('_')[0] try: self.width = size_mapping[self.oc2] except: print('I do not know the width of oc2: %s' % self.oc2) self.width = 8 if self.xtype == 'struct' or self.xtype == 'INVALID': self.element_size = self.width elif self.xtype == 'int': self.element_size = 32 elif self.xtype == 'bf16': self.element_size = 16 else: size_str = self.xtype[1:] self.element_size = int(size_str) self.element_size_byte = int((self.element_size + 7) / 8) n = int((self.width + 7) / 8) / self.element_size_byte n = int(n) if n < 1: n = 1 self.n_element = n def generate_str(self): array = False if self.element_size > 1: array = True inner_str = '' if self.type == 'float': inner_str = 'Type::FloatType(%d)' % self.element_size_byte elif self.type == 'int': signed_str = 'true' if self.signed else 'false' inner_str = 'Type::IntegerType(%d, %s)' % (self.element_size_byte, signed_str) else: inner_str = 'Type::BoolType()' if self.n_element > 1: s = 'Type::ArrayType(%s, %d)' % (inner_str, self.n_element) else: s = inner_str return s def main(): intrinsic_input = CodeGenerator('../x86_intrinsic_input_type.include', 'NameAndType', 'NameAndType', 'r') intrinsic_output = CodeGenerator('../x86_intrinsic_output_type.include', 'Confidence<Ref<Type>>', '', 'w') with open('iform-type-dump.txt', 'r') as f: ins = Intrinsic() for line in f: if line.strip() == '': intrinsic_input.generate_intrinsic(ins) intrinsic_output.generate_intrinsic(ins) ins.reset() continue if line.startswith('INTRINSIC_XED_IFORM_'): ins.set_iform(line.strip()) elif line.startswith('VL'): ins.set_VL(line.strip()) elif line.startswith('\t'): fields = line.strip().split('\t') op = Operand(fields[0], fields[1], fields[2]) ins.add_operand(op) else: print('unexpected line! I do not know what to do with it') print(line) intrinsic_input.clean_up() intrinsic_output.clean_up() type_cacher.dump_to_file('../x86_intrinsic_cached_types.include') if __name__ == '__main__': main()
class Typecacher: def __init__(self): self.cached_types = {} self.num_cached_types = 0 def get_cached_type_str(self, type_str): if type_str in self.cached_types: cached_type_str = 'cached_type_%d' % self.cached_types[type_str] else: cached_type_str = 'cached_type_%d' % self.num_cached_types self.cached_types[type_str] = self.num_cached_types self.num_cached_types += 1 return cached_type_str def dump_to_file(self, path): with open(path, 'w') as output: output.write('// Generated file, please do not edit directly\n\n') for (cached_type, val) in self.cached_types.items(): type_id_str = cached_type.split(' ')[0] s = 'static %s cached_type_%d = %s;\n' % (type_id_str, val, cached_type) output.write(s) type_cacher = type_cacher() class Codegenerator: def __init__(self, path, vector_element_name, enclose_element_with, rw): self.file = open(path, 'w') self.write_header() self.vector_element_name = vector_element_name self.enclose_element_with = enclose_element_with self.rw = rw self.excluded_intrinsics = ['INTRINSIC_XED_IFORM_XSAVE_MEMmxsave', 'INTRINSIC_XED_IFORM_XSAVE64_MEMmxsave', 'INTRINSIC_XED_IFORM_XSAVEOPT_MEMmxsave', 'INTRINSIC_XED_IFORM_XSAVEOPT64_MEMmxsave', 'INTRINSIC_XED_IFORM_XSAVES_MEMmxsave', 'INTRINSIC_XED_IFORM_XSAVES64_MEMmxsave', 'INTRINSIC_XED_IFORM_XSAVEC_MEMmxsave', 'INTRINSIC_XED_IFORM_XSAVEC64_MEMmxsave', 'INTRINSIC_XED_IFORM_XRSTOR_MEMmxsave', 'INTRINSIC_XED_IFORM_XRSTOR64_MEMmxsave', 'INTRINSIC_XED_IFORM_XRSTORS_MEMmxsave', 'INTRINSIC_XED_IFORM_XRSTORS64_MEMmxsave'] def clean_up(self): self.file.close() def write_header(self): self.file.write('// Generated file, please do not edit directly\n\n') def generate_intrinsic(self, ins): global type_cacher if ins.iform in self.excluded_intrinsics: return s = 'case %s:' % ins.iform s += '\n\treturn ' return_str = 'vector<%s> ' % self.vector_element_name return_str += '{ ' for operand in ins.operands: if not self.rw in operand.rw: continue op_str = operand.generate_str() if self.enclose_element_with == '': return_str += '%s, ' % op_str else: return_str += '%s(%s), ' % (self.enclose_element_with, op_str) if return_str.endswith(', '): return_str = return_str[:-2] return_str += ' }' return_str = type_cacher.get_cached_type_str(return_str) s += return_str s += ';\n' self.file.write(s) class Intrinsic: def __init__(self): self.iform = '' self.operands = [] self.vl = None def reset(self): self.iform = '' self.operands = [] self.vl = None def set_iform(self, iform): self.iform = iform def set_vl(self, vl): self.vl = vl def add_operand(self, operand): if operand.oc2 == 'vv': if self.vl is None: print('cannot determine number of elements') else: operand.oc2 = self.vl operand.parse() self.operands.append(operand) class Operand: def __init__(self, xtype, rw, oc2): self.xtype = xtype self.rw = rw self.oc2 = oc2 def parse(self): self.signed = self.xtype[0] == 'i' if self.xtype[0] == 'f': self.type = 'float' elif self.xtype == 'i1': self.type = 'boolean' else: self.type = 'int' size_mapping = {'f80': 80, 'mem32real': 32, 'mem64real': 64, 'mem80real': 80, 'm32real': 32, 'm32int': 32, 'm64real': 64, 'm64int': 32, 'm80real': 80, 'mskw': 1, 'mem14': 14 * 8, 'mem28': 28 * 8, 'mem16': 16 * 8, 'mem94': 94 * 8, 'mem108': 108 * 8, 'mem32int': 32, 'mem16int': 16, 'mem80dec': 80, 'b': 8, 'w': 16, 'd': 32, 'q': 64, 'u64': 64, 'dq': 128, 'qq': 256, 'zd': 512, 'zu8': 512, 'zi8': 512, 'zi16': 512, 'zu16': 512, 'zuf64': 512, 'zuf32': 512, 'zf32': 512, 'zf64': 512, 'zi64': 512, 'zu64': 512, 'zu128': 512, 'zi32': 512, 'zu32': 512, 'VL512': 512, 'VL256': 256, 'VL128': 128, 'ss': 128, 'sd': 128, 'ps': 128, 'pd': 128, 'zbf16': 16, 's': 80, 's64': 64, 'a16': 16, 'a32': 32, 'xud': 128, 'xuq': 128, 'v': 32, 'z': 32, 'y': 64, 'spw': 32, 'spw8': 32, 'spw2': 32, 'spw3': 32, 'spw5': 32, 'wrd': 16, 'bnd32': 32, 'bnd64': 64, 'p': 64, 'p2': 64, 'mfpxenv': 512 * 8, 'mxsave': 576 * 8, 'mprefetch': 64, 'pmmsz16': 14 * 8, 'pmmsz32': 24 * 8, 'rFLAGS': 64, 'eFLAGS': 32, 'GPR64_R': 64, 'GPR64_B': 64, 'GPRv_R': 64, 'GPRv_B': 64, 'GPR32_R': 32, 'GPR32_B': 32, 'GPR16_R': 16, 'GPR16_B': 16, 'GPR8_R': 8, 'GPR8_B': 8, 'GPRy_B': 64, 'GPRz_B': 64, 'GPRz_R': 64, 'GPR8_SB': 64, 'A_GPR_R': 64, 'A_GPR_B': 64, 'GPRv_SB': 64, 'BND_R': 64, 'BND_B': 64, 'OeAX': 16, 'OrAX': 16, 'OrBX': 16, 'OrCX': 16, 'OrDX': 16, 'OrBP': 16, 'OrSP': 16, 'ArAX': 16, 'ArBX': 16, 'ArCX': 16, 'ArDI': 16, 'ArSI': 16, 'ArBP': 16, 'FINAL_SSEG0': 16, 'FINAL_SSEG1': 16, 'FINAL_DSEG': 16, 'FINAL_DSEG0': 16, 'FINAL_DSEG1': 16, 'FINAL_ESEG': 16, 'FINAL_ESEG1': 16, 'SEG': 16, 'SEG_MOV': 16, 'SrSP': 64, 'rIP': 64, 'CR_R': 32, 'DR_R': 32, 'XED_REG_AL': 8, 'XED_REG_AH': 8, 'XED_REG_BL': 8, 'XED_REG_BH': 8, 'XED_REG_CL': 8, 'XED_REG_DL': 8, 'XED_REG_AX': 16, 'XED_REG_BX': 16, 'XED_REG_CX': 16, 'XED_REG_DX': 16, 'XED_REG_BP': 16, 'XED_REG_SP': 16, 'XED_REG_SI': 16, 'XED_REG_DI': 16, 'XED_REG_SS': 16, 'XED_REG_DS': 16, 'XED_REG_ES': 16, 'XED_REG_IP': 16, 'XED_REG_FS': 16, 'XED_REG_GS': 16, 'XED_REG_CS': 16, 'XED_REG_EAX': 32, 'XED_REG_EBX': 32, 'XED_REG_ECX': 32, 'XED_REG_EDX': 32, 'XED_REG_EIP': 32, 'XED_REG_ESP': 32, 'XED_REG_EBP': 32, 'XED_REG_ESI': 32, 'XED_REG_EDI': 32, 'XED_REG_RAX': 64, 'XED_REG_RBX': 64, 'XED_REG_RCX': 64, 'XED_REG_RDX': 64, 'XED_REG_RIP': 64, 'XED_REG_RSP': 64, 'XED_REG_RBP': 64, 'XED_REG_RSI': 64, 'XED_REG_RDI': 64, 'XED_REG_R11': 64, 'XED_REG_X87STATUS': 16, 'XED_REG_X87CONTROL': 16, 'XED_REG_X87TAG': 16, 'XED_REG_X87PUSH': 64, 'XED_REG_X87POP': 64, 'XED_REG_X87POP2': 64, 'XED_REG_CR0': 64, 'XED_REG_XCR0': 64, 'XED_REG_MXCSR': 32, 'XED_REG_GDTR': 48, 'XED_REG_LDTR': 48, 'XED_REG_IDTR': 48, 'XED_REG_TR': 64, 'XED_REG_TSC': 64, 'XED_REG_TSCAUX': 64, 'XED_REG_MSRS': 64} try: self.width = size_mapping[self.oc2] except: print('I do not know the width of oc2: %s' % self.oc2) self.width = 8 if self.xtype == 'struct' or self.xtype == 'INVALID': self.element_size = self.width elif self.xtype == 'int': self.element_size = 32 elif self.xtype == 'bf16': self.element_size = 16 else: size_str = self.xtype[1:] self.element_size = int(size_str) self.element_size_byte = int((self.element_size + 7) / 8) n = int((self.width + 7) / 8) / self.element_size_byte n = int(n) if n < 1: n = 1 self.n_element = n def generate_str(self): array = False if self.element_size > 1: array = True inner_str = '' if self.type == 'float': inner_str = 'Type::FloatType(%d)' % self.element_size_byte elif self.type == 'int': signed_str = 'true' if self.signed else 'false' inner_str = 'Type::IntegerType(%d, %s)' % (self.element_size_byte, signed_str) else: inner_str = 'Type::BoolType()' if self.n_element > 1: s = 'Type::ArrayType(%s, %d)' % (inner_str, self.n_element) else: s = inner_str return s def main(): intrinsic_input = code_generator('../x86_intrinsic_input_type.include', 'NameAndType', 'NameAndType', 'r') intrinsic_output = code_generator('../x86_intrinsic_output_type.include', 'Confidence<Ref<Type>>', '', 'w') with open('iform-type-dump.txt', 'r') as f: ins = intrinsic() for line in f: if line.strip() == '': intrinsic_input.generate_intrinsic(ins) intrinsic_output.generate_intrinsic(ins) ins.reset() continue if line.startswith('INTRINSIC_XED_IFORM_'): ins.set_iform(line.strip()) elif line.startswith('VL'): ins.set_VL(line.strip()) elif line.startswith('\t'): fields = line.strip().split('\t') op = operand(fields[0], fields[1], fields[2]) ins.add_operand(op) else: print('unexpected line! I do not know what to do with it') print(line) intrinsic_input.clean_up() intrinsic_output.clean_up() type_cacher.dump_to_file('../x86_intrinsic_cached_types.include') if __name__ == '__main__': main()
#!/usr/bin/env python # coding: utf-8 # In[172]: #Algorithm: S(A) is like a Pascal's Triangle #take string "ZY" for instance #S(A) of "ZY" can look like this: row 0 " " # row 1 Z Y # row 2 ZZ ZY YZ YY # row 3 ZZZ ZZY ZYZ ZYY YZZ YZY YYZ YYY #each letter in string A is added to the end of each word in previous row #generator first generates words from each row of triangle and append them to total_List #converts string A to list repetition= [] #function that generates the words from each line in triangle #N is number of iterations that the loop goes through depending on how long the longest resulting word is def generate_words(N, A): #make repetition a global variable global repetition #convert A to list of letters L = list(A) # if N is 0, return original string if N == 0 : return L else: #create empty list to store new words newList=[] #loop through each letter in string for elem in repetition : # add each letter in string to end of previous word L1 = [ e + elem for e in L ] newList = newList + L1 return generate_words(N -1, newList) #function that adds each line together def append_words(A): global repetition #set letters to be added as permanent repetition = list(A) total =[''] for i in range( len(A) +1 ): total = total + generate_words(i , repetition ) return total #return newly appended list of words return generate_words(len(A),repetition) print(append_words('abc')) # In[178]: #Algorithm: continued from part 1, treat S(A) as list of triangle/pyramid with len(A)**N rows #function that gets total number of words for n letters in string A # len(A) mutation_base_len = 0 #function that converts index to corresponding word in the Nth position def index_to_word(N, A): mutation_base_len = len(A) base_length = len(A) #first get which line in the triangle the index is in #since number of lines cannot be more than half of total number of words, divide by 2 to narrow down totalLoop = int(N / 2) str_of_word = list(A) total_index = 0 #get position of word in row by subtracting # of words in each row by index # which_pyramid_row = get_pyramid_row(N,A) #print("which_pyramid_row:", which_pyramid_row) curr_row_offset = N - get_pyramid_sumup(which_pyramid_row, A) #convert position k to its N-base equivalent dig_index = dec_to_base(curr_row_offset, base_length) # if length of digit_string is less than its corresponding row number # then need to make up the digits by inserting 0s to the front if len(dig_index)< which_pyramid_row+1: dig_index = str(0*(which_pyramid_row-len(dig_index))) + str(dig_index) return int(dig_index) # finally, convert n-base to corresponding words letter_str = '' for digit in dig_index: corresponding_let = str_of_word[int(digit)] letter_str+= corresponding_let print("word:", letter_str) return letter_str #function to convert decimal to its N-base equivalent def dec_to_base(n,base): convertString = "0123456789ABCDEF" if n < base: return convertString[n] else: return dec_to_base(n//base,base) + convertString[n%base] #get total number of words up to current row as defined by function get_pyramid_row def get_pyramid_sumup(curr_row, A): total_count = 0 for i in range(curr_row+1): total_count+= (len(A))**i return total_count #get current row based on index number def get_pyramid_row(index, A): for i in range(len(A)+1): if index >= get_pyramid_sumup(i, A) and index < get_pyramid_sumup(i+1, A): return i ''' def NthCount(N, A): count = 0 for i in range(N): count = count + len(A)**N return count ''' print(index_to_word(2, 'TGCA')) # In[169]: #function that uses the n-base system to convert letters to 0, 1, 2, etc and then finding the decimal correspondence index number def word_to_index(WORD, A): str_of_word = list(WORD) #add the assigned n-base index to the end of str digits_string for every letter #ie.for string ZY, Z=0, Y=1 so ZZY = 001 digits_string="" for letter in str_of_word: k = str_of_word.index(letter) digits_string = str(digits_string) + str(k) #print(int(digits_string)) return str(digits_string) # calling the built-in function int(number, base) by passing two arguments in it # number in string form and base and store the output value in line_index line_index = int(digits_string, len(A)) # printing the corresponding decimal number print("index:", line_index) # add the line index to previous word counts to get the final index of WORD actual_index = 0 for i in range(len(WORD)): actual_index = line_index + (len(WORD)**i) print(int(actual_index)) print(word_to_index('bb', 'abc')) # In[ ]: # In[ ]: # In[ ]:
repetition = [] def generate_words(N, A): global repetition l = list(A) if N == 0: return L else: new_list = [] for elem in repetition: l1 = [e + elem for e in L] new_list = newList + L1 return generate_words(N - 1, newList) def append_words(A): global repetition repetition = list(A) total = [''] for i in range(len(A) + 1): total = total + generate_words(i, repetition) return total return generate_words(len(A), repetition) print(append_words('abc')) mutation_base_len = 0 def index_to_word(N, A): mutation_base_len = len(A) base_length = len(A) total_loop = int(N / 2) str_of_word = list(A) total_index = 0 which_pyramid_row = get_pyramid_row(N, A) curr_row_offset = N - get_pyramid_sumup(which_pyramid_row, A) dig_index = dec_to_base(curr_row_offset, base_length) if len(dig_index) < which_pyramid_row + 1: dig_index = str(0 * (which_pyramid_row - len(dig_index))) + str(dig_index) return int(dig_index) letter_str = '' for digit in dig_index: corresponding_let = str_of_word[int(digit)] letter_str += corresponding_let print('word:', letter_str) return letter_str def dec_to_base(n, base): convert_string = '0123456789ABCDEF' if n < base: return convertString[n] else: return dec_to_base(n // base, base) + convertString[n % base] def get_pyramid_sumup(curr_row, A): total_count = 0 for i in range(curr_row + 1): total_count += len(A) ** i return total_count def get_pyramid_row(index, A): for i in range(len(A) + 1): if index >= get_pyramid_sumup(i, A) and index < get_pyramid_sumup(i + 1, A): return i '\ndef NthCount(N, A):\n count = 0\n for i in range(N):\n count = count + len(A)**N\n return count \n' print(index_to_word(2, 'TGCA')) def word_to_index(WORD, A): str_of_word = list(WORD) digits_string = '' for letter in str_of_word: k = str_of_word.index(letter) digits_string = str(digits_string) + str(k) return str(digits_string) line_index = int(digits_string, len(A)) print('index:', line_index) actual_index = 0 for i in range(len(WORD)): actual_index = line_index + len(WORD) ** i print(int(actual_index)) print(word_to_index('bb', 'abc'))
SECRET_KEY = '' DEBUG = False ALLOWED_HOSTS = [ #"example.com" ]
secret_key = '' debug = False allowed_hosts = []
# Sort Alphabetically presenters=[ {'name': 'Arthur', 'age': 9}, {'name': 'Nathaniel', 'age': 11} ] presenters.sort(key=lambda item: item['name']) print('--Alphabetically--') print(presenters) # Sort by length (Shortest to longest ) presenters.sort(key=lambda item: len (item['name'])) print('-- length --') print(presenters)
presenters = [{'name': 'Arthur', 'age': 9}, {'name': 'Nathaniel', 'age': 11}] presenters.sort(key=lambda item: item['name']) print('--Alphabetically--') print(presenters) presenters.sort(key=lambda item: len(item['name'])) print('-- length --') print(presenters)
class SingletonMeta(type): _instance = {} def __call__(cls, *args, **kwargs): if cls not in cls._instance: cls._instance[cls] = super(SingletonMeta, cls).__call__(*args, **kwargs) return cls._instance[cls]
class Singletonmeta(type): _instance = {} def __call__(cls, *args, **kwargs): if cls not in cls._instance: cls._instance[cls] = super(SingletonMeta, cls).__call__(*args, **kwargs) return cls._instance[cls]
# Created by MechAviv # Full of Stars Damage Skin (30 Day) | (2436479) if sm.addDamageSkin(2436479): sm.chat("'Full of Stars Damage Skin (30 Day)' Damage Skin has been added to your account's damage skin collection.") sm.consumeItem()
if sm.addDamageSkin(2436479): sm.chat("'Full of Stars Damage Skin (30 Day)' Damage Skin has been added to your account's damage skin collection.") sm.consumeItem()
FIREWALL_FORWARDING = 1 FIREWALL_INCOMING_ALLOW = 2 FIREWALL_INCOMING_BLOCK = 3 FIREWALL_OUTGOING_BLOCK = 4 FIREWALL_CFG_PATH = '/etc/clearos/firewall.conf' def getFirewall(fw_type): with open(FIREWALL_CFG_PATH,'r') as f: lines = f.readlines() lines = [line.strip('\t\r\n\\ ') for line in lines] rules = [] rules_started = False for line in lines: if rules_started and line == '"': break if rules_started: rule = line.split('|') if fw_type == FIREWALL_INCOMING_ALLOW and rule[2].endswith('1'): rules.append({ "name": rule[0], "group": rule[1], "proto": int(rule[3]), "port": rule[5], "enabled": (True if rule[2][2] == '1' else False) }) if fw_type == FIREWALL_INCOMING_BLOCK and rule[2].endswith('2'): rules.append({ "name": rule[0], "group": rule[1], "ip": rule[4], "enabled": (True if rule[2][2] == '1' else False) }) if fw_type == FIREWALL_OUTGOING_BLOCK and rule[2].endswith('4'): rules.append({ "name": rule[0], "group": rule[1], "proto": int(rule[3]), "ip": rule[4], "port": rule[5], "enabled": (True if rule[2][2] == '1' else False) }) if fw_type == FIREWALL_FORWARDING and rule[2].endswith('8'): rules.append({ "name": rule[0], "group": rule[1], "proto": int(rule[3]), "dst_ip": rule[4], "dst_port": rule[5], "src_port": rule[6], "enabled": (True if rule[2][2] == '1' else False) }) if line == 'RULES="': rules_started = True return rules def deleteFirewall(rule): with open(FIREWALL_CFG_PATH,'r') as f: lines = f.readlines() success = False i = 0 for line in lines: if line == "\t" + rule + " \\\n": # TODO: make more checks success = True break i += 1 if success: lines.pop(i) with open(FIREWALL_CFG_PATH,'w') as f: lines = "".join(lines) f.write(lines) return success def insertFirewall(rule): with open(FIREWALL_CFG_PATH,'r') as f: lines = f.readlines() success = False i = 0 for line in lines: i += 1 if line.startswith('RULES="'): success = True break if success: lines.insert(i,"\t" + rule + " \\\n") with open(FIREWALL_CFG_PATH,'w') as f: lines = "".join(lines) f.write(lines) return success def generateFirewall(rule,fw_type): fw_rule = "" if fw_type == FIREWALL_INCOMING_ALLOW: fw_rule = "|".join([ rule.name, (rule.group if rule.group else ""), ("0x10000001" if rule.enabled else "0x00000001"), str(rule.proto), "", rule.port, "" ]) if fw_type == FIREWALL_INCOMING_BLOCK: fw_rule = "|".join([ rule.name, (rule.group if rule.group else ""), ("0x10000002" if rule.enabled else "0x00000002"), "0", rule.ip, "", "" ]) if fw_type == FIREWALL_OUTGOING_BLOCK: fw_rule = "|".join([ rule.name, (rule.group if rule.group else ""), ("0x10000004" if rule.enabled else "0x00000004"), str(rule.proto), rule.ip, rule.port, "" ]) if fw_type == FIREWALL_FORWARDING: fw_rule = "|".join([ rule.name, (rule.group if rule.group else ""), ("0x10000008" if rule.enabled else "0x00000008"), str(rule.proto), rule.dst_ip, (rule.dst_port if rule.dst_port else ""), rule.src_port ]) return fw_rule def existsFirewall(name,fw_type): for rule in getFirewall(fw_type): if rule['name'] == name: return True
firewall_forwarding = 1 firewall_incoming_allow = 2 firewall_incoming_block = 3 firewall_outgoing_block = 4 firewall_cfg_path = '/etc/clearos/firewall.conf' def get_firewall(fw_type): with open(FIREWALL_CFG_PATH, 'r') as f: lines = f.readlines() lines = [line.strip('\t\r\n\\ ') for line in lines] rules = [] rules_started = False for line in lines: if rules_started and line == '"': break if rules_started: rule = line.split('|') if fw_type == FIREWALL_INCOMING_ALLOW and rule[2].endswith('1'): rules.append({'name': rule[0], 'group': rule[1], 'proto': int(rule[3]), 'port': rule[5], 'enabled': True if rule[2][2] == '1' else False}) if fw_type == FIREWALL_INCOMING_BLOCK and rule[2].endswith('2'): rules.append({'name': rule[0], 'group': rule[1], 'ip': rule[4], 'enabled': True if rule[2][2] == '1' else False}) if fw_type == FIREWALL_OUTGOING_BLOCK and rule[2].endswith('4'): rules.append({'name': rule[0], 'group': rule[1], 'proto': int(rule[3]), 'ip': rule[4], 'port': rule[5], 'enabled': True if rule[2][2] == '1' else False}) if fw_type == FIREWALL_FORWARDING and rule[2].endswith('8'): rules.append({'name': rule[0], 'group': rule[1], 'proto': int(rule[3]), 'dst_ip': rule[4], 'dst_port': rule[5], 'src_port': rule[6], 'enabled': True if rule[2][2] == '1' else False}) if line == 'RULES="': rules_started = True return rules def delete_firewall(rule): with open(FIREWALL_CFG_PATH, 'r') as f: lines = f.readlines() success = False i = 0 for line in lines: if line == '\t' + rule + ' \\\n': success = True break i += 1 if success: lines.pop(i) with open(FIREWALL_CFG_PATH, 'w') as f: lines = ''.join(lines) f.write(lines) return success def insert_firewall(rule): with open(FIREWALL_CFG_PATH, 'r') as f: lines = f.readlines() success = False i = 0 for line in lines: i += 1 if line.startswith('RULES="'): success = True break if success: lines.insert(i, '\t' + rule + ' \\\n') with open(FIREWALL_CFG_PATH, 'w') as f: lines = ''.join(lines) f.write(lines) return success def generate_firewall(rule, fw_type): fw_rule = '' if fw_type == FIREWALL_INCOMING_ALLOW: fw_rule = '|'.join([rule.name, rule.group if rule.group else '', '0x10000001' if rule.enabled else '0x00000001', str(rule.proto), '', rule.port, '']) if fw_type == FIREWALL_INCOMING_BLOCK: fw_rule = '|'.join([rule.name, rule.group if rule.group else '', '0x10000002' if rule.enabled else '0x00000002', '0', rule.ip, '', '']) if fw_type == FIREWALL_OUTGOING_BLOCK: fw_rule = '|'.join([rule.name, rule.group if rule.group else '', '0x10000004' if rule.enabled else '0x00000004', str(rule.proto), rule.ip, rule.port, '']) if fw_type == FIREWALL_FORWARDING: fw_rule = '|'.join([rule.name, rule.group if rule.group else '', '0x10000008' if rule.enabled else '0x00000008', str(rule.proto), rule.dst_ip, rule.dst_port if rule.dst_port else '', rule.src_port]) return fw_rule def exists_firewall(name, fw_type): for rule in get_firewall(fw_type): if rule['name'] == name: return True
# SPDX-License-Identifier: MIT # Copyright (c) 2021 Akumatic # # https://adventofcode.com/2021/day/02 def read_file() -> list: with open(f"{__file__.rstrip('code.py')}input.txt", "r") as f: return [(s[0], int(s[1])) for s in (line.split() for line in f.read().strip().split("\n"))] def part1(commands: list) -> int: position, depth = 0, 0 for com in commands: if com[0] == "forward": position += com[1] elif com[0] == "down": depth += com[1] else: #com[1] == "up" depth -= com[1] return position * depth def part2(commands: list) -> int: position, depth, aim = 0, 0, 0 for com in commands: if com[0] == "forward": position += com[1] depth += aim * com[1] elif com[0] == "down": aim += com[1] else: #com[1] == "up" aim -= com[1] return position * depth if __name__ == "__main__": vals = read_file() print(f"Part 1: {part1(vals)}") print(f"Part 2: {part2(vals)}")
def read_file() -> list: with open(f"{__file__.rstrip('code.py')}input.txt", 'r') as f: return [(s[0], int(s[1])) for s in (line.split() for line in f.read().strip().split('\n'))] def part1(commands: list) -> int: (position, depth) = (0, 0) for com in commands: if com[0] == 'forward': position += com[1] elif com[0] == 'down': depth += com[1] else: depth -= com[1] return position * depth def part2(commands: list) -> int: (position, depth, aim) = (0, 0, 0) for com in commands: if com[0] == 'forward': position += com[1] depth += aim * com[1] elif com[0] == 'down': aim += com[1] else: aim -= com[1] return position * depth if __name__ == '__main__': vals = read_file() print(f'Part 1: {part1(vals)}') print(f'Part 2: {part2(vals)}')
#!/usr/bin/env python # coding: utf-8 # #### We create a function cleanQ so we can do the cleaning and preperation of our data # #### INPUT: String # #### OUTPUT: Cleaned String def cleanQ(query): query = query.lower() tokenizer = RegexpTokenizer(r'\w+') tokens = tokenizer.tokenize(query) stemmer=[ps.stem(i) for i in tokens] filtered_Q = [w for w in stemmer if not w in stopwords.words('english')] return filtered_Q # #### We create a function computeTF so we can calculate the tf # #### INPUT: Dictionary where the keys are the terms_id and the values are the frequencies of this term Id in the document # #### OUTPUT: TF of the specific Term_id in the corresponding document def computeTF(doc_words): bow = 0 for k, v in doc_words.items(): bow = bow + v tf_word = {} for word, count in doc_words.items(): tf_word[word] = count / float(bow) return tf_word # #### We create a function tf_idf so we can calculate the tfidf # #### INPUT: docid, termid # #### OUTPUT: tfidf for the input def tf_idf(docid, termid): return((movieDatabase["Clean All"][docid][termid]*idf[termid])/sum(movieDatabase["Clean All"][docid]))
def clean_q(query): query = query.lower() tokenizer = regexp_tokenizer('\\w+') tokens = tokenizer.tokenize(query) stemmer = [ps.stem(i) for i in tokens] filtered_q = [w for w in stemmer if not w in stopwords.words('english')] return filtered_Q def compute_tf(doc_words): bow = 0 for (k, v) in doc_words.items(): bow = bow + v tf_word = {} for (word, count) in doc_words.items(): tf_word[word] = count / float(bow) return tf_word def tf_idf(docid, termid): return movieDatabase['Clean All'][docid][termid] * idf[termid] / sum(movieDatabase['Clean All'][docid])
#5times range print('my name i') for i in range (5): print('jimee my name ('+ str(i) +')')
print('my name i') for i in range(5): print('jimee my name (' + str(i) + ')')
class Node(): def __init__(self, val): self.val = val self.left = None self.right = None class BST(): def __init__(self): self.root = Node(None) def insert(self, new_data): if self.root is None: self.root = Node(new_data) else: if self.root.val < new_data: self.insert(self.root.right, new_data) else: self.insert(self.root.left, new_data) def inorder(self): if self.root: self.inorder(self.root.left) print(self.root.val) self.inorder(self.root.right) if __name__ == '__main__': tree = BST() tree.insert(5) tree.insert(4) tree.insert(7) tree.inorder()
class Node: def __init__(self, val): self.val = val self.left = None self.right = None class Bst: def __init__(self): self.root = node(None) def insert(self, new_data): if self.root is None: self.root = node(new_data) elif self.root.val < new_data: self.insert(self.root.right, new_data) else: self.insert(self.root.left, new_data) def inorder(self): if self.root: self.inorder(self.root.left) print(self.root.val) self.inorder(self.root.right) if __name__ == '__main__': tree = bst() tree.insert(5) tree.insert(4) tree.insert(7) tree.inorder()
# https://app.codesignal.com/arcade/code-arcade/loop-tunnel/xzeZqCQjpfDJuN72S def additionWithoutCarrying(param1, param2): # Add the values of each column of each number without carrying. # Order them smaller and larger value. param1, param2 = sorted([param1, param2]) # Convert both values to strings. str1, str2 = str(param1), str(param2) # Pad the smaller value with 0s so all columns have a match. str1 = "0" * (len(str2) - len(str1)) + str1 res = "" for i in range(len(str2)): # Add up the integer value of each column, extract units with modulus, # then convert back to string and create a result string. res += str((int(str1[i]) + int(str2[i])) % 10) return int(res)
def addition_without_carrying(param1, param2): (param1, param2) = sorted([param1, param2]) (str1, str2) = (str(param1), str(param2)) str1 = '0' * (len(str2) - len(str1)) + str1 res = '' for i in range(len(str2)): res += str((int(str1[i]) + int(str2[i])) % 10) return int(res)
# 1137. N-th Tribonacci Number # Runtime: 32 ms, faster than 35.84% of Python3 online submissions for N-th Tribonacci Number. # Memory Usage: 14.3 MB, less than 15.94% of Python3 online submissions for N-th Tribonacci Number. class Solution: # Space Optimisation - Dynamic Programming def tribonacci(self, n: int) -> int: if n < 3: return 1 if n else 0 x, y, z = 0, 1, 1 for _ in range(n - 2): x, y, z = y, z, x + y + z return z
class Solution: def tribonacci(self, n: int) -> int: if n < 3: return 1 if n else 0 (x, y, z) = (0, 1, 1) for _ in range(n - 2): (x, y, z) = (y, z, x + y + z) return z
# Exercise2.p1 # Variables, Strings, Ints and Print Exercise # Given two variables - name and age. # Use the format() function to create a sentence that reads: # "Hi my name is Julie and I am 42 years old" # Set that equal to the variable called sentence name = "Julie" age = "42" sentence = "Hi my name is {} and i am {} years old".format(name,age) print(sentence)
name = 'Julie' age = '42' sentence = 'Hi my name is {} and i am {} years old'.format(name, age) print(sentence)
def ordinal(num): suffixes = {1: 'st', 2: 'nd', 3: 'rd'} if 10 <= num % 100 <= 20: suffix = 'th' else: suffix = suffixes.get(num % 10, 'th') return str(num) + suffix def num_to_text(num): texts = { 1: 'first', 2: 'second', 3: 'third', 4: 'fourth', 5: 'fifth', 6: 'sixth', 7: 'seventh', 8: 'eighth', 9: 'ninth', 10: 'tenth', 11: 'eleventh', 12: 'twelfth', 13: 'thirteenth', 14: 'fourteenth', 15: 'fifteenth', 16: 'sixteenth', 17: 'seventeenth', 18: 'eighteenth', 19: 'nineteenth', 20: 'twentieth', } if num in texts: return texts[num] else: return ordinal(num)
def ordinal(num): suffixes = {1: 'st', 2: 'nd', 3: 'rd'} if 10 <= num % 100 <= 20: suffix = 'th' else: suffix = suffixes.get(num % 10, 'th') return str(num) + suffix def num_to_text(num): texts = {1: 'first', 2: 'second', 3: 'third', 4: 'fourth', 5: 'fifth', 6: 'sixth', 7: 'seventh', 8: 'eighth', 9: 'ninth', 10: 'tenth', 11: 'eleventh', 12: 'twelfth', 13: 'thirteenth', 14: 'fourteenth', 15: 'fifteenth', 16: 'sixteenth', 17: 'seventeenth', 18: 'eighteenth', 19: 'nineteenth', 20: 'twentieth'} if num in texts: return texts[num] else: return ordinal(num)
#To reverse a given number def ReverseNo(num): num = str(num) reverse = ''.join(reversed(num)) print(reverse) Num = int(input('N= ')) ReverseNo(Num)
def reverse_no(num): num = str(num) reverse = ''.join(reversed(num)) print(reverse) num = int(input('N= ')) reverse_no(Num)
def age_assignment(*args, **kwargs): answer = {} for arg in args: for k, v in kwargs.items(): if arg[0] == k: answer[arg] = v return answer
def age_assignment(*args, **kwargs): answer = {} for arg in args: for (k, v) in kwargs.items(): if arg[0] == k: answer[arg] = v return answer
class Solution: def restoreString(self, s: str, indices: List[int]) -> str: answer = "" for i in range(len(indices)): answer += s[indices.index(i)] return answer
class Solution: def restore_string(self, s: str, indices: List[int]) -> str: answer = '' for i in range(len(indices)): answer += s[indices.index(i)] return answer
{ ".py": { "from osv import osv, fields": [regex("^from osv import osv, fields$"), "from odoo import models, fields, api"], "from osv import fields, osv": [regex("^from osv import fields, osv$"), "from odoo import models, fields, api"], "(osv.osv)": [regex("\(osv\.osv\)"), "(models.Model)"], "from osv.orm import except_orm": [regex("^from osv\.orm import except_orm$"), "from odoo.exceptions import except_orm"], "from tools import config": [regex("^from tools import config$"), "from odoo.tools import config"], "from tools.translate import _": [regex("^from tools\.translate import _$"), "from odoo import _"], "import tools": [regex("^import tools$"), "from odoo import tools"], "name_get()": [regex("^ def name_get\(self,.*?\):"), " @api.multi\n def name_get(self):"], "select=1": ["select=1", "index=True"], "select=0": ["select=0", "index=False"], "": ["", ""], }, ".xml": { "<openerp>": ["<openerp>", "<odoo>"], "</openerp>": ["</openerp>", "</odoo>"], "ir.sequence.type record": [regex('^\\s*<record model="ir.sequence.type".*?<\/record>'), ""] } }
{'.py': {'from osv import osv, fields': [regex('^from osv import osv, fields$'), 'from odoo import models, fields, api'], 'from osv import fields, osv': [regex('^from osv import fields, osv$'), 'from odoo import models, fields, api'], '(osv.osv)': [regex('\\(osv\\.osv\\)'), '(models.Model)'], 'from osv.orm import except_orm': [regex('^from osv\\.orm import except_orm$'), 'from odoo.exceptions import except_orm'], 'from tools import config': [regex('^from tools import config$'), 'from odoo.tools import config'], 'from tools.translate import _': [regex('^from tools\\.translate import _$'), 'from odoo import _'], 'import tools': [regex('^import tools$'), 'from odoo import tools'], 'name_get()': [regex('^ def name_get\\(self,.*?\\):'), ' @api.multi\n def name_get(self):'], 'select=1': ['select=1', 'index=True'], 'select=0': ['select=0', 'index=False'], '': ['', '']}, '.xml': {'<openerp>': ['<openerp>', '<odoo>'], '</openerp>': ['</openerp>', '</odoo>'], 'ir.sequence.type record': [regex('^\\s*<record model="ir.sequence.type".*?<\\/record>'), '']}}
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def findTarget(self, root: Optional[TreeNode], k: int) -> bool: nums = [] self.nodeValueExtract(root, nums) for i in range(len(nums)): if k - nums[i] in nums[i+1:]: return True return False def nodeValueExtract(self, root, nums): if root: self.nodeValueExtract(root.left, nums) nums.append(root.val) self.nodeValueExtract(root.right, nums)
class Solution: def find_target(self, root: Optional[TreeNode], k: int) -> bool: nums = [] self.nodeValueExtract(root, nums) for i in range(len(nums)): if k - nums[i] in nums[i + 1:]: return True return False def node_value_extract(self, root, nums): if root: self.nodeValueExtract(root.left, nums) nums.append(root.val) self.nodeValueExtract(root.right, nums)
# Encapsulation: intance variables and methods can be kept private. # Abtraction: each object should only expose a high level mechanism # for using it. It should hide internal implementation details and only # reveal operations relvant for other objects. # ex. HR dept setting salary using setter method class SoftwareEngineer: def __init__(self, name, age): self.name = name self.age = age # protected variable # can still be accessed outside self._salary = None # strict private variable # AttributeError: 'CLASS' object has no attribute '__<attribute_name>' # However __ is not used conventionally and _ is used. self.__salary = 5000 # protected variable self._nums_bugs_solved = 0 def code(self): self._nums_bugs_solved += 1 # protected method def _calcluate_salary(self, base_value): if self._nums_bugs_solved < 10: return base_value elif self._nums_bugs_solved < 100: return base_value * 2 return base_value # getter method: manual implementation def get_salary(self): return self._salary # getter method def get_nums_bugs_solved(self): return self._nums_bugs_solved # setter method def set_salary(self, base_value): value = self._calcluate_salary(base_value) # check value, enforce constarints if value < 1000: self._salary = 1000 if value > 20000: self._salary = 20000 self._salary = value # pythonic implementation of getter method # use @property decorator # name of the method is variable_name being set # called by print(<instance_name>.<variable_name>) @property def salary(self): return self._salary # pythonic implementation of setter method # use @<variable>.setter decorator # name of the method is variable_name being set # used by <instance_name>.<variable_name> = <VALUE> @salary.setter def salary(self, base_value): value = self._calcluate_salary(base_value) # check value, enforce constarints if value < 1000: self._salary = 1000 if value > 20000: self._salary = 20000 self._salary = value # pythonic implementation of the delete method # use @<variable>.deleter decorator # name of the method is variable_name being deleted # called by del <instance_name>.<variable_name> @salary.deleter def salary(self): del self._salary se = SoftwareEngineer("max", 25) print(se.age, se.name) print(se._salary) # print(se.__salary) for i in range(70): se.code() print(se.get_nums_bugs_solved()) se.set_salary(6000) print(se.get_salary()) se.salary = 5000 print(se.salary) del se.salary print(se.salary) ''' 25 max None 70 12000 10000 Traceback (most recent call last): File "/home/vibha/visual_studio/oop4.py", line 106, in <module> print(se.salary) File "/home/vibha/visual_studio/oop4.py", line 63, in salary return self._salary AttributeError: 'SoftwareEngineer' object has no attribute '_salary' '''
class Softwareengineer: def __init__(self, name, age): self.name = name self.age = age self._salary = None self.__salary = 5000 self._nums_bugs_solved = 0 def code(self): self._nums_bugs_solved += 1 def _calcluate_salary(self, base_value): if self._nums_bugs_solved < 10: return base_value elif self._nums_bugs_solved < 100: return base_value * 2 return base_value def get_salary(self): return self._salary def get_nums_bugs_solved(self): return self._nums_bugs_solved def set_salary(self, base_value): value = self._calcluate_salary(base_value) if value < 1000: self._salary = 1000 if value > 20000: self._salary = 20000 self._salary = value @property def salary(self): return self._salary @salary.setter def salary(self, base_value): value = self._calcluate_salary(base_value) if value < 1000: self._salary = 1000 if value > 20000: self._salary = 20000 self._salary = value @salary.deleter def salary(self): del self._salary se = software_engineer('max', 25) print(se.age, se.name) print(se._salary) for i in range(70): se.code() print(se.get_nums_bugs_solved()) se.set_salary(6000) print(se.get_salary()) se.salary = 5000 print(se.salary) del se.salary print(se.salary) '\n25 max\nNone\n70\n12000\n10000\nTraceback (most recent call last):\n File "/home/vibha/visual_studio/oop4.py", line 106, in <module>\n print(se.salary)\n File "/home/vibha/visual_studio/oop4.py", line 63, in salary\n return self._salary\nAttributeError: \'SoftwareEngineer\' object has no attribute \'_salary\'\n'
n, m = map(int, input().split()) student = [tuple(map(int, input().split())) for _ in range(n)] check_points = [tuple(map(int, input().split())) for _ in range(m)] for a, b in student: dst_min = float('inf') ans = float('inf') for i, (c, d) in enumerate(check_points): now = abs(a - c) + abs(b - d) if now < dst_min: dst_min = now ans = i + 1 print(ans)
(n, m) = map(int, input().split()) student = [tuple(map(int, input().split())) for _ in range(n)] check_points = [tuple(map(int, input().split())) for _ in range(m)] for (a, b) in student: dst_min = float('inf') ans = float('inf') for (i, (c, d)) in enumerate(check_points): now = abs(a - c) + abs(b - d) if now < dst_min: dst_min = now ans = i + 1 print(ans)
# # Copyright Soramitsu Co., Ltd. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 # grantable = { 'can_add_my_signatory': 'kAddMySignatory', 'can_remove_my_signatory': 'kRemoveMySignatory', 'can_set_my_account_detail': 'kSetMyAccountDetail', 'can_set_my_quorum': 'kSetMyQuorum', 'can_transfer_my_assets': 'kTransferMyAssets' } role = { 'can_add_asset_qty': 'kAddAssetQty', 'can_add_domain_asset_qty': 'kAddDomainAssetQty', 'can_add_peer': 'kAddPeer', 'can_add_signatory': 'kAddSignatory', 'can_append_role': 'kAppendRole', 'can_create_account': 'kCreateAccount', 'can_create_asset': 'kCreateAsset', 'can_create_domain': 'kCreateDomain', 'can_create_role': 'kCreateRole', 'can_detach_role': 'kDetachRole', 'can_get_all_acc_ast': 'kGetAllAccAst', 'can_get_all_acc_ast_txs': 'kGetAllAccAstTxs', 'can_get_all_acc_detail': 'kGetAllAccDetail', 'can_get_all_acc_txs': 'kGetAllAccTxs', 'can_get_all_accounts': 'kGetAllAccounts', 'can_get_all_signatories': 'kGetAllSignatories', 'can_get_all_txs': 'kGetAllTxs', 'can_get_blocks': 'kGetBlocks', 'can_get_domain_acc_ast': 'kGetDomainAccAst', 'can_get_domain_acc_ast_txs': 'kGetDomainAccAstTxs', 'can_get_domain_acc_detail': 'kGetDomainAccDetail', 'can_get_domain_acc_txs': 'kGetDomainAccTxs', 'can_get_domain_accounts': 'kGetDomainAccounts', 'can_get_domain_signatories': 'kGetDomainSignatories', 'can_get_my_acc_ast': 'kGetMyAccAst', 'can_get_my_acc_ast_txs': 'kGetMyAccAstTxs', 'can_get_my_acc_detail': 'kGetMyAccDetail', 'can_get_my_acc_txs': 'kGetMyAccTxs', 'can_get_my_account': 'kGetMyAccount', 'can_get_my_signatories': 'kGetMySignatories', 'can_get_my_txs': 'kGetMyTxs', 'can_get_roles': 'kGetRoles', 'can_grant_can_add_my_signatory': 'kAddMySignatory', 'can_grant_can_remove_my_signatory': 'kRemoveMySignatory', 'can_grant_can_set_my_account_detail': 'kSetMyAccountDetail', 'can_grant_can_set_my_quorum': 'kSetMyQuorum', 'can_grant_can_transfer_my_assets': 'kTransferMyAssets', 'can_read_assets': 'kReadAssets', 'can_receive': 'kReceive', 'can_remove_signatory': 'kRemoveSignatory', 'can_set_detail': 'kSetDetail', 'can_set_quorum': 'kSetQuorum', 'can_subtract_asset_qty': 'kSubtractAssetQty', 'can_subtract_domain_asset_qty': 'kSubtractDomainAssetQty', 'can_transfer': 'kTransfer' }
grantable = {'can_add_my_signatory': 'kAddMySignatory', 'can_remove_my_signatory': 'kRemoveMySignatory', 'can_set_my_account_detail': 'kSetMyAccountDetail', 'can_set_my_quorum': 'kSetMyQuorum', 'can_transfer_my_assets': 'kTransferMyAssets'} role = {'can_add_asset_qty': 'kAddAssetQty', 'can_add_domain_asset_qty': 'kAddDomainAssetQty', 'can_add_peer': 'kAddPeer', 'can_add_signatory': 'kAddSignatory', 'can_append_role': 'kAppendRole', 'can_create_account': 'kCreateAccount', 'can_create_asset': 'kCreateAsset', 'can_create_domain': 'kCreateDomain', 'can_create_role': 'kCreateRole', 'can_detach_role': 'kDetachRole', 'can_get_all_acc_ast': 'kGetAllAccAst', 'can_get_all_acc_ast_txs': 'kGetAllAccAstTxs', 'can_get_all_acc_detail': 'kGetAllAccDetail', 'can_get_all_acc_txs': 'kGetAllAccTxs', 'can_get_all_accounts': 'kGetAllAccounts', 'can_get_all_signatories': 'kGetAllSignatories', 'can_get_all_txs': 'kGetAllTxs', 'can_get_blocks': 'kGetBlocks', 'can_get_domain_acc_ast': 'kGetDomainAccAst', 'can_get_domain_acc_ast_txs': 'kGetDomainAccAstTxs', 'can_get_domain_acc_detail': 'kGetDomainAccDetail', 'can_get_domain_acc_txs': 'kGetDomainAccTxs', 'can_get_domain_accounts': 'kGetDomainAccounts', 'can_get_domain_signatories': 'kGetDomainSignatories', 'can_get_my_acc_ast': 'kGetMyAccAst', 'can_get_my_acc_ast_txs': 'kGetMyAccAstTxs', 'can_get_my_acc_detail': 'kGetMyAccDetail', 'can_get_my_acc_txs': 'kGetMyAccTxs', 'can_get_my_account': 'kGetMyAccount', 'can_get_my_signatories': 'kGetMySignatories', 'can_get_my_txs': 'kGetMyTxs', 'can_get_roles': 'kGetRoles', 'can_grant_can_add_my_signatory': 'kAddMySignatory', 'can_grant_can_remove_my_signatory': 'kRemoveMySignatory', 'can_grant_can_set_my_account_detail': 'kSetMyAccountDetail', 'can_grant_can_set_my_quorum': 'kSetMyQuorum', 'can_grant_can_transfer_my_assets': 'kTransferMyAssets', 'can_read_assets': 'kReadAssets', 'can_receive': 'kReceive', 'can_remove_signatory': 'kRemoveSignatory', 'can_set_detail': 'kSetDetail', 'can_set_quorum': 'kSetQuorum', 'can_subtract_asset_qty': 'kSubtractAssetQty', 'can_subtract_domain_asset_qty': 'kSubtractDomainAssetQty', 'can_transfer': 'kTransfer'}
def printName(): print("I absolutely \nlove coding \nwith Python!".format()) if __name__ == '__main__': printName()
def print_name(): print('I absolutely \nlove coding \nwith Python!'.format()) if __name__ == '__main__': print_name()
#6 uniform distribution p=[0.2, 0.2, 0.2, 0.2, 0.2] print(p) #7 generalized uniform distribution p=[] n=5 for i in range(n): p.append(1/n) print(p) #11 pHit and pMiss # not elegent but does the job pHit=0.6 pMiss=0.2 p[0]=p[0]*pMiss p[1]=p[1]*pHit p[2]=p[2]*pHit p[3]=p[3]*pMiss p[4]=p[4]*pMiss print(p) #12 print out sum of probabilities print(sum(p)) #13 sense function # sense function is the measurement update, which takes as input the initial # distribution p, measurement z, and other global variables, and outputs a normalized # distribution Q, which reflects the non-normalized product of imput probability # i.e.0.2 and so on, and the corresponding pHit(0.6) and or pMiss(0.2) in accordance # to whether these colours over here agree or disagree. # The reason for the localizer is because later on as we build our localizer we will # this to every single measurement over and over again. p=[0.2, 0.2, 0.2, 0.2, 0.2] world=['green', 'red', 'red', 'green', 'green'] Z = 'red' #or green pHit = 0.6 pMiss = 0.2 def sense(p, Z): q=[] for i in range(len(p)): hit = (Z == world[i]) q.append(p[i] * (hit * pHit + (1-hit) * pMiss)) s = sum(q) for i in range(len(p)): q[i] = q[i]/s return q print(sense(p,Z)) #16 multiple measurements # This is a way to test the code, we grab the kth measurement element and apply # it into the current belief, then recursively update that belief into itself. # we should get back the uniform distribution # Modify the code so that it updates the probability twice # and gives the posterior distribution after both # measurements are incorporated. Make sure that your code # allows for any sequence of measurement of any length. p=[0.2, 0.2, 0.2, 0.2, 0.2] world=['green', 'red', 'red', 'green', 'green'] measurements = ['red', 'green'] pHit = 0.6 pMiss = 0.2 def sense(p, Z): q=[] for i in range(len(p)): hit = (Z == world[i]) q.append(p[i] * (hit * pHit + (1-hit) * pMiss)) s = sum(q) for i in range(len(q)): q[i] = q[i] / s return q for k in range(len(measurements)): p = sense(p, measurements[k]) print(p) #19 move function # shift data one cell to the right # Program a function that returns a new distribution # q, shifted to the right by U units. If U=0, q should # be the same as p. p=[0, 1, 0, 0, 0] world=['green', 'red', 'red', 'green', 'green'] measurements = ['red', 'green'] pHit = 0.6 pMiss = 0.2 #match the measurement with the belief, measurement update function def sense(p, Z): q=[] for i in range(len(p)): hit = (Z == world[i]) q.append(p[i] * (hit * pHit + (1-hit) * pMiss)) s = sum(q) for i in range(len(q)): q[i] = q[i] / s return q def move(p, U): q = [] for i in range(len(p)): q.append(p[(i-U)%len(p)]) #minus sign, 1 place to the left return q print(move(p, 1)) #23 inexact move function # Modify the move function to accommodate the added # probabilities of overshooting and undershooting # the intended destination. p=[0, 1, 0, 0, 0] world=['green', 'red', 'red', 'green', 'green'] #specifies colour of cell measurements = ['red', 'green'] pHit = 0.6 #probability of hitting the correct colour pMiss = 0.2 #probability of missing the correct colour pExact = 0.8 pOvershoot = 0.1 pUndershoot = 0.1 def sense(p, Z): q=[] for i in range(len(p)): hit = (Z == world[i]) q.append(p[i] * (hit * pHit + (1-hit) * pMiss)) s = sum(q) for i in range(len(q)): q[i] = q[i] / s return q #circle shift def move(p, U): #grid cells the robot is moving to the right q = [] for i in range(len(p)): #auxillary variable s = pExact * p[(i-U) % len(p)] s = s + pOvershoot * p[(i-U-1) % len(p)] #one step further s = s + pUndershoot * p[(i-U+1) % len(p)] #one step behind q.append(s) return q print(move(p,1)) #24 limit distribution # [1 0 0 0 0] spreads out to [0.2 0.2 0.2 0.2 0.2] after some time # everytime you move you lose information # without update, no information # moving many times without update # p(x4) = 0.8*x2 + 0.1*x1 + 0.1*x3 balanc equation in the limit #25 move twice quiz # Write code that makes the robot move twice and then prints # out the resulting distribution, starting with the initial # distribution p = [0, 1, 0, 0, 0] p=[0, 1, 0, 0, 0] world=['green', 'red', 'red', 'green', 'green'] measurements = ['red', 'green'] pHit = 0.6 pMiss = 0.2 pExact = 0.8 pOvershoot = 0.1 pUndershoot = 0.1 def sense(p, Z): q=[] for i in range(len(p)): hit = (Z == world[i]) q.append(p[i] * (hit * pHit + (1-hit) * pMiss)) s = sum(q) for i in range(len(q)): q[i] = q[i] / s return q def move(p, U): q = [] for i in range(len(p)): s = pExact * p[(i-U) % len(p)] s = s + pOvershoot * p[(i-U-1) % len(p)] s = s + pUndershoot * p[(i-U+1) % len(p)] q.append(s) return q for i in range(1000): p=move(p,1) print(p) #notes: # localization is sense/move conbination # everytime it moves robot loses information # everytime it moves robot regains information # entropy #27 sense and move # Given the list motions=[1,1] which means the robot # moves right and then right again, compute the posterior # distribution if the robot first senses red, then moves # right one, then senses green, then moves right again, # starting with a uniform prior distribution. p=[0.2, 0.2, 0.2, 0.2, 0.2] world=['green', 'red', 'red', 'green', 'green'] measurements = ['red', 'green'] motions = [1,1] pHit = 0.6 pMiss = 0.2 pExact = 0.8 pOvershoot = 0.1 pUndershoot = 0.1 def sense(p, Z): q=[] for i in range(len(p)): hit = (Z == world[i]) q.append(p[i] * (hit * pHit + (1-hit) * pMiss)) s = sum(q) for i in range(len(q)): q[i] = q[i] / s return q def move(p, U): q = [] for i in range(len(p)): s = pExact * p[(i-U) % len(p)] s = s + pOvershoot * p[(i-U-1) % len(p)] s = s + pUndershoot * p[(i-U+1) % len(p)] q.append(s) return q for k in range(len(measurements)): p = sense(p,measurements[k]) p = move(p,motions[k]) print(p) #results show that robot most likely ended up in the 5th cell #28 move twice # Modify the previous code so that the robot senses red twice. p=[0.2, 0.2, 0.2, 0.2, 0.2] world=['green', 'red', 'red', 'green', 'green'] measurements = ['red', 'red'] motions = [1,1] pHit = 0.6 pMiss = 0.2 pExact = 0.8 pOvershoot = 0.1 pUndershoot = 0.1 def sense(p, Z): q=[] for i in range(len(p)): hit = (Z == world[i]) q.append(p[i] * (hit * pHit + (1-hit) * pMiss)) s = sum(q) for i in range(len(q)): q[i] = q[i] / s return q def move(p, U): q = [] for i in range(len(p)): s = pExact * p[(i-U) % len(p)] s = s + pOvershoot * p[(i-U-1) % len(p)] s = s + pUndershoot * p[(i-U+1) % len(p)] q.append(s) return q for k in range(len(measurements)): p = sense(p, measurements[k]) p = move(p, motions[k]) print(p) # most likely in 4th cell, it's the cell after the last observation # this is the essense of google's self driving car code # It is crucial that the car knows where it is. # While the road is not painted red and green, the road has lane markers. # instead of read and green cells over here, we plug in the colour of the pavement # versus the colour of the lane markers, it isn't just one observation per time # step, it is an entire field of observations. an entire camara image. # As long as you can correspond a car image in your model, with a camera image in # your model, then the piece of code is not much more difficult than what I have here.
p = [0.2, 0.2, 0.2, 0.2, 0.2] print(p) p = [] n = 5 for i in range(n): p.append(1 / n) print(p) p_hit = 0.6 p_miss = 0.2 p[0] = p[0] * pMiss p[1] = p[1] * pHit p[2] = p[2] * pHit p[3] = p[3] * pMiss p[4] = p[4] * pMiss print(p) print(sum(p)) p = [0.2, 0.2, 0.2, 0.2, 0.2] world = ['green', 'red', 'red', 'green', 'green'] z = 'red' p_hit = 0.6 p_miss = 0.2 def sense(p, Z): q = [] for i in range(len(p)): hit = Z == world[i] q.append(p[i] * (hit * pHit + (1 - hit) * pMiss)) s = sum(q) for i in range(len(p)): q[i] = q[i] / s return q print(sense(p, Z)) p = [0.2, 0.2, 0.2, 0.2, 0.2] world = ['green', 'red', 'red', 'green', 'green'] measurements = ['red', 'green'] p_hit = 0.6 p_miss = 0.2 def sense(p, Z): q = [] for i in range(len(p)): hit = Z == world[i] q.append(p[i] * (hit * pHit + (1 - hit) * pMiss)) s = sum(q) for i in range(len(q)): q[i] = q[i] / s return q for k in range(len(measurements)): p = sense(p, measurements[k]) print(p) p = [0, 1, 0, 0, 0] world = ['green', 'red', 'red', 'green', 'green'] measurements = ['red', 'green'] p_hit = 0.6 p_miss = 0.2 def sense(p, Z): q = [] for i in range(len(p)): hit = Z == world[i] q.append(p[i] * (hit * pHit + (1 - hit) * pMiss)) s = sum(q) for i in range(len(q)): q[i] = q[i] / s return q def move(p, U): q = [] for i in range(len(p)): q.append(p[(i - U) % len(p)]) return q print(move(p, 1)) p = [0, 1, 0, 0, 0] world = ['green', 'red', 'red', 'green', 'green'] measurements = ['red', 'green'] p_hit = 0.6 p_miss = 0.2 p_exact = 0.8 p_overshoot = 0.1 p_undershoot = 0.1 def sense(p, Z): q = [] for i in range(len(p)): hit = Z == world[i] q.append(p[i] * (hit * pHit + (1 - hit) * pMiss)) s = sum(q) for i in range(len(q)): q[i] = q[i] / s return q def move(p, U): q = [] for i in range(len(p)): s = pExact * p[(i - U) % len(p)] s = s + pOvershoot * p[(i - U - 1) % len(p)] s = s + pUndershoot * p[(i - U + 1) % len(p)] q.append(s) return q print(move(p, 1)) p = [0, 1, 0, 0, 0] world = ['green', 'red', 'red', 'green', 'green'] measurements = ['red', 'green'] p_hit = 0.6 p_miss = 0.2 p_exact = 0.8 p_overshoot = 0.1 p_undershoot = 0.1 def sense(p, Z): q = [] for i in range(len(p)): hit = Z == world[i] q.append(p[i] * (hit * pHit + (1 - hit) * pMiss)) s = sum(q) for i in range(len(q)): q[i] = q[i] / s return q def move(p, U): q = [] for i in range(len(p)): s = pExact * p[(i - U) % len(p)] s = s + pOvershoot * p[(i - U - 1) % len(p)] s = s + pUndershoot * p[(i - U + 1) % len(p)] q.append(s) return q for i in range(1000): p = move(p, 1) print(p) p = [0.2, 0.2, 0.2, 0.2, 0.2] world = ['green', 'red', 'red', 'green', 'green'] measurements = ['red', 'green'] motions = [1, 1] p_hit = 0.6 p_miss = 0.2 p_exact = 0.8 p_overshoot = 0.1 p_undershoot = 0.1 def sense(p, Z): q = [] for i in range(len(p)): hit = Z == world[i] q.append(p[i] * (hit * pHit + (1 - hit) * pMiss)) s = sum(q) for i in range(len(q)): q[i] = q[i] / s return q def move(p, U): q = [] for i in range(len(p)): s = pExact * p[(i - U) % len(p)] s = s + pOvershoot * p[(i - U - 1) % len(p)] s = s + pUndershoot * p[(i - U + 1) % len(p)] q.append(s) return q for k in range(len(measurements)): p = sense(p, measurements[k]) p = move(p, motions[k]) print(p) p = [0.2, 0.2, 0.2, 0.2, 0.2] world = ['green', 'red', 'red', 'green', 'green'] measurements = ['red', 'red'] motions = [1, 1] p_hit = 0.6 p_miss = 0.2 p_exact = 0.8 p_overshoot = 0.1 p_undershoot = 0.1 def sense(p, Z): q = [] for i in range(len(p)): hit = Z == world[i] q.append(p[i] * (hit * pHit + (1 - hit) * pMiss)) s = sum(q) for i in range(len(q)): q[i] = q[i] / s return q def move(p, U): q = [] for i in range(len(p)): s = pExact * p[(i - U) % len(p)] s = s + pOvershoot * p[(i - U - 1) % len(p)] s = s + pUndershoot * p[(i - U + 1) % len(p)] q.append(s) return q for k in range(len(measurements)): p = sense(p, measurements[k]) p = move(p, motions[k]) print(p)
BASE_DEPS = [ "//jflex", "//jflex:testing", "//java/jflex/testing/testsuite", "//third_party/com/google/truth", ] def jflex_testsuite(**kwargs): args = update_args(kwargs) native.java_test(**args) def update_args(kwargs): if ("deps" in kwargs): kwargs["deps"] = kwargs["deps"] + BASE_DEPS else: kwargs["deps"] = BASE_DEPS return kwargs
base_deps = ['//jflex', '//jflex:testing', '//java/jflex/testing/testsuite', '//third_party/com/google/truth'] def jflex_testsuite(**kwargs): args = update_args(kwargs) native.java_test(**args) def update_args(kwargs): if 'deps' in kwargs: kwargs['deps'] = kwargs['deps'] + BASE_DEPS else: kwargs['deps'] = BASE_DEPS return kwargs
ISCSI_CONNECTIVITY_TYPE = "iscsi" FC_CONNECTIVITY_TYPE = "fc" SPACE_EFFICIENCY_THIN = 'thin' SPACE_EFFICIENCY_COMPRESSED = 'compressed' SPACE_EFFICIENCY_DEDUPLICATED = 'deduplicated' SPACE_EFFICIENCY_THICK = 'thick' SPACE_EFFICIENCY_NONE = 'none' # volume context CONTEXT_POOL = "pool"
iscsi_connectivity_type = 'iscsi' fc_connectivity_type = 'fc' space_efficiency_thin = 'thin' space_efficiency_compressed = 'compressed' space_efficiency_deduplicated = 'deduplicated' space_efficiency_thick = 'thick' space_efficiency_none = 'none' context_pool = 'pool'
bch_code_parameters = { 3:{ 1:4 }, 4:{ 1:11, 2:7, 3:5 }, 5:{ 1:26, 2:21, 3:16, 5:11, 7:6 }, 6:{ 1:57, 2:51, 3:45, 4:39, 5:36, 6:30, 7:24, 10:18, 11:16, 13:10, 15:7 }, 7:{ 1:120, 2:113, 3:106, 4:99, 5:92, 6:85, 7:78, 9:71, 10:64, 11:57, 13:50, 14:43, 15:36, 21:29, 23:22, 27:15, 31:8 }, 8:{ 1:247, 2:239, 3:231, 4:223, 5:215, 6:207, 7:199, 8:191, 9:187, 10:179, 11:171, 12:163, 13:155, 14:147, 15:139, 18:131, 19:123, 21:115, 22:107, 23:99, 25:91, 26:87, 27:79, 29:71, 30:63, 31:55, 42:47, 43:45, 45:37, 47:29, 55:21, 59:13, 63:9 } }
bch_code_parameters = {3: {1: 4}, 4: {1: 11, 2: 7, 3: 5}, 5: {1: 26, 2: 21, 3: 16, 5: 11, 7: 6}, 6: {1: 57, 2: 51, 3: 45, 4: 39, 5: 36, 6: 30, 7: 24, 10: 18, 11: 16, 13: 10, 15: 7}, 7: {1: 120, 2: 113, 3: 106, 4: 99, 5: 92, 6: 85, 7: 78, 9: 71, 10: 64, 11: 57, 13: 50, 14: 43, 15: 36, 21: 29, 23: 22, 27: 15, 31: 8}, 8: {1: 247, 2: 239, 3: 231, 4: 223, 5: 215, 6: 207, 7: 199, 8: 191, 9: 187, 10: 179, 11: 171, 12: 163, 13: 155, 14: 147, 15: 139, 18: 131, 19: 123, 21: 115, 22: 107, 23: 99, 25: 91, 26: 87, 27: 79, 29: 71, 30: 63, 31: 55, 42: 47, 43: 45, 45: 37, 47: 29, 55: 21, 59: 13, 63: 9}}
XXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXX
CONFIGS = { "session": "1", "store_location": ".", "folder": "Estudiante_1", "video": True, "audio": False, "mqtt_hostname": "10.42.0.1", "mqtt_username" : "james", "mqtt_password" : "james", "mqtt_port" : 1883, "dev_id": "1", "rap_server": "10.42.0.1" } CAMERA = { "brightness": 60, "saturation": -60, "contrast" : 0, # "resolution": (1280,720), # "resolution": (1296,972), "resolution": (640, 480), "framerate": 5 } #SERVER_URL = '200.10.150.237:50052' # Servidor bio SERVER_URL = '200.126.23.95:50052' # Servidor sala RAP
configs = {'session': '1', 'store_location': '.', 'folder': 'Estudiante_1', 'video': True, 'audio': False, 'mqtt_hostname': '10.42.0.1', 'mqtt_username': 'james', 'mqtt_password': 'james', 'mqtt_port': 1883, 'dev_id': '1', 'rap_server': '10.42.0.1'} camera = {'brightness': 60, 'saturation': -60, 'contrast': 0, 'resolution': (640, 480), 'framerate': 5} server_url = '200.126.23.95:50052'
def solution(A): exchange_0 = exchange_1 = pos = -1 idx = 1 while idx < len(A): if A[idx] < A[idx - 1]: if exchange_0 == -1: exchange_0 = A[idx - 1] exchange_1 = A[idx] else: return False if exchange_0 > 0: if A[idx] > exchange_0: if A[idx - 1] > exchange_1: return False else: pos = idx - 1 idx += 1 if exchange_0 == exchange_1 == pos == -1: return True else: return True if pos != -1 else False
def solution(A): exchange_0 = exchange_1 = pos = -1 idx = 1 while idx < len(A): if A[idx] < A[idx - 1]: if exchange_0 == -1: exchange_0 = A[idx - 1] exchange_1 = A[idx] else: return False if exchange_0 > 0: if A[idx] > exchange_0: if A[idx - 1] > exchange_1: return False else: pos = idx - 1 idx += 1 if exchange_0 == exchange_1 == pos == -1: return True else: return True if pos != -1 else False
### WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING ### ### This file MUST be edited properly and copied to settings.py in order for ### SMS functionality to work. Get set up on Twilio.com for the required API ### keys and phone number settings. ### ### WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING # These are Twilio API settings. Sign up at Twilio to get them. account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" auth_token = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" # The number the SMS is from. Must be valid on your Twilio account. phone_from="+1213XXXYYYY" # The number to send the SMS to (your cell phone number) phone_to="+1808XXXYYYY"
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' auth_token = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' phone_from = '+1213XXXYYYY' phone_to = '+1808XXXYYYY'
# attributes are characteristics of an object defined in a "magic method" called __init__, which method is called when a new object is instantiated class User: # declare a class and give it name User def __init__(self): self.name = "Steven" self.email = "swm9220@gmail.com" self.account_balance = 0 # instantiate a couple of new Users guido = User() monty = User() # access instance's attributes print(guido.name) # output: Michael print(monty.name) # output: Michael # set the values of User object instance's guido.name = "Guido" monty.name = "Monty" class User: def __init__(self, username, email_address): # now our method has 2 parameters! self.name = username # and we use the values passed in to set the name attribute self.email = email_address # and the email attribute self.account_balance = 0 # the account balance is set to $0, so no need for a third parameter guido = User("Guido van Rossum", "guido@python.com") monty = User("Monty Python", "monty@python.com") print(guido.name) # output: Guido van Rossum print(monty.name) # output: Monty Python guido.make_deposit(100) class User: # here's what we have so far def __init__(self, name, email): self.name = name self.email = email self.account_balance = 0 # adding the deposit method def make_deposit(self, amount): # takes an argument that is the amount of the deposit self.account_balance += amount # the specific user's account increases by the amount of the value received guido.make_deposit(100) guido.make_deposit(200) monty.make_deposit(50) print(guido.account_balance) # output: 300 print(monty.account_balance) # output: 50
class User: def __init__(self): self.name = 'Steven' self.email = 'swm9220@gmail.com' self.account_balance = 0 guido = user() monty = user() print(guido.name) print(monty.name) guido.name = 'Guido' monty.name = 'Monty' class User: def __init__(self, username, email_address): self.name = username self.email = email_address self.account_balance = 0 guido = user('Guido van Rossum', 'guido@python.com') monty = user('Monty Python', 'monty@python.com') print(guido.name) print(monty.name) guido.make_deposit(100) class User: def __init__(self, name, email): self.name = name self.email = email self.account_balance = 0 def make_deposit(self, amount): self.account_balance += amount guido.make_deposit(100) guido.make_deposit(200) monty.make_deposit(50) print(guido.account_balance) print(monty.account_balance)
# Algorithmic question ## Longest Palindromic Subsequence # Given a string S, a subsequence s is obtained by combining characters in their order of appearance in S, whatever their position. The longest palindromic subsequence could be found checking all subsequences of a string, but that would take a running time of O(2^n). Here's an implementation of this highly time-consuming recursive algorithm. # In[862]: def toolongpalindromic(S): maxlen = 0 if len(S) <= 1: return(len(S)) if S[0]==S[-1]: maxlen += 2 + toolongpalindromic(S[1:-1]) else: maxlen += max(toolongpalindromic(S[:-1]), toolongpalindromic(S[1:])) return(maxlen) # toolongpalindromic('dataminingsapienza') # import time # st = time.time() # toolongpalindromic('dataminingsapienza') # time.time()-st # To solve this problem in a polynomial time we can use dynamic programming, with which we check only the extreme characters of each substring, and if they are identical we add 2 to the length of the longest palindromic subsequence found between the extremes of the current substring, otherwise it keeps the greatest of the palindromic subsequences found in substrings of the current subsequence. # In order to do this, we store the length of all palindromic subsequences and their position in a square array A of size n (the length of S), in which rows and columns are respectively the starting and ending positions of substrings built with consecutive characters of S, where A_{i, i+j}, 0<i< n,0<j<n-i is the length of the longest palindromic subsequence in the substring S[i,i+j]. Starting on the main diagonal, we store lengths of subsequences of 1 charachter, which are palindromic since they "start and end" with the same character. Initializing the array with an identity matrix, we can then proceed for substrings of length >1, checking if the extremes are identical. If that's the case, we add 2 to the element one position down and one left of the current position, which means that we are adding the 2 extremes to the letter count of the longest palindromic sequence found between the extremes (for subsequences of length 2, the 0's below the main diagonal of the identity matrix will be the starting values, since for those subsequences there's 0 elements between the extremes). If the extremes are different, we take the highest value between the element 1 position down and the one that's 1 position left the current one, which means that the current substring of lengthj inherits the longest palindromic subsequence count from the two overlapping substrings of length j-1 that built it, the first starting from the leftmost and the second ending at the rightmost character of the current substring. # With dynamic programming, the algorithm keeps memory of the longest palindromic subsequences for substrings of growing length, until the full length of S is reached, for which the same procedure is applied. The final result, i.e. the length of the longest palindromic subsequence in the substring of length n (S itself), is obtained in the upper-right position of A, A_{0,n}. ### The solution obtained through dynamic programming has a running time of the order of O(n)^2. # Defining a function to get substring of length l from the string S def substrings(S, l): L = [] for i in range(len(S)-l+1): L.append(S[i:i+l]) return(L) def longestpalindromic(S): arr = np.identity(len(S), dtype='int') for j in range(1,len(S)): strings = subsstrings(S, j+1) for i in range(len(S)-j): s = strings[i] if s[0] == s[-1]: arr[i][i+j] = arr[i+1][i+j-1]+2 else: arr[i][i+j] = max(arr[i+1][i+j],arr[i][i+j-1]) return arr[0][-1] # longestpalindromic('dataminingsapienza') # st = time.time() # longestpalindromic('dataminingsapienza') # time.time()-st
def toolongpalindromic(S): maxlen = 0 if len(S) <= 1: return len(S) if S[0] == S[-1]: maxlen += 2 + toolongpalindromic(S[1:-1]) else: maxlen += max(toolongpalindromic(S[:-1]), toolongpalindromic(S[1:])) return maxlen def substrings(S, l): l = [] for i in range(len(S) - l + 1): L.append(S[i:i + l]) return L def longestpalindromic(S): arr = np.identity(len(S), dtype='int') for j in range(1, len(S)): strings = subsstrings(S, j + 1) for i in range(len(S) - j): s = strings[i] if s[0] == s[-1]: arr[i][i + j] = arr[i + 1][i + j - 1] + 2 else: arr[i][i + j] = max(arr[i + 1][i + j], arr[i][i + j - 1]) return arr[0][-1]
# import numpy as np # import matplotlib.pyplot as plt class TimeBlock: def __init__(self,name,level,time,percentage): self.name = name self.level = int(level) self.percentage = float(percentage) self.time = float(time) self.children = [] self.parent = [] def AddChild(self,block): self.children.append(block) def AddParent(self,block): self.parent = block def ToMiliSecond(self): return int(self.time*1000) def ReadProfiler(folder,profName): # opent the profiler data filename = folder +"/"+ profName + "_time.csv" #initialize the list of first level blocks profile = [] current = None # = TimeBlock("root",0,0.0,0.0) # Open and read the profiler file with open(filename,"r") as file: filecont = file.read() data = filecont.split("\n") # read every line -> this is a profiler entry for s in data: entry = s.split(";",100) # if the entry has some interesting numbers if(len(entry) > 1): level = int(entry[1]) # create a new block # name,level, max_time, glob_percent, mean_time_per_count, max_count block = TimeBlock(entry[0],entry[1],entry[2],entry[3]) if(level == 1): # if the block is level 1, simply create a new profile.append(block) else: # go back in time for i in range(level,current.level+1): current = current.parent # add the child - parent link current.AddChild(block) block.AddParent(current) # in any case, the current block is the new boss current = block # close the file file.close() return profile
class Timeblock: def __init__(self, name, level, time, percentage): self.name = name self.level = int(level) self.percentage = float(percentage) self.time = float(time) self.children = [] self.parent = [] def add_child(self, block): self.children.append(block) def add_parent(self, block): self.parent = block def to_mili_second(self): return int(self.time * 1000) def read_profiler(folder, profName): filename = folder + '/' + profName + '_time.csv' profile = [] current = None with open(filename, 'r') as file: filecont = file.read() data = filecont.split('\n') for s in data: entry = s.split(';', 100) if len(entry) > 1: level = int(entry[1]) block = time_block(entry[0], entry[1], entry[2], entry[3]) if level == 1: profile.append(block) else: for i in range(level, current.level + 1): current = current.parent current.AddChild(block) block.AddParent(current) current = block file.close() return profile
_base_ = [ '../../_base_/models/swin/swin_small.py', '../../_base_/default_runtime.py' ] pretrained_path='pretrained/swin_small_patch244_window877_kinetics400_1k.pth' model=dict(backbone=dict(patch_size=(2,4,4), drop_path_rate=0.1, pretrained2d=False, pretrained=pretrained_path),cls_head=dict(num_classes=2),test_cfg=dict(max_testing_views=4)) # dataset settings dataset_type = 'FatigueCleanDataset' data_root = '/zhourui/workspace/pro/source/mmaction2/data/fatigue/clean/fatigue_clips' data_root_val = '/zhourui/workspace/pro/source/mmaction2/data/fatigue/clean/fatigue_clips' facerect_data_prefix = '/zhourui/workspace/pro/source/mmaction2/data/fatigue/clean/fatigue_info_from_yolov5' ann_file_train = '/zhourui/workspace/pro/source/mmaction2/data/fatigue/clean/fatigue_anns/20210824_fatigue_pl_less_than_50_fatigue_full_info_all_path.json' ann_file_val = '/zhourui/workspace/pro/source/mmaction2/data/fatigue/clean/fatigue_anns/20210824_fatigue_pl_less_than_50_fatigue_full_info_all_path.json' ann_file_test = '/zhourui/workspace/pro/source/mmaction2/data/fatigue/clean/fatigue_anns/20210824_fatigue_pl_less_than_50_fatigue_full_info_all_path.json' img_norm_cfg = dict( mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_bgr=False) clip_len = 48 train_pipeline = [ dict(type='SampleFrames', clip_len=clip_len, frame_interval=1, num_clips=1, out_of_bound_opt='repeat_last'), dict(type='FatigueRawFrameDecode'), dict(type='Resize', scale=(-1, 256)), dict(type='RandomResizedCrop'), dict(type='Resize', scale=(224, 224), keep_ratio=False), dict(type='Flip', flip_ratio=0.5), dict(type='Normalize', **img_norm_cfg), dict(type='FormatShape', input_format='NCTHW'), dict(type='Collect', keys=['imgs', 'label'], meta_keys=[]), dict(type='ToTensor', keys=['imgs', 'label']) ] val_pipeline = [ dict( type='SampleFrames', clip_len=clip_len, frame_interval=1, num_clips=1, test_mode=True, out_of_bound_opt='repeat_last'), dict(type='FatigueRawFrameDecode'), dict(type='Resize', scale=(-1, 256)), dict(type='CenterCrop', crop_size=224), dict(type='Flip', flip_ratio=0), dict(type='Normalize', **img_norm_cfg), dict(type='FormatShape', input_format='NCTHW'), dict(type='Collect', keys=['imgs', 'label'], meta_keys=[]), dict(type='ToTensor', keys=['imgs']) ] test_pipeline = [ dict( type='SampleFrames', clip_len=clip_len, frame_interval=1, num_clips=1, test_mode=True, out_of_bound_opt='repeat_last'), dict(type='FatigueRawFrameDecode'), dict(type='Resize', scale=(-1, 224)), dict(type='ThreeCrop', crop_size=224), dict(type='Flip', flip_ratio=0), dict(type='Normalize', **img_norm_cfg), dict(type='FormatShape', input_format='NCTHW'), dict(type='Collect', keys=['imgs', 'label'], meta_keys=[]), dict(type='ToTensor', keys=['imgs']) ] data = dict( videos_per_gpu=2, workers_per_gpu=4, pin_memory=False, val_dataloader=dict( videos_per_gpu=1, workers_per_gpu=1 ), test_dataloader=dict( videos_per_gpu=1, workers_per_gpu=1 ), train=dict( type=dataset_type, ann_file=ann_file_train, video_data_prefix=data_root, facerect_data_prefix=facerect_data_prefix, data_phase='train', test_mode=False, pipeline=train_pipeline, min_frames_before_fatigue=clip_len), val=dict( type=dataset_type, ann_file=ann_file_val, video_data_prefix=data_root_val, facerect_data_prefix=facerect_data_prefix, data_phase='valid', test_mode=True, test_all=False, pipeline=val_pipeline, min_frames_before_fatigue=clip_len), test=dict( type=dataset_type, ann_file=ann_file_test, video_data_prefix=data_root_val, facerect_data_prefix=facerect_data_prefix, data_phase='valid', test_mode=True, test_all=False, pipeline=test_pipeline, min_frames_before_fatigue=clip_len)) evaluation = dict( interval=5, metrics=['top_k_classes']) # optimizer optimizer = dict(type='AdamW', lr=1e-3, betas=(0.9, 0.999), weight_decay=0.02, paramwise_cfg=dict(custom_keys={'absolute_pos_embed': dict(decay_mult=0.), 'relative_position_bias_table': dict(decay_mult=0.), 'norm': dict(decay_mult=0.), 'backbone': dict(lr_mult=0.1)})) # learning policy lr_config = dict( policy='CosineAnnealing', min_lr=0, warmup='linear', warmup_by_epoch=True, warmup_iters=2.5 ) total_epochs = 30 # runtime settings checkpoint_config = dict(interval=1) work_dir = '/zhourui/workspace/pro/source/mmaction2/work_dirs/fatigue_swin_small.py' find_unused_parameters = False # do not use mmdet version fp16 fp16 = None optimizer_config = dict( type="DistOptimizerHook", update_interval=8, grad_clip=None, coalesce=True, bucket_size_mb=-1, use_fp16=False, )
_base_ = ['../../_base_/models/swin/swin_small.py', '../../_base_/default_runtime.py'] pretrained_path = 'pretrained/swin_small_patch244_window877_kinetics400_1k.pth' model = dict(backbone=dict(patch_size=(2, 4, 4), drop_path_rate=0.1, pretrained2d=False, pretrained=pretrained_path), cls_head=dict(num_classes=2), test_cfg=dict(max_testing_views=4)) dataset_type = 'FatigueCleanDataset' data_root = '/zhourui/workspace/pro/source/mmaction2/data/fatigue/clean/fatigue_clips' data_root_val = '/zhourui/workspace/pro/source/mmaction2/data/fatigue/clean/fatigue_clips' facerect_data_prefix = '/zhourui/workspace/pro/source/mmaction2/data/fatigue/clean/fatigue_info_from_yolov5' ann_file_train = '/zhourui/workspace/pro/source/mmaction2/data/fatigue/clean/fatigue_anns/20210824_fatigue_pl_less_than_50_fatigue_full_info_all_path.json' ann_file_val = '/zhourui/workspace/pro/source/mmaction2/data/fatigue/clean/fatigue_anns/20210824_fatigue_pl_less_than_50_fatigue_full_info_all_path.json' ann_file_test = '/zhourui/workspace/pro/source/mmaction2/data/fatigue/clean/fatigue_anns/20210824_fatigue_pl_less_than_50_fatigue_full_info_all_path.json' img_norm_cfg = dict(mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_bgr=False) clip_len = 48 train_pipeline = [dict(type='SampleFrames', clip_len=clip_len, frame_interval=1, num_clips=1, out_of_bound_opt='repeat_last'), dict(type='FatigueRawFrameDecode'), dict(type='Resize', scale=(-1, 256)), dict(type='RandomResizedCrop'), dict(type='Resize', scale=(224, 224), keep_ratio=False), dict(type='Flip', flip_ratio=0.5), dict(type='Normalize', **img_norm_cfg), dict(type='FormatShape', input_format='NCTHW'), dict(type='Collect', keys=['imgs', 'label'], meta_keys=[]), dict(type='ToTensor', keys=['imgs', 'label'])] val_pipeline = [dict(type='SampleFrames', clip_len=clip_len, frame_interval=1, num_clips=1, test_mode=True, out_of_bound_opt='repeat_last'), dict(type='FatigueRawFrameDecode'), dict(type='Resize', scale=(-1, 256)), dict(type='CenterCrop', crop_size=224), dict(type='Flip', flip_ratio=0), dict(type='Normalize', **img_norm_cfg), dict(type='FormatShape', input_format='NCTHW'), dict(type='Collect', keys=['imgs', 'label'], meta_keys=[]), dict(type='ToTensor', keys=['imgs'])] test_pipeline = [dict(type='SampleFrames', clip_len=clip_len, frame_interval=1, num_clips=1, test_mode=True, out_of_bound_opt='repeat_last'), dict(type='FatigueRawFrameDecode'), dict(type='Resize', scale=(-1, 224)), dict(type='ThreeCrop', crop_size=224), dict(type='Flip', flip_ratio=0), dict(type='Normalize', **img_norm_cfg), dict(type='FormatShape', input_format='NCTHW'), dict(type='Collect', keys=['imgs', 'label'], meta_keys=[]), dict(type='ToTensor', keys=['imgs'])] data = dict(videos_per_gpu=2, workers_per_gpu=4, pin_memory=False, val_dataloader=dict(videos_per_gpu=1, workers_per_gpu=1), test_dataloader=dict(videos_per_gpu=1, workers_per_gpu=1), train=dict(type=dataset_type, ann_file=ann_file_train, video_data_prefix=data_root, facerect_data_prefix=facerect_data_prefix, data_phase='train', test_mode=False, pipeline=train_pipeline, min_frames_before_fatigue=clip_len), val=dict(type=dataset_type, ann_file=ann_file_val, video_data_prefix=data_root_val, facerect_data_prefix=facerect_data_prefix, data_phase='valid', test_mode=True, test_all=False, pipeline=val_pipeline, min_frames_before_fatigue=clip_len), test=dict(type=dataset_type, ann_file=ann_file_test, video_data_prefix=data_root_val, facerect_data_prefix=facerect_data_prefix, data_phase='valid', test_mode=True, test_all=False, pipeline=test_pipeline, min_frames_before_fatigue=clip_len)) evaluation = dict(interval=5, metrics=['top_k_classes']) optimizer = dict(type='AdamW', lr=0.001, betas=(0.9, 0.999), weight_decay=0.02, paramwise_cfg=dict(custom_keys={'absolute_pos_embed': dict(decay_mult=0.0), 'relative_position_bias_table': dict(decay_mult=0.0), 'norm': dict(decay_mult=0.0), 'backbone': dict(lr_mult=0.1)})) lr_config = dict(policy='CosineAnnealing', min_lr=0, warmup='linear', warmup_by_epoch=True, warmup_iters=2.5) total_epochs = 30 checkpoint_config = dict(interval=1) work_dir = '/zhourui/workspace/pro/source/mmaction2/work_dirs/fatigue_swin_small.py' find_unused_parameters = False fp16 = None optimizer_config = dict(type='DistOptimizerHook', update_interval=8, grad_clip=None, coalesce=True, bucket_size_mb=-1, use_fp16=False)
permissions_admin = {} permissions_kigstn = {} permissions_socialist = {} # todo
permissions_admin = {} permissions_kigstn = {} permissions_socialist = {}
print("Python has three numeric types: int, float, and complex") myValue=1 print(myValue) print(type(myValue)) print(str(myValue) + " is of the data type " + str(type(myValue))) myValue=3.14 print(myValue) print(type(myValue)) print(str(myValue) + " is of the data type " + str(type(myValue))) myValue=5j print(myValue) print(type(myValue)) print(str(myValue) + " is of the data type " + str(type(myValue))) myValue=True print(myValue) print(type(myValue)) print(str(myValue) + " is of the data type " + str(type(myValue))) myValue=False print(myValue) print(type(myValue)) print(str(myValue) + " is of the data type " + str(type(myValue)))
print('Python has three numeric types: int, float, and complex') my_value = 1 print(myValue) print(type(myValue)) print(str(myValue) + ' is of the data type ' + str(type(myValue))) my_value = 3.14 print(myValue) print(type(myValue)) print(str(myValue) + ' is of the data type ' + str(type(myValue))) my_value = 5j print(myValue) print(type(myValue)) print(str(myValue) + ' is of the data type ' + str(type(myValue))) my_value = True print(myValue) print(type(myValue)) print(str(myValue) + ' is of the data type ' + str(type(myValue))) my_value = False print(myValue) print(type(myValue)) print(str(myValue) + ' is of the data type ' + str(type(myValue)))
N=int(input("numero? ")) if N % 2 == 0: valor = False else: valor = True i=3 while valor and i <= N-1: valor=valor and (N % i != 0) i = i + 2 print(valor)
n = int(input('numero? ')) if N % 2 == 0: valor = False else: valor = True i = 3 while valor and i <= N - 1: valor = valor and N % i != 0 i = i + 2 print(valor)
NSNAM_CODE_BASE_URL = "http://code.nsnam.org/" PYBINDGEN_BRANCH = 'https://launchpad.net/pybindgen' LOCAL_PYBINDGEN_PATH = 'pybindgen' # # The last part of the path name to use to find the regression traces tarball. # path will be APPNAME + '-' + VERSION + REGRESSION_SUFFIX + TRACEBALL_SUFFIX, # e.g., ns-3-dev-ref-traces.tar.bz2 # TRACEBALL_SUFFIX = ".tar.bz2" # NetAnim NETANIM_REPO = "http://code.nsnam.org/netanim" NETANIM_RELEASE_URL = "http://www.nsnam.org/tools/netanim" LOCAL_NETANIM_PATH = "netanim" # bake BAKE_REPO = "http://code.nsnam.org/bake"
nsnam_code_base_url = 'http://code.nsnam.org/' pybindgen_branch = 'https://launchpad.net/pybindgen' local_pybindgen_path = 'pybindgen' traceball_suffix = '.tar.bz2' netanim_repo = 'http://code.nsnam.org/netanim' netanim_release_url = 'http://www.nsnam.org/tools/netanim' local_netanim_path = 'netanim' bake_repo = 'http://code.nsnam.org/bake'
class Person: def __init__(self, person_id, name): self.person_id = person_id self.name = name self.first_page = None self.last_pages = [] class Link: def __init__(self, current_page_number, person=None, colour_id=None, image_id=None, group_id=None): self.current_page_number = current_page_number self.person = person self.colour_id = colour_id self.image_id = image_id self.group_id = group_id self.next_links = [] self.next_link_captions = [] def __str__(self): return "{} ==> {}: {} {} {}".format( self.current_page_number, [next_link.current_page_number if isinstance(next_link, Link) else next_link for next_link in self.next_links], self.person.name, self.colour_id, self.image_id ) def link_to(self, next_link, caption=None): self.next_links.append(next_link) self.next_link_captions.append(caption) def to_json(self, get_person, next_page_links): next_links = (next_link if isinstance(next_link, Link) else get_person(next_link).first_page for next_link in self.next_links) return [ self.person.person_id, self.colour_id, self.image_id, self.group_id, [ [next_link.current_page_number, next_page_links[next_link.current_page_number].index(next_link)] + ([caption] if caption is not None else []) for next_link, caption in zip(next_links, self.next_link_captions) ] ]
class Person: def __init__(self, person_id, name): self.person_id = person_id self.name = name self.first_page = None self.last_pages = [] class Link: def __init__(self, current_page_number, person=None, colour_id=None, image_id=None, group_id=None): self.current_page_number = current_page_number self.person = person self.colour_id = colour_id self.image_id = image_id self.group_id = group_id self.next_links = [] self.next_link_captions = [] def __str__(self): return '{} ==> {}: {} {} {}'.format(self.current_page_number, [next_link.current_page_number if isinstance(next_link, Link) else next_link for next_link in self.next_links], self.person.name, self.colour_id, self.image_id) def link_to(self, next_link, caption=None): self.next_links.append(next_link) self.next_link_captions.append(caption) def to_json(self, get_person, next_page_links): next_links = (next_link if isinstance(next_link, Link) else get_person(next_link).first_page for next_link in self.next_links) return [self.person.person_id, self.colour_id, self.image_id, self.group_id, [[next_link.current_page_number, next_page_links[next_link.current_page_number].index(next_link)] + ([caption] if caption is not None else []) for (next_link, caption) in zip(next_links, self.next_link_captions)]]
class KeyHolder(): key = "(_e0p73$co#nse*^-(3b60(f*)6h1bmaaada@kleyb)pj5=1)6" email_user = 'HuntAdminLototron' email_password = '0a4c9be34e616e91c9516fdd07bf7de2'
class Keyholder: key = '(_e0p73$co#nse*^-(3b60(f*)6h1bmaaada@kleyb)pj5=1)6' email_user = 'HuntAdminLototron' email_password = '0a4c9be34e616e91c9516fdd07bf7de2'
A = Matrix([[1, 2], [-2, 1]]) A.is_positive_definite # True A.is_positive_semidefinite # True p = plot3d((x.T*A*x)[0, 0], (a, -1, 1), (b, -1, 1))
a = matrix([[1, 2], [-2, 1]]) A.is_positive_definite A.is_positive_semidefinite p = plot3d((x.T * A * x)[0, 0], (a, -1, 1), (b, -1, 1))
# x, y: arguments x = 2 y = 3 # a, b: parameters def function(a, b): print(a, b) function(x, y) # default arguments def function2(a, b=None): if b: print(a, b) else: print(a) function2(x) function2(x, b=y) # bei default parametern immer variable= -> besser lesbar # Funktionen ohne return Value returnen immer None ! #return_value = function2(x ,b=y) #print(return_value)
x = 2 y = 3 def function(a, b): print(a, b) function(x, y) def function2(a, b=None): if b: print(a, b) else: print(a) function2(x) function2(x, b=y)
class LogMessage: text = "EMPTY" stack = 1 # for more than one equal message in a row replaceable = False color = (200, 200, 200) def __init__(self, text, replaceable=False, color=(200, 200, 200)): self.text = text self.replaceable = replaceable self.color = color
class Logmessage: text = 'EMPTY' stack = 1 replaceable = False color = (200, 200, 200) def __init__(self, text, replaceable=False, color=(200, 200, 200)): self.text = text self.replaceable = replaceable self.color = color
cfiles = {"train_features":'./legacy_tests/data/class_train.features', "train_labels":'./legacy_tests/data/class_train.labels', "test_features":'./legacy_tests/data/class_test.features', "test_labels":'./legacy_tests/data/class_test.labels'} rfiles = {"train_features":'./legacy_tests/data/reg_train.features', "train_labels":'./legacy_tests/data/reg_train.labels', "test_features":'./legacy_tests/data/reg_test.features', "test_labels":'./legacy_tests/data/reg_test.labels'} defparams = {"X":"train_features", "Y":"train_labels"} experiments = {"rls_defparams":{ "learner":"RLS", "lpath":"rlscore.learner.rls", "measure":"auc", "lfparams": defparams, "lparams": {"regparam":1}, "files": cfiles}, "rls_classification":{ "learner":"LeaveOneOutRLS", "lpath":"rlscore.learner.rls", "measure":"auc", "lfparams": defparams, "lparams": {}, "files": cfiles, "selection":True}, "rls_regression":{ "learner":"LeaveOneOutRLS", "lpath":"rlscore.learner.rls", "measure":"sqerror", "lfparams": defparams, "lparams": {}, "files": rfiles, "selection":True}, "rls_lpocv":{ "learner":"LeavePairOutRLS", "lpath":"rlscore.learner.rls", "measure":"auc", "lfparams": dict(defparams.items() + [("folds","folds")]), "lparams": {}, "files": dict(cfiles.items()+[("folds",'./legacy_tests/data/folds.txt')]), "selection":True}, "rls_nfold":{ "learner":"KfoldRLS", "lpath":"rlscore.learner.rls", "measure":"auc", "lfparams": dict(defparams.items() + [("folds","folds")]), "lparams": {}, "files": dict(cfiles.items()+[("folds",'./legacy_tests/data/folds.txt')]), "selection":True}, "rls_gaussian":{ "learner":"LeaveOneOutRLS", "lpath":"rlscore.learner.rls", "measure":"auc", "lfparams": defparams, "lparams": {"kernel":"GaussianKernel", "gamma":0.01}, "files": cfiles, "selection":True}, "rls_polynomial":{ "learner":"LeaveOneOutRLS", "lpath":"rlscore.learner.rls", "measure":"auc", "lfparams": defparams, "lparams": {"kernel":"PolynomialKernel", "gamma":2, "coef0":1, "degree":3}, "files": cfiles, "selection":True}, "rls_reduced":{ "learner":"LeaveOneOutRLS", "lpath":"rlscore.learner.rls", "measure":"auc", "lfparams": dict(defparams.items()+[("basis_vectors","basis_vectors")]), "lparams": {"kernel":"PolynomialKernel", "gamma":0.01}, "files": dict(cfiles.items()+[("basis_vectors",'./legacy_tests/data/bvectors.indices')]), "selection":True}, "rls_reduced_linear":{ "learner":"LeaveOneOutRLS", "lpath":"rlscore.learner.rls", "measure":"auc", "lfparams": dict(defparams.items()+[("basis_vectors","basis_vectors")]), "lparams": {}, "files": dict(cfiles.items()+[("basis_vectors",'./legacy_tests/data/bvectors.indices')]), "selection":True}, "cg_rls":{ "learner":"CGRLS", "lpath":"rlscore.learner.cg_rls", "measure":"auc", "lfparams": defparams, "lparams": {"regparam":1}, "files": cfiles, }}
cfiles = {'train_features': './legacy_tests/data/class_train.features', 'train_labels': './legacy_tests/data/class_train.labels', 'test_features': './legacy_tests/data/class_test.features', 'test_labels': './legacy_tests/data/class_test.labels'} rfiles = {'train_features': './legacy_tests/data/reg_train.features', 'train_labels': './legacy_tests/data/reg_train.labels', 'test_features': './legacy_tests/data/reg_test.features', 'test_labels': './legacy_tests/data/reg_test.labels'} defparams = {'X': 'train_features', 'Y': 'train_labels'} experiments = {'rls_defparams': {'learner': 'RLS', 'lpath': 'rlscore.learner.rls', 'measure': 'auc', 'lfparams': defparams, 'lparams': {'regparam': 1}, 'files': cfiles}, 'rls_classification': {'learner': 'LeaveOneOutRLS', 'lpath': 'rlscore.learner.rls', 'measure': 'auc', 'lfparams': defparams, 'lparams': {}, 'files': cfiles, 'selection': True}, 'rls_regression': {'learner': 'LeaveOneOutRLS', 'lpath': 'rlscore.learner.rls', 'measure': 'sqerror', 'lfparams': defparams, 'lparams': {}, 'files': rfiles, 'selection': True}, 'rls_lpocv': {'learner': 'LeavePairOutRLS', 'lpath': 'rlscore.learner.rls', 'measure': 'auc', 'lfparams': dict(defparams.items() + [('folds', 'folds')]), 'lparams': {}, 'files': dict(cfiles.items() + [('folds', './legacy_tests/data/folds.txt')]), 'selection': True}, 'rls_nfold': {'learner': 'KfoldRLS', 'lpath': 'rlscore.learner.rls', 'measure': 'auc', 'lfparams': dict(defparams.items() + [('folds', 'folds')]), 'lparams': {}, 'files': dict(cfiles.items() + [('folds', './legacy_tests/data/folds.txt')]), 'selection': True}, 'rls_gaussian': {'learner': 'LeaveOneOutRLS', 'lpath': 'rlscore.learner.rls', 'measure': 'auc', 'lfparams': defparams, 'lparams': {'kernel': 'GaussianKernel', 'gamma': 0.01}, 'files': cfiles, 'selection': True}, 'rls_polynomial': {'learner': 'LeaveOneOutRLS', 'lpath': 'rlscore.learner.rls', 'measure': 'auc', 'lfparams': defparams, 'lparams': {'kernel': 'PolynomialKernel', 'gamma': 2, 'coef0': 1, 'degree': 3}, 'files': cfiles, 'selection': True}, 'rls_reduced': {'learner': 'LeaveOneOutRLS', 'lpath': 'rlscore.learner.rls', 'measure': 'auc', 'lfparams': dict(defparams.items() + [('basis_vectors', 'basis_vectors')]), 'lparams': {'kernel': 'PolynomialKernel', 'gamma': 0.01}, 'files': dict(cfiles.items() + [('basis_vectors', './legacy_tests/data/bvectors.indices')]), 'selection': True}, 'rls_reduced_linear': {'learner': 'LeaveOneOutRLS', 'lpath': 'rlscore.learner.rls', 'measure': 'auc', 'lfparams': dict(defparams.items() + [('basis_vectors', 'basis_vectors')]), 'lparams': {}, 'files': dict(cfiles.items() + [('basis_vectors', './legacy_tests/data/bvectors.indices')]), 'selection': True}, 'cg_rls': {'learner': 'CGRLS', 'lpath': 'rlscore.learner.cg_rls', 'measure': 'auc', 'lfparams': defparams, 'lparams': {'regparam': 1}, 'files': cfiles}}
class Solution: def findAnagrams(self, s: str, p: str) -> List[int]: if len(s) < len(p): return [] sl = [] ans = [] pl =[0]*26 for i in p: pl[ord(i)-97]+=1 for ix, i in enumerate(s): if not sl: sl = [0]*26 for i in s[:len(p)]: sl[ord(i)-97] +=1 else: if ix+len(p)-1 < len(s): sl[ord(s[ix-1])-97]-=1 sl[ord(s[ix+len(p)-1])-97]+=1 else: return ans if sl == pl: ans.append(ix) return ans
class Solution: def find_anagrams(self, s: str, p: str) -> List[int]: if len(s) < len(p): return [] sl = [] ans = [] pl = [0] * 26 for i in p: pl[ord(i) - 97] += 1 for (ix, i) in enumerate(s): if not sl: sl = [0] * 26 for i in s[:len(p)]: sl[ord(i) - 97] += 1 elif ix + len(p) - 1 < len(s): sl[ord(s[ix - 1]) - 97] -= 1 sl[ord(s[ix + len(p) - 1]) - 97] += 1 else: return ans if sl == pl: ans.append(ix) return ans
#!/usr/bin/env python3 s = '{19}' print('s is:', s) n = s[2:-1] print(n) # make n=20 copies of '1': # idea: use a loop def make_N_copies_of_1(s): n = s[2:-1] # number of copies i = 0 result = '' while i < int(n): result += '1' i += 1 return result print(make_20_copies_of_1(s))
s = '{19}' print('s is:', s) n = s[2:-1] print(n) def make_n_copies_of_1(s): n = s[2:-1] i = 0 result = '' while i < int(n): result += '1' i += 1 return result print(make_20_copies_of_1(s))
# Usage: python3 l2bin.py source = open('MCZ.PROM.78089.L', 'r') dest = open('MCZ.PROM.78089.BIN', 'wb') next = 0 for line in source: # Useful lines are like: 0013 210000 if len(line) >= 8 and line[0] != ' ' and line[7] != ' ': parts = line.split() try: address = int(parts[0], 16) code = bytes.fromhex(parts[1]) while next < address: dest.write(b'\x00') next += 1 # Fix pruned trings in .L if address == 0x0002: code = '78089N'.encode('ascii') elif address == 0x0b34: code = 'SERIAL PORT INPUT '.encode('ascii') elif address == 0x0b48: code = 'BREAK AT '.encode('ascii') elif address == 0x0b52: code = 'DISK ERROR'.encode('ascii') elif address == 0x0b87: code = "A B C D E F H L I A'B'C'D'".encode('ascii') elif address == 0x0ba1: code = "E'F'H'L'IXIYPCSP".encode('ascii') dest.write(code) next += len(code) except ValueError: continue dest.close() source.close()
source = open('MCZ.PROM.78089.L', 'r') dest = open('MCZ.PROM.78089.BIN', 'wb') next = 0 for line in source: if len(line) >= 8 and line[0] != ' ' and (line[7] != ' '): parts = line.split() try: address = int(parts[0], 16) code = bytes.fromhex(parts[1]) while next < address: dest.write(b'\x00') next += 1 if address == 2: code = '78089N'.encode('ascii') elif address == 2868: code = 'SERIAL PORT INPUT '.encode('ascii') elif address == 2888: code = 'BREAK AT '.encode('ascii') elif address == 2898: code = 'DISK ERROR'.encode('ascii') elif address == 2951: code = "A B C D E F H L I A'B'C'D'".encode('ascii') elif address == 2977: code = "E'F'H'L'IXIYPCSP".encode('ascii') dest.write(code) next += len(code) except ValueError: continue dest.close() source.close()
#encoding:utf-8 subreddit = 'cyberpunkgame+LowSodiumCyberpunk' t_channel = '@r_cyberpunk2077' def send_post(submission, r2t): return r2t.send_simple(submission)
subreddit = 'cyberpunkgame+LowSodiumCyberpunk' t_channel = '@r_cyberpunk2077' def send_post(submission, r2t): return r2t.send_simple(submission)
global_var = 0 def outter(): def inner(): global global_var global_var = 10 inner() outter() print(global_var)
global_var = 0 def outter(): def inner(): global global_var global_var = 10 inner() outter() print(global_var)
# 0 - establish connection # 1 - service number 1 # 2 - service number 2 # 3 - service number 3 # 4 - service number 4 # 5 - non-idempotent service - check number of flights # 6 - idempotent service - give this information service a like and retrieve how many likes this system has # 11 - int # 12 - string # 13 - date-time # 14 - floating point # 15 - flight INT = 11 STR = 12 DATE = 13 FP = 14 FLI = 15 AT_LEAST_ONCE = 100 AT_MOST_ONCE = 101 # 126 - error message ERROR = 126
int = 11 str = 12 date = 13 fp = 14 fli = 15 at_least_once = 100 at_most_once = 101 error = 126
def f(n): max_even=len(str(n))-1 if str(n)[0]=="1": max_even-=1 for i in range(n-1, -1, -1): if i%2==0 or i%3==0: continue if count_even(i)<max_even: continue if isPrime(i): return i def isPrime(n): for i in range(2, int(n**0.5)+1): if n%i==0: return False return True def count_even(n): count=0 for i in str(n): if int(i)%2==0: count+=1 return count
def f(n): max_even = len(str(n)) - 1 if str(n)[0] == '1': max_even -= 1 for i in range(n - 1, -1, -1): if i % 2 == 0 or i % 3 == 0: continue if count_even(i) < max_even: continue if is_prime(i): return i def is_prime(n): for i in range(2, int(n ** 0.5) + 1): if n % i == 0: return False return True def count_even(n): count = 0 for i in str(n): if int(i) % 2 == 0: count += 1 return count
# We have to find no of numbers between range (a,b) which has consecutive set bits. # Hackerearth n, q = map(int, input().split()) arr = list(map(int, input().split())) for k in range(n): l, h = map(int, input().split()) count = 0 for i in range(l-1, h): if "11" in bin(arr[i]): count+=1 print(count)
(n, q) = map(int, input().split()) arr = list(map(int, input().split())) for k in range(n): (l, h) = map(int, input().split()) count = 0 for i in range(l - 1, h): if '11' in bin(arr[i]): count += 1 print(count)
# Twitter API Keys #Given # consumer_key = "Ed4RNulN1lp7AbOooHa9STCoU" # consumer_secret = "P7cUJlmJZq0VaCY0Jg7COliwQqzK0qYEyUF9Y0idx4ujb3ZlW5" # access_token = "839621358724198402-dzdOsx2WWHrSuBwyNUiqSEnTivHozAZ" # access_token_secret = "dCZ80uNRbFDjxdU2EckmNiSckdoATach6Q8zb7YYYE5ER" #Generated on June 21st 2018 # consumer_key = "aNLSAdW7yInFcn2K2ZyiQPcot" # consumer_secret = "yDRFdvSvbCxLCUyBMbuqgkmidGiuDLPnSciG6WI2NGVzjrShsF" # access_token = "1009876849122521089-5hIMxvbSQSI1I1wgiYmKysWrMe48n3" # access_token_secret = "jcWvCTMUalCk2yA5Ih7ZoZwVZlbZwYx5BRz1s7P4CkkS0" #Generated on Jun 23 2018 consumer_key = "n9WXASBiuLis9IxX0KE6VqWLN" consumer_secret = "FqJmd8cCiFhX4tKr91xAJoBL0s5xxp9lmv3czEW84mT3jsLCj7" access_token = "1009876849122521089-Sok0ZuMt7EYOLucBhgyDefaQlYJkXX" access_token_secret = "IDt79lugJ9rsqa9n9Oly38Xr4rvFlrSzRWb0quPxJNnUg"
consumer_key = 'n9WXASBiuLis9IxX0KE6VqWLN' consumer_secret = 'FqJmd8cCiFhX4tKr91xAJoBL0s5xxp9lmv3czEW84mT3jsLCj7' access_token = '1009876849122521089-Sok0ZuMt7EYOLucBhgyDefaQlYJkXX' access_token_secret = 'IDt79lugJ9rsqa9n9Oly38Xr4rvFlrSzRWb0quPxJNnUg'
numbers = input().split(" ") max_number = '' biggest = sorted(numbers, reverse = True) for num in biggest: max_number += num print(max_number)
numbers = input().split(' ') max_number = '' biggest = sorted(numbers, reverse=True) for num in biggest: max_number += num print(max_number)
########################################################################## # Author: Samuca # # brief: change and gives information about a string # # this is a list exercise available on youtube: # https://www.youtube.com/playlist?list=PLHz_AreHm4dm6wYOIW20Nyg12TAjmMGT- ########################################################################## #strip() means that the spaces before and after the string won't be considered name = str(input("Write down your name: ")).strip() print("analysing your name...") print("It in Upper: {}".format(name.upper())) print("It in Lower: {}".format(name.lower())) #//// LEN() #//// STR.COUNT() #len(name) gives the number of char in the str (including ' ') #name.count(' ') will return the number of ' ' in the str #name.count('x') can count any char in the str print("Number of letters: {}".format(len(name) - name.count(' '))) #name.find('x') returns the index of the first appearence of that char #print("Your first name has {} letters".format(name.find(' '))) #//// SPLIT() #other way is with split(), that will create a list separating the #chars by the space, if any other char be said (this char is not included). sep = name.split() print(sep) print("Yout first name is {}, it has {} letters".format(sep[0], len(sep[0])))
name = str(input('Write down your name: ')).strip() print('analysing your name...') print('It in Upper: {}'.format(name.upper())) print('It in Lower: {}'.format(name.lower())) print('Number of letters: {}'.format(len(name) - name.count(' '))) sep = name.split() print(sep) print('Yout first name is {}, it has {} letters'.format(sep[0], len(sep[0])))
end_line_chars = (".", ",", ";", ":", "!", "?", "-") def split_into_blocks(text, line_length, block_size): words = text.strip("\n").split() current_line = "" lines = [] blocks = [] char_counter = 0 for i, word in enumerate(words): # check every word if len(lines) < (block_size - 1): # if current block is smaller than needed if (char_counter + len(word) + 1) < line_length: # if there's space for new word in line char_counter += len(word) + 1 # add word's len and 1 space to counter current_line += word + " " # add word and 1 space to line if i+2 > len(words): # i have no idea why 2 but basically if it's the end of the block and line is shorter that needed, we add it to another block lines.append(current_line) blocks.append(lines) else: # word can't fit in the current line lines.append(current_line) # add current line to block current_line = "" + word + " " # reset current line char_counter = 0 + (len(word) + 1) # add word and 1 space to counter elif (block_size-1 <= len(lines) <= block_size): # if it's last lines in current block if any((c in end_line_chars) for c in word): # if .,;:!?- in current word current_line += word lines.append(current_line) blocks.append(lines) # block is now completed, add it to blocks current_line = "" # reset line lines = [] # reset block char_counter = 0 # reset char counter elif ((char_counter + len(word) + 1) < line_length - 15): # continue looking for .,;:! line is not full char_counter += len(word) + 1 # add word's len and 1 space to counter current_line += word + " " # add word and 1 space to line else: current_line += word lines.append(current_line) blocks.append(lines) # block is completed current_line = "" # reset line lines = [] char_counter = 0 # reset char counter # All blocks are finally created. return blocks
end_line_chars = ('.', ',', ';', ':', '!', '?', '-') def split_into_blocks(text, line_length, block_size): words = text.strip('\n').split() current_line = '' lines = [] blocks = [] char_counter = 0 for (i, word) in enumerate(words): if len(lines) < block_size - 1: if char_counter + len(word) + 1 < line_length: char_counter += len(word) + 1 current_line += word + ' ' if i + 2 > len(words): lines.append(current_line) blocks.append(lines) else: lines.append(current_line) current_line = '' + word + ' ' char_counter = 0 + (len(word) + 1) elif block_size - 1 <= len(lines) <= block_size: if any((c in end_line_chars for c in word)): current_line += word lines.append(current_line) blocks.append(lines) current_line = '' lines = [] char_counter = 0 elif char_counter + len(word) + 1 < line_length - 15: char_counter += len(word) + 1 current_line += word + ' ' else: current_line += word lines.append(current_line) blocks.append(lines) current_line = '' lines = [] char_counter = 0 return blocks
#Set the request parameters url = 'https://instanceName.service-now.com/api/now/table/sys_script' #Eg. User name="username", Password="password" for this code sample. user = 'yourUserName' pwd = 'yourPassword' #Set proper headers headers = {"Content-Type":"application/json","Accept":"application/json"} # Set Business Rule postBusinessRule = "{\r\n \"abort_action\": \"false\",\r\n \"access\": \"package_private\",\r\n \"action_delete\": \"false\",\r\n \"action_insert\": \"true\",\r\n \"action_query\": \"false\",\r\n \"action_update\": \"false\",\r\n \"active\": \"false\",\r\n \"add_message\": \"false\",\r\n \"advanced\": \"true\",\r\n \"change_fields\": \"true\",\r\n \"client_callable\": \"false\",\r\n \"collection\": \"incident\",\r\n \"condition\": [],\r\n \"description\": [],\r\n \"execute_function\": \"false\",\r\n \"filter_condition\": {\r\n \"@table\": \"incident\"\r\n },\r\n \"is_rest\": \"false\",\r\n \"message\": [],\r\n \"name\": \"yourBusinessRuleName\",\r\n \"order\": \"1\",\r\n \"priority\": \"1\",\r\n \"rest_method\": [],\r\n \"rest_method_text\": [],\r\n \"rest_service\": [],\r\n \"rest_service_text\": [],\r\n \"rest_variables\": [],\r\n \"role_conditions\": [],\r\n \"script\": \"(function executeRule(current, previous \/*null when async*\/) {var request = new sn_ws.RESTMessageV2('yourRestAPINameSpace', 'PostApiName'); request.setRequestBody(JSON.stringify()); var response = request.execute(); var responseBody = response.getBody(); var httpStatus = response.getStatusCode();})(current, previous);\",\r\n \"sys_class_name\": \"sys_script\",\r\n \"sys_created_by\": \"admin\",\r\n \"sys_created_on\": \"2020-02-24 17:56:33\",\r\n \"sys_customer_update\": \"false\",\r\n \"sys_domain\": \"global\",\r\n \"sys_domain_path\": \"\/\",\r\n \"sys_id\": \"\",\r\n \"sys_mod_count\": \"1\",\r\n \"sys_name\": \"create test BR\",\r\n \"sys_overrides\": [],\r\n \"sys_package\": {\r\n \"@display_value\": \"Global\",\r\n \"@source\": \"global\",\r\n \"#text\": \"global\"\r\n },\r\n \"sys_policy\": [],\r\n \"sys_replace_on_upgrade\": \"false\",\r\n \"sys_scope\": {\r\n \"@display_value\": \"Global\",\r\n \"#text\": \"global\"\r\n },\r\n \"sys_update_name\": \"sys_script_03edd56b2fc38814e8f955f62799b6e8\",\r\n \"sys_updated_by\": \"admin\",\r\n \"sys_updated_on\": \"2020-02-24 17:58:22\",\r\n \"template\": [],\r\n \"when\": \"after\"\r\n \r\n}" # Do the HTTP request response = requests.post(url, auth=(user, pwd), headers=headers ,data=postBusinessRule) print(response) # Check for HTTP codes other than 201 if response.status_code == 201: print(response.text) exit()
url = 'https://instanceName.service-now.com/api/now/table/sys_script' user = 'yourUserName' pwd = 'yourPassword' headers = {'Content-Type': 'application/json', 'Accept': 'application/json'} post_business_rule = '{\r\n "abort_action": "false",\r\n "access": "package_private",\r\n "action_delete": "false",\r\n "action_insert": "true",\r\n "action_query": "false",\r\n "action_update": "false",\r\n "active": "false",\r\n "add_message": "false",\r\n "advanced": "true",\r\n "change_fields": "true",\r\n "client_callable": "false",\r\n "collection": "incident",\r\n "condition": [],\r\n "description": [],\r\n "execute_function": "false",\r\n "filter_condition": {\r\n "@table": "incident"\r\n },\r\n "is_rest": "false",\r\n "message": [],\r\n "name": "yourBusinessRuleName",\r\n "order": "1",\r\n "priority": "1",\r\n "rest_method": [],\r\n "rest_method_text": [],\r\n "rest_service": [],\r\n "rest_service_text": [],\r\n "rest_variables": [],\r\n "role_conditions": [],\r\n "script": "(function executeRule(current, previous \\/*null when async*\\/) {var request = new sn_ws.RESTMessageV2(\'yourRestAPINameSpace\', \'PostApiName\'); request.setRequestBody(JSON.stringify()); var response = request.execute(); var responseBody = response.getBody(); var httpStatus = response.getStatusCode();})(current, previous);",\r\n "sys_class_name": "sys_script",\r\n "sys_created_by": "admin",\r\n "sys_created_on": "2020-02-24 17:56:33",\r\n "sys_customer_update": "false",\r\n "sys_domain": "global",\r\n "sys_domain_path": "\\/",\r\n "sys_id": "",\r\n "sys_mod_count": "1",\r\n "sys_name": "create test BR",\r\n "sys_overrides": [],\r\n "sys_package": {\r\n "@display_value": "Global",\r\n "@source": "global",\r\n "#text": "global"\r\n },\r\n "sys_policy": [],\r\n "sys_replace_on_upgrade": "false",\r\n "sys_scope": {\r\n "@display_value": "Global",\r\n "#text": "global"\r\n },\r\n "sys_update_name": "sys_script_03edd56b2fc38814e8f955f62799b6e8",\r\n "sys_updated_by": "admin",\r\n "sys_updated_on": "2020-02-24 17:58:22",\r\n "template": [],\r\n "when": "after"\r\n \r\n}' response = requests.post(url, auth=(user, pwd), headers=headers, data=postBusinessRule) print(response) if response.status_code == 201: print(response.text) exit()
{ 'targets' : [{ 'variables': { 'lib_root' : '../libio', }, 'target_name' : 'fake', 'sources' : [ ], 'dependencies' : [ './export.gyp:export', ], }] }
{'targets': [{'variables': {'lib_root': '../libio'}, 'target_name': 'fake', 'sources': [], 'dependencies': ['./export.gyp:export']}]}
# # PySNMP MIB module AT-PVSTPM-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/AT-PVSTPM-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:30:33 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ValueSizeConstraint, ValueRangeConstraint, ConstraintsUnion, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsUnion", "ConstraintsIntersection") modules, = mibBuilder.importSymbols("AT-SMI-MIB", "modules") VlanIndex, = mibBuilder.importSymbols("Q-BRIDGE-MIB", "VlanIndex") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") IpAddress, iso, Integer32, Counter32, TimeTicks, ObjectIdentity, Gauge32, Unsigned32, MibScalar, MibTable, MibTableRow, MibTableColumn, ModuleIdentity, Bits, Counter64, MibIdentifier, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "IpAddress", "iso", "Integer32", "Counter32", "TimeTicks", "ObjectIdentity", "Gauge32", "Unsigned32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ModuleIdentity", "Bits", "Counter64", "MibIdentifier", "NotificationType") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") pvstpm = ModuleIdentity((1, 3, 6, 1, 4, 1, 207, 8, 4, 4, 4, 140)) pvstpm.setRevisions(('2006-03-29 16:51',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: pvstpm.setRevisionsDescriptions(('Initial revision',)) if mibBuilder.loadTexts: pvstpm.setLastUpdated('200603291651Z') if mibBuilder.loadTexts: pvstpm.setOrganization('Allied Telesis, Inc') if mibBuilder.loadTexts: pvstpm.setContactInfo('http://www.alliedtelesis.com') if mibBuilder.loadTexts: pvstpm.setDescription('The MIB module for managing PVSTPM enterprise functionality on Allied Telesis switches. ') pvstpmEvents = MibIdentifier((1, 3, 6, 1, 4, 1, 207, 8, 4, 4, 4, 140, 0)) pvstpmEventVariables = MibIdentifier((1, 3, 6, 1, 4, 1, 207, 8, 4, 4, 4, 140, 1)) pvstpmBridgeId = MibScalar((1, 3, 6, 1, 4, 1, 207, 8, 4, 4, 4, 140, 1, 1), OctetString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: pvstpmBridgeId.setStatus('current') if mibBuilder.loadTexts: pvstpmBridgeId.setDescription('The bridge identifier for the bridge that sent the trap.') pvstpmTopologyChangeVlan = MibScalar((1, 3, 6, 1, 4, 1, 207, 8, 4, 4, 4, 140, 1, 2), VlanIndex()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: pvstpmTopologyChangeVlan.setStatus('current') if mibBuilder.loadTexts: pvstpmTopologyChangeVlan.setDescription('The VLAN ID of the vlan that has experienced a topology change.') pvstpmRxPort = MibScalar((1, 3, 6, 1, 4, 1, 207, 8, 4, 4, 4, 140, 1, 3), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: pvstpmRxPort.setStatus('current') if mibBuilder.loadTexts: pvstpmRxPort.setDescription('The port the inconsistent BPDU was received on.') pvstpmRxVlan = MibScalar((1, 3, 6, 1, 4, 1, 207, 8, 4, 4, 4, 140, 1, 4), VlanIndex()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: pvstpmRxVlan.setStatus('current') if mibBuilder.loadTexts: pvstpmRxVlan.setDescription('The vlan the inconsistent BPDU was received on.') pvstpmTxVlan = MibScalar((1, 3, 6, 1, 4, 1, 207, 8, 4, 4, 4, 140, 1, 5), VlanIndex()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: pvstpmTxVlan.setStatus('current') if mibBuilder.loadTexts: pvstpmTxVlan.setDescription('The vlan the inconsistent BPDU was transmitted on.') pvstpmTopologyChange = NotificationType((1, 3, 6, 1, 4, 1, 207, 8, 4, 4, 4, 140, 0, 1)).setObjects(("AT-PVSTPM-MIB", "pvstpmBridgeId"), ("AT-PVSTPM-MIB", "pvstpmTopologyChangeVlan")) if mibBuilder.loadTexts: pvstpmTopologyChange.setStatus('current') if mibBuilder.loadTexts: pvstpmTopologyChange.setDescription('A pvstpmTopologyChange trap signifies that a topology change has occurred on the specified VLAN') pvstpmInconsistentBPDU = NotificationType((1, 3, 6, 1, 4, 1, 207, 8, 4, 4, 4, 140, 0, 2)).setObjects(("AT-PVSTPM-MIB", "pvstpmBridgeId"), ("AT-PVSTPM-MIB", "pvstpmRxPort"), ("AT-PVSTPM-MIB", "pvstpmRxVlan"), ("AT-PVSTPM-MIB", "pvstpmTxVlan")) if mibBuilder.loadTexts: pvstpmInconsistentBPDU.setStatus('current') if mibBuilder.loadTexts: pvstpmInconsistentBPDU.setDescription('A pvstpmInconsistentBPDU trap signifies that an inconsistent PVSTPM packet has been received on a port.') mibBuilder.exportSymbols("AT-PVSTPM-MIB", pvstpmBridgeId=pvstpmBridgeId, pvstpmRxVlan=pvstpmRxVlan, pvstpmTxVlan=pvstpmTxVlan, pvstpm=pvstpm, pvstpmEventVariables=pvstpmEventVariables, pvstpmTopologyChangeVlan=pvstpmTopologyChangeVlan, pvstpmEvents=pvstpmEvents, pvstpmTopologyChange=pvstpmTopologyChange, PYSNMP_MODULE_ID=pvstpm, pvstpmInconsistentBPDU=pvstpmInconsistentBPDU, pvstpmRxPort=pvstpmRxPort)
(octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, value_size_constraint, value_range_constraint, constraints_union, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsUnion', 'ConstraintsIntersection') (modules,) = mibBuilder.importSymbols('AT-SMI-MIB', 'modules') (vlan_index,) = mibBuilder.importSymbols('Q-BRIDGE-MIB', 'VlanIndex') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (ip_address, iso, integer32, counter32, time_ticks, object_identity, gauge32, unsigned32, mib_scalar, mib_table, mib_table_row, mib_table_column, module_identity, bits, counter64, mib_identifier, notification_type) = mibBuilder.importSymbols('SNMPv2-SMI', 'IpAddress', 'iso', 'Integer32', 'Counter32', 'TimeTicks', 'ObjectIdentity', 'Gauge32', 'Unsigned32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ModuleIdentity', 'Bits', 'Counter64', 'MibIdentifier', 'NotificationType') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') pvstpm = module_identity((1, 3, 6, 1, 4, 1, 207, 8, 4, 4, 4, 140)) pvstpm.setRevisions(('2006-03-29 16:51',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: pvstpm.setRevisionsDescriptions(('Initial revision',)) if mibBuilder.loadTexts: pvstpm.setLastUpdated('200603291651Z') if mibBuilder.loadTexts: pvstpm.setOrganization('Allied Telesis, Inc') if mibBuilder.loadTexts: pvstpm.setContactInfo('http://www.alliedtelesis.com') if mibBuilder.loadTexts: pvstpm.setDescription('The MIB module for managing PVSTPM enterprise functionality on Allied Telesis switches. ') pvstpm_events = mib_identifier((1, 3, 6, 1, 4, 1, 207, 8, 4, 4, 4, 140, 0)) pvstpm_event_variables = mib_identifier((1, 3, 6, 1, 4, 1, 207, 8, 4, 4, 4, 140, 1)) pvstpm_bridge_id = mib_scalar((1, 3, 6, 1, 4, 1, 207, 8, 4, 4, 4, 140, 1, 1), octet_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: pvstpmBridgeId.setStatus('current') if mibBuilder.loadTexts: pvstpmBridgeId.setDescription('The bridge identifier for the bridge that sent the trap.') pvstpm_topology_change_vlan = mib_scalar((1, 3, 6, 1, 4, 1, 207, 8, 4, 4, 4, 140, 1, 2), vlan_index()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: pvstpmTopologyChangeVlan.setStatus('current') if mibBuilder.loadTexts: pvstpmTopologyChangeVlan.setDescription('The VLAN ID of the vlan that has experienced a topology change.') pvstpm_rx_port = mib_scalar((1, 3, 6, 1, 4, 1, 207, 8, 4, 4, 4, 140, 1, 3), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: pvstpmRxPort.setStatus('current') if mibBuilder.loadTexts: pvstpmRxPort.setDescription('The port the inconsistent BPDU was received on.') pvstpm_rx_vlan = mib_scalar((1, 3, 6, 1, 4, 1, 207, 8, 4, 4, 4, 140, 1, 4), vlan_index()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: pvstpmRxVlan.setStatus('current') if mibBuilder.loadTexts: pvstpmRxVlan.setDescription('The vlan the inconsistent BPDU was received on.') pvstpm_tx_vlan = mib_scalar((1, 3, 6, 1, 4, 1, 207, 8, 4, 4, 4, 140, 1, 5), vlan_index()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: pvstpmTxVlan.setStatus('current') if mibBuilder.loadTexts: pvstpmTxVlan.setDescription('The vlan the inconsistent BPDU was transmitted on.') pvstpm_topology_change = notification_type((1, 3, 6, 1, 4, 1, 207, 8, 4, 4, 4, 140, 0, 1)).setObjects(('AT-PVSTPM-MIB', 'pvstpmBridgeId'), ('AT-PVSTPM-MIB', 'pvstpmTopologyChangeVlan')) if mibBuilder.loadTexts: pvstpmTopologyChange.setStatus('current') if mibBuilder.loadTexts: pvstpmTopologyChange.setDescription('A pvstpmTopologyChange trap signifies that a topology change has occurred on the specified VLAN') pvstpm_inconsistent_bpdu = notification_type((1, 3, 6, 1, 4, 1, 207, 8, 4, 4, 4, 140, 0, 2)).setObjects(('AT-PVSTPM-MIB', 'pvstpmBridgeId'), ('AT-PVSTPM-MIB', 'pvstpmRxPort'), ('AT-PVSTPM-MIB', 'pvstpmRxVlan'), ('AT-PVSTPM-MIB', 'pvstpmTxVlan')) if mibBuilder.loadTexts: pvstpmInconsistentBPDU.setStatus('current') if mibBuilder.loadTexts: pvstpmInconsistentBPDU.setDescription('A pvstpmInconsistentBPDU trap signifies that an inconsistent PVSTPM packet has been received on a port.') mibBuilder.exportSymbols('AT-PVSTPM-MIB', pvstpmBridgeId=pvstpmBridgeId, pvstpmRxVlan=pvstpmRxVlan, pvstpmTxVlan=pvstpmTxVlan, pvstpm=pvstpm, pvstpmEventVariables=pvstpmEventVariables, pvstpmTopologyChangeVlan=pvstpmTopologyChangeVlan, pvstpmEvents=pvstpmEvents, pvstpmTopologyChange=pvstpmTopologyChange, PYSNMP_MODULE_ID=pvstpm, pvstpmInconsistentBPDU=pvstpmInconsistentBPDU, pvstpmRxPort=pvstpmRxPort)
class ShiftCipher: def __init__(self, affineMultiplier, constantShift): self.affineMultiplier = affineMultiplier self.constantShift = constantShift def encode(self, messageInList): for i in range(len(messageInList)): if ord(messageInList[i])!=32: messageInList[i] = chr((self.affineMultiplier*ord(messageInList[i])%65+self.constantShift)%25+65) return(messageInList) message = list(input("Insert the message you want to encrypt in all caps: ")) MyCipher = ShiftCipher(1,10) print("The encrypted message is:") print(''.join(MyCipher.encode(message)))
class Shiftcipher: def __init__(self, affineMultiplier, constantShift): self.affineMultiplier = affineMultiplier self.constantShift = constantShift def encode(self, messageInList): for i in range(len(messageInList)): if ord(messageInList[i]) != 32: messageInList[i] = chr((self.affineMultiplier * ord(messageInList[i]) % 65 + self.constantShift) % 25 + 65) return messageInList message = list(input('Insert the message you want to encrypt in all caps: ')) my_cipher = shift_cipher(1, 10) print('The encrypted message is:') print(''.join(MyCipher.encode(message)))
all_nums = [] for i in range(10, 1000000): total = 0 for l in str(i): total += int(l) ** 5 if int(total) == int(i): all_nums.append(int(total)) print(sum(all_nums))
all_nums = [] for i in range(10, 1000000): total = 0 for l in str(i): total += int(l) ** 5 if int(total) == int(i): all_nums.append(int(total)) print(sum(all_nums))
def do(self): self.components.Open.label="Open" self.components.Delete.label="Delete" self.components.Duplicate.label="Duplicate" self.components.Run.label="Run" self.components.Files.text="Files" self.components.Call.label="Call"
def do(self): self.components.Open.label = 'Open' self.components.Delete.label = 'Delete' self.components.Duplicate.label = 'Duplicate' self.components.Run.label = 'Run' self.components.Files.text = 'Files' self.components.Call.label = 'Call'
# 3rd question # 12 se 421 takkk k sare no. ka sum print kre. # akshra=12 # sum=0 # while akshra<=421: # sum=sum+akshra # print(s) # akshra=akshra+1 # 4th question # 30 se 420 se vo no. print kro jo 8 se devied ho # var=30 # while var<=420: # if var%8==0: # print(var) # var+=1 # var1=1 # sum=0 # while var1<=11: # n=int(input("enter no.")) # if n%5==0: # n=n+var1 # print(n) # var1=var1+1 # 6TH QUESTION # # 7TH ,AND , 8TH QUESTION # GUESSING GAME BNAAOOOO # var1=int(input("enter the no.")) # var2=int(input("enter no.")) # while var1!=0: # num=var1*var2 # print(num) # num=num+1 n = 6 s = 0 i = 1 while i <= n: s = s + i i = i + 1 print (s)
n = 6 s = 0 i = 1 while i <= n: s = s + i i = i + 1 print(s)
# Project Euler Problem 5 ###################################### # Find smallest pos number that is # evenly divisible by all numbers from # 1 to 20 ###################################### #essentially getting the lcm of several numbers # formula for lcm is lcm(a,b) = a*b / gcd(a,b) def gcd(a, b): assert type(a) is int, "arg1 non int" assert type(b) is int, "arg2 non int" #just do Euclidean algorithm if a < b: while a: b, a = a, b%a return b else: while b: a, b = b, a%b return a def gcd_test(): print(gcd(1, 1)) print(gcd(5, 35)) print(gcd(21, 56)) print(gcd(27, 9)) return def lcm(a, b): return a*b//gcd(a,b) def mult_lcm(num_list): #initialize prev prev = 1 for i in range(0, len(num_list) - 1): if i == 0: a = num_list[0] b = num_list[i+1] a = lcm(a, b) return a def main(): print(mult_lcm(range(1, 21))) return #test main()
def gcd(a, b): assert type(a) is int, 'arg1 non int' assert type(b) is int, 'arg2 non int' if a < b: while a: (b, a) = (a, b % a) return b else: while b: (a, b) = (b, a % b) return a def gcd_test(): print(gcd(1, 1)) print(gcd(5, 35)) print(gcd(21, 56)) print(gcd(27, 9)) return def lcm(a, b): return a * b // gcd(a, b) def mult_lcm(num_list): prev = 1 for i in range(0, len(num_list) - 1): if i == 0: a = num_list[0] b = num_list[i + 1] a = lcm(a, b) return a def main(): print(mult_lcm(range(1, 21))) return main()
print('hello world') print("hello world") print("hello \nworld") print("hello \tworld") print('length=',len('hello')) # len returns the length of the string mystring="python" # assigning value python to variable mystring print(mystring) # it returns python # Indexing print('the element at Index[0]=',mystring[0]) # it returns 'p' because P is at 0 print('the element at Index[3]=',mystring[3]) # it returns 'h' # Slicing print('the elements starting at Index[0] and it goes upto Index[4]',mystring[0:4]) # it returns 'pyth'In slicing it goes upto but not include print('start at Index[3] and goes upto Index[5]',mystring[3:5]) # it returns 'ho' print(mystring[::2]) # it returns 'pto'
print('hello world') print('hello world') print('hello \nworld') print('hello \tworld') print('length=', len('hello')) mystring = 'python' print(mystring) print('the element at Index[0]=', mystring[0]) print('the element at Index[3]=', mystring[3]) print('the elements starting at Index[0] and it goes upto Index[4]', mystring[0:4]) print('start at Index[3] and goes upto Index[5]', mystring[3:5]) print(mystring[::2])
# -*- coding: utf-8 -*- def main(): a, b = map(int, input().split()) if a + 0.5 - b > 0: print(1) else: print(0) if __name__ == '__main__': main()
def main(): (a, b) = map(int, input().split()) if a + 0.5 - b > 0: print(1) else: print(0) if __name__ == '__main__': main()
values = input("Please fill value:") result = [] for value in values : if str(value).isdigit() : dec = int(value) if dec % 2 != 0 : result.append(dec) print(result) print(len(result))
values = input('Please fill value:') result = [] for value in values: if str(value).isdigit(): dec = int(value) if dec % 2 != 0: result.append(dec) print(result) print(len(result))
class Instrument: def __init__(self, exchange_name, instmt_name, instmt_code, **param): self.exchange_name = exchange_name self.instmt_name = instmt_name self.instmt_code = instmt_code self.instmt_snapshot_table_name = '' def get_exchange_name(self): return self.exchange_name def get_instmt_name(self): return self.instmt_name def get_instmt_code(self): return self.instmt_code def get_instmt_snapshot_table_name(self): return self.instmt_snapshot_table_name def set_instmt_snapshot_table_name(self, instmt_snapshot_table_name): self.instmt_snapshot_table_name = instmt_snapshot_table_name
class Instrument: def __init__(self, exchange_name, instmt_name, instmt_code, **param): self.exchange_name = exchange_name self.instmt_name = instmt_name self.instmt_code = instmt_code self.instmt_snapshot_table_name = '' def get_exchange_name(self): return self.exchange_name def get_instmt_name(self): return self.instmt_name def get_instmt_code(self): return self.instmt_code def get_instmt_snapshot_table_name(self): return self.instmt_snapshot_table_name def set_instmt_snapshot_table_name(self, instmt_snapshot_table_name): self.instmt_snapshot_table_name = instmt_snapshot_table_name
class NoProjectYaml(Exception): pass class NoDockerfile(Exception): pass class CheckCallFailed(Exception): pass class WaitLinkFailed(Exception): pass
class Noprojectyaml(Exception): pass class Nodockerfile(Exception): pass class Checkcallfailed(Exception): pass class Waitlinkfailed(Exception): pass
class Role: def __init__(self, data): self.data = data @property def id(self): return self.data["id"] @property def name(self): return self.data["name"] @classmethod def from_dict(cls, data): return cls(data)
class Role: def __init__(self, data): self.data = data @property def id(self): return self.data['id'] @property def name(self): return self.data['name'] @classmethod def from_dict(cls, data): return cls(data)
__author__ = "Abdul Dakkak" __email__ = "dakkak@illinois.edu" __license__ = "Apache 2.0" __version__ = "0.2.4"
__author__ = 'Abdul Dakkak' __email__ = 'dakkak@illinois.edu' __license__ = 'Apache 2.0' __version__ = '0.2.4'
def sum(arr): if len(arr) == 0: return 0 return arr[0] + sum(arr[1:]) if __name__ == '__main__': arr = [1,2,3,4,5,6,7,8] print('Test arr: %s' % arr) print('sum = %s' % sum(arr))
def sum(arr): if len(arr) == 0: return 0 return arr[0] + sum(arr[1:]) if __name__ == '__main__': arr = [1, 2, 3, 4, 5, 6, 7, 8] print('Test arr: %s' % arr) print('sum = %s' % sum(arr))
#!/usr/bin/env python3 file = 'input.txt' with open(file) as f: input = f.read().splitlines() def more_ones(list, truth): data = [] for i in range(0, len(list[0])): more_ones = sum([1 for x in list if x[i] == '1']) >= sum([1 for x in list if x[i] == '0']) if more_ones: if truth: data.append(1) else: data.append(0) else: if truth: data.append(0) else: data.append(1) return data def search_lists(input, truth): numbers = input.copy() for i in range(0, len(input[0])): count = 0 for line in numbers: if line[i] == str(more_ones(numbers, truth)[i]): count += 1 if count == len(numbers) / 2: char = (1 if truth else 0) else: char = more_ones(numbers, truth)[i] for line in list(numbers): if line[i] != str(char): numbers.remove(line) if len(numbers) == 1: return numbers[0] print(int(search_lists(input, True), 2) * int(search_lists(input, False), 2))
file = 'input.txt' with open(file) as f: input = f.read().splitlines() def more_ones(list, truth): data = [] for i in range(0, len(list[0])): more_ones = sum([1 for x in list if x[i] == '1']) >= sum([1 for x in list if x[i] == '0']) if more_ones: if truth: data.append(1) else: data.append(0) elif truth: data.append(0) else: data.append(1) return data def search_lists(input, truth): numbers = input.copy() for i in range(0, len(input[0])): count = 0 for line in numbers: if line[i] == str(more_ones(numbers, truth)[i]): count += 1 if count == len(numbers) / 2: char = 1 if truth else 0 else: char = more_ones(numbers, truth)[i] for line in list(numbers): if line[i] != str(char): numbers.remove(line) if len(numbers) == 1: return numbers[0] print(int(search_lists(input, True), 2) * int(search_lists(input, False), 2))
class Config(object): MONGO_URI = 'mongodb://172.17.0.2:27017/bibtexreader' MONGO_HOST = 'mongodb://172.17.0.2:27017' DB_NAME = 'bibtexreader' BIB_DIR = 'bibtexfiles'
class Config(object): mongo_uri = 'mongodb://172.17.0.2:27017/bibtexreader' mongo_host = 'mongodb://172.17.0.2:27017' db_name = 'bibtexreader' bib_dir = 'bibtexfiles'
DATABASES = { 'default': { 'NAME': ':memory:', 'ENGINE': 'django.db.backends.sqlite3', } } SECRET_KEY = 'secret' INSTALLED_APPS = ( 'django_nose', ) TEST_RUNNER = 'django_nose.NoseTestSuiteRunner' NOSE_ARGS = ( 'stopwatch', '--verbosity=2', '--nologcapture', '--with-doctest', '--with-coverage', '--cover-package=stopwatch', '--cover-erase', )
databases = {'default': {'NAME': ':memory:', 'ENGINE': 'django.db.backends.sqlite3'}} secret_key = 'secret' installed_apps = ('django_nose',) test_runner = 'django_nose.NoseTestSuiteRunner' nose_args = ('stopwatch', '--verbosity=2', '--nologcapture', '--with-doctest', '--with-coverage', '--cover-package=stopwatch', '--cover-erase')