content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
def par(i): return i % 2 == 0 def impar(i): return i % 2 == 1
def par(i): return i % 2 == 0 def impar(i): return i % 2 == 1
# README # Substitute the layer string point to the correct path # depending where your gis_sample_data are myVector = QgsVectorLayer("/qgis_sample_data/shapfiles/alaska.shp", "MyFirstVector", "ogr") QgsMapLayerRegistry.instance().addMapLayers([myVector]) # get data provider myDataProvider = myVector.dataProvider() # get feature with id 599 features = myVector.getFeatures( QgsFeatureRequest(599) ) myFeature = features.next() # create geometry from its bounding box bbox = myFeature.geometry().boundingBox() newGeom = QgsGeometry.fromRect( bbox ) # create a new feature newFeature = QgsFeature() # set the fields of the feature as from myVector # this step only set the column characteristic of the feature # not it's values newFeature.setFields( myVector.pendingFields() ) # set attributes values newAttributes = [1000, "Alaska", 2] newFeature.setAttributes( newAttributes ) # set the geometry of the feature newFeature.setGeometry( newGeom ) # add new feature in myVector using provider myDataProvider.addFeatures( [newFeature] ) # refresh canvas and symbology iface.mapCanvas().clearCache() iface.mapCanvas().refresh() iface.legendInterface().refreshLayerSymbology(myVector)
my_vector = qgs_vector_layer('/qgis_sample_data/shapfiles/alaska.shp', 'MyFirstVector', 'ogr') QgsMapLayerRegistry.instance().addMapLayers([myVector]) my_data_provider = myVector.dataProvider() features = myVector.getFeatures(qgs_feature_request(599)) my_feature = features.next() bbox = myFeature.geometry().boundingBox() new_geom = QgsGeometry.fromRect(bbox) new_feature = qgs_feature() newFeature.setFields(myVector.pendingFields()) new_attributes = [1000, 'Alaska', 2] newFeature.setAttributes(newAttributes) newFeature.setGeometry(newGeom) myDataProvider.addFeatures([newFeature]) iface.mapCanvas().clearCache() iface.mapCanvas().refresh() iface.legendInterface().refreshLayerSymbology(myVector)
class UnknownTld(Exception): pass class FailedParsingWhoisOutput(Exception): pass class UnknownDateFormat(Exception): pass class WhoisCommandFailed(Exception): pass
class Unknowntld(Exception): pass class Failedparsingwhoisoutput(Exception): pass class Unknowndateformat(Exception): pass class Whoiscommandfailed(Exception): pass
mouse, cat, dog = "small", "medium", "large" try: print(camel) except: print("not difined") finally: print("Defined Animals list is:") print("mouse:" , mouse, "cat:", cat, "dog:", dog)
(mouse, cat, dog) = ('small', 'medium', 'large') try: print(camel) except: print('not difined') finally: print('Defined Animals list is:') print('mouse:', mouse, 'cat:', cat, 'dog:', dog)
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def isSubtree(self, s: TreeNode, t: TreeNode) -> bool: return self.traverse(s, t) def helper(self, s: TreeNode, t: TreeNode) -> bool: if s is None and t is None: return True if s is None or t is None: return False return s.val == t.val and self.helper(s.left, t.left) and self.helper(s.right, t.right) def traverse(self, s: TreeNode, t: TreeNode) -> bool: return s is not None and (self.helper(s, t) or self.traverse(s.left, t) or self.traverse(s.right, t))
class Solution: def is_subtree(self, s: TreeNode, t: TreeNode) -> bool: return self.traverse(s, t) def helper(self, s: TreeNode, t: TreeNode) -> bool: if s is None and t is None: return True if s is None or t is None: return False return s.val == t.val and self.helper(s.left, t.left) and self.helper(s.right, t.right) def traverse(self, s: TreeNode, t: TreeNode) -> bool: return s is not None and (self.helper(s, t) or self.traverse(s.left, t) or self.traverse(s.right, t))
def solveQuestion(inputPath): fileP = open(inputPath, 'r') fileLines = fileP.readlines() fileP.close() file = fileLines[0] file = file.strip('\n') fileLength = len(file) counter = -1 bracketOpen = False repeatLength = '' repeatTimes = '' repeatLengthFound = False repeatTimesFound = False decomp = '' while counter < fileLength - 1: counter += 1 if file[counter] == '(': bracketOpen = True continue elif file[counter] == 'x' and bracketOpen == True: repeatLength = int(repeatLength) repeatLengthFound = True continue elif file[counter] == ')' and bracketOpen == True: repeatTimes = int(repeatTimes) repeatTimesFound = True if bracketOpen != True: decomp += file[counter] else: if repeatLengthFound == True and repeatTimesFound == True: bracketOpen = False repeatString = file[(counter + 1):(counter + repeatLength + 1)] for i in range(repeatTimes): decomp += repeatString counter += repeatLength repeatLength = '' repeatTimes = '' repeatLengthFound = False repeatTimesFound = False else: if repeatLengthFound == False: repeatLength += file[counter] else: repeatTimes += file[counter] return len(decomp) print(solveQuestion('InputD09Q1.txt'))
def solve_question(inputPath): file_p = open(inputPath, 'r') file_lines = fileP.readlines() fileP.close() file = fileLines[0] file = file.strip('\n') file_length = len(file) counter = -1 bracket_open = False repeat_length = '' repeat_times = '' repeat_length_found = False repeat_times_found = False decomp = '' while counter < fileLength - 1: counter += 1 if file[counter] == '(': bracket_open = True continue elif file[counter] == 'x' and bracketOpen == True: repeat_length = int(repeatLength) repeat_length_found = True continue elif file[counter] == ')' and bracketOpen == True: repeat_times = int(repeatTimes) repeat_times_found = True if bracketOpen != True: decomp += file[counter] elif repeatLengthFound == True and repeatTimesFound == True: bracket_open = False repeat_string = file[counter + 1:counter + repeatLength + 1] for i in range(repeatTimes): decomp += repeatString counter += repeatLength repeat_length = '' repeat_times = '' repeat_length_found = False repeat_times_found = False elif repeatLengthFound == False: repeat_length += file[counter] else: repeat_times += file[counter] return len(decomp) print(solve_question('InputD09Q1.txt'))
def prime(x): print(f'{x%17}') def dprime(x): print(f'{x%13}') prime(41)
def prime(x): print(f'{x % 17}') def dprime(x): print(f'{x % 13}') prime(41)
assert xxx and yyy # Alternative 1a. Check both expressions are true assert xxx, yyy # Alternative 1b. Check 'xxx' is true, 'yyy' is the failure message. tuple = (xxx, yyy) # Alternative 2. Check both elements of the tuple match expectations. assert tuple[0]==xxx assert tuple[1]==yyy
assert xxx and yyy assert xxx, yyy tuple = (xxx, yyy) assert tuple[0] == xxx assert tuple[1] == yyy
def named_property(name, doc=None): def get_prop(self): return self._contents.get(name) def set_prop(self, value): self._contents[name] = value self.validate() return property(get_prop, set_prop, doc=doc)
def named_property(name, doc=None): def get_prop(self): return self._contents.get(name) def set_prop(self, value): self._contents[name] = value self.validate() return property(get_prop, set_prop, doc=doc)
USER_AGENT_LIST = [ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.90 Safari/537.36', 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.2.149.29 Safari/525.13', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/531.4 (KHTML, like Gecko) Chrome/3.0.194.0 Safari/531.4', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.11 Safari/534.16', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.50 Safari/525.19', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/4.0.211.7 Safari/532.0', 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Lunascape 5.0 alpha2)', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.2 (KHTML, like Gecko) Chrome/4.0.222.7 Safari/532.2', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; ru-RU) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.11 Safari/534.16', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.10 Safari/532.0', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Maxthon;', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/530.1 (KHTML, like Gecko) Chrome/2.0.169.0 Safari/530.1', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; ja-JP; rv:1.7) Gecko/20040614 Firefox/0.9', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.810.0 Safari/535.1', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/4.0.211.0 Safari/532.0', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Maxthon/4.4.3.4000 Chrome/30.0.1599.101 Safari/537.36', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.6 (KHTML, like Gecko) Chrome/7.0.500.0 Safari/534.6', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; TencentTraveler)', 'Mozilla/5.0 (Windows NT 6.0; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11', 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/534.4 (KHTML, like Gecko) Chrome/6.0.481.0 Safari/534.4', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.370.0 Safari/533.4', 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/0.4.154.31 Safari/525.19', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.1.17) Gecko/20110123 (like Firefox/3.x) SeaMonkey/2.0.12', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB) AppleWebKit/534.1 (KHTML, like Gecko) Chrome/6.0.428.0 Safari/534.1', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; de-DE) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/7.0.540.0 Safari/534.10', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE) Chrome/4.0.223.3 Safari/532.2', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/12.0.702.0 Safari/534.24', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.42 Safari/525.19', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.3 (KHTML, like Gecko) Chrome/4.0.227.0 Safari/532.3', 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.8 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.8', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.460.0 Safari/534.3', 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.463.0 Safari/534.3', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/528.9 (KHTML, like Gecko) Chrome/2.0.157.0 Safari/528.9', 'Mozilla/5.0 (Windows NT 5.2) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.794.0 Safari/535.1', 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.694.0 Safari/534.24', 'Mozilla/5.0 (Windows NT 6.0) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.36 Safari/536.5', 'Mozilla/5.0 (Windows NT 5.1; U; en; rv:1.8.1) Gecko/20061208 Firefox/2.0.0 Opera 9.50', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120427 Firefox/15.0a1', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.6 (KHTML, like Gecko) Chrome/20.0.1092.0 Safari/536.6', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Maxthon; .NET CLR 1.1.4322)', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.2 (KHTML, like Gecko) Chrome/4.0.223.4 Safari/532.2', 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.65 Safari/535.11', 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.41 Safari/535.1', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.21 (KHTML, like Gecko) Chrome/11.0.682.0 Safari/534.21', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/530.0 (KHTML, like Gecko) Chrome/2.0.182.0 Safari/531.0', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.9 (KHTML, like Gecko) Chrome/7.0.531.0 Safari/534.9', 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)', 'Mozilla/5.0 (Windows NT 6.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.811.0 Safari/535.1', 'ozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.7.5) Gecko/20041108 Firefox/1.0', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_8; en-us) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50', 'Mozilla/5.0 (SymbianOS/9.4; Series60/5.0 NokiaN97-1/20.0.019; Profile/MIDP-2.1 Configuration/CLDC-1.1) AppleWebKit/525 (KHTML, like Gecko) BrowserNG/7.1.18124', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.127 Safari/533.4', 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E) QQBrowser/6.9.11079.201', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10', 'Mozilla/5.0 (Windows NT 6.0) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.120 Safari/535.2', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; zh-cn) Opera 8.50', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/7.0.0 Safari/700.13', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/4.0.211.4 Safari/532.0', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.53 Safari/525.19', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36', 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.6 Safari/532.0', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.1 Safari/532.0', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/0.9.2 StumbleUpon/1.994', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.5) Gecko/20041110 Firefox/1.0', 'Mozilla/5.0 (Windows NT 6.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1467.0 Safari/537.36', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; en) Opera 8.0', 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.41 Safari/535.1 QQBrowser/6.9.11079.201', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2', 'Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.11 TaoBrowser/2.0 Safari/536.11', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b4pre) Gecko/20100815 Minefield/4.0b4pre', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11', 'Mozilla/5.0 (Windows; U; Windows NT 6.0 x64; en-US; rv:1.9pre) Gecko/2008072421 Minefield/3.0.2pre', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.6 Safari/530.5', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705)', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.21 Safari/532.0', 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.792.0 Safari/535.1', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/530.1 (KHTML, like Gecko) Chrome/2.0.168.0 Safari/530.1', 'Mozilla/5.0 (X11; U; Linux x86_64; zh-CN; rv:1.9.2.10) Gecko/20100922 Ubuntu/10.10 (maverick) Firefox/3.6.10', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/530.8 (KHTML, like Gecko) Chrome/2.0.177.1 Safari/530.8', 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/533.17.8 (KHTML, like Gecko) Version/5.0.1 Safari/533.17.8', 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0)', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.40 Safari/530.5', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_0) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.24 Safari/532.0', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/528.10 (KHTML, like Gecko) Chrome/2.0.157.2 Safari/528.10', 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/532.2 (KHTML, like Gecko) Chrome/4.0.223.2 Safari/532.2', 'Mozilla/5.0 (Windows NT 6.0) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.75 Safari/535.7', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; T312461)', 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; TencentTraveler 4.0)', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.461.0 Safari/534.3', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; rv:1.7.3) Gecko/20041001 Firefox/0.10.1', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)', 'Mozilla/5.0 (Windows NT 6.2) AppleWebKit/536.3 (KHTML, like Gecko) Chrome/19.0.1062.0 Safari/536.3', 'Mozilla/5.0 (Windows; U; Windows NT 5.2; de-DE) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/4.0.202.2 Safari/532.0', 'Mozilla/5.0 (Windows NT 6.2; Win64; x64; rv:16.0) Gecko/16.0 Firefox/16.0', 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/531.3 (KHTML, like Gecko) Chrome/3.0.193.2 Safari/531.3', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1', 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)', 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.864.0 Safari/535.2', 'Mozilla/5.0 (Windows NT 5.2) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.813.0 Safari/535.1', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.6 Safari/532.0', 'Mozilla/5.0 (Windows NT 5.1; rv:2.1.1) Gecko/20110415 Firefox/4.0.2pre Fennec/4.0.1', 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.801.0 Safari/535.1', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/4.0.212.0 Safari/532.0', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.2.149.27 Safari/525.13', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.0 Safari/532.5', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.36 Safari/535.7', 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.697.0 Safari/534.24', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/7.0.548.0 Safari/534.10', 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/534.17 (KHTML, like Gecko) Chrome/11.0.652.0 Safari/534.17', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.62 Safari/537.36', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10 ChromePlus/1.5.2.0', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.1 (KHTML, like Gecko) Chrome/4.0.219.0 Safari/532.1', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/4.0.211.7 Safari/532.0', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.2 (KHTML, like Gecko) Chrome/5.0.342.2 Safari/533.2', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.1 (KHTML, like Gecko) Chrome/4.0.219.4 Safari/532.1', 'Mozilla/5.0 (Windows NT 6.0; rv:2.1.1) Gecko/20110415 Firefox/4.0.2pre Fennec/4.0.1', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/0.2.153.0 Safari/525.19', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; sv-SE; rv:1.7.5) Gecko/20041108 Firefox/1.0', 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.462.0 Safari/534.3', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.5) Gecko/20041122 Firefox/1.0', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; uZardWeb/1.0; Server_JP)', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; HCI0449; .NET CLR 1.0.3705)', 'Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt); Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1);', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.23 Safari/530.5', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/4.0.208.0 Safari/532.0', 'Mozilla/5.0 (Windows NT 6.0; rv:14.0) Gecko/20100101 Firefox/14.0.1', 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.93 Safari/537.36', 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/19.77.34.5 Safari/537.1', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/530.7 (KHTML, like Gecko) Chrome/2.0.176.0 Safari/530.7', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.21 (KHTML, like Gecko) Chrome/11.0.678.0 Safari/534.21', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.21 Safari/532.0', 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)', 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; InfoPath.1', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.55 Safari/525.19', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0a1) Gecko/20110623 Firefox/7.0a1 Fennec/7.0a1', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.724.100 Safari/534.30', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.33 Safari/534.3 SE 2.X MetaSr 1.0', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; WOW64; SV1; uZardWeb/1.0; Server_HK)', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1', 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506)', 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E)', 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/536.3 (KHTML, like Gecko) Chrome/19.0.1063.0 Safari/536.3', 'Mozilla/5.0 (Windows NT 6.0) yi; AppleWebKit/345667.12221 (KHTML, like Gecko) Chrome/23.0.1271.26 Safari/453667.1221', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/531.2 (KHTML, like Gecko) Chrome/3.0.191.3 Safari/531.2', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.39 Safari/530.5', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.1 Safari/532.0', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.38 Safari/532.0', 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.27 Safari/532.0', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b) Gecko/20050118 Firefox/1.0+', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; ja-JP; rv:1.7) Gecko/20040707 Firefox/0.9.2', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/4.0.202.0 Safari/532.0', 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; SE 2.X MetaSr 1.0; SE 2.X MetaSr 1.0; .NET CLR 2.0.50727; SE 2.X MetaSr 1.0)', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/530.4 (KHTML, like Gecko) Chrome/2.0.171.0 Safari/530.4', 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)', 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/535.24 (KHTML, like Gecko) Chrome/19.0.1055.1 Safari/535.24', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; nl-NL; rv:1.7.5) Gecko/20041202 Firefox/1.0', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/4.0.204.0 Safari/532.0', 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/532.2 (KHTML, like Gecko) Chrome/4.0.222.6 Safari/532.2', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/528.8 (KHTML, like Gecko) Chrome/1.0.156.0 Safari/528.8', 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/6.0)', 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 1.1.4322)', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.43 Safari/534.7', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.15 Safari/534.13', 'Mozilla/5.0 (ipad Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.6 (KHTML, like Gecko) Chrome/7.0.498.0 Safari/534.6', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.43 Safari/530.5', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/4.0.208.0 Safari/532.0', 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.66 Safari/535.11', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.19 (KHTML, like Gecko) Chrome/11.0.661.0 Safari/534.19', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-CA) AppleWebKit/534.13 (KHTML like Gecko) Chrome/9.0.597.98 Safari/534.13', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/4.0.211.2 Safari/532.0', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/4.0.201.1 Safari/532.0', 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/536.3 (KHTML, like Gecko) Chrome/19.0.1061.1 Safari/536.3', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/4.0.201.1 Safari/532.0', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.1 (KHTML, like Gecko) Chrome/4.0.213.1 Safari/532.1', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/530.6 (KHTML, like Gecko) Chrome/2.0.174.0 Safari/530.6', 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/0.3.154.6 Safari/525.19', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.599.0 Safari/534.13', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/534.8 (KHTML, like Gecko) Chrome/7.0.521.0 Safari/534.8', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b2pre) Gecko/20081015 Fennec/1.0a1', 'Mozilla/5.0 (iPod; U; CPU iPhone OS 4_3_3 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5' ]
user_agent_list = ['Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.90 Safari/537.36', 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.2.149.29 Safari/525.13', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/531.4 (KHTML, like Gecko) Chrome/3.0.194.0 Safari/531.4', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.11 Safari/534.16', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.50 Safari/525.19', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/4.0.211.7 Safari/532.0', 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Lunascape 5.0 alpha2)', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.2 (KHTML, like Gecko) Chrome/4.0.222.7 Safari/532.2', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; ru-RU) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.11 Safari/534.16', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.10 Safari/532.0', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Maxthon;', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/530.1 (KHTML, like Gecko) Chrome/2.0.169.0 Safari/530.1', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; ja-JP; rv:1.7) Gecko/20040614 Firefox/0.9', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.810.0 Safari/535.1', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/4.0.211.0 Safari/532.0', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Maxthon/4.4.3.4000 Chrome/30.0.1599.101 Safari/537.36', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.6 (KHTML, like Gecko) Chrome/7.0.500.0 Safari/534.6', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; TencentTraveler)', 'Mozilla/5.0 (Windows NT 6.0; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11', 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/534.4 (KHTML, like Gecko) Chrome/6.0.481.0 Safari/534.4', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.370.0 Safari/533.4', 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/0.4.154.31 Safari/525.19', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.1.17) Gecko/20110123 (like Firefox/3.x) SeaMonkey/2.0.12', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB) AppleWebKit/534.1 (KHTML, like Gecko) Chrome/6.0.428.0 Safari/534.1', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; de-DE) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/7.0.540.0 Safari/534.10', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE) Chrome/4.0.223.3 Safari/532.2', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/12.0.702.0 Safari/534.24', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.42 Safari/525.19', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.3 (KHTML, like Gecko) Chrome/4.0.227.0 Safari/532.3', 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.8 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.8', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.460.0 Safari/534.3', 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.463.0 Safari/534.3', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/528.9 (KHTML, like Gecko) Chrome/2.0.157.0 Safari/528.9', 'Mozilla/5.0 (Windows NT 5.2) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.794.0 Safari/535.1', 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.694.0 Safari/534.24', 'Mozilla/5.0 (Windows NT 6.0) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.36 Safari/536.5', 'Mozilla/5.0 (Windows NT 5.1; U; en; rv:1.8.1) Gecko/20061208 Firefox/2.0.0 Opera 9.50', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120427 Firefox/15.0a1', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.6 (KHTML, like Gecko) Chrome/20.0.1092.0 Safari/536.6', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Maxthon; .NET CLR 1.1.4322)', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.2 (KHTML, like Gecko) Chrome/4.0.223.4 Safari/532.2', 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.65 Safari/535.11', 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.41 Safari/535.1', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.21 (KHTML, like Gecko) Chrome/11.0.682.0 Safari/534.21', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/530.0 (KHTML, like Gecko) Chrome/2.0.182.0 Safari/531.0', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.9 (KHTML, like Gecko) Chrome/7.0.531.0 Safari/534.9', 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)', 'Mozilla/5.0 (Windows NT 6.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.811.0 Safari/535.1', 'ozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.7.5) Gecko/20041108 Firefox/1.0', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_8; en-us) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50', 'Mozilla/5.0 (SymbianOS/9.4; Series60/5.0 NokiaN97-1/20.0.019; Profile/MIDP-2.1 Configuration/CLDC-1.1) AppleWebKit/525 (KHTML, like Gecko) BrowserNG/7.1.18124', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.127 Safari/533.4', 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E) QQBrowser/6.9.11079.201', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10', 'Mozilla/5.0 (Windows NT 6.0) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.120 Safari/535.2', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; zh-cn) Opera 8.50', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/7.0.0 Safari/700.13', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/4.0.211.4 Safari/532.0', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.53 Safari/525.19', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36', 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.6 Safari/532.0', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.1 Safari/532.0', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/0.9.2 StumbleUpon/1.994', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.5) Gecko/20041110 Firefox/1.0', 'Mozilla/5.0 (Windows NT 6.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1467.0 Safari/537.36', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; en) Opera 8.0', 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.41 Safari/535.1 QQBrowser/6.9.11079.201', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2', 'Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.11 TaoBrowser/2.0 Safari/536.11', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b4pre) Gecko/20100815 Minefield/4.0b4pre', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11', 'Mozilla/5.0 (Windows; U; Windows NT 6.0 x64; en-US; rv:1.9pre) Gecko/2008072421 Minefield/3.0.2pre', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.6 Safari/530.5', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705)', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.21 Safari/532.0', 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.792.0 Safari/535.1', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/530.1 (KHTML, like Gecko) Chrome/2.0.168.0 Safari/530.1', 'Mozilla/5.0 (X11; U; Linux x86_64; zh-CN; rv:1.9.2.10) Gecko/20100922 Ubuntu/10.10 (maverick) Firefox/3.6.10', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/530.8 (KHTML, like Gecko) Chrome/2.0.177.1 Safari/530.8', 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/533.17.8 (KHTML, like Gecko) Version/5.0.1 Safari/533.17.8', 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0)', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.40 Safari/530.5', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_0) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.24 Safari/532.0', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/528.10 (KHTML, like Gecko) Chrome/2.0.157.2 Safari/528.10', 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/532.2 (KHTML, like Gecko) Chrome/4.0.223.2 Safari/532.2', 'Mozilla/5.0 (Windows NT 6.0) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.75 Safari/535.7', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; T312461)', 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; TencentTraveler 4.0)', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.461.0 Safari/534.3', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; rv:1.7.3) Gecko/20041001 Firefox/0.10.1', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)', 'Mozilla/5.0 (Windows NT 6.2) AppleWebKit/536.3 (KHTML, like Gecko) Chrome/19.0.1062.0 Safari/536.3', 'Mozilla/5.0 (Windows; U; Windows NT 5.2; de-DE) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/4.0.202.2 Safari/532.0', 'Mozilla/5.0 (Windows NT 6.2; Win64; x64; rv:16.0) Gecko/16.0 Firefox/16.0', 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/531.3 (KHTML, like Gecko) Chrome/3.0.193.2 Safari/531.3', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1', 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)', 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.864.0 Safari/535.2', 'Mozilla/5.0 (Windows NT 5.2) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.813.0 Safari/535.1', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.6 Safari/532.0', 'Mozilla/5.0 (Windows NT 5.1; rv:2.1.1) Gecko/20110415 Firefox/4.0.2pre Fennec/4.0.1', 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.801.0 Safari/535.1', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/4.0.212.0 Safari/532.0', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.2.149.27 Safari/525.13', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.0 Safari/532.5', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.36 Safari/535.7', 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.697.0 Safari/534.24', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/7.0.548.0 Safari/534.10', 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/534.17 (KHTML, like Gecko) Chrome/11.0.652.0 Safari/534.17', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.62 Safari/537.36', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10 ChromePlus/1.5.2.0', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.1 (KHTML, like Gecko) Chrome/4.0.219.0 Safari/532.1', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/4.0.211.7 Safari/532.0', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.2 (KHTML, like Gecko) Chrome/5.0.342.2 Safari/533.2', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.1 (KHTML, like Gecko) Chrome/4.0.219.4 Safari/532.1', 'Mozilla/5.0 (Windows NT 6.0; rv:2.1.1) Gecko/20110415 Firefox/4.0.2pre Fennec/4.0.1', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/0.2.153.0 Safari/525.19', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; sv-SE; rv:1.7.5) Gecko/20041108 Firefox/1.0', 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.462.0 Safari/534.3', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.5) Gecko/20041122 Firefox/1.0', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; uZardWeb/1.0; Server_JP)', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; HCI0449; .NET CLR 1.0.3705)', 'Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt); Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1);', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.23 Safari/530.5', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/4.0.208.0 Safari/532.0', 'Mozilla/5.0 (Windows NT 6.0; rv:14.0) Gecko/20100101 Firefox/14.0.1', 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.93 Safari/537.36', 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/19.77.34.5 Safari/537.1', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/530.7 (KHTML, like Gecko) Chrome/2.0.176.0 Safari/530.7', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.21 (KHTML, like Gecko) Chrome/11.0.678.0 Safari/534.21', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.21 Safari/532.0', 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)', 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; InfoPath.1', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.55 Safari/525.19', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0a1) Gecko/20110623 Firefox/7.0a1 Fennec/7.0a1', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.724.100 Safari/534.30', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.33 Safari/534.3 SE 2.X MetaSr 1.0', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; WOW64; SV1; uZardWeb/1.0; Server_HK)', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1', 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506)', 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E)', 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/536.3 (KHTML, like Gecko) Chrome/19.0.1063.0 Safari/536.3', 'Mozilla/5.0 (Windows NT 6.0) yi; AppleWebKit/345667.12221 (KHTML, like Gecko) Chrome/23.0.1271.26 Safari/453667.1221', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/531.2 (KHTML, like Gecko) Chrome/3.0.191.3 Safari/531.2', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.39 Safari/530.5', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.1 Safari/532.0', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.38 Safari/532.0', 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.27 Safari/532.0', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b) Gecko/20050118 Firefox/1.0+', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; ja-JP; rv:1.7) Gecko/20040707 Firefox/0.9.2', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/4.0.202.0 Safari/532.0', 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; SE 2.X MetaSr 1.0; SE 2.X MetaSr 1.0; .NET CLR 2.0.50727; SE 2.X MetaSr 1.0)', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/530.4 (KHTML, like Gecko) Chrome/2.0.171.0 Safari/530.4', 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)', 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/535.24 (KHTML, like Gecko) Chrome/19.0.1055.1 Safari/535.24', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; nl-NL; rv:1.7.5) Gecko/20041202 Firefox/1.0', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/4.0.204.0 Safari/532.0', 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/532.2 (KHTML, like Gecko) Chrome/4.0.222.6 Safari/532.2', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/528.8 (KHTML, like Gecko) Chrome/1.0.156.0 Safari/528.8', 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/6.0)', 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 1.1.4322)', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.43 Safari/534.7', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.15 Safari/534.13', 'Mozilla/5.0 (ipad Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.6 (KHTML, like Gecko) Chrome/7.0.498.0 Safari/534.6', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.43 Safari/530.5', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/4.0.208.0 Safari/532.0', 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.66 Safari/535.11', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.19 (KHTML, like Gecko) Chrome/11.0.661.0 Safari/534.19', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-CA) AppleWebKit/534.13 (KHTML like Gecko) Chrome/9.0.597.98 Safari/534.13', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/4.0.211.2 Safari/532.0', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/4.0.201.1 Safari/532.0', 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/536.3 (KHTML, like Gecko) Chrome/19.0.1061.1 Safari/536.3', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/4.0.201.1 Safari/532.0', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.1 (KHTML, like Gecko) Chrome/4.0.213.1 Safari/532.1', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/530.6 (KHTML, like Gecko) Chrome/2.0.174.0 Safari/530.6', 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/0.3.154.6 Safari/525.19', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.599.0 Safari/534.13', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/534.8 (KHTML, like Gecko) Chrome/7.0.521.0 Safari/534.8', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b2pre) Gecko/20081015 Fennec/1.0a1', 'Mozilla/5.0 (iPod; U; CPU iPhone OS 4_3_3 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5']
largura = int(input("digite a largura: ")) altura = int(input("digite a altura: ")) x = 1 while x <= altura: y = 1 while y <= largura: if x == 1 or x == altura: print("#", end = "") else: if y == 1 or y == largura: print("#", end = "") else: print(" ", end = "") y = y + 1 print() x = x + 1
largura = int(input('digite a largura: ')) altura = int(input('digite a altura: ')) x = 1 while x <= altura: y = 1 while y <= largura: if x == 1 or x == altura: print('#', end='') elif y == 1 or y == largura: print('#', end='') else: print(' ', end='') y = y + 1 print() x = x + 1
# # PySNMP MIB module CISCO-CIDS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-CIDS-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:35:57 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") ValueSizeConstraint, ConstraintsIntersection, SingleValueConstraint, ValueRangeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ConstraintsIntersection", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsUnion") ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt") CiscoIpProtocol, Unsigned64 = mibBuilder.importSymbols("CISCO-TC", "CiscoIpProtocol", "Unsigned64") InterfaceIndex, = mibBuilder.importSymbols("IF-MIB", "InterfaceIndex") SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString") ObjectGroup, NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "NotificationGroup", "ModuleCompliance") NotificationType, IpAddress, TimeTicks, Counter64, ModuleIdentity, Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, ObjectIdentity, MibIdentifier, iso, Counter32, Gauge32, Unsigned32, Bits = mibBuilder.importSymbols("SNMPv2-SMI", "NotificationType", "IpAddress", "TimeTicks", "Counter64", "ModuleIdentity", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ObjectIdentity", "MibIdentifier", "iso", "Counter32", "Gauge32", "Unsigned32", "Bits") DisplayString, DateAndTime, TruthValue, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "DateAndTime", "TruthValue", "TextualConvention") ciscoCidsMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 383)) ciscoCidsMIB.setRevisions(('2013-08-08 00:00', '2008-06-26 00:00', '2006-03-02 00:00', '2005-10-10 00:00', '2003-12-18 00:00',)) if mibBuilder.loadTexts: ciscoCidsMIB.setLastUpdated('201308090000Z') if mibBuilder.loadTexts: ciscoCidsMIB.setOrganization('Cisco Systems, Inc.') ciscoCidsMIBNotifs = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 383, 0)) ciscoCidsMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 383, 1)) ciscoCidsMIBConform = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 383, 2)) cidsGeneral = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 1)) cidsAlert = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2)) cidsError = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 3)) class CidsHealthStatusColor(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3)) namedValues = NamedValues(("green", 1), ("yellow", 2), ("red", 3)) class CidsApplicationStatus(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9)) namedValues = NamedValues(("notResponding", 1), ("notRunning", 2), ("processingTransaction", 3), ("reconfiguring", 4), ("running", 5), ("starting", 6), ("stopping", 7), ("unknown", 8), ("upgradeInprogress", 9)) cidsHealth = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4)) class CidsErrorCode(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16)) namedValues = NamedValues(("errAuthenticationTokenExpired", 1), ("errConfigCollision", 2), ("errInUse", 3), ("errInvalidDocument", 4), ("errLimitExceeded", 5), ("errNotAvailable", 6), ("errNotFound", 7), ("errNotSupported", 8), ("errPermissionDenied", 9), ("errSyslog", 10), ("errSystemError", 11), ("errTransport", 12), ("errUnacceptableValue", 13), ("errUnclassified", 14), ("errWarning", 15), ("errEngineBuildFailed", 16)) class CidsTargetValue(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5)) namedValues = NamedValues(("zeroValue", 1), ("low", 2), ("medium", 3), ("high", 4), ("missionCritical", 5)) class CidsAttackRelevance(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3)) namedValues = NamedValues(("relevant", 1), ("notRelevant", 2), ("unknown", 3)) cidsGeneralEventId = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 1, 1), Unsigned64()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsGeneralEventId.setStatus('current') cidsGeneralLocalTime = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 1, 2), DateAndTime()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsGeneralLocalTime.setStatus('current') cidsGeneralUTCTime = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 1, 3), DateAndTime()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsGeneralUTCTime.setStatus('current') cidsGeneralOriginatorHostId = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 1, 4), SnmpAdminString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsGeneralOriginatorHostId.setStatus('current') cidsGeneralOriginatorAppName = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 1, 5), SnmpAdminString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsGeneralOriginatorAppName.setStatus('current') cidsGeneralOriginatorAppId = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 1, 6), SnmpAdminString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsGeneralOriginatorAppId.setStatus('current') cidsNotificationsEnabled = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 1, 7), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: cidsNotificationsEnabled.setStatus('current') cidsAlertSeverity = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 1), SnmpAdminString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertSeverity.setStatus('current') cidsAlertAlarmTraits = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 2), Unsigned32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertAlarmTraits.setStatus('current') cidsAlertSignature = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 3), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 64))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertSignature.setStatus('current') cidsAlertSignatureSigName = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 4), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 64))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertSignatureSigName.setStatus('current') cidsAlertSignatureSigId = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 5), Unsigned32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertSignatureSigId.setStatus('current') cidsAlertSignatureSubSigId = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 6), Unsigned32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertSignatureSubSigId.setStatus('current') cidsAlertSignatureVersion = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 7), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 64))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertSignatureVersion.setStatus('current') cidsAlertSummary = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 8), Unsigned32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertSummary.setStatus('current') cidsAlertSummaryType = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 9), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertSummaryType.setStatus('current') cidsAlertSummaryFinal = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 10), TruthValue()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertSummaryFinal.setStatus('current') cidsAlertSummaryInitialAlert = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 11), Unsigned64()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertSummaryInitialAlert.setStatus('current') cidsAlertInterfaceGroup = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertInterfaceGroup.setStatus('deprecated') cidsAlertVlan = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 13), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertVlan.setStatus('current') cidsAlertVictimContext = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 14), SnmpAdminString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertVictimContext.setStatus('current') cidsAlertAttackerContext = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 15), SnmpAdminString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertAttackerContext.setStatus('current') cidsAlertAttackerAddress = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 16), SnmpAdminString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertAttackerAddress.setStatus('current') cidsAlertVictimAddress = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 17), SnmpAdminString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertVictimAddress.setStatus('current') cidsAlertIpLoggingActivated = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 18), TruthValue()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertIpLoggingActivated.setStatus('current') cidsAlertTcpResetSent = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 19), TruthValue()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertTcpResetSent.setStatus('current') cidsAlertShunRequested = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 20), TruthValue()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertShunRequested.setStatus('current') cidsAlertDetails = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 21), SnmpAdminString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertDetails.setStatus('current') cidsAlertIpLogId = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 22), SnmpAdminString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertIpLogId.setStatus('current') cidsThreatResponseStatus = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 23), SnmpAdminString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsThreatResponseStatus.setStatus('current') cidsThreatResponseSeverity = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 24), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsThreatResponseSeverity.setStatus('current') cidsAlertEventRiskRating = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 25), Unsigned32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertEventRiskRating.setStatus('current') cidsAlertIfIndex = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 26), InterfaceIndex()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertIfIndex.setStatus('current') cidsAlertProtocol = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 27), CiscoIpProtocol()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertProtocol.setStatus('current') cidsAlertDeniedAttacker = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 28), TruthValue()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertDeniedAttacker.setStatus('current') cidsAlertDeniedFlow = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 29), TruthValue()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertDeniedFlow.setStatus('current') cidsAlertDenyPacketReqNotPerf = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 30), TruthValue()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertDenyPacketReqNotPerf.setStatus('current') cidsAlertDenyFlowReqNotPerf = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 31), TruthValue()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertDenyFlowReqNotPerf.setStatus('current') cidsAlertDenyAttackerReqNotPerf = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 32), TruthValue()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertDenyAttackerReqNotPerf.setStatus('current') cidsAlertBlockConnectionReq = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 33), TruthValue()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertBlockConnectionReq.setStatus('current') cidsAlertLogAttackerPacketsAct = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 34), TruthValue()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertLogAttackerPacketsAct.setStatus('current') cidsAlertLogVictimPacketsAct = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 35), TruthValue()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertLogVictimPacketsAct.setStatus('current') cidsAlertLogPairPacketsActivated = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 36), TruthValue()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertLogPairPacketsActivated.setStatus('current') cidsAlertRateLimitRequested = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 37), TruthValue()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertRateLimitRequested.setStatus('current') cidsAlertDeniedAttackVictimPair = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 38), TruthValue()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertDeniedAttackVictimPair.setStatus('current') cidsAlertDeniedAttackSericePair = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 39), TruthValue()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertDeniedAttackSericePair.setStatus('current') cidsAlertDenyAttackVicReqNotPerf = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 40), TruthValue()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertDenyAttackVicReqNotPerf.setStatus('current') cidsAlertDenyAttackSerReqNotPerf = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 41), TruthValue()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertDenyAttackSerReqNotPerf.setStatus('current') cidsAlertThreatValueRating = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 42), Unsigned32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertThreatValueRating.setStatus('current') cidsAlertRiskRatingTargetValue = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 43), CidsTargetValue()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertRiskRatingTargetValue.setStatus('current') cidsAlertRiskRatingRelevance = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 44), CidsAttackRelevance()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertRiskRatingRelevance.setStatus('current') cidsAlertRiskRatingWatchList = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 45), Unsigned32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertRiskRatingWatchList.setStatus('current') cidsAlertDenyPacket = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 46), TruthValue()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertDenyPacket.setStatus('current') cidsAlertBlockHost = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 47), TruthValue()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertBlockHost.setStatus('current') cidsAlertTcpOneWayResetSent = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 48), TruthValue()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertTcpOneWayResetSent.setStatus('current') cidsAlertVirtualSensor = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 49), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 64))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsAlertVirtualSensor.setStatus('current') cidsErrorSeverity = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 3, 1), SnmpAdminString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsErrorSeverity.setStatus('current') cidsErrorName = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 3, 2), CidsErrorCode()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsErrorName.setStatus('current') cidsErrorMessage = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 3, 3), SnmpAdminString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsErrorMessage.setStatus('current') cidsHealthPacketLoss = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('percent').setMaxAccess("readonly") if mibBuilder.loadTexts: cidsHealthPacketLoss.setStatus('current') cidsHealthPacketDenialRate = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('percent').setMaxAccess("readonly") if mibBuilder.loadTexts: cidsHealthPacketDenialRate.setStatus('current') cidsHealthAlarmsGenerated = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cidsHealthAlarmsGenerated.setStatus('current') cidsHealthFragmentsInFRU = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 4), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cidsHealthFragmentsInFRU.setStatus('current') cidsHealthDatagramsInFRU = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 5), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cidsHealthDatagramsInFRU.setStatus('current') cidsHealthTcpEmbryonicStreams = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 6), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cidsHealthTcpEmbryonicStreams.setStatus('current') cidsHealthTCPEstablishedStreams = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 7), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cidsHealthTCPEstablishedStreams.setStatus('current') cidsHealthTcpClosingStreams = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 8), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cidsHealthTcpClosingStreams.setStatus('current') cidsHealthTcpStreams = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 9), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cidsHealthTcpStreams.setStatus('current') cidsHealthActiveNodes = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 10), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cidsHealthActiveNodes.setStatus('current') cidsHealthTcpDualIpAndPorts = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 11), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cidsHealthTcpDualIpAndPorts.setStatus('current') cidsHealthUdpDualIpAndPorts = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 12), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cidsHealthUdpDualIpAndPorts.setStatus('current') cidsHealthIpDualIp = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 13), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cidsHealthIpDualIp.setStatus('current') cidsHealthIsSensorMemoryCritical = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 14), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 10))).setMaxAccess("readonly") if mibBuilder.loadTexts: cidsHealthIsSensorMemoryCritical.setStatus('current') cidsHealthIsSensorActive = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 15), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cidsHealthIsSensorActive.setStatus('current') cidsHealthCommandAndControlPort = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 16), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cidsHealthCommandAndControlPort.setStatus('current') cidsHealthSensorStatsResetTime = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 17), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: cidsHealthSensorStatsResetTime.setStatus('current') cidsHealthSecMonAvailability = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 18), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cidsHealthSecMonAvailability.setStatus('current') cidsHealthSecMonOverallHealth = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 19), CidsHealthStatusColor()).setMaxAccess("readonly") if mibBuilder.loadTexts: cidsHealthSecMonOverallHealth.setStatus('current') cidsHealthSecMonSoftwareVersion = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 20), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: cidsHealthSecMonSoftwareVersion.setStatus('current') cidsHealthSecMonSignatureVersion = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 21), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: cidsHealthSecMonSignatureVersion.setStatus('current') cidsHealthSecMonLicenseStatus = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 22), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: cidsHealthSecMonLicenseStatus.setStatus('current') cidsHealthSecMonOverallAppColor = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 23), CidsHealthStatusColor()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsHealthSecMonOverallAppColor.setStatus('current') cidsHealthSecMonMainAppStatus = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 24), CidsApplicationStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: cidsHealthSecMonMainAppStatus.setStatus('current') cidsHealthSecMonAnalysisEngineStatus = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 25), CidsApplicationStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: cidsHealthSecMonAnalysisEngineStatus.setStatus('current') cidsHealthSecMonCollaborationAppStatus = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 26), CidsApplicationStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: cidsHealthSecMonCollaborationAppStatus.setStatus('current') cidsHealthSecMonByPassMode = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 27), TruthValue()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsHealthSecMonByPassMode.setStatus('current') cidsHealthSecMonMissedPktPctAndThresh = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 28), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: cidsHealthSecMonMissedPktPctAndThresh.setStatus('current') cidsHealthSecMonAnalysisEngMemPercent = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 29), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('percent').setMaxAccess("readonly") if mibBuilder.loadTexts: cidsHealthSecMonAnalysisEngMemPercent.setStatus('current') cidsHealthSecMonSensorLoad = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 30), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly") if mibBuilder.loadTexts: cidsHealthSecMonSensorLoad.setStatus('current') cidsHealthSecMonSensorLoadColor = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 31), CidsHealthStatusColor()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: cidsHealthSecMonSensorLoadColor.setStatus('current') cidsHealthSecMonVirtSensorStatusTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 32), ) if mibBuilder.loadTexts: cidsHealthSecMonVirtSensorStatusTable.setStatus('current') cidsHealthSecMonVirtSensorStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 32, 1), ).setIndexNames((0, "CISCO-CIDS-MIB", "cidsHealthSecMonVirtSensorName")) if mibBuilder.loadTexts: cidsHealthSecMonVirtSensorStatusEntry.setStatus('current') cidsHealthSecMonVirtSensorName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 32, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 64))) if mibBuilder.loadTexts: cidsHealthSecMonVirtSensorName.setStatus('current') cidsHealthSecMonVirtSensorStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 32, 1, 2), CidsHealthStatusColor()).setMaxAccess("readonly") if mibBuilder.loadTexts: cidsHealthSecMonVirtSensorStatus.setStatus('current') cidsHealthSecMonDataStorageTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 33), ) if mibBuilder.loadTexts: cidsHealthSecMonDataStorageTable.setStatus('current') cidsHealthSecMonDataStorageEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 33, 1), ).setIndexNames((0, "CISCO-CIDS-MIB", "cidsHealthSecMonPartitionName")) if mibBuilder.loadTexts: cidsHealthSecMonDataStorageEntry.setStatus('current') cidsHealthSecMonPartitionName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 33, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 64))) if mibBuilder.loadTexts: cidsHealthSecMonPartitionName.setStatus('current') cidsHealthSecMonTotalPartitionSpace = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 33, 1, 2), Unsigned32()).setUnits('MB').setMaxAccess("readonly") if mibBuilder.loadTexts: cidsHealthSecMonTotalPartitionSpace.setStatus('current') cidsHealthSecMonUtilizedPartitionSpace = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 33, 1, 3), Unsigned32()).setUnits('MB').setMaxAccess("readonly") if mibBuilder.loadTexts: cidsHealthSecMonUtilizedPartitionSpace.setStatus('current') ciscoCidsAlert = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 383, 0, 1)).setObjects(("CISCO-CIDS-MIB", "cidsGeneralEventId"), ("CISCO-CIDS-MIB", "cidsGeneralLocalTime"), ("CISCO-CIDS-MIB", "cidsGeneralUTCTime"), ("CISCO-CIDS-MIB", "cidsGeneralOriginatorHostId"), ("CISCO-CIDS-MIB", "cidsAlertSeverity"), ("CISCO-CIDS-MIB", "cidsAlertSignatureSigName"), ("CISCO-CIDS-MIB", "cidsAlertSignatureSigId"), ("CISCO-CIDS-MIB", "cidsAlertSignatureSubSigId"), ("CISCO-CIDS-MIB", "cidsAlertAlarmTraits"), ("CISCO-CIDS-MIB", "cidsAlertAttackerAddress"), ("CISCO-CIDS-MIB", "cidsAlertVictimAddress")) if mibBuilder.loadTexts: ciscoCidsAlert.setStatus('current') ciscoCidsError = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 383, 0, 2)).setObjects(("CISCO-CIDS-MIB", "cidsGeneralEventId"), ("CISCO-CIDS-MIB", "cidsGeneralLocalTime"), ("CISCO-CIDS-MIB", "cidsGeneralUTCTime"), ("CISCO-CIDS-MIB", "cidsGeneralOriginatorHostId"), ("CISCO-CIDS-MIB", "cidsErrorSeverity"), ("CISCO-CIDS-MIB", "cidsErrorName"), ("CISCO-CIDS-MIB", "cidsErrorMessage")) if mibBuilder.loadTexts: ciscoCidsError.setStatus('current') ciscoCidsHealthHeartBeat = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 383, 0, 3)).setObjects(("CISCO-CIDS-MIB", "cidsGeneralEventId"), ("CISCO-CIDS-MIB", "cidsGeneralOriginatorHostId"), ("CISCO-CIDS-MIB", "cidsGeneralLocalTime"), ("CISCO-CIDS-MIB", "cidsGeneralUTCTime"), ("CISCO-CIDS-MIB", "cidsHealthSecMonOverallAppColor"), ("CISCO-CIDS-MIB", "cidsHealthSecMonSensorLoadColor"), ("CISCO-CIDS-MIB", "cidsHealthSecMonOverallHealth")) if mibBuilder.loadTexts: ciscoCidsHealthHeartBeat.setStatus('current') ciscoCidsHealthMetricChange = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 383, 0, 4)).setObjects(("CISCO-CIDS-MIB", "cidsGeneralEventId"), ("CISCO-CIDS-MIB", "cidsGeneralOriginatorHostId"), ("CISCO-CIDS-MIB", "cidsGeneralLocalTime"), ("CISCO-CIDS-MIB", "cidsGeneralUTCTime"), ("CISCO-CIDS-MIB", "cidsHealthSecMonOverallAppColor"), ("CISCO-CIDS-MIB", "cidsHealthSecMonSensorLoadColor"), ("CISCO-CIDS-MIB", "cidsHealthSecMonOverallHealth")) if mibBuilder.loadTexts: ciscoCidsHealthMetricChange.setStatus('current') ciscoCidsMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 1)) ciscoCidsMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 2)) ciscoCidsMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 1, 1)).setObjects(("CISCO-CIDS-MIB", "ciscoCidsGeneralObjectGroup"), ("CISCO-CIDS-MIB", "ciscoCidsAlertObjectGroup"), ("CISCO-CIDS-MIB", "ciscoCidsErrorObjectGroup"), ("CISCO-CIDS-MIB", "ciscoCidsHealthObjectGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoCidsMIBCompliance = ciscoCidsMIBCompliance.setStatus('deprecated') ciscoCidsMIBComplianceRev1 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 1, 2)).setObjects(("CISCO-CIDS-MIB", "ciscoCidsGeneralObjectGroupRev1"), ("CISCO-CIDS-MIB", "ciscoCidsAlertObjectGroupRev1"), ("CISCO-CIDS-MIB", "ciscoCidsErrorObjectGroup"), ("CISCO-CIDS-MIB", "ciscoCidsHealthObjectGroup"), ("CISCO-CIDS-MIB", "ciscoCidsNotificationsGroup"), ("CISCO-CIDS-MIB", "ciscoCidsOptionalObjectGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoCidsMIBComplianceRev1 = ciscoCidsMIBComplianceRev1.setStatus('deprecated') ciscoCidsMIBComplianceRev2 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 1, 3)).setObjects(("CISCO-CIDS-MIB", "ciscoCidsGeneralObjectGroupRev1"), ("CISCO-CIDS-MIB", "ciscoCidsAlertObjectGroupRev1"), ("CISCO-CIDS-MIB", "ciscoCidsErrorObjectGroup"), ("CISCO-CIDS-MIB", "ciscoCidsHealthObjectGroup"), ("CISCO-CIDS-MIB", "ciscoCidsNotificationsGroup"), ("CISCO-CIDS-MIB", "ciscoCidsOptionalObjectGroupRev1")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoCidsMIBComplianceRev2 = ciscoCidsMIBComplianceRev2.setStatus('deprecated') ciscoCidsMIBComplianceRev3 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 1, 4)).setObjects(("CISCO-CIDS-MIB", "ciscoCidsGeneralObjectGroupRev1"), ("CISCO-CIDS-MIB", "ciscoCidsAlertObjectGroupRev1"), ("CISCO-CIDS-MIB", "ciscoCidsErrorObjectGroup"), ("CISCO-CIDS-MIB", "ciscoCidsHealthObjectGroup"), ("CISCO-CIDS-MIB", "ciscoCidsNotificationsGroup"), ("CISCO-CIDS-MIB", "ciscoCidsOptionalObjectGroupRev2"), ("CISCO-CIDS-MIB", "ciscoCidsOptionalObjectGroupRev1")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoCidsMIBComplianceRev3 = ciscoCidsMIBComplianceRev3.setStatus('deprecated') ciscoCidsMIBComplianceRev4 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 1, 5)).setObjects(("CISCO-CIDS-MIB", "ciscoCidsErrorObjectGroup"), ("CISCO-CIDS-MIB", "ciscoCidsGeneralObjectGroupRev1"), ("CISCO-CIDS-MIB", "ciscoCidsAlertObjectGroupRev2"), ("CISCO-CIDS-MIB", "ciscoCidsHealthObjectGroupRev1"), ("CISCO-CIDS-MIB", "ciscoCidsNotificationsGroupRev1"), ("CISCO-CIDS-MIB", "ciscoCidsHealthObjectGroup"), ("CISCO-CIDS-MIB", "ciscoCidsNotificationsGroup"), ("CISCO-CIDS-MIB", "ciscoCidsAlertObjectGroupRev1"), ("CISCO-CIDS-MIB", "ciscoCidsOptionalObjectGroupRev3"), ("CISCO-CIDS-MIB", "ciscoCidsOptionalObjectGroupRev2"), ("CISCO-CIDS-MIB", "ciscoCidsOptionalObjectGroupRev1")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoCidsMIBComplianceRev4 = ciscoCidsMIBComplianceRev4.setStatus('current') ciscoCidsGeneralObjectGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 2, 1)).setObjects(("CISCO-CIDS-MIB", "cidsGeneralEventId"), ("CISCO-CIDS-MIB", "cidsGeneralLocalTime"), ("CISCO-CIDS-MIB", "cidsGeneralUTCTime"), ("CISCO-CIDS-MIB", "cidsGeneralOriginatorHostId"), ("CISCO-CIDS-MIB", "cidsGeneralOriginatorAppName"), ("CISCO-CIDS-MIB", "cidsGeneralOriginatorAppId"), ("CISCO-CIDS-MIB", "cidsNotificationsEnabled")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoCidsGeneralObjectGroup = ciscoCidsGeneralObjectGroup.setStatus('deprecated') ciscoCidsAlertObjectGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 2, 2)).setObjects(("CISCO-CIDS-MIB", "cidsAlertSeverity"), ("CISCO-CIDS-MIB", "cidsAlertAlarmTraits"), ("CISCO-CIDS-MIB", "cidsAlertSignature"), ("CISCO-CIDS-MIB", "cidsAlertSignatureSigName"), ("CISCO-CIDS-MIB", "cidsAlertSignatureSigId"), ("CISCO-CIDS-MIB", "cidsAlertSignatureSubSigId"), ("CISCO-CIDS-MIB", "cidsAlertSignatureVersion"), ("CISCO-CIDS-MIB", "cidsAlertSummary"), ("CISCO-CIDS-MIB", "cidsAlertSummaryType"), ("CISCO-CIDS-MIB", "cidsAlertSummaryFinal"), ("CISCO-CIDS-MIB", "cidsAlertSummaryInitialAlert"), ("CISCO-CIDS-MIB", "cidsAlertInterfaceGroup"), ("CISCO-CIDS-MIB", "cidsAlertVlan"), ("CISCO-CIDS-MIB", "cidsAlertVictimContext"), ("CISCO-CIDS-MIB", "cidsAlertAttackerContext"), ("CISCO-CIDS-MIB", "cidsAlertVictimAddress"), ("CISCO-CIDS-MIB", "cidsAlertAttackerAddress"), ("CISCO-CIDS-MIB", "cidsAlertIpLoggingActivated"), ("CISCO-CIDS-MIB", "cidsAlertTcpResetSent"), ("CISCO-CIDS-MIB", "cidsAlertShunRequested"), ("CISCO-CIDS-MIB", "cidsAlertDetails"), ("CISCO-CIDS-MIB", "cidsAlertIpLogId"), ("CISCO-CIDS-MIB", "cidsThreatResponseStatus"), ("CISCO-CIDS-MIB", "cidsThreatResponseSeverity"), ("CISCO-CIDS-MIB", "cidsAlertEventRiskRating")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoCidsAlertObjectGroup = ciscoCidsAlertObjectGroup.setStatus('deprecated') ciscoCidsErrorObjectGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 2, 3)).setObjects(("CISCO-CIDS-MIB", "cidsErrorSeverity"), ("CISCO-CIDS-MIB", "cidsErrorName"), ("CISCO-CIDS-MIB", "cidsErrorMessage")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoCidsErrorObjectGroup = ciscoCidsErrorObjectGroup.setStatus('current') ciscoCidsNotificationsGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 2, 4)).setObjects(("CISCO-CIDS-MIB", "ciscoCidsAlert"), ("CISCO-CIDS-MIB", "ciscoCidsError")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoCidsNotificationsGroup = ciscoCidsNotificationsGroup.setStatus('current') ciscoCidsHealthObjectGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 2, 5)).setObjects(("CISCO-CIDS-MIB", "cidsHealthPacketLoss"), ("CISCO-CIDS-MIB", "cidsHealthPacketDenialRate"), ("CISCO-CIDS-MIB", "cidsHealthAlarmsGenerated"), ("CISCO-CIDS-MIB", "cidsHealthFragmentsInFRU"), ("CISCO-CIDS-MIB", "cidsHealthDatagramsInFRU"), ("CISCO-CIDS-MIB", "cidsHealthTcpEmbryonicStreams"), ("CISCO-CIDS-MIB", "cidsHealthTCPEstablishedStreams"), ("CISCO-CIDS-MIB", "cidsHealthTcpClosingStreams"), ("CISCO-CIDS-MIB", "cidsHealthTcpStreams"), ("CISCO-CIDS-MIB", "cidsHealthActiveNodes"), ("CISCO-CIDS-MIB", "cidsHealthTcpDualIpAndPorts"), ("CISCO-CIDS-MIB", "cidsHealthUdpDualIpAndPorts"), ("CISCO-CIDS-MIB", "cidsHealthIpDualIp"), ("CISCO-CIDS-MIB", "cidsHealthIsSensorMemoryCritical"), ("CISCO-CIDS-MIB", "cidsHealthIsSensorActive"), ("CISCO-CIDS-MIB", "cidsHealthCommandAndControlPort"), ("CISCO-CIDS-MIB", "cidsHealthSensorStatsResetTime")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoCidsHealthObjectGroup = ciscoCidsHealthObjectGroup.setStatus('current') ciscoCidsGeneralObjectGroupRev1 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 2, 6)).setObjects(("CISCO-CIDS-MIB", "cidsGeneralEventId"), ("CISCO-CIDS-MIB", "cidsGeneralLocalTime"), ("CISCO-CIDS-MIB", "cidsGeneralUTCTime"), ("CISCO-CIDS-MIB", "cidsGeneralOriginatorHostId"), ("CISCO-CIDS-MIB", "cidsNotificationsEnabled")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoCidsGeneralObjectGroupRev1 = ciscoCidsGeneralObjectGroupRev1.setStatus('current') ciscoCidsAlertObjectGroupRev1 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 2, 7)).setObjects(("CISCO-CIDS-MIB", "cidsAlertSeverity"), ("CISCO-CIDS-MIB", "cidsAlertAlarmTraits"), ("CISCO-CIDS-MIB", "cidsAlertSignatureSigName"), ("CISCO-CIDS-MIB", "cidsAlertSignatureSigId"), ("CISCO-CIDS-MIB", "cidsAlertSignatureSubSigId"), ("CISCO-CIDS-MIB", "cidsAlertVictimAddress"), ("CISCO-CIDS-MIB", "cidsAlertAttackerAddress")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoCidsAlertObjectGroupRev1 = ciscoCidsAlertObjectGroupRev1.setStatus('current') ciscoCidsOptionalObjectGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 2, 8)).setObjects(("CISCO-CIDS-MIB", "cidsGeneralOriginatorAppName"), ("CISCO-CIDS-MIB", "cidsGeneralOriginatorAppId"), ("CISCO-CIDS-MIB", "cidsAlertSignature"), ("CISCO-CIDS-MIB", "cidsAlertSignatureVersion"), ("CISCO-CIDS-MIB", "cidsAlertSummary"), ("CISCO-CIDS-MIB", "cidsAlertSummaryType"), ("CISCO-CIDS-MIB", "cidsAlertSummaryFinal"), ("CISCO-CIDS-MIB", "cidsAlertSummaryInitialAlert"), ("CISCO-CIDS-MIB", "cidsAlertInterfaceGroup"), ("CISCO-CIDS-MIB", "cidsAlertVlan"), ("CISCO-CIDS-MIB", "cidsAlertVictimContext"), ("CISCO-CIDS-MIB", "cidsAlertAttackerContext"), ("CISCO-CIDS-MIB", "cidsAlertIpLoggingActivated"), ("CISCO-CIDS-MIB", "cidsAlertTcpResetSent"), ("CISCO-CIDS-MIB", "cidsAlertShunRequested"), ("CISCO-CIDS-MIB", "cidsAlertDetails"), ("CISCO-CIDS-MIB", "cidsAlertIpLogId"), ("CISCO-CIDS-MIB", "cidsThreatResponseStatus"), ("CISCO-CIDS-MIB", "cidsThreatResponseSeverity"), ("CISCO-CIDS-MIB", "cidsAlertEventRiskRating"), ("CISCO-CIDS-MIB", "cidsAlertIfIndex"), ("CISCO-CIDS-MIB", "cidsAlertProtocol"), ("CISCO-CIDS-MIB", "cidsAlertDeniedAttacker"), ("CISCO-CIDS-MIB", "cidsAlertDeniedFlow"), ("CISCO-CIDS-MIB", "cidsAlertDenyPacketReqNotPerf"), ("CISCO-CIDS-MIB", "cidsAlertDenyFlowReqNotPerf"), ("CISCO-CIDS-MIB", "cidsAlertDenyAttackerReqNotPerf"), ("CISCO-CIDS-MIB", "cidsAlertBlockConnectionReq"), ("CISCO-CIDS-MIB", "cidsAlertLogAttackerPacketsAct"), ("CISCO-CIDS-MIB", "cidsAlertLogVictimPacketsAct"), ("CISCO-CIDS-MIB", "cidsAlertLogPairPacketsActivated"), ("CISCO-CIDS-MIB", "cidsAlertRateLimitRequested"), ("CISCO-CIDS-MIB", "cidsAlertDeniedAttackVictimPair"), ("CISCO-CIDS-MIB", "cidsAlertDeniedAttackSericePair"), ("CISCO-CIDS-MIB", "cidsAlertDenyAttackVicReqNotPerf"), ("CISCO-CIDS-MIB", "cidsAlertDenyAttackSerReqNotPerf")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoCidsOptionalObjectGroup = ciscoCidsOptionalObjectGroup.setStatus('deprecated') ciscoCidsOptionalObjectGroupRev1 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 2, 9)).setObjects(("CISCO-CIDS-MIB", "cidsGeneralOriginatorAppName"), ("CISCO-CIDS-MIB", "cidsGeneralOriginatorAppId"), ("CISCO-CIDS-MIB", "cidsAlertSignature"), ("CISCO-CIDS-MIB", "cidsAlertSignatureVersion"), ("CISCO-CIDS-MIB", "cidsAlertSummary"), ("CISCO-CIDS-MIB", "cidsAlertSummaryType"), ("CISCO-CIDS-MIB", "cidsAlertSummaryFinal"), ("CISCO-CIDS-MIB", "cidsAlertSummaryInitialAlert"), ("CISCO-CIDS-MIB", "cidsAlertInterfaceGroup"), ("CISCO-CIDS-MIB", "cidsAlertVlan"), ("CISCO-CIDS-MIB", "cidsAlertVictimContext"), ("CISCO-CIDS-MIB", "cidsAlertAttackerContext"), ("CISCO-CIDS-MIB", "cidsAlertIpLoggingActivated"), ("CISCO-CIDS-MIB", "cidsAlertTcpResetSent"), ("CISCO-CIDS-MIB", "cidsAlertShunRequested"), ("CISCO-CIDS-MIB", "cidsAlertDetails"), ("CISCO-CIDS-MIB", "cidsAlertIpLogId"), ("CISCO-CIDS-MIB", "cidsThreatResponseStatus"), ("CISCO-CIDS-MIB", "cidsThreatResponseSeverity"), ("CISCO-CIDS-MIB", "cidsAlertEventRiskRating"), ("CISCO-CIDS-MIB", "cidsAlertIfIndex"), ("CISCO-CIDS-MIB", "cidsAlertProtocol"), ("CISCO-CIDS-MIB", "cidsAlertDeniedAttacker"), ("CISCO-CIDS-MIB", "cidsAlertDeniedFlow"), ("CISCO-CIDS-MIB", "cidsAlertDenyPacketReqNotPerf"), ("CISCO-CIDS-MIB", "cidsAlertDenyFlowReqNotPerf"), ("CISCO-CIDS-MIB", "cidsAlertDenyAttackerReqNotPerf"), ("CISCO-CIDS-MIB", "cidsAlertBlockConnectionReq"), ("CISCO-CIDS-MIB", "cidsAlertLogAttackerPacketsAct"), ("CISCO-CIDS-MIB", "cidsAlertLogVictimPacketsAct"), ("CISCO-CIDS-MIB", "cidsAlertLogPairPacketsActivated"), ("CISCO-CIDS-MIB", "cidsAlertRateLimitRequested"), ("CISCO-CIDS-MIB", "cidsAlertDeniedAttackVictimPair"), ("CISCO-CIDS-MIB", "cidsAlertDeniedAttackSericePair"), ("CISCO-CIDS-MIB", "cidsAlertDenyAttackVicReqNotPerf"), ("CISCO-CIDS-MIB", "cidsAlertDenyAttackSerReqNotPerf"), ("CISCO-CIDS-MIB", "cidsAlertThreatValueRating"), ("CISCO-CIDS-MIB", "cidsAlertRiskRatingTargetValue"), ("CISCO-CIDS-MIB", "cidsAlertRiskRatingRelevance"), ("CISCO-CIDS-MIB", "cidsAlertRiskRatingWatchList")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoCidsOptionalObjectGroupRev1 = ciscoCidsOptionalObjectGroupRev1.setStatus('current') ciscoCidsOptionalObjectGroupRev2 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 2, 10)).setObjects(("CISCO-CIDS-MIB", "cidsAlertDenyPacket"), ("CISCO-CIDS-MIB", "cidsAlertBlockHost"), ("CISCO-CIDS-MIB", "cidsAlertTcpOneWayResetSent")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoCidsOptionalObjectGroupRev2 = ciscoCidsOptionalObjectGroupRev2.setStatus('current') ciscoCidsAlertObjectGroupRev2 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 2, 11)).setObjects(("CISCO-CIDS-MIB", "cidsAlertSignature"), ("CISCO-CIDS-MIB", "cidsAlertSignatureVersion"), ("CISCO-CIDS-MIB", "cidsAlertSummary"), ("CISCO-CIDS-MIB", "cidsAlertSummaryType"), ("CISCO-CIDS-MIB", "cidsAlertSummaryFinal"), ("CISCO-CIDS-MIB", "cidsAlertSummaryInitialAlert"), ("CISCO-CIDS-MIB", "cidsAlertVlan"), ("CISCO-CIDS-MIB", "cidsAlertVictimContext"), ("CISCO-CIDS-MIB", "cidsAlertAttackerContext"), ("CISCO-CIDS-MIB", "cidsAlertIpLoggingActivated"), ("CISCO-CIDS-MIB", "cidsAlertTcpResetSent"), ("CISCO-CIDS-MIB", "cidsAlertShunRequested"), ("CISCO-CIDS-MIB", "cidsAlertDetails"), ("CISCO-CIDS-MIB", "cidsAlertIpLogId"), ("CISCO-CIDS-MIB", "cidsThreatResponseStatus"), ("CISCO-CIDS-MIB", "cidsThreatResponseSeverity"), ("CISCO-CIDS-MIB", "cidsAlertEventRiskRating")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoCidsAlertObjectGroupRev2 = ciscoCidsAlertObjectGroupRev2.setStatus('current') ciscoCidsHealthObjectGroupRev1 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 2, 12)).setObjects(("CISCO-CIDS-MIB", "cidsHealthSecMonAvailability"), ("CISCO-CIDS-MIB", "cidsHealthSecMonOverallHealth"), ("CISCO-CIDS-MIB", "cidsHealthSecMonSoftwareVersion"), ("CISCO-CIDS-MIB", "cidsHealthSecMonSignatureVersion"), ("CISCO-CIDS-MIB", "cidsHealthSecMonLicenseStatus"), ("CISCO-CIDS-MIB", "cidsHealthSecMonMainAppStatus"), ("CISCO-CIDS-MIB", "cidsHealthSecMonAnalysisEngineStatus"), ("CISCO-CIDS-MIB", "cidsHealthSecMonByPassMode"), ("CISCO-CIDS-MIB", "cidsHealthSecMonMissedPktPctAndThresh"), ("CISCO-CIDS-MIB", "cidsHealthSecMonAnalysisEngMemPercent"), ("CISCO-CIDS-MIB", "cidsHealthSecMonSensorLoad"), ("CISCO-CIDS-MIB", "cidsHealthSecMonVirtSensorStatus"), ("CISCO-CIDS-MIB", "cidsHealthSecMonCollaborationAppStatus"), ("CISCO-CIDS-MIB", "cidsHealthSecMonTotalPartitionSpace"), ("CISCO-CIDS-MIB", "cidsHealthSecMonUtilizedPartitionSpace"), ("CISCO-CIDS-MIB", "cidsHealthSecMonOverallAppColor"), ("CISCO-CIDS-MIB", "cidsHealthSecMonSensorLoadColor")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoCidsHealthObjectGroupRev1 = ciscoCidsHealthObjectGroupRev1.setStatus('current') ciscoCidsOptionalObjectGroupRev3 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 2, 13)).setObjects(("CISCO-CIDS-MIB", "cidsAlertVirtualSensor")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoCidsOptionalObjectGroupRev3 = ciscoCidsOptionalObjectGroupRev3.setStatus('current') ciscoCidsNotificationsGroupRev1 = NotificationGroup((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 2, 14)).setObjects(("CISCO-CIDS-MIB", "ciscoCidsHealthHeartBeat"), ("CISCO-CIDS-MIB", "ciscoCidsHealthMetricChange")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoCidsNotificationsGroupRev1 = ciscoCidsNotificationsGroupRev1.setStatus('current') mibBuilder.exportSymbols("CISCO-CIDS-MIB", CidsErrorCode=CidsErrorCode, cidsAlertDeniedAttacker=cidsAlertDeniedAttacker, cidsAlertThreatValueRating=cidsAlertThreatValueRating, cidsGeneralOriginatorAppId=cidsGeneralOriginatorAppId, cidsGeneralOriginatorAppName=cidsGeneralOriginatorAppName, cidsAlertDenyPacketReqNotPerf=cidsAlertDenyPacketReqNotPerf, cidsAlertAttackerContext=cidsAlertAttackerContext, cidsAlertSeverity=cidsAlertSeverity, cidsAlertLogPairPacketsActivated=cidsAlertLogPairPacketsActivated, cidsGeneral=cidsGeneral, ciscoCidsOptionalObjectGroupRev1=ciscoCidsOptionalObjectGroupRev1, cidsAlertIfIndex=cidsAlertIfIndex, PYSNMP_MODULE_ID=ciscoCidsMIB, cidsAlertEventRiskRating=cidsAlertEventRiskRating, cidsHealthSecMonCollaborationAppStatus=cidsHealthSecMonCollaborationAppStatus, ciscoCidsOptionalObjectGroup=ciscoCidsOptionalObjectGroup, cidsAlertVlan=cidsAlertVlan, cidsHealthSecMonSoftwareVersion=cidsHealthSecMonSoftwareVersion, cidsAlertDeniedAttackSericePair=cidsAlertDeniedAttackSericePair, cidsAlertBlockHost=cidsAlertBlockHost, ciscoCidsError=ciscoCidsError, ciscoCidsMIBCompliance=ciscoCidsMIBCompliance, CidsHealthStatusColor=CidsHealthStatusColor, ciscoCidsAlert=ciscoCidsAlert, cidsHealthSecMonMissedPktPctAndThresh=cidsHealthSecMonMissedPktPctAndThresh, cidsHealthSecMonDataStorageTable=cidsHealthSecMonDataStorageTable, cidsHealthSecMonOverallAppColor=cidsHealthSecMonOverallAppColor, ciscoCidsMIBComplianceRev4=ciscoCidsMIBComplianceRev4, cidsAlertTcpResetSent=cidsAlertTcpResetSent, CidsApplicationStatus=CidsApplicationStatus, ciscoCidsNotificationsGroupRev1=ciscoCidsNotificationsGroupRev1, cidsHealthCommandAndControlPort=cidsHealthCommandAndControlPort, cidsHealthSecMonUtilizedPartitionSpace=cidsHealthSecMonUtilizedPartitionSpace, cidsErrorName=cidsErrorName, cidsHealthSecMonVirtSensorStatusEntry=cidsHealthSecMonVirtSensorStatusEntry, cidsAlertRateLimitRequested=cidsAlertRateLimitRequested, cidsAlertDeniedFlow=cidsAlertDeniedFlow, cidsThreatResponseStatus=cidsThreatResponseStatus, ciscoCidsMIBComplianceRev1=ciscoCidsMIBComplianceRev1, cidsAlertDenyAttackerReqNotPerf=cidsAlertDenyAttackerReqNotPerf, ciscoCidsGeneralObjectGroupRev1=ciscoCidsGeneralObjectGroupRev1, cidsAlertLogAttackerPacketsAct=cidsAlertLogAttackerPacketsAct, cidsNotificationsEnabled=cidsNotificationsEnabled, cidsAlertDenyFlowReqNotPerf=cidsAlertDenyFlowReqNotPerf, cidsAlertVictimContext=cidsAlertVictimContext, cidsGeneralEventId=cidsGeneralEventId, cidsAlertDenyAttackSerReqNotPerf=cidsAlertDenyAttackSerReqNotPerf, ciscoCidsHealthHeartBeat=ciscoCidsHealthHeartBeat, cidsAlertProtocol=cidsAlertProtocol, ciscoCidsHealthObjectGroup=ciscoCidsHealthObjectGroup, cidsThreatResponseSeverity=cidsThreatResponseSeverity, cidsAlertRiskRatingTargetValue=cidsAlertRiskRatingTargetValue, cidsAlertSignature=cidsAlertSignature, cidsGeneralLocalTime=cidsGeneralLocalTime, cidsHealthAlarmsGenerated=cidsHealthAlarmsGenerated, cidsHealthSecMonVirtSensorStatus=cidsHealthSecMonVirtSensorStatus, cidsAlertSignatureSigId=cidsAlertSignatureSigId, ciscoCidsMIB=ciscoCidsMIB, ciscoCidsAlertObjectGroup=ciscoCidsAlertObjectGroup, cidsAlertDenyPacket=cidsAlertDenyPacket, cidsAlertDetails=cidsAlertDetails, cidsAlertLogVictimPacketsAct=cidsAlertLogVictimPacketsAct, cidsError=cidsError, cidsGeneralUTCTime=cidsGeneralUTCTime, ciscoCidsMIBNotifs=ciscoCidsMIBNotifs, ciscoCidsHealthObjectGroupRev1=ciscoCidsHealthObjectGroupRev1, cidsAlertInterfaceGroup=cidsAlertInterfaceGroup, cidsHealthSecMonDataStorageEntry=cidsHealthSecMonDataStorageEntry, ciscoCidsOptionalObjectGroupRev2=ciscoCidsOptionalObjectGroupRev2, cidsHealthFragmentsInFRU=cidsHealthFragmentsInFRU, cidsHealthUdpDualIpAndPorts=cidsHealthUdpDualIpAndPorts, ciscoCidsAlertObjectGroupRev2=ciscoCidsAlertObjectGroupRev2, cidsAlertVictimAddress=cidsAlertVictimAddress, ciscoCidsGeneralObjectGroup=ciscoCidsGeneralObjectGroup, cidsAlertSignatureSigName=cidsAlertSignatureSigName, cidsHealthPacketLoss=cidsHealthPacketLoss, cidsAlertBlockConnectionReq=cidsAlertBlockConnectionReq, cidsAlertIpLogId=cidsAlertIpLogId, cidsGeneralOriginatorHostId=cidsGeneralOriginatorHostId, ciscoCidsErrorObjectGroup=ciscoCidsErrorObjectGroup, cidsHealthIsSensorActive=cidsHealthIsSensorActive, cidsAlertSignatureSubSigId=cidsAlertSignatureSubSigId, cidsHealthPacketDenialRate=cidsHealthPacketDenialRate, cidsHealthIsSensorMemoryCritical=cidsHealthIsSensorMemoryCritical, CidsAttackRelevance=CidsAttackRelevance, cidsHealthSecMonTotalPartitionSpace=cidsHealthSecMonTotalPartitionSpace, cidsHealthSensorStatsResetTime=cidsHealthSensorStatsResetTime, ciscoCidsMIBGroups=ciscoCidsMIBGroups, ciscoCidsMIBComplianceRev3=ciscoCidsMIBComplianceRev3, cidsHealth=cidsHealth, cidsHealthIpDualIp=cidsHealthIpDualIp, cidsHealthSecMonSensorLoadColor=cidsHealthSecMonSensorLoadColor, ciscoCidsHealthMetricChange=ciscoCidsHealthMetricChange, ciscoCidsMIBCompliances=ciscoCidsMIBCompliances, ciscoCidsMIBComplianceRev2=ciscoCidsMIBComplianceRev2, cidsAlertSummaryFinal=cidsAlertSummaryFinal, cidsAlertSummaryInitialAlert=cidsAlertSummaryInitialAlert, cidsHealthTcpEmbryonicStreams=cidsHealthTcpEmbryonicStreams, cidsAlertTcpOneWayResetSent=cidsAlertTcpOneWayResetSent, cidsHealthActiveNodes=cidsHealthActiveNodes, cidsHealthSecMonAvailability=cidsHealthSecMonAvailability, cidsAlertDeniedAttackVictimPair=cidsAlertDeniedAttackVictimPair, cidsHealthSecMonLicenseStatus=cidsHealthSecMonLicenseStatus, cidsHealthSecMonSensorLoad=cidsHealthSecMonSensorLoad, cidsErrorMessage=cidsErrorMessage, cidsHealthSecMonOverallHealth=cidsHealthSecMonOverallHealth, cidsAlertSummary=cidsAlertSummary, ciscoCidsMIBObjects=ciscoCidsMIBObjects, cidsAlertVirtualSensor=cidsAlertVirtualSensor, cidsErrorSeverity=cidsErrorSeverity, CidsTargetValue=CidsTargetValue, cidsHealthSecMonMainAppStatus=cidsHealthSecMonMainAppStatus, cidsAlertAlarmTraits=cidsAlertAlarmTraits, cidsHealthDatagramsInFRU=cidsHealthDatagramsInFRU, cidsHealthSecMonPartitionName=cidsHealthSecMonPartitionName, cidsAlertShunRequested=cidsAlertShunRequested, cidsHealthSecMonAnalysisEngMemPercent=cidsHealthSecMonAnalysisEngMemPercent, cidsHealthSecMonVirtSensorStatusTable=cidsHealthSecMonVirtSensorStatusTable, cidsHealthTcpClosingStreams=cidsHealthTcpClosingStreams, cidsAlertAttackerAddress=cidsAlertAttackerAddress, cidsHealthSecMonByPassMode=cidsHealthSecMonByPassMode, cidsHealthTCPEstablishedStreams=cidsHealthTCPEstablishedStreams, cidsHealthTcpStreams=cidsHealthTcpStreams, ciscoCidsAlertObjectGroupRev1=ciscoCidsAlertObjectGroupRev1, cidsAlertRiskRatingWatchList=cidsAlertRiskRatingWatchList, cidsHealthTcpDualIpAndPorts=cidsHealthTcpDualIpAndPorts, ciscoCidsMIBConform=ciscoCidsMIBConform, cidsAlertDenyAttackVicReqNotPerf=cidsAlertDenyAttackVicReqNotPerf, ciscoCidsOptionalObjectGroupRev3=ciscoCidsOptionalObjectGroupRev3, cidsHealthSecMonVirtSensorName=cidsHealthSecMonVirtSensorName, cidsAlertRiskRatingRelevance=cidsAlertRiskRatingRelevance, ciscoCidsNotificationsGroup=ciscoCidsNotificationsGroup, cidsAlertSummaryType=cidsAlertSummaryType, cidsHealthSecMonSignatureVersion=cidsHealthSecMonSignatureVersion, cidsHealthSecMonAnalysisEngineStatus=cidsHealthSecMonAnalysisEngineStatus, cidsAlert=cidsAlert, cidsAlertSignatureVersion=cidsAlertSignatureVersion, cidsAlertIpLoggingActivated=cidsAlertIpLoggingActivated)
(octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, constraints_intersection, single_value_constraint, value_range_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ConstraintsIntersection', 'SingleValueConstraint', 'ValueRangeConstraint', 'ConstraintsUnion') (cisco_mgmt,) = mibBuilder.importSymbols('CISCO-SMI', 'ciscoMgmt') (cisco_ip_protocol, unsigned64) = mibBuilder.importSymbols('CISCO-TC', 'CiscoIpProtocol', 'Unsigned64') (interface_index,) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndex') (snmp_admin_string,) = mibBuilder.importSymbols('SNMP-FRAMEWORK-MIB', 'SnmpAdminString') (object_group, notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'ObjectGroup', 'NotificationGroup', 'ModuleCompliance') (notification_type, ip_address, time_ticks, counter64, module_identity, integer32, mib_scalar, mib_table, mib_table_row, mib_table_column, object_identity, mib_identifier, iso, counter32, gauge32, unsigned32, bits) = mibBuilder.importSymbols('SNMPv2-SMI', 'NotificationType', 'IpAddress', 'TimeTicks', 'Counter64', 'ModuleIdentity', 'Integer32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ObjectIdentity', 'MibIdentifier', 'iso', 'Counter32', 'Gauge32', 'Unsigned32', 'Bits') (display_string, date_and_time, truth_value, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'DateAndTime', 'TruthValue', 'TextualConvention') cisco_cids_mib = module_identity((1, 3, 6, 1, 4, 1, 9, 9, 383)) ciscoCidsMIB.setRevisions(('2013-08-08 00:00', '2008-06-26 00:00', '2006-03-02 00:00', '2005-10-10 00:00', '2003-12-18 00:00')) if mibBuilder.loadTexts: ciscoCidsMIB.setLastUpdated('201308090000Z') if mibBuilder.loadTexts: ciscoCidsMIB.setOrganization('Cisco Systems, Inc.') cisco_cids_mib_notifs = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 383, 0)) cisco_cids_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 383, 1)) cisco_cids_mib_conform = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 383, 2)) cids_general = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 1)) cids_alert = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2)) cids_error = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 3)) class Cidshealthstatuscolor(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3)) named_values = named_values(('green', 1), ('yellow', 2), ('red', 3)) class Cidsapplicationstatus(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9)) named_values = named_values(('notResponding', 1), ('notRunning', 2), ('processingTransaction', 3), ('reconfiguring', 4), ('running', 5), ('starting', 6), ('stopping', 7), ('unknown', 8), ('upgradeInprogress', 9)) cids_health = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4)) class Cidserrorcode(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16)) named_values = named_values(('errAuthenticationTokenExpired', 1), ('errConfigCollision', 2), ('errInUse', 3), ('errInvalidDocument', 4), ('errLimitExceeded', 5), ('errNotAvailable', 6), ('errNotFound', 7), ('errNotSupported', 8), ('errPermissionDenied', 9), ('errSyslog', 10), ('errSystemError', 11), ('errTransport', 12), ('errUnacceptableValue', 13), ('errUnclassified', 14), ('errWarning', 15), ('errEngineBuildFailed', 16)) class Cidstargetvalue(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5)) named_values = named_values(('zeroValue', 1), ('low', 2), ('medium', 3), ('high', 4), ('missionCritical', 5)) class Cidsattackrelevance(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3)) named_values = named_values(('relevant', 1), ('notRelevant', 2), ('unknown', 3)) cids_general_event_id = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 1, 1), unsigned64()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsGeneralEventId.setStatus('current') cids_general_local_time = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 1, 2), date_and_time()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsGeneralLocalTime.setStatus('current') cids_general_utc_time = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 1, 3), date_and_time()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsGeneralUTCTime.setStatus('current') cids_general_originator_host_id = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 1, 4), snmp_admin_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsGeneralOriginatorHostId.setStatus('current') cids_general_originator_app_name = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 1, 5), snmp_admin_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsGeneralOriginatorAppName.setStatus('current') cids_general_originator_app_id = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 1, 6), snmp_admin_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsGeneralOriginatorAppId.setStatus('current') cids_notifications_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 1, 7), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: cidsNotificationsEnabled.setStatus('current') cids_alert_severity = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 1), snmp_admin_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertSeverity.setStatus('current') cids_alert_alarm_traits = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 2), unsigned32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertAlarmTraits.setStatus('current') cids_alert_signature = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 3), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(1, 64))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertSignature.setStatus('current') cids_alert_signature_sig_name = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 4), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(1, 64))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertSignatureSigName.setStatus('current') cids_alert_signature_sig_id = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 5), unsigned32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertSignatureSigId.setStatus('current') cids_alert_signature_sub_sig_id = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 6), unsigned32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertSignatureSubSigId.setStatus('current') cids_alert_signature_version = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 7), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(1, 64))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertSignatureVersion.setStatus('current') cids_alert_summary = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 8), unsigned32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertSummary.setStatus('current') cids_alert_summary_type = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 9), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertSummaryType.setStatus('current') cids_alert_summary_final = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 10), truth_value()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertSummaryFinal.setStatus('current') cids_alert_summary_initial_alert = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 11), unsigned64()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertSummaryInitialAlert.setStatus('current') cids_alert_interface_group = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 12), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertInterfaceGroup.setStatus('deprecated') cids_alert_vlan = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 13), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertVlan.setStatus('current') cids_alert_victim_context = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 14), snmp_admin_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertVictimContext.setStatus('current') cids_alert_attacker_context = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 15), snmp_admin_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertAttackerContext.setStatus('current') cids_alert_attacker_address = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 16), snmp_admin_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertAttackerAddress.setStatus('current') cids_alert_victim_address = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 17), snmp_admin_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertVictimAddress.setStatus('current') cids_alert_ip_logging_activated = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 18), truth_value()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertIpLoggingActivated.setStatus('current') cids_alert_tcp_reset_sent = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 19), truth_value()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertTcpResetSent.setStatus('current') cids_alert_shun_requested = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 20), truth_value()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertShunRequested.setStatus('current') cids_alert_details = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 21), snmp_admin_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertDetails.setStatus('current') cids_alert_ip_log_id = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 22), snmp_admin_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertIpLogId.setStatus('current') cids_threat_response_status = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 23), snmp_admin_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsThreatResponseStatus.setStatus('current') cids_threat_response_severity = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 24), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsThreatResponseSeverity.setStatus('current') cids_alert_event_risk_rating = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 25), unsigned32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertEventRiskRating.setStatus('current') cids_alert_if_index = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 26), interface_index()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertIfIndex.setStatus('current') cids_alert_protocol = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 27), cisco_ip_protocol()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertProtocol.setStatus('current') cids_alert_denied_attacker = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 28), truth_value()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertDeniedAttacker.setStatus('current') cids_alert_denied_flow = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 29), truth_value()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertDeniedFlow.setStatus('current') cids_alert_deny_packet_req_not_perf = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 30), truth_value()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertDenyPacketReqNotPerf.setStatus('current') cids_alert_deny_flow_req_not_perf = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 31), truth_value()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertDenyFlowReqNotPerf.setStatus('current') cids_alert_deny_attacker_req_not_perf = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 32), truth_value()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertDenyAttackerReqNotPerf.setStatus('current') cids_alert_block_connection_req = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 33), truth_value()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertBlockConnectionReq.setStatus('current') cids_alert_log_attacker_packets_act = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 34), truth_value()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertLogAttackerPacketsAct.setStatus('current') cids_alert_log_victim_packets_act = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 35), truth_value()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertLogVictimPacketsAct.setStatus('current') cids_alert_log_pair_packets_activated = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 36), truth_value()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertLogPairPacketsActivated.setStatus('current') cids_alert_rate_limit_requested = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 37), truth_value()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertRateLimitRequested.setStatus('current') cids_alert_denied_attack_victim_pair = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 38), truth_value()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertDeniedAttackVictimPair.setStatus('current') cids_alert_denied_attack_serice_pair = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 39), truth_value()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertDeniedAttackSericePair.setStatus('current') cids_alert_deny_attack_vic_req_not_perf = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 40), truth_value()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertDenyAttackVicReqNotPerf.setStatus('current') cids_alert_deny_attack_ser_req_not_perf = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 41), truth_value()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertDenyAttackSerReqNotPerf.setStatus('current') cids_alert_threat_value_rating = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 42), unsigned32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertThreatValueRating.setStatus('current') cids_alert_risk_rating_target_value = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 43), cids_target_value()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertRiskRatingTargetValue.setStatus('current') cids_alert_risk_rating_relevance = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 44), cids_attack_relevance()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertRiskRatingRelevance.setStatus('current') cids_alert_risk_rating_watch_list = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 45), unsigned32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertRiskRatingWatchList.setStatus('current') cids_alert_deny_packet = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 46), truth_value()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertDenyPacket.setStatus('current') cids_alert_block_host = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 47), truth_value()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertBlockHost.setStatus('current') cids_alert_tcp_one_way_reset_sent = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 48), truth_value()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertTcpOneWayResetSent.setStatus('current') cids_alert_virtual_sensor = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 2, 49), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(1, 64))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsAlertVirtualSensor.setStatus('current') cids_error_severity = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 3, 1), snmp_admin_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsErrorSeverity.setStatus('current') cids_error_name = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 3, 2), cids_error_code()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsErrorName.setStatus('current') cids_error_message = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 3, 3), snmp_admin_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsErrorMessage.setStatus('current') cids_health_packet_loss = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setUnits('percent').setMaxAccess('readonly') if mibBuilder.loadTexts: cidsHealthPacketLoss.setStatus('current') cids_health_packet_denial_rate = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setUnits('percent').setMaxAccess('readonly') if mibBuilder.loadTexts: cidsHealthPacketDenialRate.setStatus('current') cids_health_alarms_generated = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cidsHealthAlarmsGenerated.setStatus('current') cids_health_fragments_in_fru = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 4), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cidsHealthFragmentsInFRU.setStatus('current') cids_health_datagrams_in_fru = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 5), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cidsHealthDatagramsInFRU.setStatus('current') cids_health_tcp_embryonic_streams = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 6), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cidsHealthTcpEmbryonicStreams.setStatus('current') cids_health_tcp_established_streams = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 7), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cidsHealthTCPEstablishedStreams.setStatus('current') cids_health_tcp_closing_streams = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 8), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cidsHealthTcpClosingStreams.setStatus('current') cids_health_tcp_streams = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 9), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cidsHealthTcpStreams.setStatus('current') cids_health_active_nodes = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 10), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cidsHealthActiveNodes.setStatus('current') cids_health_tcp_dual_ip_and_ports = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 11), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cidsHealthTcpDualIpAndPorts.setStatus('current') cids_health_udp_dual_ip_and_ports = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 12), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cidsHealthUdpDualIpAndPorts.setStatus('current') cids_health_ip_dual_ip = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 13), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cidsHealthIpDualIp.setStatus('current') cids_health_is_sensor_memory_critical = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 14), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 10))).setMaxAccess('readonly') if mibBuilder.loadTexts: cidsHealthIsSensorMemoryCritical.setStatus('current') cids_health_is_sensor_active = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 15), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: cidsHealthIsSensorActive.setStatus('current') cids_health_command_and_control_port = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 16), snmp_admin_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: cidsHealthCommandAndControlPort.setStatus('current') cids_health_sensor_stats_reset_time = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 17), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: cidsHealthSensorStatsResetTime.setStatus('current') cids_health_sec_mon_availability = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 18), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: cidsHealthSecMonAvailability.setStatus('current') cids_health_sec_mon_overall_health = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 19), cids_health_status_color()).setMaxAccess('readonly') if mibBuilder.loadTexts: cidsHealthSecMonOverallHealth.setStatus('current') cids_health_sec_mon_software_version = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 20), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readonly') if mibBuilder.loadTexts: cidsHealthSecMonSoftwareVersion.setStatus('current') cids_health_sec_mon_signature_version = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 21), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: cidsHealthSecMonSignatureVersion.setStatus('current') cids_health_sec_mon_license_status = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 22), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: cidsHealthSecMonLicenseStatus.setStatus('current') cids_health_sec_mon_overall_app_color = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 23), cids_health_status_color()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsHealthSecMonOverallAppColor.setStatus('current') cids_health_sec_mon_main_app_status = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 24), cids_application_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: cidsHealthSecMonMainAppStatus.setStatus('current') cids_health_sec_mon_analysis_engine_status = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 25), cids_application_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: cidsHealthSecMonAnalysisEngineStatus.setStatus('current') cids_health_sec_mon_collaboration_app_status = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 26), cids_application_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: cidsHealthSecMonCollaborationAppStatus.setStatus('current') cids_health_sec_mon_by_pass_mode = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 27), truth_value()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsHealthSecMonByPassMode.setStatus('current') cids_health_sec_mon_missed_pkt_pct_and_thresh = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 28), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: cidsHealthSecMonMissedPktPctAndThresh.setStatus('current') cids_health_sec_mon_analysis_eng_mem_percent = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 29), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setUnits('percent').setMaxAccess('readonly') if mibBuilder.loadTexts: cidsHealthSecMonAnalysisEngMemPercent.setStatus('current') cids_health_sec_mon_sensor_load = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 30), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readonly') if mibBuilder.loadTexts: cidsHealthSecMonSensorLoad.setStatus('current') cids_health_sec_mon_sensor_load_color = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 31), cids_health_status_color()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: cidsHealthSecMonSensorLoadColor.setStatus('current') cids_health_sec_mon_virt_sensor_status_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 32)) if mibBuilder.loadTexts: cidsHealthSecMonVirtSensorStatusTable.setStatus('current') cids_health_sec_mon_virt_sensor_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 32, 1)).setIndexNames((0, 'CISCO-CIDS-MIB', 'cidsHealthSecMonVirtSensorName')) if mibBuilder.loadTexts: cidsHealthSecMonVirtSensorStatusEntry.setStatus('current') cids_health_sec_mon_virt_sensor_name = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 32, 1, 1), display_string().subtype(subtypeSpec=value_size_constraint(1, 64))) if mibBuilder.loadTexts: cidsHealthSecMonVirtSensorName.setStatus('current') cids_health_sec_mon_virt_sensor_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 32, 1, 2), cids_health_status_color()).setMaxAccess('readonly') if mibBuilder.loadTexts: cidsHealthSecMonVirtSensorStatus.setStatus('current') cids_health_sec_mon_data_storage_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 33)) if mibBuilder.loadTexts: cidsHealthSecMonDataStorageTable.setStatus('current') cids_health_sec_mon_data_storage_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 33, 1)).setIndexNames((0, 'CISCO-CIDS-MIB', 'cidsHealthSecMonPartitionName')) if mibBuilder.loadTexts: cidsHealthSecMonDataStorageEntry.setStatus('current') cids_health_sec_mon_partition_name = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 33, 1, 1), display_string().subtype(subtypeSpec=value_size_constraint(1, 64))) if mibBuilder.loadTexts: cidsHealthSecMonPartitionName.setStatus('current') cids_health_sec_mon_total_partition_space = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 33, 1, 2), unsigned32()).setUnits('MB').setMaxAccess('readonly') if mibBuilder.loadTexts: cidsHealthSecMonTotalPartitionSpace.setStatus('current') cids_health_sec_mon_utilized_partition_space = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 383, 1, 4, 33, 1, 3), unsigned32()).setUnits('MB').setMaxAccess('readonly') if mibBuilder.loadTexts: cidsHealthSecMonUtilizedPartitionSpace.setStatus('current') cisco_cids_alert = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 383, 0, 1)).setObjects(('CISCO-CIDS-MIB', 'cidsGeneralEventId'), ('CISCO-CIDS-MIB', 'cidsGeneralLocalTime'), ('CISCO-CIDS-MIB', 'cidsGeneralUTCTime'), ('CISCO-CIDS-MIB', 'cidsGeneralOriginatorHostId'), ('CISCO-CIDS-MIB', 'cidsAlertSeverity'), ('CISCO-CIDS-MIB', 'cidsAlertSignatureSigName'), ('CISCO-CIDS-MIB', 'cidsAlertSignatureSigId'), ('CISCO-CIDS-MIB', 'cidsAlertSignatureSubSigId'), ('CISCO-CIDS-MIB', 'cidsAlertAlarmTraits'), ('CISCO-CIDS-MIB', 'cidsAlertAttackerAddress'), ('CISCO-CIDS-MIB', 'cidsAlertVictimAddress')) if mibBuilder.loadTexts: ciscoCidsAlert.setStatus('current') cisco_cids_error = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 383, 0, 2)).setObjects(('CISCO-CIDS-MIB', 'cidsGeneralEventId'), ('CISCO-CIDS-MIB', 'cidsGeneralLocalTime'), ('CISCO-CIDS-MIB', 'cidsGeneralUTCTime'), ('CISCO-CIDS-MIB', 'cidsGeneralOriginatorHostId'), ('CISCO-CIDS-MIB', 'cidsErrorSeverity'), ('CISCO-CIDS-MIB', 'cidsErrorName'), ('CISCO-CIDS-MIB', 'cidsErrorMessage')) if mibBuilder.loadTexts: ciscoCidsError.setStatus('current') cisco_cids_health_heart_beat = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 383, 0, 3)).setObjects(('CISCO-CIDS-MIB', 'cidsGeneralEventId'), ('CISCO-CIDS-MIB', 'cidsGeneralOriginatorHostId'), ('CISCO-CIDS-MIB', 'cidsGeneralLocalTime'), ('CISCO-CIDS-MIB', 'cidsGeneralUTCTime'), ('CISCO-CIDS-MIB', 'cidsHealthSecMonOverallAppColor'), ('CISCO-CIDS-MIB', 'cidsHealthSecMonSensorLoadColor'), ('CISCO-CIDS-MIB', 'cidsHealthSecMonOverallHealth')) if mibBuilder.loadTexts: ciscoCidsHealthHeartBeat.setStatus('current') cisco_cids_health_metric_change = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 383, 0, 4)).setObjects(('CISCO-CIDS-MIB', 'cidsGeneralEventId'), ('CISCO-CIDS-MIB', 'cidsGeneralOriginatorHostId'), ('CISCO-CIDS-MIB', 'cidsGeneralLocalTime'), ('CISCO-CIDS-MIB', 'cidsGeneralUTCTime'), ('CISCO-CIDS-MIB', 'cidsHealthSecMonOverallAppColor'), ('CISCO-CIDS-MIB', 'cidsHealthSecMonSensorLoadColor'), ('CISCO-CIDS-MIB', 'cidsHealthSecMonOverallHealth')) if mibBuilder.loadTexts: ciscoCidsHealthMetricChange.setStatus('current') cisco_cids_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 1)) cisco_cids_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 2)) cisco_cids_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 1, 1)).setObjects(('CISCO-CIDS-MIB', 'ciscoCidsGeneralObjectGroup'), ('CISCO-CIDS-MIB', 'ciscoCidsAlertObjectGroup'), ('CISCO-CIDS-MIB', 'ciscoCidsErrorObjectGroup'), ('CISCO-CIDS-MIB', 'ciscoCidsHealthObjectGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_cids_mib_compliance = ciscoCidsMIBCompliance.setStatus('deprecated') cisco_cids_mib_compliance_rev1 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 1, 2)).setObjects(('CISCO-CIDS-MIB', 'ciscoCidsGeneralObjectGroupRev1'), ('CISCO-CIDS-MIB', 'ciscoCidsAlertObjectGroupRev1'), ('CISCO-CIDS-MIB', 'ciscoCidsErrorObjectGroup'), ('CISCO-CIDS-MIB', 'ciscoCidsHealthObjectGroup'), ('CISCO-CIDS-MIB', 'ciscoCidsNotificationsGroup'), ('CISCO-CIDS-MIB', 'ciscoCidsOptionalObjectGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_cids_mib_compliance_rev1 = ciscoCidsMIBComplianceRev1.setStatus('deprecated') cisco_cids_mib_compliance_rev2 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 1, 3)).setObjects(('CISCO-CIDS-MIB', 'ciscoCidsGeneralObjectGroupRev1'), ('CISCO-CIDS-MIB', 'ciscoCidsAlertObjectGroupRev1'), ('CISCO-CIDS-MIB', 'ciscoCidsErrorObjectGroup'), ('CISCO-CIDS-MIB', 'ciscoCidsHealthObjectGroup'), ('CISCO-CIDS-MIB', 'ciscoCidsNotificationsGroup'), ('CISCO-CIDS-MIB', 'ciscoCidsOptionalObjectGroupRev1')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_cids_mib_compliance_rev2 = ciscoCidsMIBComplianceRev2.setStatus('deprecated') cisco_cids_mib_compliance_rev3 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 1, 4)).setObjects(('CISCO-CIDS-MIB', 'ciscoCidsGeneralObjectGroupRev1'), ('CISCO-CIDS-MIB', 'ciscoCidsAlertObjectGroupRev1'), ('CISCO-CIDS-MIB', 'ciscoCidsErrorObjectGroup'), ('CISCO-CIDS-MIB', 'ciscoCidsHealthObjectGroup'), ('CISCO-CIDS-MIB', 'ciscoCidsNotificationsGroup'), ('CISCO-CIDS-MIB', 'ciscoCidsOptionalObjectGroupRev2'), ('CISCO-CIDS-MIB', 'ciscoCidsOptionalObjectGroupRev1')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_cids_mib_compliance_rev3 = ciscoCidsMIBComplianceRev3.setStatus('deprecated') cisco_cids_mib_compliance_rev4 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 1, 5)).setObjects(('CISCO-CIDS-MIB', 'ciscoCidsErrorObjectGroup'), ('CISCO-CIDS-MIB', 'ciscoCidsGeneralObjectGroupRev1'), ('CISCO-CIDS-MIB', 'ciscoCidsAlertObjectGroupRev2'), ('CISCO-CIDS-MIB', 'ciscoCidsHealthObjectGroupRev1'), ('CISCO-CIDS-MIB', 'ciscoCidsNotificationsGroupRev1'), ('CISCO-CIDS-MIB', 'ciscoCidsHealthObjectGroup'), ('CISCO-CIDS-MIB', 'ciscoCidsNotificationsGroup'), ('CISCO-CIDS-MIB', 'ciscoCidsAlertObjectGroupRev1'), ('CISCO-CIDS-MIB', 'ciscoCidsOptionalObjectGroupRev3'), ('CISCO-CIDS-MIB', 'ciscoCidsOptionalObjectGroupRev2'), ('CISCO-CIDS-MIB', 'ciscoCidsOptionalObjectGroupRev1')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_cids_mib_compliance_rev4 = ciscoCidsMIBComplianceRev4.setStatus('current') cisco_cids_general_object_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 2, 1)).setObjects(('CISCO-CIDS-MIB', 'cidsGeneralEventId'), ('CISCO-CIDS-MIB', 'cidsGeneralLocalTime'), ('CISCO-CIDS-MIB', 'cidsGeneralUTCTime'), ('CISCO-CIDS-MIB', 'cidsGeneralOriginatorHostId'), ('CISCO-CIDS-MIB', 'cidsGeneralOriginatorAppName'), ('CISCO-CIDS-MIB', 'cidsGeneralOriginatorAppId'), ('CISCO-CIDS-MIB', 'cidsNotificationsEnabled')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_cids_general_object_group = ciscoCidsGeneralObjectGroup.setStatus('deprecated') cisco_cids_alert_object_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 2, 2)).setObjects(('CISCO-CIDS-MIB', 'cidsAlertSeverity'), ('CISCO-CIDS-MIB', 'cidsAlertAlarmTraits'), ('CISCO-CIDS-MIB', 'cidsAlertSignature'), ('CISCO-CIDS-MIB', 'cidsAlertSignatureSigName'), ('CISCO-CIDS-MIB', 'cidsAlertSignatureSigId'), ('CISCO-CIDS-MIB', 'cidsAlertSignatureSubSigId'), ('CISCO-CIDS-MIB', 'cidsAlertSignatureVersion'), ('CISCO-CIDS-MIB', 'cidsAlertSummary'), ('CISCO-CIDS-MIB', 'cidsAlertSummaryType'), ('CISCO-CIDS-MIB', 'cidsAlertSummaryFinal'), ('CISCO-CIDS-MIB', 'cidsAlertSummaryInitialAlert'), ('CISCO-CIDS-MIB', 'cidsAlertInterfaceGroup'), ('CISCO-CIDS-MIB', 'cidsAlertVlan'), ('CISCO-CIDS-MIB', 'cidsAlertVictimContext'), ('CISCO-CIDS-MIB', 'cidsAlertAttackerContext'), ('CISCO-CIDS-MIB', 'cidsAlertVictimAddress'), ('CISCO-CIDS-MIB', 'cidsAlertAttackerAddress'), ('CISCO-CIDS-MIB', 'cidsAlertIpLoggingActivated'), ('CISCO-CIDS-MIB', 'cidsAlertTcpResetSent'), ('CISCO-CIDS-MIB', 'cidsAlertShunRequested'), ('CISCO-CIDS-MIB', 'cidsAlertDetails'), ('CISCO-CIDS-MIB', 'cidsAlertIpLogId'), ('CISCO-CIDS-MIB', 'cidsThreatResponseStatus'), ('CISCO-CIDS-MIB', 'cidsThreatResponseSeverity'), ('CISCO-CIDS-MIB', 'cidsAlertEventRiskRating')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_cids_alert_object_group = ciscoCidsAlertObjectGroup.setStatus('deprecated') cisco_cids_error_object_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 2, 3)).setObjects(('CISCO-CIDS-MIB', 'cidsErrorSeverity'), ('CISCO-CIDS-MIB', 'cidsErrorName'), ('CISCO-CIDS-MIB', 'cidsErrorMessage')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_cids_error_object_group = ciscoCidsErrorObjectGroup.setStatus('current') cisco_cids_notifications_group = notification_group((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 2, 4)).setObjects(('CISCO-CIDS-MIB', 'ciscoCidsAlert'), ('CISCO-CIDS-MIB', 'ciscoCidsError')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_cids_notifications_group = ciscoCidsNotificationsGroup.setStatus('current') cisco_cids_health_object_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 2, 5)).setObjects(('CISCO-CIDS-MIB', 'cidsHealthPacketLoss'), ('CISCO-CIDS-MIB', 'cidsHealthPacketDenialRate'), ('CISCO-CIDS-MIB', 'cidsHealthAlarmsGenerated'), ('CISCO-CIDS-MIB', 'cidsHealthFragmentsInFRU'), ('CISCO-CIDS-MIB', 'cidsHealthDatagramsInFRU'), ('CISCO-CIDS-MIB', 'cidsHealthTcpEmbryonicStreams'), ('CISCO-CIDS-MIB', 'cidsHealthTCPEstablishedStreams'), ('CISCO-CIDS-MIB', 'cidsHealthTcpClosingStreams'), ('CISCO-CIDS-MIB', 'cidsHealthTcpStreams'), ('CISCO-CIDS-MIB', 'cidsHealthActiveNodes'), ('CISCO-CIDS-MIB', 'cidsHealthTcpDualIpAndPorts'), ('CISCO-CIDS-MIB', 'cidsHealthUdpDualIpAndPorts'), ('CISCO-CIDS-MIB', 'cidsHealthIpDualIp'), ('CISCO-CIDS-MIB', 'cidsHealthIsSensorMemoryCritical'), ('CISCO-CIDS-MIB', 'cidsHealthIsSensorActive'), ('CISCO-CIDS-MIB', 'cidsHealthCommandAndControlPort'), ('CISCO-CIDS-MIB', 'cidsHealthSensorStatsResetTime')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_cids_health_object_group = ciscoCidsHealthObjectGroup.setStatus('current') cisco_cids_general_object_group_rev1 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 2, 6)).setObjects(('CISCO-CIDS-MIB', 'cidsGeneralEventId'), ('CISCO-CIDS-MIB', 'cidsGeneralLocalTime'), ('CISCO-CIDS-MIB', 'cidsGeneralUTCTime'), ('CISCO-CIDS-MIB', 'cidsGeneralOriginatorHostId'), ('CISCO-CIDS-MIB', 'cidsNotificationsEnabled')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_cids_general_object_group_rev1 = ciscoCidsGeneralObjectGroupRev1.setStatus('current') cisco_cids_alert_object_group_rev1 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 2, 7)).setObjects(('CISCO-CIDS-MIB', 'cidsAlertSeverity'), ('CISCO-CIDS-MIB', 'cidsAlertAlarmTraits'), ('CISCO-CIDS-MIB', 'cidsAlertSignatureSigName'), ('CISCO-CIDS-MIB', 'cidsAlertSignatureSigId'), ('CISCO-CIDS-MIB', 'cidsAlertSignatureSubSigId'), ('CISCO-CIDS-MIB', 'cidsAlertVictimAddress'), ('CISCO-CIDS-MIB', 'cidsAlertAttackerAddress')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_cids_alert_object_group_rev1 = ciscoCidsAlertObjectGroupRev1.setStatus('current') cisco_cids_optional_object_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 2, 8)).setObjects(('CISCO-CIDS-MIB', 'cidsGeneralOriginatorAppName'), ('CISCO-CIDS-MIB', 'cidsGeneralOriginatorAppId'), ('CISCO-CIDS-MIB', 'cidsAlertSignature'), ('CISCO-CIDS-MIB', 'cidsAlertSignatureVersion'), ('CISCO-CIDS-MIB', 'cidsAlertSummary'), ('CISCO-CIDS-MIB', 'cidsAlertSummaryType'), ('CISCO-CIDS-MIB', 'cidsAlertSummaryFinal'), ('CISCO-CIDS-MIB', 'cidsAlertSummaryInitialAlert'), ('CISCO-CIDS-MIB', 'cidsAlertInterfaceGroup'), ('CISCO-CIDS-MIB', 'cidsAlertVlan'), ('CISCO-CIDS-MIB', 'cidsAlertVictimContext'), ('CISCO-CIDS-MIB', 'cidsAlertAttackerContext'), ('CISCO-CIDS-MIB', 'cidsAlertIpLoggingActivated'), ('CISCO-CIDS-MIB', 'cidsAlertTcpResetSent'), ('CISCO-CIDS-MIB', 'cidsAlertShunRequested'), ('CISCO-CIDS-MIB', 'cidsAlertDetails'), ('CISCO-CIDS-MIB', 'cidsAlertIpLogId'), ('CISCO-CIDS-MIB', 'cidsThreatResponseStatus'), ('CISCO-CIDS-MIB', 'cidsThreatResponseSeverity'), ('CISCO-CIDS-MIB', 'cidsAlertEventRiskRating'), ('CISCO-CIDS-MIB', 'cidsAlertIfIndex'), ('CISCO-CIDS-MIB', 'cidsAlertProtocol'), ('CISCO-CIDS-MIB', 'cidsAlertDeniedAttacker'), ('CISCO-CIDS-MIB', 'cidsAlertDeniedFlow'), ('CISCO-CIDS-MIB', 'cidsAlertDenyPacketReqNotPerf'), ('CISCO-CIDS-MIB', 'cidsAlertDenyFlowReqNotPerf'), ('CISCO-CIDS-MIB', 'cidsAlertDenyAttackerReqNotPerf'), ('CISCO-CIDS-MIB', 'cidsAlertBlockConnectionReq'), ('CISCO-CIDS-MIB', 'cidsAlertLogAttackerPacketsAct'), ('CISCO-CIDS-MIB', 'cidsAlertLogVictimPacketsAct'), ('CISCO-CIDS-MIB', 'cidsAlertLogPairPacketsActivated'), ('CISCO-CIDS-MIB', 'cidsAlertRateLimitRequested'), ('CISCO-CIDS-MIB', 'cidsAlertDeniedAttackVictimPair'), ('CISCO-CIDS-MIB', 'cidsAlertDeniedAttackSericePair'), ('CISCO-CIDS-MIB', 'cidsAlertDenyAttackVicReqNotPerf'), ('CISCO-CIDS-MIB', 'cidsAlertDenyAttackSerReqNotPerf')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_cids_optional_object_group = ciscoCidsOptionalObjectGroup.setStatus('deprecated') cisco_cids_optional_object_group_rev1 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 2, 9)).setObjects(('CISCO-CIDS-MIB', 'cidsGeneralOriginatorAppName'), ('CISCO-CIDS-MIB', 'cidsGeneralOriginatorAppId'), ('CISCO-CIDS-MIB', 'cidsAlertSignature'), ('CISCO-CIDS-MIB', 'cidsAlertSignatureVersion'), ('CISCO-CIDS-MIB', 'cidsAlertSummary'), ('CISCO-CIDS-MIB', 'cidsAlertSummaryType'), ('CISCO-CIDS-MIB', 'cidsAlertSummaryFinal'), ('CISCO-CIDS-MIB', 'cidsAlertSummaryInitialAlert'), ('CISCO-CIDS-MIB', 'cidsAlertInterfaceGroup'), ('CISCO-CIDS-MIB', 'cidsAlertVlan'), ('CISCO-CIDS-MIB', 'cidsAlertVictimContext'), ('CISCO-CIDS-MIB', 'cidsAlertAttackerContext'), ('CISCO-CIDS-MIB', 'cidsAlertIpLoggingActivated'), ('CISCO-CIDS-MIB', 'cidsAlertTcpResetSent'), ('CISCO-CIDS-MIB', 'cidsAlertShunRequested'), ('CISCO-CIDS-MIB', 'cidsAlertDetails'), ('CISCO-CIDS-MIB', 'cidsAlertIpLogId'), ('CISCO-CIDS-MIB', 'cidsThreatResponseStatus'), ('CISCO-CIDS-MIB', 'cidsThreatResponseSeverity'), ('CISCO-CIDS-MIB', 'cidsAlertEventRiskRating'), ('CISCO-CIDS-MIB', 'cidsAlertIfIndex'), ('CISCO-CIDS-MIB', 'cidsAlertProtocol'), ('CISCO-CIDS-MIB', 'cidsAlertDeniedAttacker'), ('CISCO-CIDS-MIB', 'cidsAlertDeniedFlow'), ('CISCO-CIDS-MIB', 'cidsAlertDenyPacketReqNotPerf'), ('CISCO-CIDS-MIB', 'cidsAlertDenyFlowReqNotPerf'), ('CISCO-CIDS-MIB', 'cidsAlertDenyAttackerReqNotPerf'), ('CISCO-CIDS-MIB', 'cidsAlertBlockConnectionReq'), ('CISCO-CIDS-MIB', 'cidsAlertLogAttackerPacketsAct'), ('CISCO-CIDS-MIB', 'cidsAlertLogVictimPacketsAct'), ('CISCO-CIDS-MIB', 'cidsAlertLogPairPacketsActivated'), ('CISCO-CIDS-MIB', 'cidsAlertRateLimitRequested'), ('CISCO-CIDS-MIB', 'cidsAlertDeniedAttackVictimPair'), ('CISCO-CIDS-MIB', 'cidsAlertDeniedAttackSericePair'), ('CISCO-CIDS-MIB', 'cidsAlertDenyAttackVicReqNotPerf'), ('CISCO-CIDS-MIB', 'cidsAlertDenyAttackSerReqNotPerf'), ('CISCO-CIDS-MIB', 'cidsAlertThreatValueRating'), ('CISCO-CIDS-MIB', 'cidsAlertRiskRatingTargetValue'), ('CISCO-CIDS-MIB', 'cidsAlertRiskRatingRelevance'), ('CISCO-CIDS-MIB', 'cidsAlertRiskRatingWatchList')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_cids_optional_object_group_rev1 = ciscoCidsOptionalObjectGroupRev1.setStatus('current') cisco_cids_optional_object_group_rev2 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 2, 10)).setObjects(('CISCO-CIDS-MIB', 'cidsAlertDenyPacket'), ('CISCO-CIDS-MIB', 'cidsAlertBlockHost'), ('CISCO-CIDS-MIB', 'cidsAlertTcpOneWayResetSent')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_cids_optional_object_group_rev2 = ciscoCidsOptionalObjectGroupRev2.setStatus('current') cisco_cids_alert_object_group_rev2 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 2, 11)).setObjects(('CISCO-CIDS-MIB', 'cidsAlertSignature'), ('CISCO-CIDS-MIB', 'cidsAlertSignatureVersion'), ('CISCO-CIDS-MIB', 'cidsAlertSummary'), ('CISCO-CIDS-MIB', 'cidsAlertSummaryType'), ('CISCO-CIDS-MIB', 'cidsAlertSummaryFinal'), ('CISCO-CIDS-MIB', 'cidsAlertSummaryInitialAlert'), ('CISCO-CIDS-MIB', 'cidsAlertVlan'), ('CISCO-CIDS-MIB', 'cidsAlertVictimContext'), ('CISCO-CIDS-MIB', 'cidsAlertAttackerContext'), ('CISCO-CIDS-MIB', 'cidsAlertIpLoggingActivated'), ('CISCO-CIDS-MIB', 'cidsAlertTcpResetSent'), ('CISCO-CIDS-MIB', 'cidsAlertShunRequested'), ('CISCO-CIDS-MIB', 'cidsAlertDetails'), ('CISCO-CIDS-MIB', 'cidsAlertIpLogId'), ('CISCO-CIDS-MIB', 'cidsThreatResponseStatus'), ('CISCO-CIDS-MIB', 'cidsThreatResponseSeverity'), ('CISCO-CIDS-MIB', 'cidsAlertEventRiskRating')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_cids_alert_object_group_rev2 = ciscoCidsAlertObjectGroupRev2.setStatus('current') cisco_cids_health_object_group_rev1 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 2, 12)).setObjects(('CISCO-CIDS-MIB', 'cidsHealthSecMonAvailability'), ('CISCO-CIDS-MIB', 'cidsHealthSecMonOverallHealth'), ('CISCO-CIDS-MIB', 'cidsHealthSecMonSoftwareVersion'), ('CISCO-CIDS-MIB', 'cidsHealthSecMonSignatureVersion'), ('CISCO-CIDS-MIB', 'cidsHealthSecMonLicenseStatus'), ('CISCO-CIDS-MIB', 'cidsHealthSecMonMainAppStatus'), ('CISCO-CIDS-MIB', 'cidsHealthSecMonAnalysisEngineStatus'), ('CISCO-CIDS-MIB', 'cidsHealthSecMonByPassMode'), ('CISCO-CIDS-MIB', 'cidsHealthSecMonMissedPktPctAndThresh'), ('CISCO-CIDS-MIB', 'cidsHealthSecMonAnalysisEngMemPercent'), ('CISCO-CIDS-MIB', 'cidsHealthSecMonSensorLoad'), ('CISCO-CIDS-MIB', 'cidsHealthSecMonVirtSensorStatus'), ('CISCO-CIDS-MIB', 'cidsHealthSecMonCollaborationAppStatus'), ('CISCO-CIDS-MIB', 'cidsHealthSecMonTotalPartitionSpace'), ('CISCO-CIDS-MIB', 'cidsHealthSecMonUtilizedPartitionSpace'), ('CISCO-CIDS-MIB', 'cidsHealthSecMonOverallAppColor'), ('CISCO-CIDS-MIB', 'cidsHealthSecMonSensorLoadColor')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_cids_health_object_group_rev1 = ciscoCidsHealthObjectGroupRev1.setStatus('current') cisco_cids_optional_object_group_rev3 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 2, 13)).setObjects(('CISCO-CIDS-MIB', 'cidsAlertVirtualSensor')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_cids_optional_object_group_rev3 = ciscoCidsOptionalObjectGroupRev3.setStatus('current') cisco_cids_notifications_group_rev1 = notification_group((1, 3, 6, 1, 4, 1, 9, 9, 383, 2, 2, 14)).setObjects(('CISCO-CIDS-MIB', 'ciscoCidsHealthHeartBeat'), ('CISCO-CIDS-MIB', 'ciscoCidsHealthMetricChange')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_cids_notifications_group_rev1 = ciscoCidsNotificationsGroupRev1.setStatus('current') mibBuilder.exportSymbols('CISCO-CIDS-MIB', CidsErrorCode=CidsErrorCode, cidsAlertDeniedAttacker=cidsAlertDeniedAttacker, cidsAlertThreatValueRating=cidsAlertThreatValueRating, cidsGeneralOriginatorAppId=cidsGeneralOriginatorAppId, cidsGeneralOriginatorAppName=cidsGeneralOriginatorAppName, cidsAlertDenyPacketReqNotPerf=cidsAlertDenyPacketReqNotPerf, cidsAlertAttackerContext=cidsAlertAttackerContext, cidsAlertSeverity=cidsAlertSeverity, cidsAlertLogPairPacketsActivated=cidsAlertLogPairPacketsActivated, cidsGeneral=cidsGeneral, ciscoCidsOptionalObjectGroupRev1=ciscoCidsOptionalObjectGroupRev1, cidsAlertIfIndex=cidsAlertIfIndex, PYSNMP_MODULE_ID=ciscoCidsMIB, cidsAlertEventRiskRating=cidsAlertEventRiskRating, cidsHealthSecMonCollaborationAppStatus=cidsHealthSecMonCollaborationAppStatus, ciscoCidsOptionalObjectGroup=ciscoCidsOptionalObjectGroup, cidsAlertVlan=cidsAlertVlan, cidsHealthSecMonSoftwareVersion=cidsHealthSecMonSoftwareVersion, cidsAlertDeniedAttackSericePair=cidsAlertDeniedAttackSericePair, cidsAlertBlockHost=cidsAlertBlockHost, ciscoCidsError=ciscoCidsError, ciscoCidsMIBCompliance=ciscoCidsMIBCompliance, CidsHealthStatusColor=CidsHealthStatusColor, ciscoCidsAlert=ciscoCidsAlert, cidsHealthSecMonMissedPktPctAndThresh=cidsHealthSecMonMissedPktPctAndThresh, cidsHealthSecMonDataStorageTable=cidsHealthSecMonDataStorageTable, cidsHealthSecMonOverallAppColor=cidsHealthSecMonOverallAppColor, ciscoCidsMIBComplianceRev4=ciscoCidsMIBComplianceRev4, cidsAlertTcpResetSent=cidsAlertTcpResetSent, CidsApplicationStatus=CidsApplicationStatus, ciscoCidsNotificationsGroupRev1=ciscoCidsNotificationsGroupRev1, cidsHealthCommandAndControlPort=cidsHealthCommandAndControlPort, cidsHealthSecMonUtilizedPartitionSpace=cidsHealthSecMonUtilizedPartitionSpace, cidsErrorName=cidsErrorName, cidsHealthSecMonVirtSensorStatusEntry=cidsHealthSecMonVirtSensorStatusEntry, cidsAlertRateLimitRequested=cidsAlertRateLimitRequested, cidsAlertDeniedFlow=cidsAlertDeniedFlow, cidsThreatResponseStatus=cidsThreatResponseStatus, ciscoCidsMIBComplianceRev1=ciscoCidsMIBComplianceRev1, cidsAlertDenyAttackerReqNotPerf=cidsAlertDenyAttackerReqNotPerf, ciscoCidsGeneralObjectGroupRev1=ciscoCidsGeneralObjectGroupRev1, cidsAlertLogAttackerPacketsAct=cidsAlertLogAttackerPacketsAct, cidsNotificationsEnabled=cidsNotificationsEnabled, cidsAlertDenyFlowReqNotPerf=cidsAlertDenyFlowReqNotPerf, cidsAlertVictimContext=cidsAlertVictimContext, cidsGeneralEventId=cidsGeneralEventId, cidsAlertDenyAttackSerReqNotPerf=cidsAlertDenyAttackSerReqNotPerf, ciscoCidsHealthHeartBeat=ciscoCidsHealthHeartBeat, cidsAlertProtocol=cidsAlertProtocol, ciscoCidsHealthObjectGroup=ciscoCidsHealthObjectGroup, cidsThreatResponseSeverity=cidsThreatResponseSeverity, cidsAlertRiskRatingTargetValue=cidsAlertRiskRatingTargetValue, cidsAlertSignature=cidsAlertSignature, cidsGeneralLocalTime=cidsGeneralLocalTime, cidsHealthAlarmsGenerated=cidsHealthAlarmsGenerated, cidsHealthSecMonVirtSensorStatus=cidsHealthSecMonVirtSensorStatus, cidsAlertSignatureSigId=cidsAlertSignatureSigId, ciscoCidsMIB=ciscoCidsMIB, ciscoCidsAlertObjectGroup=ciscoCidsAlertObjectGroup, cidsAlertDenyPacket=cidsAlertDenyPacket, cidsAlertDetails=cidsAlertDetails, cidsAlertLogVictimPacketsAct=cidsAlertLogVictimPacketsAct, cidsError=cidsError, cidsGeneralUTCTime=cidsGeneralUTCTime, ciscoCidsMIBNotifs=ciscoCidsMIBNotifs, ciscoCidsHealthObjectGroupRev1=ciscoCidsHealthObjectGroupRev1, cidsAlertInterfaceGroup=cidsAlertInterfaceGroup, cidsHealthSecMonDataStorageEntry=cidsHealthSecMonDataStorageEntry, ciscoCidsOptionalObjectGroupRev2=ciscoCidsOptionalObjectGroupRev2, cidsHealthFragmentsInFRU=cidsHealthFragmentsInFRU, cidsHealthUdpDualIpAndPorts=cidsHealthUdpDualIpAndPorts, ciscoCidsAlertObjectGroupRev2=ciscoCidsAlertObjectGroupRev2, cidsAlertVictimAddress=cidsAlertVictimAddress, ciscoCidsGeneralObjectGroup=ciscoCidsGeneralObjectGroup, cidsAlertSignatureSigName=cidsAlertSignatureSigName, cidsHealthPacketLoss=cidsHealthPacketLoss, cidsAlertBlockConnectionReq=cidsAlertBlockConnectionReq, cidsAlertIpLogId=cidsAlertIpLogId, cidsGeneralOriginatorHostId=cidsGeneralOriginatorHostId, ciscoCidsErrorObjectGroup=ciscoCidsErrorObjectGroup, cidsHealthIsSensorActive=cidsHealthIsSensorActive, cidsAlertSignatureSubSigId=cidsAlertSignatureSubSigId, cidsHealthPacketDenialRate=cidsHealthPacketDenialRate, cidsHealthIsSensorMemoryCritical=cidsHealthIsSensorMemoryCritical, CidsAttackRelevance=CidsAttackRelevance, cidsHealthSecMonTotalPartitionSpace=cidsHealthSecMonTotalPartitionSpace, cidsHealthSensorStatsResetTime=cidsHealthSensorStatsResetTime, ciscoCidsMIBGroups=ciscoCidsMIBGroups, ciscoCidsMIBComplianceRev3=ciscoCidsMIBComplianceRev3, cidsHealth=cidsHealth, cidsHealthIpDualIp=cidsHealthIpDualIp, cidsHealthSecMonSensorLoadColor=cidsHealthSecMonSensorLoadColor, ciscoCidsHealthMetricChange=ciscoCidsHealthMetricChange, ciscoCidsMIBCompliances=ciscoCidsMIBCompliances, ciscoCidsMIBComplianceRev2=ciscoCidsMIBComplianceRev2, cidsAlertSummaryFinal=cidsAlertSummaryFinal, cidsAlertSummaryInitialAlert=cidsAlertSummaryInitialAlert, cidsHealthTcpEmbryonicStreams=cidsHealthTcpEmbryonicStreams, cidsAlertTcpOneWayResetSent=cidsAlertTcpOneWayResetSent, cidsHealthActiveNodes=cidsHealthActiveNodes, cidsHealthSecMonAvailability=cidsHealthSecMonAvailability, cidsAlertDeniedAttackVictimPair=cidsAlertDeniedAttackVictimPair, cidsHealthSecMonLicenseStatus=cidsHealthSecMonLicenseStatus, cidsHealthSecMonSensorLoad=cidsHealthSecMonSensorLoad, cidsErrorMessage=cidsErrorMessage, cidsHealthSecMonOverallHealth=cidsHealthSecMonOverallHealth, cidsAlertSummary=cidsAlertSummary, ciscoCidsMIBObjects=ciscoCidsMIBObjects, cidsAlertVirtualSensor=cidsAlertVirtualSensor, cidsErrorSeverity=cidsErrorSeverity, CidsTargetValue=CidsTargetValue, cidsHealthSecMonMainAppStatus=cidsHealthSecMonMainAppStatus, cidsAlertAlarmTraits=cidsAlertAlarmTraits, cidsHealthDatagramsInFRU=cidsHealthDatagramsInFRU, cidsHealthSecMonPartitionName=cidsHealthSecMonPartitionName, cidsAlertShunRequested=cidsAlertShunRequested, cidsHealthSecMonAnalysisEngMemPercent=cidsHealthSecMonAnalysisEngMemPercent, cidsHealthSecMonVirtSensorStatusTable=cidsHealthSecMonVirtSensorStatusTable, cidsHealthTcpClosingStreams=cidsHealthTcpClosingStreams, cidsAlertAttackerAddress=cidsAlertAttackerAddress, cidsHealthSecMonByPassMode=cidsHealthSecMonByPassMode, cidsHealthTCPEstablishedStreams=cidsHealthTCPEstablishedStreams, cidsHealthTcpStreams=cidsHealthTcpStreams, ciscoCidsAlertObjectGroupRev1=ciscoCidsAlertObjectGroupRev1, cidsAlertRiskRatingWatchList=cidsAlertRiskRatingWatchList, cidsHealthTcpDualIpAndPorts=cidsHealthTcpDualIpAndPorts, ciscoCidsMIBConform=ciscoCidsMIBConform, cidsAlertDenyAttackVicReqNotPerf=cidsAlertDenyAttackVicReqNotPerf, ciscoCidsOptionalObjectGroupRev3=ciscoCidsOptionalObjectGroupRev3, cidsHealthSecMonVirtSensorName=cidsHealthSecMonVirtSensorName, cidsAlertRiskRatingRelevance=cidsAlertRiskRatingRelevance, ciscoCidsNotificationsGroup=ciscoCidsNotificationsGroup, cidsAlertSummaryType=cidsAlertSummaryType, cidsHealthSecMonSignatureVersion=cidsHealthSecMonSignatureVersion, cidsHealthSecMonAnalysisEngineStatus=cidsHealthSecMonAnalysisEngineStatus, cidsAlert=cidsAlert, cidsAlertSignatureVersion=cidsAlertSignatureVersion, cidsAlertIpLoggingActivated=cidsAlertIpLoggingActivated)
def parse_rules(filename): rule_text = open(filename).read().strip().split('\n') return dict([r.split(' bags contain ') for r in rule_text]) rules = parse_rules('input.txt') queue = ['shiny gold'] seen = [] while len(queue): item = queue.pop(0) for key, val in rules.items(): if key not in seen: if item in val: queue.append(key) seen.append(key) print(len(seen))
def parse_rules(filename): rule_text = open(filename).read().strip().split('\n') return dict([r.split(' bags contain ') for r in rule_text]) rules = parse_rules('input.txt') queue = ['shiny gold'] seen = [] while len(queue): item = queue.pop(0) for (key, val) in rules.items(): if key not in seen: if item in val: queue.append(key) seen.append(key) print(len(seen))
class RuntimeProtocol (object): def __init__ (self, transport): self.transport = transport def send (self, topic, payload, context): self.transport.send('runtime', topic, payload, context) def receive (self, topic, payload, context): if topic == 'getruntime': return self.getRuntime(payload, context) if topic == 'packet': return self.receivePacket(payload, context) def getRuntime (self, payload, context): try: name = self.transport.options["type"] except KeyError: name = "octopus" try: capabilities = self.transport.options["capabilities"] except KeyError: capabilities = [] self.send('runtime', { "type": name, "version": self.transport.version, "capabilities": capabilities }, context) def receivePacket (self, payload, context): self.send('error', Error('Packets not supported yet'), context) class Error (Exception): pass
class Runtimeprotocol(object): def __init__(self, transport): self.transport = transport def send(self, topic, payload, context): self.transport.send('runtime', topic, payload, context) def receive(self, topic, payload, context): if topic == 'getruntime': return self.getRuntime(payload, context) if topic == 'packet': return self.receivePacket(payload, context) def get_runtime(self, payload, context): try: name = self.transport.options['type'] except KeyError: name = 'octopus' try: capabilities = self.transport.options['capabilities'] except KeyError: capabilities = [] self.send('runtime', {'type': name, 'version': self.transport.version, 'capabilities': capabilities}, context) def receive_packet(self, payload, context): self.send('error', error('Packets not supported yet'), context) class Error(Exception): pass
# -*- encoding: utf-8 -*- SUCCESS = (0, "Success") ERR_PARAM_ERROR = (40000, "Params error") ERR_AUTH_ERROR = (40001, "Unauthorized") ERR_PERMISSION_ERROR = (40003, "Forbidden") ERR_NOT_FOUND_ERROR = (40004, "Not Found") ERR_METHOD_NOT_ALLOWED = (40005, "Method Not Allowed") ERR_TOKEN_CHANGED_ERROR = (40006, "Token has been changed.") ERR_ADMIN_IN_FULLNAME = (41001, "admin in fullname.") ERR_SERVER_ERROR = (50000, "HTTP-Internal Server Error") ERR_UNKNOWN_ERROR = (50001, 'Unknown ERROR')
success = (0, 'Success') err_param_error = (40000, 'Params error') err_auth_error = (40001, 'Unauthorized') err_permission_error = (40003, 'Forbidden') err_not_found_error = (40004, 'Not Found') err_method_not_allowed = (40005, 'Method Not Allowed') err_token_changed_error = (40006, 'Token has been changed.') err_admin_in_fullname = (41001, 'admin in fullname.') err_server_error = (50000, 'HTTP-Internal Server Error') err_unknown_error = (50001, 'Unknown ERROR')
#!/usr/bin/env python3 class Args : # dataset size... Use positive number to sample subset of the full dataset. dataset_sz = -1 # Archive outputs of training here for animating later. anim_dir = "anim" # images size we will work on. (sz, sz, 3) sz = 64 # alpha, used by leaky relu of D and G networks. alpha_D = 0.2 alpha_G = 0.2 # batch size, during training. batch_sz = 64 # Length of the noise vector to generate the faces from. # Latent space z noise_shape = (1, 1, 100) # GAN training can be ruined any moment if not careful. # Archive some snapshots in this directory. snapshot_dir = "./snapshots" # dropout probability dropout = 0.3 # noisy label magnitude label_noise = 0.1 # history to keep. Slower training but higher quality. history_sz = 8 genw = "gen.hdf5" discw = "disc.hdf5" # Weight initialization function. #kernel_initializer = 'Orthogonal' #kernel_initializer = 'RandomNormal' # Same as default in Keras, but good for GAN, says # https://github.com/gheinrich/DIGITS-GAN/blob/master/examples/weight-init/README.md#experiments-with-lenet-on-mnist kernel_initializer = 'glorot_uniform' # Since DCGAN paper, everybody uses 0.5 and for me, it works the best too. # I tried 0.9, 0.1. adam_beta = 0.5 # BatchNormalization matters too. bn_momentum = 0.3
class Args: dataset_sz = -1 anim_dir = 'anim' sz = 64 alpha_d = 0.2 alpha_g = 0.2 batch_sz = 64 noise_shape = (1, 1, 100) snapshot_dir = './snapshots' dropout = 0.3 label_noise = 0.1 history_sz = 8 genw = 'gen.hdf5' discw = 'disc.hdf5' kernel_initializer = 'glorot_uniform' adam_beta = 0.5 bn_momentum = 0.3
class QualityError(Exception): pass
class Qualityerror(Exception): pass
# Rename this file as settings.py and set the client ID and secrets values # according to the values from https://code.google.com/apis/console/ # Client IDs, secrets, user-agents and host-messages are indexed by host name, # to allow the application to be run on different hosts, (e.g., test and production), # without having to change these values each time. client_ids = { 'import-tasks.appspot.com' : '123456789012.apps.googleusercontent.com', 'import-tasks-test.appspot.com' : '987654321987.apps.googleusercontent.com', 'localhost:8084' : '999999999999.apps.googleusercontent.com'} client_secrets = { 'import-tasks.appspot.com' : 'MyVerySecretKeyForProdSvr', 'import-tasks-test.appspot.com' : 'MyVerySecretKeyForTestSvr', 'localhost:8084' : 'MyVerySecretKeyForLocalSvr'} user_agents = { 'import-tasks.appspot.com' : 'import-tasks/1.0', 'import-tasks-test.appspot.com' : 'import-tasks-test/1.0', 'localhost:8084' : 'import-tasks-local/1.0'} # User agent value used if no entry found for specified host DEFAULT_USER_AGENT = 'import-tasks/2.0' # This should match the "Application Title:" value set in "Application Settings" in the App Engine # administration for the server that the app will be running on. This value is displyed in the app, # but the value from the admin screen is "Displayed if users authenticate to use your application." app_titles = {'import-tasks-test.appspot.com' : "Test - Import Google Tasks", 'localhost:8084' : "Local - Import Google Tasks", 'import-tasks.appspot.com' : "Import Google Tasks" } # Title used when host name is not found, or not yet known DEFAULT_APP_TITLE = "Import Google Tasks" # According to the "Application Settings" admin page # (e.g., https://appengine.google.com/settings?app_id=s~js-tasks&version_id=4.356816042992321979) # "Application Title:" is "Displayed if users authenticate to use your application." # However, the valiue that is shown under "Authorised Access" appears to be the value # set on the "API Access" page # This is the value displayed under "Authorised Access to your Google Account" # at https://www.google.com/accounts/IssuedAuthSubTokens # The product name is set in the API Access page as "Product Name", at # https://code.google.com/apis/console and is linked to the client ID product_names = { '123456789012.apps.googleusercontent.com' : "Import Google Tasks", '987654321987.apps.googleusercontent.com' : "Import Tasks Test", '999999999999.apps.googleusercontent.com' : "GTB Local"} # Product name used if no matching client ID found in product_names DEFAULT_PRODUCT_NAME = "Import Google Tasks" # Host messages are optional host_msgs = { 'import-tasks-test.appspot.com' : "*** Running on test AppEngine server ***", 'localhost:8084' : "*** Running on local host ***", 'import-tasks.appspot.com' : "Beta" } url_discussion_group = "groups.google.com/group/import-tasks" email_discussion_group = "import-tasks@googlegroups.com" url_issues_page = "code.google.com/p/import-tasks/issues/list" url_source_code = "code.google.com/p/import-tasks/source/browse/" # URL to direct people to if they wish to backup their tasks url_GTB = "tasks-backup.appspot.com" # Must match name in queue.yaml PROCESS_TASKS_REQUEST_QUEUE_NAME = 'import-tasks-request' # The string used used with the params dictionary argument to the taskqueue, # used as the key to retrieve the value from the task queue TASKS_QUEUE_KEY_NAME = 'user_email' WELCOME_PAGE_URL = '/' MAIN_PAGE_URL = '/main' PROGRESS_URL = '/progress' INVALID_CREDENTIALS_URL = '/invalidcredentials' GET_NEW_BLOBSTORE_URL = '/getnewblobstoreurl' BLOBSTORE_UPLOAD_URL = '/fileupload' CONTINUE_IMPORT_JOB_URL = '/continue' ADMIN_MANAGE_BLOBSTORE_URL = '/admin/blobstore/manage' ADMIN_DELETE_BLOBSTORE_URL = '/admin/blobstore/delete' ADMIN_BULK_DELETE_BLOBSTORE_URL = '/admin/blobstore/bulkdelete' WORKER_URL = '/worker' # Maximum number of consecutive authorisation requests # Redirect user to Invalid Credentials page if there are more than this number of tries MAX_NUM_AUTH_RETRIES = 3 # Number of times to try server actions # Exceptions are usually due to DeadlineExceededError on individual API calls # The first (NUM_API_TRIES - 2) retries are immediate. The app sleeps for # API_RETRY_SLEEP_DURATION seconds before trying the 2nd last and last retries. NUM_API_TRIES = 4 # Number of seconds to sleep for the last 2 API retries API_RETRY_SLEEP_DURATION = 45 # If the import hasn't finished within MAX_WORKER_RUN_TIME seconds, we stop the current import run, and then # add the job to the taskqueue to continue the import process in a new worker. # We allow 8 minutes (480 seconds), to allow for 2 x API_RETRY_SLEEP_DURATION second retries on DeadlineExceededError, # and to give some margin, from the maximum allowed 10 minutes. #MAX_WORKER_RUN_TIME = 480 MAX_WORKER_RUN_TIME = 600 - 2 * API_RETRY_SLEEP_DURATION - 30 #MAX_WORKER_RUN_TIME = 20 # DEBUG # If the job hasn't been updated in MAX_JOB_PROGRESS_INTERVAL seconds, assume that the job has stalled, # and display error message and stop refreshing progress.html # - Longest observed time between job added to taskqueue, and worker starting, is 89.5 seconds # - Max time between updates would be when API fails multiple times, when we sleep API_RETRY_SLEEP_DURATION seconds # for the last 2 retries + 10 seconds per API access MAX_JOB_PROGRESS_INTERVAL = 2 * API_RETRY_SLEEP_DURATION + NUM_API_TRIES * 10 + 30 # Update number of tasks in tasklist every TASK_COUNT_UPDATE_INTERVAL seconds # This prevents excessive Datastore Write Operations which can exceed quota TASK_COUNT_UPDATE_INTERVAL = 5 # Refresh progress page every PROGRESS_PAGE_REFRESH_INTERVAL seconds PROGRESS_PAGE_REFRESH_INTERVAL = 6 # Auth count cookie expires after 'n' seconds. # That is, we count the number of authorisation attempts within 'n' seconds, and then we reset the count back to zero. # This prevents the total number of authorisations over a user session being counted (and hence max exceeded) if the user has a vey long session AUTH_RETRY_COUNT_COOKIE_EXPIRATION_TIME = 60 # ############################################### # Debug settings # ############################################### # Extra detailed and/or personal details may be logged when user is one of the test accounts TEST_ACCOUNTS = ["My.Email.Address@gmail.com", "Test.Email.Address@gmail.com"] # When the app is running on one of these servers, users will be rejected unless they are in TEST_ACCOUNTS list # If there is/are no limited-access servers, set this to an empty list [] LIMITED_ACCESS_SERVERS = [] #LIMITED_ACCESS_SERVERS = ['my-test-server.appspot.com'] # Logs dumps of raw data for test users when True DUMP_DATA = False
client_ids = {'import-tasks.appspot.com': '123456789012.apps.googleusercontent.com', 'import-tasks-test.appspot.com': '987654321987.apps.googleusercontent.com', 'localhost:8084': '999999999999.apps.googleusercontent.com'} client_secrets = {'import-tasks.appspot.com': 'MyVerySecretKeyForProdSvr', 'import-tasks-test.appspot.com': 'MyVerySecretKeyForTestSvr', 'localhost:8084': 'MyVerySecretKeyForLocalSvr'} user_agents = {'import-tasks.appspot.com': 'import-tasks/1.0', 'import-tasks-test.appspot.com': 'import-tasks-test/1.0', 'localhost:8084': 'import-tasks-local/1.0'} default_user_agent = 'import-tasks/2.0' app_titles = {'import-tasks-test.appspot.com': 'Test - Import Google Tasks', 'localhost:8084': 'Local - Import Google Tasks', 'import-tasks.appspot.com': 'Import Google Tasks'} default_app_title = 'Import Google Tasks' product_names = {'123456789012.apps.googleusercontent.com': 'Import Google Tasks', '987654321987.apps.googleusercontent.com': 'Import Tasks Test', '999999999999.apps.googleusercontent.com': 'GTB Local'} default_product_name = 'Import Google Tasks' host_msgs = {'import-tasks-test.appspot.com': '*** Running on test AppEngine server ***', 'localhost:8084': '*** Running on local host ***', 'import-tasks.appspot.com': 'Beta'} url_discussion_group = 'groups.google.com/group/import-tasks' email_discussion_group = 'import-tasks@googlegroups.com' url_issues_page = 'code.google.com/p/import-tasks/issues/list' url_source_code = 'code.google.com/p/import-tasks/source/browse/' url_gtb = 'tasks-backup.appspot.com' process_tasks_request_queue_name = 'import-tasks-request' tasks_queue_key_name = 'user_email' welcome_page_url = '/' main_page_url = '/main' progress_url = '/progress' invalid_credentials_url = '/invalidcredentials' get_new_blobstore_url = '/getnewblobstoreurl' blobstore_upload_url = '/fileupload' continue_import_job_url = '/continue' admin_manage_blobstore_url = '/admin/blobstore/manage' admin_delete_blobstore_url = '/admin/blobstore/delete' admin_bulk_delete_blobstore_url = '/admin/blobstore/bulkdelete' worker_url = '/worker' max_num_auth_retries = 3 num_api_tries = 4 api_retry_sleep_duration = 45 max_worker_run_time = 600 - 2 * API_RETRY_SLEEP_DURATION - 30 max_job_progress_interval = 2 * API_RETRY_SLEEP_DURATION + NUM_API_TRIES * 10 + 30 task_count_update_interval = 5 progress_page_refresh_interval = 6 auth_retry_count_cookie_expiration_time = 60 test_accounts = ['My.Email.Address@gmail.com', 'Test.Email.Address@gmail.com'] limited_access_servers = [] dump_data = False
pkgname = "base-cross" pkgver = "0.1" pkgrel = 0 build_style = "meta" depends = ["clang-rt-cross", "musl-cross", "libcxx-cross"] pkgdesc = "Base metapackage for cross-compiling" maintainer = "q66 <q66@chimera-linux.org>" license = "custom:meta" url = "https://chimera-linux.org" options = ["!cross", "brokenlinks"] _targets = list(filter( lambda p: p != self.profile().arch, ["aarch64", "ppc64le", "ppc64", "x86_64", "riscv64"] )) def do_install(self): for an in _targets: with self.profile(an) as pf: at = pf.short_triplet # convenient cross symlinks self.install_dir("usr/bin") self.install_link("clang", f"usr/bin/{at}-clang") self.install_link("clang++", f"usr/bin/{at}-clang++") self.install_link("clang-cpp", f"usr/bin/{at}-clang-cpp") self.install_link("cc", f"usr/bin/{at}-cc") self.install_link("c++", f"usr/bin/{at}-c++") self.install_link("ld", f"usr/bin/{at}-ld") self.install_link("ld.lld", f"usr/bin/{at}-ld.lld") # ccache cross symlinks self.install_dir("usr/lib/ccache/bin") self.install_link( "../../../bin/ccache", f"usr/lib/ccache/bin/{at}-clang" ) self.install_link( "../../../bin/ccache", f"usr/lib/ccache/bin/{at}-clang++" ) self.install_link( "../../../bin/ccache", f"usr/lib/ccache/bin/{at}-cc" ) self.install_link( "../../../bin/ccache", f"usr/lib/ccache/bin/{at}-c++" ) pass def _gen_crossp(an, at): @subpackage(f"base-cross-{an}") def _subp(self): self.pkgdesc = f"{pkgdesc} ({an} support)" self.depends = [ f"clang-rt-cross-{an}", f"musl-cross-{an}", f"libcxx-cross-{an}", ] return [f"usr/bin/{at}-*", f"usr/lib/ccache/bin/{at}-*"] depends.append(f"base-cross-{an}={pkgver}-r{pkgrel}") for an in _targets: with self.profile(an) as pf: at = pf.short_triplet _gen_crossp(an, at)
pkgname = 'base-cross' pkgver = '0.1' pkgrel = 0 build_style = 'meta' depends = ['clang-rt-cross', 'musl-cross', 'libcxx-cross'] pkgdesc = 'Base metapackage for cross-compiling' maintainer = 'q66 <q66@chimera-linux.org>' license = 'custom:meta' url = 'https://chimera-linux.org' options = ['!cross', 'brokenlinks'] _targets = list(filter(lambda p: p != self.profile().arch, ['aarch64', 'ppc64le', 'ppc64', 'x86_64', 'riscv64'])) def do_install(self): for an in _targets: with self.profile(an) as pf: at = pf.short_triplet self.install_dir('usr/bin') self.install_link('clang', f'usr/bin/{at}-clang') self.install_link('clang++', f'usr/bin/{at}-clang++') self.install_link('clang-cpp', f'usr/bin/{at}-clang-cpp') self.install_link('cc', f'usr/bin/{at}-cc') self.install_link('c++', f'usr/bin/{at}-c++') self.install_link('ld', f'usr/bin/{at}-ld') self.install_link('ld.lld', f'usr/bin/{at}-ld.lld') self.install_dir('usr/lib/ccache/bin') self.install_link('../../../bin/ccache', f'usr/lib/ccache/bin/{at}-clang') self.install_link('../../../bin/ccache', f'usr/lib/ccache/bin/{at}-clang++') self.install_link('../../../bin/ccache', f'usr/lib/ccache/bin/{at}-cc') self.install_link('../../../bin/ccache', f'usr/lib/ccache/bin/{at}-c++') pass def _gen_crossp(an, at): @subpackage(f'base-cross-{an}') def _subp(self): self.pkgdesc = f'{pkgdesc} ({an} support)' self.depends = [f'clang-rt-cross-{an}', f'musl-cross-{an}', f'libcxx-cross-{an}'] return [f'usr/bin/{at}-*', f'usr/lib/ccache/bin/{at}-*'] depends.append(f'base-cross-{an}={pkgver}-r{pkgrel}') for an in _targets: with self.profile(an) as pf: at = pf.short_triplet _gen_crossp(an, at)
def isprime(n): nn = n - 1 for i in xrange(2, nn): if n % i == 0: return False return True def primes(n): count = 0 for i in xrange(2, n): if isprime(i): count = count + 1 return count N = 10 * 10000 print(primes(N))
def isprime(n): nn = n - 1 for i in xrange(2, nn): if n % i == 0: return False return True def primes(n): count = 0 for i in xrange(2, n): if isprime(i): count = count + 1 return count n = 10 * 10000 print(primes(N))
def res_net(prod, usage): net = {res: p for res, p in prod.items()} for res, u in usage.items(): if res in net: net[res] = net[res] - u else: net[res] = -u return net
def res_net(prod, usage): net = {res: p for (res, p) in prod.items()} for (res, u) in usage.items(): if res in net: net[res] = net[res] - u else: net[res] = -u return net
class Creature: def __init__(self, name, terror_rating): self.name = name self.terror_rating = int(terror_rating) self.item_ls = [] self.times = 1 def take(self, item): self.item_ls.append(item) self.location.item_ls.remove(item) self.terror_rating += item.terror_rating def drop(self, item): self.item_ls.remove(item) self.location.item_ls.append(item) self.terror_rating -= item.terror_rating def get_terror_rating(self): return self.terror_rating def can_leave(self, direct): i = 0 while i < len(self.location.other_loc): if self.location.other_loc[i][0].lower() == direct.lower(): return self.location.other_loc[i][1] i += 1 return False def change_direc(self): direct_ls = ['north', 'northeast', 'east', 'southeast', 'south', 'southwest',\ 'west', 'northwest'] i = 0 while i < len(direct_ls): if self.direct == direct_ls[i]: break i += 1 j = i i = 0 while i < 8: loc = self.can_leave(direct_ls[j]) if loc: self.direct = direct_ls[j] return loc j = (j+1) % 8 i += 1 def goto(self, loc): self.location.crea_ls.remove(self) self.location = loc self.location.crea_ls.append(self) self.times = 1
class Creature: def __init__(self, name, terror_rating): self.name = name self.terror_rating = int(terror_rating) self.item_ls = [] self.times = 1 def take(self, item): self.item_ls.append(item) self.location.item_ls.remove(item) self.terror_rating += item.terror_rating def drop(self, item): self.item_ls.remove(item) self.location.item_ls.append(item) self.terror_rating -= item.terror_rating def get_terror_rating(self): return self.terror_rating def can_leave(self, direct): i = 0 while i < len(self.location.other_loc): if self.location.other_loc[i][0].lower() == direct.lower(): return self.location.other_loc[i][1] i += 1 return False def change_direc(self): direct_ls = ['north', 'northeast', 'east', 'southeast', 'south', 'southwest', 'west', 'northwest'] i = 0 while i < len(direct_ls): if self.direct == direct_ls[i]: break i += 1 j = i i = 0 while i < 8: loc = self.can_leave(direct_ls[j]) if loc: self.direct = direct_ls[j] return loc j = (j + 1) % 8 i += 1 def goto(self, loc): self.location.crea_ls.remove(self) self.location = loc self.location.crea_ls.append(self) self.times = 1
def genNum(digit, times): result = digit if times>=1 and digit>0 and digit<10: for i in range(1, times): result = result*10+digit return result def sum(digit, num): result = 0 for x in range(1, num+1): result += genNum(digit, x) return result print(sum(1, 3)) def genNumWithStr(digit, times): template = '{:d}' value = [digit] if times>=1 and digit>0 and digit<10: for i in range(1, times): template += '{:d}' value.append(digit) return int(template.format(*value)) def sumWithStr(digit, num): result = 0 for x in range(1, num+1): result += genNumWithStr(digit, x) return result print(sumWithStr(1, 3))
def gen_num(digit, times): result = digit if times >= 1 and digit > 0 and (digit < 10): for i in range(1, times): result = result * 10 + digit return result def sum(digit, num): result = 0 for x in range(1, num + 1): result += gen_num(digit, x) return result print(sum(1, 3)) def gen_num_with_str(digit, times): template = '{:d}' value = [digit] if times >= 1 and digit > 0 and (digit < 10): for i in range(1, times): template += '{:d}' value.append(digit) return int(template.format(*value)) def sum_with_str(digit, num): result = 0 for x in range(1, num + 1): result += gen_num_with_str(digit, x) return result print(sum_with_str(1, 3))
class DataLoader: pass class DataSaver: pass
class Dataloader: pass class Datasaver: pass
# -*- coding: utf-8 -*- ''' File name: code\2x2_positive_integer_matrix\sol_420.py Author: Vaidic Joshi Date created: Oct 20, 2018 Python Version: 3.x ''' # Solution to Project Euler Problem #420 :: 2x2 positive integer matrix # # For more information see: # https://projecteuler.net/problem=420 # Problem Statement ''' A positive integer matrix is a matrix whose elements are all positive integers. Some positive integer matrices can be expressed as a square of a positive integer matrix in two different ways. Here is an example: We define F(N) as the number of the 2x2 positive integer matrices which have a trace less than N and which can be expressed as a square of a positive integer matrix in two different ways. We can verify that F(50) = 7 and F(1000) = 1019. Find F(107). ''' # Solution # Solution Approach ''' '''
""" File name: code\x02x2_positive_integer_matrix\\sol_420.py Author: Vaidic Joshi Date created: Oct 20, 2018 Python Version: 3.x """ '\nA positive integer matrix is a matrix whose elements are all positive integers.\nSome positive integer matrices can be expressed as a square of a positive integer matrix in two different ways. Here is an example:\n\n\n\n\n\nWe define F(N) as the number of the 2x2 positive integer matrices which have a trace less than N and which can be expressed as a square of a positive integer matrix in two different ways.\nWe can verify that F(50) = 7 and F(1000) = 1019.\n\n\n\nFind F(107).\n' '\n'
class Node(object): id = None neighbours=[]#stores the ids of neighbour nodes distance_vector = [] neighbours_distance_vector = {}#stores the distance vector of neighbours def __init__(self, id): self.id = id #Initializing the distance vector and finding the neighbours def distance_from_neighbours(self,matrix,n): self.distance_vector = list(matrix[int(self.id)]) for i in range(n): if self.distance_vector[i]!=0: self.neighbours.append(i) self.neighbours_distance_vector[str(i)]=[] #sending the distance vector to other nodes def send_to_neighbours(self,Nodes): for i in range(len(self.distance_vector)): if(i in self.neighbours): (Nodes[i]).neighbours_distance_vector[self.id] = self.distance_vector for n in Nodes: n.recalculate(Nodes) #Calculating the distance vector by considering neighbours' distance vectors def recalculate(self,Nodes): for key,values in self.neighbours_distance_vector.items(): for i in range(len(values)): if (self.distance_vector[i] > values[i]+self.distance_vector[int(key)] or self.distance_vector[i]==0) and values[i]!=0 and self.distance_vector[int(key)]!=0: self.distance_vector[i] = values[i]+self.distance_vector[int(key)] self.send_to_neighbours(Nodes) #reading from file file = open('input.txt','r+') rows = file.readlines() #get number of nodes number_of_nodes = len(rows) #string to list list_rows = [] for row in rows: list_rows.append(row.split(',')) #string cells to int cells in matrix matrix=[] for i in range(len(list_rows)): matrix_row=[] for j in range(len(list_rows[i])): matrix_row.append(int(list_rows[i][j])) matrix.append(matrix_row) #calculating distance vectors for given matrix def calculate_distance(matrix): Nodes = [] for i in range(len(matrix)): Nodes.append(Node(str(i))) for node in Nodes: node.distance_from_neighbours(matrix,number_of_nodes) for node in Nodes: node.send_to_neighbours(Nodes) for x in Nodes: print(x.distance_vector) calculate_distance(matrix) while True: if input('enter x to exit or c to change a link:\t') == "x": break else: i = int(input('beginning node:\t')) j = int(input('destination:\t')) v = int(input('value:\t\t')) matrix matrix[i][j] = v matrix[j][i] = v calculate_distance(matrix)
class Node(object): id = None neighbours = [] distance_vector = [] neighbours_distance_vector = {} def __init__(self, id): self.id = id def distance_from_neighbours(self, matrix, n): self.distance_vector = list(matrix[int(self.id)]) for i in range(n): if self.distance_vector[i] != 0: self.neighbours.append(i) self.neighbours_distance_vector[str(i)] = [] def send_to_neighbours(self, Nodes): for i in range(len(self.distance_vector)): if i in self.neighbours: Nodes[i].neighbours_distance_vector[self.id] = self.distance_vector for n in Nodes: n.recalculate(Nodes) def recalculate(self, Nodes): for (key, values) in self.neighbours_distance_vector.items(): for i in range(len(values)): if (self.distance_vector[i] > values[i] + self.distance_vector[int(key)] or self.distance_vector[i] == 0) and values[i] != 0 and (self.distance_vector[int(key)] != 0): self.distance_vector[i] = values[i] + self.distance_vector[int(key)] self.send_to_neighbours(Nodes) file = open('input.txt', 'r+') rows = file.readlines() number_of_nodes = len(rows) list_rows = [] for row in rows: list_rows.append(row.split(',')) matrix = [] for i in range(len(list_rows)): matrix_row = [] for j in range(len(list_rows[i])): matrix_row.append(int(list_rows[i][j])) matrix.append(matrix_row) def calculate_distance(matrix): nodes = [] for i in range(len(matrix)): Nodes.append(node(str(i))) for node in Nodes: node.distance_from_neighbours(matrix, number_of_nodes) for node in Nodes: node.send_to_neighbours(Nodes) for x in Nodes: print(x.distance_vector) calculate_distance(matrix) while True: if input('enter x to exit or c to change a link:\t') == 'x': break else: i = int(input('beginning node:\t')) j = int(input('destination:\t')) v = int(input('value:\t\t')) matrix matrix[i][j] = v matrix[j][i] = v calculate_distance(matrix)
coordinates_80317C = ((155, 185), (155, 187), (155, 189), (156, 186), (156, 188), (156, 190), (157, 186), (157, 188), (157, 189), (157, 191), (158, 187), (158, 189), (158, 190), (158, 193), (159, 188), (159, 190), (159, 191), (159, 194), (159, 195), (159, 196), (160, 188), (160, 190), (160, 191), (160, 192), (160, 193), (161, 188), (161, 190), (161, 191), (161, 192), (161, 193), (161, 194), (161, 195), (161, 196), (162, 188), (162, 190), (162, 191), (162, 192), (162, 193), (162, 194), (162, 195), (162, 196), (163, 188), (163, 190), (163, 191), (163, 192), (163, 193), (163, 194), (163, 195), (163, 196), (164, 188), (164, 190), (164, 191), (164, 192), (164, 193), (164, 194), (164, 195), (164, 196), (165, 188), (165, 190), (165, 191), (165, 192), (165, 193), (165, 194), (165, 195), (165, 196), (166, 187), (166, 188), (166, 189), (166, 190), (166, 191), (166, 192), (166, 193), (166, 194), (166, 195), (166, 196), (167, 187), (167, 189), (167, 190), (167, 191), (167, 192), (167, 193), (167, 194), (167, 195), (167, 196), (168, 187), (168, 193), (168, 194), (168, 195), (168, 196), (169, 187), (169, 189), (169, 190), (169, 191), (169, 192), (169, 195), (169, 196), (170, 193), (170, 196), (171, 195), (172, 196), ) coordinates_FFB6C1 = ((113, 183), (113, 185), (113, 186), (113, 187), (113, 189), (114, 180), (114, 181), (114, 185), (114, 186), (114, 190), (114, 191), (115, 177), (115, 179), (115, 182), (115, 183), (115, 188), (115, 189), (115, 193), (116, 175), (116, 176), (116, 180), (116, 190), (116, 191), (116, 194), (117, 173), (117, 178), (117, 194), (118, 171), (118, 177), (119, 170), (119, 173), (120, 169), (120, 171), (120, 172), (120, 174), (121, 168), (121, 170), (121, 171), (121, 173), (122, 168), (122, 170), (122, 172), (123, 168), (123, 170), (123, 172), (124, 167), (124, 169), (124, 171), (125, 167), (125, 170), (126, 167), (126, 170), (127, 168), (127, 170), (128, 169), (128, 170), (129, 170), (192, 167), (193, 166), (193, 167), (194, 166), (194, 167), (195, 165), (195, 167), (196, 164), (196, 166), (196, 167), (197, 164), (197, 166), (197, 168), (198, 165), (198, 168), (199, 165), (199, 167), (199, 169), (200, 166), (200, 169), (201, 166), (201, 168), (201, 170), (202, 167), (202, 170), (203, 168), (203, 171), (204, 168), (204, 172), (205, 169), (205, 173), (206, 174), (207, 172), (207, 175), (208, 173), (208, 176), (209, 174), (209, 178), (209, 191), (210, 176), (210, 179), (210, 180), (210, 189), (210, 191), (211, 178), (211, 181), (211, 186), (211, 187), (211, 190), (212, 179), (212, 183), (212, 184), (212, 189), (213, 181), (213, 183), (213, 184), (213, 185), (213, 187), ) coordinates_FFE4C4 = () coordinates_FFF400 = ((127, 181), (127, 183), (127, 184), (127, 185), (127, 186), (128, 181), (128, 187), (128, 188), (128, 189), (128, 190), (128, 191), (128, 192), (128, 194), (129, 180), (129, 182), (129, 183), (129, 184), (129, 185), (129, 186), (129, 194), (130, 180), (130, 182), (130, 183), (130, 184), (130, 185), (130, 186), (130, 187), (130, 188), (130, 189), (130, 190), (130, 191), (130, 192), (130, 194), (131, 171), (131, 179), (131, 181), (131, 182), (131, 183), (131, 184), (131, 185), (131, 186), (131, 187), (131, 188), (131, 189), (131, 190), (131, 191), (131, 192), (131, 193), (131, 195), (132, 171), (132, 173), (132, 178), (132, 180), (132, 181), (132, 182), (132, 183), (132, 184), (132, 185), (132, 186), (132, 187), (132, 188), (132, 189), (132, 190), (132, 191), (132, 192), (132, 193), (132, 194), (133, 172), (133, 174), (133, 175), (133, 176), (133, 179), (133, 180), (133, 181), (133, 182), (133, 183), (133, 184), (133, 185), (133, 186), (133, 187), (133, 188), (133, 189), (133, 190), (133, 191), (133, 192), (133, 193), (133, 194), (133, 195), (134, 172), (134, 178), (134, 179), (134, 180), (134, 181), (134, 182), (134, 183), (134, 184), (134, 185), (134, 186), (134, 187), (134, 188), (134, 189), (134, 190), (134, 191), (134, 192), (134, 193), (134, 194), (134, 195), (134, 196), (135, 172), (135, 174), (135, 175), (135, 176), (135, 177), (135, 178), (135, 179), (135, 180), (135, 181), (135, 182), (135, 183), (135, 184), (135, 185), (135, 186), (135, 187), (135, 188), (135, 189), (135, 190), (135, 191), (135, 192), (135, 193), (135, 194), (135, 195), (135, 196), (136, 173), (136, 175), (136, 176), (136, 177), (136, 178), (136, 179), (136, 180), (136, 181), (136, 182), (136, 183), (136, 184), (136, 185), (136, 186), (136, 187), (136, 188), (136, 189), (136, 190), (136, 191), (136, 192), (136, 193), (136, 194), (136, 195), (136, 196), (137, 176), (137, 177), (137, 178), (137, 179), (137, 180), (137, 181), (137, 182), (137, 183), (137, 184), (137, 185), (137, 186), (137, 187), (137, 188), (137, 189), (137, 190), (137, 191), (137, 192), (137, 193), (137, 194), (137, 195), (137, 196), (138, 174), (138, 176), (138, 177), (138, 178), (138, 179), (138, 180), (138, 181), (138, 182), (138, 183), (138, 184), (138, 185), (138, 186), (138, 187), (138, 188), (138, 189), (138, 190), (138, 191), (138, 192), (138, 193), (138, 194), (138, 195), (138, 196), (139, 175), (139, 177), (139, 178), (139, 179), (139, 180), (139, 181), (139, 182), (139, 183), (139, 184), (139, 185), (139, 186), (139, 187), (139, 188), (139, 189), (139, 190), (139, 191), (139, 192), (139, 193), (139, 194), (139, 195), (139, 196), (140, 175), (140, 177), (140, 178), (140, 179), (140, 180), (140, 181), (140, 182), (140, 183), (140, 184), (140, 185), (140, 186), (140, 187), (140, 188), (140, 189), (140, 190), (140, 191), (140, 192), (140, 193), (140, 194), (140, 195), (140, 196), (141, 175), (141, 177), (141, 178), (141, 179), (141, 180), (141, 181), (141, 182), (141, 183), (141, 184), (141, 185), (141, 186), (141, 187), (141, 188), (141, 189), (141, 190), (141, 191), (141, 192), (141, 193), (141, 194), (141, 195), (141, 196), (142, 175), (142, 177), (142, 178), (142, 179), (142, 180), (142, 181), (142, 182), (142, 183), (142, 184), (142, 185), (142, 186), (142, 187), (142, 188), (142, 189), (142, 190), (142, 191), (142, 192), (142, 193), (142, 194), (142, 195), (142, 196), (143, 174), (143, 176), (143, 177), (143, 178), (143, 179), (143, 180), (143, 181), (143, 182), (143, 183), (143, 184), (143, 185), (143, 186), (143, 187), (143, 188), (143, 189), (143, 190), (143, 191), (143, 192), (143, 193), (143, 194), (143, 195), (143, 196), (144, 174), (144, 176), (144, 177), (144, 178), (144, 179), (144, 180), (144, 181), (144, 182), (144, 183), (144, 184), (144, 185), (144, 186), (144, 187), (144, 188), (144, 189), (144, 190), (144, 191), (144, 192), (144, 193), (144, 194), (144, 195), (144, 196), (145, 173), (145, 175), (145, 176), (145, 177), (145, 178), (145, 179), (145, 180), (145, 181), (145, 182), (145, 183), (145, 184), (145, 185), (145, 186), (145, 187), (145, 188), (145, 189), (145, 190), (145, 191), (145, 192), (145, 193), (145, 194), (145, 195), (145, 196), (146, 172), (146, 174), (146, 175), (146, 176), (146, 177), (146, 178), (146, 179), (146, 180), (146, 181), (146, 182), (146, 183), (146, 184), (146, 185), (146, 186), (146, 187), (146, 188), (146, 189), (146, 190), (146, 191), (146, 192), (146, 193), (146, 194), (146, 195), (146, 196), (147, 172), (147, 174), (147, 175), (147, 176), (147, 177), (147, 178), (147, 179), (147, 180), (147, 181), (147, 182), (147, 183), (147, 184), (147, 185), (147, 186), (147, 187), (147, 188), (147, 189), (147, 190), (147, 191), (147, 192), (147, 193), (147, 194), (147, 195), (147, 196), (148, 171), (148, 173), (148, 174), (148, 175), (148, 176), (148, 177), (148, 178), (148, 179), (148, 180), (148, 181), (148, 182), (148, 183), (148, 184), (148, 185), (148, 186), (148, 187), (148, 188), (148, 189), (148, 190), (148, 191), (148, 192), (148, 193), (148, 194), (148, 195), (148, 196), (149, 171), (149, 173), (149, 174), (149, 175), (149, 176), (149, 177), (149, 178), (149, 179), (149, 180), (149, 181), (149, 182), (149, 183), (149, 184), (149, 185), (149, 186), (149, 187), (149, 188), (149, 189), (149, 190), (149, 191), (149, 192), (149, 193), (149, 194), (149, 195), (149, 196), (150, 172), (150, 175), (150, 176), (150, 177), (150, 178), (150, 179), (150, 180), (150, 181), (150, 182), (150, 183), (150, 184), (150, 185), (150, 186), (150, 187), (150, 188), (150, 189), (150, 190), (150, 191), (150, 192), (150, 193), (150, 194), (150, 195), (150, 196), (151, 173), (151, 176), (151, 177), (151, 178), (151, 179), (151, 183), (151, 184), (151, 185), (151, 186), (151, 187), (151, 190), (151, 191), (151, 192), (151, 193), (151, 194), (151, 195), (151, 196), (152, 174), (152, 177), (152, 178), (152, 179), (152, 181), (152, 182), (152, 188), (152, 191), (152, 192), (152, 193), (152, 194), (152, 195), (153, 176), (153, 179), (153, 183), (153, 185), (153, 186), (153, 187), (153, 190), (153, 192), (153, 193), (153, 194), (153, 195), (153, 196), (154, 176), (154, 179), (154, 191), (154, 193), (154, 194), (154, 195), (155, 177), (155, 178), (155, 192), (155, 194), (156, 178), (156, 193), (156, 194), (157, 176), (157, 178), (157, 195), (158, 176), (158, 178), (159, 175), (159, 178), (160, 174), (160, 177), (160, 178), (161, 173), (161, 176), (161, 177), (161, 178), (162, 172), (162, 175), (162, 177), (162, 178), (163, 173), (163, 176), (163, 177), (163, 178), (164, 174), (164, 178), (165, 175), (165, 178), (166, 176), (166, 178), (167, 176), (167, 178), (168, 176), (168, 178), (169, 176), (169, 178), (170, 175), (170, 178), (171, 175), (171, 178), (171, 185), (171, 187), (171, 188), (171, 189), (171, 191), (172, 174), (172, 176), (172, 177), (172, 178), (172, 184), (172, 193), (173, 173), (173, 175), (173, 176), (173, 177), (173, 178), (173, 181), (173, 182), (173, 185), (173, 186), (173, 187), (173, 188), (173, 189), (173, 190), (173, 191), (173, 194), (174, 174), (174, 175), (174, 176), (174, 177), (174, 178), (174, 179), (174, 184), (174, 185), (174, 186), (174, 187), (174, 188), (174, 189), (174, 190), (174, 191), (174, 192), (174, 193), (174, 195), (175, 170), (175, 173), (175, 174), (175, 175), (175, 176), (175, 177), (175, 178), (175, 179), (175, 180), (175, 181), (175, 182), (175, 183), (175, 184), (175, 185), (175, 186), (175, 187), (175, 188), (175, 189), (175, 190), (175, 191), (175, 192), (175, 193), (175, 194), (176, 169), (176, 171), (176, 172), (176, 173), (176, 174), (176, 175), (176, 176), (176, 177), (176, 178), (176, 179), (176, 180), (176, 181), (176, 182), (176, 183), (176, 184), (176, 185), (176, 186), (176, 187), (176, 188), (176, 189), (176, 190), (176, 191), (176, 192), (176, 193), (176, 194), (176, 195), (177, 170), (177, 172), (177, 173), (177, 174), (177, 175), (177, 176), (177, 177), (177, 178), (177, 179), (177, 180), (177, 181), (177, 182), (177, 183), (177, 184), (177, 185), (177, 186), (177, 187), (177, 188), (177, 189), (177, 190), (177, 191), (177, 192), (177, 193), (177, 194), (177, 195), (177, 196), (178, 170), (178, 172), (178, 173), (178, 174), (178, 175), (178, 176), (178, 177), (178, 178), (178, 179), (178, 180), (178, 181), (178, 182), (178, 183), (178, 184), (178, 185), (178, 186), (178, 187), (178, 188), (178, 189), (178, 190), (178, 191), (178, 192), (178, 193), (178, 194), (178, 195), (178, 196), (179, 171), (179, 173), (179, 174), (179, 175), (179, 176), (179, 177), (179, 178), (179, 179), (179, 180), (179, 181), (179, 182), (179, 183), (179, 184), (179, 185), (179, 186), (179, 187), (179, 188), (179, 189), (179, 190), (179, 191), (179, 192), (179, 193), (179, 194), (179, 195), (179, 196), (180, 171), (180, 173), (180, 174), (180, 175), (180, 176), (180, 177), (180, 178), (180, 179), (180, 180), (180, 181), (180, 182), (180, 183), (180, 184), (180, 185), (180, 186), (180, 187), (180, 188), (180, 189), (180, 190), (180, 191), (180, 192), (180, 193), (180, 194), (180, 195), (180, 196), (181, 172), (181, 174), (181, 175), (181, 176), (181, 177), (181, 178), (181, 179), (181, 180), (181, 181), (181, 182), (181, 183), (181, 184), (181, 185), (181, 186), (181, 187), (181, 188), (181, 189), (181, 190), (181, 191), (181, 192), (181, 193), (181, 194), (181, 195), (181, 196), (182, 172), (182, 174), (182, 175), (182, 176), (182, 177), (182, 178), (182, 179), (182, 180), (182, 181), (182, 182), (182, 183), (182, 184), (182, 185), (182, 186), (182, 187), (182, 188), (182, 189), (182, 190), (182, 191), (182, 192), (182, 193), (182, 194), (182, 195), (182, 196), (183, 171), (183, 173), (183, 174), (183, 175), (183, 176), (183, 177), (183, 178), (183, 179), (183, 180), (183, 181), (183, 182), (183, 183), (183, 184), (183, 185), (183, 186), (183, 187), (183, 188), (183, 189), (183, 190), (183, 191), (183, 192), (183, 193), (183, 194), (183, 195), (183, 196), (184, 171), (184, 173), (184, 174), (184, 175), (184, 176), (184, 177), (184, 178), (184, 179), (184, 180), (184, 181), (184, 182), (184, 183), (184, 184), (184, 185), (184, 186), (184, 187), (184, 188), (184, 189), (184, 190), (184, 191), (184, 192), (184, 193), (184, 194), (184, 195), (184, 196), (185, 170), (185, 172), (185, 173), (185, 174), (185, 175), (185, 176), (185, 177), (185, 178), (185, 179), (185, 180), (185, 181), (185, 182), (185, 183), (185, 184), (185, 185), (185, 186), (185, 187), (185, 188), (185, 189), (185, 190), (185, 191), (185, 192), (185, 193), (185, 194), (185, 195), (185, 196), (186, 170), (186, 172), (186, 173), (186, 174), (186, 175), (186, 176), (186, 177), (186, 178), (186, 179), (186, 180), (186, 181), (186, 182), (186, 183), (186, 184), (186, 185), (186, 186), (186, 187), (186, 188), (186, 189), (186, 190), (186, 191), (186, 192), (186, 193), (186, 194), (186, 195), (186, 196), (187, 169), (187, 171), (187, 172), (187, 173), (187, 174), (187, 175), (187, 176), (187, 177), (187, 178), (187, 179), (187, 180), (187, 181), (187, 182), (187, 183), (187, 184), (187, 185), (187, 186), (187, 187), (187, 188), (187, 189), (187, 190), (187, 191), (187, 192), (187, 193), (187, 194), (187, 195), (187, 196), (188, 168), (188, 170), (188, 173), (188, 176), (188, 177), (188, 178), (188, 179), (188, 180), (188, 181), (188, 182), (188, 183), (188, 184), (188, 185), (188, 186), (188, 187), (188, 188), (188, 189), (188, 190), (188, 191), (188, 192), (188, 193), (188, 194), (188, 195), (188, 196), (189, 168), (189, 172), (189, 173), (189, 174), (189, 177), (189, 178), (189, 179), (189, 180), (189, 181), (189, 182), (189, 183), (189, 184), (189, 185), (189, 186), (189, 187), (189, 188), (189, 189), (189, 190), (189, 191), (189, 192), (189, 193), (189, 194), (189, 195), (189, 196), (190, 168), (190, 170), (190, 176), (190, 179), (190, 180), (190, 181), (190, 182), (190, 183), (190, 184), (190, 185), (190, 186), (190, 187), (190, 188), (190, 189), (190, 190), (190, 191), (190, 192), (190, 193), (190, 194), (190, 195), (190, 196), (191, 168), (191, 177), (191, 180), (191, 181), (191, 182), (191, 183), (191, 184), (191, 185), (191, 186), (191, 187), (191, 188), (191, 189), (191, 190), (191, 191), (191, 192), (191, 193), (191, 194), (191, 195), (191, 196), (192, 179), (192, 181), (192, 182), (192, 183), (192, 184), (192, 185), (192, 186), (192, 187), (192, 188), (192, 189), (192, 190), (192, 191), (192, 192), (192, 193), (192, 194), (192, 195), (192, 196), (193, 180), (193, 183), (193, 184), (193, 185), (193, 186), (193, 187), (193, 188), (193, 189), (193, 190), (193, 191), (193, 192), (193, 193), (194, 181), (194, 184), (194, 185), (194, 186), (194, 187), (194, 188), (194, 189), (194, 190), (194, 191), (194, 192), (194, 194), (194, 195), (194, 196), (195, 183), (195, 186), (195, 187), (195, 188), (195, 189), (195, 190), (195, 191), (195, 193), (196, 184), (196, 185), (196, 189), (196, 190), (196, 192), (197, 186), (197, 188), (197, 191), (198, 191), ) coordinates_FCBEB6 = ((154, 151), (155, 151), (155, 152), (156, 151), (157, 151), (158, 151), (159, 150), (159, 151), (160, 150), (160, 151), (161, 151), (162, 151), ) coordinates_24C6E0 = () coordinates_FF575F = ((117, 182), (117, 184), (117, 185), (117, 186), (117, 188), (118, 180), (118, 190), (118, 191), (119, 178), (119, 179), (119, 182), (119, 183), (119, 184), (119, 185), (119, 186), (119, 187), (119, 188), (119, 192), (119, 193), (120, 177), (120, 180), (120, 181), (120, 182), (120, 183), (120, 184), (120, 185), (120, 186), (120, 187), (120, 188), (120, 189), (120, 190), (120, 191), (120, 194), (120, 195), (120, 196), (121, 176), (121, 179), (121, 180), (121, 181), (121, 182), (121, 183), (121, 184), (121, 185), (121, 186), (121, 187), (121, 188), (121, 189), (121, 190), (121, 191), (121, 192), (121, 193), (122, 175), (122, 177), (122, 178), (122, 179), (122, 180), (122, 181), (122, 182), (122, 183), (122, 184), (122, 185), (122, 186), (122, 187), (122, 188), (122, 189), (122, 190), (122, 191), (122, 192), (122, 193), (122, 194), (122, 195), (123, 174), (123, 176), (123, 177), (123, 178), (123, 179), (123, 180), (123, 181), (123, 182), (123, 183), (123, 184), (123, 185), (123, 186), (123, 187), (123, 188), (123, 189), (123, 190), (123, 191), (123, 192), (123, 193), (123, 195), (124, 173), (124, 175), (124, 176), (124, 177), (124, 178), (124, 179), (124, 190), (124, 191), (124, 192), (124, 193), (124, 195), (125, 173), (125, 176), (125, 177), (125, 178), (125, 179), (125, 181), (125, 182), (125, 183), (125, 184), (125, 185), (125, 186), (125, 187), (125, 188), (125, 189), (125, 190), (125, 194), (126, 172), (126, 174), (126, 175), (126, 176), (126, 177), (126, 179), (126, 190), (126, 191), (126, 192), (126, 194), (127, 177), (127, 179), (128, 177), (128, 178), (129, 172), (129, 174), (129, 175), (129, 176), (129, 178), (130, 173), (130, 177), (131, 174), (131, 176), (191, 172), (191, 174), (192, 175), (192, 176), (193, 169), (193, 172), (193, 173), (193, 174), (193, 177), (194, 169), (194, 171), (194, 172), (194, 173), (194, 174), (194, 175), (194, 176), (194, 178), (195, 170), (195, 172), (195, 173), (195, 174), (195, 175), (195, 176), (195, 177), (195, 180), (196, 170), (196, 172), (196, 173), (196, 174), (196, 175), (196, 176), (196, 177), (196, 178), (196, 181), (197, 170), (197, 172), (197, 173), (197, 174), (197, 175), (197, 176), (197, 177), (197, 178), (197, 179), (197, 180), (197, 183), (198, 170), (198, 172), (198, 173), (198, 174), (198, 175), (198, 176), (198, 177), (198, 178), (198, 179), (198, 180), (198, 181), (198, 184), (199, 171), (199, 173), (199, 174), (199, 175), (199, 176), (199, 177), (199, 178), (199, 179), (199, 180), (199, 181), (199, 182), (199, 183), (199, 186), (199, 187), (200, 171), (200, 173), (200, 174), (200, 175), (200, 176), (200, 177), (200, 178), (200, 179), (200, 180), (200, 181), (200, 182), (200, 183), (200, 184), (200, 185), (200, 188), (200, 189), (200, 191), (201, 172), (201, 174), (201, 175), (201, 176), (201, 177), (201, 178), (201, 179), (201, 180), (201, 181), (201, 182), (201, 183), (201, 184), (201, 185), (201, 186), (201, 187), (201, 191), (202, 173), (202, 175), (202, 176), (202, 177), (202, 178), (202, 179), (202, 180), (202, 181), (202, 182), (202, 183), (202, 184), (202, 185), (202, 186), (202, 187), (202, 188), (202, 189), (202, 191), (203, 176), (203, 177), (203, 178), (203, 179), (203, 180), (203, 181), (203, 182), (203, 183), (203, 184), (203, 185), (203, 186), (203, 187), (203, 188), (203, 189), (203, 191), (204, 174), (204, 177), (204, 178), (204, 179), (204, 180), (204, 181), (204, 182), (204, 183), (204, 184), (204, 185), (204, 186), (204, 187), (204, 188), (204, 189), (204, 191), (205, 175), (205, 178), (205, 179), (205, 180), (205, 181), (205, 182), (205, 183), (205, 184), (205, 185), (205, 186), (205, 187), (205, 188), (205, 189), (205, 191), (206, 177), (206, 180), (206, 181), (206, 182), (206, 183), (206, 184), (206, 185), (206, 186), (206, 187), (206, 188), (206, 189), (206, 191), (207, 178), (207, 181), (207, 182), (207, 183), (207, 184), (207, 185), (207, 186), (207, 187), (207, 191), (208, 180), (208, 188), (208, 189), (209, 181), (209, 183), (209, 184), (209, 185), (209, 187), ) coordinates_00008B = ((118, 196), (126, 196), (127, 196), (128, 196), (129, 196), (196, 194), (196, 196), (197, 194), (198, 193), (198, 195), (198, 196), (199, 193), (199, 195), (199, 196), (200, 193), (200, 195), (200, 196), (201, 193), (201, 195), (201, 196), (202, 193), (202, 195), (202, 196), (203, 193), (203, 195), (203, 196), (204, 193), (204, 195), (205, 193), (205, 195), (206, 193), (206, 195), (207, 193), (207, 194), (208, 193), (209, 193), ) coordinates_DE00CA = ((127, 166), (128, 165), (128, 167), (129, 165), (129, 168), (130, 165), (130, 167), (130, 169), (131, 165), (131, 167), (131, 169), (132, 165), (132, 167), (132, 169), (133, 164), (133, 166), (133, 167), (133, 169), (134, 164), (134, 166), (134, 167), (134, 168), (134, 170), (135, 164), (135, 166), (135, 167), (135, 168), (135, 170), (136, 164), (136, 166), (136, 167), (136, 168), (136, 169), (136, 170), (136, 171), (137, 164), (137, 166), (137, 167), (137, 168), (137, 169), (137, 171), (138, 164), (138, 166), (138, 167), (138, 168), (138, 169), (138, 170), (138, 172), (139, 164), (139, 166), (139, 167), (139, 168), (139, 169), (139, 170), (139, 171), (139, 173), (140, 164), (140, 166), (140, 167), (140, 168), (140, 169), (140, 170), (140, 171), (140, 173), (141, 164), (141, 166), (141, 167), (141, 168), (141, 169), (141, 170), (141, 171), (141, 173), (142, 164), (142, 166), (142, 167), (142, 168), (142, 169), (142, 170), (142, 172), (143, 164), (143, 166), (143, 167), (143, 168), (143, 169), (143, 170), (143, 172), (144, 164), (144, 166), (144, 167), (144, 168), (144, 169), (144, 171), (145, 164), (145, 166), (145, 167), (145, 168), (145, 169), (145, 171), (146, 164), (146, 165), (146, 166), (146, 167), (146, 168), (146, 170), (147, 165), (147, 167), (147, 169), (148, 165), (148, 167), (148, 169), (149, 165), (150, 165), (150, 167), (151, 166), (152, 166), (172, 166), (172, 167), (173, 166), (174, 166), (174, 168), (175, 165), (175, 167), (176, 165), (176, 167), (177, 164), (177, 167), (178, 164), (178, 166), (178, 168), (179, 163), (179, 165), (179, 166), (179, 167), (179, 168), (180, 163), (180, 165), (180, 166), (180, 167), (180, 169), (181, 163), (181, 165), (181, 166), (181, 167), (181, 169), (182, 162), (182, 164), (182, 165), (182, 166), (182, 167), (182, 169), (183, 162), (183, 164), (183, 165), (183, 166), (183, 167), (183, 169), (184, 161), (184, 163), (184, 164), (184, 165), (184, 166), (184, 167), (184, 169), (185, 161), (185, 163), (185, 164), (185, 165), (185, 166), (185, 168), (186, 161), (186, 163), (186, 164), (186, 165), (186, 167), (187, 161), (187, 163), (187, 164), (187, 166), (188, 162), (188, 163), (188, 165), (189, 162), (189, 165), (190, 162), (190, 165), (191, 163), (191, 165), (192, 163), (192, 164), (193, 164), (194, 164), ) coordinates_2797FF = ((154, 181), (155, 183), (157, 184), (158, 184), (158, 185), (159, 184), (159, 185), (160, 184), (160, 186), (161, 184), (161, 186), (162, 183), (162, 186), (163, 183), (163, 186), (164, 183), (164, 185), (165, 184), (165, 185), (166, 185), (167, 185), (168, 184), (168, 185), (169, 183), (169, 185), (170, 183), (171, 182), ) coordinates_5CFFFC = ((156, 180), (156, 182), (157, 180), (157, 182), (158, 180), (158, 182), (159, 180), (159, 182), (160, 180), (160, 182), (161, 180), (161, 181), (162, 180), (162, 181), (163, 180), (163, 181), (164, 180), (164, 181), (165, 180), (165, 182), (166, 180), (166, 183), (167, 180), (167, 182), (168, 180), (169, 180), (169, 181), (170, 180), ) coordinates_232A8E = ((151, 169), (151, 171), (152, 168), (152, 172), (153, 168), (153, 170), (153, 173), (154, 168), (154, 170), (154, 171), (154, 172), (154, 174), (155, 168), (155, 170), (155, 171), (155, 172), (155, 174), (156, 168), (156, 170), (156, 171), (156, 172), (156, 174), (157, 167), (157, 169), (157, 170), (157, 171), (157, 172), (157, 174), (158, 167), (158, 169), (158, 170), (158, 171), (158, 172), (158, 174), (159, 167), (159, 169), (159, 170), (159, 171), (159, 173), (160, 168), (160, 170), (160, 172), (161, 169), (161, 171), (162, 169), (162, 170), (163, 169), (163, 171), (164, 169), (164, 172), (165, 168), (165, 170), (165, 171), (165, 173), (166, 168), (166, 170), (166, 171), (166, 172), (166, 174), (167, 167), (167, 169), (167, 170), (167, 171), (167, 172), (167, 174), (168, 167), (168, 169), (168, 170), (168, 171), (168, 172), (168, 174), (169, 167), (169, 169), (169, 170), (169, 171), (169, 173), (170, 168), (170, 170), (170, 171), (170, 173), (171, 168), (171, 172), (172, 169), (172, 171), )
coordinates_80317_c = ((155, 185), (155, 187), (155, 189), (156, 186), (156, 188), (156, 190), (157, 186), (157, 188), (157, 189), (157, 191), (158, 187), (158, 189), (158, 190), (158, 193), (159, 188), (159, 190), (159, 191), (159, 194), (159, 195), (159, 196), (160, 188), (160, 190), (160, 191), (160, 192), (160, 193), (161, 188), (161, 190), (161, 191), (161, 192), (161, 193), (161, 194), (161, 195), (161, 196), (162, 188), (162, 190), (162, 191), (162, 192), (162, 193), (162, 194), (162, 195), (162, 196), (163, 188), (163, 190), (163, 191), (163, 192), (163, 193), (163, 194), (163, 195), (163, 196), (164, 188), (164, 190), (164, 191), (164, 192), (164, 193), (164, 194), (164, 195), (164, 196), (165, 188), (165, 190), (165, 191), (165, 192), (165, 193), (165, 194), (165, 195), (165, 196), (166, 187), (166, 188), (166, 189), (166, 190), (166, 191), (166, 192), (166, 193), (166, 194), (166, 195), (166, 196), (167, 187), (167, 189), (167, 190), (167, 191), (167, 192), (167, 193), (167, 194), (167, 195), (167, 196), (168, 187), (168, 193), (168, 194), (168, 195), (168, 196), (169, 187), (169, 189), (169, 190), (169, 191), (169, 192), (169, 195), (169, 196), (170, 193), (170, 196), (171, 195), (172, 196)) coordinates_ffb6_c1 = ((113, 183), (113, 185), (113, 186), (113, 187), (113, 189), (114, 180), (114, 181), (114, 185), (114, 186), (114, 190), (114, 191), (115, 177), (115, 179), (115, 182), (115, 183), (115, 188), (115, 189), (115, 193), (116, 175), (116, 176), (116, 180), (116, 190), (116, 191), (116, 194), (117, 173), (117, 178), (117, 194), (118, 171), (118, 177), (119, 170), (119, 173), (120, 169), (120, 171), (120, 172), (120, 174), (121, 168), (121, 170), (121, 171), (121, 173), (122, 168), (122, 170), (122, 172), (123, 168), (123, 170), (123, 172), (124, 167), (124, 169), (124, 171), (125, 167), (125, 170), (126, 167), (126, 170), (127, 168), (127, 170), (128, 169), (128, 170), (129, 170), (192, 167), (193, 166), (193, 167), (194, 166), (194, 167), (195, 165), (195, 167), (196, 164), (196, 166), (196, 167), (197, 164), (197, 166), (197, 168), (198, 165), (198, 168), (199, 165), (199, 167), (199, 169), (200, 166), (200, 169), (201, 166), (201, 168), (201, 170), (202, 167), (202, 170), (203, 168), (203, 171), (204, 168), (204, 172), (205, 169), (205, 173), (206, 174), (207, 172), (207, 175), (208, 173), (208, 176), (209, 174), (209, 178), (209, 191), (210, 176), (210, 179), (210, 180), (210, 189), (210, 191), (211, 178), (211, 181), (211, 186), (211, 187), (211, 190), (212, 179), (212, 183), (212, 184), (212, 189), (213, 181), (213, 183), (213, 184), (213, 185), (213, 187)) coordinates_ffe4_c4 = () coordinates_fff400 = ((127, 181), (127, 183), (127, 184), (127, 185), (127, 186), (128, 181), (128, 187), (128, 188), (128, 189), (128, 190), (128, 191), (128, 192), (128, 194), (129, 180), (129, 182), (129, 183), (129, 184), (129, 185), (129, 186), (129, 194), (130, 180), (130, 182), (130, 183), (130, 184), (130, 185), (130, 186), (130, 187), (130, 188), (130, 189), (130, 190), (130, 191), (130, 192), (130, 194), (131, 171), (131, 179), (131, 181), (131, 182), (131, 183), (131, 184), (131, 185), (131, 186), (131, 187), (131, 188), (131, 189), (131, 190), (131, 191), (131, 192), (131, 193), (131, 195), (132, 171), (132, 173), (132, 178), (132, 180), (132, 181), (132, 182), (132, 183), (132, 184), (132, 185), (132, 186), (132, 187), (132, 188), (132, 189), (132, 190), (132, 191), (132, 192), (132, 193), (132, 194), (133, 172), (133, 174), (133, 175), (133, 176), (133, 179), (133, 180), (133, 181), (133, 182), (133, 183), (133, 184), (133, 185), (133, 186), (133, 187), (133, 188), (133, 189), (133, 190), (133, 191), (133, 192), (133, 193), (133, 194), (133, 195), (134, 172), (134, 178), (134, 179), (134, 180), (134, 181), (134, 182), (134, 183), (134, 184), (134, 185), (134, 186), (134, 187), (134, 188), (134, 189), (134, 190), (134, 191), (134, 192), (134, 193), (134, 194), (134, 195), (134, 196), (135, 172), (135, 174), (135, 175), (135, 176), (135, 177), (135, 178), (135, 179), (135, 180), (135, 181), (135, 182), (135, 183), (135, 184), (135, 185), (135, 186), (135, 187), (135, 188), (135, 189), (135, 190), (135, 191), (135, 192), (135, 193), (135, 194), (135, 195), (135, 196), (136, 173), (136, 175), (136, 176), (136, 177), (136, 178), (136, 179), (136, 180), (136, 181), (136, 182), (136, 183), (136, 184), (136, 185), (136, 186), (136, 187), (136, 188), (136, 189), (136, 190), (136, 191), (136, 192), (136, 193), (136, 194), (136, 195), (136, 196), (137, 176), (137, 177), (137, 178), (137, 179), (137, 180), (137, 181), (137, 182), (137, 183), (137, 184), (137, 185), (137, 186), (137, 187), (137, 188), (137, 189), (137, 190), (137, 191), (137, 192), (137, 193), (137, 194), (137, 195), (137, 196), (138, 174), (138, 176), (138, 177), (138, 178), (138, 179), (138, 180), (138, 181), (138, 182), (138, 183), (138, 184), (138, 185), (138, 186), (138, 187), (138, 188), (138, 189), (138, 190), (138, 191), (138, 192), (138, 193), (138, 194), (138, 195), (138, 196), (139, 175), (139, 177), (139, 178), (139, 179), (139, 180), (139, 181), (139, 182), (139, 183), (139, 184), (139, 185), (139, 186), (139, 187), (139, 188), (139, 189), (139, 190), (139, 191), (139, 192), (139, 193), (139, 194), (139, 195), (139, 196), (140, 175), (140, 177), (140, 178), (140, 179), (140, 180), (140, 181), (140, 182), (140, 183), (140, 184), (140, 185), (140, 186), (140, 187), (140, 188), (140, 189), (140, 190), (140, 191), (140, 192), (140, 193), (140, 194), (140, 195), (140, 196), (141, 175), (141, 177), (141, 178), (141, 179), (141, 180), (141, 181), (141, 182), (141, 183), (141, 184), (141, 185), (141, 186), (141, 187), (141, 188), (141, 189), (141, 190), (141, 191), (141, 192), (141, 193), (141, 194), (141, 195), (141, 196), (142, 175), (142, 177), (142, 178), (142, 179), (142, 180), (142, 181), (142, 182), (142, 183), (142, 184), (142, 185), (142, 186), (142, 187), (142, 188), (142, 189), (142, 190), (142, 191), (142, 192), (142, 193), (142, 194), (142, 195), (142, 196), (143, 174), (143, 176), (143, 177), (143, 178), (143, 179), (143, 180), (143, 181), (143, 182), (143, 183), (143, 184), (143, 185), (143, 186), (143, 187), (143, 188), (143, 189), (143, 190), (143, 191), (143, 192), (143, 193), (143, 194), (143, 195), (143, 196), (144, 174), (144, 176), (144, 177), (144, 178), (144, 179), (144, 180), (144, 181), (144, 182), (144, 183), (144, 184), (144, 185), (144, 186), (144, 187), (144, 188), (144, 189), (144, 190), (144, 191), (144, 192), (144, 193), (144, 194), (144, 195), (144, 196), (145, 173), (145, 175), (145, 176), (145, 177), (145, 178), (145, 179), (145, 180), (145, 181), (145, 182), (145, 183), (145, 184), (145, 185), (145, 186), (145, 187), (145, 188), (145, 189), (145, 190), (145, 191), (145, 192), (145, 193), (145, 194), (145, 195), (145, 196), (146, 172), (146, 174), (146, 175), (146, 176), (146, 177), (146, 178), (146, 179), (146, 180), (146, 181), (146, 182), (146, 183), (146, 184), (146, 185), (146, 186), (146, 187), (146, 188), (146, 189), (146, 190), (146, 191), (146, 192), (146, 193), (146, 194), (146, 195), (146, 196), (147, 172), (147, 174), (147, 175), (147, 176), (147, 177), (147, 178), (147, 179), (147, 180), (147, 181), (147, 182), (147, 183), (147, 184), (147, 185), (147, 186), (147, 187), (147, 188), (147, 189), (147, 190), (147, 191), (147, 192), (147, 193), (147, 194), (147, 195), (147, 196), (148, 171), (148, 173), (148, 174), (148, 175), (148, 176), (148, 177), (148, 178), (148, 179), (148, 180), (148, 181), (148, 182), (148, 183), (148, 184), (148, 185), (148, 186), (148, 187), (148, 188), (148, 189), (148, 190), (148, 191), (148, 192), (148, 193), (148, 194), (148, 195), (148, 196), (149, 171), (149, 173), (149, 174), (149, 175), (149, 176), (149, 177), (149, 178), (149, 179), (149, 180), (149, 181), (149, 182), (149, 183), (149, 184), (149, 185), (149, 186), (149, 187), (149, 188), (149, 189), (149, 190), (149, 191), (149, 192), (149, 193), (149, 194), (149, 195), (149, 196), (150, 172), (150, 175), (150, 176), (150, 177), (150, 178), (150, 179), (150, 180), (150, 181), (150, 182), (150, 183), (150, 184), (150, 185), (150, 186), (150, 187), (150, 188), (150, 189), (150, 190), (150, 191), (150, 192), (150, 193), (150, 194), (150, 195), (150, 196), (151, 173), (151, 176), (151, 177), (151, 178), (151, 179), (151, 183), (151, 184), (151, 185), (151, 186), (151, 187), (151, 190), (151, 191), (151, 192), (151, 193), (151, 194), (151, 195), (151, 196), (152, 174), (152, 177), (152, 178), (152, 179), (152, 181), (152, 182), (152, 188), (152, 191), (152, 192), (152, 193), (152, 194), (152, 195), (153, 176), (153, 179), (153, 183), (153, 185), (153, 186), (153, 187), (153, 190), (153, 192), (153, 193), (153, 194), (153, 195), (153, 196), (154, 176), (154, 179), (154, 191), (154, 193), (154, 194), (154, 195), (155, 177), (155, 178), (155, 192), (155, 194), (156, 178), (156, 193), (156, 194), (157, 176), (157, 178), (157, 195), (158, 176), (158, 178), (159, 175), (159, 178), (160, 174), (160, 177), (160, 178), (161, 173), (161, 176), (161, 177), (161, 178), (162, 172), (162, 175), (162, 177), (162, 178), (163, 173), (163, 176), (163, 177), (163, 178), (164, 174), (164, 178), (165, 175), (165, 178), (166, 176), (166, 178), (167, 176), (167, 178), (168, 176), (168, 178), (169, 176), (169, 178), (170, 175), (170, 178), (171, 175), (171, 178), (171, 185), (171, 187), (171, 188), (171, 189), (171, 191), (172, 174), (172, 176), (172, 177), (172, 178), (172, 184), (172, 193), (173, 173), (173, 175), (173, 176), (173, 177), (173, 178), (173, 181), (173, 182), (173, 185), (173, 186), (173, 187), (173, 188), (173, 189), (173, 190), (173, 191), (173, 194), (174, 174), (174, 175), (174, 176), (174, 177), (174, 178), (174, 179), (174, 184), (174, 185), (174, 186), (174, 187), (174, 188), (174, 189), (174, 190), (174, 191), (174, 192), (174, 193), (174, 195), (175, 170), (175, 173), (175, 174), (175, 175), (175, 176), (175, 177), (175, 178), (175, 179), (175, 180), (175, 181), (175, 182), (175, 183), (175, 184), (175, 185), (175, 186), (175, 187), (175, 188), (175, 189), (175, 190), (175, 191), (175, 192), (175, 193), (175, 194), (176, 169), (176, 171), (176, 172), (176, 173), (176, 174), (176, 175), (176, 176), (176, 177), (176, 178), (176, 179), (176, 180), (176, 181), (176, 182), (176, 183), (176, 184), (176, 185), (176, 186), (176, 187), (176, 188), (176, 189), (176, 190), (176, 191), (176, 192), (176, 193), (176, 194), (176, 195), (177, 170), (177, 172), (177, 173), (177, 174), (177, 175), (177, 176), (177, 177), (177, 178), (177, 179), (177, 180), (177, 181), (177, 182), (177, 183), (177, 184), (177, 185), (177, 186), (177, 187), (177, 188), (177, 189), (177, 190), (177, 191), (177, 192), (177, 193), (177, 194), (177, 195), (177, 196), (178, 170), (178, 172), (178, 173), (178, 174), (178, 175), (178, 176), (178, 177), (178, 178), (178, 179), (178, 180), (178, 181), (178, 182), (178, 183), (178, 184), (178, 185), (178, 186), (178, 187), (178, 188), (178, 189), (178, 190), (178, 191), (178, 192), (178, 193), (178, 194), (178, 195), (178, 196), (179, 171), (179, 173), (179, 174), (179, 175), (179, 176), (179, 177), (179, 178), (179, 179), (179, 180), (179, 181), (179, 182), (179, 183), (179, 184), (179, 185), (179, 186), (179, 187), (179, 188), (179, 189), (179, 190), (179, 191), (179, 192), (179, 193), (179, 194), (179, 195), (179, 196), (180, 171), (180, 173), (180, 174), (180, 175), (180, 176), (180, 177), (180, 178), (180, 179), (180, 180), (180, 181), (180, 182), (180, 183), (180, 184), (180, 185), (180, 186), (180, 187), (180, 188), (180, 189), (180, 190), (180, 191), (180, 192), (180, 193), (180, 194), (180, 195), (180, 196), (181, 172), (181, 174), (181, 175), (181, 176), (181, 177), (181, 178), (181, 179), (181, 180), (181, 181), (181, 182), (181, 183), (181, 184), (181, 185), (181, 186), (181, 187), (181, 188), (181, 189), (181, 190), (181, 191), (181, 192), (181, 193), (181, 194), (181, 195), (181, 196), (182, 172), (182, 174), (182, 175), (182, 176), (182, 177), (182, 178), (182, 179), (182, 180), (182, 181), (182, 182), (182, 183), (182, 184), (182, 185), (182, 186), (182, 187), (182, 188), (182, 189), (182, 190), (182, 191), (182, 192), (182, 193), (182, 194), (182, 195), (182, 196), (183, 171), (183, 173), (183, 174), (183, 175), (183, 176), (183, 177), (183, 178), (183, 179), (183, 180), (183, 181), (183, 182), (183, 183), (183, 184), (183, 185), (183, 186), (183, 187), (183, 188), (183, 189), (183, 190), (183, 191), (183, 192), (183, 193), (183, 194), (183, 195), (183, 196), (184, 171), (184, 173), (184, 174), (184, 175), (184, 176), (184, 177), (184, 178), (184, 179), (184, 180), (184, 181), (184, 182), (184, 183), (184, 184), (184, 185), (184, 186), (184, 187), (184, 188), (184, 189), (184, 190), (184, 191), (184, 192), (184, 193), (184, 194), (184, 195), (184, 196), (185, 170), (185, 172), (185, 173), (185, 174), (185, 175), (185, 176), (185, 177), (185, 178), (185, 179), (185, 180), (185, 181), (185, 182), (185, 183), (185, 184), (185, 185), (185, 186), (185, 187), (185, 188), (185, 189), (185, 190), (185, 191), (185, 192), (185, 193), (185, 194), (185, 195), (185, 196), (186, 170), (186, 172), (186, 173), (186, 174), (186, 175), (186, 176), (186, 177), (186, 178), (186, 179), (186, 180), (186, 181), (186, 182), (186, 183), (186, 184), (186, 185), (186, 186), (186, 187), (186, 188), (186, 189), (186, 190), (186, 191), (186, 192), (186, 193), (186, 194), (186, 195), (186, 196), (187, 169), (187, 171), (187, 172), (187, 173), (187, 174), (187, 175), (187, 176), (187, 177), (187, 178), (187, 179), (187, 180), (187, 181), (187, 182), (187, 183), (187, 184), (187, 185), (187, 186), (187, 187), (187, 188), (187, 189), (187, 190), (187, 191), (187, 192), (187, 193), (187, 194), (187, 195), (187, 196), (188, 168), (188, 170), (188, 173), (188, 176), (188, 177), (188, 178), (188, 179), (188, 180), (188, 181), (188, 182), (188, 183), (188, 184), (188, 185), (188, 186), (188, 187), (188, 188), (188, 189), (188, 190), (188, 191), (188, 192), (188, 193), (188, 194), (188, 195), (188, 196), (189, 168), (189, 172), (189, 173), (189, 174), (189, 177), (189, 178), (189, 179), (189, 180), (189, 181), (189, 182), (189, 183), (189, 184), (189, 185), (189, 186), (189, 187), (189, 188), (189, 189), (189, 190), (189, 191), (189, 192), (189, 193), (189, 194), (189, 195), (189, 196), (190, 168), (190, 170), (190, 176), (190, 179), (190, 180), (190, 181), (190, 182), (190, 183), (190, 184), (190, 185), (190, 186), (190, 187), (190, 188), (190, 189), (190, 190), (190, 191), (190, 192), (190, 193), (190, 194), (190, 195), (190, 196), (191, 168), (191, 177), (191, 180), (191, 181), (191, 182), (191, 183), (191, 184), (191, 185), (191, 186), (191, 187), (191, 188), (191, 189), (191, 190), (191, 191), (191, 192), (191, 193), (191, 194), (191, 195), (191, 196), (192, 179), (192, 181), (192, 182), (192, 183), (192, 184), (192, 185), (192, 186), (192, 187), (192, 188), (192, 189), (192, 190), (192, 191), (192, 192), (192, 193), (192, 194), (192, 195), (192, 196), (193, 180), (193, 183), (193, 184), (193, 185), (193, 186), (193, 187), (193, 188), (193, 189), (193, 190), (193, 191), (193, 192), (193, 193), (194, 181), (194, 184), (194, 185), (194, 186), (194, 187), (194, 188), (194, 189), (194, 190), (194, 191), (194, 192), (194, 194), (194, 195), (194, 196), (195, 183), (195, 186), (195, 187), (195, 188), (195, 189), (195, 190), (195, 191), (195, 193), (196, 184), (196, 185), (196, 189), (196, 190), (196, 192), (197, 186), (197, 188), (197, 191), (198, 191)) coordinates_fcbeb6 = ((154, 151), (155, 151), (155, 152), (156, 151), (157, 151), (158, 151), (159, 150), (159, 151), (160, 150), (160, 151), (161, 151), (162, 151)) coordinates_24_c6_e0 = () coordinates_ff575_f = ((117, 182), (117, 184), (117, 185), (117, 186), (117, 188), (118, 180), (118, 190), (118, 191), (119, 178), (119, 179), (119, 182), (119, 183), (119, 184), (119, 185), (119, 186), (119, 187), (119, 188), (119, 192), (119, 193), (120, 177), (120, 180), (120, 181), (120, 182), (120, 183), (120, 184), (120, 185), (120, 186), (120, 187), (120, 188), (120, 189), (120, 190), (120, 191), (120, 194), (120, 195), (120, 196), (121, 176), (121, 179), (121, 180), (121, 181), (121, 182), (121, 183), (121, 184), (121, 185), (121, 186), (121, 187), (121, 188), (121, 189), (121, 190), (121, 191), (121, 192), (121, 193), (122, 175), (122, 177), (122, 178), (122, 179), (122, 180), (122, 181), (122, 182), (122, 183), (122, 184), (122, 185), (122, 186), (122, 187), (122, 188), (122, 189), (122, 190), (122, 191), (122, 192), (122, 193), (122, 194), (122, 195), (123, 174), (123, 176), (123, 177), (123, 178), (123, 179), (123, 180), (123, 181), (123, 182), (123, 183), (123, 184), (123, 185), (123, 186), (123, 187), (123, 188), (123, 189), (123, 190), (123, 191), (123, 192), (123, 193), (123, 195), (124, 173), (124, 175), (124, 176), (124, 177), (124, 178), (124, 179), (124, 190), (124, 191), (124, 192), (124, 193), (124, 195), (125, 173), (125, 176), (125, 177), (125, 178), (125, 179), (125, 181), (125, 182), (125, 183), (125, 184), (125, 185), (125, 186), (125, 187), (125, 188), (125, 189), (125, 190), (125, 194), (126, 172), (126, 174), (126, 175), (126, 176), (126, 177), (126, 179), (126, 190), (126, 191), (126, 192), (126, 194), (127, 177), (127, 179), (128, 177), (128, 178), (129, 172), (129, 174), (129, 175), (129, 176), (129, 178), (130, 173), (130, 177), (131, 174), (131, 176), (191, 172), (191, 174), (192, 175), (192, 176), (193, 169), (193, 172), (193, 173), (193, 174), (193, 177), (194, 169), (194, 171), (194, 172), (194, 173), (194, 174), (194, 175), (194, 176), (194, 178), (195, 170), (195, 172), (195, 173), (195, 174), (195, 175), (195, 176), (195, 177), (195, 180), (196, 170), (196, 172), (196, 173), (196, 174), (196, 175), (196, 176), (196, 177), (196, 178), (196, 181), (197, 170), (197, 172), (197, 173), (197, 174), (197, 175), (197, 176), (197, 177), (197, 178), (197, 179), (197, 180), (197, 183), (198, 170), (198, 172), (198, 173), (198, 174), (198, 175), (198, 176), (198, 177), (198, 178), (198, 179), (198, 180), (198, 181), (198, 184), (199, 171), (199, 173), (199, 174), (199, 175), (199, 176), (199, 177), (199, 178), (199, 179), (199, 180), (199, 181), (199, 182), (199, 183), (199, 186), (199, 187), (200, 171), (200, 173), (200, 174), (200, 175), (200, 176), (200, 177), (200, 178), (200, 179), (200, 180), (200, 181), (200, 182), (200, 183), (200, 184), (200, 185), (200, 188), (200, 189), (200, 191), (201, 172), (201, 174), (201, 175), (201, 176), (201, 177), (201, 178), (201, 179), (201, 180), (201, 181), (201, 182), (201, 183), (201, 184), (201, 185), (201, 186), (201, 187), (201, 191), (202, 173), (202, 175), (202, 176), (202, 177), (202, 178), (202, 179), (202, 180), (202, 181), (202, 182), (202, 183), (202, 184), (202, 185), (202, 186), (202, 187), (202, 188), (202, 189), (202, 191), (203, 176), (203, 177), (203, 178), (203, 179), (203, 180), (203, 181), (203, 182), (203, 183), (203, 184), (203, 185), (203, 186), (203, 187), (203, 188), (203, 189), (203, 191), (204, 174), (204, 177), (204, 178), (204, 179), (204, 180), (204, 181), (204, 182), (204, 183), (204, 184), (204, 185), (204, 186), (204, 187), (204, 188), (204, 189), (204, 191), (205, 175), (205, 178), (205, 179), (205, 180), (205, 181), (205, 182), (205, 183), (205, 184), (205, 185), (205, 186), (205, 187), (205, 188), (205, 189), (205, 191), (206, 177), (206, 180), (206, 181), (206, 182), (206, 183), (206, 184), (206, 185), (206, 186), (206, 187), (206, 188), (206, 189), (206, 191), (207, 178), (207, 181), (207, 182), (207, 183), (207, 184), (207, 185), (207, 186), (207, 187), (207, 191), (208, 180), (208, 188), (208, 189), (209, 181), (209, 183), (209, 184), (209, 185), (209, 187)) coordinates_00008_b = ((118, 196), (126, 196), (127, 196), (128, 196), (129, 196), (196, 194), (196, 196), (197, 194), (198, 193), (198, 195), (198, 196), (199, 193), (199, 195), (199, 196), (200, 193), (200, 195), (200, 196), (201, 193), (201, 195), (201, 196), (202, 193), (202, 195), (202, 196), (203, 193), (203, 195), (203, 196), (204, 193), (204, 195), (205, 193), (205, 195), (206, 193), (206, 195), (207, 193), (207, 194), (208, 193), (209, 193)) coordinates_de00_ca = ((127, 166), (128, 165), (128, 167), (129, 165), (129, 168), (130, 165), (130, 167), (130, 169), (131, 165), (131, 167), (131, 169), (132, 165), (132, 167), (132, 169), (133, 164), (133, 166), (133, 167), (133, 169), (134, 164), (134, 166), (134, 167), (134, 168), (134, 170), (135, 164), (135, 166), (135, 167), (135, 168), (135, 170), (136, 164), (136, 166), (136, 167), (136, 168), (136, 169), (136, 170), (136, 171), (137, 164), (137, 166), (137, 167), (137, 168), (137, 169), (137, 171), (138, 164), (138, 166), (138, 167), (138, 168), (138, 169), (138, 170), (138, 172), (139, 164), (139, 166), (139, 167), (139, 168), (139, 169), (139, 170), (139, 171), (139, 173), (140, 164), (140, 166), (140, 167), (140, 168), (140, 169), (140, 170), (140, 171), (140, 173), (141, 164), (141, 166), (141, 167), (141, 168), (141, 169), (141, 170), (141, 171), (141, 173), (142, 164), (142, 166), (142, 167), (142, 168), (142, 169), (142, 170), (142, 172), (143, 164), (143, 166), (143, 167), (143, 168), (143, 169), (143, 170), (143, 172), (144, 164), (144, 166), (144, 167), (144, 168), (144, 169), (144, 171), (145, 164), (145, 166), (145, 167), (145, 168), (145, 169), (145, 171), (146, 164), (146, 165), (146, 166), (146, 167), (146, 168), (146, 170), (147, 165), (147, 167), (147, 169), (148, 165), (148, 167), (148, 169), (149, 165), (150, 165), (150, 167), (151, 166), (152, 166), (172, 166), (172, 167), (173, 166), (174, 166), (174, 168), (175, 165), (175, 167), (176, 165), (176, 167), (177, 164), (177, 167), (178, 164), (178, 166), (178, 168), (179, 163), (179, 165), (179, 166), (179, 167), (179, 168), (180, 163), (180, 165), (180, 166), (180, 167), (180, 169), (181, 163), (181, 165), (181, 166), (181, 167), (181, 169), (182, 162), (182, 164), (182, 165), (182, 166), (182, 167), (182, 169), (183, 162), (183, 164), (183, 165), (183, 166), (183, 167), (183, 169), (184, 161), (184, 163), (184, 164), (184, 165), (184, 166), (184, 167), (184, 169), (185, 161), (185, 163), (185, 164), (185, 165), (185, 166), (185, 168), (186, 161), (186, 163), (186, 164), (186, 165), (186, 167), (187, 161), (187, 163), (187, 164), (187, 166), (188, 162), (188, 163), (188, 165), (189, 162), (189, 165), (190, 162), (190, 165), (191, 163), (191, 165), (192, 163), (192, 164), (193, 164), (194, 164)) coordinates_2797_ff = ((154, 181), (155, 183), (157, 184), (158, 184), (158, 185), (159, 184), (159, 185), (160, 184), (160, 186), (161, 184), (161, 186), (162, 183), (162, 186), (163, 183), (163, 186), (164, 183), (164, 185), (165, 184), (165, 185), (166, 185), (167, 185), (168, 184), (168, 185), (169, 183), (169, 185), (170, 183), (171, 182)) coordinates_5_cfffc = ((156, 180), (156, 182), (157, 180), (157, 182), (158, 180), (158, 182), (159, 180), (159, 182), (160, 180), (160, 182), (161, 180), (161, 181), (162, 180), (162, 181), (163, 180), (163, 181), (164, 180), (164, 181), (165, 180), (165, 182), (166, 180), (166, 183), (167, 180), (167, 182), (168, 180), (169, 180), (169, 181), (170, 180)) coordinates_232_a8_e = ((151, 169), (151, 171), (152, 168), (152, 172), (153, 168), (153, 170), (153, 173), (154, 168), (154, 170), (154, 171), (154, 172), (154, 174), (155, 168), (155, 170), (155, 171), (155, 172), (155, 174), (156, 168), (156, 170), (156, 171), (156, 172), (156, 174), (157, 167), (157, 169), (157, 170), (157, 171), (157, 172), (157, 174), (158, 167), (158, 169), (158, 170), (158, 171), (158, 172), (158, 174), (159, 167), (159, 169), (159, 170), (159, 171), (159, 173), (160, 168), (160, 170), (160, 172), (161, 169), (161, 171), (162, 169), (162, 170), (163, 169), (163, 171), (164, 169), (164, 172), (165, 168), (165, 170), (165, 171), (165, 173), (166, 168), (166, 170), (166, 171), (166, 172), (166, 174), (167, 167), (167, 169), (167, 170), (167, 171), (167, 172), (167, 174), (168, 167), (168, 169), (168, 170), (168, 171), (168, 172), (168, 174), (169, 167), (169, 169), (169, 170), (169, 171), (169, 173), (170, 168), (170, 170), (170, 171), (170, 173), (171, 168), (171, 172), (172, 169), (172, 171))
# Maple Adjustment Period (57458) | Kanna 2nd Job haku = 9130081 cacophonous = 1142507 sm.removeEscapeButton() sm.setSpeakerID(haku) sm.setBoxChat() sm.sendNext("Finally, your real skills are coming back! I'm tired of doing all the work!") sm.flipBoxChat() sm.flipBoxChatPlayerAsSpeaker() sm.sendNext("What exactly do you do, other than sleep?") sm.setSpeakerID(haku) sm.setBoxChat() sm.sendNext("I do all kinds of stuff... when I have enough Mana, " "which, might I add, I am still waiting for!") sm.flipBoxChat() sm.flipBoxChatPlayerAsSpeaker() sm.sendNext("That reminds me. I should release some of the Mana I've stored up. " "The weak magic I've been using won't get me very far.") sm.sendNext("Time to buff up my magic. I'll be stronger in no time!") sm.setSpeakerID(haku) sm.setBoxChat() sm.sendNext("Hey! Are you trying to starve me to death? " "Without Mana, I might as well be a house cat!") sm.flipBoxChat() sm.flipBoxChatPlayerAsSpeaker() sm.sendNext("Relax, furball. We have to be careful about how we use Mana in this new world. " "There's no telling what it could do.") sm.sendNext("(There's no way this will be enough to overthrow Nobunaga and rescue the princess. " "I'll have to train to become more powerful.)") if sm.canHold(cacophonous): sm.jobAdvance(4210) sm.startQuest(parentID) sm.completeQuest(parentID) sm.giveItem(cacophonous) else: sm.sendNext("Please make space in your Equip inventory.")
haku = 9130081 cacophonous = 1142507 sm.removeEscapeButton() sm.setSpeakerID(haku) sm.setBoxChat() sm.sendNext("Finally, your real skills are coming back! I'm tired of doing all the work!") sm.flipBoxChat() sm.flipBoxChatPlayerAsSpeaker() sm.sendNext('What exactly do you do, other than sleep?') sm.setSpeakerID(haku) sm.setBoxChat() sm.sendNext('I do all kinds of stuff... when I have enough Mana, which, might I add, I am still waiting for!') sm.flipBoxChat() sm.flipBoxChatPlayerAsSpeaker() sm.sendNext("That reminds me. I should release some of the Mana I've stored up. The weak magic I've been using won't get me very far.") sm.sendNext("Time to buff up my magic. I'll be stronger in no time!") sm.setSpeakerID(haku) sm.setBoxChat() sm.sendNext('Hey! Are you trying to starve me to death? Without Mana, I might as well be a house cat!') sm.flipBoxChat() sm.flipBoxChatPlayerAsSpeaker() sm.sendNext("Relax, furball. We have to be careful about how we use Mana in this new world. There's no telling what it could do.") sm.sendNext("(There's no way this will be enough to overthrow Nobunaga and rescue the princess. I'll have to train to become more powerful.)") if sm.canHold(cacophonous): sm.jobAdvance(4210) sm.startQuest(parentID) sm.completeQuest(parentID) sm.giveItem(cacophonous) else: sm.sendNext('Please make space in your Equip inventory.')
# -*- coding: utf-8 -*- ''' File name: code\problem_500\sol_500.py Author: Vaidic Joshi Date created: Oct 20, 2018 Python Version: 3.x ''' # Solution to Project Euler Problem #500 :: Problem 500!!! # # For more information see: # https://projecteuler.net/problem=500 # Problem Statement ''' The number of divisors of 120 is 16. In fact 120 is the smallest number having 16 divisors. Find the smallest number with 2500500 divisors. Give your answer modulo 500500507. ''' # Solution # Solution Approach ''' '''
""" File name: code\\problem_500\\sol_500.py Author: Vaidic Joshi Date created: Oct 20, 2018 Python Version: 3.x """ '\nThe number of divisors of 120 is 16.\nIn fact 120 is the smallest number having 16 divisors.\n\n\nFind the smallest number with 2500500 divisors.\nGive your answer modulo 500500507.\n' '\n'
''' 03 - barplots, pointplots and countplots The final group of categorical plots are barplots, pointplots and countplot which create statistical summaries of the data. The plots follow a similar API as the other plots and allow further customization for the specific problem at hand ''' # 1 - Countplots # Create a countplot with the df dataframe and Model Selected on the y axis and the color varying by Region. sns.countplot(data=df, y="Model Selected", hue="Region") plt.show() plt.clf() # 2 - Pointplot # - Create a pointplot with the df dataframe and Model Selected on the x-axis and Award_Amount on the y-axis. # - Use a capsize in the pointplot in order to add caps to the error bars. sns.pointplot(data=df, x='Model Selected', y='Award_Amount', capsize=.1) plt.show() plt.clf() # 3 - barplot # Create a barplot with the same data on the x and y axis and change the color of each bar based on the Region column. sns.barplot(data=df, y='Award_Amount', x='Model Selected', hue='Region') plt.show() plt.clf()
""" 03 - barplots, pointplots and countplots The final group of categorical plots are barplots, pointplots and countplot which create statistical summaries of the data. The plots follow a similar API as the other plots and allow further customization for the specific problem at hand """ sns.countplot(data=df, y='Model Selected', hue='Region') plt.show() plt.clf() sns.pointplot(data=df, x='Model Selected', y='Award_Amount', capsize=0.1) plt.show() plt.clf() sns.barplot(data=df, y='Award_Amount', x='Model Selected', hue='Region') plt.show() plt.clf()
# Page Definitions # See Page Format.txt for instructions and examples on how to modify your display settings PAGES_Play = { 'name':"Play", 'pages': [ { 'name':"Album_Artist_Title", 'duration':20, 'hidewhenempty':'all', 'hidewhenemptyvars': [ "album", "artist", "title" ], 'lines': [ { 'name':"top", 'variables': [ "album", "artist", "title" ], 'format':"{0} {1} {2}", 'justification':"left", 'scroll':True }, { 'name':"bottom", 'variables': [ "playlist_display", "position" ], 'format':"{0} {1}", 'justification':"left", 'scroll':False } ] }, { 'name':"Meta Data", 'duration':10, 'hidewhenempty':'any', 'hidewhenemptyvars': [ "bitrate", "type" ], 'lines': [ { 'name':"top", 'variables': [ "bitrate", "type" ], 'format':"Rate: {0}, Type: {1}", 'justification':"left", 'scroll':True }, { 'name':"bottom", 'variables': [ "playlist_display", "position" ], 'format':"{0} {1}", 'justification':"left", 'scroll':False } ] } ] } PAGES_Stop = { 'name':"Stop", 'pages': [ { 'name':"Ready", 'duration':12, 'lines': [ { 'name':"top", 'variables': [ ], 'format':"Ready", 'justification':"center", 'scroll':False }, { 'name':"bottom", 'variables': [ "current_time" ], 'format':"{0}", 'justification':"center", 'scroll':False } ] }, { 'name':"IPADDR", 'duration':1.5, 'lines': [ { 'name':"top", 'variables': [ "current_ip" ], 'format':"{0}", 'justification':"center", 'scroll':False }, { 'name':"bottom", 'variables': [ "current_time" ], 'format':"{0}", 'justification':"center", 'scroll':False } ] }, { 'name':"SYSTEMVARS", 'duration':10, 'lines': [ { 'name':"top", 'variables': [ "current_tempc", "disk_availp" ], 'format':"Temp: {0}c / Disk {1}% full", 'justification':"left", 'scroll':True }, { 'name':"bottom", 'variables': [ "current_time" ], 'format':"{0}", 'justification':"center", 'scroll':False } ] } ] } ALERT_Volume = { 'name':"Volume", 'alert': { 'variable': "volume", 'type': "change", 'suppressonstatechange':True, 'coolingperiod': 0 }, 'interruptible':False, 'pages': [ { 'name':"Volume", 'duration':2, 'lines': [ { 'name':"top", 'variables': [ ], 'format':"Volume", 'justification':"center", 'scroll':False }, { 'name':"bottom", 'variables': [ "volume" ], 'format':"{0}", 'justification':"center", 'scroll':False } ] } ] } ALERT_TempTooHigh = { 'name':"TempTooHigh", 'alert': { 'variable': "current_tempc", 'type': "above", 'values': [ 85 ], 'suppressonstatechange':False, 'coolingperiod': 30 }, 'interruptible':False, 'pages': [ { 'name':"TempTooHigh", 'duration':8, 'lines': [ { 'name':"top", 'variables': [ ], 'format':"Temp Too High", 'justification':"center", 'scroll':False }, { 'name':"bottom", 'variables': [ "current_tempc" ], 'format':"Temp: {0}c", 'justification':"center", 'scroll':False } ] } ] } ALERT_LIST = [ ALERT_Volume, ALERT_TempTooHigh ]
pages__play = {'name': 'Play', 'pages': [{'name': 'Album_Artist_Title', 'duration': 20, 'hidewhenempty': 'all', 'hidewhenemptyvars': ['album', 'artist', 'title'], 'lines': [{'name': 'top', 'variables': ['album', 'artist', 'title'], 'format': '{0} {1} {2}', 'justification': 'left', 'scroll': True}, {'name': 'bottom', 'variables': ['playlist_display', 'position'], 'format': '{0} {1}', 'justification': 'left', 'scroll': False}]}, {'name': 'Meta Data', 'duration': 10, 'hidewhenempty': 'any', 'hidewhenemptyvars': ['bitrate', 'type'], 'lines': [{'name': 'top', 'variables': ['bitrate', 'type'], 'format': 'Rate: {0}, Type: {1}', 'justification': 'left', 'scroll': True}, {'name': 'bottom', 'variables': ['playlist_display', 'position'], 'format': '{0} {1}', 'justification': 'left', 'scroll': False}]}]} pages__stop = {'name': 'Stop', 'pages': [{'name': 'Ready', 'duration': 12, 'lines': [{'name': 'top', 'variables': [], 'format': 'Ready', 'justification': 'center', 'scroll': False}, {'name': 'bottom', 'variables': ['current_time'], 'format': '{0}', 'justification': 'center', 'scroll': False}]}, {'name': 'IPADDR', 'duration': 1.5, 'lines': [{'name': 'top', 'variables': ['current_ip'], 'format': '{0}', 'justification': 'center', 'scroll': False}, {'name': 'bottom', 'variables': ['current_time'], 'format': '{0}', 'justification': 'center', 'scroll': False}]}, {'name': 'SYSTEMVARS', 'duration': 10, 'lines': [{'name': 'top', 'variables': ['current_tempc', 'disk_availp'], 'format': 'Temp: {0}c / Disk {1}% full', 'justification': 'left', 'scroll': True}, {'name': 'bottom', 'variables': ['current_time'], 'format': '{0}', 'justification': 'center', 'scroll': False}]}]} alert__volume = {'name': 'Volume', 'alert': {'variable': 'volume', 'type': 'change', 'suppressonstatechange': True, 'coolingperiod': 0}, 'interruptible': False, 'pages': [{'name': 'Volume', 'duration': 2, 'lines': [{'name': 'top', 'variables': [], 'format': 'Volume', 'justification': 'center', 'scroll': False}, {'name': 'bottom', 'variables': ['volume'], 'format': '{0}', 'justification': 'center', 'scroll': False}]}]} alert__temp_too_high = {'name': 'TempTooHigh', 'alert': {'variable': 'current_tempc', 'type': 'above', 'values': [85], 'suppressonstatechange': False, 'coolingperiod': 30}, 'interruptible': False, 'pages': [{'name': 'TempTooHigh', 'duration': 8, 'lines': [{'name': 'top', 'variables': [], 'format': 'Temp Too High', 'justification': 'center', 'scroll': False}, {'name': 'bottom', 'variables': ['current_tempc'], 'format': 'Temp: {0}c', 'justification': 'center', 'scroll': False}]}]} alert_list = [ALERT_Volume, ALERT_TempTooHigh]
def test_presign_S3(_admin_client): patientID = "PH0001" payload = { "prefix": patientID, "filename": patientID + "_" + "a_file.vcf", "contentType": "multipart/form-data", } resp = _admin_client.post("/preSignS3URL", json=payload, content_type="application/json") assert resp.status_code == 200 assert "x-amz-credential" in str(resp.json) assert resp.json.get("fields").get("key") == f"{patientID}/{payload['filename']}"
def test_presign_s3(_admin_client): patient_id = 'PH0001' payload = {'prefix': patientID, 'filename': patientID + '_' + 'a_file.vcf', 'contentType': 'multipart/form-data'} resp = _admin_client.post('/preSignS3URL', json=payload, content_type='application/json') assert resp.status_code == 200 assert 'x-amz-credential' in str(resp.json) assert resp.json.get('fields').get('key') == f"{patientID}/{payload['filename']}"
# # PySNMP MIB module TIMETRA-SAS-PORT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TIMETRA-SAS-PORT-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 21:14:36 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, SingleValueConstraint, ValueRangeConstraint, ConstraintsIntersection, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsIntersection", "ConstraintsUnion") pethPsePortDetectionStatus, pethPsePortPowerClassifications, pethPsePortIndex, pethPsePortEntry = mibBuilder.importSymbols("POWER-ETHERNET-MIB", "pethPsePortDetectionStatus", "pethPsePortPowerClassifications", "pethPsePortIndex", "pethPsePortEntry") ObjectGroup, ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "ModuleCompliance", "NotificationGroup") MibScalar, MibTable, MibTableRow, MibTableColumn, Counter64, Bits, MibIdentifier, ObjectIdentity, IpAddress, ModuleIdentity, NotificationType, Counter32, Unsigned32, Integer32, iso, TimeTicks, Gauge32 = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter64", "Bits", "MibIdentifier", "ObjectIdentity", "IpAddress", "ModuleIdentity", "NotificationType", "Counter32", "Unsigned32", "Integer32", "iso", "TimeTicks", "Gauge32") TimeStamp, RowStatus, TruthValue, TimeInterval, DateAndTime, RowPointer, MacAddress, DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "TimeStamp", "RowStatus", "TruthValue", "TimeInterval", "DateAndTime", "RowPointer", "MacAddress", "DisplayString", "TextualConvention") tmnxHwObjs, tmnxHwConformance, TmnxPortAdminStatus, tmnxChassisNotifyChassisId, tmnxHwNotification, TmnxMDAChanType, TmnxAlarmState, tmnxChassisIndex = mibBuilder.importSymbols("TIMETRA-CHASSIS-MIB", "tmnxHwObjs", "tmnxHwConformance", "TmnxPortAdminStatus", "tmnxChassisNotifyChassisId", "tmnxHwNotification", "TmnxMDAChanType", "TmnxAlarmState", "tmnxChassisIndex") timetraSRMIBModules, = mibBuilder.importSymbols("TIMETRA-GLOBAL-MIB", "timetraSRMIBModules") tmnxDS1Entry, tmnxPortEtherEntry, tmnxDS1PortEntry, tmnxPortNotifyPortId, tmnxPortPortID, tmnxPortEntry = mibBuilder.importSymbols("TIMETRA-PORT-MIB", "tmnxDS1Entry", "tmnxPortEtherEntry", "tmnxDS1PortEntry", "tmnxPortNotifyPortId", "tmnxPortPortID", "tmnxPortEntry") timetraSASModules, timetraSASNotifyPrefix, timetraSASConfs, timetraSASObjs = mibBuilder.importSymbols("TIMETRA-SAS-GLOBAL-MIB", "timetraSASModules", "timetraSASNotifyPrefix", "timetraSASConfs", "timetraSASObjs") TFCName, TPortSchedulerCIR, TPortSchedulerPIR, TNamedItemOrEmpty, TQueueId, TmnxServId, TmnxOperState, TItemDescription, TNetworkIngressMeterId, TmnxPortID, ServObjDesc, TmnxActionType, TItemLongDescription, TNamedItem, TmnxEncapVal = mibBuilder.importSymbols("TIMETRA-TC-MIB", "TFCName", "TPortSchedulerCIR", "TPortSchedulerPIR", "TNamedItemOrEmpty", "TQueueId", "TmnxServId", "TmnxOperState", "TItemDescription", "TNetworkIngressMeterId", "TmnxPortID", "ServObjDesc", "TmnxActionType", "TItemLongDescription", "TNamedItem", "TmnxEncapVal") tmnxSASPortMIBModule = ModuleIdentity((1, 3, 6, 1, 4, 1, 6527, 6, 2, 1, 1, 6)) tmnxSASPortMIBModule.setRevisions(('1908-01-09 00:00',)) if mibBuilder.loadTexts: tmnxSASPortMIBModule.setLastUpdated('0701010000Z') if mibBuilder.loadTexts: tmnxSASPortMIBModule.setOrganization('Alcatel') tmnxSASPortObjs = MibIdentifier((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2)) tmnxSASPortNotificationObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 3)) tmnxSASPortStatsObjs = MibIdentifier((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 4)) tmnxSASPortConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 1, 2)) portShgInfoTable = MibTable((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 6), ) if mibBuilder.loadTexts: portShgInfoTable.setStatus('current') portShgInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 6, 1), ).setIndexNames((1, "TIMETRA-SAS-PORT-MIB", "portShgName")) if mibBuilder.loadTexts: portShgInfoEntry.setStatus('current') portShgName = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 6, 1, 1), TNamedItem()) if mibBuilder.loadTexts: portShgName.setStatus('current') portShgRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 6, 1, 2), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: portShgRowStatus.setStatus('current') portShgInstanceId = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 6, 1, 3), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: portShgInstanceId.setStatus('current') portShgDescription = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 6, 1, 4), ServObjDesc()).setMaxAccess("readcreate") if mibBuilder.loadTexts: portShgDescription.setStatus('current') portShgLastMgmtChange = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 6, 1, 5), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: portShgLastMgmtChange.setStatus('current') sasTmnxPortExtnTable = MibTable((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 2), ) if mibBuilder.loadTexts: sasTmnxPortExtnTable.setStatus('current') sasTmnxPortExtnEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 2, 1), ) tmnxPortEntry.registerAugmentions(("TIMETRA-SAS-PORT-MIB", "sasTmnxPortExtnEntry")) sasTmnxPortExtnEntry.setIndexNames(*tmnxPortEntry.getIndexNames()) if mibBuilder.loadTexts: sasTmnxPortExtnEntry.setStatus('current') tmnxPortUplinkMode = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 2, 1, 1), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tmnxPortUplinkMode.setStatus('current') tmnxPortAccessEgressQoSPolicyId = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 2, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)).clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: tmnxPortAccessEgressQoSPolicyId.setStatus('current') tmnxPortNetworkQoSPolicyId = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 2, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)).clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: tmnxPortNetworkQoSPolicyId.setStatus('current') tmnxPortShgName = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 2, 1, 4), TNamedItemOrEmpty()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tmnxPortShgName.setStatus('current') tmnxPortUseDei = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 2, 1, 5), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: tmnxPortUseDei.setStatus('current') tmnxPortOperGrpName = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 2, 1, 6), TNamedItemOrEmpty()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tmnxPortOperGrpName.setStatus('current') tmnxPortMonitorOperGrpName = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 2, 1, 7), TNamedItemOrEmpty()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tmnxPortMonitorOperGrpName.setStatus('current') tmnxSASPortNetIngressStatsTable = MibTable((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 3), ) if mibBuilder.loadTexts: tmnxSASPortNetIngressStatsTable.setStatus('current') tmnxSASPortNetIngressStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 3, 1), ).setIndexNames((0, "TIMETRA-CHASSIS-MIB", "tmnxChassisIndex"), (0, "TIMETRA-PORT-MIB", "tmnxPortPortID"), (0, "TIMETRA-SAS-PORT-MIB", "tmnxSASPortNetIngressMeterIndex")) if mibBuilder.loadTexts: tmnxSASPortNetIngressStatsEntry.setStatus('current') tmnxSASPortNetIngressMeterIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 3, 1, 1), TNetworkIngressMeterId()) if mibBuilder.loadTexts: tmnxSASPortNetIngressMeterIndex.setStatus('current') tmnxSASPortNetIngressFwdInProfPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 3, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: tmnxSASPortNetIngressFwdInProfPkts.setStatus('current') tmnxSASPortNetIngressFwdOutProfPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 3, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: tmnxSASPortNetIngressFwdOutProfPkts.setStatus('current') tmnxSASPortNetIngressFwdInProfOcts = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 3, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: tmnxSASPortNetIngressFwdInProfOcts.setStatus('current') tmnxSASPortNetIngressFwdOutProfOcts = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 3, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: tmnxSASPortNetIngressFwdOutProfOcts.setStatus('current') sasTmnxPortEtherExtnTable = MibTable((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4), ) if mibBuilder.loadTexts: sasTmnxPortEtherExtnTable.setStatus('current') sasTmnxPortEtherExtnEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1), ) tmnxPortEtherEntry.registerAugmentions(("TIMETRA-SAS-PORT-MIB", "sasTmnxPortEtherExtnEntry")) sasTmnxPortEtherExtnEntry.setIndexNames(*tmnxPortEtherEntry.getIndexNames()) if mibBuilder.loadTexts: sasTmnxPortEtherExtnEntry.setStatus('current') tmnxPortEtherEgressMaxBurst = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(-1, -1), ValueRangeConstraint(32, 16384), )).clone(-1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: tmnxPortEtherEgressMaxBurst.setStatus('current') tmnxPortStatsQueue1PktsFwd = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 2), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tmnxPortStatsQueue1PktsFwd.setStatus('current') tmnxPortStatsQueue2PktsFwd = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 3), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tmnxPortStatsQueue2PktsFwd.setStatus('current') tmnxPortStatsQueue3PktsFwd = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 4), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tmnxPortStatsQueue3PktsFwd.setStatus('current') tmnxPortStatsQueue4PktsFwd = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 5), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tmnxPortStatsQueue4PktsFwd.setStatus('current') tmnxPortStatsQueue5PktsFwd = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 6), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tmnxPortStatsQueue5PktsFwd.setStatus('current') tmnxPortStatsQueue6PktsFwd = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 7), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tmnxPortStatsQueue6PktsFwd.setStatus('current') tmnxPortStatsQueue7PktsFwd = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 8), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tmnxPortStatsQueue7PktsFwd.setStatus('current') tmnxPortStatsQueue8PktsFwd = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 9), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tmnxPortStatsQueue8PktsFwd.setStatus('current') tmnxPortEtherEgrSchedMode = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("fc-based", 1), ("sap-based", 2))).clone('fc-based')).setMaxAccess("readwrite") if mibBuilder.loadTexts: tmnxPortEtherEgrSchedMode.setStatus('current') tmnxPortEtherLoopback = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 2))).clone(namedValues=NamedValues(("none", 0), ("internal", 2))).clone('none')).setMaxAccess("readwrite") if mibBuilder.loadTexts: tmnxPortEtherLoopback.setStatus('current') tmnxPortEtherIpMTU = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 12), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(512, 9000), ))).setUnits('bytes').setMaxAccess("readwrite") if mibBuilder.loadTexts: tmnxPortEtherIpMTU.setStatus('current') tmnxPortEtherClockConfig = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("notApplicable", 0), ("automatic", 1), ("manual-master", 2), ("manual-slave", 3))).clone('notApplicable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: tmnxPortEtherClockConfig.setStatus('current') tmnxPortLoopbckServId = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 14), TmnxServId()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tmnxPortLoopbckServId.setStatus('current') tmnxPortLoopbckSapPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 15), TmnxPortID()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tmnxPortLoopbckSapPortId.setStatus('current') tmnxPortLoopbckSapEncapVal = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 16), TmnxEncapVal()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tmnxPortLoopbckSapEncapVal.setStatus('current') tmnxPortLoopbckSrcMacAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 17), MacAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tmnxPortLoopbckSrcMacAddr.setStatus('current') tmnxPortLoopbckDstMacAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 18), MacAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tmnxPortLoopbckDstMacAddr.setStatus('current') tmnxPortAccEgrSapQosMarking = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2))).clone('enable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: tmnxPortAccEgrSapQosMarking.setStatus('current') tmnxPortLldpTnlNrstBrdgeDstMac = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 20), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: tmnxPortLldpTnlNrstBrdgeDstMac.setStatus('current') tmnxPortEtherDe1OutProfile = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 22), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: tmnxPortEtherDe1OutProfile.setStatus('current') tmnxPortEtherNwAggRateLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 23), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(-1, -1), ValueRangeConstraint(1, 100000000), )).clone(-1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: tmnxPortEtherNwAggRateLimit.setStatus('current') tmnxPortEtherNwAggRateLimitCir = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 28), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 10000000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: tmnxPortEtherNwAggRateLimitCir.setStatus('current') tmnxPortEtherNwAggRateLimitPir = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 29), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(-1, -1), ValueRangeConstraint(1, 10000000), )).clone(-1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: tmnxPortEtherNwAggRateLimitPir.setStatus('current') tmnxPortEtherDcommStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 30), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: tmnxPortEtherDcommStatus.setStatus('current') tmnxPortEtherMulticastIngress = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 31), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("l2-mc", 1), ("ip-mc", 2))).clone('l2-mc')).setMaxAccess("readwrite") if mibBuilder.loadTexts: tmnxPortEtherMulticastIngress.setStatus('current') tmnxPortAccessEgressQueueStatsTable = MibTable((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 7), ) if mibBuilder.loadTexts: tmnxPortAccessEgressQueueStatsTable.setStatus('current') tmnxPortAccessEgressQueueStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 7, 1), ).setIndexNames((0, "TIMETRA-CHASSIS-MIB", "tmnxChassisIndex"), (0, "TIMETRA-PORT-MIB", "tmnxPortPortID"), (0, "TIMETRA-SAS-PORT-MIB", "tmnxPortAccessEgressQueueStatsIndex")) if mibBuilder.loadTexts: tmnxPortAccessEgressQueueStatsEntry.setStatus('current') tmnxPortAccessEgressQueueStatsIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 7, 1, 1), TQueueId().subtype(subtypeSpec=ValueRangeConstraint(1, 8))) if mibBuilder.loadTexts: tmnxPortAccessEgressQueueStatsIndex.setStatus('current') tmnxPortAccessEgressQueueStatsFwdPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 7, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: tmnxPortAccessEgressQueueStatsFwdPkts.setStatus('current') tmnxPortAccessEgressQueueStatsFwdOcts = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 7, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: tmnxPortAccessEgressQueueStatsFwdOcts.setStatus('current') tmnxPortAccessEgressQueueStatsDroPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 7, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: tmnxPortAccessEgressQueueStatsDroPkts.setStatus('current') tmnxPortAccessEgressQueueStatsDroOcts = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 7, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: tmnxPortAccessEgressQueueStatsDroOcts.setStatus('current') tmnxPortNetEgressQueueStatsTable = MibTable((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 8), ) if mibBuilder.loadTexts: tmnxPortNetEgressQueueStatsTable.setStatus('current') tmnxPortNetEgressQueueStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 8, 1), ).setIndexNames((0, "TIMETRA-CHASSIS-MIB", "tmnxChassisIndex"), (0, "TIMETRA-PORT-MIB", "tmnxPortPortID"), (0, "TIMETRA-SAS-PORT-MIB", "tmnxPortNetEgressQueueStatsIndex")) if mibBuilder.loadTexts: tmnxPortNetEgressQueueStatsEntry.setStatus('current') tmnxPortNetEgressQueueStatsIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 8, 1, 1), TQueueId().subtype(subtypeSpec=ValueRangeConstraint(1, 8))) if mibBuilder.loadTexts: tmnxPortNetEgressQueueStatsIndex.setStatus('current') tmnxPortNetEgressQueueStatsFwdPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 8, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: tmnxPortNetEgressQueueStatsFwdPkts.setStatus('current') tmnxPortNetEgressQueueStatsFwdOcts = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 8, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: tmnxPortNetEgressQueueStatsFwdOcts.setStatus('current') tmnxPortNetEgressQueueStatsDroPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 8, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: tmnxPortNetEgressQueueStatsDroPkts.setStatus('current') tmnxPortNetEgressQueueStatsDroOcts = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 8, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: tmnxPortNetEgressQueueStatsDroOcts.setStatus('current') tmnxPortNetEgressQueueStatsInProfDroPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 8, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: tmnxPortNetEgressQueueStatsInProfDroPkts.setStatus('current') tmnxPortNetEgressQueueStatsInProfDroOcts = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 8, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: tmnxPortNetEgressQueueStatsInProfDroOcts.setStatus('current') tmnxPortNetEgressQueueStatsOutProfDroPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 8, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: tmnxPortNetEgressQueueStatsOutProfDroPkts.setStatus('current') tmnxPortNetEgressQueueStatsOutProfDroOcts = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 8, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: tmnxPortNetEgressQueueStatsOutProfDroOcts.setStatus('current') aluExtTmnxDS1PortTable = MibTable((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 9), ) if mibBuilder.loadTexts: aluExtTmnxDS1PortTable.setStatus('current') aluExtTmnxDS1PortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 9, 1), ) tmnxDS1PortEntry.registerAugmentions(("TIMETRA-SAS-PORT-MIB", "aluExtTmnxDS1PortEntry")) aluExtTmnxDS1PortEntry.setIndexNames(*tmnxDS1PortEntry.getIndexNames()) if mibBuilder.loadTexts: aluExtTmnxDS1PortEntry.setStatus('current') aluExtDS1PortLineImpedance = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 9, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("notApplicable", 0), ("impedance75Ohms", 1), ("impedance100Ohms", 2), ("impedance120Ohms", 3))).clone('impedance100Ohms')).setMaxAccess("readwrite") if mibBuilder.loadTexts: aluExtDS1PortLineImpedance.setStatus('current') aluPortAcrClkStatsTable = MibTable((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 10), ) if mibBuilder.loadTexts: aluPortAcrClkStatsTable.setStatus('current') aluPortAcrClkStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 10, 1), ).setIndexNames((0, "TIMETRA-CHASSIS-MIB", "tmnxChassisIndex"), (0, "TIMETRA-PORT-MIB", "tmnxPortPortID")) if mibBuilder.loadTexts: aluPortAcrClkStatsEntry.setStatus('current') aluLastUpdateTime = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 10, 1, 1), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: aluLastUpdateTime.setStatus('current') aluTotalMinutesIn24Hour = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 10, 1, 2), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: aluTotalMinutesIn24Hour.setStatus('current') aluCurrent24HourFreqOffsetMeanPpb = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 10, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: aluCurrent24HourFreqOffsetMeanPpb.setStatus('current') aluCurrent24HourFreqOffsetStdDevPpb = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 10, 1, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: aluCurrent24HourFreqOffsetStdDevPpb.setStatus('current') aluMaxShortIntervalMinutes = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 10, 1, 5), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: aluMaxShortIntervalMinutes.setStatus('current') aluTotalShortIntervalMinutes = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 10, 1, 6), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: aluTotalShortIntervalMinutes.setStatus('current') aluCurrent1MinValidData = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 10, 1, 7), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: aluCurrent1MinValidData.setStatus('current') aluCurrent1MinPhaseErrorMeanPpb = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 10, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: aluCurrent1MinPhaseErrorMeanPpb.setStatus('current') aluCurrent1MinPhaseErrorStdDevNs = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 10, 1, 9), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: aluCurrent1MinPhaseErrorStdDevNs.setStatus('current') aluCurrent1MinPhaseErrorMeanNs = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 10, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: aluCurrent1MinPhaseErrorMeanNs.setStatus('current') aluCurrent1MinFreqOffsetMeanPpb = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 10, 1, 11), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: aluCurrent1MinFreqOffsetMeanPpb.setStatus('current') aluCurrent1MinFreqOffsetStdDevPpb = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 10, 1, 12), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: aluCurrent1MinFreqOffsetStdDevPpb.setStatus('current') aluPortAcrClkStatsShortIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 11), ) if mibBuilder.loadTexts: aluPortAcrClkStatsShortIntervalTable.setStatus('current') aluPortAcrClkStatsShortIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 11, 1), ).setIndexNames((0, "TIMETRA-CHASSIS-MIB", "tmnxChassisIndex"), (0, "TIMETRA-PORT-MIB", "tmnxPortPortID"), (0, "TIMETRA-SAS-PORT-MIB", "aluIntervalNumber")) if mibBuilder.loadTexts: aluPortAcrClkStatsShortIntervalEntry.setStatus('current') aluIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 11, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 15))).setMaxAccess("readonly") if mibBuilder.loadTexts: aluIntervalNumber.setStatus('current') aluIntervalValidData = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 11, 1, 2), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: aluIntervalValidData.setStatus('current') aluIntervalUpdateTime = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 11, 1, 3), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: aluIntervalUpdateTime.setStatus('current') aluIntervalPhaseErrorMeanPpb = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 11, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: aluIntervalPhaseErrorMeanPpb.setStatus('current') aluIntervalPhaseErrorStdDevNs = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 11, 1, 5), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: aluIntervalPhaseErrorStdDevNs.setStatus('current') aluIntervalPhaseErrorMeanNs = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 11, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: aluIntervalPhaseErrorMeanNs.setStatus('current') aluIntervalFreqOffsetMeanPpb = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 11, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: aluIntervalFreqOffsetMeanPpb.setStatus('current') aluIntervalFreqOffsetStdDevPpb = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 11, 1, 8), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: aluIntervalFreqOffsetStdDevPpb.setStatus('current') aluExtTmnxDS1Table = MibTable((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 12), ) if mibBuilder.loadTexts: aluExtTmnxDS1Table.setStatus('current') aluExtTmnxDS1Entry = MibTableRow((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 12, 1), ) tmnxDS1Entry.registerAugmentions(("TIMETRA-SAS-PORT-MIB", "aluExtTmnxDS1Entry")) aluExtTmnxDS1Entry.setIndexNames(*tmnxDS1Entry.getIndexNames()) if mibBuilder.loadTexts: aluExtTmnxDS1Entry.setStatus('current') aluExtDS1SignalBitsState = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 12, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readonly") if mibBuilder.loadTexts: aluExtDS1SignalBitsState.setStatus('current') aluExtPethPsePortTable = MibTable((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 13), ) if mibBuilder.loadTexts: aluExtPethPsePortTable.setStatus('current') aluExtPethPsePortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 13, 1), ) pethPsePortEntry.registerAugmentions(("TIMETRA-SAS-PORT-MIB", "aluExtPethPsePortEntry")) aluExtPethPsePortEntry.setIndexNames(*pethPsePortEntry.getIndexNames()) if mibBuilder.loadTexts: aluExtPethPsePortEntry.setStatus('current') aluExtPethPsePortFaultReason = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 13, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14))).clone(namedValues=NamedValues(("none", 1), ("dcp", 2), ("hicap", 3), ("rlow", 4), ("detok", 5), ("rhigh", 6), ("open", 7), ("dcn", 8), ("tstart", 9), ("icv", 10), ("tcut", 11), ("dis", 12), ("sup", 13), ("pdeny", 14))).clone('none')).setMaxAccess("readonly") if mibBuilder.loadTexts: aluExtPethPsePortFaultReason.setStatus('current') aluExtPethPsePortPowerLevel = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 13, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("standard", 2), ("plus", 3))).clone('none')).setMaxAccess("readwrite") if mibBuilder.loadTexts: aluExtPethPsePortPowerLevel.setStatus('current') aluExtPethPsePortOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 13, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("notApplicable", 1), ("on", 2), ("off", 3))).clone('off')).setMaxAccess("readonly") if mibBuilder.loadTexts: aluExtPethPsePortOperStatus.setStatus('current') pethPsePortEventInfo = MibScalar((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 14), OctetString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: pethPsePortEventInfo.setStatus('current') tmnxVirtualPortTable = MibTable((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 15), ) if mibBuilder.loadTexts: tmnxVirtualPortTable.setStatus('current') tmnxVirtualPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 15, 1), ).setIndexNames((0, "TIMETRA-CHASSIS-MIB", "tmnxChassisIndex"), (0, "TIMETRA-SAS-PORT-MIB", "tmnxVirtualPortPortID")) if mibBuilder.loadTexts: tmnxVirtualPortEntry.setStatus('current') tmnxVirtualPortPortID = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 15, 1, 1), TmnxPortID()) if mibBuilder.loadTexts: tmnxVirtualPortPortID.setStatus('current') tmnxVirtualPortInUse = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 15, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("not-in-use", 1), ("mirror", 2), ("macswap", 3), ("testhead", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: tmnxVirtualPortInUse.setStatus('current') tmnxVirtualPortSpeed = MibTableColumn((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 15, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("one-gig", 1), ("ten-gig", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: tmnxVirtualPortSpeed.setStatus('current') aluExtPethPsePortStatusChange = NotificationType((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 3, 1)).setObjects(("POWER-ETHERNET-MIB", "pethPsePortDetectionStatus"), ("POWER-ETHERNET-MIB", "pethPsePortPowerClassifications"), ("TIMETRA-SAS-PORT-MIB", "aluExtPethPsePortFaultReason"), ("TIMETRA-SAS-PORT-MIB", "aluExtPethPsePortOperStatus"), ("TIMETRA-PORT-MIB", "tmnxPortNotifyPortId")) if mibBuilder.loadTexts: aluExtPethPsePortStatusChange.setStatus('current') tmnxSASPortCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 1, 2, 1)) tmnxSASPortGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 1, 2, 2)) tmnxSASPortV1v0Group = ObjectGroup((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 1, 2, 2, 1)).setObjects(("TIMETRA-SAS-PORT-MIB", "tmnxPortUplinkMode"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortAccessEgressQoSPolicyId"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortNetworkQoSPolicyId"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortShgName"), ("TIMETRA-SAS-PORT-MIB", "portShgRowStatus"), ("TIMETRA-SAS-PORT-MIB", "portShgInstanceId"), ("TIMETRA-SAS-PORT-MIB", "portShgDescription"), ("TIMETRA-SAS-PORT-MIB", "portShgLastMgmtChange"), ("TIMETRA-SAS-PORT-MIB", "tmnxSASPortNetIngressFwdInProfPkts"), ("TIMETRA-SAS-PORT-MIB", "tmnxSASPortNetIngressFwdOutProfPkts"), ("TIMETRA-SAS-PORT-MIB", "tmnxSASPortNetIngressFwdInProfOcts"), ("TIMETRA-SAS-PORT-MIB", "tmnxSASPortNetIngressFwdOutProfOcts"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortEtherEgressMaxBurst"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortStatsQueue1PktsFwd"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortStatsQueue2PktsFwd"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortStatsQueue3PktsFwd"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortStatsQueue4PktsFwd"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortStatsQueue5PktsFwd"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortStatsQueue6PktsFwd"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortStatsQueue7PktsFwd"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortStatsQueue8PktsFwd"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortEtherLoopback")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): tmnxSASPortV1v0Group = tmnxSASPortV1v0Group.setStatus('current') tmnxSASPortV1v1Group = ObjectGroup((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 1, 2, 2, 2)).setObjects(("TIMETRA-SAS-PORT-MIB", "tmnxPortAccessEgressQueueStatsFwdPkts"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortAccessEgressQueueStatsFwdOcts"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortAccessEgressQueueStatsDroPkts"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortAccessEgressQueueStatsDroOcts"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortNetEgressQueueStatsFwdPkts"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortNetEgressQueueStatsFwdOcts"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortNetEgressQueueStatsDroPkts"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortNetEgressQueueStatsDroOcts"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortNetEgressQueueStatsInProfDroPkts"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortNetEgressQueueStatsInProfDroOcts"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortNetEgressQueueStatsOutProfDroPkts"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortNetEgressQueueStatsOutProfDroOcts")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): tmnxSASPortV1v1Group = tmnxSASPortV1v1Group.setStatus('current') tmnxSASPortV2v0Group = ObjectGroup((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 1, 2, 2, 3)).setObjects(("TIMETRA-SAS-PORT-MIB", "aluExtDS1PortLineImpedance"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortEtherEgrSchedMode")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): tmnxSASPortV2v0Group = tmnxSASPortV2v0Group.setStatus('current') tmnxSASPortV3v0Group = ObjectGroup((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 1, 2, 2, 6)).setObjects(("TIMETRA-SAS-PORT-MIB", "tmnxPortEtherClockConfig")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): tmnxSASPortV3v0Group = tmnxSASPortV3v0Group.setStatus('current') aluPortAcrClkStatsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 1, 2, 2, 4)).setObjects(("TIMETRA-SAS-PORT-MIB", "aluLastUpdateTime"), ("TIMETRA-SAS-PORT-MIB", "aluTotalMinutesIn24Hour"), ("TIMETRA-SAS-PORT-MIB", "aluCurrent24HourFreqOffsetMeanPpb"), ("TIMETRA-SAS-PORT-MIB", "aluCurrent24HourFreqOffsetStdDevPpb"), ("TIMETRA-SAS-PORT-MIB", "aluMaxShortIntervalMinutes"), ("TIMETRA-SAS-PORT-MIB", "aluTotalShortIntervalMinutes"), ("TIMETRA-SAS-PORT-MIB", "aluCurrent1MinValidData"), ("TIMETRA-SAS-PORT-MIB", "aluCurrent1MinPhaseErrorMeanPpb"), ("TIMETRA-SAS-PORT-MIB", "aluCurrent1MinPhaseErrorStdDevNs"), ("TIMETRA-SAS-PORT-MIB", "aluCurrent1MinPhaseErrorMeanNs"), ("TIMETRA-SAS-PORT-MIB", "aluCurrent1MinFreqOffsetMeanPpb"), ("TIMETRA-SAS-PORT-MIB", "aluCurrent1MinFreqOffsetStdDevPpb"), ("TIMETRA-SAS-PORT-MIB", "aluIntervalNumber"), ("TIMETRA-SAS-PORT-MIB", "aluIntervalValidData"), ("TIMETRA-SAS-PORT-MIB", "aluIntervalUpdateTime"), ("TIMETRA-SAS-PORT-MIB", "aluIntervalPhaseErrorMeanPpb"), ("TIMETRA-SAS-PORT-MIB", "aluIntervalPhaseErrorStdDevNs"), ("TIMETRA-SAS-PORT-MIB", "aluIntervalPhaseErrorMeanNs"), ("TIMETRA-SAS-PORT-MIB", "aluIntervalFreqOffsetMeanPpb"), ("TIMETRA-SAS-PORT-MIB", "aluIntervalFreqOffsetStdDevPpb")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): aluPortAcrClkStatsGroup = aluPortAcrClkStatsGroup.setStatus('current') tmnxSASPortV4v0Group = ObjectGroup((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 1, 2, 2, 5)).setObjects(("TIMETRA-SAS-PORT-MIB", "tmnxPortAccessEgressQueueStatsFwdPkts"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortAccessEgressQueueStatsFwdOcts"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortAccessEgressQueueStatsDroPkts"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortAccessEgressQueueStatsDroOcts"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortNetEgressQueueStatsFwdPkts"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortNetEgressQueueStatsFwdOcts"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortNetEgressQueueStatsDroPkts"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortNetEgressQueueStatsDroOcts"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortNetEgressQueueStatsInProfDroPkts"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortNetEgressQueueStatsInProfDroOcts"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortNetEgressQueueStatsOutProfDroPkts"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortNetEgressQueueStatsOutProfDroOcts"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortEtherIpMTU"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortEtherClockConfig"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortLoopbckServId"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortLoopbckSapPortId"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortLoopbckSapEncapVal"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortLoopbckSrcMacAddr"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortLoopbckDstMacAddr"), ("TIMETRA-SAS-PORT-MIB", "tmnxPortAccEgrSapQosMarking")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): tmnxSASPortV4v0Group = tmnxSASPortV4v0Group.setStatus('current') tmnxSASPortV5v0Group = ObjectGroup((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 1, 2, 2, 7)).setObjects(("TIMETRA-SAS-PORT-MIB", "tmnxPortLldpTnlNrstBrdgeDstMac")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): tmnxSASPortV5v0Group = tmnxSASPortV5v0Group.setStatus('current') tmnxSASPortV6v0Group = ObjectGroup((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 1, 2, 2, 8)).setObjects(("TIMETRA-SAS-PORT-MIB", "tmnxPortEtherNwAggRateLimit")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): tmnxSASPortV6v0Group = tmnxSASPortV6v0Group.setStatus('current') mibBuilder.exportSymbols("TIMETRA-SAS-PORT-MIB", tmnxPortEtherNwAggRateLimitCir=tmnxPortEtherNwAggRateLimitCir, aluExtPethPsePortTable=aluExtPethPsePortTable, tmnxPortNetEgressQueueStatsDroOcts=tmnxPortNetEgressQueueStatsDroOcts, PYSNMP_MODULE_ID=tmnxSASPortMIBModule, tmnxPortAccessEgressQueueStatsDroPkts=tmnxPortAccessEgressQueueStatsDroPkts, aluExtTmnxDS1Table=aluExtTmnxDS1Table, tmnxPortEtherClockConfig=tmnxPortEtherClockConfig, tmnxSASPortNetIngressFwdInProfOcts=tmnxSASPortNetIngressFwdInProfOcts, sasTmnxPortExtnEntry=sasTmnxPortExtnEntry, tmnxPortNetEgressQueueStatsOutProfDroOcts=tmnxPortNetEgressQueueStatsOutProfDroOcts, aluExtPethPsePortOperStatus=aluExtPethPsePortOperStatus, tmnxSASPortV4v0Group=tmnxSASPortV4v0Group, tmnxPortEtherLoopback=tmnxPortEtherLoopback, tmnxSASPortNetIngressFwdInProfPkts=tmnxSASPortNetIngressFwdInProfPkts, aluMaxShortIntervalMinutes=aluMaxShortIntervalMinutes, aluExtTmnxDS1PortEntry=aluExtTmnxDS1PortEntry, tmnxSASPortConformance=tmnxSASPortConformance, tmnxSASPortNetIngressFwdOutProfPkts=tmnxSASPortNetIngressFwdOutProfPkts, tmnxPortEtherMulticastIngress=tmnxPortEtherMulticastIngress, tmnxSASPortNetIngressStatsTable=tmnxSASPortNetIngressStatsTable, tmnxPortNetworkQoSPolicyId=tmnxPortNetworkQoSPolicyId, tmnxVirtualPortInUse=tmnxVirtualPortInUse, tmnxSASPortNetIngressMeterIndex=tmnxSASPortNetIngressMeterIndex, tmnxPortEtherDe1OutProfile=tmnxPortEtherDe1OutProfile, aluCurrent1MinFreqOffsetMeanPpb=aluCurrent1MinFreqOffsetMeanPpb, aluIntervalUpdateTime=aluIntervalUpdateTime, aluExtTmnxDS1PortTable=aluExtTmnxDS1PortTable, tmnxPortAccessEgressQueueStatsFwdPkts=tmnxPortAccessEgressQueueStatsFwdPkts, tmnxPortAccEgrSapQosMarking=tmnxPortAccEgrSapQosMarking, tmnxSASPortV5v0Group=tmnxSASPortV5v0Group, aluExtPethPsePortStatusChange=aluExtPethPsePortStatusChange, portShgLastMgmtChange=portShgLastMgmtChange, sasTmnxPortEtherExtnEntry=sasTmnxPortEtherExtnEntry, tmnxSASPortV2v0Group=tmnxSASPortV2v0Group, aluIntervalFreqOffsetStdDevPpb=aluIntervalFreqOffsetStdDevPpb, tmnxSASPortV1v0Group=tmnxSASPortV1v0Group, tmnxSASPortV1v1Group=tmnxSASPortV1v1Group, tmnxPortStatsQueue1PktsFwd=tmnxPortStatsQueue1PktsFwd, tmnxPortAccessEgressQueueStatsIndex=tmnxPortAccessEgressQueueStatsIndex, tmnxPortLldpTnlNrstBrdgeDstMac=tmnxPortLldpTnlNrstBrdgeDstMac, aluCurrent24HourFreqOffsetStdDevPpb=aluCurrent24HourFreqOffsetStdDevPpb, aluCurrent1MinValidData=aluCurrent1MinValidData, tmnxPortShgName=tmnxPortShgName, tmnxPortLoopbckSrcMacAddr=tmnxPortLoopbckSrcMacAddr, aluCurrent1MinPhaseErrorMeanNs=aluCurrent1MinPhaseErrorMeanNs, aluIntervalPhaseErrorMeanPpb=aluIntervalPhaseErrorMeanPpb, tmnxPortEtherNwAggRateLimit=tmnxPortEtherNwAggRateLimit, tmnxPortAccessEgressQueueStatsEntry=tmnxPortAccessEgressQueueStatsEntry, aluIntervalNumber=aluIntervalNumber, aluIntervalFreqOffsetMeanPpb=aluIntervalFreqOffsetMeanPpb, tmnxPortNetEgressQueueStatsFwdOcts=tmnxPortNetEgressQueueStatsFwdOcts, portShgInfoEntry=portShgInfoEntry, portShgRowStatus=portShgRowStatus, tmnxSASPortCompliances=tmnxSASPortCompliances, tmnxPortAccessEgressQueueStatsTable=tmnxPortAccessEgressQueueStatsTable, aluCurrent1MinFreqOffsetStdDevPpb=aluCurrent1MinFreqOffsetStdDevPpb, aluIntervalPhaseErrorMeanNs=aluIntervalPhaseErrorMeanNs, aluExtPethPsePortEntry=aluExtPethPsePortEntry, tmnxPortAccessEgressQueueStatsDroOcts=tmnxPortAccessEgressQueueStatsDroOcts, aluExtDS1PortLineImpedance=aluExtDS1PortLineImpedance, aluLastUpdateTime=aluLastUpdateTime, aluExtPethPsePortFaultReason=aluExtPethPsePortFaultReason, tmnxPortLoopbckSapEncapVal=tmnxPortLoopbckSapEncapVal, pethPsePortEventInfo=pethPsePortEventInfo, tmnxSASPortNotificationObjects=tmnxSASPortNotificationObjects, tmnxPortLoopbckDstMacAddr=tmnxPortLoopbckDstMacAddr, tmnxPortUseDei=tmnxPortUseDei, tmnxPortMonitorOperGrpName=tmnxPortMonitorOperGrpName, tmnxPortStatsQueue8PktsFwd=tmnxPortStatsQueue8PktsFwd, tmnxSASPortNetIngressFwdOutProfOcts=tmnxSASPortNetIngressFwdOutProfOcts, tmnxSASPortV3v0Group=tmnxSASPortV3v0Group, tmnxPortOperGrpName=tmnxPortOperGrpName, aluExtDS1SignalBitsState=aluExtDS1SignalBitsState, aluCurrent24HourFreqOffsetMeanPpb=aluCurrent24HourFreqOffsetMeanPpb, portShgName=portShgName, tmnxPortNetEgressQueueStatsDroPkts=tmnxPortNetEgressQueueStatsDroPkts, tmnxPortNetEgressQueueStatsTable=tmnxPortNetEgressQueueStatsTable, tmnxSASPortV6v0Group=tmnxSASPortV6v0Group, tmnxPortNetEgressQueueStatsInProfDroPkts=tmnxPortNetEgressQueueStatsInProfDroPkts, aluPortAcrClkStatsGroup=aluPortAcrClkStatsGroup, aluPortAcrClkStatsShortIntervalTable=aluPortAcrClkStatsShortIntervalTable, tmnxVirtualPortSpeed=tmnxVirtualPortSpeed, portShgInfoTable=portShgInfoTable, aluPortAcrClkStatsTable=aluPortAcrClkStatsTable, tmnxPortStatsQueue7PktsFwd=tmnxPortStatsQueue7PktsFwd, tmnxPortNetEgressQueueStatsEntry=tmnxPortNetEgressQueueStatsEntry, aluIntervalPhaseErrorStdDevNs=aluIntervalPhaseErrorStdDevNs, aluCurrent1MinPhaseErrorStdDevNs=aluCurrent1MinPhaseErrorStdDevNs, tmnxPortAccessEgressQueueStatsFwdOcts=tmnxPortAccessEgressQueueStatsFwdOcts, aluTotalMinutesIn24Hour=aluTotalMinutesIn24Hour, tmnxVirtualPortEntry=tmnxVirtualPortEntry, tmnxPortEtherIpMTU=tmnxPortEtherIpMTU, aluCurrent1MinPhaseErrorMeanPpb=aluCurrent1MinPhaseErrorMeanPpb, tmnxPortEtherDcommStatus=tmnxPortEtherDcommStatus, aluTotalShortIntervalMinutes=aluTotalShortIntervalMinutes, tmnxVirtualPortPortID=tmnxVirtualPortPortID, tmnxPortStatsQueue3PktsFwd=tmnxPortStatsQueue3PktsFwd, aluPortAcrClkStatsEntry=aluPortAcrClkStatsEntry, tmnxVirtualPortTable=tmnxVirtualPortTable, tmnxSASPortStatsObjs=tmnxSASPortStatsObjs, tmnxPortEtherEgressMaxBurst=tmnxPortEtherEgressMaxBurst, tmnxPortStatsQueue2PktsFwd=tmnxPortStatsQueue2PktsFwd, tmnxPortLoopbckServId=tmnxPortLoopbckServId, sasTmnxPortExtnTable=sasTmnxPortExtnTable, tmnxPortAccessEgressQoSPolicyId=tmnxPortAccessEgressQoSPolicyId, tmnxSASPortNetIngressStatsEntry=tmnxSASPortNetIngressStatsEntry, tmnxPortUplinkMode=tmnxPortUplinkMode, tmnxPortEtherNwAggRateLimitPir=tmnxPortEtherNwAggRateLimitPir, aluExtPethPsePortPowerLevel=aluExtPethPsePortPowerLevel, aluPortAcrClkStatsShortIntervalEntry=aluPortAcrClkStatsShortIntervalEntry, tmnxSASPortMIBModule=tmnxSASPortMIBModule, tmnxPortStatsQueue4PktsFwd=tmnxPortStatsQueue4PktsFwd, tmnxSASPortObjs=tmnxSASPortObjs, tmnxPortNetEgressQueueStatsIndex=tmnxPortNetEgressQueueStatsIndex, tmnxPortNetEgressQueueStatsFwdPkts=tmnxPortNetEgressQueueStatsFwdPkts, tmnxPortNetEgressQueueStatsInProfDroOcts=tmnxPortNetEgressQueueStatsInProfDroOcts, tmnxPortEtherEgrSchedMode=tmnxPortEtherEgrSchedMode, tmnxPortNetEgressQueueStatsOutProfDroPkts=tmnxPortNetEgressQueueStatsOutProfDroPkts, portShgInstanceId=portShgInstanceId, portShgDescription=portShgDescription, tmnxPortLoopbckSapPortId=tmnxPortLoopbckSapPortId, aluIntervalValidData=aluIntervalValidData, tmnxPortStatsQueue5PktsFwd=tmnxPortStatsQueue5PktsFwd, aluExtTmnxDS1Entry=aluExtTmnxDS1Entry, tmnxSASPortGroups=tmnxSASPortGroups, tmnxPortStatsQueue6PktsFwd=tmnxPortStatsQueue6PktsFwd, sasTmnxPortEtherExtnTable=sasTmnxPortEtherExtnTable)
(object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, single_value_constraint, value_range_constraint, constraints_intersection, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'SingleValueConstraint', 'ValueRangeConstraint', 'ConstraintsIntersection', 'ConstraintsUnion') (peth_pse_port_detection_status, peth_pse_port_power_classifications, peth_pse_port_index, peth_pse_port_entry) = mibBuilder.importSymbols('POWER-ETHERNET-MIB', 'pethPsePortDetectionStatus', 'pethPsePortPowerClassifications', 'pethPsePortIndex', 'pethPsePortEntry') (object_group, module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ObjectGroup', 'ModuleCompliance', 'NotificationGroup') (mib_scalar, mib_table, mib_table_row, mib_table_column, counter64, bits, mib_identifier, object_identity, ip_address, module_identity, notification_type, counter32, unsigned32, integer32, iso, time_ticks, gauge32) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter64', 'Bits', 'MibIdentifier', 'ObjectIdentity', 'IpAddress', 'ModuleIdentity', 'NotificationType', 'Counter32', 'Unsigned32', 'Integer32', 'iso', 'TimeTicks', 'Gauge32') (time_stamp, row_status, truth_value, time_interval, date_and_time, row_pointer, mac_address, display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'TimeStamp', 'RowStatus', 'TruthValue', 'TimeInterval', 'DateAndTime', 'RowPointer', 'MacAddress', 'DisplayString', 'TextualConvention') (tmnx_hw_objs, tmnx_hw_conformance, tmnx_port_admin_status, tmnx_chassis_notify_chassis_id, tmnx_hw_notification, tmnx_mda_chan_type, tmnx_alarm_state, tmnx_chassis_index) = mibBuilder.importSymbols('TIMETRA-CHASSIS-MIB', 'tmnxHwObjs', 'tmnxHwConformance', 'TmnxPortAdminStatus', 'tmnxChassisNotifyChassisId', 'tmnxHwNotification', 'TmnxMDAChanType', 'TmnxAlarmState', 'tmnxChassisIndex') (timetra_srmib_modules,) = mibBuilder.importSymbols('TIMETRA-GLOBAL-MIB', 'timetraSRMIBModules') (tmnx_ds1_entry, tmnx_port_ether_entry, tmnx_ds1_port_entry, tmnx_port_notify_port_id, tmnx_port_port_id, tmnx_port_entry) = mibBuilder.importSymbols('TIMETRA-PORT-MIB', 'tmnxDS1Entry', 'tmnxPortEtherEntry', 'tmnxDS1PortEntry', 'tmnxPortNotifyPortId', 'tmnxPortPortID', 'tmnxPortEntry') (timetra_sas_modules, timetra_sas_notify_prefix, timetra_sas_confs, timetra_sas_objs) = mibBuilder.importSymbols('TIMETRA-SAS-GLOBAL-MIB', 'timetraSASModules', 'timetraSASNotifyPrefix', 'timetraSASConfs', 'timetraSASObjs') (tfc_name, t_port_scheduler_cir, t_port_scheduler_pir, t_named_item_or_empty, t_queue_id, tmnx_serv_id, tmnx_oper_state, t_item_description, t_network_ingress_meter_id, tmnx_port_id, serv_obj_desc, tmnx_action_type, t_item_long_description, t_named_item, tmnx_encap_val) = mibBuilder.importSymbols('TIMETRA-TC-MIB', 'TFCName', 'TPortSchedulerCIR', 'TPortSchedulerPIR', 'TNamedItemOrEmpty', 'TQueueId', 'TmnxServId', 'TmnxOperState', 'TItemDescription', 'TNetworkIngressMeterId', 'TmnxPortID', 'ServObjDesc', 'TmnxActionType', 'TItemLongDescription', 'TNamedItem', 'TmnxEncapVal') tmnx_sas_port_mib_module = module_identity((1, 3, 6, 1, 4, 1, 6527, 6, 2, 1, 1, 6)) tmnxSASPortMIBModule.setRevisions(('1908-01-09 00:00',)) if mibBuilder.loadTexts: tmnxSASPortMIBModule.setLastUpdated('0701010000Z') if mibBuilder.loadTexts: tmnxSASPortMIBModule.setOrganization('Alcatel') tmnx_sas_port_objs = mib_identifier((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2)) tmnx_sas_port_notification_objects = mib_identifier((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 3)) tmnx_sas_port_stats_objs = mib_identifier((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 4)) tmnx_sas_port_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 1, 2)) port_shg_info_table = mib_table((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 6)) if mibBuilder.loadTexts: portShgInfoTable.setStatus('current') port_shg_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 6, 1)).setIndexNames((1, 'TIMETRA-SAS-PORT-MIB', 'portShgName')) if mibBuilder.loadTexts: portShgInfoEntry.setStatus('current') port_shg_name = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 6, 1, 1), t_named_item()) if mibBuilder.loadTexts: portShgName.setStatus('current') port_shg_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 6, 1, 2), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: portShgRowStatus.setStatus('current') port_shg_instance_id = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 6, 1, 3), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: portShgInstanceId.setStatus('current') port_shg_description = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 6, 1, 4), serv_obj_desc()).setMaxAccess('readcreate') if mibBuilder.loadTexts: portShgDescription.setStatus('current') port_shg_last_mgmt_change = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 6, 1, 5), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: portShgLastMgmtChange.setStatus('current') sas_tmnx_port_extn_table = mib_table((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 2)) if mibBuilder.loadTexts: sasTmnxPortExtnTable.setStatus('current') sas_tmnx_port_extn_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 2, 1)) tmnxPortEntry.registerAugmentions(('TIMETRA-SAS-PORT-MIB', 'sasTmnxPortExtnEntry')) sasTmnxPortExtnEntry.setIndexNames(*tmnxPortEntry.getIndexNames()) if mibBuilder.loadTexts: sasTmnxPortExtnEntry.setStatus('current') tmnx_port_uplink_mode = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 2, 1, 1), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tmnxPortUplinkMode.setStatus('current') tmnx_port_access_egress_qo_s_policy_id = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 2, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 65535)).clone(1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: tmnxPortAccessEgressQoSPolicyId.setStatus('current') tmnx_port_network_qo_s_policy_id = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 2, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 65535)).clone(1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: tmnxPortNetworkQoSPolicyId.setStatus('current') tmnx_port_shg_name = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 2, 1, 4), t_named_item_or_empty()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tmnxPortShgName.setStatus('current') tmnx_port_use_dei = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 2, 1, 5), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: tmnxPortUseDei.setStatus('current') tmnx_port_oper_grp_name = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 2, 1, 6), t_named_item_or_empty()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tmnxPortOperGrpName.setStatus('current') tmnx_port_monitor_oper_grp_name = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 2, 1, 7), t_named_item_or_empty()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tmnxPortMonitorOperGrpName.setStatus('current') tmnx_sas_port_net_ingress_stats_table = mib_table((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 3)) if mibBuilder.loadTexts: tmnxSASPortNetIngressStatsTable.setStatus('current') tmnx_sas_port_net_ingress_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 3, 1)).setIndexNames((0, 'TIMETRA-CHASSIS-MIB', 'tmnxChassisIndex'), (0, 'TIMETRA-PORT-MIB', 'tmnxPortPortID'), (0, 'TIMETRA-SAS-PORT-MIB', 'tmnxSASPortNetIngressMeterIndex')) if mibBuilder.loadTexts: tmnxSASPortNetIngressStatsEntry.setStatus('current') tmnx_sas_port_net_ingress_meter_index = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 3, 1, 1), t_network_ingress_meter_id()) if mibBuilder.loadTexts: tmnxSASPortNetIngressMeterIndex.setStatus('current') tmnx_sas_port_net_ingress_fwd_in_prof_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 3, 1, 2), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: tmnxSASPortNetIngressFwdInProfPkts.setStatus('current') tmnx_sas_port_net_ingress_fwd_out_prof_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 3, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: tmnxSASPortNetIngressFwdOutProfPkts.setStatus('current') tmnx_sas_port_net_ingress_fwd_in_prof_octs = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 3, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: tmnxSASPortNetIngressFwdInProfOcts.setStatus('current') tmnx_sas_port_net_ingress_fwd_out_prof_octs = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 3, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: tmnxSASPortNetIngressFwdOutProfOcts.setStatus('current') sas_tmnx_port_ether_extn_table = mib_table((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4)) if mibBuilder.loadTexts: sasTmnxPortEtherExtnTable.setStatus('current') sas_tmnx_port_ether_extn_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1)) tmnxPortEtherEntry.registerAugmentions(('TIMETRA-SAS-PORT-MIB', 'sasTmnxPortEtherExtnEntry')) sasTmnxPortEtherExtnEntry.setIndexNames(*tmnxPortEtherEntry.getIndexNames()) if mibBuilder.loadTexts: sasTmnxPortEtherExtnEntry.setStatus('current') tmnx_port_ether_egress_max_burst = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 1), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(-1, -1), value_range_constraint(32, 16384))).clone(-1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: tmnxPortEtherEgressMaxBurst.setStatus('current') tmnx_port_stats_queue1_pkts_fwd = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 2), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tmnxPortStatsQueue1PktsFwd.setStatus('current') tmnx_port_stats_queue2_pkts_fwd = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 3), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tmnxPortStatsQueue2PktsFwd.setStatus('current') tmnx_port_stats_queue3_pkts_fwd = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 4), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tmnxPortStatsQueue3PktsFwd.setStatus('current') tmnx_port_stats_queue4_pkts_fwd = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 5), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tmnxPortStatsQueue4PktsFwd.setStatus('current') tmnx_port_stats_queue5_pkts_fwd = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 6), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tmnxPortStatsQueue5PktsFwd.setStatus('current') tmnx_port_stats_queue6_pkts_fwd = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 7), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tmnxPortStatsQueue6PktsFwd.setStatus('current') tmnx_port_stats_queue7_pkts_fwd = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 8), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tmnxPortStatsQueue7PktsFwd.setStatus('current') tmnx_port_stats_queue8_pkts_fwd = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 9), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tmnxPortStatsQueue8PktsFwd.setStatus('current') tmnx_port_ether_egr_sched_mode = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('fc-based', 1), ('sap-based', 2))).clone('fc-based')).setMaxAccess('readwrite') if mibBuilder.loadTexts: tmnxPortEtherEgrSchedMode.setStatus('current') tmnx_port_ether_loopback = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 2))).clone(namedValues=named_values(('none', 0), ('internal', 2))).clone('none')).setMaxAccess('readwrite') if mibBuilder.loadTexts: tmnxPortEtherLoopback.setStatus('current') tmnx_port_ether_ip_mtu = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 12), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(512, 9000)))).setUnits('bytes').setMaxAccess('readwrite') if mibBuilder.loadTexts: tmnxPortEtherIpMTU.setStatus('current') tmnx_port_ether_clock_config = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3))).clone(namedValues=named_values(('notApplicable', 0), ('automatic', 1), ('manual-master', 2), ('manual-slave', 3))).clone('notApplicable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: tmnxPortEtherClockConfig.setStatus('current') tmnx_port_loopbck_serv_id = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 14), tmnx_serv_id()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tmnxPortLoopbckServId.setStatus('current') tmnx_port_loopbck_sap_port_id = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 15), tmnx_port_id()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tmnxPortLoopbckSapPortId.setStatus('current') tmnx_port_loopbck_sap_encap_val = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 16), tmnx_encap_val()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tmnxPortLoopbckSapEncapVal.setStatus('current') tmnx_port_loopbck_src_mac_addr = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 17), mac_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tmnxPortLoopbckSrcMacAddr.setStatus('current') tmnx_port_loopbck_dst_mac_addr = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 18), mac_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tmnxPortLoopbckDstMacAddr.setStatus('current') tmnx_port_acc_egr_sap_qos_marking = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 19), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2))).clone('enable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: tmnxPortAccEgrSapQosMarking.setStatus('current') tmnx_port_lldp_tnl_nrst_brdge_dst_mac = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 20), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: tmnxPortLldpTnlNrstBrdgeDstMac.setStatus('current') tmnx_port_ether_de1_out_profile = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 22), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: tmnxPortEtherDe1OutProfile.setStatus('current') tmnx_port_ether_nw_agg_rate_limit = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 23), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(-1, -1), value_range_constraint(1, 100000000))).clone(-1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: tmnxPortEtherNwAggRateLimit.setStatus('current') tmnx_port_ether_nw_agg_rate_limit_cir = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 28), integer32().subtype(subtypeSpec=value_range_constraint(0, 10000000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: tmnxPortEtherNwAggRateLimitCir.setStatus('current') tmnx_port_ether_nw_agg_rate_limit_pir = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 29), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(-1, -1), value_range_constraint(1, 10000000))).clone(-1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: tmnxPortEtherNwAggRateLimitPir.setStatus('current') tmnx_port_ether_dcomm_status = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 30), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: tmnxPortEtherDcommStatus.setStatus('current') tmnx_port_ether_multicast_ingress = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 4, 1, 31), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('l2-mc', 1), ('ip-mc', 2))).clone('l2-mc')).setMaxAccess('readwrite') if mibBuilder.loadTexts: tmnxPortEtherMulticastIngress.setStatus('current') tmnx_port_access_egress_queue_stats_table = mib_table((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 7)) if mibBuilder.loadTexts: tmnxPortAccessEgressQueueStatsTable.setStatus('current') tmnx_port_access_egress_queue_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 7, 1)).setIndexNames((0, 'TIMETRA-CHASSIS-MIB', 'tmnxChassisIndex'), (0, 'TIMETRA-PORT-MIB', 'tmnxPortPortID'), (0, 'TIMETRA-SAS-PORT-MIB', 'tmnxPortAccessEgressQueueStatsIndex')) if mibBuilder.loadTexts: tmnxPortAccessEgressQueueStatsEntry.setStatus('current') tmnx_port_access_egress_queue_stats_index = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 7, 1, 1), t_queue_id().subtype(subtypeSpec=value_range_constraint(1, 8))) if mibBuilder.loadTexts: tmnxPortAccessEgressQueueStatsIndex.setStatus('current') tmnx_port_access_egress_queue_stats_fwd_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 7, 1, 2), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: tmnxPortAccessEgressQueueStatsFwdPkts.setStatus('current') tmnx_port_access_egress_queue_stats_fwd_octs = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 7, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: tmnxPortAccessEgressQueueStatsFwdOcts.setStatus('current') tmnx_port_access_egress_queue_stats_dro_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 7, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: tmnxPortAccessEgressQueueStatsDroPkts.setStatus('current') tmnx_port_access_egress_queue_stats_dro_octs = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 7, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: tmnxPortAccessEgressQueueStatsDroOcts.setStatus('current') tmnx_port_net_egress_queue_stats_table = mib_table((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 8)) if mibBuilder.loadTexts: tmnxPortNetEgressQueueStatsTable.setStatus('current') tmnx_port_net_egress_queue_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 8, 1)).setIndexNames((0, 'TIMETRA-CHASSIS-MIB', 'tmnxChassisIndex'), (0, 'TIMETRA-PORT-MIB', 'tmnxPortPortID'), (0, 'TIMETRA-SAS-PORT-MIB', 'tmnxPortNetEgressQueueStatsIndex')) if mibBuilder.loadTexts: tmnxPortNetEgressQueueStatsEntry.setStatus('current') tmnx_port_net_egress_queue_stats_index = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 8, 1, 1), t_queue_id().subtype(subtypeSpec=value_range_constraint(1, 8))) if mibBuilder.loadTexts: tmnxPortNetEgressQueueStatsIndex.setStatus('current') tmnx_port_net_egress_queue_stats_fwd_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 8, 1, 2), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: tmnxPortNetEgressQueueStatsFwdPkts.setStatus('current') tmnx_port_net_egress_queue_stats_fwd_octs = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 8, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: tmnxPortNetEgressQueueStatsFwdOcts.setStatus('current') tmnx_port_net_egress_queue_stats_dro_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 8, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: tmnxPortNetEgressQueueStatsDroPkts.setStatus('current') tmnx_port_net_egress_queue_stats_dro_octs = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 8, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: tmnxPortNetEgressQueueStatsDroOcts.setStatus('current') tmnx_port_net_egress_queue_stats_in_prof_dro_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 8, 1, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: tmnxPortNetEgressQueueStatsInProfDroPkts.setStatus('current') tmnx_port_net_egress_queue_stats_in_prof_dro_octs = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 8, 1, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: tmnxPortNetEgressQueueStatsInProfDroOcts.setStatus('current') tmnx_port_net_egress_queue_stats_out_prof_dro_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 8, 1, 8), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: tmnxPortNetEgressQueueStatsOutProfDroPkts.setStatus('current') tmnx_port_net_egress_queue_stats_out_prof_dro_octs = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 8, 1, 9), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: tmnxPortNetEgressQueueStatsOutProfDroOcts.setStatus('current') alu_ext_tmnx_ds1_port_table = mib_table((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 9)) if mibBuilder.loadTexts: aluExtTmnxDS1PortTable.setStatus('current') alu_ext_tmnx_ds1_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 9, 1)) tmnxDS1PortEntry.registerAugmentions(('TIMETRA-SAS-PORT-MIB', 'aluExtTmnxDS1PortEntry')) aluExtTmnxDS1PortEntry.setIndexNames(*tmnxDS1PortEntry.getIndexNames()) if mibBuilder.loadTexts: aluExtTmnxDS1PortEntry.setStatus('current') alu_ext_ds1_port_line_impedance = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 9, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3))).clone(namedValues=named_values(('notApplicable', 0), ('impedance75Ohms', 1), ('impedance100Ohms', 2), ('impedance120Ohms', 3))).clone('impedance100Ohms')).setMaxAccess('readwrite') if mibBuilder.loadTexts: aluExtDS1PortLineImpedance.setStatus('current') alu_port_acr_clk_stats_table = mib_table((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 10)) if mibBuilder.loadTexts: aluPortAcrClkStatsTable.setStatus('current') alu_port_acr_clk_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 10, 1)).setIndexNames((0, 'TIMETRA-CHASSIS-MIB', 'tmnxChassisIndex'), (0, 'TIMETRA-PORT-MIB', 'tmnxPortPortID')) if mibBuilder.loadTexts: aluPortAcrClkStatsEntry.setStatus('current') alu_last_update_time = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 10, 1, 1), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: aluLastUpdateTime.setStatus('current') alu_total_minutes_in24_hour = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 10, 1, 2), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: aluTotalMinutesIn24Hour.setStatus('current') alu_current24_hour_freq_offset_mean_ppb = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 10, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: aluCurrent24HourFreqOffsetMeanPpb.setStatus('current') alu_current24_hour_freq_offset_std_dev_ppb = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 10, 1, 4), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: aluCurrent24HourFreqOffsetStdDevPpb.setStatus('current') alu_max_short_interval_minutes = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 10, 1, 5), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: aluMaxShortIntervalMinutes.setStatus('current') alu_total_short_interval_minutes = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 10, 1, 6), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: aluTotalShortIntervalMinutes.setStatus('current') alu_current1_min_valid_data = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 10, 1, 7), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: aluCurrent1MinValidData.setStatus('current') alu_current1_min_phase_error_mean_ppb = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 10, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: aluCurrent1MinPhaseErrorMeanPpb.setStatus('current') alu_current1_min_phase_error_std_dev_ns = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 10, 1, 9), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: aluCurrent1MinPhaseErrorStdDevNs.setStatus('current') alu_current1_min_phase_error_mean_ns = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 10, 1, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: aluCurrent1MinPhaseErrorMeanNs.setStatus('current') alu_current1_min_freq_offset_mean_ppb = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 10, 1, 11), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: aluCurrent1MinFreqOffsetMeanPpb.setStatus('current') alu_current1_min_freq_offset_std_dev_ppb = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 10, 1, 12), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: aluCurrent1MinFreqOffsetStdDevPpb.setStatus('current') alu_port_acr_clk_stats_short_interval_table = mib_table((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 11)) if mibBuilder.loadTexts: aluPortAcrClkStatsShortIntervalTable.setStatus('current') alu_port_acr_clk_stats_short_interval_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 11, 1)).setIndexNames((0, 'TIMETRA-CHASSIS-MIB', 'tmnxChassisIndex'), (0, 'TIMETRA-PORT-MIB', 'tmnxPortPortID'), (0, 'TIMETRA-SAS-PORT-MIB', 'aluIntervalNumber')) if mibBuilder.loadTexts: aluPortAcrClkStatsShortIntervalEntry.setStatus('current') alu_interval_number = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 11, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 15))).setMaxAccess('readonly') if mibBuilder.loadTexts: aluIntervalNumber.setStatus('current') alu_interval_valid_data = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 11, 1, 2), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: aluIntervalValidData.setStatus('current') alu_interval_update_time = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 11, 1, 3), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: aluIntervalUpdateTime.setStatus('current') alu_interval_phase_error_mean_ppb = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 11, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: aluIntervalPhaseErrorMeanPpb.setStatus('current') alu_interval_phase_error_std_dev_ns = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 11, 1, 5), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: aluIntervalPhaseErrorStdDevNs.setStatus('current') alu_interval_phase_error_mean_ns = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 11, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: aluIntervalPhaseErrorMeanNs.setStatus('current') alu_interval_freq_offset_mean_ppb = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 11, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: aluIntervalFreqOffsetMeanPpb.setStatus('current') alu_interval_freq_offset_std_dev_ppb = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 11, 1, 8), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: aluIntervalFreqOffsetStdDevPpb.setStatus('current') alu_ext_tmnx_ds1_table = mib_table((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 12)) if mibBuilder.loadTexts: aluExtTmnxDS1Table.setStatus('current') alu_ext_tmnx_ds1_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 12, 1)) tmnxDS1Entry.registerAugmentions(('TIMETRA-SAS-PORT-MIB', 'aluExtTmnxDS1Entry')) aluExtTmnxDS1Entry.setIndexNames(*tmnxDS1Entry.getIndexNames()) if mibBuilder.loadTexts: aluExtTmnxDS1Entry.setStatus('current') alu_ext_ds1_signal_bits_state = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 12, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(64, 64)).setFixedLength(64)).setMaxAccess('readonly') if mibBuilder.loadTexts: aluExtDS1SignalBitsState.setStatus('current') alu_ext_peth_pse_port_table = mib_table((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 13)) if mibBuilder.loadTexts: aluExtPethPsePortTable.setStatus('current') alu_ext_peth_pse_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 13, 1)) pethPsePortEntry.registerAugmentions(('TIMETRA-SAS-PORT-MIB', 'aluExtPethPsePortEntry')) aluExtPethPsePortEntry.setIndexNames(*pethPsePortEntry.getIndexNames()) if mibBuilder.loadTexts: aluExtPethPsePortEntry.setStatus('current') alu_ext_peth_pse_port_fault_reason = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 13, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14))).clone(namedValues=named_values(('none', 1), ('dcp', 2), ('hicap', 3), ('rlow', 4), ('detok', 5), ('rhigh', 6), ('open', 7), ('dcn', 8), ('tstart', 9), ('icv', 10), ('tcut', 11), ('dis', 12), ('sup', 13), ('pdeny', 14))).clone('none')).setMaxAccess('readonly') if mibBuilder.loadTexts: aluExtPethPsePortFaultReason.setStatus('current') alu_ext_peth_pse_port_power_level = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 13, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('none', 1), ('standard', 2), ('plus', 3))).clone('none')).setMaxAccess('readwrite') if mibBuilder.loadTexts: aluExtPethPsePortPowerLevel.setStatus('current') alu_ext_peth_pse_port_oper_status = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 13, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('notApplicable', 1), ('on', 2), ('off', 3))).clone('off')).setMaxAccess('readonly') if mibBuilder.loadTexts: aluExtPethPsePortOperStatus.setStatus('current') peth_pse_port_event_info = mib_scalar((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 14), octet_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: pethPsePortEventInfo.setStatus('current') tmnx_virtual_port_table = mib_table((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 15)) if mibBuilder.loadTexts: tmnxVirtualPortTable.setStatus('current') tmnx_virtual_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 15, 1)).setIndexNames((0, 'TIMETRA-CHASSIS-MIB', 'tmnxChassisIndex'), (0, 'TIMETRA-SAS-PORT-MIB', 'tmnxVirtualPortPortID')) if mibBuilder.loadTexts: tmnxVirtualPortEntry.setStatus('current') tmnx_virtual_port_port_id = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 15, 1, 1), tmnx_port_id()) if mibBuilder.loadTexts: tmnxVirtualPortPortID.setStatus('current') tmnx_virtual_port_in_use = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 15, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('not-in-use', 1), ('mirror', 2), ('macswap', 3), ('testhead', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: tmnxVirtualPortInUse.setStatus('current') tmnx_virtual_port_speed = mib_table_column((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 2, 15, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('one-gig', 1), ('ten-gig', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: tmnxVirtualPortSpeed.setStatus('current') alu_ext_peth_pse_port_status_change = notification_type((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 2, 3, 1)).setObjects(('POWER-ETHERNET-MIB', 'pethPsePortDetectionStatus'), ('POWER-ETHERNET-MIB', 'pethPsePortPowerClassifications'), ('TIMETRA-SAS-PORT-MIB', 'aluExtPethPsePortFaultReason'), ('TIMETRA-SAS-PORT-MIB', 'aluExtPethPsePortOperStatus'), ('TIMETRA-PORT-MIB', 'tmnxPortNotifyPortId')) if mibBuilder.loadTexts: aluExtPethPsePortStatusChange.setStatus('current') tmnx_sas_port_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 1, 2, 1)) tmnx_sas_port_groups = mib_identifier((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 1, 2, 2)) tmnx_sas_port_v1v0_group = object_group((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 1, 2, 2, 1)).setObjects(('TIMETRA-SAS-PORT-MIB', 'tmnxPortUplinkMode'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortAccessEgressQoSPolicyId'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortNetworkQoSPolicyId'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortShgName'), ('TIMETRA-SAS-PORT-MIB', 'portShgRowStatus'), ('TIMETRA-SAS-PORT-MIB', 'portShgInstanceId'), ('TIMETRA-SAS-PORT-MIB', 'portShgDescription'), ('TIMETRA-SAS-PORT-MIB', 'portShgLastMgmtChange'), ('TIMETRA-SAS-PORT-MIB', 'tmnxSASPortNetIngressFwdInProfPkts'), ('TIMETRA-SAS-PORT-MIB', 'tmnxSASPortNetIngressFwdOutProfPkts'), ('TIMETRA-SAS-PORT-MIB', 'tmnxSASPortNetIngressFwdInProfOcts'), ('TIMETRA-SAS-PORT-MIB', 'tmnxSASPortNetIngressFwdOutProfOcts'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortEtherEgressMaxBurst'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortStatsQueue1PktsFwd'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortStatsQueue2PktsFwd'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortStatsQueue3PktsFwd'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortStatsQueue4PktsFwd'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortStatsQueue5PktsFwd'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortStatsQueue6PktsFwd'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortStatsQueue7PktsFwd'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortStatsQueue8PktsFwd'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortEtherLoopback')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): tmnx_sas_port_v1v0_group = tmnxSASPortV1v0Group.setStatus('current') tmnx_sas_port_v1v1_group = object_group((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 1, 2, 2, 2)).setObjects(('TIMETRA-SAS-PORT-MIB', 'tmnxPortAccessEgressQueueStatsFwdPkts'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortAccessEgressQueueStatsFwdOcts'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortAccessEgressQueueStatsDroPkts'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortAccessEgressQueueStatsDroOcts'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortNetEgressQueueStatsFwdPkts'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortNetEgressQueueStatsFwdOcts'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortNetEgressQueueStatsDroPkts'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortNetEgressQueueStatsDroOcts'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortNetEgressQueueStatsInProfDroPkts'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortNetEgressQueueStatsInProfDroOcts'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortNetEgressQueueStatsOutProfDroPkts'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortNetEgressQueueStatsOutProfDroOcts')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): tmnx_sas_port_v1v1_group = tmnxSASPortV1v1Group.setStatus('current') tmnx_sas_port_v2v0_group = object_group((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 1, 2, 2, 3)).setObjects(('TIMETRA-SAS-PORT-MIB', 'aluExtDS1PortLineImpedance'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortEtherEgrSchedMode')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): tmnx_sas_port_v2v0_group = tmnxSASPortV2v0Group.setStatus('current') tmnx_sas_port_v3v0_group = object_group((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 1, 2, 2, 6)).setObjects(('TIMETRA-SAS-PORT-MIB', 'tmnxPortEtherClockConfig')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): tmnx_sas_port_v3v0_group = tmnxSASPortV3v0Group.setStatus('current') alu_port_acr_clk_stats_group = object_group((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 1, 2, 2, 4)).setObjects(('TIMETRA-SAS-PORT-MIB', 'aluLastUpdateTime'), ('TIMETRA-SAS-PORT-MIB', 'aluTotalMinutesIn24Hour'), ('TIMETRA-SAS-PORT-MIB', 'aluCurrent24HourFreqOffsetMeanPpb'), ('TIMETRA-SAS-PORT-MIB', 'aluCurrent24HourFreqOffsetStdDevPpb'), ('TIMETRA-SAS-PORT-MIB', 'aluMaxShortIntervalMinutes'), ('TIMETRA-SAS-PORT-MIB', 'aluTotalShortIntervalMinutes'), ('TIMETRA-SAS-PORT-MIB', 'aluCurrent1MinValidData'), ('TIMETRA-SAS-PORT-MIB', 'aluCurrent1MinPhaseErrorMeanPpb'), ('TIMETRA-SAS-PORT-MIB', 'aluCurrent1MinPhaseErrorStdDevNs'), ('TIMETRA-SAS-PORT-MIB', 'aluCurrent1MinPhaseErrorMeanNs'), ('TIMETRA-SAS-PORT-MIB', 'aluCurrent1MinFreqOffsetMeanPpb'), ('TIMETRA-SAS-PORT-MIB', 'aluCurrent1MinFreqOffsetStdDevPpb'), ('TIMETRA-SAS-PORT-MIB', 'aluIntervalNumber'), ('TIMETRA-SAS-PORT-MIB', 'aluIntervalValidData'), ('TIMETRA-SAS-PORT-MIB', 'aluIntervalUpdateTime'), ('TIMETRA-SAS-PORT-MIB', 'aluIntervalPhaseErrorMeanPpb'), ('TIMETRA-SAS-PORT-MIB', 'aluIntervalPhaseErrorStdDevNs'), ('TIMETRA-SAS-PORT-MIB', 'aluIntervalPhaseErrorMeanNs'), ('TIMETRA-SAS-PORT-MIB', 'aluIntervalFreqOffsetMeanPpb'), ('TIMETRA-SAS-PORT-MIB', 'aluIntervalFreqOffsetStdDevPpb')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alu_port_acr_clk_stats_group = aluPortAcrClkStatsGroup.setStatus('current') tmnx_sas_port_v4v0_group = object_group((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 1, 2, 2, 5)).setObjects(('TIMETRA-SAS-PORT-MIB', 'tmnxPortAccessEgressQueueStatsFwdPkts'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortAccessEgressQueueStatsFwdOcts'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortAccessEgressQueueStatsDroPkts'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortAccessEgressQueueStatsDroOcts'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortNetEgressQueueStatsFwdPkts'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortNetEgressQueueStatsFwdOcts'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortNetEgressQueueStatsDroPkts'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortNetEgressQueueStatsDroOcts'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortNetEgressQueueStatsInProfDroPkts'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortNetEgressQueueStatsInProfDroOcts'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortNetEgressQueueStatsOutProfDroPkts'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortNetEgressQueueStatsOutProfDroOcts'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortEtherIpMTU'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortEtherClockConfig'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortLoopbckServId'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortLoopbckSapPortId'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortLoopbckSapEncapVal'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortLoopbckSrcMacAddr'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortLoopbckDstMacAddr'), ('TIMETRA-SAS-PORT-MIB', 'tmnxPortAccEgrSapQosMarking')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): tmnx_sas_port_v4v0_group = tmnxSASPortV4v0Group.setStatus('current') tmnx_sas_port_v5v0_group = object_group((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 1, 2, 2, 7)).setObjects(('TIMETRA-SAS-PORT-MIB', 'tmnxPortLldpTnlNrstBrdgeDstMac')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): tmnx_sas_port_v5v0_group = tmnxSASPortV5v0Group.setStatus('current') tmnx_sas_port_v6v0_group = object_group((1, 3, 6, 1, 4, 1, 6527, 6, 2, 2, 1, 2, 2, 8)).setObjects(('TIMETRA-SAS-PORT-MIB', 'tmnxPortEtherNwAggRateLimit')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): tmnx_sas_port_v6v0_group = tmnxSASPortV6v0Group.setStatus('current') mibBuilder.exportSymbols('TIMETRA-SAS-PORT-MIB', tmnxPortEtherNwAggRateLimitCir=tmnxPortEtherNwAggRateLimitCir, aluExtPethPsePortTable=aluExtPethPsePortTable, tmnxPortNetEgressQueueStatsDroOcts=tmnxPortNetEgressQueueStatsDroOcts, PYSNMP_MODULE_ID=tmnxSASPortMIBModule, tmnxPortAccessEgressQueueStatsDroPkts=tmnxPortAccessEgressQueueStatsDroPkts, aluExtTmnxDS1Table=aluExtTmnxDS1Table, tmnxPortEtherClockConfig=tmnxPortEtherClockConfig, tmnxSASPortNetIngressFwdInProfOcts=tmnxSASPortNetIngressFwdInProfOcts, sasTmnxPortExtnEntry=sasTmnxPortExtnEntry, tmnxPortNetEgressQueueStatsOutProfDroOcts=tmnxPortNetEgressQueueStatsOutProfDroOcts, aluExtPethPsePortOperStatus=aluExtPethPsePortOperStatus, tmnxSASPortV4v0Group=tmnxSASPortV4v0Group, tmnxPortEtherLoopback=tmnxPortEtherLoopback, tmnxSASPortNetIngressFwdInProfPkts=tmnxSASPortNetIngressFwdInProfPkts, aluMaxShortIntervalMinutes=aluMaxShortIntervalMinutes, aluExtTmnxDS1PortEntry=aluExtTmnxDS1PortEntry, tmnxSASPortConformance=tmnxSASPortConformance, tmnxSASPortNetIngressFwdOutProfPkts=tmnxSASPortNetIngressFwdOutProfPkts, tmnxPortEtherMulticastIngress=tmnxPortEtherMulticastIngress, tmnxSASPortNetIngressStatsTable=tmnxSASPortNetIngressStatsTable, tmnxPortNetworkQoSPolicyId=tmnxPortNetworkQoSPolicyId, tmnxVirtualPortInUse=tmnxVirtualPortInUse, tmnxSASPortNetIngressMeterIndex=tmnxSASPortNetIngressMeterIndex, tmnxPortEtherDe1OutProfile=tmnxPortEtherDe1OutProfile, aluCurrent1MinFreqOffsetMeanPpb=aluCurrent1MinFreqOffsetMeanPpb, aluIntervalUpdateTime=aluIntervalUpdateTime, aluExtTmnxDS1PortTable=aluExtTmnxDS1PortTable, tmnxPortAccessEgressQueueStatsFwdPkts=tmnxPortAccessEgressQueueStatsFwdPkts, tmnxPortAccEgrSapQosMarking=tmnxPortAccEgrSapQosMarking, tmnxSASPortV5v0Group=tmnxSASPortV5v0Group, aluExtPethPsePortStatusChange=aluExtPethPsePortStatusChange, portShgLastMgmtChange=portShgLastMgmtChange, sasTmnxPortEtherExtnEntry=sasTmnxPortEtherExtnEntry, tmnxSASPortV2v0Group=tmnxSASPortV2v0Group, aluIntervalFreqOffsetStdDevPpb=aluIntervalFreqOffsetStdDevPpb, tmnxSASPortV1v0Group=tmnxSASPortV1v0Group, tmnxSASPortV1v1Group=tmnxSASPortV1v1Group, tmnxPortStatsQueue1PktsFwd=tmnxPortStatsQueue1PktsFwd, tmnxPortAccessEgressQueueStatsIndex=tmnxPortAccessEgressQueueStatsIndex, tmnxPortLldpTnlNrstBrdgeDstMac=tmnxPortLldpTnlNrstBrdgeDstMac, aluCurrent24HourFreqOffsetStdDevPpb=aluCurrent24HourFreqOffsetStdDevPpb, aluCurrent1MinValidData=aluCurrent1MinValidData, tmnxPortShgName=tmnxPortShgName, tmnxPortLoopbckSrcMacAddr=tmnxPortLoopbckSrcMacAddr, aluCurrent1MinPhaseErrorMeanNs=aluCurrent1MinPhaseErrorMeanNs, aluIntervalPhaseErrorMeanPpb=aluIntervalPhaseErrorMeanPpb, tmnxPortEtherNwAggRateLimit=tmnxPortEtherNwAggRateLimit, tmnxPortAccessEgressQueueStatsEntry=tmnxPortAccessEgressQueueStatsEntry, aluIntervalNumber=aluIntervalNumber, aluIntervalFreqOffsetMeanPpb=aluIntervalFreqOffsetMeanPpb, tmnxPortNetEgressQueueStatsFwdOcts=tmnxPortNetEgressQueueStatsFwdOcts, portShgInfoEntry=portShgInfoEntry, portShgRowStatus=portShgRowStatus, tmnxSASPortCompliances=tmnxSASPortCompliances, tmnxPortAccessEgressQueueStatsTable=tmnxPortAccessEgressQueueStatsTable, aluCurrent1MinFreqOffsetStdDevPpb=aluCurrent1MinFreqOffsetStdDevPpb, aluIntervalPhaseErrorMeanNs=aluIntervalPhaseErrorMeanNs, aluExtPethPsePortEntry=aluExtPethPsePortEntry, tmnxPortAccessEgressQueueStatsDroOcts=tmnxPortAccessEgressQueueStatsDroOcts, aluExtDS1PortLineImpedance=aluExtDS1PortLineImpedance, aluLastUpdateTime=aluLastUpdateTime, aluExtPethPsePortFaultReason=aluExtPethPsePortFaultReason, tmnxPortLoopbckSapEncapVal=tmnxPortLoopbckSapEncapVal, pethPsePortEventInfo=pethPsePortEventInfo, tmnxSASPortNotificationObjects=tmnxSASPortNotificationObjects, tmnxPortLoopbckDstMacAddr=tmnxPortLoopbckDstMacAddr, tmnxPortUseDei=tmnxPortUseDei, tmnxPortMonitorOperGrpName=tmnxPortMonitorOperGrpName, tmnxPortStatsQueue8PktsFwd=tmnxPortStatsQueue8PktsFwd, tmnxSASPortNetIngressFwdOutProfOcts=tmnxSASPortNetIngressFwdOutProfOcts, tmnxSASPortV3v0Group=tmnxSASPortV3v0Group, tmnxPortOperGrpName=tmnxPortOperGrpName, aluExtDS1SignalBitsState=aluExtDS1SignalBitsState, aluCurrent24HourFreqOffsetMeanPpb=aluCurrent24HourFreqOffsetMeanPpb, portShgName=portShgName, tmnxPortNetEgressQueueStatsDroPkts=tmnxPortNetEgressQueueStatsDroPkts, tmnxPortNetEgressQueueStatsTable=tmnxPortNetEgressQueueStatsTable, tmnxSASPortV6v0Group=tmnxSASPortV6v0Group, tmnxPortNetEgressQueueStatsInProfDroPkts=tmnxPortNetEgressQueueStatsInProfDroPkts, aluPortAcrClkStatsGroup=aluPortAcrClkStatsGroup, aluPortAcrClkStatsShortIntervalTable=aluPortAcrClkStatsShortIntervalTable, tmnxVirtualPortSpeed=tmnxVirtualPortSpeed, portShgInfoTable=portShgInfoTable, aluPortAcrClkStatsTable=aluPortAcrClkStatsTable, tmnxPortStatsQueue7PktsFwd=tmnxPortStatsQueue7PktsFwd, tmnxPortNetEgressQueueStatsEntry=tmnxPortNetEgressQueueStatsEntry, aluIntervalPhaseErrorStdDevNs=aluIntervalPhaseErrorStdDevNs, aluCurrent1MinPhaseErrorStdDevNs=aluCurrent1MinPhaseErrorStdDevNs, tmnxPortAccessEgressQueueStatsFwdOcts=tmnxPortAccessEgressQueueStatsFwdOcts, aluTotalMinutesIn24Hour=aluTotalMinutesIn24Hour, tmnxVirtualPortEntry=tmnxVirtualPortEntry, tmnxPortEtherIpMTU=tmnxPortEtherIpMTU, aluCurrent1MinPhaseErrorMeanPpb=aluCurrent1MinPhaseErrorMeanPpb, tmnxPortEtherDcommStatus=tmnxPortEtherDcommStatus, aluTotalShortIntervalMinutes=aluTotalShortIntervalMinutes, tmnxVirtualPortPortID=tmnxVirtualPortPortID, tmnxPortStatsQueue3PktsFwd=tmnxPortStatsQueue3PktsFwd, aluPortAcrClkStatsEntry=aluPortAcrClkStatsEntry, tmnxVirtualPortTable=tmnxVirtualPortTable, tmnxSASPortStatsObjs=tmnxSASPortStatsObjs, tmnxPortEtherEgressMaxBurst=tmnxPortEtherEgressMaxBurst, tmnxPortStatsQueue2PktsFwd=tmnxPortStatsQueue2PktsFwd, tmnxPortLoopbckServId=tmnxPortLoopbckServId, sasTmnxPortExtnTable=sasTmnxPortExtnTable, tmnxPortAccessEgressQoSPolicyId=tmnxPortAccessEgressQoSPolicyId, tmnxSASPortNetIngressStatsEntry=tmnxSASPortNetIngressStatsEntry, tmnxPortUplinkMode=tmnxPortUplinkMode, tmnxPortEtherNwAggRateLimitPir=tmnxPortEtherNwAggRateLimitPir, aluExtPethPsePortPowerLevel=aluExtPethPsePortPowerLevel, aluPortAcrClkStatsShortIntervalEntry=aluPortAcrClkStatsShortIntervalEntry, tmnxSASPortMIBModule=tmnxSASPortMIBModule, tmnxPortStatsQueue4PktsFwd=tmnxPortStatsQueue4PktsFwd, tmnxSASPortObjs=tmnxSASPortObjs, tmnxPortNetEgressQueueStatsIndex=tmnxPortNetEgressQueueStatsIndex, tmnxPortNetEgressQueueStatsFwdPkts=tmnxPortNetEgressQueueStatsFwdPkts, tmnxPortNetEgressQueueStatsInProfDroOcts=tmnxPortNetEgressQueueStatsInProfDroOcts, tmnxPortEtherEgrSchedMode=tmnxPortEtherEgrSchedMode, tmnxPortNetEgressQueueStatsOutProfDroPkts=tmnxPortNetEgressQueueStatsOutProfDroPkts, portShgInstanceId=portShgInstanceId, portShgDescription=portShgDescription, tmnxPortLoopbckSapPortId=tmnxPortLoopbckSapPortId, aluIntervalValidData=aluIntervalValidData, tmnxPortStatsQueue5PktsFwd=tmnxPortStatsQueue5PktsFwd, aluExtTmnxDS1Entry=aluExtTmnxDS1Entry, tmnxSASPortGroups=tmnxSASPortGroups, tmnxPortStatsQueue6PktsFwd=tmnxPortStatsQueue6PktsFwd, sasTmnxPortEtherExtnTable=sasTmnxPortEtherExtnTable)
# https://edabit.com/challenge/jwzgYjymYK7Gmro93 # Create a function that returns the indices of all occurrences of an item in the list. def get_indices(user_list: list, item: str or int) -> list: current_indice = 0 occurence_list = [] while len(user_list): if user_list[0] == item: occurence_list.append(current_indice) current_indice += 1 else: current_indice += 1 del user_list[0] return occurence_list print(get_indices(["a", "a", "b", "a", "b", "a"], "a")) print(get_indices([1, 5, 5, 2, 7], 7)) print(get_indices([1, 5, 5, 2, 7], 5)) print(get_indices([1, 5, 5, 2, 7], 8))
def get_indices(user_list: list, item: str or int) -> list: current_indice = 0 occurence_list = [] while len(user_list): if user_list[0] == item: occurence_list.append(current_indice) current_indice += 1 else: current_indice += 1 del user_list[0] return occurence_list print(get_indices(['a', 'a', 'b', 'a', 'b', 'a'], 'a')) print(get_indices([1, 5, 5, 2, 7], 7)) print(get_indices([1, 5, 5, 2, 7], 5)) print(get_indices([1, 5, 5, 2, 7], 8))
class Rectangulo: def __init__(self, base, altura): self.base = base self.altura = altura class CalculadorArea: def __init__(self, figuras): assert isinstance(figuras, list), "`shapes` should be of type `list`." self.figuras = figuras def suma_areas(self): total = 0 for figura in self.figuras: total += figura.base * figura.altura return total r = Rectangulo(3, 4) calc = CalculadorArea([r]) print(calc.suma_areas())
class Rectangulo: def __init__(self, base, altura): self.base = base self.altura = altura class Calculadorarea: def __init__(self, figuras): assert isinstance(figuras, list), '`shapes` should be of type `list`.' self.figuras = figuras def suma_areas(self): total = 0 for figura in self.figuras: total += figura.base * figura.altura return total r = rectangulo(3, 4) calc = calculador_area([r]) print(calc.suma_areas())
load("//az/private:rules/config.bzl", _config = "config") load("//az/private:rules/datafactory/main.bzl", _datafactory = "datafactory") load("//az/private:rules/storage/main.bzl", _storage = "storage") az_config = _config az_datafactory = _datafactory az_storage = _storage
load('//az/private:rules/config.bzl', _config='config') load('//az/private:rules/datafactory/main.bzl', _datafactory='datafactory') load('//az/private:rules/storage/main.bzl', _storage='storage') az_config = _config az_datafactory = _datafactory az_storage = _storage
num_1 = 1 num_2 = 2 num = 276 min = 3600 for a in range(1, 21): for b in range(2, 11): min_ = abs(a * (b - 1) * 20 - num) if min_ == 0: num_1 = a num_2 = b break if min_ < min: min = min_ num_1 = a num_2 = b else: continue break print("num_1=%s" % num_1) print("num_2=%s" % num_2)
num_1 = 1 num_2 = 2 num = 276 min = 3600 for a in range(1, 21): for b in range(2, 11): min_ = abs(a * (b - 1) * 20 - num) if min_ == 0: num_1 = a num_2 = b break if min_ < min: min = min_ num_1 = a num_2 = b else: continue break print('num_1=%s' % num_1) print('num_2=%s' % num_2)
# ABOUT : This program deals with the accumulation pattern # used with the help of dictionary # Here in this program we will find minimum value associated with the # key : character in the string # initialize a string words = "Welcome back. Take a look in your calendar and mark this date. Today is the day you are crossing over the line, from someone who can just write code that does something to being a real programmer, someone who can abstract from a bit of code that works on one piece of data, to writing a function that will operate on any similar piece of data" # initialize an empty dictionary word_d = {} # calculate how many times a character is appearing in the given string # and store it in the dictionary created associating key value for char in words : if char not in word_d : word_d [char] = 0 word_d[char] = word_d[char] + 1 # prints the dictionary print(word_d) # list of keys ks = word_d.keys() # prints keys list print(ks) # init the first element as mn value min_value = list(ks) [0] # update the min_value for k in ks : if word_d[k] < word_d[min_value]: min_value = k # prints the result as shown print("The ", min_value, "has :", word_d[min_value])
words = 'Welcome back. Take a look in your calendar and mark this date. Today is the day you are crossing over the line, from someone who can just write code that does something to being a real programmer, someone who can abstract from a bit of code that works on one piece of data, to writing a function that will operate on any similar piece of data' word_d = {} for char in words: if char not in word_d: word_d[char] = 0 word_d[char] = word_d[char] + 1 print(word_d) ks = word_d.keys() print(ks) min_value = list(ks)[0] for k in ks: if word_d[k] < word_d[min_value]: min_value = k print('The ', min_value, 'has :', word_d[min_value])
list_of_urls = [ "www.cnn.com", "www.bbc.co.uk", "nytimes.com", "ipv6.google.com" # ,"site2.example.com" ]
list_of_urls = ['www.cnn.com', 'www.bbc.co.uk', 'nytimes.com', 'ipv6.google.com']
#set midpoint midpoint = 5 # make 2 empty lists lower = []; upper = [] #to terminate a line to put two statements on a single line #split the numbers into the lists based on conditional logic for i in range(10): if (i < midpoint): lower.append(i) else: upper.append(i) print("Lower values are: ", lower) print("Upper values are: ", upper) #to continue expressions on the next line can use \ marker # but preferable not to use it x = 1 + 2+\ 5+6 print(x)
midpoint = 5 lower = [] upper = [] for i in range(10): if i < midpoint: lower.append(i) else: upper.append(i) print('Lower values are: ', lower) print('Upper values are: ', upper) x = 1 + 2 + 5 + 6 print(x)
def handle(argv): prop = properties() command_map = ('compile', 'test' , 'help') argv = argv[1:] if len(argv) == 0: raise Exception('scalu must be provided with a command to run: compile, test, help, etc') if argv[0] in command_map: prop.mode = argv[0] else: bad_arg(arg) return prop def bad_arg(arg): raise Exception('A command has been provided that cannot be recognized: >>>> ' + arg + ' <<<<') class properties(): def __init__(self): self.mode = ''
def handle(argv): prop = properties() command_map = ('compile', 'test', 'help') argv = argv[1:] if len(argv) == 0: raise exception('scalu must be provided with a command to run: compile, test, help, etc') if argv[0] in command_map: prop.mode = argv[0] else: bad_arg(arg) return prop def bad_arg(arg): raise exception('A command has been provided that cannot be recognized: >>>> ' + arg + ' <<<<') class Properties: def __init__(self): self.mode = ''
A = 26 MASKS = (A + 1) * 4 MOD = 10**9 + 7 def solve(): m = int(input()) parts = [input() for _ in range(m)] s = "".join(parts) s = [ord(c) - ord('a') for c in s] n = len(s) edge = [True] + [False] * n i = 0 for w in parts: i += len(w) edge[i] = True a = [[[0] * MASKS for i in range(n + 1)] for j in range(n + 1)] a[0][n][A * 4 + 3] = 1 for length in range(n, 0, -1): for i in range(n + 1 - length): j = i + length npl = 2 if edge[i + 1] else 0 npr = 1 if edge[j - 1] else 0 for mask in range(MASKS): value = a[i][j][mask] % MOD if not value: continue letter, pl, pr = mask // 4, mask & 2, mask & 1 if letter == A: a[i + 1][j][s[i] * 4 + npl + pr] += value if not edge[i + 1] or not pl: a[i + 1][j][A * 4 + (pl | npl) + pr] += value else: if s[j - 1] == letter: a[i][j - 1][A * 4 + pl + npr] += value if not edge[j - 1] or not pr: a[i][j - 1][letter * 4 + pl + (pr | npr)] += value ans = 0 for i in range(n + 1): for mask in range(MASKS): letter, pl, pr = mask // 4, mask & 2, mask & 1 if not edge[i] and pl and pr: continue ans += a[i][i][mask] ans %= MOD return ans for _ in range(int(input())): print(solve())
a = 26 masks = (A + 1) * 4 mod = 10 ** 9 + 7 def solve(): m = int(input()) parts = [input() for _ in range(m)] s = ''.join(parts) s = [ord(c) - ord('a') for c in s] n = len(s) edge = [True] + [False] * n i = 0 for w in parts: i += len(w) edge[i] = True a = [[[0] * MASKS for i in range(n + 1)] for j in range(n + 1)] a[0][n][A * 4 + 3] = 1 for length in range(n, 0, -1): for i in range(n + 1 - length): j = i + length npl = 2 if edge[i + 1] else 0 npr = 1 if edge[j - 1] else 0 for mask in range(MASKS): value = a[i][j][mask] % MOD if not value: continue (letter, pl, pr) = (mask // 4, mask & 2, mask & 1) if letter == A: a[i + 1][j][s[i] * 4 + npl + pr] += value if not edge[i + 1] or not pl: a[i + 1][j][A * 4 + (pl | npl) + pr] += value else: if s[j - 1] == letter: a[i][j - 1][A * 4 + pl + npr] += value if not edge[j - 1] or not pr: a[i][j - 1][letter * 4 + pl + (pr | npr)] += value ans = 0 for i in range(n + 1): for mask in range(MASKS): (letter, pl, pr) = (mask // 4, mask & 2, mask & 1) if not edge[i] and pl and pr: continue ans += a[i][i][mask] ans %= MOD return ans for _ in range(int(input())): print(solve())
src = Glob('*.c') component = aos_component('libkm', src) component.add_global_includes('include') component.add_component_dependencis('security/plat_gen', 'security/alicrypto') component.add_prebuilt_lib('lib/' + component.get_global_arch() + '/libkm.a')
src = glob('*.c') component = aos_component('libkm', src) component.add_global_includes('include') component.add_component_dependencis('security/plat_gen', 'security/alicrypto') component.add_prebuilt_lib('lib/' + component.get_global_arch() + '/libkm.a')
myemp = { 'Name': 'Steve', 'Age':58, 'Sex': 'Male'} print(myemp)# K1 print(myemp.keys())# K2 myrem = myemp.popitem() print(myrem, 'is removed')# K3 print(myemp.keys())# K4 print(list(myemp.keys()))# K5 for key in myemp.keys(): # K6 print(key)
myemp = {'Name': 'Steve', 'Age': 58, 'Sex': 'Male'} print(myemp) print(myemp.keys()) myrem = myemp.popitem() print(myrem, 'is removed') print(myemp.keys()) print(list(myemp.keys())) for key in myemp.keys(): print(key)
''' Created on 10 Feb 2016 @author: BenShelly ''' class RacecardConsoleView(object): ''' classdocs ''' def __init__(self): ''' Constructor ''' def printRacecard(self, horseOddsArray): for horseOdds in horseOddsArray: print(horseOdds.toString())
""" Created on 10 Feb 2016 @author: BenShelly """ class Racecardconsoleview(object): """ classdocs """ def __init__(self): """ Constructor """ def print_racecard(self, horseOddsArray): for horse_odds in horseOddsArray: print(horseOdds.toString())
with open('./inputs/22.txt') as f: instructions = f.readlines() def solve(part): def logic(status, part): nonlocal infected, direction if part == 1: if status == 0: infected += 1 direction *= (1 - 2*status) * 1j else: if status == 1: infected += 1 elif status == 2: direction *= -1j elif status == 3: direction *= -1 else: direction *= 1j grid = {} position = (len(instructions)//2 + len(instructions[0].strip())//2 * 1j) direction = -1 infected = 0 for i, line in enumerate(instructions): for j, char in enumerate(line.strip()): grid[(i + j*1j)] = 0 if char == '.' else part bursts = 10_000 if part == 1 else 10_000_000 for _ in range(bursts): status = grid.get(position, 0) logic(status, part) grid[position] = (status + 1) % (2 * part) position += direction return infected print(solve(part=1)) print(solve(part=2))
with open('./inputs/22.txt') as f: instructions = f.readlines() def solve(part): def logic(status, part): nonlocal infected, direction if part == 1: if status == 0: infected += 1 direction *= (1 - 2 * status) * 1j elif status == 1: infected += 1 elif status == 2: direction *= -1j elif status == 3: direction *= -1 else: direction *= 1j grid = {} position = len(instructions) // 2 + len(instructions[0].strip()) // 2 * 1j direction = -1 infected = 0 for (i, line) in enumerate(instructions): for (j, char) in enumerate(line.strip()): grid[i + j * 1j] = 0 if char == '.' else part bursts = 10000 if part == 1 else 10000000 for _ in range(bursts): status = grid.get(position, 0) logic(status, part) grid[position] = (status + 1) % (2 * part) position += direction return infected print(solve(part=1)) print(solve(part=2))
def f(x, l=[]): for i in range(x): l.append(i * i) print(l) f(2) f(3, [3, 2, 1]) f(3)
def f(x, l=[]): for i in range(x): l.append(i * i) print(l) f(2) f(3, [3, 2, 1]) f(3)
''' This is a docstring This code subtracts 2 numbers ''' a = 3 b = 5 c = b-a print(c)
""" This is a docstring This code subtracts 2 numbers """ a = 3 b = 5 c = b - a print(c)
load( "//:deps.bzl", "com_github_grpc_grpc", "com_google_protobuf", "io_bazel_rules_python", "six", ) def python_proto_compile(**kwargs): com_google_protobuf(**kwargs) def python_grpc_compile(**kwargs): python_proto_compile(**kwargs) com_github_grpc_grpc(**kwargs) io_bazel_rules_python(**kwargs) six(**kwargs) def python_proto_library(**kwargs): python_proto_compile(**kwargs) io_bazel_rules_python(**kwargs) def python_grpc_library(**kwargs): python_grpc_compile(**kwargs) python_proto_library(**kwargs)
load('//:deps.bzl', 'com_github_grpc_grpc', 'com_google_protobuf', 'io_bazel_rules_python', 'six') def python_proto_compile(**kwargs): com_google_protobuf(**kwargs) def python_grpc_compile(**kwargs): python_proto_compile(**kwargs) com_github_grpc_grpc(**kwargs) io_bazel_rules_python(**kwargs) six(**kwargs) def python_proto_library(**kwargs): python_proto_compile(**kwargs) io_bazel_rules_python(**kwargs) def python_grpc_library(**kwargs): python_grpc_compile(**kwargs) python_proto_library(**kwargs)
{ "targets":[ { "target_name": "hcaptha", "conditions": [ ["OS==\"mac\"", { "sources": [ "addon/hcaptha.cc" ,"addon/cap.cc"], "libraries": [], "cflags_cc": ["-fexceptions","-Dcimg_display=0"], 'xcode_settings': { 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES' } }], ["OS==\"linux\"", { "sources": ["addon/jpeglib/jaricom.c", "addon/jpeglib/jcapimin.c", "addon/jpeglib/jcapistd.c", "addon/jpeglib/jcarith.c","addon/jpeglib/jccoefct.c", "addon/jpeglib/jccolor.c","addon/jpeglib/jcdctmgr.c", "addon/jpeglib/jchuff.c", "addon/jpeglib/jcinit.c", "addon/jpeglib/jcmainct.c", "addon/jpeglib/jcmarker.c", "addon/jpeglib/jcmaster.c", "addon/jpeglib/jcomapi.c", "addon/jpeglib/jcparam.c", "addon/jpeglib/jcprepct.c", "addon/jpeglib/jcsample.c", "addon/jpeglib/jctrans.c", "addon/jpeglib/jdapimin.c", "addon/jpeglib/jdapistd.c", "addon/jpeglib/jdarith.c", "addon/jpeglib/jdatadst.c", "addon/jpeglib/jdatasrc.c", "addon/jpeglib/jdcoefct.c", "addon/jpeglib/jdcolor.c", "addon/jpeglib/jddctmgr.c", "addon/jpeglib/jdhuff.c", "addon/jpeglib/jdinput.c", "addon/jpeglib/jdmainct.c", "addon/jpeglib/jdmarker.c", "addon/jpeglib/jdmaster.c", "addon/jpeglib/jdmerge.c", "addon/jpeglib/jdpostct.c", "addon/jpeglib/jdsample.c", "addon/jpeglib/jdtrans.c", "addon/jpeglib/jerror.c", "addon/jpeglib/jfdctflt.c","addon/jpeglib/jfdctfst.c", "addon/jpeglib/jfdctint.c", "addon/jpeglib/jidctflt.c", "addon/jpeglib/jidctfst.c", "addon/jpeglib/jidctint.c", "addon/jpeglib/jquant1.c", "addon/jpeglib/jquant2.c", "addon/jpeglib/jutils.c", "addon/jpeglib/jmemmgr.c", "addon/jpeglib/jmemnobs.c", "addon/hcaptha.cc" ,"addon/cap.cc"], "libraries": [], "cflags_cc": ["-fexceptions","-Dcimg_display=0","-Dcimg_use_jpeg","-L/usr/X11R6/lib","-lm","-lpthread","-lX11"] }], ["OS==\"win\"", { "sources": ["addon/hcaptha.cc" ,"addon/cap.cc"], "libraries": [], "cflags": ["-fexceptions","-Dcimg_display=0"] }] ] } ] }
{'targets': [{'target_name': 'hcaptha', 'conditions': [['OS=="mac"', {'sources': ['addon/hcaptha.cc', 'addon/cap.cc'], 'libraries': [], 'cflags_cc': ['-fexceptions', '-Dcimg_display=0'], 'xcode_settings': {'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'}}], ['OS=="linux"', {'sources': ['addon/jpeglib/jaricom.c', 'addon/jpeglib/jcapimin.c', 'addon/jpeglib/jcapistd.c', 'addon/jpeglib/jcarith.c', 'addon/jpeglib/jccoefct.c', 'addon/jpeglib/jccolor.c', 'addon/jpeglib/jcdctmgr.c', 'addon/jpeglib/jchuff.c', 'addon/jpeglib/jcinit.c', 'addon/jpeglib/jcmainct.c', 'addon/jpeglib/jcmarker.c', 'addon/jpeglib/jcmaster.c', 'addon/jpeglib/jcomapi.c', 'addon/jpeglib/jcparam.c', 'addon/jpeglib/jcprepct.c', 'addon/jpeglib/jcsample.c', 'addon/jpeglib/jctrans.c', 'addon/jpeglib/jdapimin.c', 'addon/jpeglib/jdapistd.c', 'addon/jpeglib/jdarith.c', 'addon/jpeglib/jdatadst.c', 'addon/jpeglib/jdatasrc.c', 'addon/jpeglib/jdcoefct.c', 'addon/jpeglib/jdcolor.c', 'addon/jpeglib/jddctmgr.c', 'addon/jpeglib/jdhuff.c', 'addon/jpeglib/jdinput.c', 'addon/jpeglib/jdmainct.c', 'addon/jpeglib/jdmarker.c', 'addon/jpeglib/jdmaster.c', 'addon/jpeglib/jdmerge.c', 'addon/jpeglib/jdpostct.c', 'addon/jpeglib/jdsample.c', 'addon/jpeglib/jdtrans.c', 'addon/jpeglib/jerror.c', 'addon/jpeglib/jfdctflt.c', 'addon/jpeglib/jfdctfst.c', 'addon/jpeglib/jfdctint.c', 'addon/jpeglib/jidctflt.c', 'addon/jpeglib/jidctfst.c', 'addon/jpeglib/jidctint.c', 'addon/jpeglib/jquant1.c', 'addon/jpeglib/jquant2.c', 'addon/jpeglib/jutils.c', 'addon/jpeglib/jmemmgr.c', 'addon/jpeglib/jmemnobs.c', 'addon/hcaptha.cc', 'addon/cap.cc'], 'libraries': [], 'cflags_cc': ['-fexceptions', '-Dcimg_display=0', '-Dcimg_use_jpeg', '-L/usr/X11R6/lib', '-lm', '-lpthread', '-lX11']}], ['OS=="win"', {'sources': ['addon/hcaptha.cc', 'addon/cap.cc'], 'libraries': [], 'cflags': ['-fexceptions', '-Dcimg_display=0']}]]}]}
class TTBusDeviceAddress: def __init__(self, address, node): self.address = address self.node = node @property def id(self): return f"{self.address:02X}_{self.node:02X}" @property def as_tuple(self): return self.address, self.node def __str__(self): return f"{type(self).__name__}(0x{self.address:02X}, 0x{self.node:02X})" def __eq__(self, other): return self.as_tuple == other.as_tuple def __hash__(self) -> int: return hash(self.as_tuple)
class Ttbusdeviceaddress: def __init__(self, address, node): self.address = address self.node = node @property def id(self): return f'{self.address:02X}_{self.node:02X}' @property def as_tuple(self): return (self.address, self.node) def __str__(self): return f'{type(self).__name__}(0x{self.address:02X}, 0x{self.node:02X})' def __eq__(self, other): return self.as_tuple == other.as_tuple def __hash__(self) -> int: return hash(self.as_tuple)
def pos_to_line_col(source, pos): offset = 0 line = 0 for line in source.splitlines(): _offset = offset line += 1 offset += len(line) + 1 if offset > pos: return line, pos - _offset + 1
def pos_to_line_col(source, pos): offset = 0 line = 0 for line in source.splitlines(): _offset = offset line += 1 offset += len(line) + 1 if offset > pos: return (line, pos - _offset + 1)
def validate_json(json): required_fields = ['Name', 'DateOfPublication', 'Type', 'Author', 'Description'] missing_fields = [] for key in required_fields: if key not in json.keys(): missing_fields.append(key) elif json[key] == "": missing_fields.append(key) if len(missing_fields) > 0: if len(missing_fields) == 1: message = "The field '" + missing_fields[0] + "' is missing or empty" else: message = "The fields '" + ', '.join(missing_fields) + "' are missing or empty" return False, message return True, 'Valid'
def validate_json(json): required_fields = ['Name', 'DateOfPublication', 'Type', 'Author', 'Description'] missing_fields = [] for key in required_fields: if key not in json.keys(): missing_fields.append(key) elif json[key] == '': missing_fields.append(key) if len(missing_fields) > 0: if len(missing_fields) == 1: message = "The field '" + missing_fields[0] + "' is missing or empty" else: message = "The fields '" + ', '.join(missing_fields) + "' are missing or empty" return (False, message) return (True, 'Valid')
ans=[] #create a new node class Node: def __init__(self, data): self.data = data self.left = None self.right = None #top of stack def peek(s): if len(s) > 0: return s[-1] return None def postOrderTraversal(root): # if tree is empty if root is None: return s= [] while(True): while (root): # append right child to the stack if right is not empty if root.right is not None: s.append(root.right) s.append(root) # Set root as root's left child root = root.left # remove an item from stack and set it as root root = s.pop() # If the removed element has a right child and the right child is not traversed yet, then make sure right child is traversed before root if (root.right is not None and peek(s) == root.right): s.pop() # Remove right child from stack s.append(root) # append root back to stack root = root.right # change root so that the right child is traversed next # print root's data and set root as None else: ans.append(root.data) root = None if (len(s) <= 0): break # Driver program to test above function root = Node(1) root.left = Node(2) root.right = Node(3) root.left.left = Node(4) root.left.right = Node(5) root.right.left = Node(6) root.right.right = Node(7) print("Post Order traversal of binary tree is") postOrderTraversal(root) print(ans) #Output: # [4,5,2,6,7,3,1]
ans = [] class Node: def __init__(self, data): self.data = data self.left = None self.right = None def peek(s): if len(s) > 0: return s[-1] return None def post_order_traversal(root): if root is None: return s = [] while True: while root: if root.right is not None: s.append(root.right) s.append(root) root = root.left root = s.pop() if root.right is not None and peek(s) == root.right: s.pop() s.append(root) root = root.right else: ans.append(root.data) root = None if len(s) <= 0: break root = node(1) root.left = node(2) root.right = node(3) root.left.left = node(4) root.left.right = node(5) root.right.left = node(6) root.right.right = node(7) print('Post Order traversal of binary tree is') post_order_traversal(root) print(ans)
{ "variables": { "os_linux_compiler%": "gcc", "build_v8_with_gn": "false" }, "targets": [ { "target_name": "cbor-extract", "win_delay_load_hook": "false", "sources": [ "src/extract.cpp", ], "include_dirs": [ "<!(node -e \"require('nan')\")", ], "conditions": [ ["OS=='linux'", { "variables": { "gcc_version" : "<!(<(os_linux_compiler) -dumpversion | cut -d '.' -f 1)", }, "cflags_cc": [ "-fPIC", "-fvisibility=hidden", "-fvisibility-inlines-hidden", ], "conditions": [ ["gcc_version>=7", { "cflags": [ "-Wimplicit-fallthrough=2", ], }], ], "ldflags": [ "-fPIC", "-fvisibility=hidden" ], "cflags": [ "-fPIC", "-fvisibility=hidden", "-O3" ], }], ], } ] }
{'variables': {'os_linux_compiler%': 'gcc', 'build_v8_with_gn': 'false'}, 'targets': [{'target_name': 'cbor-extract', 'win_delay_load_hook': 'false', 'sources': ['src/extract.cpp'], 'include_dirs': ['<!(node -e "require(\'nan\')")'], 'conditions': [["OS=='linux'", {'variables': {'gcc_version': "<!(<(os_linux_compiler) -dumpversion | cut -d '.' -f 1)"}, 'cflags_cc': ['-fPIC', '-fvisibility=hidden', '-fvisibility-inlines-hidden'], 'conditions': [['gcc_version>=7', {'cflags': ['-Wimplicit-fallthrough=2']}]], 'ldflags': ['-fPIC', '-fvisibility=hidden'], 'cflags': ['-fPIC', '-fvisibility=hidden', '-O3']}]]}]}
__author__ = 'Ralph' # import app # import canvas # import widgets
__author__ = 'Ralph'
with open("input.txt", 'r') as file: file = file.read() file = file.split("\n") file = file[:-1] file = [int(i) for i in file] frequency = 0 prev = set() prev.add(0) stop = True while (stop): for n in file: frequency += n if frequency not in prev: prev.add(frequency) else: stop=False break print(len(prev)) print("repeated frequency:") print(frequency)
with open('input.txt', 'r') as file: file = file.read() file = file.split('\n') file = file[:-1] file = [int(i) for i in file] frequency = 0 prev = set() prev.add(0) stop = True while stop: for n in file: frequency += n if frequency not in prev: prev.add(frequency) else: stop = False break print(len(prev)) print('repeated frequency:') print(frequency)
def repeatedString(s, n): lss=n%len(s) tfs=int(n/len(s)) cnt=s.count('a') sc=s.count('a',0,lss) tc=(tfs*cnt)+sc return tc
def repeated_string(s, n): lss = n % len(s) tfs = int(n / len(s)) cnt = s.count('a') sc = s.count('a', 0, lss) tc = tfs * cnt + sc return tc
# Helper for formatting time strings def smart_time(t): tstr = 't = ' if t < 2*60.: tstr += '{0:.4f} sec'.format(t) elif t < 90.*60: tstr += '{0:.4f} min'.format(t/60) elif t < 48.*60*60: tstr += '{0:.4f} hrs'.format(t/(60*60)) else: tstr += '{0:.4f} day'.format(t/(24*60*60)) return tstr
def smart_time(t): tstr = 't = ' if t < 2 * 60.0: tstr += '{0:.4f} sec'.format(t) elif t < 90.0 * 60: tstr += '{0:.4f} min'.format(t / 60) elif t < 48.0 * 60 * 60: tstr += '{0:.4f} hrs'.format(t / (60 * 60)) else: tstr += '{0:.4f} day'.format(t / (24 * 60 * 60)) return tstr
print('salut') a = 1 print(a.denominator) # print(a.to_bytes()) class Salut: def __init__(self, truc): self.truc = truc def stuff(self) -> dict: return {'truc': self.truc} s = Salut('bidule') s.truc b = s.stuff() wesh = b.pop('truc') print(wesh.replace('dule', 'de'))
print('salut') a = 1 print(a.denominator) class Salut: def __init__(self, truc): self.truc = truc def stuff(self) -> dict: return {'truc': self.truc} s = salut('bidule') s.truc b = s.stuff() wesh = b.pop('truc') print(wesh.replace('dule', 'de'))
students = { "Ivan": 5.00, "Alex": 3.50, "Maria": 5.50, "Georgy": 5.00, } # Print out the names of the students, which scores > 4.00 names = list(students.keys()) scores = list(students.values()) max_score = max(scores) max_score_index = scores.index(max_score) min_score = min(scores) min_score_index = scores.index(min_score) print("{} - {}".format(names[max_score_index], max_score)) print("{} - {}".format(names[min_score_index], min_score))
students = {'Ivan': 5.0, 'Alex': 3.5, 'Maria': 5.5, 'Georgy': 5.0} names = list(students.keys()) scores = list(students.values()) max_score = max(scores) max_score_index = scores.index(max_score) min_score = min(scores) min_score_index = scores.index(min_score) print('{} - {}'.format(names[max_score_index], max_score)) print('{} - {}'.format(names[min_score_index], min_score))
#!/usr/bin/env python3 class Event(object): pass class TickEvent(Event): def __init__(self, product, time, sequence, price, bid, ask, spread, side, size): self.type = 'TICK' self.sequence = sequence self.product = product self.time = time self.price = price self.bid = bid self.ask = ask self.spread = round(float(ask) - float(bid),2) self.side = side self.size = size
class Event(object): pass class Tickevent(Event): def __init__(self, product, time, sequence, price, bid, ask, spread, side, size): self.type = 'TICK' self.sequence = sequence self.product = product self.time = time self.price = price self.bid = bid self.ask = ask self.spread = round(float(ask) - float(bid), 2) self.side = side self.size = size
#!/usr/bin/env python ''' config.py NOTE: I'M INCLUDING THIS FILE IN MY REPOSITORY TO SHOW YOU ITS FORMAT, BUT YOU SHOULD NOT KEEP CONFIG FILES WITH LOGIN CREDENTIALS IN YOUR REPOSITORY. In fact, I generally put a .gitignore file with "config.py" in it in whatever directory is supposed to house the config file. It's tricky to provide a config sample without accidentally pushing user names and passwords at a later time. Mostly, I try to illustrate the config file format in a readme file or in a code samples file, while .gitignore-ing the configs in the actual code directories. ''' # Change these values as appropriate for your postgresql setup. database = 'grading' user = 'jondich' password = ''
""" config.py NOTE: I'M INCLUDING THIS FILE IN MY REPOSITORY TO SHOW YOU ITS FORMAT, BUT YOU SHOULD NOT KEEP CONFIG FILES WITH LOGIN CREDENTIALS IN YOUR REPOSITORY. In fact, I generally put a .gitignore file with "config.py" in it in whatever directory is supposed to house the config file. It's tricky to provide a config sample without accidentally pushing user names and passwords at a later time. Mostly, I try to illustrate the config file format in a readme file or in a code samples file, while .gitignore-ing the configs in the actual code directories. """ database = 'grading' user = 'jondich' password = ''
class Facade: pass facade_1 = Facade() facade_1_type = type(facade_1) print(facade_1_type)
class Facade: pass facade_1 = facade() facade_1_type = type(facade_1) print(facade_1_type)
test_cases = int(input().strip()) for t in range(1, test_cases + 1): n, m = tuple(map(int, input().strip().split())) strings = [input().strip() for _ in range(n)] for i in range(n): for j in range(n - m + 1): r_left = j r_right = j + m - 1 c_top = j c_bot = j + m - 1 while r_left <= r_right: if strings[i][r_left] != strings[i][r_right]: break r_left += 1 r_right -= 1 if r_left > r_right: print('#{} {}'.format(t, strings[i][j:j + m])) while c_top <= c_bot: if strings[c_top][i] != strings[c_bot][i]: break c_top += 1 c_bot -= 1 if c_top > c_bot: print('#{} {}'.format(t, ''.join([strings[k][i] for k in range(j, j + m)])))
test_cases = int(input().strip()) for t in range(1, test_cases + 1): (n, m) = tuple(map(int, input().strip().split())) strings = [input().strip() for _ in range(n)] for i in range(n): for j in range(n - m + 1): r_left = j r_right = j + m - 1 c_top = j c_bot = j + m - 1 while r_left <= r_right: if strings[i][r_left] != strings[i][r_right]: break r_left += 1 r_right -= 1 if r_left > r_right: print('#{} {}'.format(t, strings[i][j:j + m])) while c_top <= c_bot: if strings[c_top][i] != strings[c_bot][i]: break c_top += 1 c_bot -= 1 if c_top > c_bot: print('#{} {}'.format(t, ''.join([strings[k][i] for k in range(j, j + m)])))
class Solution: def solve(self, nums, k): dp = [0] ans = 0 for i in range(len(nums)): mx = nums[i] cur_ans = 0 for j in range(i,max(-1,i-k),-1): mx = max(mx, nums[j]) cur_ans = max(cur_ans, mx*(i-j+1) + dp[j]) dp.append(cur_ans) ans = max(ans,cur_ans) return ans
class Solution: def solve(self, nums, k): dp = [0] ans = 0 for i in range(len(nums)): mx = nums[i] cur_ans = 0 for j in range(i, max(-1, i - k), -1): mx = max(mx, nums[j]) cur_ans = max(cur_ans, mx * (i - j + 1) + dp[j]) dp.append(cur_ans) ans = max(ans, cur_ans) return ans
t = 0 def calc(n): p = 0 for j in range(1, n): if n % j == 0: p += j q = 0 for j in range(1, p): if p % j == 0: q += j if n == q and n != p: return n else: return 0 for i in range(1, 10001): t += calc(i) print (t)
t = 0 def calc(n): p = 0 for j in range(1, n): if n % j == 0: p += j q = 0 for j in range(1, p): if p % j == 0: q += j if n == q and n != p: return n else: return 0 for i in range(1, 10001): t += calc(i) print(t)
# @author Huaze Shen # @date 2020-01-15 class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None def max_depth(root): if root is None: return 0 return max(max_depth(root.left), max_depth(root.right)) + 1 if __name__ == '__main__': root_ = TreeNode(3) root_.left = TreeNode(9) root_.right = TreeNode(20) root_.right.left = TreeNode(15) root_.right.right = TreeNode(7) print(max_depth(root_))
class Treenode: def __init__(self, x): self.val = x self.left = None self.right = None def max_depth(root): if root is None: return 0 return max(max_depth(root.left), max_depth(root.right)) + 1 if __name__ == '__main__': root_ = tree_node(3) root_.left = tree_node(9) root_.right = tree_node(20) root_.right.left = tree_node(15) root_.right.right = tree_node(7) print(max_depth(root_))
class Solution: def mySqrt(self, x: int) -> int: lo = 0 hi = 2 while hi ** 2 <= x: lo = hi hi *= 2 while hi - lo > 1: mid = (hi + lo) // 2 if mid ** 2 <= x: lo = mid else: hi = mid return lo
class Solution: def my_sqrt(self, x: int) -> int: lo = 0 hi = 2 while hi ** 2 <= x: lo = hi hi *= 2 while hi - lo > 1: mid = (hi + lo) // 2 if mid ** 2 <= x: lo = mid else: hi = mid return lo
#encoding=utf-8 # appexceptions.py # This file is part of PSR Registration Shuffler # # Copyright (C) 2008 - Dennis Schulmeister <dennis -at- ncc-1701a.homelinux.net> # # This is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # It is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this file. If not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, # Boston, MA 02110-1301 USA ''' PURPOSE ======= This module provides all exceptions known in the main (psrregshuffle) package. ''' # Public export of module content __all__ = [ "ClassIsSingleton", "NoClassObject", "NoClassFound", "NoFileGiven", "InvalidExportClass", "Cancel", ] # Class definitions class ExceptionWithMessage(Exception): ''' This is a super-class for all self-defined exceptions which need to output a message on the call trace. ''' _message = "" def __init__(self, data=None): ''' Constructor. Takes the class object as optional parameter cls. ''' pass ## NOTE: Commented since the data string doesn't help much and doesn't ## look nice in the excepthook dialog. # if data: # self._message = "%s\n(%s)" % (self._message, str(data)) def __str__(self): ''' Returns string representation of the exception with a useful error message. ''' return "%s" % (self._message) class ClassIsSingleton(ExceptionWithMessage): ''' This exception gets thrown whenever it's tried to instanciate a singleton class through one of its constructors instead of the dedicated accessor methods. ''' _message = _("The object is a singleton object which shouldn't be instanciated through a constructor. Use getInstance() instead.") class NoClassObject(ExceptionWithMessage): ''' This exception gets thrown whenever a class object is expected for an argument but some other type was given. ''' _message = _("The given object is not of type Class.") class NoClassFound(ExceptionWithMessage): ''' This exception gets thrown whenever the ClassFinder is unable to find a suitable class. ''' _message = _("Couldn't find a suitable class. Most probably the feature is not implemented.") class NoFileGiven(ExceptionWithMessage): ''' This exception indicates that a method which usually takes a file name or a file object wasn't equiped with either. ''' _message = _("No file was given at all when one was expected.") class DoesNotMatchFilter(ExceptionWithMessage): ''' Exception used by available registration display filter. Indicates a negative test result for a given entry. ''' _message = _("The given registration doesn't match the given filter criterion.") def __init__(self, regEntry, Filter): ''' Constructor. Takes regEntry and Filter model, too. ''' self._message = "%s (%s, %s)" % (self._message, str(regEntry), str(Filter)) class InvalidExportClass(ExceptionWithMessage): ''' Exception used to signal that a given class cannot export setlists. ''' _message = _("Invalid export class given. The class must be a sub-class of ExportBase.") class Cancel(ExceptionWithMessage): ''' Exception used to signal that the user wishes to cancal a action. ''' _message = _("The user wishes to cancel the current action.")
""" PURPOSE ======= This module provides all exceptions known in the main (psrregshuffle) package. """ __all__ = ['ClassIsSingleton', 'NoClassObject', 'NoClassFound', 'NoFileGiven', 'InvalidExportClass', 'Cancel'] class Exceptionwithmessage(Exception): """ This is a super-class for all self-defined exceptions which need to output a message on the call trace. """ _message = '' def __init__(self, data=None): """ Constructor. Takes the class object as optional parameter cls. """ pass def __str__(self): """ Returns string representation of the exception with a useful error message. """ return '%s' % self._message class Classissingleton(ExceptionWithMessage): """ This exception gets thrown whenever it's tried to instanciate a singleton class through one of its constructors instead of the dedicated accessor methods. """ _message = _("The object is a singleton object which shouldn't be instanciated through a constructor. Use getInstance() instead.") class Noclassobject(ExceptionWithMessage): """ This exception gets thrown whenever a class object is expected for an argument but some other type was given. """ _message = _('The given object is not of type Class.') class Noclassfound(ExceptionWithMessage): """ This exception gets thrown whenever the ClassFinder is unable to find a suitable class. """ _message = _("Couldn't find a suitable class. Most probably the feature is not implemented.") class Nofilegiven(ExceptionWithMessage): """ This exception indicates that a method which usually takes a file name or a file object wasn't equiped with either. """ _message = _('No file was given at all when one was expected.') class Doesnotmatchfilter(ExceptionWithMessage): """ Exception used by available registration display filter. Indicates a negative test result for a given entry. """ _message = _("The given registration doesn't match the given filter criterion.") def __init__(self, regEntry, Filter): """ Constructor. Takes regEntry and Filter model, too. """ self._message = '%s (%s, %s)' % (self._message, str(regEntry), str(Filter)) class Invalidexportclass(ExceptionWithMessage): """ Exception used to signal that a given class cannot export setlists. """ _message = _('Invalid export class given. The class must be a sub-class of ExportBase.') class Cancel(ExceptionWithMessage): """ Exception used to signal that the user wishes to cancal a action. """ _message = _('The user wishes to cancel the current action.')
# Copyright 2019 Quantapix Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================= class converter: by_name = {} @classmethod def convert(cls, src, **kw): return cls.by_name[type(src).__name__].convert(src, **kw) def __init__(self, name): self.name = name def __call__(self, cls): self.by_name[self.name] = cls return cls class with_current: def __init__(self): pass def __call__(self, cls): setattr(cls, 'current', cls()) return cls class with_class_init: def __init__(self): pass def __call__(self, cls): cls.init() return cls class with_property: default = None def __init__(self, name, creator, default=None): self.name = name self.multi = name.endswith('s') self.creator = creator if default is not None: self.default = default elif self.multi: self.default = () def __call__(self, cls): n = '_' + self.name setattr(cls, n, self.default) def getter(self): return getattr(self, n) c = self.creator if self.multi: def setter(self, vs): if vs: setattr(self, n, tuple(c(vs))) else: self.__dict__.pop(n, None) else: def setter(self, v): if v: setattr(self, n, c(v)) else: self.__dict__.pop(n, None) setattr(cls, self.name, property(getter, setter)) return cls if __name__ == '__main__': @with_current() class A: def __init__(self): self.a = 'a' assert A.current.a == 'a' print('0 passed') class Name: @classmethod def create(cls, v): return v @with_property('name', Name.create, default='') class A: pass a = A() assert a.name is '' assert '_name' not in vars(a) a.name = 'b' assert '_name' in vars(a) assert a.name == 'b' a.name = '' assert a.name is '' assert '_name' not in vars(a) print('A passed') class Link: @classmethod def create(cls, v): return v @with_property('link', Link.create) class B: pass a = B() assert a.link is None assert '_link' not in vars(a) a.link = 'b' assert '_link' in vars(a) assert a.link == 'b' a.link = None assert a.link is None assert '_link' not in vars(a) print('B passed') class Value: @classmethod def creator(cls, vs): for v in vs: yield v @with_property('values', Value.creator) class C: pass a = C() assert a.values is () assert '_values' not in vars(a) a.values = ('b', 'c') assert '_values' in vars(a) assert a.values == ('b', 'c') a.values = () assert a.values is () assert '_values' not in vars(a) print('C passed') class Other: def meth(self, v): return v Other.obj = Other() @with_property('extra', creator=Other.obj.meth) class D: pass a = D() assert a.extra is None assert '_extra' not in vars(a) a.extra = 'b' assert '_extra' in vars(a) assert a.extra == 'b' a.extra = None assert a.extra is None assert '_extra' not in vars(a) print('D passed')
class Converter: by_name = {} @classmethod def convert(cls, src, **kw): return cls.by_name[type(src).__name__].convert(src, **kw) def __init__(self, name): self.name = name def __call__(self, cls): self.by_name[self.name] = cls return cls class With_Current: def __init__(self): pass def __call__(self, cls): setattr(cls, 'current', cls()) return cls class With_Class_Init: def __init__(self): pass def __call__(self, cls): cls.init() return cls class With_Property: default = None def __init__(self, name, creator, default=None): self.name = name self.multi = name.endswith('s') self.creator = creator if default is not None: self.default = default elif self.multi: self.default = () def __call__(self, cls): n = '_' + self.name setattr(cls, n, self.default) def getter(self): return getattr(self, n) c = self.creator if self.multi: def setter(self, vs): if vs: setattr(self, n, tuple(c(vs))) else: self.__dict__.pop(n, None) else: def setter(self, v): if v: setattr(self, n, c(v)) else: self.__dict__.pop(n, None) setattr(cls, self.name, property(getter, setter)) return cls if __name__ == '__main__': @with_current() class A: def __init__(self): self.a = 'a' assert A.current.a == 'a' print('0 passed') class Name: @classmethod def create(cls, v): return v @with_property('name', Name.create, default='') class A: pass a = a() assert a.name is '' assert '_name' not in vars(a) a.name = 'b' assert '_name' in vars(a) assert a.name == 'b' a.name = '' assert a.name is '' assert '_name' not in vars(a) print('A passed') class Link: @classmethod def create(cls, v): return v @with_property('link', Link.create) class B: pass a = b() assert a.link is None assert '_link' not in vars(a) a.link = 'b' assert '_link' in vars(a) assert a.link == 'b' a.link = None assert a.link is None assert '_link' not in vars(a) print('B passed') class Value: @classmethod def creator(cls, vs): for v in vs: yield v @with_property('values', Value.creator) class C: pass a = c() assert a.values is () assert '_values' not in vars(a) a.values = ('b', 'c') assert '_values' in vars(a) assert a.values == ('b', 'c') a.values = () assert a.values is () assert '_values' not in vars(a) print('C passed') class Other: def meth(self, v): return v Other.obj = other() @with_property('extra', creator=Other.obj.meth) class D: pass a = d() assert a.extra is None assert '_extra' not in vars(a) a.extra = 'b' assert '_extra' in vars(a) assert a.extra == 'b' a.extra = None assert a.extra is None assert '_extra' not in vars(a) print('D passed')
students = [ {'name': 'fred', 'age': 29}, {'name': 'jim', 'age': 34}, {'name': 'alice', 'age': 12} ] students = sorted(students, key=lambda x: x['age']) #print(students) students = [ {'name': 'fred', 'dob': '1961-08-12'}, {'name': 'jim', 'dob': '1972-01-12'}, {'name': 'alice', 'dob': '1949-01-01'}, {'name': 'bob', 'dob': '1931-12-25'} ] students = sorted(students, key=lambda x: x['dob']) print(students)
students = [{'name': 'fred', 'age': 29}, {'name': 'jim', 'age': 34}, {'name': 'alice', 'age': 12}] students = sorted(students, key=lambda x: x['age']) students = [{'name': 'fred', 'dob': '1961-08-12'}, {'name': 'jim', 'dob': '1972-01-12'}, {'name': 'alice', 'dob': '1949-01-01'}, {'name': 'bob', 'dob': '1931-12-25'}] students = sorted(students, key=lambda x: x['dob']) print(students)
class Solution: def orangesRotting(self, grid: List[List[int]]) -> int: minutes = 0 mark = [] nonRotten = 0 for i, row in enumerate(grid): for j, r in enumerate(row): if r == 2: # Rotten mark.append((i,j)) elif r == 1: # Not Rotten nonRotten += 1 row = len(grid) col =len(grid[0]) while mark: size = len(mark) tmp = [] for i in range(size): x, y = mark.pop(0) possibilities = [(x+1, y),(x-1, y),(x, y+1),(x, y-1)] for a, b in possibilities: if 0 <= a < row and 0 <= b < col and grid[a][b] == 1: tmp.append((a,b)) grid[a][b] = 2 nonRotten -= 1 if tmp: mark += tmp minutes += 1 return minutes if nonRotten == 0 else -1
class Solution: def oranges_rotting(self, grid: List[List[int]]) -> int: minutes = 0 mark = [] non_rotten = 0 for (i, row) in enumerate(grid): for (j, r) in enumerate(row): if r == 2: mark.append((i, j)) elif r == 1: non_rotten += 1 row = len(grid) col = len(grid[0]) while mark: size = len(mark) tmp = [] for i in range(size): (x, y) = mark.pop(0) possibilities = [(x + 1, y), (x - 1, y), (x, y + 1), (x, y - 1)] for (a, b) in possibilities: if 0 <= a < row and 0 <= b < col and (grid[a][b] == 1): tmp.append((a, b)) grid[a][b] = 2 non_rotten -= 1 if tmp: mark += tmp minutes += 1 return minutes if nonRotten == 0 else -1
# # PySNMP MIB module Q-BRIDGE-MIB (http://pysnmp.sf.net) # ASN.1 source http://mibs.snmplabs.com:80/asn1/Q-BRIDGE-MIB # Produced by pysmi-0.0.7 at Fri Feb 17 12:48:35 2017 # On host 5641388e757d platform Linux version 4.4.0-62-generic by user root # Using Python version 2.7.13 (default, Dec 22 2016, 09:22:15) # ( Integer, ObjectIdentifier, OctetString, ) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") ( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ( ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint") ( dot1dBridge, dot1dBasePort, dot1dBasePortEntry, ) = mibBuilder.importSymbols("BRIDGE-MIB", "dot1dBridge", "dot1dBasePort", "dot1dBasePortEntry") ( EnabledStatus, ) = mibBuilder.importSymbols("P-BRIDGE-MIB", "EnabledStatus") ( TimeFilter, ) = mibBuilder.importSymbols("RMON2-MIB", "TimeFilter") ( SnmpAdminString, ) = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString") ( NotificationGroup, ModuleCompliance, ObjectGroup, ) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup") ( Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, IpAddress, TimeTicks, Counter64, Unsigned32, ModuleIdentity, Gauge32, iso, ObjectIdentity, Bits, Counter32, ) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "MibIdentifier", "IpAddress", "TimeTicks", "Counter64", "Unsigned32", "ModuleIdentity", "Gauge32", "iso", "ObjectIdentity", "Bits", "Counter32") ( TruthValue, MacAddress, RowStatus, TextualConvention, DisplayString, ) = mibBuilder.importSymbols("SNMPv2-TC", "TruthValue", "MacAddress", "RowStatus", "TextualConvention", "DisplayString") qBridgeMIB = ModuleIdentity((1, 3, 6, 1, 2, 1, 17, 7)).setRevisions(("2006-01-09 00:00", "1999-08-25 00:00",)) qBridgeMIBObjects = MibIdentifier((1, 3, 6, 1, 2, 1, 17, 7, 1)) class PortList(OctetString, TextualConvention): pass class VlanIndex(Unsigned32, TextualConvention): displayHint = 'd' class VlanId(Integer32, TextualConvention): displayHint = 'd' subtypeSpec = Integer32.subtypeSpec+ValueRangeConstraint(1,4094) class VlanIdOrAny(Integer32, TextualConvention): displayHint = 'd' subtypeSpec = Integer32.subtypeSpec+ConstraintsUnion(ValueRangeConstraint(1,4094),ValueRangeConstraint(4095,4095),) class VlanIdOrNone(Integer32, TextualConvention): displayHint = 'd' subtypeSpec = Integer32.subtypeSpec+ConstraintsUnion(ValueRangeConstraint(0,0),ValueRangeConstraint(1,4094),) class VlanIdOrAnyOrNone(Integer32, TextualConvention): displayHint = 'd' subtypeSpec = Integer32.subtypeSpec+ConstraintsUnion(ValueRangeConstraint(0,0),ValueRangeConstraint(1,4094),ValueRangeConstraint(4095,4095),) dot1qBase = MibIdentifier((1, 3, 6, 1, 2, 1, 17, 7, 1, 1)) dot1qTp = MibIdentifier((1, 3, 6, 1, 2, 1, 17, 7, 1, 2)) dot1qStatic = MibIdentifier((1, 3, 6, 1, 2, 1, 17, 7, 1, 3)) dot1qVlan = MibIdentifier((1, 3, 6, 1, 2, 1, 17, 7, 1, 4)) dot1vProtocol = MibIdentifier((1, 3, 6, 1, 2, 1, 17, 7, 1, 5)) dot1qVlanVersionNumber = MibScalar((1, 3, 6, 1, 2, 1, 17, 7, 1, 1, 1), Integer32().subtype(subtypeSpec=SingleValueConstraint(1,)).clone(namedValues=NamedValues(("version1", 1),))).setMaxAccess("readonly") dot1qMaxVlanId = MibScalar((1, 3, 6, 1, 2, 1, 17, 7, 1, 1, 2), VlanId()).setMaxAccess("readonly") dot1qMaxSupportedVlans = MibScalar((1, 3, 6, 1, 2, 1, 17, 7, 1, 1, 3), Unsigned32()).setMaxAccess("readonly") dot1qNumVlans = MibScalar((1, 3, 6, 1, 2, 1, 17, 7, 1, 1, 4), Unsigned32()).setMaxAccess("readonly") dot1qGvrpStatus = MibScalar((1, 3, 6, 1, 2, 1, 17, 7, 1, 1, 5), EnabledStatus()).setMaxAccess("readwrite") dot1qFdbTable = MibTable((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 1), ) dot1qFdbEntry = MibTableRow((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 1, 1), ).setIndexNames((0, "Q-BRIDGE-MIB", "dot1qFdbId")) dot1qFdbId = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 1, 1, 1), Unsigned32()) dot1qFdbDynamicCount = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 1, 1, 2), Counter32()).setMaxAccess("readonly") dot1qTpFdbTable = MibTable((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 2), ) dot1qTpFdbEntry = MibTableRow((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 2, 1), ).setIndexNames((0, "Q-BRIDGE-MIB", "dot1qFdbId"), (0, "Q-BRIDGE-MIB", "dot1qTpFdbAddress")) dot1qTpFdbAddress = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 2, 1, 1), MacAddress()) dot1qTpFdbPort = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0,65535))).setMaxAccess("readonly") dot1qTpFdbStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 2, 1, 3), Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2, 3, 4, 5,)).clone(namedValues=NamedValues(("other", 1), ("invalid", 2), ("learned", 3), ("self", 4), ("mgmt", 5),))).setMaxAccess("readonly") dot1qTpGroupTable = MibTable((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 3), ) dot1qTpGroupEntry = MibTableRow((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 3, 1), ).setIndexNames((0, "Q-BRIDGE-MIB", "dot1qVlanIndex"), (0, "Q-BRIDGE-MIB", "dot1qTpGroupAddress")) dot1qTpGroupAddress = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 3, 1, 1), MacAddress()) dot1qTpGroupEgressPorts = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 3, 1, 2), PortList()).setMaxAccess("readonly") dot1qTpGroupLearnt = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 3, 1, 3), PortList()).setMaxAccess("readonly") dot1qForwardAllTable = MibTable((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 4), ) dot1qForwardAllEntry = MibTableRow((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 4, 1), ).setIndexNames((0, "Q-BRIDGE-MIB", "dot1qVlanIndex")) dot1qForwardAllPorts = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 4, 1, 1), PortList()).setMaxAccess("readonly") dot1qForwardAllStaticPorts = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 4, 1, 2), PortList()).setMaxAccess("readwrite") dot1qForwardAllForbiddenPorts = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 4, 1, 3), PortList()).setMaxAccess("readwrite") dot1qForwardUnregisteredTable = MibTable((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 5), ) dot1qForwardUnregisteredEntry = MibTableRow((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 5, 1), ).setIndexNames((0, "Q-BRIDGE-MIB", "dot1qVlanIndex")) dot1qForwardUnregisteredPorts = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 5, 1, 1), PortList()).setMaxAccess("readonly") dot1qForwardUnregisteredStaticPorts = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 5, 1, 2), PortList()).setMaxAccess("readwrite") dot1qForwardUnregisteredForbiddenPorts = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 5, 1, 3), PortList()).setMaxAccess("readwrite") dot1qStaticUnicastTable = MibTable((1, 3, 6, 1, 2, 1, 17, 7, 1, 3, 1), ) dot1qStaticUnicastEntry = MibTableRow((1, 3, 6, 1, 2, 1, 17, 7, 1, 3, 1, 1), ).setIndexNames((0, "Q-BRIDGE-MIB", "dot1qFdbId"), (0, "Q-BRIDGE-MIB", "dot1qStaticUnicastAddress"), (0, "Q-BRIDGE-MIB", "dot1qStaticUnicastReceivePort")) dot1qStaticUnicastAddress = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 3, 1, 1, 1), MacAddress()) dot1qStaticUnicastReceivePort = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 3, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0,65535))) dot1qStaticUnicastAllowedToGoTo = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 3, 1, 1, 3), PortList()).setMaxAccess("readwrite") dot1qStaticUnicastStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 3, 1, 1, 4), Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2, 3, 4, 5,)).clone(namedValues=NamedValues(("other", 1), ("invalid", 2), ("permanent", 3), ("deleteOnReset", 4), ("deleteOnTimeout", 5),)).clone('permanent')).setMaxAccess("readwrite") dot1qStaticMulticastTable = MibTable((1, 3, 6, 1, 2, 1, 17, 7, 1, 3, 2), ) dot1qStaticMulticastEntry = MibTableRow((1, 3, 6, 1, 2, 1, 17, 7, 1, 3, 2, 1), ).setIndexNames((0, "Q-BRIDGE-MIB", "dot1qVlanIndex"), (0, "Q-BRIDGE-MIB", "dot1qStaticMulticastAddress"), (0, "Q-BRIDGE-MIB", "dot1qStaticMulticastReceivePort")) dot1qStaticMulticastAddress = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 3, 2, 1, 1), MacAddress()) dot1qStaticMulticastReceivePort = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 3, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0,65535))) dot1qStaticMulticastStaticEgressPorts = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 3, 2, 1, 3), PortList()).setMaxAccess("readwrite") dot1qStaticMulticastForbiddenEgressPorts = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 3, 2, 1, 4), PortList()).setMaxAccess("readwrite") dot1qStaticMulticastStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 3, 2, 1, 5), Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2, 3, 4, 5,)).clone(namedValues=NamedValues(("other", 1), ("invalid", 2), ("permanent", 3), ("deleteOnReset", 4), ("deleteOnTimeout", 5),)).clone('permanent')).setMaxAccess("readwrite") dot1qVlanNumDeletes = MibScalar((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 1), Counter32()).setMaxAccess("readonly") dot1qVlanCurrentTable = MibTable((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 2), ) dot1qVlanCurrentEntry = MibTableRow((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 2, 1), ).setIndexNames((0, "Q-BRIDGE-MIB", "dot1qVlanTimeMark"), (0, "Q-BRIDGE-MIB", "dot1qVlanIndex")) dot1qVlanTimeMark = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 2, 1, 1), TimeFilter()) dot1qVlanIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 2, 1, 2), VlanIndex()) dot1qVlanFdbId = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 2, 1, 3), Unsigned32()).setMaxAccess("readonly") dot1qVlanCurrentEgressPorts = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 2, 1, 4), PortList()).setMaxAccess("readonly") dot1qVlanCurrentUntaggedPorts = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 2, 1, 5), PortList()).setMaxAccess("readonly") dot1qVlanStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 2, 1, 6), Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2, 3,)).clone(namedValues=NamedValues(("other", 1), ("permanent", 2), ("dynamicGvrp", 3),))).setMaxAccess("readonly") dot1qVlanCreationTime = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 2, 1, 7), TimeTicks()).setMaxAccess("readonly") dot1qVlanStaticTable = MibTable((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 3), ) dot1qVlanStaticEntry = MibTableRow((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 3, 1), ).setIndexNames((0, "Q-BRIDGE-MIB", "dot1qVlanIndex")) dot1qVlanStaticName = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 3, 1, 1), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0,32))).setMaxAccess("readcreate") dot1qVlanStaticEgressPorts = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 3, 1, 2), PortList()).setMaxAccess("readcreate") dot1qVlanForbiddenEgressPorts = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 3, 1, 3), PortList()).setMaxAccess("readcreate") dot1qVlanStaticUntaggedPorts = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 3, 1, 4), PortList()).setMaxAccess("readcreate") dot1qVlanStaticRowStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 3, 1, 5), RowStatus()).setMaxAccess("readcreate") dot1qNextFreeLocalVlanIndex = MibScalar((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0,0),ValueRangeConstraint(4096,2147483647),))).setMaxAccess("readonly") dot1qPortVlanTable = MibTable((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 5), ) dot1qPortVlanEntry = MibTableRow((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 5, 1), ) dot1dBasePortEntry.registerAugmentions(("Q-BRIDGE-MIB", "dot1qPortVlanEntry")) dot1qPortVlanEntry.setIndexNames(*dot1dBasePortEntry.getIndexNames()) dot1qPvid = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 5, 1, 1), VlanIndex().clone(1)).setMaxAccess("readwrite") dot1qPortAcceptableFrameTypes = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 5, 1, 2), Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2,)).clone(namedValues=NamedValues(("admitAll", 1), ("admitOnlyVlanTagged", 2),))).setMaxAccess("readwrite") dot1qPortIngressFiltering = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 5, 1, 3), TruthValue()).setMaxAccess("readwrite") dot1qPortGvrpStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 5, 1, 4), EnabledStatus()).setMaxAccess("readwrite") dot1qPortGvrpFailedRegistrations = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 5, 1, 5), Counter32()).setMaxAccess("readonly") dot1qPortGvrpLastPduOrigin = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 5, 1, 6), MacAddress()).setMaxAccess("readonly") dot1qPortRestrictedVlanRegistration = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 5, 1, 7), TruthValue().clone('false')).setMaxAccess("readwrite") dot1qPortVlanStatisticsTable = MibTable((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 6), ) dot1qPortVlanStatisticsEntry = MibTableRow((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 6, 1), ).setIndexNames((0, "BRIDGE-MIB", "dot1dBasePort"), (0, "Q-BRIDGE-MIB", "dot1qVlanIndex")) dot1qTpVlanPortInFrames = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 6, 1, 1), Counter32()).setMaxAccess("readonly") dot1qTpVlanPortOutFrames = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 6, 1, 2), Counter32()).setMaxAccess("readonly") dot1qTpVlanPortInDiscards = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 6, 1, 3), Counter32()).setMaxAccess("readonly") dot1qTpVlanPortInOverflowFrames = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 6, 1, 4), Counter32()).setMaxAccess("readonly") dot1qTpVlanPortOutOverflowFrames = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 6, 1, 5), Counter32()).setMaxAccess("readonly") dot1qTpVlanPortInOverflowDiscards = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 6, 1, 6), Counter32()).setMaxAccess("readonly") dot1qPortVlanHCStatisticsTable = MibTable((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 7), ) dot1qPortVlanHCStatisticsEntry = MibTableRow((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 7, 1), ).setIndexNames((0, "BRIDGE-MIB", "dot1dBasePort"), (0, "Q-BRIDGE-MIB", "dot1qVlanIndex")) dot1qTpVlanPortHCInFrames = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 7, 1, 1), Counter64()).setMaxAccess("readonly") dot1qTpVlanPortHCOutFrames = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 7, 1, 2), Counter64()).setMaxAccess("readonly") dot1qTpVlanPortHCInDiscards = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 7, 1, 3), Counter64()).setMaxAccess("readonly") dot1qLearningConstraintsTable = MibTable((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 8), ) dot1qLearningConstraintsEntry = MibTableRow((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 8, 1), ).setIndexNames((0, "Q-BRIDGE-MIB", "dot1qConstraintVlan"), (0, "Q-BRIDGE-MIB", "dot1qConstraintSet")) dot1qConstraintVlan = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 8, 1, 1), VlanIndex()) dot1qConstraintSet = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 8, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0,65535))) dot1qConstraintType = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 8, 1, 3), Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2,)).clone(namedValues=NamedValues(("independent", 1), ("shared", 2),))).setMaxAccess("readcreate") dot1qConstraintStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 8, 1, 4), RowStatus()).setMaxAccess("readcreate") dot1qConstraintSetDefault = MibScalar((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0,65535))).setMaxAccess("readwrite") dot1qConstraintTypeDefault = MibScalar((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 10), Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2,)).clone(namedValues=NamedValues(("independent", 1), ("shared", 2),))).setMaxAccess("readwrite") dot1vProtocolGroupTable = MibTable((1, 3, 6, 1, 2, 1, 17, 7, 1, 5, 1), ) dot1vProtocolGroupEntry = MibTableRow((1, 3, 6, 1, 2, 1, 17, 7, 1, 5, 1, 1), ).setIndexNames((0, "Q-BRIDGE-MIB", "dot1vProtocolTemplateFrameType"), (0, "Q-BRIDGE-MIB", "dot1vProtocolTemplateProtocolValue")) dot1vProtocolTemplateFrameType = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 5, 1, 1, 1), Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2, 3, 4, 5,)).clone(namedValues=NamedValues(("ethernet", 1), ("rfc1042", 2), ("snap8021H", 3), ("snapOther", 4), ("llcOther", 5),))) dot1vProtocolTemplateProtocolValue = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 5, 1, 1, 2), OctetString().subtype(subtypeSpec=ConstraintsUnion(ValueSizeConstraint(2,2),ValueSizeConstraint(5,5),))) dot1vProtocolGroupId = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 5, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0,2147483647))).setMaxAccess("readcreate") dot1vProtocolGroupRowStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 5, 1, 1, 4), RowStatus()).setMaxAccess("readcreate") dot1vProtocolPortTable = MibTable((1, 3, 6, 1, 2, 1, 17, 7, 1, 5, 2), ) dot1vProtocolPortEntry = MibTableRow((1, 3, 6, 1, 2, 1, 17, 7, 1, 5, 2, 1), ).setIndexNames((0, "BRIDGE-MIB", "dot1dBasePort"), (0, "Q-BRIDGE-MIB", "dot1vProtocolPortGroupId")) dot1vProtocolPortGroupId = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 5, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1,2147483647))) dot1vProtocolPortGroupVid = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 5, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1,4094))).setMaxAccess("readcreate") dot1vProtocolPortRowStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 17, 7, 1, 5, 2, 1, 3), RowStatus()).setMaxAccess("readcreate") qBridgeConformance = MibIdentifier((1, 3, 6, 1, 2, 1, 17, 7, 2)) qBridgeGroups = MibIdentifier((1, 3, 6, 1, 2, 1, 17, 7, 2, 1)) qBridgeCompliances = MibIdentifier((1, 3, 6, 1, 2, 1, 17, 7, 2, 2)) qBridgeBaseGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 17, 7, 2, 1, 1)).setObjects(*(("Q-BRIDGE-MIB", "dot1qVlanVersionNumber"), ("Q-BRIDGE-MIB", "dot1qMaxVlanId"), ("Q-BRIDGE-MIB", "dot1qMaxSupportedVlans"), ("Q-BRIDGE-MIB", "dot1qNumVlans"), ("Q-BRIDGE-MIB", "dot1qGvrpStatus"),)) qBridgeFdbUnicastGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 17, 7, 2, 1, 2)).setObjects(*(("Q-BRIDGE-MIB", "dot1qFdbDynamicCount"), ("Q-BRIDGE-MIB", "dot1qTpFdbPort"), ("Q-BRIDGE-MIB", "dot1qTpFdbStatus"),)) qBridgeFdbMulticastGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 17, 7, 2, 1, 3)).setObjects(*(("Q-BRIDGE-MIB", "dot1qTpGroupEgressPorts"), ("Q-BRIDGE-MIB", "dot1qTpGroupLearnt"),)) qBridgeServiceRequirementsGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 17, 7, 2, 1, 4)).setObjects(*(("Q-BRIDGE-MIB", "dot1qForwardAllPorts"), ("Q-BRIDGE-MIB", "dot1qForwardAllStaticPorts"), ("Q-BRIDGE-MIB", "dot1qForwardAllForbiddenPorts"), ("Q-BRIDGE-MIB", "dot1qForwardUnregisteredPorts"), ("Q-BRIDGE-MIB", "dot1qForwardUnregisteredStaticPorts"), ("Q-BRIDGE-MIB", "dot1qForwardUnregisteredForbiddenPorts"),)) qBridgeFdbStaticGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 17, 7, 2, 1, 5)).setObjects(*(("Q-BRIDGE-MIB", "dot1qStaticUnicastAllowedToGoTo"), ("Q-BRIDGE-MIB", "dot1qStaticUnicastStatus"), ("Q-BRIDGE-MIB", "dot1qStaticMulticastStaticEgressPorts"), ("Q-BRIDGE-MIB", "dot1qStaticMulticastForbiddenEgressPorts"), ("Q-BRIDGE-MIB", "dot1qStaticMulticastStatus"),)) qBridgeVlanGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 17, 7, 2, 1, 6)).setObjects(*(("Q-BRIDGE-MIB", "dot1qVlanNumDeletes"), ("Q-BRIDGE-MIB", "dot1qVlanFdbId"), ("Q-BRIDGE-MIB", "dot1qVlanCurrentEgressPorts"), ("Q-BRIDGE-MIB", "dot1qVlanCurrentUntaggedPorts"), ("Q-BRIDGE-MIB", "dot1qVlanStatus"), ("Q-BRIDGE-MIB", "dot1qVlanCreationTime"),)) qBridgeVlanStaticGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 17, 7, 2, 1, 7)).setObjects(*(("Q-BRIDGE-MIB", "dot1qVlanStaticName"), ("Q-BRIDGE-MIB", "dot1qVlanStaticEgressPorts"), ("Q-BRIDGE-MIB", "dot1qVlanForbiddenEgressPorts"), ("Q-BRIDGE-MIB", "dot1qVlanStaticUntaggedPorts"), ("Q-BRIDGE-MIB", "dot1qVlanStaticRowStatus"), ("Q-BRIDGE-MIB", "dot1qNextFreeLocalVlanIndex"),)) qBridgePortGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 17, 7, 2, 1, 8)).setObjects(*(("Q-BRIDGE-MIB", "dot1qPvid"), ("Q-BRIDGE-MIB", "dot1qPortAcceptableFrameTypes"), ("Q-BRIDGE-MIB", "dot1qPortIngressFiltering"), ("Q-BRIDGE-MIB", "dot1qPortGvrpStatus"), ("Q-BRIDGE-MIB", "dot1qPortGvrpFailedRegistrations"), ("Q-BRIDGE-MIB", "dot1qPortGvrpLastPduOrigin"),)) qBridgeVlanStatisticsGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 17, 7, 2, 1, 9)).setObjects(*(("Q-BRIDGE-MIB", "dot1qTpVlanPortInFrames"), ("Q-BRIDGE-MIB", "dot1qTpVlanPortOutFrames"), ("Q-BRIDGE-MIB", "dot1qTpVlanPortInDiscards"),)) qBridgeVlanStatisticsOverflowGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 17, 7, 2, 1, 10)).setObjects(*(("Q-BRIDGE-MIB", "dot1qTpVlanPortInOverflowFrames"), ("Q-BRIDGE-MIB", "dot1qTpVlanPortOutOverflowFrames"), ("Q-BRIDGE-MIB", "dot1qTpVlanPortInOverflowDiscards"),)) qBridgeVlanHCStatisticsGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 17, 7, 2, 1, 11)).setObjects(*(("Q-BRIDGE-MIB", "dot1qTpVlanPortHCInFrames"), ("Q-BRIDGE-MIB", "dot1qTpVlanPortHCOutFrames"), ("Q-BRIDGE-MIB", "dot1qTpVlanPortHCInDiscards"),)) qBridgeLearningConstraintsGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 17, 7, 2, 1, 12)).setObjects(*(("Q-BRIDGE-MIB", "dot1qConstraintType"), ("Q-BRIDGE-MIB", "dot1qConstraintStatus"),)) qBridgeLearningConstraintDefaultGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 17, 7, 2, 1, 13)).setObjects(*(("Q-BRIDGE-MIB", "dot1qConstraintSetDefault"), ("Q-BRIDGE-MIB", "dot1qConstraintTypeDefault"),)) qBridgeClassificationDeviceGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 17, 7, 2, 1, 14)).setObjects(*(("Q-BRIDGE-MIB", "dot1vProtocolGroupId"), ("Q-BRIDGE-MIB", "dot1vProtocolGroupRowStatus"),)) qBridgeClassificationPortGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 17, 7, 2, 1, 15)).setObjects(*(("Q-BRIDGE-MIB", "dot1vProtocolPortGroupVid"), ("Q-BRIDGE-MIB", "dot1vProtocolPortRowStatus"),)) qBridgePortGroup2 = ObjectGroup((1, 3, 6, 1, 2, 1, 17, 7, 2, 1, 16)).setObjects(*(("Q-BRIDGE-MIB", "dot1qPvid"), ("Q-BRIDGE-MIB", "dot1qPortAcceptableFrameTypes"), ("Q-BRIDGE-MIB", "dot1qPortIngressFiltering"), ("Q-BRIDGE-MIB", "dot1qPortGvrpStatus"), ("Q-BRIDGE-MIB", "dot1qPortGvrpFailedRegistrations"), ("Q-BRIDGE-MIB", "dot1qPortGvrpLastPduOrigin"), ("Q-BRIDGE-MIB", "dot1qPortRestrictedVlanRegistration"),)) qBridgeCompliance = ModuleCompliance((1, 3, 6, 1, 2, 1, 17, 7, 2, 2, 1)).setObjects(*(("Q-BRIDGE-MIB", "qBridgeBaseGroup"), ("Q-BRIDGE-MIB", "qBridgeVlanGroup"), ("Q-BRIDGE-MIB", "qBridgeVlanStaticGroup"), ("Q-BRIDGE-MIB", "qBridgePortGroup"), ("Q-BRIDGE-MIB", "qBridgeFdbUnicastGroup"), ("Q-BRIDGE-MIB", "qBridgeFdbMulticastGroup"), ("Q-BRIDGE-MIB", "qBridgeServiceRequirementsGroup"), ("Q-BRIDGE-MIB", "qBridgeFdbStaticGroup"), ("Q-BRIDGE-MIB", "qBridgeVlanStatisticsGroup"), ("Q-BRIDGE-MIB", "qBridgeVlanStatisticsOverflowGroup"), ("Q-BRIDGE-MIB", "qBridgeVlanHCStatisticsGroup"), ("Q-BRIDGE-MIB", "qBridgeLearningConstraintsGroup"), ("Q-BRIDGE-MIB", "qBridgeLearningConstraintDefaultGroup"),)) qBridgeCompliance2 = ModuleCompliance((1, 3, 6, 1, 2, 1, 17, 7, 2, 2, 2)).setObjects(*(("Q-BRIDGE-MIB", "qBridgeBaseGroup"), ("Q-BRIDGE-MIB", "qBridgeVlanGroup"), ("Q-BRIDGE-MIB", "qBridgeVlanStaticGroup"), ("Q-BRIDGE-MIB", "qBridgePortGroup2"), ("Q-BRIDGE-MIB", "qBridgeFdbUnicastGroup"), ("Q-BRIDGE-MIB", "qBridgeFdbMulticastGroup"), ("Q-BRIDGE-MIB", "qBridgeServiceRequirementsGroup"), ("Q-BRIDGE-MIB", "qBridgeFdbStaticGroup"), ("Q-BRIDGE-MIB", "qBridgeVlanStatisticsGroup"), ("Q-BRIDGE-MIB", "qBridgeVlanStatisticsOverflowGroup"), ("Q-BRIDGE-MIB", "qBridgeVlanHCStatisticsGroup"), ("Q-BRIDGE-MIB", "qBridgeLearningConstraintsGroup"), ("Q-BRIDGE-MIB", "qBridgeLearningConstraintDefaultGroup"), ("Q-BRIDGE-MIB", "qBridgeClassificationDeviceGroup"), ("Q-BRIDGE-MIB", "qBridgeClassificationPortGroup"),)) mibBuilder.exportSymbols("Q-BRIDGE-MIB", qBridgeVlanStaticGroup=qBridgeVlanStaticGroup, dot1vProtocolGroupId=dot1vProtocolGroupId, dot1vProtocolTemplateFrameType=dot1vProtocolTemplateFrameType, dot1qVlanCurrentTable=dot1qVlanCurrentTable, dot1qTpGroupAddress=dot1qTpGroupAddress, qBridgeConformance=qBridgeConformance, dot1qStaticUnicastTable=dot1qStaticUnicastTable, qBridgePortGroup=qBridgePortGroup, dot1qStaticUnicastAllowedToGoTo=dot1qStaticUnicastAllowedToGoTo, qBridgeFdbMulticastGroup=qBridgeFdbMulticastGroup, dot1vProtocolGroupEntry=dot1vProtocolGroupEntry, dot1vProtocolPortGroupId=dot1vProtocolPortGroupId, dot1qTpVlanPortHCOutFrames=dot1qTpVlanPortHCOutFrames, dot1qBase=dot1qBase, qBridgeServiceRequirementsGroup=qBridgeServiceRequirementsGroup, dot1qVlanStatus=dot1qVlanStatus, qBridgeCompliance=qBridgeCompliance, dot1vProtocolPortRowStatus=dot1vProtocolPortRowStatus, dot1qTpVlanPortHCInFrames=dot1qTpVlanPortHCInFrames, dot1qTpGroupEntry=dot1qTpGroupEntry, dot1qVlanStaticEgressPorts=dot1qVlanStaticEgressPorts, VlanIndex=VlanIndex, dot1qPortVlanHCStatisticsTable=dot1qPortVlanHCStatisticsTable, dot1qTpVlanPortInFrames=dot1qTpVlanPortInFrames, dot1qVlanCurrentUntaggedPorts=dot1qVlanCurrentUntaggedPorts, dot1qForwardUnregisteredPorts=dot1qForwardUnregisteredPorts, dot1qForwardUnregisteredTable=dot1qForwardUnregisteredTable, dot1qStaticUnicastAddress=dot1qStaticUnicastAddress, qBridgeVlanStatisticsOverflowGroup=qBridgeVlanStatisticsOverflowGroup, qBridgeBaseGroup=qBridgeBaseGroup, qBridgeGroups=qBridgeGroups, dot1vProtocol=dot1vProtocol, dot1qMaxVlanId=dot1qMaxVlanId, dot1qTpVlanPortInOverflowFrames=dot1qTpVlanPortInOverflowFrames, dot1qTpVlanPortHCInDiscards=dot1qTpVlanPortHCInDiscards, dot1qTpVlanPortOutFrames=dot1qTpVlanPortOutFrames, qBridgeMIBObjects=qBridgeMIBObjects, dot1qPortIngressFiltering=dot1qPortIngressFiltering, dot1qPortVlanHCStatisticsEntry=dot1qPortVlanHCStatisticsEntry, dot1qForwardAllEntry=dot1qForwardAllEntry, PYSNMP_MODULE_ID=qBridgeMIB, dot1qVlanFdbId=dot1qVlanFdbId, dot1qVlanCurrentEgressPorts=dot1qVlanCurrentEgressPorts, qBridgeVlanHCStatisticsGroup=qBridgeVlanHCStatisticsGroup, dot1qPortAcceptableFrameTypes=dot1qPortAcceptableFrameTypes, dot1qForwardAllStaticPorts=dot1qForwardAllStaticPorts, dot1qPortGvrpStatus=dot1qPortGvrpStatus, dot1qConstraintStatus=dot1qConstraintStatus, dot1qNumVlans=dot1qNumVlans, dot1qForwardAllTable=dot1qForwardAllTable, dot1qVlanForbiddenEgressPorts=dot1qVlanForbiddenEgressPorts, dot1qVlan=dot1qVlan, dot1qGvrpStatus=dot1qGvrpStatus, qBridgeLearningConstraintDefaultGroup=qBridgeLearningConstraintDefaultGroup, VlanIdOrNone=VlanIdOrNone, dot1qPortGvrpFailedRegistrations=dot1qPortGvrpFailedRegistrations, qBridgeFdbStaticGroup=qBridgeFdbStaticGroup, dot1qVlanCreationTime=dot1qVlanCreationTime, dot1qPortVlanStatisticsEntry=dot1qPortVlanStatisticsEntry, dot1qFdbDynamicCount=dot1qFdbDynamicCount, dot1qForwardUnregisteredStaticPorts=dot1qForwardUnregisteredStaticPorts, dot1qFdbEntry=dot1qFdbEntry, dot1vProtocolTemplateProtocolValue=dot1vProtocolTemplateProtocolValue, dot1qStaticMulticastReceivePort=dot1qStaticMulticastReceivePort, PortList=PortList, dot1qTpGroupLearnt=dot1qTpGroupLearnt, dot1qPortRestrictedVlanRegistration=dot1qPortRestrictedVlanRegistration, dot1qConstraintType=dot1qConstraintType, dot1qTpGroupTable=dot1qTpGroupTable, VlanIdOrAnyOrNone=VlanIdOrAnyOrNone, dot1qStaticMulticastStatus=dot1qStaticMulticastStatus, dot1qLearningConstraintsTable=dot1qLearningConstraintsTable, dot1qPortGvrpLastPduOrigin=dot1qPortGvrpLastPduOrigin, dot1qVlanStaticEntry=dot1qVlanStaticEntry, dot1qForwardAllPorts=dot1qForwardAllPorts, qBridgePortGroup2=qBridgePortGroup2, dot1vProtocolGroupTable=dot1vProtocolGroupTable, VlanId=VlanId, dot1qTpFdbTable=dot1qTpFdbTable, dot1qVlanStaticRowStatus=dot1qVlanStaticRowStatus, dot1qStatic=dot1qStatic, dot1qTpGroupEgressPorts=dot1qTpGroupEgressPorts, VlanIdOrAny=VlanIdOrAny, dot1vProtocolPortGroupVid=dot1vProtocolPortGroupVid, dot1qPortVlanEntry=dot1qPortVlanEntry, dot1qPortVlanStatisticsTable=dot1qPortVlanStatisticsTable, dot1qStaticMulticastForbiddenEgressPorts=dot1qStaticMulticastForbiddenEgressPorts, qBridgeLearningConstraintsGroup=qBridgeLearningConstraintsGroup, dot1qNextFreeLocalVlanIndex=dot1qNextFreeLocalVlanIndex, dot1qFdbId=dot1qFdbId, dot1qTpVlanPortInDiscards=dot1qTpVlanPortInDiscards, dot1qVlanCurrentEntry=dot1qVlanCurrentEntry, dot1qVlanNumDeletes=dot1qVlanNumDeletes, dot1qConstraintSet=dot1qConstraintSet, dot1qStaticUnicastReceivePort=dot1qStaticUnicastReceivePort, dot1vProtocolPortTable=dot1vProtocolPortTable, dot1vProtocolGroupRowStatus=dot1vProtocolGroupRowStatus, dot1qTpFdbAddress=dot1qTpFdbAddress, dot1qTpVlanPortOutOverflowFrames=dot1qTpVlanPortOutOverflowFrames, dot1qTp=dot1qTp, dot1qFdbTable=dot1qFdbTable, dot1qPvid=dot1qPvid, dot1qVlanStaticUntaggedPorts=dot1qVlanStaticUntaggedPorts, dot1qVlanTimeMark=dot1qVlanTimeMark, dot1vProtocolPortEntry=dot1vProtocolPortEntry, dot1qStaticMulticastTable=dot1qStaticMulticastTable, dot1qMaxSupportedVlans=dot1qMaxSupportedVlans, qBridgeCompliances=qBridgeCompliances, dot1qTpFdbEntry=dot1qTpFdbEntry, dot1qTpFdbStatus=dot1qTpFdbStatus, qBridgeClassificationPortGroup=qBridgeClassificationPortGroup, dot1qTpVlanPortInOverflowDiscards=dot1qTpVlanPortInOverflowDiscards, dot1qConstraintVlan=dot1qConstraintVlan, qBridgeMIB=qBridgeMIB, dot1qForwardAllForbiddenPorts=dot1qForwardAllForbiddenPorts, dot1qStaticUnicastEntry=dot1qStaticUnicastEntry, dot1qTpFdbPort=dot1qTpFdbPort, qBridgeVlanGroup=qBridgeVlanGroup, qBridgeFdbUnicastGroup=qBridgeFdbUnicastGroup, dot1qConstraintTypeDefault=dot1qConstraintTypeDefault, dot1qVlanVersionNumber=dot1qVlanVersionNumber, dot1qForwardUnregisteredEntry=dot1qForwardUnregisteredEntry, dot1qPortVlanTable=dot1qPortVlanTable, dot1qVlanStaticName=dot1qVlanStaticName, dot1qForwardUnregisteredForbiddenPorts=dot1qForwardUnregisteredForbiddenPorts, dot1qVlanIndex=dot1qVlanIndex, qBridgeVlanStatisticsGroup=qBridgeVlanStatisticsGroup, dot1qStaticMulticastStaticEgressPorts=dot1qStaticMulticastStaticEgressPorts, dot1qLearningConstraintsEntry=dot1qLearningConstraintsEntry, dot1qConstraintSetDefault=dot1qConstraintSetDefault, dot1qStaticUnicastStatus=dot1qStaticUnicastStatus, dot1qVlanStaticTable=dot1qVlanStaticTable, qBridgeClassificationDeviceGroup=qBridgeClassificationDeviceGroup, dot1qStaticMulticastEntry=dot1qStaticMulticastEntry, dot1qStaticMulticastAddress=dot1qStaticMulticastAddress, qBridgeCompliance2=qBridgeCompliance2)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, single_value_constraint, constraints_intersection, value_size_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint', 'ValueRangeConstraint') (dot1d_bridge, dot1d_base_port, dot1d_base_port_entry) = mibBuilder.importSymbols('BRIDGE-MIB', 'dot1dBridge', 'dot1dBasePort', 'dot1dBasePortEntry') (enabled_status,) = mibBuilder.importSymbols('P-BRIDGE-MIB', 'EnabledStatus') (time_filter,) = mibBuilder.importSymbols('RMON2-MIB', 'TimeFilter') (snmp_admin_string,) = mibBuilder.importSymbols('SNMP-FRAMEWORK-MIB', 'SnmpAdminString') (notification_group, module_compliance, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance', 'ObjectGroup') (integer32, mib_scalar, mib_table, mib_table_row, mib_table_column, notification_type, mib_identifier, ip_address, time_ticks, counter64, unsigned32, module_identity, gauge32, iso, object_identity, bits, counter32) = mibBuilder.importSymbols('SNMPv2-SMI', 'Integer32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'NotificationType', 'MibIdentifier', 'IpAddress', 'TimeTicks', 'Counter64', 'Unsigned32', 'ModuleIdentity', 'Gauge32', 'iso', 'ObjectIdentity', 'Bits', 'Counter32') (truth_value, mac_address, row_status, textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TruthValue', 'MacAddress', 'RowStatus', 'TextualConvention', 'DisplayString') q_bridge_mib = module_identity((1, 3, 6, 1, 2, 1, 17, 7)).setRevisions(('2006-01-09 00:00', '1999-08-25 00:00')) q_bridge_mib_objects = mib_identifier((1, 3, 6, 1, 2, 1, 17, 7, 1)) class Portlist(OctetString, TextualConvention): pass class Vlanindex(Unsigned32, TextualConvention): display_hint = 'd' class Vlanid(Integer32, TextualConvention): display_hint = 'd' subtype_spec = Integer32.subtypeSpec + value_range_constraint(1, 4094) class Vlanidorany(Integer32, TextualConvention): display_hint = 'd' subtype_spec = Integer32.subtypeSpec + constraints_union(value_range_constraint(1, 4094), value_range_constraint(4095, 4095)) class Vlanidornone(Integer32, TextualConvention): display_hint = 'd' subtype_spec = Integer32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(1, 4094)) class Vlanidoranyornone(Integer32, TextualConvention): display_hint = 'd' subtype_spec = Integer32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(1, 4094), value_range_constraint(4095, 4095)) dot1q_base = mib_identifier((1, 3, 6, 1, 2, 1, 17, 7, 1, 1)) dot1q_tp = mib_identifier((1, 3, 6, 1, 2, 1, 17, 7, 1, 2)) dot1q_static = mib_identifier((1, 3, 6, 1, 2, 1, 17, 7, 1, 3)) dot1q_vlan = mib_identifier((1, 3, 6, 1, 2, 1, 17, 7, 1, 4)) dot1v_protocol = mib_identifier((1, 3, 6, 1, 2, 1, 17, 7, 1, 5)) dot1q_vlan_version_number = mib_scalar((1, 3, 6, 1, 2, 1, 17, 7, 1, 1, 1), integer32().subtype(subtypeSpec=single_value_constraint(1)).clone(namedValues=named_values(('version1', 1)))).setMaxAccess('readonly') dot1q_max_vlan_id = mib_scalar((1, 3, 6, 1, 2, 1, 17, 7, 1, 1, 2), vlan_id()).setMaxAccess('readonly') dot1q_max_supported_vlans = mib_scalar((1, 3, 6, 1, 2, 1, 17, 7, 1, 1, 3), unsigned32()).setMaxAccess('readonly') dot1q_num_vlans = mib_scalar((1, 3, 6, 1, 2, 1, 17, 7, 1, 1, 4), unsigned32()).setMaxAccess('readonly') dot1q_gvrp_status = mib_scalar((1, 3, 6, 1, 2, 1, 17, 7, 1, 1, 5), enabled_status()).setMaxAccess('readwrite') dot1q_fdb_table = mib_table((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 1)) dot1q_fdb_entry = mib_table_row((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 1, 1)).setIndexNames((0, 'Q-BRIDGE-MIB', 'dot1qFdbId')) dot1q_fdb_id = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 1, 1, 1), unsigned32()) dot1q_fdb_dynamic_count = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 1, 1, 2), counter32()).setMaxAccess('readonly') dot1q_tp_fdb_table = mib_table((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 2)) dot1q_tp_fdb_entry = mib_table_row((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 2, 1)).setIndexNames((0, 'Q-BRIDGE-MIB', 'dot1qFdbId'), (0, 'Q-BRIDGE-MIB', 'dot1qTpFdbAddress')) dot1q_tp_fdb_address = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 2, 1, 1), mac_address()) dot1q_tp_fdb_port = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') dot1q_tp_fdb_status = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 2, 1, 3), integer32().subtype(subtypeSpec=single_value_constraint(1, 2, 3, 4, 5)).clone(namedValues=named_values(('other', 1), ('invalid', 2), ('learned', 3), ('self', 4), ('mgmt', 5)))).setMaxAccess('readonly') dot1q_tp_group_table = mib_table((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 3)) dot1q_tp_group_entry = mib_table_row((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 3, 1)).setIndexNames((0, 'Q-BRIDGE-MIB', 'dot1qVlanIndex'), (0, 'Q-BRIDGE-MIB', 'dot1qTpGroupAddress')) dot1q_tp_group_address = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 3, 1, 1), mac_address()) dot1q_tp_group_egress_ports = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 3, 1, 2), port_list()).setMaxAccess('readonly') dot1q_tp_group_learnt = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 3, 1, 3), port_list()).setMaxAccess('readonly') dot1q_forward_all_table = mib_table((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 4)) dot1q_forward_all_entry = mib_table_row((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 4, 1)).setIndexNames((0, 'Q-BRIDGE-MIB', 'dot1qVlanIndex')) dot1q_forward_all_ports = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 4, 1, 1), port_list()).setMaxAccess('readonly') dot1q_forward_all_static_ports = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 4, 1, 2), port_list()).setMaxAccess('readwrite') dot1q_forward_all_forbidden_ports = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 4, 1, 3), port_list()).setMaxAccess('readwrite') dot1q_forward_unregistered_table = mib_table((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 5)) dot1q_forward_unregistered_entry = mib_table_row((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 5, 1)).setIndexNames((0, 'Q-BRIDGE-MIB', 'dot1qVlanIndex')) dot1q_forward_unregistered_ports = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 5, 1, 1), port_list()).setMaxAccess('readonly') dot1q_forward_unregistered_static_ports = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 5, 1, 2), port_list()).setMaxAccess('readwrite') dot1q_forward_unregistered_forbidden_ports = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 2, 5, 1, 3), port_list()).setMaxAccess('readwrite') dot1q_static_unicast_table = mib_table((1, 3, 6, 1, 2, 1, 17, 7, 1, 3, 1)) dot1q_static_unicast_entry = mib_table_row((1, 3, 6, 1, 2, 1, 17, 7, 1, 3, 1, 1)).setIndexNames((0, 'Q-BRIDGE-MIB', 'dot1qFdbId'), (0, 'Q-BRIDGE-MIB', 'dot1qStaticUnicastAddress'), (0, 'Q-BRIDGE-MIB', 'dot1qStaticUnicastReceivePort')) dot1q_static_unicast_address = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 3, 1, 1, 1), mac_address()) dot1q_static_unicast_receive_port = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 3, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))) dot1q_static_unicast_allowed_to_go_to = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 3, 1, 1, 3), port_list()).setMaxAccess('readwrite') dot1q_static_unicast_status = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 3, 1, 1, 4), integer32().subtype(subtypeSpec=single_value_constraint(1, 2, 3, 4, 5)).clone(namedValues=named_values(('other', 1), ('invalid', 2), ('permanent', 3), ('deleteOnReset', 4), ('deleteOnTimeout', 5))).clone('permanent')).setMaxAccess('readwrite') dot1q_static_multicast_table = mib_table((1, 3, 6, 1, 2, 1, 17, 7, 1, 3, 2)) dot1q_static_multicast_entry = mib_table_row((1, 3, 6, 1, 2, 1, 17, 7, 1, 3, 2, 1)).setIndexNames((0, 'Q-BRIDGE-MIB', 'dot1qVlanIndex'), (0, 'Q-BRIDGE-MIB', 'dot1qStaticMulticastAddress'), (0, 'Q-BRIDGE-MIB', 'dot1qStaticMulticastReceivePort')) dot1q_static_multicast_address = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 3, 2, 1, 1), mac_address()) dot1q_static_multicast_receive_port = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 3, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))) dot1q_static_multicast_static_egress_ports = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 3, 2, 1, 3), port_list()).setMaxAccess('readwrite') dot1q_static_multicast_forbidden_egress_ports = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 3, 2, 1, 4), port_list()).setMaxAccess('readwrite') dot1q_static_multicast_status = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 3, 2, 1, 5), integer32().subtype(subtypeSpec=single_value_constraint(1, 2, 3, 4, 5)).clone(namedValues=named_values(('other', 1), ('invalid', 2), ('permanent', 3), ('deleteOnReset', 4), ('deleteOnTimeout', 5))).clone('permanent')).setMaxAccess('readwrite') dot1q_vlan_num_deletes = mib_scalar((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 1), counter32()).setMaxAccess('readonly') dot1q_vlan_current_table = mib_table((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 2)) dot1q_vlan_current_entry = mib_table_row((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 2, 1)).setIndexNames((0, 'Q-BRIDGE-MIB', 'dot1qVlanTimeMark'), (0, 'Q-BRIDGE-MIB', 'dot1qVlanIndex')) dot1q_vlan_time_mark = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 2, 1, 1), time_filter()) dot1q_vlan_index = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 2, 1, 2), vlan_index()) dot1q_vlan_fdb_id = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 2, 1, 3), unsigned32()).setMaxAccess('readonly') dot1q_vlan_current_egress_ports = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 2, 1, 4), port_list()).setMaxAccess('readonly') dot1q_vlan_current_untagged_ports = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 2, 1, 5), port_list()).setMaxAccess('readonly') dot1q_vlan_status = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 2, 1, 6), integer32().subtype(subtypeSpec=single_value_constraint(1, 2, 3)).clone(namedValues=named_values(('other', 1), ('permanent', 2), ('dynamicGvrp', 3)))).setMaxAccess('readonly') dot1q_vlan_creation_time = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 2, 1, 7), time_ticks()).setMaxAccess('readonly') dot1q_vlan_static_table = mib_table((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 3)) dot1q_vlan_static_entry = mib_table_row((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 3, 1)).setIndexNames((0, 'Q-BRIDGE-MIB', 'dot1qVlanIndex')) dot1q_vlan_static_name = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 3, 1, 1), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readcreate') dot1q_vlan_static_egress_ports = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 3, 1, 2), port_list()).setMaxAccess('readcreate') dot1q_vlan_forbidden_egress_ports = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 3, 1, 3), port_list()).setMaxAccess('readcreate') dot1q_vlan_static_untagged_ports = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 3, 1, 4), port_list()).setMaxAccess('readcreate') dot1q_vlan_static_row_status = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 3, 1, 5), row_status()).setMaxAccess('readcreate') dot1q_next_free_local_vlan_index = mib_scalar((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 4), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(4096, 2147483647)))).setMaxAccess('readonly') dot1q_port_vlan_table = mib_table((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 5)) dot1q_port_vlan_entry = mib_table_row((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 5, 1)) dot1dBasePortEntry.registerAugmentions(('Q-BRIDGE-MIB', 'dot1qPortVlanEntry')) dot1qPortVlanEntry.setIndexNames(*dot1dBasePortEntry.getIndexNames()) dot1q_pvid = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 5, 1, 1), vlan_index().clone(1)).setMaxAccess('readwrite') dot1q_port_acceptable_frame_types = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 5, 1, 2), integer32().subtype(subtypeSpec=single_value_constraint(1, 2)).clone(namedValues=named_values(('admitAll', 1), ('admitOnlyVlanTagged', 2)))).setMaxAccess('readwrite') dot1q_port_ingress_filtering = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 5, 1, 3), truth_value()).setMaxAccess('readwrite') dot1q_port_gvrp_status = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 5, 1, 4), enabled_status()).setMaxAccess('readwrite') dot1q_port_gvrp_failed_registrations = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 5, 1, 5), counter32()).setMaxAccess('readonly') dot1q_port_gvrp_last_pdu_origin = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 5, 1, 6), mac_address()).setMaxAccess('readonly') dot1q_port_restricted_vlan_registration = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 5, 1, 7), truth_value().clone('false')).setMaxAccess('readwrite') dot1q_port_vlan_statistics_table = mib_table((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 6)) dot1q_port_vlan_statistics_entry = mib_table_row((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 6, 1)).setIndexNames((0, 'BRIDGE-MIB', 'dot1dBasePort'), (0, 'Q-BRIDGE-MIB', 'dot1qVlanIndex')) dot1q_tp_vlan_port_in_frames = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 6, 1, 1), counter32()).setMaxAccess('readonly') dot1q_tp_vlan_port_out_frames = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 6, 1, 2), counter32()).setMaxAccess('readonly') dot1q_tp_vlan_port_in_discards = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 6, 1, 3), counter32()).setMaxAccess('readonly') dot1q_tp_vlan_port_in_overflow_frames = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 6, 1, 4), counter32()).setMaxAccess('readonly') dot1q_tp_vlan_port_out_overflow_frames = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 6, 1, 5), counter32()).setMaxAccess('readonly') dot1q_tp_vlan_port_in_overflow_discards = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 6, 1, 6), counter32()).setMaxAccess('readonly') dot1q_port_vlan_hc_statistics_table = mib_table((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 7)) dot1q_port_vlan_hc_statistics_entry = mib_table_row((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 7, 1)).setIndexNames((0, 'BRIDGE-MIB', 'dot1dBasePort'), (0, 'Q-BRIDGE-MIB', 'dot1qVlanIndex')) dot1q_tp_vlan_port_hc_in_frames = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 7, 1, 1), counter64()).setMaxAccess('readonly') dot1q_tp_vlan_port_hc_out_frames = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 7, 1, 2), counter64()).setMaxAccess('readonly') dot1q_tp_vlan_port_hc_in_discards = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 7, 1, 3), counter64()).setMaxAccess('readonly') dot1q_learning_constraints_table = mib_table((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 8)) dot1q_learning_constraints_entry = mib_table_row((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 8, 1)).setIndexNames((0, 'Q-BRIDGE-MIB', 'dot1qConstraintVlan'), (0, 'Q-BRIDGE-MIB', 'dot1qConstraintSet')) dot1q_constraint_vlan = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 8, 1, 1), vlan_index()) dot1q_constraint_set = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 8, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))) dot1q_constraint_type = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 8, 1, 3), integer32().subtype(subtypeSpec=single_value_constraint(1, 2)).clone(namedValues=named_values(('independent', 1), ('shared', 2)))).setMaxAccess('readcreate') dot1q_constraint_status = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 8, 1, 4), row_status()).setMaxAccess('readcreate') dot1q_constraint_set_default = mib_scalar((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') dot1q_constraint_type_default = mib_scalar((1, 3, 6, 1, 2, 1, 17, 7, 1, 4, 10), integer32().subtype(subtypeSpec=single_value_constraint(1, 2)).clone(namedValues=named_values(('independent', 1), ('shared', 2)))).setMaxAccess('readwrite') dot1v_protocol_group_table = mib_table((1, 3, 6, 1, 2, 1, 17, 7, 1, 5, 1)) dot1v_protocol_group_entry = mib_table_row((1, 3, 6, 1, 2, 1, 17, 7, 1, 5, 1, 1)).setIndexNames((0, 'Q-BRIDGE-MIB', 'dot1vProtocolTemplateFrameType'), (0, 'Q-BRIDGE-MIB', 'dot1vProtocolTemplateProtocolValue')) dot1v_protocol_template_frame_type = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 5, 1, 1, 1), integer32().subtype(subtypeSpec=single_value_constraint(1, 2, 3, 4, 5)).clone(namedValues=named_values(('ethernet', 1), ('rfc1042', 2), ('snap8021H', 3), ('snapOther', 4), ('llcOther', 5)))) dot1v_protocol_template_protocol_value = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 5, 1, 1, 2), octet_string().subtype(subtypeSpec=constraints_union(value_size_constraint(2, 2), value_size_constraint(5, 5)))) dot1v_protocol_group_id = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 5, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readcreate') dot1v_protocol_group_row_status = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 5, 1, 1, 4), row_status()).setMaxAccess('readcreate') dot1v_protocol_port_table = mib_table((1, 3, 6, 1, 2, 1, 17, 7, 1, 5, 2)) dot1v_protocol_port_entry = mib_table_row((1, 3, 6, 1, 2, 1, 17, 7, 1, 5, 2, 1)).setIndexNames((0, 'BRIDGE-MIB', 'dot1dBasePort'), (0, 'Q-BRIDGE-MIB', 'dot1vProtocolPortGroupId')) dot1v_protocol_port_group_id = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 5, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))) dot1v_protocol_port_group_vid = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 5, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 4094))).setMaxAccess('readcreate') dot1v_protocol_port_row_status = mib_table_column((1, 3, 6, 1, 2, 1, 17, 7, 1, 5, 2, 1, 3), row_status()).setMaxAccess('readcreate') q_bridge_conformance = mib_identifier((1, 3, 6, 1, 2, 1, 17, 7, 2)) q_bridge_groups = mib_identifier((1, 3, 6, 1, 2, 1, 17, 7, 2, 1)) q_bridge_compliances = mib_identifier((1, 3, 6, 1, 2, 1, 17, 7, 2, 2)) q_bridge_base_group = object_group((1, 3, 6, 1, 2, 1, 17, 7, 2, 1, 1)).setObjects(*(('Q-BRIDGE-MIB', 'dot1qVlanVersionNumber'), ('Q-BRIDGE-MIB', 'dot1qMaxVlanId'), ('Q-BRIDGE-MIB', 'dot1qMaxSupportedVlans'), ('Q-BRIDGE-MIB', 'dot1qNumVlans'), ('Q-BRIDGE-MIB', 'dot1qGvrpStatus'))) q_bridge_fdb_unicast_group = object_group((1, 3, 6, 1, 2, 1, 17, 7, 2, 1, 2)).setObjects(*(('Q-BRIDGE-MIB', 'dot1qFdbDynamicCount'), ('Q-BRIDGE-MIB', 'dot1qTpFdbPort'), ('Q-BRIDGE-MIB', 'dot1qTpFdbStatus'))) q_bridge_fdb_multicast_group = object_group((1, 3, 6, 1, 2, 1, 17, 7, 2, 1, 3)).setObjects(*(('Q-BRIDGE-MIB', 'dot1qTpGroupEgressPorts'), ('Q-BRIDGE-MIB', 'dot1qTpGroupLearnt'))) q_bridge_service_requirements_group = object_group((1, 3, 6, 1, 2, 1, 17, 7, 2, 1, 4)).setObjects(*(('Q-BRIDGE-MIB', 'dot1qForwardAllPorts'), ('Q-BRIDGE-MIB', 'dot1qForwardAllStaticPorts'), ('Q-BRIDGE-MIB', 'dot1qForwardAllForbiddenPorts'), ('Q-BRIDGE-MIB', 'dot1qForwardUnregisteredPorts'), ('Q-BRIDGE-MIB', 'dot1qForwardUnregisteredStaticPorts'), ('Q-BRIDGE-MIB', 'dot1qForwardUnregisteredForbiddenPorts'))) q_bridge_fdb_static_group = object_group((1, 3, 6, 1, 2, 1, 17, 7, 2, 1, 5)).setObjects(*(('Q-BRIDGE-MIB', 'dot1qStaticUnicastAllowedToGoTo'), ('Q-BRIDGE-MIB', 'dot1qStaticUnicastStatus'), ('Q-BRIDGE-MIB', 'dot1qStaticMulticastStaticEgressPorts'), ('Q-BRIDGE-MIB', 'dot1qStaticMulticastForbiddenEgressPorts'), ('Q-BRIDGE-MIB', 'dot1qStaticMulticastStatus'))) q_bridge_vlan_group = object_group((1, 3, 6, 1, 2, 1, 17, 7, 2, 1, 6)).setObjects(*(('Q-BRIDGE-MIB', 'dot1qVlanNumDeletes'), ('Q-BRIDGE-MIB', 'dot1qVlanFdbId'), ('Q-BRIDGE-MIB', 'dot1qVlanCurrentEgressPorts'), ('Q-BRIDGE-MIB', 'dot1qVlanCurrentUntaggedPorts'), ('Q-BRIDGE-MIB', 'dot1qVlanStatus'), ('Q-BRIDGE-MIB', 'dot1qVlanCreationTime'))) q_bridge_vlan_static_group = object_group((1, 3, 6, 1, 2, 1, 17, 7, 2, 1, 7)).setObjects(*(('Q-BRIDGE-MIB', 'dot1qVlanStaticName'), ('Q-BRIDGE-MIB', 'dot1qVlanStaticEgressPorts'), ('Q-BRIDGE-MIB', 'dot1qVlanForbiddenEgressPorts'), ('Q-BRIDGE-MIB', 'dot1qVlanStaticUntaggedPorts'), ('Q-BRIDGE-MIB', 'dot1qVlanStaticRowStatus'), ('Q-BRIDGE-MIB', 'dot1qNextFreeLocalVlanIndex'))) q_bridge_port_group = object_group((1, 3, 6, 1, 2, 1, 17, 7, 2, 1, 8)).setObjects(*(('Q-BRIDGE-MIB', 'dot1qPvid'), ('Q-BRIDGE-MIB', 'dot1qPortAcceptableFrameTypes'), ('Q-BRIDGE-MIB', 'dot1qPortIngressFiltering'), ('Q-BRIDGE-MIB', 'dot1qPortGvrpStatus'), ('Q-BRIDGE-MIB', 'dot1qPortGvrpFailedRegistrations'), ('Q-BRIDGE-MIB', 'dot1qPortGvrpLastPduOrigin'))) q_bridge_vlan_statistics_group = object_group((1, 3, 6, 1, 2, 1, 17, 7, 2, 1, 9)).setObjects(*(('Q-BRIDGE-MIB', 'dot1qTpVlanPortInFrames'), ('Q-BRIDGE-MIB', 'dot1qTpVlanPortOutFrames'), ('Q-BRIDGE-MIB', 'dot1qTpVlanPortInDiscards'))) q_bridge_vlan_statistics_overflow_group = object_group((1, 3, 6, 1, 2, 1, 17, 7, 2, 1, 10)).setObjects(*(('Q-BRIDGE-MIB', 'dot1qTpVlanPortInOverflowFrames'), ('Q-BRIDGE-MIB', 'dot1qTpVlanPortOutOverflowFrames'), ('Q-BRIDGE-MIB', 'dot1qTpVlanPortInOverflowDiscards'))) q_bridge_vlan_hc_statistics_group = object_group((1, 3, 6, 1, 2, 1, 17, 7, 2, 1, 11)).setObjects(*(('Q-BRIDGE-MIB', 'dot1qTpVlanPortHCInFrames'), ('Q-BRIDGE-MIB', 'dot1qTpVlanPortHCOutFrames'), ('Q-BRIDGE-MIB', 'dot1qTpVlanPortHCInDiscards'))) q_bridge_learning_constraints_group = object_group((1, 3, 6, 1, 2, 1, 17, 7, 2, 1, 12)).setObjects(*(('Q-BRIDGE-MIB', 'dot1qConstraintType'), ('Q-BRIDGE-MIB', 'dot1qConstraintStatus'))) q_bridge_learning_constraint_default_group = object_group((1, 3, 6, 1, 2, 1, 17, 7, 2, 1, 13)).setObjects(*(('Q-BRIDGE-MIB', 'dot1qConstraintSetDefault'), ('Q-BRIDGE-MIB', 'dot1qConstraintTypeDefault'))) q_bridge_classification_device_group = object_group((1, 3, 6, 1, 2, 1, 17, 7, 2, 1, 14)).setObjects(*(('Q-BRIDGE-MIB', 'dot1vProtocolGroupId'), ('Q-BRIDGE-MIB', 'dot1vProtocolGroupRowStatus'))) q_bridge_classification_port_group = object_group((1, 3, 6, 1, 2, 1, 17, 7, 2, 1, 15)).setObjects(*(('Q-BRIDGE-MIB', 'dot1vProtocolPortGroupVid'), ('Q-BRIDGE-MIB', 'dot1vProtocolPortRowStatus'))) q_bridge_port_group2 = object_group((1, 3, 6, 1, 2, 1, 17, 7, 2, 1, 16)).setObjects(*(('Q-BRIDGE-MIB', 'dot1qPvid'), ('Q-BRIDGE-MIB', 'dot1qPortAcceptableFrameTypes'), ('Q-BRIDGE-MIB', 'dot1qPortIngressFiltering'), ('Q-BRIDGE-MIB', 'dot1qPortGvrpStatus'), ('Q-BRIDGE-MIB', 'dot1qPortGvrpFailedRegistrations'), ('Q-BRIDGE-MIB', 'dot1qPortGvrpLastPduOrigin'), ('Q-BRIDGE-MIB', 'dot1qPortRestrictedVlanRegistration'))) q_bridge_compliance = module_compliance((1, 3, 6, 1, 2, 1, 17, 7, 2, 2, 1)).setObjects(*(('Q-BRIDGE-MIB', 'qBridgeBaseGroup'), ('Q-BRIDGE-MIB', 'qBridgeVlanGroup'), ('Q-BRIDGE-MIB', 'qBridgeVlanStaticGroup'), ('Q-BRIDGE-MIB', 'qBridgePortGroup'), ('Q-BRIDGE-MIB', 'qBridgeFdbUnicastGroup'), ('Q-BRIDGE-MIB', 'qBridgeFdbMulticastGroup'), ('Q-BRIDGE-MIB', 'qBridgeServiceRequirementsGroup'), ('Q-BRIDGE-MIB', 'qBridgeFdbStaticGroup'), ('Q-BRIDGE-MIB', 'qBridgeVlanStatisticsGroup'), ('Q-BRIDGE-MIB', 'qBridgeVlanStatisticsOverflowGroup'), ('Q-BRIDGE-MIB', 'qBridgeVlanHCStatisticsGroup'), ('Q-BRIDGE-MIB', 'qBridgeLearningConstraintsGroup'), ('Q-BRIDGE-MIB', 'qBridgeLearningConstraintDefaultGroup'))) q_bridge_compliance2 = module_compliance((1, 3, 6, 1, 2, 1, 17, 7, 2, 2, 2)).setObjects(*(('Q-BRIDGE-MIB', 'qBridgeBaseGroup'), ('Q-BRIDGE-MIB', 'qBridgeVlanGroup'), ('Q-BRIDGE-MIB', 'qBridgeVlanStaticGroup'), ('Q-BRIDGE-MIB', 'qBridgePortGroup2'), ('Q-BRIDGE-MIB', 'qBridgeFdbUnicastGroup'), ('Q-BRIDGE-MIB', 'qBridgeFdbMulticastGroup'), ('Q-BRIDGE-MIB', 'qBridgeServiceRequirementsGroup'), ('Q-BRIDGE-MIB', 'qBridgeFdbStaticGroup'), ('Q-BRIDGE-MIB', 'qBridgeVlanStatisticsGroup'), ('Q-BRIDGE-MIB', 'qBridgeVlanStatisticsOverflowGroup'), ('Q-BRIDGE-MIB', 'qBridgeVlanHCStatisticsGroup'), ('Q-BRIDGE-MIB', 'qBridgeLearningConstraintsGroup'), ('Q-BRIDGE-MIB', 'qBridgeLearningConstraintDefaultGroup'), ('Q-BRIDGE-MIB', 'qBridgeClassificationDeviceGroup'), ('Q-BRIDGE-MIB', 'qBridgeClassificationPortGroup'))) mibBuilder.exportSymbols('Q-BRIDGE-MIB', qBridgeVlanStaticGroup=qBridgeVlanStaticGroup, dot1vProtocolGroupId=dot1vProtocolGroupId, dot1vProtocolTemplateFrameType=dot1vProtocolTemplateFrameType, dot1qVlanCurrentTable=dot1qVlanCurrentTable, dot1qTpGroupAddress=dot1qTpGroupAddress, qBridgeConformance=qBridgeConformance, dot1qStaticUnicastTable=dot1qStaticUnicastTable, qBridgePortGroup=qBridgePortGroup, dot1qStaticUnicastAllowedToGoTo=dot1qStaticUnicastAllowedToGoTo, qBridgeFdbMulticastGroup=qBridgeFdbMulticastGroup, dot1vProtocolGroupEntry=dot1vProtocolGroupEntry, dot1vProtocolPortGroupId=dot1vProtocolPortGroupId, dot1qTpVlanPortHCOutFrames=dot1qTpVlanPortHCOutFrames, dot1qBase=dot1qBase, qBridgeServiceRequirementsGroup=qBridgeServiceRequirementsGroup, dot1qVlanStatus=dot1qVlanStatus, qBridgeCompliance=qBridgeCompliance, dot1vProtocolPortRowStatus=dot1vProtocolPortRowStatus, dot1qTpVlanPortHCInFrames=dot1qTpVlanPortHCInFrames, dot1qTpGroupEntry=dot1qTpGroupEntry, dot1qVlanStaticEgressPorts=dot1qVlanStaticEgressPorts, VlanIndex=VlanIndex, dot1qPortVlanHCStatisticsTable=dot1qPortVlanHCStatisticsTable, dot1qTpVlanPortInFrames=dot1qTpVlanPortInFrames, dot1qVlanCurrentUntaggedPorts=dot1qVlanCurrentUntaggedPorts, dot1qForwardUnregisteredPorts=dot1qForwardUnregisteredPorts, dot1qForwardUnregisteredTable=dot1qForwardUnregisteredTable, dot1qStaticUnicastAddress=dot1qStaticUnicastAddress, qBridgeVlanStatisticsOverflowGroup=qBridgeVlanStatisticsOverflowGroup, qBridgeBaseGroup=qBridgeBaseGroup, qBridgeGroups=qBridgeGroups, dot1vProtocol=dot1vProtocol, dot1qMaxVlanId=dot1qMaxVlanId, dot1qTpVlanPortInOverflowFrames=dot1qTpVlanPortInOverflowFrames, dot1qTpVlanPortHCInDiscards=dot1qTpVlanPortHCInDiscards, dot1qTpVlanPortOutFrames=dot1qTpVlanPortOutFrames, qBridgeMIBObjects=qBridgeMIBObjects, dot1qPortIngressFiltering=dot1qPortIngressFiltering, dot1qPortVlanHCStatisticsEntry=dot1qPortVlanHCStatisticsEntry, dot1qForwardAllEntry=dot1qForwardAllEntry, PYSNMP_MODULE_ID=qBridgeMIB, dot1qVlanFdbId=dot1qVlanFdbId, dot1qVlanCurrentEgressPorts=dot1qVlanCurrentEgressPorts, qBridgeVlanHCStatisticsGroup=qBridgeVlanHCStatisticsGroup, dot1qPortAcceptableFrameTypes=dot1qPortAcceptableFrameTypes, dot1qForwardAllStaticPorts=dot1qForwardAllStaticPorts, dot1qPortGvrpStatus=dot1qPortGvrpStatus, dot1qConstraintStatus=dot1qConstraintStatus, dot1qNumVlans=dot1qNumVlans, dot1qForwardAllTable=dot1qForwardAllTable, dot1qVlanForbiddenEgressPorts=dot1qVlanForbiddenEgressPorts, dot1qVlan=dot1qVlan, dot1qGvrpStatus=dot1qGvrpStatus, qBridgeLearningConstraintDefaultGroup=qBridgeLearningConstraintDefaultGroup, VlanIdOrNone=VlanIdOrNone, dot1qPortGvrpFailedRegistrations=dot1qPortGvrpFailedRegistrations, qBridgeFdbStaticGroup=qBridgeFdbStaticGroup, dot1qVlanCreationTime=dot1qVlanCreationTime, dot1qPortVlanStatisticsEntry=dot1qPortVlanStatisticsEntry, dot1qFdbDynamicCount=dot1qFdbDynamicCount, dot1qForwardUnregisteredStaticPorts=dot1qForwardUnregisteredStaticPorts, dot1qFdbEntry=dot1qFdbEntry, dot1vProtocolTemplateProtocolValue=dot1vProtocolTemplateProtocolValue, dot1qStaticMulticastReceivePort=dot1qStaticMulticastReceivePort, PortList=PortList, dot1qTpGroupLearnt=dot1qTpGroupLearnt, dot1qPortRestrictedVlanRegistration=dot1qPortRestrictedVlanRegistration, dot1qConstraintType=dot1qConstraintType, dot1qTpGroupTable=dot1qTpGroupTable, VlanIdOrAnyOrNone=VlanIdOrAnyOrNone, dot1qStaticMulticastStatus=dot1qStaticMulticastStatus, dot1qLearningConstraintsTable=dot1qLearningConstraintsTable, dot1qPortGvrpLastPduOrigin=dot1qPortGvrpLastPduOrigin, dot1qVlanStaticEntry=dot1qVlanStaticEntry, dot1qForwardAllPorts=dot1qForwardAllPorts, qBridgePortGroup2=qBridgePortGroup2, dot1vProtocolGroupTable=dot1vProtocolGroupTable, VlanId=VlanId, dot1qTpFdbTable=dot1qTpFdbTable, dot1qVlanStaticRowStatus=dot1qVlanStaticRowStatus, dot1qStatic=dot1qStatic, dot1qTpGroupEgressPorts=dot1qTpGroupEgressPorts, VlanIdOrAny=VlanIdOrAny, dot1vProtocolPortGroupVid=dot1vProtocolPortGroupVid, dot1qPortVlanEntry=dot1qPortVlanEntry, dot1qPortVlanStatisticsTable=dot1qPortVlanStatisticsTable, dot1qStaticMulticastForbiddenEgressPorts=dot1qStaticMulticastForbiddenEgressPorts, qBridgeLearningConstraintsGroup=qBridgeLearningConstraintsGroup, dot1qNextFreeLocalVlanIndex=dot1qNextFreeLocalVlanIndex, dot1qFdbId=dot1qFdbId, dot1qTpVlanPortInDiscards=dot1qTpVlanPortInDiscards, dot1qVlanCurrentEntry=dot1qVlanCurrentEntry, dot1qVlanNumDeletes=dot1qVlanNumDeletes, dot1qConstraintSet=dot1qConstraintSet, dot1qStaticUnicastReceivePort=dot1qStaticUnicastReceivePort, dot1vProtocolPortTable=dot1vProtocolPortTable, dot1vProtocolGroupRowStatus=dot1vProtocolGroupRowStatus, dot1qTpFdbAddress=dot1qTpFdbAddress, dot1qTpVlanPortOutOverflowFrames=dot1qTpVlanPortOutOverflowFrames, dot1qTp=dot1qTp, dot1qFdbTable=dot1qFdbTable, dot1qPvid=dot1qPvid, dot1qVlanStaticUntaggedPorts=dot1qVlanStaticUntaggedPorts, dot1qVlanTimeMark=dot1qVlanTimeMark, dot1vProtocolPortEntry=dot1vProtocolPortEntry, dot1qStaticMulticastTable=dot1qStaticMulticastTable, dot1qMaxSupportedVlans=dot1qMaxSupportedVlans, qBridgeCompliances=qBridgeCompliances, dot1qTpFdbEntry=dot1qTpFdbEntry, dot1qTpFdbStatus=dot1qTpFdbStatus, qBridgeClassificationPortGroup=qBridgeClassificationPortGroup, dot1qTpVlanPortInOverflowDiscards=dot1qTpVlanPortInOverflowDiscards, dot1qConstraintVlan=dot1qConstraintVlan, qBridgeMIB=qBridgeMIB, dot1qForwardAllForbiddenPorts=dot1qForwardAllForbiddenPorts, dot1qStaticUnicastEntry=dot1qStaticUnicastEntry, dot1qTpFdbPort=dot1qTpFdbPort, qBridgeVlanGroup=qBridgeVlanGroup, qBridgeFdbUnicastGroup=qBridgeFdbUnicastGroup, dot1qConstraintTypeDefault=dot1qConstraintTypeDefault, dot1qVlanVersionNumber=dot1qVlanVersionNumber, dot1qForwardUnregisteredEntry=dot1qForwardUnregisteredEntry, dot1qPortVlanTable=dot1qPortVlanTable, dot1qVlanStaticName=dot1qVlanStaticName, dot1qForwardUnregisteredForbiddenPorts=dot1qForwardUnregisteredForbiddenPorts, dot1qVlanIndex=dot1qVlanIndex, qBridgeVlanStatisticsGroup=qBridgeVlanStatisticsGroup, dot1qStaticMulticastStaticEgressPorts=dot1qStaticMulticastStaticEgressPorts, dot1qLearningConstraintsEntry=dot1qLearningConstraintsEntry, dot1qConstraintSetDefault=dot1qConstraintSetDefault, dot1qStaticUnicastStatus=dot1qStaticUnicastStatus, dot1qVlanStaticTable=dot1qVlanStaticTable, qBridgeClassificationDeviceGroup=qBridgeClassificationDeviceGroup, dot1qStaticMulticastEntry=dot1qStaticMulticastEntry, dot1qStaticMulticastAddress=dot1qStaticMulticastAddress, qBridgeCompliance2=qBridgeCompliance2)
# Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. ######################################################## # NOTE: THIS FILE IS GENERATED. DO NOT EDIT IT! # # Instead, run create_include_gyp.py to regenerate it. # ######################################################## { 'targets': [ { 'target_name': 'app_window_common', 'includes': ['../../../third_party/closure_compiler/include_js.gypi'], }, { 'target_name': 'audio_player_foreground', 'includes': ['../../../third_party/closure_compiler/include_js.gypi'], }, { 'target_name': 'background_window', 'includes': ['../../../third_party/closure_compiler/include_js.gypi'], }, { 'target_name': 'chrome_cast', 'includes': ['../../../third_party/closure_compiler/include_js.gypi'], }, { 'target_name': 'chrome_echo_private', 'includes': ['../../../third_party/closure_compiler/include_js.gypi'], }, { 'target_name': 'chrome_file_browser_handler', 'includes': ['../../../third_party/closure_compiler/include_js.gypi'], }, { 'target_name': 'chrome_test', 'includes': ['../../../third_party/closure_compiler/include_js.gypi'], }, { 'target_name': 'chrome_webstore_widget_private', 'includes': ['../../../third_party/closure_compiler/include_js.gypi'], }, { 'target_name': 'command_handler_deps', 'includes': ['../../../third_party/closure_compiler/include_js.gypi'], }, { 'target_name': 'connection', 'includes': ['../../../third_party/closure_compiler/include_js.gypi'], }, { 'target_name': 'css_rule', 'includes': ['../../../third_party/closure_compiler/include_js.gypi'], }, { 'target_name': 'directory_change_event', 'includes': ['../../../third_party/closure_compiler/include_js.gypi'], }, { 'target_name': 'drag_target', 'includes': ['../../../third_party/closure_compiler/include_js.gypi'], }, { 'target_name': 'entries_changed_event', 'includes': ['../../../third_party/closure_compiler/include_js.gypi'], }, { 'target_name': 'entry_location', 'includes': ['../../../third_party/closure_compiler/include_js.gypi'], }, { 'target_name': 'es6_workaround', 'includes': ['../../../third_party/closure_compiler/include_js.gypi'], }, { 'target_name': 'exif_entry', 'includes': ['../../../third_party/closure_compiler/include_js.gypi'], }, { 'target_name': 'file_operation_progress_event', 'includes': ['../../../third_party/closure_compiler/include_js.gypi'], }, { 'target_name': 'files_elements', 'includes': ['../../../third_party/closure_compiler/include_js.gypi'], }, { 'target_name': 'gallery_background', 'includes': ['../../../third_party/closure_compiler/include_js.gypi'], }, { 'target_name': 'gallery_event', 'includes': ['../../../third_party/closure_compiler/include_js.gypi'], }, { 'target_name': 'gallery_foreground', 'includes': ['../../../third_party/closure_compiler/include_js.gypi'], }, { 'target_name': 'html_menu_item_element', 'includes': ['../../../third_party/closure_compiler/include_js.gypi'], }, { 'target_name': 'launcher_search_provider', 'includes': ['../../../third_party/closure_compiler/include_js.gypi'], }, { 'target_name': 'menu_item_update_event', 'includes': ['../../../third_party/closure_compiler/include_js.gypi'], }, { 'target_name': 'metadata_worker_window', 'includes': ['../../../third_party/closure_compiler/include_js.gypi'], }, { 'target_name': 'paper_elements', 'includes': ['../../../third_party/closure_compiler/include_js.gypi'], }, { 'target_name': 'platform', 'includes': ['../../../third_party/closure_compiler/include_js.gypi'], }, { 'target_name': 'platform_worker', 'includes': ['../../../third_party/closure_compiler/include_js.gypi'], }, { 'target_name': 'search_item', 'includes': ['../../../third_party/closure_compiler/include_js.gypi'], }, { 'target_name': 'volume_info', 'includes': ['../../../third_party/closure_compiler/include_js.gypi'], }, { 'target_name': 'volume_info_list', 'includes': ['../../../third_party/closure_compiler/include_js.gypi'], }, { 'target_name': 'volume_manager', 'includes': ['../../../third_party/closure_compiler/include_js.gypi'], }, { 'target_name': 'webview_tag', 'includes': ['../../../third_party/closure_compiler/include_js.gypi'], }, ], }
{'targets': [{'target_name': 'app_window_common', 'includes': ['../../../third_party/closure_compiler/include_js.gypi']}, {'target_name': 'audio_player_foreground', 'includes': ['../../../third_party/closure_compiler/include_js.gypi']}, {'target_name': 'background_window', 'includes': ['../../../third_party/closure_compiler/include_js.gypi']}, {'target_name': 'chrome_cast', 'includes': ['../../../third_party/closure_compiler/include_js.gypi']}, {'target_name': 'chrome_echo_private', 'includes': ['../../../third_party/closure_compiler/include_js.gypi']}, {'target_name': 'chrome_file_browser_handler', 'includes': ['../../../third_party/closure_compiler/include_js.gypi']}, {'target_name': 'chrome_test', 'includes': ['../../../third_party/closure_compiler/include_js.gypi']}, {'target_name': 'chrome_webstore_widget_private', 'includes': ['../../../third_party/closure_compiler/include_js.gypi']}, {'target_name': 'command_handler_deps', 'includes': ['../../../third_party/closure_compiler/include_js.gypi']}, {'target_name': 'connection', 'includes': ['../../../third_party/closure_compiler/include_js.gypi']}, {'target_name': 'css_rule', 'includes': ['../../../third_party/closure_compiler/include_js.gypi']}, {'target_name': 'directory_change_event', 'includes': ['../../../third_party/closure_compiler/include_js.gypi']}, {'target_name': 'drag_target', 'includes': ['../../../third_party/closure_compiler/include_js.gypi']}, {'target_name': 'entries_changed_event', 'includes': ['../../../third_party/closure_compiler/include_js.gypi']}, {'target_name': 'entry_location', 'includes': ['../../../third_party/closure_compiler/include_js.gypi']}, {'target_name': 'es6_workaround', 'includes': ['../../../third_party/closure_compiler/include_js.gypi']}, {'target_name': 'exif_entry', 'includes': ['../../../third_party/closure_compiler/include_js.gypi']}, {'target_name': 'file_operation_progress_event', 'includes': ['../../../third_party/closure_compiler/include_js.gypi']}, {'target_name': 'files_elements', 'includes': ['../../../third_party/closure_compiler/include_js.gypi']}, {'target_name': 'gallery_background', 'includes': ['../../../third_party/closure_compiler/include_js.gypi']}, {'target_name': 'gallery_event', 'includes': ['../../../third_party/closure_compiler/include_js.gypi']}, {'target_name': 'gallery_foreground', 'includes': ['../../../third_party/closure_compiler/include_js.gypi']}, {'target_name': 'html_menu_item_element', 'includes': ['../../../third_party/closure_compiler/include_js.gypi']}, {'target_name': 'launcher_search_provider', 'includes': ['../../../third_party/closure_compiler/include_js.gypi']}, {'target_name': 'menu_item_update_event', 'includes': ['../../../third_party/closure_compiler/include_js.gypi']}, {'target_name': 'metadata_worker_window', 'includes': ['../../../third_party/closure_compiler/include_js.gypi']}, {'target_name': 'paper_elements', 'includes': ['../../../third_party/closure_compiler/include_js.gypi']}, {'target_name': 'platform', 'includes': ['../../../third_party/closure_compiler/include_js.gypi']}, {'target_name': 'platform_worker', 'includes': ['../../../third_party/closure_compiler/include_js.gypi']}, {'target_name': 'search_item', 'includes': ['../../../third_party/closure_compiler/include_js.gypi']}, {'target_name': 'volume_info', 'includes': ['../../../third_party/closure_compiler/include_js.gypi']}, {'target_name': 'volume_info_list', 'includes': ['../../../third_party/closure_compiler/include_js.gypi']}, {'target_name': 'volume_manager', 'includes': ['../../../third_party/closure_compiler/include_js.gypi']}, {'target_name': 'webview_tag', 'includes': ['../../../third_party/closure_compiler/include_js.gypi']}]}
# Python Program To Apply Two Decorator To The Same Function Using @ Symbol ''' Function Name : Apply 2 Decorator To Same Function Using @. Function Date : 9 Sep 2020 Function Author : Prasad Dangare Input : Integer Output : Integer ''' def decor(fun): def inner(): value = fun() return value+2 return inner # A Decorator That Double The Value Of A Function def decor1(fun): def inner(): value = fun() return value * 2 return inner # Take A Function To Which Decorator Should Be Applied @ decor @ decor1 def num(): return 10 # Call num() Function And Apply Decor1 And Then Decor print(num())
""" Function Name : Apply 2 Decorator To Same Function Using @. Function Date : 9 Sep 2020 Function Author : Prasad Dangare Input : Integer Output : Integer """ def decor(fun): def inner(): value = fun() return value + 2 return inner def decor1(fun): def inner(): value = fun() return value * 2 return inner @decor @decor1 def num(): return 10 print(num())
#! /usr/bin/python3 # LCS using dynamic programming recursive method def lcsRecursion(seq1,seq2,m,n): if m == 0 or n == 0: return 0 else: if seq1[m-1] == seq2[n-1]: return 1 + lcsRecursion(seq1,seq2,m-1,n-1) else: return (max(lcsRecursion(seq1,seq2,m-1,n),lcsRecursion(seq1,seq2,m,n-1))) seq1 = ['a','c','t','g','g','a','c','t','a'] seq2 = ['g','c','t','g','g','a','c','t','a'] print(lcsRecursion(seq1,seq2,len(seq1),len(seq2))) def LCSIter(strA,strB): memoArr = [[None for j in range(len(strB)+1)] for i in range(len(strA)+1)] for i in range(len(strA)+1): memoArr[i][0] = 0 for j in range(len(strB)+1): memoArr[0][j] = 0 for i in range(1,len(strA)+1): for j in range(1,len(strB)+1): if strA[i-1] == strB[j-1]: memoArr[i][j] = 1+ memoArr[i-1][j-1] else: memoArr[i][j] = max(memoArr[i-1][j],memoArr[i][j-1]) return memoArr[len(strA)][len(strB)] print(LCSIter(seq1,seq2)) # Longest increasing subsequence, the iterative version. # Logic - base case - what is LIS('a')? # Init a result array initialized to 1, then # for each element i, start from all indexes below i and check if they are lower than arr[i] # Now check adding that element(j) in the sequence does any good? i.e. res[j] + 1 > res[i] def LISIter(arr): n = len(arr) result = [1] * n for i in range(1,n): for j in range(0,i): if arr[i] > arr[j] and result[j] + 1 > result[i]: result[i] = result[j] + 1 return max(result) print(LISIter([10, 22, 9, 33, 21, 50, 41, 60])) def MaxSumIncrIter(arr): n = len(arr) result = [1] * n for i in range(1,n): for j in range(0,i): if arr[i] > arr[j] and result[j] + arr[i] > result[i]: result[i] = result[j] + arr[i] return max(result) print(MaxSumIncrIter([1, 101, 2, 3, 100, 4, 5])) # rows are your coins and columns is 0..V def coinChngAllWaysIter(V,C): memo = [[0 for j in range(V+1)] for i in range(len(C)+1)] for i in range(len(C)+1): memo[i][0] = 1 for j in range(1,V+1): memo[0][i] = 0 # if value of coin is greater than the current value at hand, then simply copy from the top # otherwise, number of ways = ways having coin i (value = j - C[i]) + ways without coin i (value = j) for i in range(1,len(C)+1): for j in range(1,V+1): if C[i-1] <= j: memo[i][j] = memo[i][j-C[i-1]] + memo[i-1][j] ''' The logic is Num. ways making change for $j using i coins = Num. ways making change for j - c[i] (since you use 1 c[i] coin only j - c[i] remains) using i coins + Num. ways making change for $j using only i-1 coins ''' else: memo[i][j] = memo[i-1][j] return memo[len(C)][V] print(coinChngAllWaysIter(4,[1,2,3])) def minWaysCoinChng(V,C): memoTab = [None] * (V+1) if V == 0: return 0 else: memoTab[0] = 0 for i in range(1,V+1): memoTab[i] = float("inf") for i in range(1,V+1): for j in range(len(C)): if i >= C[j]: ''' The logic is: min. num. of ways = num. of ways currently existing or 1 + num_ways if you add jth coin. ''' memoTab[i] = min(memoTab[i],memoTab[i-C[j]] + 1) return memoTab[V] print(minWaysCoinChng(11,[9,6,5,1])) def largSumContSubArr(arr): n = len(arr) sumSoFar,sumTillHere = arr[0],arr[1] for i in range(1,n): sumTillHere += arr[i] if sumTillHere < 0: sumTillHere = 0 if sumSoFar < sumTillHere: sumSoFar = sumTillHere return sumSoFar print(largSumContSubArr([-2, -3, 4, -1, -2, 1, 5, -3])) # Python program to find maximum contiguous subarray # this code is from geeksforgeeks.org and handles when all elements are negative def maxSubArraySum(a,size): max_so_far =a[0] curr_max = a[0] for i in range(1,size): curr_max = max(a[i], curr_max + a[i]) max_so_far = max(max_so_far,curr_max) return max_so_far def longest_palindromic_subseq(strng, start, end): if start == end: return 1 ''' How is this one of the base cases: When the string length is 2 and say it is a palindrome, then there are chances that start and end are going to cross each other ''' if strng[start] == strng[end] and start + 1 == end: return 2 # If the start and end are going to be same then the seq length can be increased by 2 if strng[start] == strng[end]: return longest_palindromic_subseq(strng, start+1, end-1) + 2 # This is in case of a mismatch return max(longest_palindromic_subseq(strng, start, end-1), longest_palindromic_subseq(strng, start+1, end)) def longest_palindromic_subseq_dp(strng): rev_strng = strng[::-1] return LCSIter(strng, rev_strng) def jumping_kid_memo(n): arr = [0] * (n+1) arr[1] = 1 arr[2] = 2 arr[3] = 4 if n < 0: return 0 if n <= 3: return arr[n] for i in range(4,n+1): arr[i] = arr[i-1] + arr[i-2] + arr[i-3] return arr[n] def magic_index(arr): return _magic_index(arr, 0, len(arr)-1) def _magic_index(arr, start, end): if start > end: return -1 # no magic index exists mid = (start + end)//2 if mid < arr[mid]: end = mid -1 elif mid > arr[mid]: start = mid+1 else: return mid return _magic_index(arr, start, end) s = "GEEKSFORGEEKS" print(s) print(longest_palindromic_subseq(s,0,len(s)-1)) print(longest_palindromic_subseq_dp(s))
def lcs_recursion(seq1, seq2, m, n): if m == 0 or n == 0: return 0 elif seq1[m - 1] == seq2[n - 1]: return 1 + lcs_recursion(seq1, seq2, m - 1, n - 1) else: return max(lcs_recursion(seq1, seq2, m - 1, n), lcs_recursion(seq1, seq2, m, n - 1)) seq1 = ['a', 'c', 't', 'g', 'g', 'a', 'c', 't', 'a'] seq2 = ['g', 'c', 't', 'g', 'g', 'a', 'c', 't', 'a'] print(lcs_recursion(seq1, seq2, len(seq1), len(seq2))) def lcs_iter(strA, strB): memo_arr = [[None for j in range(len(strB) + 1)] for i in range(len(strA) + 1)] for i in range(len(strA) + 1): memoArr[i][0] = 0 for j in range(len(strB) + 1): memoArr[0][j] = 0 for i in range(1, len(strA) + 1): for j in range(1, len(strB) + 1): if strA[i - 1] == strB[j - 1]: memoArr[i][j] = 1 + memoArr[i - 1][j - 1] else: memoArr[i][j] = max(memoArr[i - 1][j], memoArr[i][j - 1]) return memoArr[len(strA)][len(strB)] print(lcs_iter(seq1, seq2)) def lis_iter(arr): n = len(arr) result = [1] * n for i in range(1, n): for j in range(0, i): if arr[i] > arr[j] and result[j] + 1 > result[i]: result[i] = result[j] + 1 return max(result) print(lis_iter([10, 22, 9, 33, 21, 50, 41, 60])) def max_sum_incr_iter(arr): n = len(arr) result = [1] * n for i in range(1, n): for j in range(0, i): if arr[i] > arr[j] and result[j] + arr[i] > result[i]: result[i] = result[j] + arr[i] return max(result) print(max_sum_incr_iter([1, 101, 2, 3, 100, 4, 5])) def coin_chng_all_ways_iter(V, C): memo = [[0 for j in range(V + 1)] for i in range(len(C) + 1)] for i in range(len(C) + 1): memo[i][0] = 1 for j in range(1, V + 1): memo[0][i] = 0 for i in range(1, len(C) + 1): for j in range(1, V + 1): if C[i - 1] <= j: memo[i][j] = memo[i][j - C[i - 1]] + memo[i - 1][j] '\n\t\t\t\tThe logic is \n\t\t\t\tNum. ways making change for $j using i coins = Num. ways making change for j - c[i] (since you use 1 c[i] coin only j - c[i] remains) using i coins \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ Num. ways making change for $j using only i-1 coins\n\t\t\t\t' else: memo[i][j] = memo[i - 1][j] return memo[len(C)][V] print(coin_chng_all_ways_iter(4, [1, 2, 3])) def min_ways_coin_chng(V, C): memo_tab = [None] * (V + 1) if V == 0: return 0 else: memoTab[0] = 0 for i in range(1, V + 1): memoTab[i] = float('inf') for i in range(1, V + 1): for j in range(len(C)): if i >= C[j]: '\n\t\t\t\t\tThe logic is:\n\t\t\t\t\tmin. num. of ways = num. of ways currently existing or 1 + num_ways if you add jth coin. \n\t\t\t\t\t' memoTab[i] = min(memoTab[i], memoTab[i - C[j]] + 1) return memoTab[V] print(min_ways_coin_chng(11, [9, 6, 5, 1])) def larg_sum_cont_sub_arr(arr): n = len(arr) (sum_so_far, sum_till_here) = (arr[0], arr[1]) for i in range(1, n): sum_till_here += arr[i] if sumTillHere < 0: sum_till_here = 0 if sumSoFar < sumTillHere: sum_so_far = sumTillHere return sumSoFar print(larg_sum_cont_sub_arr([-2, -3, 4, -1, -2, 1, 5, -3])) def max_sub_array_sum(a, size): max_so_far = a[0] curr_max = a[0] for i in range(1, size): curr_max = max(a[i], curr_max + a[i]) max_so_far = max(max_so_far, curr_max) return max_so_far def longest_palindromic_subseq(strng, start, end): if start == end: return 1 '\n\t\tHow is this one of the base cases: When the string length is 2 and say it is a palindrome, \n\t \tthen there are chances that start and end are going to cross each other \n\t ' if strng[start] == strng[end] and start + 1 == end: return 2 if strng[start] == strng[end]: return longest_palindromic_subseq(strng, start + 1, end - 1) + 2 return max(longest_palindromic_subseq(strng, start, end - 1), longest_palindromic_subseq(strng, start + 1, end)) def longest_palindromic_subseq_dp(strng): rev_strng = strng[::-1] return lcs_iter(strng, rev_strng) def jumping_kid_memo(n): arr = [0] * (n + 1) arr[1] = 1 arr[2] = 2 arr[3] = 4 if n < 0: return 0 if n <= 3: return arr[n] for i in range(4, n + 1): arr[i] = arr[i - 1] + arr[i - 2] + arr[i - 3] return arr[n] def magic_index(arr): return _magic_index(arr, 0, len(arr) - 1) def _magic_index(arr, start, end): if start > end: return -1 mid = (start + end) // 2 if mid < arr[mid]: end = mid - 1 elif mid > arr[mid]: start = mid + 1 else: return mid return _magic_index(arr, start, end) s = 'GEEKSFORGEEKS' print(s) print(longest_palindromic_subseq(s, 0, len(s) - 1)) print(longest_palindromic_subseq_dp(s))
# def conv(x): # if x == 'R': # return [0,1] # elif x == 'L': # return [0,-1] # elif x == 'U': # return [-1, 0] # elif x == 'D': # return [1,0] # h, w, n = map(int, input().split()) # sr, sc = map(int, input().split()) # s = list(map(lambda x: conv(x), list(input()))) # t = list(map(lambda x: conv(x), list(input()))) # print(s) # print(t) # def takahashi(current_pos, index) # try_u = try_d = try_l = try_r = False # u = pos[0] < 0 for pos in s[index:] # if sum(u) + current_pos[0] > h: # try_u = True # d = pos[0] > 0 for pos in s[index:] # if sum(d) + current_pos[0] < 0: # try_d = True # l = pos[1] > 0 for pos in s[index:] # if sum(l) + current_pos[1] > w: # try_l = True # r = pos[1] < 0 for pos in s[index:] # if sum(u) + current_pos[1] < 0: # try_r = True # for i, pos in enumerate(s): # if try_u: # current_pos[i] # return offset h, w, n = map(int, input().split()) sr, sc = map(int, input().split()) s = input() t = input() wr = sc wl = sc hu = sr hd = sr def taka(k, wr, wl, hu, hd): if k == 'U': hu -= 1 if k == 'D': hd += 1 if k == 'R': wr += 1 if k == 'L': wl -= 1 return wr, wl, hu, hd def ao(k, wr, wl, hu, hd): if k == 'U': hd = max(1, hd-1) if k == 'D': hu = min(h, hu+1) if k == 'R': wl = min(w, wl+1) if k == 'L': wr = max(1, wr-1) return wr, wl, hu, hd for i in range(n): wr, wl, hu, hd = taka(s[i], wr, wl, hu, hd) if wl == 0 or hu == 0 or hd == h+1 or wr == w+1: print('NO') exit() wr, wl, hu, hd = ao(t[i], wr, wl, hu, hd) print('YES')
(h, w, n) = map(int, input().split()) (sr, sc) = map(int, input().split()) s = input() t = input() wr = sc wl = sc hu = sr hd = sr def taka(k, wr, wl, hu, hd): if k == 'U': hu -= 1 if k == 'D': hd += 1 if k == 'R': wr += 1 if k == 'L': wl -= 1 return (wr, wl, hu, hd) def ao(k, wr, wl, hu, hd): if k == 'U': hd = max(1, hd - 1) if k == 'D': hu = min(h, hu + 1) if k == 'R': wl = min(w, wl + 1) if k == 'L': wr = max(1, wr - 1) return (wr, wl, hu, hd) for i in range(n): (wr, wl, hu, hd) = taka(s[i], wr, wl, hu, hd) if wl == 0 or hu == 0 or hd == h + 1 or (wr == w + 1): print('NO') exit() (wr, wl, hu, hd) = ao(t[i], wr, wl, hu, hd) print('YES')
class Graph: def __init__(self): self.edges = {} def neighbors(self, node_id): return self.edges[node_id]
class Graph: def __init__(self): self.edges = {} def neighbors(self, node_id): return self.edges[node_id]
numdays = int(input('Number of worked days in a month: ')) # 8 is the number of hours worked by day and 25 is the gain per hour gainperday = 25*8 salary = numdays*gainperday print('The employee has worked {} days in the last month.' .format(numdays)) print('The value that he will receive is R${:.2f}.'.format((salary)))
numdays = int(input('Number of worked days in a month: ')) gainperday = 25 * 8 salary = numdays * gainperday print('The employee has worked {} days in the last month.'.format(numdays)) print('The value that he will receive is R${:.2f}.'.format(salary))
class Orange: priceOfOranges = 5 stock = 30 def __init__(self, quantityToBuy): self.quantityToBuy = quantityToBuy def OrangeSelling(self): if int(self.quantityToBuy) > Orange.stock: print("We do not have enough oranges, Please select a lesser quantity.") else: Receipt = int(self.quantityToBuy) * Orange.priceOfOranges Orange.stock = Orange.stock - int(self.quantityToBuy) print (f"Your amount to pay is {int(self.quantityToBuy) * Orange.priceOfOranges} and we have {Orange.stock} oranges left.") Buyer1 = Orange(input("Please input quantity to buy:")) Buyer1.OrangeSelling()
class Orange: price_of_oranges = 5 stock = 30 def __init__(self, quantityToBuy): self.quantityToBuy = quantityToBuy def orange_selling(self): if int(self.quantityToBuy) > Orange.stock: print('We do not have enough oranges, Please select a lesser quantity.') else: receipt = int(self.quantityToBuy) * Orange.priceOfOranges Orange.stock = Orange.stock - int(self.quantityToBuy) print(f'Your amount to pay is {int(self.quantityToBuy) * Orange.priceOfOranges} and we have {Orange.stock} oranges left.') buyer1 = orange(input('Please input quantity to buy:')) Buyer1.OrangeSelling()
species_ids =set([str(i) for i in [882,1148,3055,3702,4081,4577,4896,4932,5061,5691,5833,6239,7165,7227,7460,7955,8364,9031,9598,9606,9615,9796,9823,9913,10090,10116,39947,44689,64091,83332,85962,99287,122586,158878,160490,169963,192222,198214,208964,211586,214092,214684,224308,226186,243159,260799,267671,272623,272624,283166,353153,449447,511145,546414,593117,722438]]) with open('string_uniprot_linkins_ids.tsv','r') as inp: with open('paxdb_uniprot_linkins_ids.tsv','w') as out: current = 'None' for line in inp: if not line.startswith(current): current = line.split('.')[0] if current in species_ids: out.write(line)
species_ids = set([str(i) for i in [882, 1148, 3055, 3702, 4081, 4577, 4896, 4932, 5061, 5691, 5833, 6239, 7165, 7227, 7460, 7955, 8364, 9031, 9598, 9606, 9615, 9796, 9823, 9913, 10090, 10116, 39947, 44689, 64091, 83332, 85962, 99287, 122586, 158878, 160490, 169963, 192222, 198214, 208964, 211586, 214092, 214684, 224308, 226186, 243159, 260799, 267671, 272623, 272624, 283166, 353153, 449447, 511145, 546414, 593117, 722438]]) with open('string_uniprot_linkins_ids.tsv', 'r') as inp: with open('paxdb_uniprot_linkins_ids.tsv', 'w') as out: current = 'None' for line in inp: if not line.startswith(current): current = line.split('.')[0] if current in species_ids: out.write(line)
# 8. Write a Python function that takes a list and returns a new list with unique elements of the first list. def unique(s): a = [] for i in s: if i not in a: a.append(i) else: pass return a print (unique([1,2,3,3,3,3,4,5]))
def unique(s): a = [] for i in s: if i not in a: a.append(i) else: pass return a print(unique([1, 2, 3, 3, 3, 3, 4, 5]))
''' This one works (Remember, a negative number multiplied by another negative number returns a positive number) ''' def solution(A): #sort the contents of A #find maxy1 by multiplying last three elements of sortedA #find maxy2 by multiplying first two elements of sortedA with the last element of sortedA #return larger one between maxy1 and maxy2 sorty = sorted(A) leny = len(sorty) maxy1 = sorty[leny - 1] * sorty[leny - 2] * sorty[leny - 3] maxy2 = sorty[0] * sorty[1] * sorty[leny - 1] maxy = max(maxy1, maxy2) return maxy
""" This one works (Remember, a negative number multiplied by another negative number returns a positive number) """ def solution(A): sorty = sorted(A) leny = len(sorty) maxy1 = sorty[leny - 1] * sorty[leny - 2] * sorty[leny - 3] maxy2 = sorty[0] * sorty[1] * sorty[leny - 1] maxy = max(maxy1, maxy2) return maxy
string = 'this is a string with spaces' splits = [] pos = -1 last_pos = -1 while ' ' in string[pos + 1:]: pos = string.index(' ', pos + 1) splits.append(string[last_pos + 1:pos]) last_pos = pos splits.append(string[last_pos + 1:]) print(splits)
string = 'this is a string with spaces' splits = [] pos = -1 last_pos = -1 while ' ' in string[pos + 1:]: pos = string.index(' ', pos + 1) splits.append(string[last_pos + 1:pos]) last_pos = pos splits.append(string[last_pos + 1:]) print(splits)
countObjects, countVarinCallers = map(int, input().split()) if countVarinCallers <= 2: ans = 2 + countObjects + countObjects * countVarinCallers else: ans = 2 + countObjects + countObjects * countVarinCallers + countObjects * countVarinCallers* (countVarinCallers-1) // 2 print(ans)
(count_objects, count_varin_callers) = map(int, input().split()) if countVarinCallers <= 2: ans = 2 + countObjects + countObjects * countVarinCallers else: ans = 2 + countObjects + countObjects * countVarinCallers + countObjects * countVarinCallers * (countVarinCallers - 1) // 2 print(ans)
class MyClass: __var2 = 'var2' var3 = 'var3' def __init__(self): self.__var1 = 'var1' def normal_method(self): print(self.__var1) @classmethod def class_method(cls): print(cls.__var2) def my_method(self): print(self.__var1) print(self.__var2) print(self.__class__.__var2) if __name__ == '__main__': print(MyClass.__dict__['var3']) clzz = MyClass() clzz.my_method()
class Myclass: __var2 = 'var2' var3 = 'var3' def __init__(self): self.__var1 = 'var1' def normal_method(self): print(self.__var1) @classmethod def class_method(cls): print(cls.__var2) def my_method(self): print(self.__var1) print(self.__var2) print(self.__class__.__var2) if __name__ == '__main__': print(MyClass.__dict__['var3']) clzz = my_class() clzz.my_method()
print('Welcome to the first interview!') print('Please enter your typing speed!') #get user typing speed typing_speed=int(input()) if typing_speed>60: print('Congratulation') print('You passed the first interview') print('The company will contact you') print('Later regarding the second interview') else: print('Sorry') print('We looking for candidates') print('With typing speed') print('Above 60') print('Thank you') print('For applying to this job')
print('Welcome to the first interview!') print('Please enter your typing speed!') typing_speed = int(input()) if typing_speed > 60: print('Congratulation') print('You passed the first interview') print('The company will contact you') print('Later regarding the second interview') else: print('Sorry') print('We looking for candidates') print('With typing speed') print('Above 60') print('Thank you') print('For applying to this job')
class Solution: def insert_list(self, head): stack = [] while(head): stack.append(head.val) head = head.next return stack def isPalindrome(self, head: ListNode) -> bool: if head == None: return True reverse_stack = self.insert_list(head) while(head): if(head.val == reverse_stack.pop()): head = head.next else: return False return True
class Solution: def insert_list(self, head): stack = [] while head: stack.append(head.val) head = head.next return stack def is_palindrome(self, head: ListNode) -> bool: if head == None: return True reverse_stack = self.insert_list(head) while head: if head.val == reverse_stack.pop(): head = head.next else: return False return True
class Solution: def checker(self, s,l,r): while l >= 0 and r < len(s) and s[l] == s[r]: l -= 1 r += 1 return s[l+1:r] def longest_palindromic(self, s: str) -> str: maximum = " " for i in range(len(s)): case_1 = self.checker(s, i, i) if len(case_1) > len(maximum): maximum = case_1 case_2 = self.checker(s, i, i+1) if len(case_2) > len(maximum): maximum = case_2 return maximum p = Solution() print(p.longest_palindromic("cbbd"))
class Solution: def checker(self, s, l, r): while l >= 0 and r < len(s) and (s[l] == s[r]): l -= 1 r += 1 return s[l + 1:r] def longest_palindromic(self, s: str) -> str: maximum = ' ' for i in range(len(s)): case_1 = self.checker(s, i, i) if len(case_1) > len(maximum): maximum = case_1 case_2 = self.checker(s, i, i + 1) if len(case_2) > len(maximum): maximum = case_2 return maximum p = solution() print(p.longest_palindromic('cbbd'))
SKIPPER = 1096000 REITING = 1096001 if sm.sendAskYesNo("Would you like to skip the intro?"): sm.completeQuestNoRewards(2568) if sm.getChr().getLevel() < 10: sm.addLevel(10 - sm.getChr().getLevel()) sm.warp(912060500) sm.dispose() sm.lockInGameUI(True) sm.curNodeEventEnd(True) sm.forcedInput(0) sm.completeQuest(2573) sm.spawnNpc(SKIPPER, 2209, -107) sm.showNpcSpecialActionByTemplateId(SKIPPER, "summon", 0) sm.spawnNpc(REITING, 2046, -62) sm.showNpcSpecialActionByTemplateId(REITING, "summon", 0) sm.forcedInput(2)
skipper = 1096000 reiting = 1096001 if sm.sendAskYesNo('Would you like to skip the intro?'): sm.completeQuestNoRewards(2568) if sm.getChr().getLevel() < 10: sm.addLevel(10 - sm.getChr().getLevel()) sm.warp(912060500) sm.dispose() sm.lockInGameUI(True) sm.curNodeEventEnd(True) sm.forcedInput(0) sm.completeQuest(2573) sm.spawnNpc(SKIPPER, 2209, -107) sm.showNpcSpecialActionByTemplateId(SKIPPER, 'summon', 0) sm.spawnNpc(REITING, 2046, -62) sm.showNpcSpecialActionByTemplateId(REITING, 'summon', 0) sm.forcedInput(2)
apiAttachAvailable = u'API\u53ef\u7528' apiAttachNotAvailable = u'\u7121\u6cd5\u4f7f\u7528' apiAttachPendingAuthorization = u'\u7b49\u5f85\u6388\u6b0a' apiAttachRefused = u'\u88ab\u62d2' apiAttachSuccess = u'\u6210\u529f' apiAttachUnknown = u'\u4e0d\u660e' budDeletedFriend = u'\u5df2\u5f9e\u670b\u53cb\u540d\u55ae\u522a\u9664' budFriend = u'\u670b\u53cb' budNeverBeenFriend = u'\u5f9e\u672a\u5217\u5165\u670b\u53cb\u540d\u55ae' budPendingAuthorization = u'\u7b49\u5f85\u6388\u6b0a' budUnknown = u'\u4e0d\u660e' cfrBlockedByRecipient = u'\u901a\u8a71\u88ab\u63a5\u6536\u65b9\u5c01\u9396' cfrMiscError = u'\u5176\u4ed6\u932f\u8aa4' cfrNoCommonCodec = u'\u6c92\u6709\u901a\u7528 codec' cfrNoProxyFound = u'\u627e\u4e0d\u5230 proxy' cfrNotAuthorizedByRecipient = u'\u76ee\u524d\u4f7f\u7528\u8005\u672a\u7372\u63a5\u53d7\u65b9\u6388\u6b0a' cfrRecipientNotFriend = u'\u63a5\u6536\u65b9\u4e0d\u662f\u670b\u53cb' cfrRemoteDeviceError = u'\u9060\u7aef\u97f3\u6548\u88dd\u7f6e\u554f\u984c' cfrSessionTerminated = u'\u901a\u8a71\u7d50\u675f' cfrSoundIOError = u'\u97f3\u6548\u8f38\u5165/\u8f38\u51fa\u932f\u8aa4' cfrSoundRecordingError = u'\u9304\u97f3\u932f\u8aa4' cfrUnknown = u'\u4e0d\u660e' cfrUserDoesNotExist = u'\u4f7f\u7528\u8005/\u96fb\u8a71\u865f\u78bc\u4e0d\u5b58\u5728' cfrUserIsOffline = u'\u4ed6/\u5979\u4e0d\u5728\u7dda\u4e0a' chsAllCalls = u'\u820a\u7248\u5c0d\u8a71' chsDialog = u'\u5c0d\u8a71' chsIncomingCalls = u'\u9700\u8981\u591a\u65b9\u63a5\u53d7' chsLegacyDialog = u'\u820a\u7248\u5c0d\u8a71' chsMissedCalls = u'\u5c0d\u8a71' chsMultiNeedAccept = u'\u9700\u8981\u591a\u65b9\u63a5\u53d7' chsMultiSubscribed = u'\u591a\u65b9\u8a02\u7528' chsOutgoingCalls = u'\u591a\u65b9\u8a02\u7528' chsUnknown = u'\u4e0d\u660e' chsUnsubscribed = u'\u53d6\u6d88\u8a02\u7528' clsBusy = u'\u5fd9\u7dda' clsCancelled = u'\u5df2\u53d6\u6d88' clsEarlyMedia = u'\u9810\u524d\u5a92\u9ad4 (Early Media) \u64ad\u653e\u4e2d' clsFailed = u'\u5f88\u62b1\u6b49,\u64a5\u865f\u5931\u6557' clsFinished = u'\u5df2\u7d50\u675f' clsInProgress = u'\u901a\u8a71\u4e2d' clsLocalHold = u'\u672c\u6a5f\u901a\u8a71\u4fdd\u7559\u4e2d' clsMissed = u'\u672a\u63a5\u96fb\u8a71' clsOnHold = u'\u7b49\u5f85\u4e2d' clsRefused = u'\u88ab\u62d2' clsRemoteHold = u'\u9060\u7aef\u901a\u8a71\u4fdd\u7559\u4e2d' clsRinging = u'\u6b63\u5728\u64a5\u6253' clsRouting = u'\u9023\u63a5\u4e2d' clsTransferred = u'\u4e0d\u660e' clsTransferring = u'\u4e0d\u660e' clsUnknown = u'\u4e0d\u660e' clsUnplaced = u'\u5f9e\u672a\u64a5\u6253' clsVoicemailBufferingGreeting = u'\u554f\u5019\u8a9e\u7de9\u885d\u8655\u7406\u4e2d' clsVoicemailCancelled = u'\u5df2\u53d6\u6d88\u8a9e\u97f3\u90f5\u4ef6' clsVoicemailFailed = u'\u7559\u8a00\u4e0a\u50b3\u5931\u6557' clsVoicemailPlayingGreeting = u'\u554f\u5019\u8a9e\u64ad\u653e\u4e2d' clsVoicemailRecording = u'\u9304\u88fd\u7559\u8a00' clsVoicemailSent = u'\u5df2\u50b3\u9001\u8a9e\u97f3\u90f5\u4ef6' clsVoicemailUploading = u'\u6b63\u5728\u4e0a\u8f09\u8a9e\u97f3\u90f5\u4ef6' cltIncomingP2P = u'\u64a5\u5165\u540c\u5115 (P2P) \u96fb\u8a71' cltIncomingPSTN = u'\u64a5\u5165\u96fb\u8a71' cltOutgoingP2P = u'\u64a5\u51fa\u540c\u5115 (P2P) \u96fb\u8a71' cltOutgoingPSTN = u'\u64a5\u51fa\u96fb\u8a71' cltUnknown = u'\u4e0d\u660e' cmeAddedMembers = u'\u589e\u52a0\u6210\u54e1' cmeCreatedChatWith = u'\u5df2\u50b3\u9001\u5373\u6642\u8a0a\u606f' cmeEmoted = u'\u4e0d\u660e' cmeLeft = u'\u5df2\u96e2\u958b' cmeSaid = u'\u5df2\u8aaa\u904e' cmeSawMembers = u'\u770b\u5230\u6210\u54e1' cmeSetTopic = u'\u8a2d\u7acb\u8a71\u984c' cmeUnknown = u'\u4e0d\u660e' cmsRead = u'\u5df2\u95b1\u8b80' cmsReceived = u'\u5df2\u63a5\u6536' cmsSending = u'\u50b3\u9001\u4e2d...' cmsSent = u'\u5df2\u50b3\u9001' cmsUnknown = u'\u4e0d\u660e' conConnecting = u'\u9023\u7dda\u4e2d' conOffline = u'\u96e2\u7dda' conOnline = u'\u4e0a\u7dda\u4e2d' conPausing = u'\u6b63\u5728\u66ab\u505c' conUnknown = u'\u4e0d\u660e' cusAway = u'\u66ab\u6642\u96e2\u958b' cusDoNotDisturb = u'\u8acb\u52ff\u6253\u64fe' cusInvisible = u'\u96b1\u85cf' cusLoggedOut = u'\u96e2\u7dda' cusNotAvailable = u'\u7121\u6cd5\u4f7f\u7528' cusOffline = u'\u96e2\u7dda' cusOnline = u'\u4e0a\u7dda\u4e2d' cusSkypeMe = u'\u958b\u653e\u804a\u5929' cusUnknown = u'\u4e0d\u660e' cvsBothEnabled = u'\u8996\u8a0a\u50b3\u9001\u8207\u63a5\u6536' cvsNone = u'\u7121\u8996\u8a0a' cvsReceiveEnabled = u'\u8996\u8a0a\u63a5\u6536' cvsSendEnabled = u'\u8996\u8a0a\u50b3\u9001' cvsUnknown = u'' grpAllFriends = u'\u6240\u6709\u670b\u53cb' grpAllUsers = u'\u6240\u6709\u4f7f\u7528\u8005' grpCustomGroup = u'\u81ea\u8a02' grpOnlineFriends = u'\u7dda\u4e0a\u670b\u53cb' grpPendingAuthorizationFriends = u'\u7b49\u5f85\u6388\u6b0a' grpProposedSharedGroup = u'Proposed Shared Group' grpRecentlyContactedUsers = u'\u6700\u8fd1\u806f\u7d61\u904e\u7684\u4f7f\u7528\u8005' grpSharedGroup = u'Shared Group' grpSkypeFriends = u'Skype \u670b\u53cb' grpSkypeOutFriends = u'SkypeOut \u670b\u53cb' grpUngroupedFriends = u'\u672a\u5206\u7d44\u7684\u670b\u53cb' grpUnknown = u'\u4e0d\u660e' grpUsersAuthorizedByMe = u'\u7d93\u6211\u6388\u6b0a' grpUsersBlockedByMe = u'\u7d93\u6211\u5c01\u9396' grpUsersWaitingMyAuthorization = u'\u7b49\u5f85\u6211\u7684\u6388\u6b0a' leaAddDeclined = u'\u52a0\u5165\u906d\u62d2' leaAddedNotAuthorized = u'\u88ab\u52a0\u5165\u8005\u5fc5\u9808\u7372\u5f97\u6388\u6b0a' leaAdderNotFriend = u'\u52a0\u5165\u8005\u5fc5\u9808\u662f\u670b\u53cb' leaUnknown = u'\u4e0d\u660e' leaUnsubscribe = u'\u53d6\u6d88\u8a02\u7528' leaUserIncapable = u'\u4f7f\u7528\u8005\u7121\u6cd5\u901a\u8a71' leaUserNotFound = u'\u627e\u4e0d\u5230\u4f7f\u7528\u8005' olsAway = u'\u66ab\u6642\u96e2\u958b' olsDoNotDisturb = u'\u8acb\u52ff\u6253\u64fe' olsNotAvailable = u'\u7121\u6cd5\u4f7f\u7528' olsOffline = u'\u96e2\u7dda' olsOnline = u'\u4e0a\u7dda\u4e2d' olsSkypeMe = u'\u958b\u653e\u804a\u5929' olsSkypeOut = u'SkypeOut' olsUnknown = u'\u4e0d\u660e' smsMessageStatusComposing = u'' smsMessageStatusDelivered = u'' smsMessageStatusFailed = u'' smsMessageStatusRead = u'' smsMessageStatusReceived = u'' smsMessageStatusSendingToServer = u'' smsMessageStatusSentToServer = u'' smsMessageStatusSomeTargetsFailed = u'' smsMessageStatusUnknown = u'' smsMessageTypeCCRequest = u'' smsMessageTypeCCSubmit = u'' smsMessageTypeIncoming = u'' smsMessageTypeOutgoing = u'' smsMessageTypeUnknown = u'' smsTargetStatusAcceptable = u'' smsTargetStatusAnalyzing = u'' smsTargetStatusDeliveryFailed = u'' smsTargetStatusDeliveryPending = u'' smsTargetStatusDeliverySuccessful = u'' smsTargetStatusNotRoutable = u'' smsTargetStatusUndefined = u'' smsTargetStatusUnknown = u'' usexFemale = u'\u5973' usexMale = u'\u7537' usexUnknown = u'\u4e0d\u660e' vmrConnectError = u'\u9023\u63a5\u932f\u8aa4' vmrFileReadError = u'\u6a94\u6848\u8b80\u53d6\u932f\u8aa4' vmrFileWriteError = u'\u6a94\u6848\u5beb\u5165\u932f\u8aa4' vmrMiscError = u'\u5176\u4ed6\u932f\u8aa4' vmrNoError = u'\u7121\u932f\u8aa4' vmrNoPrivilege = u'\u7121\u8a9e\u97f3\u90f5\u4ef6\u6b0a\u9650' vmrNoVoicemail = u'\u6c92\u6709\u9019\u7a2e\u8a9e\u97f3\u90f5\u4ef6' vmrPlaybackError = u'\u64ad\u653e\u932f\u8aa4' vmrRecordingError = u'\u9304\u97f3\u932f\u8aa4' vmrUnknown = u'\u4e0d\u660e' vmsBlank = u'\u7a7a\u767d' vmsBuffering = u'\u7de9\u885d\u8655\u7406\u4e2d' vmsDeleting = u'\u6b63\u5728\u522a\u9664' vmsDownloading = u'\u6b63\u5728\u4e0b\u8f09' vmsFailed = u'\u5931\u6557' vmsNotDownloaded = u'\u672a\u4e0b\u8f09' vmsPlayed = u'\u5df2\u64ad\u653e' vmsPlaying = u'\u6b63\u5728\u64ad\u653e' vmsRecorded = u'\u5df2\u9304\u597d' vmsRecording = u'\u9304\u88fd\u7559\u8a00' vmsUnknown = u'\u4e0d\u660e' vmsUnplayed = u'\u672a\u64ad\u653e' vmsUploaded = u'\u5df2\u4e0a\u8f09' vmsUploading = u'\u6b63\u5728\u4e0a\u8f09' vmtCustomGreeting = u'\u81ea\u8a02\u554f\u5019\u8a9e' vmtDefaultGreeting = u'\u9810\u8a2d\u554f\u5019\u8a9e' vmtIncoming = u'\u65b0\u7559\u8a00' vmtOutgoing = u'\u64a5\u51fa' vmtUnknown = u'\u4e0d\u660e' vssAvailable = u'\u53ef\u7528' vssNotAvailable = u'\u7121\u6cd5\u4f7f\u7528' vssPaused = u'\u5df2\u66ab\u505c' vssRejected = u'\u5df2\u88ab\u62d2\u7d55' vssRunning = u'\u6b63\u5728\u9032\u884c' vssStarting = u'\u958b\u59cb' vssStopping = u'\u6b63\u5728\u505c\u6b62' vssUnknown = u'\u4e0d\u660e'
api_attach_available = u'API可用' api_attach_not_available = u'無法使用' api_attach_pending_authorization = u'等待授權' api_attach_refused = u'被拒' api_attach_success = u'成功' api_attach_unknown = u'不明' bud_deleted_friend = u'已從朋友名單刪除' bud_friend = u'朋友' bud_never_been_friend = u'從未列入朋友名單' bud_pending_authorization = u'等待授權' bud_unknown = u'不明' cfr_blocked_by_recipient = u'通話被接收方封鎖' cfr_misc_error = u'其他錯誤' cfr_no_common_codec = u'沒有通用 codec' cfr_no_proxy_found = u'找不到 proxy' cfr_not_authorized_by_recipient = u'目前使用者未獲接受方授權' cfr_recipient_not_friend = u'接收方不是朋友' cfr_remote_device_error = u'遠端音效裝置問題' cfr_session_terminated = u'通話結束' cfr_sound_io_error = u'音效輸入/輸出錯誤' cfr_sound_recording_error = u'錄音錯誤' cfr_unknown = u'不明' cfr_user_does_not_exist = u'使用者/電話號碼不存在' cfr_user_is_offline = u'他/她不在線上' chs_all_calls = u'舊版對話' chs_dialog = u'對話' chs_incoming_calls = u'需要多方接受' chs_legacy_dialog = u'舊版對話' chs_missed_calls = u'對話' chs_multi_need_accept = u'需要多方接受' chs_multi_subscribed = u'多方訂用' chs_outgoing_calls = u'多方訂用' chs_unknown = u'不明' chs_unsubscribed = u'取消訂用' cls_busy = u'忙線' cls_cancelled = u'已取消' cls_early_media = u'預前媒體 (Early Media) 播放中' cls_failed = u'很抱歉,撥號失敗' cls_finished = u'已結束' cls_in_progress = u'通話中' cls_local_hold = u'本機通話保留中' cls_missed = u'未接電話' cls_on_hold = u'等待中' cls_refused = u'被拒' cls_remote_hold = u'遠端通話保留中' cls_ringing = u'正在撥打' cls_routing = u'連接中' cls_transferred = u'不明' cls_transferring = u'不明' cls_unknown = u'不明' cls_unplaced = u'從未撥打' cls_voicemail_buffering_greeting = u'問候語緩衝處理中' cls_voicemail_cancelled = u'已取消語音郵件' cls_voicemail_failed = u'留言上傳失敗' cls_voicemail_playing_greeting = u'問候語播放中' cls_voicemail_recording = u'錄製留言' cls_voicemail_sent = u'已傳送語音郵件' cls_voicemail_uploading = u'正在上載語音郵件' clt_incoming_p2_p = u'撥入同儕 (P2P) 電話' clt_incoming_pstn = u'撥入電話' clt_outgoing_p2_p = u'撥出同儕 (P2P) 電話' clt_outgoing_pstn = u'撥出電話' clt_unknown = u'不明' cme_added_members = u'增加成員' cme_created_chat_with = u'已傳送即時訊息' cme_emoted = u'不明' cme_left = u'已離開' cme_said = u'已說過' cme_saw_members = u'看到成員' cme_set_topic = u'設立話題' cme_unknown = u'不明' cms_read = u'已閱讀' cms_received = u'已接收' cms_sending = u'傳送中...' cms_sent = u'已傳送' cms_unknown = u'不明' con_connecting = u'連線中' con_offline = u'離線' con_online = u'上線中' con_pausing = u'正在暫停' con_unknown = u'不明' cus_away = u'暫時離開' cus_do_not_disturb = u'請勿打擾' cus_invisible = u'隱藏' cus_logged_out = u'離線' cus_not_available = u'無法使用' cus_offline = u'離線' cus_online = u'上線中' cus_skype_me = u'開放聊天' cus_unknown = u'不明' cvs_both_enabled = u'視訊傳送與接收' cvs_none = u'無視訊' cvs_receive_enabled = u'視訊接收' cvs_send_enabled = u'視訊傳送' cvs_unknown = u'' grp_all_friends = u'所有朋友' grp_all_users = u'所有使用者' grp_custom_group = u'自訂' grp_online_friends = u'線上朋友' grp_pending_authorization_friends = u'等待授權' grp_proposed_shared_group = u'Proposed Shared Group' grp_recently_contacted_users = u'最近聯絡過的使用者' grp_shared_group = u'Shared Group' grp_skype_friends = u'Skype 朋友' grp_skype_out_friends = u'SkypeOut 朋友' grp_ungrouped_friends = u'未分組的朋友' grp_unknown = u'不明' grp_users_authorized_by_me = u'經我授權' grp_users_blocked_by_me = u'經我封鎖' grp_users_waiting_my_authorization = u'等待我的授權' lea_add_declined = u'加入遭拒' lea_added_not_authorized = u'被加入者必須獲得授權' lea_adder_not_friend = u'加入者必須是朋友' lea_unknown = u'不明' lea_unsubscribe = u'取消訂用' lea_user_incapable = u'使用者無法通話' lea_user_not_found = u'找不到使用者' ols_away = u'暫時離開' ols_do_not_disturb = u'請勿打擾' ols_not_available = u'無法使用' ols_offline = u'離線' ols_online = u'上線中' ols_skype_me = u'開放聊天' ols_skype_out = u'SkypeOut' ols_unknown = u'不明' sms_message_status_composing = u'' sms_message_status_delivered = u'' sms_message_status_failed = u'' sms_message_status_read = u'' sms_message_status_received = u'' sms_message_status_sending_to_server = u'' sms_message_status_sent_to_server = u'' sms_message_status_some_targets_failed = u'' sms_message_status_unknown = u'' sms_message_type_cc_request = u'' sms_message_type_cc_submit = u'' sms_message_type_incoming = u'' sms_message_type_outgoing = u'' sms_message_type_unknown = u'' sms_target_status_acceptable = u'' sms_target_status_analyzing = u'' sms_target_status_delivery_failed = u'' sms_target_status_delivery_pending = u'' sms_target_status_delivery_successful = u'' sms_target_status_not_routable = u'' sms_target_status_undefined = u'' sms_target_status_unknown = u'' usex_female = u'女' usex_male = u'男' usex_unknown = u'不明' vmr_connect_error = u'連接錯誤' vmr_file_read_error = u'檔案讀取錯誤' vmr_file_write_error = u'檔案寫入錯誤' vmr_misc_error = u'其他錯誤' vmr_no_error = u'無錯誤' vmr_no_privilege = u'無語音郵件權限' vmr_no_voicemail = u'沒有這種語音郵件' vmr_playback_error = u'播放錯誤' vmr_recording_error = u'錄音錯誤' vmr_unknown = u'不明' vms_blank = u'空白' vms_buffering = u'緩衝處理中' vms_deleting = u'正在刪除' vms_downloading = u'正在下載' vms_failed = u'失敗' vms_not_downloaded = u'未下載' vms_played = u'已播放' vms_playing = u'正在播放' vms_recorded = u'已錄好' vms_recording = u'錄製留言' vms_unknown = u'不明' vms_unplayed = u'未播放' vms_uploaded = u'已上載' vms_uploading = u'正在上載' vmt_custom_greeting = u'自訂問候語' vmt_default_greeting = u'預設問候語' vmt_incoming = u'新留言' vmt_outgoing = u'撥出' vmt_unknown = u'不明' vss_available = u'可用' vss_not_available = u'無法使用' vss_paused = u'已暫停' vss_rejected = u'已被拒絕' vss_running = u'正在進行' vss_starting = u'開始' vss_stopping = u'正在停止' vss_unknown = u'不明'
def main(): N = int(input()) ans = 0 for i in range(1, N + 1): if '7' in str(i): continue if '7' in oct(i): continue ans += 1 print(ans) if __name__ == "__main__": main()
def main(): n = int(input()) ans = 0 for i in range(1, N + 1): if '7' in str(i): continue if '7' in oct(i): continue ans += 1 print(ans) if __name__ == '__main__': main()
# Part 1 data = open('data/day2.txt') x = 0 y = 0 for line in data: curr = line.strip().split() if curr[0] == "forward": x += int(curr[1]) elif curr[0] == "up": y -= int(curr[1]) else: y += int(curr[1]) print(x*y) # Part 2 data = open('data/day2.txt') x = 0 y = 0 aim = 0 for line in data: curr = line.strip().split() if curr[0] == "forward": x += int(curr[1]) y += aim * int(curr[1]) elif curr[0] == "up": aim -= int(curr[1]) else: aim += int(curr[1]) print(x*y)
data = open('data/day2.txt') x = 0 y = 0 for line in data: curr = line.strip().split() if curr[0] == 'forward': x += int(curr[1]) elif curr[0] == 'up': y -= int(curr[1]) else: y += int(curr[1]) print(x * y) data = open('data/day2.txt') x = 0 y = 0 aim = 0 for line in data: curr = line.strip().split() if curr[0] == 'forward': x += int(curr[1]) y += aim * int(curr[1]) elif curr[0] == 'up': aim -= int(curr[1]) else: aim += int(curr[1]) print(x * y)
def add_num(num_1, num_2): result = num_1 + num_2 return result print(add_num(2, 3))
def add_num(num_1, num_2): result = num_1 + num_2 return result print(add_num(2, 3))
# # PySNMP MIB module GDC-SC553-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/GDC-SC553-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:05:21 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ValueRangeConstraint, ConstraintsUnion, ConstraintsIntersection, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsUnion", "ConstraintsIntersection", "ValueSizeConstraint") gdc, = mibBuilder.importSymbols("GDCCMN-MIB", "gdc") SCinstance, = mibBuilder.importSymbols("GDCMACRO-MIB", "SCinstance") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") Bits, NotificationType, Integer32, IpAddress, ObjectIdentity, Unsigned32, MibIdentifier, MibScalar, MibTable, MibTableRow, MibTableColumn, Gauge32, iso, Counter32, ModuleIdentity, Counter64, TimeTicks = mibBuilder.importSymbols("SNMPv2-SMI", "Bits", "NotificationType", "Integer32", "IpAddress", "ObjectIdentity", "Unsigned32", "MibIdentifier", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Gauge32", "iso", "Counter32", "ModuleIdentity", "Counter64", "TimeTicks") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") dsx1 = MibIdentifier((1, 3, 6, 1, 4, 1, 498, 6)) sc553 = MibIdentifier((1, 3, 6, 1, 4, 1, 498, 6, 11)) sc553Version = MibIdentifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 1)) sc553Configuration = MibIdentifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 2)) sc553Diagnostics = MibIdentifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 3)) sc553Maintenance = MibIdentifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 4)) sc553Alarms = MibIdentifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5)) sc553Performance = MibIdentifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 6)) sc553MIBversion = MibScalar((1, 3, 6, 1, 4, 1, 498, 6, 11, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(5, 5)).setFixedLength(5)).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553MIBversion.setStatus('mandatory') sc553VersionTable = MibTable((1, 3, 6, 1, 4, 1, 498, 6, 11, 1, 2), ) if mibBuilder.loadTexts: sc553VersionTable.setStatus('mandatory') sc553VersionEntry = MibTableRow((1, 3, 6, 1, 4, 1, 498, 6, 11, 1, 2, 1), ).setIndexNames((0, "GDC-SC553-MIB", "sc553VersionIndex")) if mibBuilder.loadTexts: sc553VersionEntry.setStatus('mandatory') sc553VersionIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 1, 2, 1, 1), SCinstance()).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553VersionIndex.setStatus('mandatory') sc553ActiveFirmwareRev = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 1, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(8, 8)).setFixedLength(8)).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553ActiveFirmwareRev.setStatus('mandatory') sc553StoredFirmwareRev = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 1, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(8, 8)).setFixedLength(8)).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553StoredFirmwareRev.setStatus('mandatory') sc553BootRev = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 1, 2, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553BootRev.setStatus('mandatory') sc553StoredFirmwareStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 1, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("statBlank", 1), ("statDownLoading", 2), ("statOK", 3), ("statCheckSumBad", 4), ("statUnZipping", 5), ("statBadUnZip", 6), ("statDownloadAborted", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553StoredFirmwareStatus.setStatus('mandatory') sc553SwitchActiveFirmware = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 1, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("switchNorm", 1), ("switchActive", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553SwitchActiveFirmware.setStatus('mandatory') sc553DownloadingMode = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 1, 2, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disableAll", 1), ("enableAndWait", 2), ("enableAndSwitch", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553DownloadingMode.setStatus('mandatory') sc553ChannelConfigTable = MibTable((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1), ) if mibBuilder.loadTexts: sc553ChannelConfigTable.setStatus('mandatory') sc553ChannelConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1), ).setIndexNames((0, "GDC-SC553-MIB", "sc553ChannelConfigIndex")) if mibBuilder.loadTexts: sc553ChannelConfigEntry.setStatus('mandatory') sc553ChannelConfigIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 1), SCinstance()).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553ChannelConfigIndex.setStatus('mandatory') sc553ChannelDS0AllocationScheme = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("consecutive", 1), ("alternate", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553ChannelDS0AllocationScheme.setStatus('mandatory') sc553ChannelBaseRate = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("nx56k", 1), ("nx64k", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553ChannelBaseRate.setStatus('mandatory') sc553ChannelStartingDS0 = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 24))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553ChannelStartingDS0.setStatus('mandatory') sc553ChannelNumberOfDS0s = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 24))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553ChannelNumberOfDS0s.setStatus('mandatory') sc553ChannelInbandDccMode = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("embedded", 2), ("dccDs0", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553ChannelInbandDccMode.setStatus('mandatory') sc553ChannelSplitTiming = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553ChannelSplitTiming.setStatus('mandatory') sc553ChannelChannelType = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("v35", 2), ("eia530", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553ChannelChannelType.setStatus('mandatory') sc553ChannelAdminClkInvert = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("none", 1), ("invertRx", 2), ("invertTx", 3), ("both", 4), ("autoTxnormRx", 5), ("autoTxinvertRx", 6)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553ChannelAdminClkInvert.setStatus('mandatory') sc553ChannelOperClkInvert = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("invertRx", 2), ("invertTx", 3), ("both", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553ChannelOperClkInvert.setStatus('mandatory') sc553ChannelDataInvert = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("invertRx", 2), ("invertTx", 3), ("both", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553ChannelDataInvert.setStatus('mandatory') sc553ChannelLocalDCD = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("followsSignal", 1), ("forcedOn", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553ChannelLocalDCD.setStatus('mandatory') sc553ChannelLocalDSR = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("followsSignal", 1), ("forcedOn", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553ChannelLocalDSR.setStatus('mandatory') sc553ChannelRTSCTSControl = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ctrl", 1), ("ctsForcedOn", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553ChannelRTSCTSControl.setStatus('mandatory') sc553ChannelEIAtestLeads = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553ChannelEIAtestLeads.setStatus('mandatory') sc553ChannelInbandLoop = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553ChannelInbandLoop.setStatus('mandatory') sc553ChannelInbandLoopdown = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("inhibit", 1), ("enable10Min", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553ChannelInbandLoopdown.setStatus('mandatory') sc553channelRedundancy = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("on", 1), ("off", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553channelRedundancy.setStatus('mandatory') sc553ChannelActivePort = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("network", 1), ("cascade", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553ChannelActivePort.setStatus('mandatory') sc553ChannelNetworkNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 20), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("networkOne", 1), ("networkTwo", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553ChannelNetworkNumber.setStatus('obsolete') sc553ChannelNetworkPosition = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 21), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("network", 1), ("cascade", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553ChannelNetworkPosition.setStatus('obsolete') sc553WakeUpRemote = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 22), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(16, 16)).setFixedLength(16)).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553WakeUpRemote.setStatus('mandatory') sc553ChannelInService = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 23), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("on", 1), ("off", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553ChannelInService.setStatus('mandatory') sc553NetworkConfigTable = MibTable((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 2), ) if mibBuilder.loadTexts: sc553NetworkConfigTable.setStatus('mandatory') sc553NetworkConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 2, 1), ).setIndexNames((0, "GDC-SC553-MIB", "sc553NetworkConfigIndex")) if mibBuilder.loadTexts: sc553NetworkConfigEntry.setStatus('mandatory') sc553NetworkConfigIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 2, 1, 1), SCinstance()).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553NetworkConfigIndex.setStatus('mandatory') sc553NetworkAdminLineType = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("unframed", 1), ("manEsf", 2), ("manD4", 3), ("auto", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553NetworkAdminLineType.setStatus('mandatory') sc553NetworkOperLineType = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("unframed", 1), ("esf", 2), ("d4", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553NetworkOperLineType.setStatus('mandatory') sc553NetworkInterfaceType = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ds1", 1), ("dsx1", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553NetworkInterfaceType.setStatus('mandatory') sc553NetworkPreequalization = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("preeq130", 1), ("preeq260", 2), ("preeq390", 3), ("preeq530", 4), ("preeq655", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553NetworkPreequalization.setStatus('mandatory') sc553NetworkAdminLineBuildout = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(10, 11, 12, 13, 16))).clone(namedValues=NamedValues(("man00dB", 10), ("man75dB", 11), ("man150dB", 12), ("man225dB", 13), ("auto", 16)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553NetworkAdminLineBuildout.setStatus('mandatory') sc553NetworkOperLineBuildout = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 2, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(2, 3, 4, 5))).clone(namedValues=NamedValues(("tx00dB", 2), ("tx75dB", 3), ("tx150dB", 4), ("tx225dB", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553NetworkOperLineBuildout.setStatus('mandatory') sc553NetworkOnesDensity = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 2, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 4, 5))).clone(namedValues=NamedValues(("inhibit", 1), ("restrict8XNplus1", 4), ("min1in8", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553NetworkOnesDensity.setStatus('mandatory') sc553NetworkTransmitClockSource = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 2, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 4, 5, 6))).clone(namedValues=NamedValues(("receive", 1), ("cascade", 2), ("internal", 4), ("station", 5), ("extChannelClkPPL", 6)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553NetworkTransmitClockSource.setStatus('mandatory') sc553NetworkFallbackClockSource = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 2, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 4))).clone(namedValues=NamedValues(("receive", 1), ("cascade", 2), ("internal", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553NetworkFallbackClockSource.setStatus('mandatory') sc553NetworkFDLdcc = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 2, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553NetworkFDLdcc.setStatus('mandatory') sc553NetworkAISLoopdown = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 2, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(4, 60))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553NetworkAISLoopdown.setStatus('mandatory') sc553NetworkLoopbackConfig = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 2, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("payload", 2), ("lineloop", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553NetworkLoopbackConfig.setStatus('mandatory') sc553NetworkLineCoding = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 2, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("sc553B8ZS", 1), ("sc553AMI", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553NetworkLineCoding.setStatus('mandatory') sc553NetworkFdl = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 2, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("sc553Fdl-none", 1), ("sc553Ansi-T1-403", 2), ("sc553Att-54016", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553NetworkFdl.setStatus('mandatory') sc553CascadeConfigTable = MibTable((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 4), ) if mibBuilder.loadTexts: sc553CascadeConfigTable.setStatus('mandatory') sc553CascadeConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 4, 1), ).setIndexNames((0, "GDC-SC553-MIB", "sc553CascadeConfigIndex")) if mibBuilder.loadTexts: sc553CascadeConfigEntry.setStatus('mandatory') sc553CascadeConfigIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 4, 1, 1), SCinstance()).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553CascadeConfigIndex.setStatus('mandatory') sc553CascadeAdminLineType = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 4, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("unframed", 1), ("manEsf", 2), ("manD4", 3), ("auto", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553CascadeAdminLineType.setStatus('mandatory') sc553CascadeOperLineType = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 4, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("unframed", 1), ("esf", 2), ("d4", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553CascadeOperLineType.setStatus('mandatory') sc553CascadeInterfaceType = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 4, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ds1", 1), ("dsx1", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553CascadeInterfaceType.setStatus('mandatory') sc553CascadePreequalization = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 4, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("preeq130", 1), ("preeq260", 2), ("preeq390", 3), ("preeq530", 4), ("preeq655", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553CascadePreequalization.setStatus('mandatory') sc553CascadeAdminLineBuildout = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 4, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(10, 11, 12, 13, 16))).clone(namedValues=NamedValues(("man00dB", 10), ("man75dB", 11), ("man150dB", 12), ("man225dB", 13), ("auto", 16)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553CascadeAdminLineBuildout.setStatus('mandatory') sc553CascadeOperLineBuildout = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 4, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(2, 3, 4, 5))).clone(namedValues=NamedValues(("tx00dB", 2), ("tx75dB", 3), ("tx150dB", 4), ("tx225dB", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553CascadeOperLineBuildout.setStatus('mandatory') sc553CascadeFDLdcc = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 4, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553CascadeFDLdcc.setStatus('mandatory') sc553CascadeLineCoding = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 4, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("sc553B8ZS", 1), ("sc553AMI", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553CascadeLineCoding.setStatus('mandatory') sc553CascadeFdl = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 4, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("sc553Fdl-none", 1), ("sc553Ansi-T1-403", 2), ("sc553Att-54016", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553CascadeFdl.setStatus('mandatory') sc553CascadeInService = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 4, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("on", 1), ("off", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553CascadeInService.setStatus('mandatory') sc553CascadeAISLoopdown = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 4, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(4, 60))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553CascadeAISLoopdown.setStatus('mandatory') sc553CascadeLoopbackConfig = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 4, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("payload", 2), ("lineloop", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553CascadeLoopbackConfig.setStatus('mandatory') sc553ConfigurationSave = MibScalar((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("norm", 1), ("saveall", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553ConfigurationSave.setStatus('mandatory') sc553DiagTable = MibTable((1, 3, 6, 1, 4, 1, 498, 6, 11, 3, 1), ) if mibBuilder.loadTexts: sc553DiagTable.setStatus('mandatory') sc553DiagEntry = MibTableRow((1, 3, 6, 1, 4, 1, 498, 6, 11, 3, 1, 1), ).setIndexNames((0, "GDC-SC553-MIB", "sc553DiagIndex")) if mibBuilder.loadTexts: sc553DiagEntry.setStatus('mandatory') sc553DiagIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 3, 1, 1, 1), SCinstance()).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553DiagIndex.setStatus('mandatory') sc553DiagTestDuration = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 3, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16))).clone(namedValues=NamedValues(("testTime30Secs", 1), ("testTime1Min", 2), ("testTime2Mins", 3), ("testTime3Mins", 4), ("testTime4Mins", 5), ("testTime5Mins", 6), ("testTime6Mins", 7), ("testTime7Mins", 8), ("testTime8Mins", 9), ("testTime9Mins", 10), ("testTime10Mins", 11), ("testTime15Mins", 12), ("testTime20Mins", 13), ("testTime25Mins", 14), ("testTime30Mins", 15), ("testTimeInfinite", 16)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553DiagTestDuration.setStatus('mandatory') sc553DiagProgPattern = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 3, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553DiagProgPattern.setStatus('mandatory') sc553InsertBitError = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 3, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("insertBitErrorNorm", 1), ("insertOneBitError", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553InsertBitError.setStatus('mandatory') sc553DiagDS0Number = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 3, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 24))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553DiagDS0Number.setStatus('mandatory') sc553DiagT1SelfTestPattern = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 3, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("t1511Pattern", 1), ("t12047Pattern", 2), ("t1QRSPattern", 3), ("t1ProgPattern", 4), ("t13in24", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553DiagT1SelfTestPattern.setStatus('mandatory') sc553DiagT1Test = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 3, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("t1SelfTest", 1), ("t1LocalSelfTest", 2), ("t1RemoteSelfTest", 3), ("t1LocalTest", 4), ("t1RemoteTest", 5), ("t1NetworkInterface", 6), ("t1LineLoopback", 7), ("t1PayLoadLoopback", 8), ("t1NoTest", 9)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553DiagT1Test.setStatus('mandatory') sc553DiagDS0SelfTestPattern = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 3, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ds0511Pattern", 1), ("ds02047Pattern", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553DiagDS0SelfTestPattern.setStatus('mandatory') sc553DiagDS0Test = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 3, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("ds0SelfTest", 1), ("ds0CircuitDelay", 2), ("ds0Loopback", 3), ("ds0NoDS0Test", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553DiagDS0Test.setStatus('mandatory') sc553DiagChannelSelfTestPattern = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 3, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("chan511Pattern", 1), ("chan2047Pattern", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553DiagChannelSelfTestPattern.setStatus('mandatory') sc553DiagChannelTest = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 3, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("chanSelfTest", 1), ("chanLocalSelfTest", 2), ("chanRemoteSelfTest", 3), ("chandigitalLoop", 4), ("chanLocalLoop", 5), ("chanRemoteDataLoop", 6), ("chanNoTest", 7)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553DiagChannelTest.setStatus('mandatory') sc553DiagTestResults = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 3, 1, 1, 12), OctetString().subtype(subtypeSpec=ValueSizeConstraint(4, 4)).setFixedLength(4)).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553DiagTestResults.setStatus('mandatory') sc553DiagTestStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 3, 1, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18))).clone(namedValues=NamedValues(("statNoTestinProgress", 1), ("statT1SelfTest", 2), ("statT1LocalSelfTest", 3), ("statT1RemoteSelfTest", 4), ("statT1LocalTest", 5), ("statT1RemoteTest", 6), ("statT1NetworkInterface", 7), ("statT1LineLoopback", 8), ("statT1PayLoadLoopback", 9), ("statChanSelfTest", 10), ("statChanLocalSelfTest", 11), ("statChanRemoteSelfTest", 12), ("statChandigitalLoop", 13), ("statChanLocalLoop", 14), ("statChanRemoteDataLoop", 15), ("statDS0SelfTest", 16), ("statDS0CircuitDelay", 17), ("statDS0Loopback", 18)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553DiagTestStatus.setStatus('mandatory') sc553DiagResetTestToNormal = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 3, 1, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("normal", 1), ("resetTest", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553DiagResetTestToNormal.setStatus('mandatory') sc553DiagResetTestResults = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 3, 1, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("normal", 1), ("resetTestResult", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553DiagResetTestResults.setStatus('mandatory') sc553DiagT1TestDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 3, 1, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("toNetwork", 1), ("toCascade", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553DiagT1TestDirection.setStatus('mandatory') sc553DiagDS0TestDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 3, 1, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("toNetwork", 1), ("toCascade", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553DiagDS0TestDirection.setStatus('mandatory') sc553MaintenanceTable = MibTable((1, 3, 6, 1, 4, 1, 498, 6, 11, 4, 1), ) if mibBuilder.loadTexts: sc553MaintenanceTable.setStatus('mandatory') sc553MaintenanceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 498, 6, 11, 4, 1, 1), ).setIndexNames((0, "GDC-SC553-MIB", "sc553MaintenanceIndex")) if mibBuilder.loadTexts: sc553MaintenanceEntry.setStatus('mandatory') sc553MaintenanceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 4, 1, 1, 1), SCinstance()).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553MaintenanceIndex.setStatus('mandatory') sc553LedStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 4, 1, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(3, 3)).setFixedLength(3)).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553LedStatus.setStatus('mandatory') sc553SoftReset = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 4, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("norm", 1), ("reset", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553SoftReset.setStatus('mandatory') sc553DefaultInit = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 4, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("normal", 1), ("factoryDefault", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553DefaultInit.setStatus('mandatory') sc553FrontPanel = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 4, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("inhibit", 1), ("enable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553FrontPanel.setStatus('mandatory') sc553ProductType = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 4, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("sc553", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553ProductType.setStatus('mandatory') sc553ResetStatistics = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 4, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("norm", 1), ("reset", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553ResetStatistics.setStatus('mandatory') sc553ValidUserIntervals = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 4, 1, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 96))).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553ValidUserIntervals.setStatus('mandatory') sc553ValidNetworkIntervals = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 4, 1, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 96))).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553ValidNetworkIntervals.setStatus('mandatory') sc553ValidFarEndIntervals = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 4, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 96))).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553ValidFarEndIntervals.setStatus('mandatory') sc553CascadePresent = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 4, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("notPresent", 1), ("present", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553CascadePresent.setStatus('mandatory') sc553ReceiveLevel = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 4, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("invalidNiDSX1", 1), ("noSignal", 2), ("pos2toNeg7andOneHalf", 3), ("neg7andOneHalftoNeg15", 4), ("neg15toNeg22andOneHalf", 5), ("lessThanNeg22andOneHalf", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553ReceiveLevel.setStatus('mandatory') sc553DteStat = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 4, 1, 1, 13), OctetString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553DteStat.setStatus('mandatory') sc553CasReceiveLevel = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 4, 1, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("invalidNiDSX1", 1), ("noSignal", 2), ("pos2toNeg7andOneHalf", 3), ("neg7andOneHalftoNeg15", 4), ("neg15toNeg22andOneHalf", 5), ("lessThanNeg22andOneHalf", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553CasReceiveLevel.setStatus('mandatory') sc553ShelfType = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 4, 1, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("spectracomm", 1), ("twinPack", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553ShelfType.setStatus('mandatory') sc553TwinPackPowerSupply = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 4, 1, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("bottomOnly", 2), ("topOnly", 3), ("both", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553TwinPackPowerSupply.setStatus('mandatory') sc553TestAllLeds = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 4, 1, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("allLedsON", 1), ("allLedsOFF", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553TestAllLeds.setStatus('mandatory') sc553AlarmData = MibIdentifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1)) sc553NoResponseAlm = MibIdentifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 1)) sc553DiagRxErrAlm = MibIdentifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 2)) sc553PowerUpAlm = MibIdentifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 3)) sc553NvRamCorruptAlm = MibIdentifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 4)) sc553UnitFailureAlm = MibIdentifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 5)) sc553StatusChangeAlm = MibIdentifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 6)) sc553UnsolicitedTestAlm = MibIdentifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 7)) sc553FrontPanelTestAlm = MibIdentifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 8)) sc553ConfigChangeAlm = MibIdentifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 9)) sc553TimingLossAlm = MibIdentifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 10)) sc553LossOfSignalAlm = MibIdentifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 11)) sc553LossOfFrameAlm = MibIdentifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 12)) sc553AlarmIndicationSignalAlm = MibIdentifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 13)) sc553ReceivedYellowAlm = MibIdentifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 14)) sc553UnavailableSignalStateAlm = MibIdentifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 15)) sc553CrcErrorsAlm = MibIdentifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 16)) sc553BipolarViolationsAlm = MibIdentifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 17)) sc553LowAverageDensityAlm = MibIdentifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 18)) sc553ExternalTXClockLossAlm = MibIdentifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 19)) sc553DCDLossAlm = MibIdentifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 20)) sc553DSRLossAlm = MibIdentifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 21)) sc553DTRLossAlm = MibIdentifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 22)) sc553RXDNoTransitionsAlm = MibIdentifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 23)) sc553TXDNoTransitionsAlm = MibIdentifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 24)) sc553RedundancyOn = MibIdentifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 25)) sc553RemoteNotResponding = MibIdentifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 26)) sc553TopPowerSupplyFail = MibIdentifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 27)) sc553BottomPowerSupplyFail = MibIdentifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 28)) sc553AlarmConfigTable = MibTable((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 2), ) if mibBuilder.loadTexts: sc553AlarmConfigTable.setStatus('mandatory') sc553AlarmConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 2, 1), ).setIndexNames((0, "GDC-SC553-MIB", "sc553AlarmConfigIndex"), (0, "GDC-SC553-MIB", "sc553AlarmConfigIdentifier")) if mibBuilder.loadTexts: sc553AlarmConfigEntry.setStatus('mandatory') sc553AlarmConfigIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 2, 1, 1), SCinstance()).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553AlarmConfigIndex.setStatus('mandatory') sc553AlarmConfigIdentifier = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 2, 1, 2), ObjectIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553AlarmConfigIdentifier.setStatus('mandatory') sc553AlarmCountWindow = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("reportAll", 1), ("last1sec", 2), ("last1min", 3), ("last1hr", 4), ("reportWhen", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553AlarmCountWindow.setStatus('mandatory') sc553AlarmCountThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("thresGT10", 1), ("thresGT100", 2), ("thresGT1000", 3), ("thresGT10000", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553AlarmCountThreshold.setStatus('mandatory') sc553CurrentUserTable = MibTable((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 1), ) if mibBuilder.loadTexts: sc553CurrentUserTable.setStatus('mandatory') sc553CurrentUserEntry = MibTableRow((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 1, 1), ).setIndexNames((0, "GDC-SC553-MIB", "sc553CurrentUserIndex")) if mibBuilder.loadTexts: sc553CurrentUserEntry.setStatus('mandatory') sc553CurrentUserIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 1, 1, 1), SCinstance()).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553CurrentUserIndex.setStatus('mandatory') sc553CurrentUserStat = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 1, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(15, 15)).setFixedLength(15)).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553CurrentUserStat.setStatus('mandatory') sc553CurrentNetworkTable = MibTable((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 2), ) if mibBuilder.loadTexts: sc553CurrentNetworkTable.setStatus('mandatory') sc553CurrentNetworkEntry = MibTableRow((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 2, 1), ).setIndexNames((0, "GDC-SC553-MIB", "sc553CurrentNetworkIndex")) if mibBuilder.loadTexts: sc553CurrentNetworkEntry.setStatus('mandatory') sc553CurrentNetworkIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 2, 1, 1), SCinstance()).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553CurrentNetworkIndex.setStatus('mandatory') sc553CurrentNetworkStat = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 2, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(15, 15)).setFixedLength(15)).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553CurrentNetworkStat.setStatus('mandatory') sc553CurrentFarEndTable = MibTable((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 3), ) if mibBuilder.loadTexts: sc553CurrentFarEndTable.setStatus('mandatory') sc553CurrentFarEndEntry = MibTableRow((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 3, 1), ).setIndexNames((0, "GDC-SC553-MIB", "sc553CurrentFarEndIndex")) if mibBuilder.loadTexts: sc553CurrentFarEndEntry.setStatus('mandatory') sc553CurrentFarEndIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 3, 1, 1), SCinstance()).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553CurrentFarEndIndex.setStatus('mandatory') sc553CurrentFarEndStat = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 3, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(15, 15)).setFixedLength(15)).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553CurrentFarEndStat.setStatus('mandatory') sc553TotalUserTable = MibTable((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 4), ) if mibBuilder.loadTexts: sc553TotalUserTable.setStatus('mandatory') sc553TotalUserEntry = MibTableRow((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 4, 1), ).setIndexNames((0, "GDC-SC553-MIB", "sc553TotalUserIndex")) if mibBuilder.loadTexts: sc553TotalUserEntry.setStatus('mandatory') sc553TotalUserIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 4, 1, 1), SCinstance()).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553TotalUserIndex.setStatus('mandatory') sc553TotalUserStat = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 4, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(15, 15)).setFixedLength(15)).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553TotalUserStat.setStatus('mandatory') sc553TotalNetworkTable = MibTable((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 5), ) if mibBuilder.loadTexts: sc553TotalNetworkTable.setStatus('mandatory') sc553TotalNetworkEntry = MibTableRow((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 5, 1), ).setIndexNames((0, "GDC-SC553-MIB", "sc553TotalNetworkIndex")) if mibBuilder.loadTexts: sc553TotalNetworkEntry.setStatus('mandatory') sc553TotalNetworkIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 5, 1, 1), SCinstance()).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553TotalNetworkIndex.setStatus('mandatory') sc553TotalNetworkStat = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 5, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(15, 15)).setFixedLength(15)).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553TotalNetworkStat.setStatus('mandatory') sc553TotalFarEndTable = MibTable((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 6), ) if mibBuilder.loadTexts: sc553TotalFarEndTable.setStatus('mandatory') sc553TotalFarEndEntry = MibTableRow((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 6, 1), ).setIndexNames((0, "GDC-SC553-MIB", "sc553TotalFarEndIndex")) if mibBuilder.loadTexts: sc553TotalFarEndEntry.setStatus('mandatory') sc553TotalFarEndIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 6, 1, 1), SCinstance()).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553TotalFarEndIndex.setStatus('mandatory') sc553TotalFarEndStat = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 6, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(15, 15)).setFixedLength(15)).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553TotalFarEndStat.setStatus('mandatory') sc553UserIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 7), ) if mibBuilder.loadTexts: sc553UserIntervalTable.setStatus('mandatory') sc553UserIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 7, 1), ).setIndexNames((0, "GDC-SC553-MIB", "sc553UserIntervalIndex"), (0, "GDC-SC553-MIB", "sc553UserIntervalNumber")) if mibBuilder.loadTexts: sc553UserIntervalEntry.setStatus('mandatory') sc553UserIntervalIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 7, 1, 1), SCinstance()).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553UserIntervalIndex.setStatus('mandatory') sc553UserIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 7, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 96))).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553UserIntervalNumber.setStatus('mandatory') sc553UserIntervalStats = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 7, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(15, 15)).setFixedLength(15)).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553UserIntervalStats.setStatus('mandatory') sc553NetworkIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 8), ) if mibBuilder.loadTexts: sc553NetworkIntervalTable.setStatus('mandatory') sc553NetworkIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 8, 1), ).setIndexNames((0, "GDC-SC553-MIB", "sc553NetworkIntervalIndex"), (0, "GDC-SC553-MIB", "sc553NetworkIntervalNumber")) if mibBuilder.loadTexts: sc553NetworkIntervalEntry.setStatus('mandatory') sc553NetworkIntervalIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 8, 1, 1), SCinstance()).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553NetworkIntervalIndex.setStatus('mandatory') sc553NetworkIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 8, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 96))).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553NetworkIntervalNumber.setStatus('mandatory') sc553NetworkIntervalStats = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 8, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(15, 15)).setFixedLength(15)).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553NetworkIntervalStats.setStatus('mandatory') sc553FarEndIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 9), ) if mibBuilder.loadTexts: sc553FarEndIntervalTable.setStatus('mandatory') sc553FarEndIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 9, 1), ).setIndexNames((0, "GDC-SC553-MIB", "sc553FarEndIntervalIndex"), (0, "GDC-SC553-MIB", "sc553FarEndIntervalNumber")) if mibBuilder.loadTexts: sc553FarEndIntervalEntry.setStatus('mandatory') sc553FarEndIntervalIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 9, 1, 1), SCinstance()).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553FarEndIntervalIndex.setStatus('mandatory') sc553FarEndIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 9, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 96))).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553FarEndIntervalNumber.setStatus('mandatory') sc553FarEndIntervalStats = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 9, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(15, 15)).setFixedLength(15)).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553FarEndIntervalStats.setStatus('mandatory') sc553StoreUserTotals = MibScalar((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("normal", 1), ("store", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553StoreUserTotals.setStatus('mandatory') sc553StoreUserIntervals = MibScalar((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("normal", 1), ("store", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sc553StoreUserIntervals.setStatus('mandatory') sc553ShelfUserTotals = MibScalar((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 12), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 465))).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553ShelfUserTotals.setStatus('mandatory') sc553ShelfUserIntvlsTable = MibTable((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 13), ) if mibBuilder.loadTexts: sc553ShelfUserIntvlsTable.setStatus('mandatory') sc553ShelfUserIntervalsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 13, 1), ).setIndexNames((0, "GDC-SC553-MIB", "sc553ShelfUserIntvlsIndex")) if mibBuilder.loadTexts: sc553ShelfUserIntervalsEntry.setStatus('mandatory') sc553ShelfUserIntvlsIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 13, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 96))).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553ShelfUserIntvlsIndex.setStatus('mandatory') sc553ShelfUserIntervals = MibTableColumn((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 13, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 465))).setMaxAccess("readonly") if mibBuilder.loadTexts: sc553ShelfUserIntervals.setStatus('mandatory') mibBuilder.exportSymbols("GDC-SC553-MIB", sc553TwinPackPowerSupply=sc553TwinPackPowerSupply, sc553ChannelNetworkPosition=sc553ChannelNetworkPosition, sc553NoResponseAlm=sc553NoResponseAlm, sc553CurrentNetworkEntry=sc553CurrentNetworkEntry, sc553FarEndIntervalTable=sc553FarEndIntervalTable, sc553CurrentFarEndStat=sc553CurrentFarEndStat, sc553NetworkAdminLineType=sc553NetworkAdminLineType, sc553ProductType=sc553ProductType, sc553TotalFarEndEntry=sc553TotalFarEndEntry, sc553AlarmConfigIndex=sc553AlarmConfigIndex, sc553CasReceiveLevel=sc553CasReceiveLevel, sc553Diagnostics=sc553Diagnostics, sc553Alarms=sc553Alarms, sc553NetworkConfigIndex=sc553NetworkConfigIndex, sc553DiagT1Test=sc553DiagT1Test, sc553ChannelDS0AllocationScheme=sc553ChannelDS0AllocationScheme, sc553DiagT1SelfTestPattern=sc553DiagT1SelfTestPattern, sc553AlarmIndicationSignalAlm=sc553AlarmIndicationSignalAlm, sc553TXDNoTransitionsAlm=sc553TXDNoTransitionsAlm, sc553NetworkFallbackClockSource=sc553NetworkFallbackClockSource, sc553ValidNetworkIntervals=sc553ValidNetworkIntervals, sc553NetworkIntervalStats=sc553NetworkIntervalStats, sc553FarEndIntervalNumber=sc553FarEndIntervalNumber, sc553CascadeConfigIndex=sc553CascadeConfigIndex, sc553ShelfUserIntvlsIndex=sc553ShelfUserIntvlsIndex, sc553ShelfUserIntervals=sc553ShelfUserIntervals, sc553CrcErrorsAlm=sc553CrcErrorsAlm, sc553CascadeAISLoopdown=sc553CascadeAISLoopdown, sc553NetworkOperLineType=sc553NetworkOperLineType, sc553LowAverageDensityAlm=sc553LowAverageDensityAlm, sc553NetworkIntervalIndex=sc553NetworkIntervalIndex, sc553ReceivedYellowAlm=sc553ReceivedYellowAlm, sc553NetworkIntervalNumber=sc553NetworkIntervalNumber, sc553FrontPanelTestAlm=sc553FrontPanelTestAlm, sc553UserIntervalTable=sc553UserIntervalTable, sc553CascadeLineCoding=sc553CascadeLineCoding, sc553DiagT1TestDirection=sc553DiagT1TestDirection, sc553MaintenanceTable=sc553MaintenanceTable, sc553ValidFarEndIntervals=sc553ValidFarEndIntervals, sc553StoreUserTotals=sc553StoreUserTotals, sc553DefaultInit=sc553DefaultInit, sc553AlarmData=sc553AlarmData, sc553LedStatus=sc553LedStatus, sc553CascadeInterfaceType=sc553CascadeInterfaceType, sc553TimingLossAlm=sc553TimingLossAlm, sc553CurrentUserIndex=sc553CurrentUserIndex, sc553AlarmCountWindow=sc553AlarmCountWindow, sc553Version=sc553Version, sc553MaintenanceIndex=sc553MaintenanceIndex, sc553TotalFarEndIndex=sc553TotalFarEndIndex, sc553CascadeOperLineBuildout=sc553CascadeOperLineBuildout, sc553SoftReset=sc553SoftReset, sc553TotalUserEntry=sc553TotalUserEntry, sc553NetworkIntervalTable=sc553NetworkIntervalTable, sc553StoredFirmwareStatus=sc553StoredFirmwareStatus, sc553TotalNetworkEntry=sc553TotalNetworkEntry, sc553DiagTestStatus=sc553DiagTestStatus, sc553ResetStatistics=sc553ResetStatistics, sc553PowerUpAlm=sc553PowerUpAlm, sc553ChannelActivePort=sc553ChannelActivePort, sc553CascadeAdminLineType=sc553CascadeAdminLineType, sc553FarEndIntervalIndex=sc553FarEndIntervalIndex, sc553NetworkOperLineBuildout=sc553NetworkOperLineBuildout, sc553DiagProgPattern=sc553DiagProgPattern, sc553ChannelRTSCTSControl=sc553ChannelRTSCTSControl, sc553ValidUserIntervals=sc553ValidUserIntervals, sc553TotalFarEndStat=sc553TotalFarEndStat, sc553NetworkIntervalEntry=sc553NetworkIntervalEntry, sc553NetworkLineCoding=sc553NetworkLineCoding, sc553TotalNetworkStat=sc553TotalNetworkStat, sc553ActiveFirmwareRev=sc553ActiveFirmwareRev, sc553ChannelLocalDCD=sc553ChannelLocalDCD, sc553AlarmConfigEntry=sc553AlarmConfigEntry, sc553Performance=sc553Performance, sc553ChannelNetworkNumber=sc553ChannelNetworkNumber, sc553ConfigChangeAlm=sc553ConfigChangeAlm, sc553=sc553, sc553DiagTable=sc553DiagTable, sc553DiagIndex=sc553DiagIndex, sc553ChannelConfigEntry=sc553ChannelConfigEntry, sc553ChannelOperClkInvert=sc553ChannelOperClkInvert, sc553TotalUserTable=sc553TotalUserTable, sc553DTRLossAlm=sc553DTRLossAlm, sc553UserIntervalEntry=sc553UserIntervalEntry, sc553NetworkAdminLineBuildout=sc553NetworkAdminLineBuildout, sc553FarEndIntervalEntry=sc553FarEndIntervalEntry, sc553WakeUpRemote=sc553WakeUpRemote, sc553VersionTable=sc553VersionTable, sc553VersionEntry=sc553VersionEntry, sc553DiagTestDuration=sc553DiagTestDuration, sc553ChannelConfigIndex=sc553ChannelConfigIndex, sc553CurrentFarEndIndex=sc553CurrentFarEndIndex, sc553CascadePresent=sc553CascadePresent, sc553ExternalTXClockLossAlm=sc553ExternalTXClockLossAlm, sc553CurrentUserStat=sc553CurrentUserStat, sc553CascadePreequalization=sc553CascadePreequalization, sc553ShelfUserIntvlsTable=sc553ShelfUserIntvlsTable, sc553Maintenance=sc553Maintenance, sc553ChannelStartingDS0=sc553ChannelStartingDS0, sc553TotalUserIndex=sc553TotalUserIndex, sc553CascadeConfigEntry=sc553CascadeConfigEntry, sc553BootRev=sc553BootRev, sc553AlarmConfigIdentifier=sc553AlarmConfigIdentifier, sc553UserIntervalIndex=sc553UserIntervalIndex, sc553NvRamCorruptAlm=sc553NvRamCorruptAlm, sc553DiagEntry=sc553DiagEntry, sc553DiagRxErrAlm=sc553DiagRxErrAlm, sc553NetworkFDLdcc=sc553NetworkFDLdcc, sc553DiagChannelTest=sc553DiagChannelTest, sc553NetworkOnesDensity=sc553NetworkOnesDensity, sc553DiagTestResults=sc553DiagTestResults, sc553UnsolicitedTestAlm=sc553UnsolicitedTestAlm, sc553ChannelChannelType=sc553ChannelChannelType, sc553NetworkConfigTable=sc553NetworkConfigTable, sc553InsertBitError=sc553InsertBitError, sc553UserIntervalNumber=sc553UserIntervalNumber, sc553ChannelConfigTable=sc553ChannelConfigTable, sc553CascadeFDLdcc=sc553CascadeFDLdcc, sc553CurrentNetworkStat=sc553CurrentNetworkStat, sc553LossOfSignalAlm=sc553LossOfSignalAlm, sc553NetworkPreequalization=sc553NetworkPreequalization, sc553UnavailableSignalStateAlm=sc553UnavailableSignalStateAlm, sc553FarEndIntervalStats=sc553FarEndIntervalStats, sc553ShelfUserIntervalsEntry=sc553ShelfUserIntervalsEntry, sc553CurrentFarEndTable=sc553CurrentFarEndTable, sc553BipolarViolationsAlm=sc553BipolarViolationsAlm, sc553TotalNetworkTable=sc553TotalNetworkTable, sc553UserIntervalStats=sc553UserIntervalStats, sc553TopPowerSupplyFail=sc553TopPowerSupplyFail, sc553ShelfType=sc553ShelfType, sc553VersionIndex=sc553VersionIndex, sc553FrontPanel=sc553FrontPanel, sc553AlarmConfigTable=sc553AlarmConfigTable, sc553ChannelDataInvert=sc553ChannelDataInvert, sc553NetworkTransmitClockSource=sc553NetworkTransmitClockSource, sc553DiagChannelSelfTestPattern=sc553DiagChannelSelfTestPattern, sc553CurrentUserTable=sc553CurrentUserTable, dsx1=dsx1, sc553NetworkFdl=sc553NetworkFdl, sc553NetworkConfigEntry=sc553NetworkConfigEntry, sc553ReceiveLevel=sc553ReceiveLevel, sc553CascadeAdminLineBuildout=sc553CascadeAdminLineBuildout, sc553channelRedundancy=sc553channelRedundancy, sc553RXDNoTransitionsAlm=sc553RXDNoTransitionsAlm, sc553CurrentFarEndEntry=sc553CurrentFarEndEntry, sc553CascadeFdl=sc553CascadeFdl, sc553CascadeLoopbackConfig=sc553CascadeLoopbackConfig, sc553TotalNetworkIndex=sc553TotalNetworkIndex, sc553DteStat=sc553DteStat, sc553DiagDS0SelfTestPattern=sc553DiagDS0SelfTestPattern, sc553CurrentNetworkIndex=sc553CurrentNetworkIndex, sc553CascadeConfigTable=sc553CascadeConfigTable, sc553BottomPowerSupplyFail=sc553BottomPowerSupplyFail, sc553ChannelAdminClkInvert=sc553ChannelAdminClkInvert, sc553DSRLossAlm=sc553DSRLossAlm, sc553UnitFailureAlm=sc553UnitFailureAlm, sc553ChannelInbandLoopdown=sc553ChannelInbandLoopdown, sc553DiagDS0TestDirection=sc553DiagDS0TestDirection, sc553CascadeOperLineType=sc553CascadeOperLineType, sc553NetworkAISLoopdown=sc553NetworkAISLoopdown, sc553CascadeInService=sc553CascadeInService, sc553DiagResetTestToNormal=sc553DiagResetTestToNormal, sc553MIBversion=sc553MIBversion, sc553TotalFarEndTable=sc553TotalFarEndTable, sc553StoredFirmwareRev=sc553StoredFirmwareRev, sc553DiagDS0Number=sc553DiagDS0Number, sc553StatusChangeAlm=sc553StatusChangeAlm, sc553CurrentNetworkTable=sc553CurrentNetworkTable, sc553ChannelBaseRate=sc553ChannelBaseRate, sc553ConfigurationSave=sc553ConfigurationSave, sc553SwitchActiveFirmware=sc553SwitchActiveFirmware, sc553RemoteNotResponding=sc553RemoteNotResponding, sc553ChannelInService=sc553ChannelInService, sc553ChannelEIAtestLeads=sc553ChannelEIAtestLeads, sc553ShelfUserTotals=sc553ShelfUserTotals, sc553ChannelInbandDccMode=sc553ChannelInbandDccMode, sc553DCDLossAlm=sc553DCDLossAlm, sc553NetworkInterfaceType=sc553NetworkInterfaceType, sc553MaintenanceEntry=sc553MaintenanceEntry, sc553ChannelSplitTiming=sc553ChannelSplitTiming, sc553RedundancyOn=sc553RedundancyOn, sc553CurrentUserEntry=sc553CurrentUserEntry, sc553ChannelLocalDSR=sc553ChannelLocalDSR, sc553NetworkLoopbackConfig=sc553NetworkLoopbackConfig, sc553LossOfFrameAlm=sc553LossOfFrameAlm, sc553ChannelNumberOfDS0s=sc553ChannelNumberOfDS0s, sc553DiagDS0Test=sc553DiagDS0Test, sc553Configuration=sc553Configuration, sc553TotalUserStat=sc553TotalUserStat, sc553StoreUserIntervals=sc553StoreUserIntervals, sc553DiagResetTestResults=sc553DiagResetTestResults, sc553AlarmCountThreshold=sc553AlarmCountThreshold, sc553DownloadingMode=sc553DownloadingMode, sc553ChannelInbandLoop=sc553ChannelInbandLoop, sc553TestAllLeds=sc553TestAllLeds)
(octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, value_range_constraint, constraints_union, constraints_intersection, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ValueRangeConstraint', 'ConstraintsUnion', 'ConstraintsIntersection', 'ValueSizeConstraint') (gdc,) = mibBuilder.importSymbols('GDCCMN-MIB', 'gdc') (s_cinstance,) = mibBuilder.importSymbols('GDCMACRO-MIB', 'SCinstance') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (bits, notification_type, integer32, ip_address, object_identity, unsigned32, mib_identifier, mib_scalar, mib_table, mib_table_row, mib_table_column, gauge32, iso, counter32, module_identity, counter64, time_ticks) = mibBuilder.importSymbols('SNMPv2-SMI', 'Bits', 'NotificationType', 'Integer32', 'IpAddress', 'ObjectIdentity', 'Unsigned32', 'MibIdentifier', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Gauge32', 'iso', 'Counter32', 'ModuleIdentity', 'Counter64', 'TimeTicks') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') dsx1 = mib_identifier((1, 3, 6, 1, 4, 1, 498, 6)) sc553 = mib_identifier((1, 3, 6, 1, 4, 1, 498, 6, 11)) sc553_version = mib_identifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 1)) sc553_configuration = mib_identifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 2)) sc553_diagnostics = mib_identifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 3)) sc553_maintenance = mib_identifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 4)) sc553_alarms = mib_identifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5)) sc553_performance = mib_identifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 6)) sc553_mi_bversion = mib_scalar((1, 3, 6, 1, 4, 1, 498, 6, 11, 1, 1), display_string().subtype(subtypeSpec=value_size_constraint(5, 5)).setFixedLength(5)).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553MIBversion.setStatus('mandatory') sc553_version_table = mib_table((1, 3, 6, 1, 4, 1, 498, 6, 11, 1, 2)) if mibBuilder.loadTexts: sc553VersionTable.setStatus('mandatory') sc553_version_entry = mib_table_row((1, 3, 6, 1, 4, 1, 498, 6, 11, 1, 2, 1)).setIndexNames((0, 'GDC-SC553-MIB', 'sc553VersionIndex')) if mibBuilder.loadTexts: sc553VersionEntry.setStatus('mandatory') sc553_version_index = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 1, 2, 1, 1), s_cinstance()).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553VersionIndex.setStatus('mandatory') sc553_active_firmware_rev = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 1, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(8, 8)).setFixedLength(8)).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553ActiveFirmwareRev.setStatus('mandatory') sc553_stored_firmware_rev = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 1, 2, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(8, 8)).setFixedLength(8)).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553StoredFirmwareRev.setStatus('mandatory') sc553_boot_rev = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 1, 2, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(2, 2)).setFixedLength(2)).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553BootRev.setStatus('mandatory') sc553_stored_firmware_status = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 1, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('statBlank', 1), ('statDownLoading', 2), ('statOK', 3), ('statCheckSumBad', 4), ('statUnZipping', 5), ('statBadUnZip', 6), ('statDownloadAborted', 7)))).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553StoredFirmwareStatus.setStatus('mandatory') sc553_switch_active_firmware = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 1, 2, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('switchNorm', 1), ('switchActive', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553SwitchActiveFirmware.setStatus('mandatory') sc553_downloading_mode = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 1, 2, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('disableAll', 1), ('enableAndWait', 2), ('enableAndSwitch', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553DownloadingMode.setStatus('mandatory') sc553_channel_config_table = mib_table((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1)) if mibBuilder.loadTexts: sc553ChannelConfigTable.setStatus('mandatory') sc553_channel_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1)).setIndexNames((0, 'GDC-SC553-MIB', 'sc553ChannelConfigIndex')) if mibBuilder.loadTexts: sc553ChannelConfigEntry.setStatus('mandatory') sc553_channel_config_index = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 1), s_cinstance()).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553ChannelConfigIndex.setStatus('mandatory') sc553_channel_ds0_allocation_scheme = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('consecutive', 1), ('alternate', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553ChannelDS0AllocationScheme.setStatus('mandatory') sc553_channel_base_rate = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('nx56k', 1), ('nx64k', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553ChannelBaseRate.setStatus('mandatory') sc553_channel_starting_ds0 = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 24))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553ChannelStartingDS0.setStatus('mandatory') sc553_channel_number_of_ds0s = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(1, 24))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553ChannelNumberOfDS0s.setStatus('mandatory') sc553_channel_inband_dcc_mode = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('none', 1), ('embedded', 2), ('dccDs0', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553ChannelInbandDccMode.setStatus('mandatory') sc553_channel_split_timing = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553ChannelSplitTiming.setStatus('mandatory') sc553_channel_channel_type = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('none', 1), ('v35', 2), ('eia530', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553ChannelChannelType.setStatus('mandatory') sc553_channel_admin_clk_invert = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('none', 1), ('invertRx', 2), ('invertTx', 3), ('both', 4), ('autoTxnormRx', 5), ('autoTxinvertRx', 6)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553ChannelAdminClkInvert.setStatus('mandatory') sc553_channel_oper_clk_invert = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('none', 1), ('invertRx', 2), ('invertTx', 3), ('both', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553ChannelOperClkInvert.setStatus('mandatory') sc553_channel_data_invert = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('none', 1), ('invertRx', 2), ('invertTx', 3), ('both', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553ChannelDataInvert.setStatus('mandatory') sc553_channel_local_dcd = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('followsSignal', 1), ('forcedOn', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553ChannelLocalDCD.setStatus('mandatory') sc553_channel_local_dsr = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('followsSignal', 1), ('forcedOn', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553ChannelLocalDSR.setStatus('mandatory') sc553_channel_rtscts_control = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('ctrl', 1), ('ctsForcedOn', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553ChannelRTSCTSControl.setStatus('mandatory') sc553_channel_ei_atest_leads = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 15), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553ChannelEIAtestLeads.setStatus('mandatory') sc553_channel_inband_loop = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 16), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disable', 1), ('enabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553ChannelInbandLoop.setStatus('mandatory') sc553_channel_inband_loopdown = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('inhibit', 1), ('enable10Min', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553ChannelInbandLoopdown.setStatus('mandatory') sc553channel_redundancy = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('on', 1), ('off', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553channelRedundancy.setStatus('mandatory') sc553_channel_active_port = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 19), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('network', 1), ('cascade', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553ChannelActivePort.setStatus('mandatory') sc553_channel_network_number = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 20), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('networkOne', 1), ('networkTwo', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553ChannelNetworkNumber.setStatus('obsolete') sc553_channel_network_position = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 21), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('network', 1), ('cascade', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553ChannelNetworkPosition.setStatus('obsolete') sc553_wake_up_remote = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 22), display_string().subtype(subtypeSpec=value_size_constraint(16, 16)).setFixedLength(16)).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553WakeUpRemote.setStatus('mandatory') sc553_channel_in_service = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 1, 1, 23), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('on', 1), ('off', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553ChannelInService.setStatus('mandatory') sc553_network_config_table = mib_table((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 2)) if mibBuilder.loadTexts: sc553NetworkConfigTable.setStatus('mandatory') sc553_network_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 2, 1)).setIndexNames((0, 'GDC-SC553-MIB', 'sc553NetworkConfigIndex')) if mibBuilder.loadTexts: sc553NetworkConfigEntry.setStatus('mandatory') sc553_network_config_index = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 2, 1, 1), s_cinstance()).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553NetworkConfigIndex.setStatus('mandatory') sc553_network_admin_line_type = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('unframed', 1), ('manEsf', 2), ('manD4', 3), ('auto', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553NetworkAdminLineType.setStatus('mandatory') sc553_network_oper_line_type = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('unframed', 1), ('esf', 2), ('d4', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553NetworkOperLineType.setStatus('mandatory') sc553_network_interface_type = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 2, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('ds1', 1), ('dsx1', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553NetworkInterfaceType.setStatus('mandatory') sc553_network_preequalization = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('preeq130', 1), ('preeq260', 2), ('preeq390', 3), ('preeq530', 4), ('preeq655', 5)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553NetworkPreequalization.setStatus('mandatory') sc553_network_admin_line_buildout = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 2, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(10, 11, 12, 13, 16))).clone(namedValues=named_values(('man00dB', 10), ('man75dB', 11), ('man150dB', 12), ('man225dB', 13), ('auto', 16)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553NetworkAdminLineBuildout.setStatus('mandatory') sc553_network_oper_line_buildout = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 2, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(2, 3, 4, 5))).clone(namedValues=named_values(('tx00dB', 2), ('tx75dB', 3), ('tx150dB', 4), ('tx225dB', 5)))).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553NetworkOperLineBuildout.setStatus('mandatory') sc553_network_ones_density = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 2, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 4, 5))).clone(namedValues=named_values(('inhibit', 1), ('restrict8XNplus1', 4), ('min1in8', 5)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553NetworkOnesDensity.setStatus('mandatory') sc553_network_transmit_clock_source = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 2, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 4, 5, 6))).clone(namedValues=named_values(('receive', 1), ('cascade', 2), ('internal', 4), ('station', 5), ('extChannelClkPPL', 6)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553NetworkTransmitClockSource.setStatus('mandatory') sc553_network_fallback_clock_source = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 2, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 4))).clone(namedValues=named_values(('receive', 1), ('cascade', 2), ('internal', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553NetworkFallbackClockSource.setStatus('mandatory') sc553_network_fd_ldcc = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 2, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553NetworkFDLdcc.setStatus('mandatory') sc553_network_ais_loopdown = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 2, 1, 12), integer32().subtype(subtypeSpec=value_range_constraint(4, 60))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553NetworkAISLoopdown.setStatus('mandatory') sc553_network_loopback_config = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 2, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('none', 1), ('payload', 2), ('lineloop', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553NetworkLoopbackConfig.setStatus('mandatory') sc553_network_line_coding = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 2, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('sc553B8ZS', 1), ('sc553AMI', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553NetworkLineCoding.setStatus('mandatory') sc553_network_fdl = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 2, 1, 15), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('sc553Fdl-none', 1), ('sc553Ansi-T1-403', 2), ('sc553Att-54016', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553NetworkFdl.setStatus('mandatory') sc553_cascade_config_table = mib_table((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 4)) if mibBuilder.loadTexts: sc553CascadeConfigTable.setStatus('mandatory') sc553_cascade_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 4, 1)).setIndexNames((0, 'GDC-SC553-MIB', 'sc553CascadeConfigIndex')) if mibBuilder.loadTexts: sc553CascadeConfigEntry.setStatus('mandatory') sc553_cascade_config_index = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 4, 1, 1), s_cinstance()).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553CascadeConfigIndex.setStatus('mandatory') sc553_cascade_admin_line_type = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 4, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('unframed', 1), ('manEsf', 2), ('manD4', 3), ('auto', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553CascadeAdminLineType.setStatus('mandatory') sc553_cascade_oper_line_type = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 4, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('unframed', 1), ('esf', 2), ('d4', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553CascadeOperLineType.setStatus('mandatory') sc553_cascade_interface_type = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 4, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('ds1', 1), ('dsx1', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553CascadeInterfaceType.setStatus('mandatory') sc553_cascade_preequalization = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 4, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('preeq130', 1), ('preeq260', 2), ('preeq390', 3), ('preeq530', 4), ('preeq655', 5)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553CascadePreequalization.setStatus('mandatory') sc553_cascade_admin_line_buildout = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 4, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(10, 11, 12, 13, 16))).clone(namedValues=named_values(('man00dB', 10), ('man75dB', 11), ('man150dB', 12), ('man225dB', 13), ('auto', 16)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553CascadeAdminLineBuildout.setStatus('mandatory') sc553_cascade_oper_line_buildout = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 4, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(2, 3, 4, 5))).clone(namedValues=named_values(('tx00dB', 2), ('tx75dB', 3), ('tx150dB', 4), ('tx225dB', 5)))).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553CascadeOperLineBuildout.setStatus('mandatory') sc553_cascade_fd_ldcc = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 4, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553CascadeFDLdcc.setStatus('mandatory') sc553_cascade_line_coding = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 4, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('sc553B8ZS', 1), ('sc553AMI', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553CascadeLineCoding.setStatus('mandatory') sc553_cascade_fdl = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 4, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('sc553Fdl-none', 1), ('sc553Ansi-T1-403', 2), ('sc553Att-54016', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553CascadeFdl.setStatus('mandatory') sc553_cascade_in_service = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 4, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('on', 1), ('off', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553CascadeInService.setStatus('mandatory') sc553_cascade_ais_loopdown = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 4, 1, 12), integer32().subtype(subtypeSpec=value_range_constraint(4, 60))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553CascadeAISLoopdown.setStatus('mandatory') sc553_cascade_loopback_config = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 4, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('none', 1), ('payload', 2), ('lineloop', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553CascadeLoopbackConfig.setStatus('mandatory') sc553_configuration_save = mib_scalar((1, 3, 6, 1, 4, 1, 498, 6, 11, 2, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('norm', 1), ('saveall', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553ConfigurationSave.setStatus('mandatory') sc553_diag_table = mib_table((1, 3, 6, 1, 4, 1, 498, 6, 11, 3, 1)) if mibBuilder.loadTexts: sc553DiagTable.setStatus('mandatory') sc553_diag_entry = mib_table_row((1, 3, 6, 1, 4, 1, 498, 6, 11, 3, 1, 1)).setIndexNames((0, 'GDC-SC553-MIB', 'sc553DiagIndex')) if mibBuilder.loadTexts: sc553DiagEntry.setStatus('mandatory') sc553_diag_index = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 3, 1, 1, 1), s_cinstance()).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553DiagIndex.setStatus('mandatory') sc553_diag_test_duration = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 3, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16))).clone(namedValues=named_values(('testTime30Secs', 1), ('testTime1Min', 2), ('testTime2Mins', 3), ('testTime3Mins', 4), ('testTime4Mins', 5), ('testTime5Mins', 6), ('testTime6Mins', 7), ('testTime7Mins', 8), ('testTime8Mins', 9), ('testTime9Mins', 10), ('testTime10Mins', 11), ('testTime15Mins', 12), ('testTime20Mins', 13), ('testTime25Mins', 14), ('testTime30Mins', 15), ('testTimeInfinite', 16)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553DiagTestDuration.setStatus('mandatory') sc553_diag_prog_pattern = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 3, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553DiagProgPattern.setStatus('mandatory') sc553_insert_bit_error = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 3, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('insertBitErrorNorm', 1), ('insertOneBitError', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553InsertBitError.setStatus('mandatory') sc553_diag_ds0_number = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 3, 1, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(1, 24))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553DiagDS0Number.setStatus('mandatory') sc553_diag_t1_self_test_pattern = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 3, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('t1511Pattern', 1), ('t12047Pattern', 2), ('t1QRSPattern', 3), ('t1ProgPattern', 4), ('t13in24', 5)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553DiagT1SelfTestPattern.setStatus('mandatory') sc553_diag_t1_test = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 3, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('t1SelfTest', 1), ('t1LocalSelfTest', 2), ('t1RemoteSelfTest', 3), ('t1LocalTest', 4), ('t1RemoteTest', 5), ('t1NetworkInterface', 6), ('t1LineLoopback', 7), ('t1PayLoadLoopback', 8), ('t1NoTest', 9)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553DiagT1Test.setStatus('mandatory') sc553_diag_ds0_self_test_pattern = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 3, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('ds0511Pattern', 1), ('ds02047Pattern', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553DiagDS0SelfTestPattern.setStatus('mandatory') sc553_diag_ds0_test = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 3, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('ds0SelfTest', 1), ('ds0CircuitDelay', 2), ('ds0Loopback', 3), ('ds0NoDS0Test', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553DiagDS0Test.setStatus('mandatory') sc553_diag_channel_self_test_pattern = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 3, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('chan511Pattern', 1), ('chan2047Pattern', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553DiagChannelSelfTestPattern.setStatus('mandatory') sc553_diag_channel_test = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 3, 1, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('chanSelfTest', 1), ('chanLocalSelfTest', 2), ('chanRemoteSelfTest', 3), ('chandigitalLoop', 4), ('chanLocalLoop', 5), ('chanRemoteDataLoop', 6), ('chanNoTest', 7)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553DiagChannelTest.setStatus('mandatory') sc553_diag_test_results = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 3, 1, 1, 12), octet_string().subtype(subtypeSpec=value_size_constraint(4, 4)).setFixedLength(4)).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553DiagTestResults.setStatus('mandatory') sc553_diag_test_status = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 3, 1, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18))).clone(namedValues=named_values(('statNoTestinProgress', 1), ('statT1SelfTest', 2), ('statT1LocalSelfTest', 3), ('statT1RemoteSelfTest', 4), ('statT1LocalTest', 5), ('statT1RemoteTest', 6), ('statT1NetworkInterface', 7), ('statT1LineLoopback', 8), ('statT1PayLoadLoopback', 9), ('statChanSelfTest', 10), ('statChanLocalSelfTest', 11), ('statChanRemoteSelfTest', 12), ('statChandigitalLoop', 13), ('statChanLocalLoop', 14), ('statChanRemoteDataLoop', 15), ('statDS0SelfTest', 16), ('statDS0CircuitDelay', 17), ('statDS0Loopback', 18)))).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553DiagTestStatus.setStatus('mandatory') sc553_diag_reset_test_to_normal = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 3, 1, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('normal', 1), ('resetTest', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553DiagResetTestToNormal.setStatus('mandatory') sc553_diag_reset_test_results = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 3, 1, 1, 15), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('normal', 1), ('resetTestResult', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553DiagResetTestResults.setStatus('mandatory') sc553_diag_t1_test_direction = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 3, 1, 1, 16), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('toNetwork', 1), ('toCascade', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553DiagT1TestDirection.setStatus('mandatory') sc553_diag_ds0_test_direction = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 3, 1, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('toNetwork', 1), ('toCascade', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553DiagDS0TestDirection.setStatus('mandatory') sc553_maintenance_table = mib_table((1, 3, 6, 1, 4, 1, 498, 6, 11, 4, 1)) if mibBuilder.loadTexts: sc553MaintenanceTable.setStatus('mandatory') sc553_maintenance_entry = mib_table_row((1, 3, 6, 1, 4, 1, 498, 6, 11, 4, 1, 1)).setIndexNames((0, 'GDC-SC553-MIB', 'sc553MaintenanceIndex')) if mibBuilder.loadTexts: sc553MaintenanceEntry.setStatus('mandatory') sc553_maintenance_index = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 4, 1, 1, 1), s_cinstance()).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553MaintenanceIndex.setStatus('mandatory') sc553_led_status = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 4, 1, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(3, 3)).setFixedLength(3)).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553LedStatus.setStatus('mandatory') sc553_soft_reset = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 4, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('norm', 1), ('reset', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553SoftReset.setStatus('mandatory') sc553_default_init = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 4, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('normal', 1), ('factoryDefault', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553DefaultInit.setStatus('mandatory') sc553_front_panel = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 4, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('inhibit', 1), ('enable', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553FrontPanel.setStatus('mandatory') sc553_product_type = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 4, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('sc553', 1)))).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553ProductType.setStatus('mandatory') sc553_reset_statistics = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 4, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('norm', 1), ('reset', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553ResetStatistics.setStatus('mandatory') sc553_valid_user_intervals = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 4, 1, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 96))).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553ValidUserIntervals.setStatus('mandatory') sc553_valid_network_intervals = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 4, 1, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 96))).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553ValidNetworkIntervals.setStatus('mandatory') sc553_valid_far_end_intervals = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 4, 1, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 96))).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553ValidFarEndIntervals.setStatus('mandatory') sc553_cascade_present = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 4, 1, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('notPresent', 1), ('present', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553CascadePresent.setStatus('mandatory') sc553_receive_level = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 4, 1, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('invalidNiDSX1', 1), ('noSignal', 2), ('pos2toNeg7andOneHalf', 3), ('neg7andOneHalftoNeg15', 4), ('neg15toNeg22andOneHalf', 5), ('lessThanNeg22andOneHalf', 6)))).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553ReceiveLevel.setStatus('mandatory') sc553_dte_stat = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 4, 1, 1, 13), octet_string().subtype(subtypeSpec=value_size_constraint(2, 2)).setFixedLength(2)).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553DteStat.setStatus('mandatory') sc553_cas_receive_level = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 4, 1, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('invalidNiDSX1', 1), ('noSignal', 2), ('pos2toNeg7andOneHalf', 3), ('neg7andOneHalftoNeg15', 4), ('neg15toNeg22andOneHalf', 5), ('lessThanNeg22andOneHalf', 6)))).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553CasReceiveLevel.setStatus('mandatory') sc553_shelf_type = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 4, 1, 1, 15), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('spectracomm', 1), ('twinPack', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553ShelfType.setStatus('mandatory') sc553_twin_pack_power_supply = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 4, 1, 1, 16), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('none', 1), ('bottomOnly', 2), ('topOnly', 3), ('both', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553TwinPackPowerSupply.setStatus('mandatory') sc553_test_all_leds = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 4, 1, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('allLedsON', 1), ('allLedsOFF', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553TestAllLeds.setStatus('mandatory') sc553_alarm_data = mib_identifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1)) sc553_no_response_alm = mib_identifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 1)) sc553_diag_rx_err_alm = mib_identifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 2)) sc553_power_up_alm = mib_identifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 3)) sc553_nv_ram_corrupt_alm = mib_identifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 4)) sc553_unit_failure_alm = mib_identifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 5)) sc553_status_change_alm = mib_identifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 6)) sc553_unsolicited_test_alm = mib_identifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 7)) sc553_front_panel_test_alm = mib_identifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 8)) sc553_config_change_alm = mib_identifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 9)) sc553_timing_loss_alm = mib_identifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 10)) sc553_loss_of_signal_alm = mib_identifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 11)) sc553_loss_of_frame_alm = mib_identifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 12)) sc553_alarm_indication_signal_alm = mib_identifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 13)) sc553_received_yellow_alm = mib_identifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 14)) sc553_unavailable_signal_state_alm = mib_identifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 15)) sc553_crc_errors_alm = mib_identifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 16)) sc553_bipolar_violations_alm = mib_identifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 17)) sc553_low_average_density_alm = mib_identifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 18)) sc553_external_tx_clock_loss_alm = mib_identifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 19)) sc553_dcd_loss_alm = mib_identifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 20)) sc553_dsr_loss_alm = mib_identifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 21)) sc553_dtr_loss_alm = mib_identifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 22)) sc553_rxd_no_transitions_alm = mib_identifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 23)) sc553_txd_no_transitions_alm = mib_identifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 24)) sc553_redundancy_on = mib_identifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 25)) sc553_remote_not_responding = mib_identifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 26)) sc553_top_power_supply_fail = mib_identifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 27)) sc553_bottom_power_supply_fail = mib_identifier((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 1, 28)) sc553_alarm_config_table = mib_table((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 2)) if mibBuilder.loadTexts: sc553AlarmConfigTable.setStatus('mandatory') sc553_alarm_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 2, 1)).setIndexNames((0, 'GDC-SC553-MIB', 'sc553AlarmConfigIndex'), (0, 'GDC-SC553-MIB', 'sc553AlarmConfigIdentifier')) if mibBuilder.loadTexts: sc553AlarmConfigEntry.setStatus('mandatory') sc553_alarm_config_index = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 2, 1, 1), s_cinstance()).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553AlarmConfigIndex.setStatus('mandatory') sc553_alarm_config_identifier = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 2, 1, 2), object_identifier()).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553AlarmConfigIdentifier.setStatus('mandatory') sc553_alarm_count_window = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('reportAll', 1), ('last1sec', 2), ('last1min', 3), ('last1hr', 4), ('reportWhen', 5)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553AlarmCountWindow.setStatus('mandatory') sc553_alarm_count_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 5, 2, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('thresGT10', 1), ('thresGT100', 2), ('thresGT1000', 3), ('thresGT10000', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553AlarmCountThreshold.setStatus('mandatory') sc553_current_user_table = mib_table((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 1)) if mibBuilder.loadTexts: sc553CurrentUserTable.setStatus('mandatory') sc553_current_user_entry = mib_table_row((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 1, 1)).setIndexNames((0, 'GDC-SC553-MIB', 'sc553CurrentUserIndex')) if mibBuilder.loadTexts: sc553CurrentUserEntry.setStatus('mandatory') sc553_current_user_index = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 1, 1, 1), s_cinstance()).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553CurrentUserIndex.setStatus('mandatory') sc553_current_user_stat = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 1, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(15, 15)).setFixedLength(15)).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553CurrentUserStat.setStatus('mandatory') sc553_current_network_table = mib_table((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 2)) if mibBuilder.loadTexts: sc553CurrentNetworkTable.setStatus('mandatory') sc553_current_network_entry = mib_table_row((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 2, 1)).setIndexNames((0, 'GDC-SC553-MIB', 'sc553CurrentNetworkIndex')) if mibBuilder.loadTexts: sc553CurrentNetworkEntry.setStatus('mandatory') sc553_current_network_index = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 2, 1, 1), s_cinstance()).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553CurrentNetworkIndex.setStatus('mandatory') sc553_current_network_stat = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 2, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(15, 15)).setFixedLength(15)).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553CurrentNetworkStat.setStatus('mandatory') sc553_current_far_end_table = mib_table((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 3)) if mibBuilder.loadTexts: sc553CurrentFarEndTable.setStatus('mandatory') sc553_current_far_end_entry = mib_table_row((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 3, 1)).setIndexNames((0, 'GDC-SC553-MIB', 'sc553CurrentFarEndIndex')) if mibBuilder.loadTexts: sc553CurrentFarEndEntry.setStatus('mandatory') sc553_current_far_end_index = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 3, 1, 1), s_cinstance()).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553CurrentFarEndIndex.setStatus('mandatory') sc553_current_far_end_stat = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 3, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(15, 15)).setFixedLength(15)).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553CurrentFarEndStat.setStatus('mandatory') sc553_total_user_table = mib_table((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 4)) if mibBuilder.loadTexts: sc553TotalUserTable.setStatus('mandatory') sc553_total_user_entry = mib_table_row((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 4, 1)).setIndexNames((0, 'GDC-SC553-MIB', 'sc553TotalUserIndex')) if mibBuilder.loadTexts: sc553TotalUserEntry.setStatus('mandatory') sc553_total_user_index = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 4, 1, 1), s_cinstance()).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553TotalUserIndex.setStatus('mandatory') sc553_total_user_stat = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 4, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(15, 15)).setFixedLength(15)).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553TotalUserStat.setStatus('mandatory') sc553_total_network_table = mib_table((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 5)) if mibBuilder.loadTexts: sc553TotalNetworkTable.setStatus('mandatory') sc553_total_network_entry = mib_table_row((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 5, 1)).setIndexNames((0, 'GDC-SC553-MIB', 'sc553TotalNetworkIndex')) if mibBuilder.loadTexts: sc553TotalNetworkEntry.setStatus('mandatory') sc553_total_network_index = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 5, 1, 1), s_cinstance()).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553TotalNetworkIndex.setStatus('mandatory') sc553_total_network_stat = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 5, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(15, 15)).setFixedLength(15)).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553TotalNetworkStat.setStatus('mandatory') sc553_total_far_end_table = mib_table((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 6)) if mibBuilder.loadTexts: sc553TotalFarEndTable.setStatus('mandatory') sc553_total_far_end_entry = mib_table_row((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 6, 1)).setIndexNames((0, 'GDC-SC553-MIB', 'sc553TotalFarEndIndex')) if mibBuilder.loadTexts: sc553TotalFarEndEntry.setStatus('mandatory') sc553_total_far_end_index = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 6, 1, 1), s_cinstance()).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553TotalFarEndIndex.setStatus('mandatory') sc553_total_far_end_stat = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 6, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(15, 15)).setFixedLength(15)).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553TotalFarEndStat.setStatus('mandatory') sc553_user_interval_table = mib_table((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 7)) if mibBuilder.loadTexts: sc553UserIntervalTable.setStatus('mandatory') sc553_user_interval_entry = mib_table_row((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 7, 1)).setIndexNames((0, 'GDC-SC553-MIB', 'sc553UserIntervalIndex'), (0, 'GDC-SC553-MIB', 'sc553UserIntervalNumber')) if mibBuilder.loadTexts: sc553UserIntervalEntry.setStatus('mandatory') sc553_user_interval_index = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 7, 1, 1), s_cinstance()).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553UserIntervalIndex.setStatus('mandatory') sc553_user_interval_number = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 7, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 96))).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553UserIntervalNumber.setStatus('mandatory') sc553_user_interval_stats = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 7, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(15, 15)).setFixedLength(15)).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553UserIntervalStats.setStatus('mandatory') sc553_network_interval_table = mib_table((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 8)) if mibBuilder.loadTexts: sc553NetworkIntervalTable.setStatus('mandatory') sc553_network_interval_entry = mib_table_row((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 8, 1)).setIndexNames((0, 'GDC-SC553-MIB', 'sc553NetworkIntervalIndex'), (0, 'GDC-SC553-MIB', 'sc553NetworkIntervalNumber')) if mibBuilder.loadTexts: sc553NetworkIntervalEntry.setStatus('mandatory') sc553_network_interval_index = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 8, 1, 1), s_cinstance()).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553NetworkIntervalIndex.setStatus('mandatory') sc553_network_interval_number = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 8, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 96))).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553NetworkIntervalNumber.setStatus('mandatory') sc553_network_interval_stats = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 8, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(15, 15)).setFixedLength(15)).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553NetworkIntervalStats.setStatus('mandatory') sc553_far_end_interval_table = mib_table((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 9)) if mibBuilder.loadTexts: sc553FarEndIntervalTable.setStatus('mandatory') sc553_far_end_interval_entry = mib_table_row((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 9, 1)).setIndexNames((0, 'GDC-SC553-MIB', 'sc553FarEndIntervalIndex'), (0, 'GDC-SC553-MIB', 'sc553FarEndIntervalNumber')) if mibBuilder.loadTexts: sc553FarEndIntervalEntry.setStatus('mandatory') sc553_far_end_interval_index = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 9, 1, 1), s_cinstance()).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553FarEndIntervalIndex.setStatus('mandatory') sc553_far_end_interval_number = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 9, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 96))).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553FarEndIntervalNumber.setStatus('mandatory') sc553_far_end_interval_stats = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 9, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(15, 15)).setFixedLength(15)).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553FarEndIntervalStats.setStatus('mandatory') sc553_store_user_totals = mib_scalar((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('normal', 1), ('store', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553StoreUserTotals.setStatus('mandatory') sc553_store_user_intervals = mib_scalar((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('normal', 1), ('store', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sc553StoreUserIntervals.setStatus('mandatory') sc553_shelf_user_totals = mib_scalar((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 12), octet_string().subtype(subtypeSpec=value_size_constraint(0, 465))).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553ShelfUserTotals.setStatus('mandatory') sc553_shelf_user_intvls_table = mib_table((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 13)) if mibBuilder.loadTexts: sc553ShelfUserIntvlsTable.setStatus('mandatory') sc553_shelf_user_intervals_entry = mib_table_row((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 13, 1)).setIndexNames((0, 'GDC-SC553-MIB', 'sc553ShelfUserIntvlsIndex')) if mibBuilder.loadTexts: sc553ShelfUserIntervalsEntry.setStatus('mandatory') sc553_shelf_user_intvls_index = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 13, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 96))).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553ShelfUserIntvlsIndex.setStatus('mandatory') sc553_shelf_user_intervals = mib_table_column((1, 3, 6, 1, 4, 1, 498, 6, 11, 6, 13, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 465))).setMaxAccess('readonly') if mibBuilder.loadTexts: sc553ShelfUserIntervals.setStatus('mandatory') mibBuilder.exportSymbols('GDC-SC553-MIB', sc553TwinPackPowerSupply=sc553TwinPackPowerSupply, sc553ChannelNetworkPosition=sc553ChannelNetworkPosition, sc553NoResponseAlm=sc553NoResponseAlm, sc553CurrentNetworkEntry=sc553CurrentNetworkEntry, sc553FarEndIntervalTable=sc553FarEndIntervalTable, sc553CurrentFarEndStat=sc553CurrentFarEndStat, sc553NetworkAdminLineType=sc553NetworkAdminLineType, sc553ProductType=sc553ProductType, sc553TotalFarEndEntry=sc553TotalFarEndEntry, sc553AlarmConfigIndex=sc553AlarmConfigIndex, sc553CasReceiveLevel=sc553CasReceiveLevel, sc553Diagnostics=sc553Diagnostics, sc553Alarms=sc553Alarms, sc553NetworkConfigIndex=sc553NetworkConfigIndex, sc553DiagT1Test=sc553DiagT1Test, sc553ChannelDS0AllocationScheme=sc553ChannelDS0AllocationScheme, sc553DiagT1SelfTestPattern=sc553DiagT1SelfTestPattern, sc553AlarmIndicationSignalAlm=sc553AlarmIndicationSignalAlm, sc553TXDNoTransitionsAlm=sc553TXDNoTransitionsAlm, sc553NetworkFallbackClockSource=sc553NetworkFallbackClockSource, sc553ValidNetworkIntervals=sc553ValidNetworkIntervals, sc553NetworkIntervalStats=sc553NetworkIntervalStats, sc553FarEndIntervalNumber=sc553FarEndIntervalNumber, sc553CascadeConfigIndex=sc553CascadeConfigIndex, sc553ShelfUserIntvlsIndex=sc553ShelfUserIntvlsIndex, sc553ShelfUserIntervals=sc553ShelfUserIntervals, sc553CrcErrorsAlm=sc553CrcErrorsAlm, sc553CascadeAISLoopdown=sc553CascadeAISLoopdown, sc553NetworkOperLineType=sc553NetworkOperLineType, sc553LowAverageDensityAlm=sc553LowAverageDensityAlm, sc553NetworkIntervalIndex=sc553NetworkIntervalIndex, sc553ReceivedYellowAlm=sc553ReceivedYellowAlm, sc553NetworkIntervalNumber=sc553NetworkIntervalNumber, sc553FrontPanelTestAlm=sc553FrontPanelTestAlm, sc553UserIntervalTable=sc553UserIntervalTable, sc553CascadeLineCoding=sc553CascadeLineCoding, sc553DiagT1TestDirection=sc553DiagT1TestDirection, sc553MaintenanceTable=sc553MaintenanceTable, sc553ValidFarEndIntervals=sc553ValidFarEndIntervals, sc553StoreUserTotals=sc553StoreUserTotals, sc553DefaultInit=sc553DefaultInit, sc553AlarmData=sc553AlarmData, sc553LedStatus=sc553LedStatus, sc553CascadeInterfaceType=sc553CascadeInterfaceType, sc553TimingLossAlm=sc553TimingLossAlm, sc553CurrentUserIndex=sc553CurrentUserIndex, sc553AlarmCountWindow=sc553AlarmCountWindow, sc553Version=sc553Version, sc553MaintenanceIndex=sc553MaintenanceIndex, sc553TotalFarEndIndex=sc553TotalFarEndIndex, sc553CascadeOperLineBuildout=sc553CascadeOperLineBuildout, sc553SoftReset=sc553SoftReset, sc553TotalUserEntry=sc553TotalUserEntry, sc553NetworkIntervalTable=sc553NetworkIntervalTable, sc553StoredFirmwareStatus=sc553StoredFirmwareStatus, sc553TotalNetworkEntry=sc553TotalNetworkEntry, sc553DiagTestStatus=sc553DiagTestStatus, sc553ResetStatistics=sc553ResetStatistics, sc553PowerUpAlm=sc553PowerUpAlm, sc553ChannelActivePort=sc553ChannelActivePort, sc553CascadeAdminLineType=sc553CascadeAdminLineType, sc553FarEndIntervalIndex=sc553FarEndIntervalIndex, sc553NetworkOperLineBuildout=sc553NetworkOperLineBuildout, sc553DiagProgPattern=sc553DiagProgPattern, sc553ChannelRTSCTSControl=sc553ChannelRTSCTSControl, sc553ValidUserIntervals=sc553ValidUserIntervals, sc553TotalFarEndStat=sc553TotalFarEndStat, sc553NetworkIntervalEntry=sc553NetworkIntervalEntry, sc553NetworkLineCoding=sc553NetworkLineCoding, sc553TotalNetworkStat=sc553TotalNetworkStat, sc553ActiveFirmwareRev=sc553ActiveFirmwareRev, sc553ChannelLocalDCD=sc553ChannelLocalDCD, sc553AlarmConfigEntry=sc553AlarmConfigEntry, sc553Performance=sc553Performance, sc553ChannelNetworkNumber=sc553ChannelNetworkNumber, sc553ConfigChangeAlm=sc553ConfigChangeAlm, sc553=sc553, sc553DiagTable=sc553DiagTable, sc553DiagIndex=sc553DiagIndex, sc553ChannelConfigEntry=sc553ChannelConfigEntry, sc553ChannelOperClkInvert=sc553ChannelOperClkInvert, sc553TotalUserTable=sc553TotalUserTable, sc553DTRLossAlm=sc553DTRLossAlm, sc553UserIntervalEntry=sc553UserIntervalEntry, sc553NetworkAdminLineBuildout=sc553NetworkAdminLineBuildout, sc553FarEndIntervalEntry=sc553FarEndIntervalEntry, sc553WakeUpRemote=sc553WakeUpRemote, sc553VersionTable=sc553VersionTable, sc553VersionEntry=sc553VersionEntry, sc553DiagTestDuration=sc553DiagTestDuration, sc553ChannelConfigIndex=sc553ChannelConfigIndex, sc553CurrentFarEndIndex=sc553CurrentFarEndIndex, sc553CascadePresent=sc553CascadePresent, sc553ExternalTXClockLossAlm=sc553ExternalTXClockLossAlm, sc553CurrentUserStat=sc553CurrentUserStat, sc553CascadePreequalization=sc553CascadePreequalization, sc553ShelfUserIntvlsTable=sc553ShelfUserIntvlsTable, sc553Maintenance=sc553Maintenance, sc553ChannelStartingDS0=sc553ChannelStartingDS0, sc553TotalUserIndex=sc553TotalUserIndex, sc553CascadeConfigEntry=sc553CascadeConfigEntry, sc553BootRev=sc553BootRev, sc553AlarmConfigIdentifier=sc553AlarmConfigIdentifier, sc553UserIntervalIndex=sc553UserIntervalIndex, sc553NvRamCorruptAlm=sc553NvRamCorruptAlm, sc553DiagEntry=sc553DiagEntry, sc553DiagRxErrAlm=sc553DiagRxErrAlm, sc553NetworkFDLdcc=sc553NetworkFDLdcc, sc553DiagChannelTest=sc553DiagChannelTest, sc553NetworkOnesDensity=sc553NetworkOnesDensity, sc553DiagTestResults=sc553DiagTestResults, sc553UnsolicitedTestAlm=sc553UnsolicitedTestAlm, sc553ChannelChannelType=sc553ChannelChannelType, sc553NetworkConfigTable=sc553NetworkConfigTable, sc553InsertBitError=sc553InsertBitError, sc553UserIntervalNumber=sc553UserIntervalNumber, sc553ChannelConfigTable=sc553ChannelConfigTable, sc553CascadeFDLdcc=sc553CascadeFDLdcc, sc553CurrentNetworkStat=sc553CurrentNetworkStat, sc553LossOfSignalAlm=sc553LossOfSignalAlm, sc553NetworkPreequalization=sc553NetworkPreequalization, sc553UnavailableSignalStateAlm=sc553UnavailableSignalStateAlm, sc553FarEndIntervalStats=sc553FarEndIntervalStats, sc553ShelfUserIntervalsEntry=sc553ShelfUserIntervalsEntry, sc553CurrentFarEndTable=sc553CurrentFarEndTable, sc553BipolarViolationsAlm=sc553BipolarViolationsAlm, sc553TotalNetworkTable=sc553TotalNetworkTable, sc553UserIntervalStats=sc553UserIntervalStats, sc553TopPowerSupplyFail=sc553TopPowerSupplyFail, sc553ShelfType=sc553ShelfType, sc553VersionIndex=sc553VersionIndex, sc553FrontPanel=sc553FrontPanel, sc553AlarmConfigTable=sc553AlarmConfigTable, sc553ChannelDataInvert=sc553ChannelDataInvert, sc553NetworkTransmitClockSource=sc553NetworkTransmitClockSource, sc553DiagChannelSelfTestPattern=sc553DiagChannelSelfTestPattern, sc553CurrentUserTable=sc553CurrentUserTable, dsx1=dsx1, sc553NetworkFdl=sc553NetworkFdl, sc553NetworkConfigEntry=sc553NetworkConfigEntry, sc553ReceiveLevel=sc553ReceiveLevel, sc553CascadeAdminLineBuildout=sc553CascadeAdminLineBuildout, sc553channelRedundancy=sc553channelRedundancy, sc553RXDNoTransitionsAlm=sc553RXDNoTransitionsAlm, sc553CurrentFarEndEntry=sc553CurrentFarEndEntry, sc553CascadeFdl=sc553CascadeFdl, sc553CascadeLoopbackConfig=sc553CascadeLoopbackConfig, sc553TotalNetworkIndex=sc553TotalNetworkIndex, sc553DteStat=sc553DteStat, sc553DiagDS0SelfTestPattern=sc553DiagDS0SelfTestPattern, sc553CurrentNetworkIndex=sc553CurrentNetworkIndex, sc553CascadeConfigTable=sc553CascadeConfigTable, sc553BottomPowerSupplyFail=sc553BottomPowerSupplyFail, sc553ChannelAdminClkInvert=sc553ChannelAdminClkInvert, sc553DSRLossAlm=sc553DSRLossAlm, sc553UnitFailureAlm=sc553UnitFailureAlm, sc553ChannelInbandLoopdown=sc553ChannelInbandLoopdown, sc553DiagDS0TestDirection=sc553DiagDS0TestDirection, sc553CascadeOperLineType=sc553CascadeOperLineType, sc553NetworkAISLoopdown=sc553NetworkAISLoopdown, sc553CascadeInService=sc553CascadeInService, sc553DiagResetTestToNormal=sc553DiagResetTestToNormal, sc553MIBversion=sc553MIBversion, sc553TotalFarEndTable=sc553TotalFarEndTable, sc553StoredFirmwareRev=sc553StoredFirmwareRev, sc553DiagDS0Number=sc553DiagDS0Number, sc553StatusChangeAlm=sc553StatusChangeAlm, sc553CurrentNetworkTable=sc553CurrentNetworkTable, sc553ChannelBaseRate=sc553ChannelBaseRate, sc553ConfigurationSave=sc553ConfigurationSave, sc553SwitchActiveFirmware=sc553SwitchActiveFirmware, sc553RemoteNotResponding=sc553RemoteNotResponding, sc553ChannelInService=sc553ChannelInService, sc553ChannelEIAtestLeads=sc553ChannelEIAtestLeads, sc553ShelfUserTotals=sc553ShelfUserTotals, sc553ChannelInbandDccMode=sc553ChannelInbandDccMode, sc553DCDLossAlm=sc553DCDLossAlm, sc553NetworkInterfaceType=sc553NetworkInterfaceType, sc553MaintenanceEntry=sc553MaintenanceEntry, sc553ChannelSplitTiming=sc553ChannelSplitTiming, sc553RedundancyOn=sc553RedundancyOn, sc553CurrentUserEntry=sc553CurrentUserEntry, sc553ChannelLocalDSR=sc553ChannelLocalDSR, sc553NetworkLoopbackConfig=sc553NetworkLoopbackConfig, sc553LossOfFrameAlm=sc553LossOfFrameAlm, sc553ChannelNumberOfDS0s=sc553ChannelNumberOfDS0s, sc553DiagDS0Test=sc553DiagDS0Test, sc553Configuration=sc553Configuration, sc553TotalUserStat=sc553TotalUserStat, sc553StoreUserIntervals=sc553StoreUserIntervals, sc553DiagResetTestResults=sc553DiagResetTestResults, sc553AlarmCountThreshold=sc553AlarmCountThreshold, sc553DownloadingMode=sc553DownloadingMode, sc553ChannelInbandLoop=sc553ChannelInbandLoop, sc553TestAllLeds=sc553TestAllLeds)
class PedidoNotFoundException(Exception): pass class RequiredDataException(Exception): pass
class Pedidonotfoundexception(Exception): pass class Requireddataexception(Exception): pass
PADDLE_WIDTH = 20 PADDLE_HEIGHT = 90 AI_PADDLE_MAX_SPEED = 20 PADDLE_SPEED_SCALING = 0.6 PADDLE_MAX_SPEED = None BALL_X_SPEED = 12 BALL_BOUNCE_ON_PADDLE_SCALE = 0.40
paddle_width = 20 paddle_height = 90 ai_paddle_max_speed = 20 paddle_speed_scaling = 0.6 paddle_max_speed = None ball_x_speed = 12 ball_bounce_on_paddle_scale = 0.4
class UserAgents: @staticmethod def mac(): return 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36' @staticmethod def android(): return 'Mozilla/5.0 (Linux; Android 11; IN2021) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.210 Mobile Safari/537.36'
class Useragents: @staticmethod def mac(): return 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36' @staticmethod def android(): return 'Mozilla/5.0 (Linux; Android 11; IN2021) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.210 Mobile Safari/537.36'
#views.py class CustomerServieViews(object): def customer_service(self, request): if request.user.is_anonymous(): return HttpResponseRedirect('/accounts/login') try: customer_service = models.Customer_Service.objects.get(pk=models.Customer_Service.objects.all()[0].id) except: customer_service = models.Customer_Service() Data_Bank_FormSet = inlineformset_factory(models.Customer_Service, models.Data_Bank_Customer_Service, form=Data_Bank_Customer_Service_Form, extra=1, can_delete=False) if request.method == 'GET': form = Customer_Service_Form(instance=customer_service) formset_data_bank = Data_Bank_FormSet(instance=customer_service) else: form = Customer_Service_Form(request.POST, instance=customer_service) formset_data_bank = Data_Bank_FormSet(request.POST, instance=customer_service) if form.is_valid() and formset_data_bank.is_valid(): formset_data_bank.save() form.save() success_msg = "Data Customer Service Berhasil Update." get_model_id = models.Customer_Service.objects.get(pk=models.Customer_Service.objects.all()[0].id) form = Customer_Service_Form(request.POST, instance=get_model_id) formset_data_bank = Data_Bank_FormSet(request.POST, instance=get_model_id) args = { 'formset_data_bank': formset_data_bank, 'user': request.user, 'request': request, 'success_msg': success_msg } args.update(csrf(request)) args['form'] = form return render_to_response('new_edit_admin_customer_service.html', args) args = { 'formset_data_bank': formset_data_bank, 'user': request.user, 'request': request } args.update(csrf(request)) args['form'] = form return render_to_response('new_edit_admin_customer_service.html', args)
class Customerservieviews(object): def customer_service(self, request): if request.user.is_anonymous(): return http_response_redirect('/accounts/login') try: customer_service = models.Customer_Service.objects.get(pk=models.Customer_Service.objects.all()[0].id) except: customer_service = models.Customer_Service() data__bank__form_set = inlineformset_factory(models.Customer_Service, models.Data_Bank_Customer_Service, form=Data_Bank_Customer_Service_Form, extra=1, can_delete=False) if request.method == 'GET': form = customer__service__form(instance=customer_service) formset_data_bank = data__bank__form_set(instance=customer_service) else: form = customer__service__form(request.POST, instance=customer_service) formset_data_bank = data__bank__form_set(request.POST, instance=customer_service) if form.is_valid() and formset_data_bank.is_valid(): formset_data_bank.save() form.save() success_msg = 'Data Customer Service Berhasil Update.' get_model_id = models.Customer_Service.objects.get(pk=models.Customer_Service.objects.all()[0].id) form = customer__service__form(request.POST, instance=get_model_id) formset_data_bank = data__bank__form_set(request.POST, instance=get_model_id) args = {'formset_data_bank': formset_data_bank, 'user': request.user, 'request': request, 'success_msg': success_msg} args.update(csrf(request)) args['form'] = form return render_to_response('new_edit_admin_customer_service.html', args) args = {'formset_data_bank': formset_data_bank, 'user': request.user, 'request': request} args.update(csrf(request)) args['form'] = form return render_to_response('new_edit_admin_customer_service.html', args)