content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
def minion_game(string): # your code goes here #string = string.lower() vowel = ['A','E','I','O','U'] kev = 0 stu = 0 n = len(string) x = n for i in range(n) : if string[i] in vowel : kev += x else : stu += x x -= 1 if kev > stu : print("Kevin",str(kev)) elif kev < stu : print("Stuart",str(stu)) else : print("Draw") if __name__ == '__main__': s = input() minion_game(s)
def minion_game(string): vowel = ['A', 'E', 'I', 'O', 'U'] kev = 0 stu = 0 n = len(string) x = n for i in range(n): if string[i] in vowel: kev += x else: stu += x x -= 1 if kev > stu: print('Kevin', str(kev)) elif kev < stu: print('Stuart', str(stu)) else: print('Draw') if __name__ == '__main__': s = input() minion_game(s)
# -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- # pylint: disable=too-many-lines # pylint: disable=unused-argument def maintenance_public_configuration_list(client): return client.list() def maintenance_public_configuration_show(client, resource_name): return client.get(resource_name=resource_name) def maintenance_applyupdate_list(client): return client.list() def maintenance_applyupdate_show(client, resource_group_name, provider_name, resource_type, resource_name, apply_update_name): return client.get(resource_group_name=resource_group_name, provider_name=provider_name, resource_type=resource_type, resource_name=resource_name, apply_update_name=apply_update_name) def maintenance_applyupdate_create(client, resource_group_name, provider_name, resource_type, resource_name): return client.create_or_update(resource_group_name=resource_group_name, provider_name=provider_name, resource_type=resource_type, resource_name=resource_name) def maintenance_applyupdate_update(client, resource_group_name, provider_name, resource_type, resource_name): return client.create_or_update(resource_group_name=resource_group_name, provider_name=provider_name, resource_type=resource_type, resource_name=resource_name) def maintenance_applyupdate_create_or_update_parent(client, resource_group_name, provider_name, resource_parent_type, resource_parent_name, resource_type, resource_name): return client.create_or_update_parent(resource_group_name=resource_group_name, provider_name=provider_name, resource_parent_type=resource_parent_type, resource_parent_name=resource_parent_name, resource_type=resource_type, resource_name=resource_name) def maintenance_applyupdate_show_parent(client, resource_group_name, resource_parent_type, resource_parent_name, provider_name, resource_type, resource_name, apply_update_name): return client.get_parent(resource_group_name=resource_group_name, resource_parent_type=resource_parent_type, resource_parent_name=resource_parent_name, provider_name=provider_name, resource_type=resource_type, resource_name=resource_name, apply_update_name=apply_update_name) def maintenance_assignment_list(client, resource_group_name, provider_name, resource_type, resource_name): return client.list(resource_group_name=resource_group_name, provider_name=provider_name, resource_type=resource_type, resource_name=resource_name) def maintenance_assignment_show(client, resource_group_name, provider_name, resource_type, resource_name, configuration_assignment_name): return client.get(resource_group_name=resource_group_name, provider_name=provider_name, resource_type=resource_type, resource_name=resource_name, configuration_assignment_name=configuration_assignment_name) def maintenance_assignment_create(client, resource_group_name, provider_name, resource_type, resource_name, configuration_assignment_name, location=None, maintenance_configuration_id=None, resource_id=None): configuration_assignment = {} if location is not None: configuration_assignment['location'] = location if maintenance_configuration_id is not None: configuration_assignment['maintenance_configuration_id'] = maintenance_configuration_id if resource_id is not None: configuration_assignment['resource_id'] = resource_id return client.create_or_update(resource_group_name=resource_group_name, provider_name=provider_name, resource_type=resource_type, resource_name=resource_name, configuration_assignment_name=configuration_assignment_name, configuration_assignment=configuration_assignment) def maintenance_assignment_update(instance, resource_group_name, provider_name, resource_type, resource_name, configuration_assignment_name, location=None, maintenance_configuration_id=None, resource_id=None): if location is not None: instance.location = location if maintenance_configuration_id is not None: instance.maintenance_configuration_id = maintenance_configuration_id if resource_id is not None: instance.resource_id = resource_id return instance def maintenance_assignment_delete(client, resource_group_name, provider_name, resource_type, resource_name, configuration_assignment_name): return client.delete(resource_group_name=resource_group_name, provider_name=provider_name, resource_type=resource_type, resource_name=resource_name, configuration_assignment_name=configuration_assignment_name) def maintenance_assignment_create_or_update_parent(client, resource_group_name, provider_name, resource_parent_type, resource_parent_name, resource_type, resource_name, configuration_assignment_name, location=None, maintenance_configuration_id=None, resource_id=None): configuration_assignment = {} if location is not None: configuration_assignment['location'] = location if maintenance_configuration_id is not None: configuration_assignment['maintenance_configuration_id'] = maintenance_configuration_id if resource_id is not None: configuration_assignment['resource_id'] = resource_id return client.create_or_update_parent(resource_group_name=resource_group_name, provider_name=provider_name, resource_parent_type=resource_parent_type, resource_parent_name=resource_parent_name, resource_type=resource_type, resource_name=resource_name, configuration_assignment_name=configuration_assignment_name, configuration_assignment=configuration_assignment) def maintenance_assignment_delete_parent(client, resource_group_name, provider_name, resource_parent_type, resource_parent_name, resource_type, resource_name, configuration_assignment_name): return client.delete_parent(resource_group_name=resource_group_name, provider_name=provider_name, resource_parent_type=resource_parent_type, resource_parent_name=resource_parent_name, resource_type=resource_type, resource_name=resource_name, configuration_assignment_name=configuration_assignment_name) def maintenance_assignment_list_parent(client, resource_group_name, provider_name, resource_parent_type, resource_parent_name, resource_type, resource_name): return client.list_parent(resource_group_name=resource_group_name, provider_name=provider_name, resource_parent_type=resource_parent_type, resource_parent_name=resource_parent_name, resource_type=resource_type, resource_name=resource_name) def maintenance_assignment_show_parent(client, resource_group_name, provider_name, resource_parent_type, resource_parent_name, resource_type, resource_name, configuration_assignment_name): return client.get_parent(resource_group_name=resource_group_name, provider_name=provider_name, resource_parent_type=resource_parent_type, resource_parent_name=resource_parent_name, resource_type=resource_type, resource_name=resource_name, configuration_assignment_name=configuration_assignment_name) def maintenance_configuration_list(client): return client.list() def maintenance_configuration_show(client, resource_group_name, resource_name): return client.get(resource_group_name=resource_group_name, resource_name=resource_name) def maintenance_configuration_create(client, resource_group_name, resource_name, location=None, tags=None, namespace=None, extension_properties=None, maintenance_scope=None, visibility=None, start_date_time=None, expiration_date_time=None, duration=None, time_zone=None, recur_every=None, reboot_setting=None, windows_parameters=None, linux_parameters=None, pre_tasks=None, post_tasks=None): configuration = {} if location is not None: configuration['location'] = location if tags is not None: configuration['tags'] = tags if namespace is not None: configuration['namespace'] = namespace if extension_properties is not None: configuration['extension_properties'] = extension_properties if maintenance_scope is not None: configuration['maintenance_scope'] = maintenance_scope if visibility is not None: configuration['visibility'] = visibility if start_date_time is not None: configuration['start_date_time'] = start_date_time if expiration_date_time is not None: configuration['expiration_date_time'] = expiration_date_time if duration is not None: configuration['duration'] = duration if time_zone is not None: configuration['time_zone'] = time_zone if recur_every is not None: configuration['recur_every'] = recur_every configuration['install_patches'] = {} if reboot_setting is not None: configuration['install_patches']['reboot_setting'] = reboot_setting else: configuration['install_patches']['reboot_setting'] = "IfRequired" if windows_parameters is not None: configuration['install_patches']['windows_parameters'] = windows_parameters if linux_parameters is not None: configuration['install_patches']['linux_parameters'] = linux_parameters if pre_tasks is not None: configuration['install_patches']['pre_tasks'] = pre_tasks if post_tasks is not None: configuration['install_patches']['post_tasks'] = post_tasks if len(configuration['install_patches']) == 0: del configuration['install_patches'] return client.create_or_update(resource_group_name=resource_group_name, resource_name=resource_name, configuration=configuration) def maintenance_configuration_update(client, resource_group_name, resource_name, location=None, tags=None, namespace=None, extension_properties=None, maintenance_scope=None, visibility=None, start_date_time=None, expiration_date_time=None, duration=None, time_zone=None, recur_every=None, reboot_setting=None, windows_parameters=None, linux_parameters=None, pre_tasks=None, post_tasks=None): configuration = {} if location is not None: configuration['location'] = location if tags is not None: configuration['tags'] = tags if namespace is not None: configuration['namespace'] = namespace if extension_properties is not None: configuration['extension_properties'] = extension_properties if maintenance_scope is not None: configuration['maintenance_scope'] = maintenance_scope if visibility is not None: configuration['visibility'] = visibility if start_date_time is not None: configuration['start_date_time'] = start_date_time if expiration_date_time is not None: configuration['expiration_date_time'] = expiration_date_time if duration is not None: configuration['duration'] = duration if time_zone is not None: configuration['time_zone'] = time_zone if recur_every is not None: configuration['recur_every'] = recur_every configuration['install_patches'] = {} if reboot_setting is not None: configuration['install_patches']['reboot_setting'] = reboot_setting else: configuration['install_patches']['reboot_setting'] = "IfRequired" if windows_parameters is not None: configuration['install_patches']['windows_parameters'] = windows_parameters if linux_parameters is not None: configuration['install_patches']['linux_parameters'] = linux_parameters if pre_tasks is not None: configuration['install_patches']['pre_tasks'] = pre_tasks if post_tasks is not None: configuration['install_patches']['post_tasks'] = post_tasks if len(configuration['install_patches']) == 0: del configuration['install_patches'] return client.update(resource_group_name=resource_group_name, resource_name=resource_name, configuration=configuration) def maintenance_configuration_delete(client, resource_group_name, resource_name): return client.delete(resource_group_name=resource_group_name, resource_name=resource_name) def maintenance_update_list(client, resource_group_name, provider_name, resource_type, resource_name): return client.list(resource_group_name=resource_group_name, provider_name=provider_name, resource_type=resource_type, resource_name=resource_name) def maintenance_update_list_parent(client, resource_group_name, provider_name, resource_parent_type, resource_parent_name, resource_type, resource_name): return client.list_parent(resource_group_name=resource_group_name, provider_name=provider_name, resource_parent_type=resource_parent_type, resource_parent_name=resource_parent_name, resource_type=resource_type, resource_name=resource_name)
def maintenance_public_configuration_list(client): return client.list() def maintenance_public_configuration_show(client, resource_name): return client.get(resource_name=resource_name) def maintenance_applyupdate_list(client): return client.list() def maintenance_applyupdate_show(client, resource_group_name, provider_name, resource_type, resource_name, apply_update_name): return client.get(resource_group_name=resource_group_name, provider_name=provider_name, resource_type=resource_type, resource_name=resource_name, apply_update_name=apply_update_name) def maintenance_applyupdate_create(client, resource_group_name, provider_name, resource_type, resource_name): return client.create_or_update(resource_group_name=resource_group_name, provider_name=provider_name, resource_type=resource_type, resource_name=resource_name) def maintenance_applyupdate_update(client, resource_group_name, provider_name, resource_type, resource_name): return client.create_or_update(resource_group_name=resource_group_name, provider_name=provider_name, resource_type=resource_type, resource_name=resource_name) def maintenance_applyupdate_create_or_update_parent(client, resource_group_name, provider_name, resource_parent_type, resource_parent_name, resource_type, resource_name): return client.create_or_update_parent(resource_group_name=resource_group_name, provider_name=provider_name, resource_parent_type=resource_parent_type, resource_parent_name=resource_parent_name, resource_type=resource_type, resource_name=resource_name) def maintenance_applyupdate_show_parent(client, resource_group_name, resource_parent_type, resource_parent_name, provider_name, resource_type, resource_name, apply_update_name): return client.get_parent(resource_group_name=resource_group_name, resource_parent_type=resource_parent_type, resource_parent_name=resource_parent_name, provider_name=provider_name, resource_type=resource_type, resource_name=resource_name, apply_update_name=apply_update_name) def maintenance_assignment_list(client, resource_group_name, provider_name, resource_type, resource_name): return client.list(resource_group_name=resource_group_name, provider_name=provider_name, resource_type=resource_type, resource_name=resource_name) def maintenance_assignment_show(client, resource_group_name, provider_name, resource_type, resource_name, configuration_assignment_name): return client.get(resource_group_name=resource_group_name, provider_name=provider_name, resource_type=resource_type, resource_name=resource_name, configuration_assignment_name=configuration_assignment_name) def maintenance_assignment_create(client, resource_group_name, provider_name, resource_type, resource_name, configuration_assignment_name, location=None, maintenance_configuration_id=None, resource_id=None): configuration_assignment = {} if location is not None: configuration_assignment['location'] = location if maintenance_configuration_id is not None: configuration_assignment['maintenance_configuration_id'] = maintenance_configuration_id if resource_id is not None: configuration_assignment['resource_id'] = resource_id return client.create_or_update(resource_group_name=resource_group_name, provider_name=provider_name, resource_type=resource_type, resource_name=resource_name, configuration_assignment_name=configuration_assignment_name, configuration_assignment=configuration_assignment) def maintenance_assignment_update(instance, resource_group_name, provider_name, resource_type, resource_name, configuration_assignment_name, location=None, maintenance_configuration_id=None, resource_id=None): if location is not None: instance.location = location if maintenance_configuration_id is not None: instance.maintenance_configuration_id = maintenance_configuration_id if resource_id is not None: instance.resource_id = resource_id return instance def maintenance_assignment_delete(client, resource_group_name, provider_name, resource_type, resource_name, configuration_assignment_name): return client.delete(resource_group_name=resource_group_name, provider_name=provider_name, resource_type=resource_type, resource_name=resource_name, configuration_assignment_name=configuration_assignment_name) def maintenance_assignment_create_or_update_parent(client, resource_group_name, provider_name, resource_parent_type, resource_parent_name, resource_type, resource_name, configuration_assignment_name, location=None, maintenance_configuration_id=None, resource_id=None): configuration_assignment = {} if location is not None: configuration_assignment['location'] = location if maintenance_configuration_id is not None: configuration_assignment['maintenance_configuration_id'] = maintenance_configuration_id if resource_id is not None: configuration_assignment['resource_id'] = resource_id return client.create_or_update_parent(resource_group_name=resource_group_name, provider_name=provider_name, resource_parent_type=resource_parent_type, resource_parent_name=resource_parent_name, resource_type=resource_type, resource_name=resource_name, configuration_assignment_name=configuration_assignment_name, configuration_assignment=configuration_assignment) def maintenance_assignment_delete_parent(client, resource_group_name, provider_name, resource_parent_type, resource_parent_name, resource_type, resource_name, configuration_assignment_name): return client.delete_parent(resource_group_name=resource_group_name, provider_name=provider_name, resource_parent_type=resource_parent_type, resource_parent_name=resource_parent_name, resource_type=resource_type, resource_name=resource_name, configuration_assignment_name=configuration_assignment_name) def maintenance_assignment_list_parent(client, resource_group_name, provider_name, resource_parent_type, resource_parent_name, resource_type, resource_name): return client.list_parent(resource_group_name=resource_group_name, provider_name=provider_name, resource_parent_type=resource_parent_type, resource_parent_name=resource_parent_name, resource_type=resource_type, resource_name=resource_name) def maintenance_assignment_show_parent(client, resource_group_name, provider_name, resource_parent_type, resource_parent_name, resource_type, resource_name, configuration_assignment_name): return client.get_parent(resource_group_name=resource_group_name, provider_name=provider_name, resource_parent_type=resource_parent_type, resource_parent_name=resource_parent_name, resource_type=resource_type, resource_name=resource_name, configuration_assignment_name=configuration_assignment_name) def maintenance_configuration_list(client): return client.list() def maintenance_configuration_show(client, resource_group_name, resource_name): return client.get(resource_group_name=resource_group_name, resource_name=resource_name) def maintenance_configuration_create(client, resource_group_name, resource_name, location=None, tags=None, namespace=None, extension_properties=None, maintenance_scope=None, visibility=None, start_date_time=None, expiration_date_time=None, duration=None, time_zone=None, recur_every=None, reboot_setting=None, windows_parameters=None, linux_parameters=None, pre_tasks=None, post_tasks=None): configuration = {} if location is not None: configuration['location'] = location if tags is not None: configuration['tags'] = tags if namespace is not None: configuration['namespace'] = namespace if extension_properties is not None: configuration['extension_properties'] = extension_properties if maintenance_scope is not None: configuration['maintenance_scope'] = maintenance_scope if visibility is not None: configuration['visibility'] = visibility if start_date_time is not None: configuration['start_date_time'] = start_date_time if expiration_date_time is not None: configuration['expiration_date_time'] = expiration_date_time if duration is not None: configuration['duration'] = duration if time_zone is not None: configuration['time_zone'] = time_zone if recur_every is not None: configuration['recur_every'] = recur_every configuration['install_patches'] = {} if reboot_setting is not None: configuration['install_patches']['reboot_setting'] = reboot_setting else: configuration['install_patches']['reboot_setting'] = 'IfRequired' if windows_parameters is not None: configuration['install_patches']['windows_parameters'] = windows_parameters if linux_parameters is not None: configuration['install_patches']['linux_parameters'] = linux_parameters if pre_tasks is not None: configuration['install_patches']['pre_tasks'] = pre_tasks if post_tasks is not None: configuration['install_patches']['post_tasks'] = post_tasks if len(configuration['install_patches']) == 0: del configuration['install_patches'] return client.create_or_update(resource_group_name=resource_group_name, resource_name=resource_name, configuration=configuration) def maintenance_configuration_update(client, resource_group_name, resource_name, location=None, tags=None, namespace=None, extension_properties=None, maintenance_scope=None, visibility=None, start_date_time=None, expiration_date_time=None, duration=None, time_zone=None, recur_every=None, reboot_setting=None, windows_parameters=None, linux_parameters=None, pre_tasks=None, post_tasks=None): configuration = {} if location is not None: configuration['location'] = location if tags is not None: configuration['tags'] = tags if namespace is not None: configuration['namespace'] = namespace if extension_properties is not None: configuration['extension_properties'] = extension_properties if maintenance_scope is not None: configuration['maintenance_scope'] = maintenance_scope if visibility is not None: configuration['visibility'] = visibility if start_date_time is not None: configuration['start_date_time'] = start_date_time if expiration_date_time is not None: configuration['expiration_date_time'] = expiration_date_time if duration is not None: configuration['duration'] = duration if time_zone is not None: configuration['time_zone'] = time_zone if recur_every is not None: configuration['recur_every'] = recur_every configuration['install_patches'] = {} if reboot_setting is not None: configuration['install_patches']['reboot_setting'] = reboot_setting else: configuration['install_patches']['reboot_setting'] = 'IfRequired' if windows_parameters is not None: configuration['install_patches']['windows_parameters'] = windows_parameters if linux_parameters is not None: configuration['install_patches']['linux_parameters'] = linux_parameters if pre_tasks is not None: configuration['install_patches']['pre_tasks'] = pre_tasks if post_tasks is not None: configuration['install_patches']['post_tasks'] = post_tasks if len(configuration['install_patches']) == 0: del configuration['install_patches'] return client.update(resource_group_name=resource_group_name, resource_name=resource_name, configuration=configuration) def maintenance_configuration_delete(client, resource_group_name, resource_name): return client.delete(resource_group_name=resource_group_name, resource_name=resource_name) def maintenance_update_list(client, resource_group_name, provider_name, resource_type, resource_name): return client.list(resource_group_name=resource_group_name, provider_name=provider_name, resource_type=resource_type, resource_name=resource_name) def maintenance_update_list_parent(client, resource_group_name, provider_name, resource_parent_type, resource_parent_name, resource_type, resource_name): return client.list_parent(resource_group_name=resource_group_name, provider_name=provider_name, resource_parent_type=resource_parent_type, resource_parent_name=resource_parent_name, resource_type=resource_type, resource_name=resource_name)
def day5(fileName, part): niceCount = 0 with open(fileName) as infile: for line in infile: vowels = sum(line.count(vowel) for vowel in "aeiou") if vowels < 3: continue foundDouble = any(line[i] == line[i+1] for i in range(len(line) - 1)) if not foundDouble: continue foundBadString = any(badString in line for badString in ["ab", "cd", "pq", "xy"]) if foundBadString: continue niceCount += 1 print(niceCount) def day5b(fileName, part): niceCount = 0 with open(fileName) as infile: for line in infile: repeatLetter = any(line[i] == line[i+2] for i in range(len(line) - 2)) if not repeatLetter: continue repeatPair = any(line[i:i+2] in line[i+2:] for i in range(len(line) - 4)) if not repeatPair: continue niceCount += 1 print(niceCount) if __name__ == "__main__": day5("5test.txt", 1) day5("5.txt", 1) day5b("5btest.txt", 0) day5b("5.txt", 0)
def day5(fileName, part): nice_count = 0 with open(fileName) as infile: for line in infile: vowels = sum((line.count(vowel) for vowel in 'aeiou')) if vowels < 3: continue found_double = any((line[i] == line[i + 1] for i in range(len(line) - 1))) if not foundDouble: continue found_bad_string = any((badString in line for bad_string in ['ab', 'cd', 'pq', 'xy'])) if foundBadString: continue nice_count += 1 print(niceCount) def day5b(fileName, part): nice_count = 0 with open(fileName) as infile: for line in infile: repeat_letter = any((line[i] == line[i + 2] for i in range(len(line) - 2))) if not repeatLetter: continue repeat_pair = any((line[i:i + 2] in line[i + 2:] for i in range(len(line) - 4))) if not repeatPair: continue nice_count += 1 print(niceCount) if __name__ == '__main__': day5('5test.txt', 1) day5('5.txt', 1) day5b('5btest.txt', 0) day5b('5.txt', 0)
class Solution: def subsets(self, nums: List[int]) -> List[List[int]]: nums.sort() res = [] self.bt(nums, 0, [], res) return res def bt(self, nums, idx, tempList, res): res.append(tempList) for i in range(idx, len(nums)): self.bt(nums, i+1, tempList+[nums[i]], res)
class Solution: def subsets(self, nums: List[int]) -> List[List[int]]: nums.sort() res = [] self.bt(nums, 0, [], res) return res def bt(self, nums, idx, tempList, res): res.append(tempList) for i in range(idx, len(nums)): self.bt(nums, i + 1, tempList + [nums[i]], res)
''' Exception module ''' class CallGitServerException(Exception): ''' Base Exception for filtering Call Git Server Exceptions ''' STATUS_CODE = 127 class DuplicateRemote(CallGitServerException): ''' Exception throwed when there arent any match with the username ''' STATUS_CODE = 128 def __init__(self, name, branchRef, elementType): if 'Tag' in elementType: message = f'{elementType}: {name} on \"{branchRef}\" Already exist.' else: message = f'{elementType}: {name} Already exist.' super().__init__( self, message )
""" Exception module """ class Callgitserverexception(Exception): """ Base Exception for filtering Call Git Server Exceptions """ status_code = 127 class Duplicateremote(CallGitServerException): """ Exception throwed when there arent any match with the username """ status_code = 128 def __init__(self, name, branchRef, elementType): if 'Tag' in elementType: message = f'{elementType}: {name} on "{branchRef}" Already exist.' else: message = f'{elementType}: {name} Already exist.' super().__init__(self, message)
def test(tested_mod, Assert): test_cases = [ # (expected, input) ([4], [4]), ([9,6], [6,9]), ([4,3,2,1], [4,3,2,1]), ([4,3,2,1], [1,2,3,4]), ([9,5,2,1], [1,5,2,9]) ] return Assert.all(tested_mod.sortierte_zettel, test_cases)
def test(tested_mod, Assert): test_cases = [([4], [4]), ([9, 6], [6, 9]), ([4, 3, 2, 1], [4, 3, 2, 1]), ([4, 3, 2, 1], [1, 2, 3, 4]), ([9, 5, 2, 1], [1, 5, 2, 9])] return Assert.all(tested_mod.sortierte_zettel, test_cases)
P, Q = map(float, input().split()) p, q = P / 100, Q / 100 a = p * q b = (1 - p) * (1 - q) print(a / (a + b) * 100)
(p, q) = map(float, input().split()) (p, q) = (P / 100, Q / 100) a = p * q b = (1 - p) * (1 - q) print(a / (a + b) * 100)
##Patterns: E0116 while True: try: pass finally: ##Err: E0116 continue while True: try: pass finally: break while True: try: pass except Exception: pass else: continue
while True: try: pass finally: continue while True: try: pass finally: break while True: try: pass except Exception: pass else: continue
class ESError(Exception): pass class ESRegistryError(ESError): pass
class Eserror(Exception): pass class Esregistryerror(ESError): pass
movies = ['The Matrix', 'Fast & Furious', 'Frozen', 'The life of Pi'] for movie in movies: print(movie) print('We\'re done here!')
movies = ['The Matrix', 'Fast & Furious', 'Frozen', 'The life of Pi'] for movie in movies: print(movie) print("We're done here!")
# this code is not correct class Node: def __init__(self, data, next=None): self.data=data self.next = next def printList(head): print(head.data) if head.next == None: return return printList(head.next) def reverseList(head): if head.next == None: return head nextnext = head.next.next head.next = nextnext head = head.next return reverseList(head) head = Node(3) n2 = Node(2) head.next = n2 n3 = Node(1) n2.next = n3 printList(head) printList(reverseList(head))
class Node: def __init__(self, data, next=None): self.data = data self.next = next def print_list(head): print(head.data) if head.next == None: return return print_list(head.next) def reverse_list(head): if head.next == None: return head nextnext = head.next.next head.next = nextnext head = head.next return reverse_list(head) head = node(3) n2 = node(2) head.next = n2 n3 = node(1) n2.next = n3 print_list(head) print_list(reverse_list(head))
def rule(event): return event.get("action") == "Blocked" def title(event): return "Access denied to domain " + event.get("domain", "<UNKNOWN_DOMAIN>")
def rule(event): return event.get('action') == 'Blocked' def title(event): return 'Access denied to domain ' + event.get('domain', '<UNKNOWN_DOMAIN>')
# Config for OpenMX_viewer # For Gui fontFamilies=["Segoe UI", "Yu Gothic UI"] # font sizes are in unit of pixel fontSize_normal=16 fontSize_large=24 ContentsMargins=[5,5,5,5] tickLength=-30 sigma_max=5 Eh=27.2114 # (eV) # Pen for vLine and hLine pen1=(0, 255, 0) pen2=(255, 0, 0) pen3=(255, 255, 0) gridAlpha=50 # 100 =max plot3D_minWidth=400 plot3D_minHeight=400
font_families = ['Segoe UI', 'Yu Gothic UI'] font_size_normal = 16 font_size_large = 24 contents_margins = [5, 5, 5, 5] tick_length = -30 sigma_max = 5 eh = 27.2114 pen1 = (0, 255, 0) pen2 = (255, 0, 0) pen3 = (255, 255, 0) grid_alpha = 50 plot3_d_min_width = 400 plot3_d_min_height = 400
destinations = input() while True: input_command = input() if input_command == "Travel": break arg = input_command.split(":") command = arg[0] if command == "Add Stop": index = int(arg[1]) string = arg[2] if 0 <= index < len(destinations): destinations = destinations[:index] + string + destinations[index:] print(destinations) elif command == "Remove Stop": start_index = int(arg[1]) end_index = int(arg[2]) if 0 <= start_index < len(destinations) and 0 < end_index < len(destinations): destinations = destinations[:start_index] + destinations[end_index + 1:] print(destinations) elif command == "Switch": old_string = arg[1] new_string = arg[2] destinations = destinations.replace(old_string, new_string) print(destinations) print(f"Ready for world tour! Planned stops: {destinations}")
destinations = input() while True: input_command = input() if input_command == 'Travel': break arg = input_command.split(':') command = arg[0] if command == 'Add Stop': index = int(arg[1]) string = arg[2] if 0 <= index < len(destinations): destinations = destinations[:index] + string + destinations[index:] print(destinations) elif command == 'Remove Stop': start_index = int(arg[1]) end_index = int(arg[2]) if 0 <= start_index < len(destinations) and 0 < end_index < len(destinations): destinations = destinations[:start_index] + destinations[end_index + 1:] print(destinations) elif command == 'Switch': old_string = arg[1] new_string = arg[2] destinations = destinations.replace(old_string, new_string) print(destinations) print(f'Ready for world tour! Planned stops: {destinations}')
def html_tag(): # write body of decorator pass @html_tag('p') def foobar(): return 'foobar' if __name__ == "__main__": assert foobar() == '<p>foobar</p>'
def html_tag(): pass @html_tag('p') def foobar(): return 'foobar' if __name__ == '__main__': assert foobar() == '<p>foobar</p>'
def max_power(s: str) -> int: max_ = 1 curr = 1 for i in range(1, len(s)): if s[i] == s[i - 1]: curr += 1 else: if curr > max_: max_ = curr curr = 1 return max(max_, curr) if __name__ == '__main__': max_power("ccbccbb")
def max_power(s: str) -> int: max_ = 1 curr = 1 for i in range(1, len(s)): if s[i] == s[i - 1]: curr += 1 else: if curr > max_: max_ = curr curr = 1 return max(max_, curr) if __name__ == '__main__': max_power('ccbccbb')
class TestThruster: def test_get(self, log_in, test_client): response = test_client.get('/thruster') data = response.get_json()[0] assert response.status_code == 200 assert 1 == data['id'] assert 'T10' == data['name'] assert 10 == data['thrust_power']
class Testthruster: def test_get(self, log_in, test_client): response = test_client.get('/thruster') data = response.get_json()[0] assert response.status_code == 200 assert 1 == data['id'] assert 'T10' == data['name'] assert 10 == data['thrust_power']
data = { "last-modified-date": { "value": 1523547463983 }, "name": { "created-date": { "value": 1523547463758 }, "last-modified-date": { "value": 1523547463983 }, "given-names": { "value": "Cecilia" }, "family-name": { "value": "Payne" }, "credit-name": None, "source": None, "visibility": "PUBLIC", "path": "0000-0001-8868-9743" }, "other-names": { "last-modified-date": None, "other-name": [], "path": "/0000-0001-8868-9743/other-names" }, "biography": None, "path": "/0000-0001-8868-9743/personal-details" }
data = {'last-modified-date': {'value': 1523547463983}, 'name': {'created-date': {'value': 1523547463758}, 'last-modified-date': {'value': 1523547463983}, 'given-names': {'value': 'Cecilia'}, 'family-name': {'value': 'Payne'}, 'credit-name': None, 'source': None, 'visibility': 'PUBLIC', 'path': '0000-0001-8868-9743'}, 'other-names': {'last-modified-date': None, 'other-name': [], 'path': '/0000-0001-8868-9743/other-names'}, 'biography': None, 'path': '/0000-0001-8868-9743/personal-details'}
a = int(input()) t = input() b = int(input()) if t == '*': print(a*b) elif t == '+': print(a+b)
a = int(input()) t = input() b = int(input()) if t == '*': print(a * b) elif t == '+': print(a + b)
meta_file = '/mnt/fs4/chengxuz/Dataset/yfcc/meta.txt' meta_file_dst = '/mnt/fs4/chengxuz/Dataset/yfcc/meta_short.txt' with open(meta_file, 'r') as fin: all_jpgs = fin.readlines() all_jpgs = [_jpg[len('/mnt/fs4/Dataset/YFCC/images/'):] for _jpg in all_jpgs] with open(meta_file_dst, 'w') as fout: fout.writelines(all_jpgs)
meta_file = '/mnt/fs4/chengxuz/Dataset/yfcc/meta.txt' meta_file_dst = '/mnt/fs4/chengxuz/Dataset/yfcc/meta_short.txt' with open(meta_file, 'r') as fin: all_jpgs = fin.readlines() all_jpgs = [_jpg[len('/mnt/fs4/Dataset/YFCC/images/'):] for _jpg in all_jpgs] with open(meta_file_dst, 'w') as fout: fout.writelines(all_jpgs)
def longToSizeString(longVal): if longVal >= 1073741824 : return str(round(longVal/1073741824,2))+"GB" elif longVal >= 1048576: return str(round(longVal/1048576,2)) + "MB" elif longVal >= 1024: return str(round(longVal/1024,2))+"KB" else: return str(longVal)+"B"
def long_to_size_string(longVal): if longVal >= 1073741824: return str(round(longVal / 1073741824, 2)) + 'GB' elif longVal >= 1048576: return str(round(longVal / 1048576, 2)) + 'MB' elif longVal >= 1024: return str(round(longVal / 1024, 2)) + 'KB' else: return str(longVal) + 'B'
input = '361527' input = int(input) def walk(): number = 1 sign = 1 while True: for _ in range(number): yield sign, 0 for _ in range(number): yield 0, sign number += 1 sign = -sign def calc_position(index): pos = (0, 0) for i, (dx, dy) in enumerate(walk()): pos = (pos[0] + dx, pos[1] + dy) if i + 2 == index: return pos pos = calc_position(input) distance = abs(pos[0]) + abs(pos[1]) print(distance) values = [1] indexes = {(0, 0): 0} pos = (0, 0) for i, (dx, dy) in enumerate(walk()): pos = (pos[0] + dx, pos[1] + dy) i = i + 1 indexes[pos] = i i1 = indexes.get((pos[0] - 1, pos[1] - 1)) i2 = indexes.get((pos[0] - 1, pos[1] + 1)) i3 = indexes.get((pos[0] - 1, pos[1])) i4 = indexes.get((pos[0] + 1, pos[1] - 1)) i5 = indexes.get((pos[0] + 1, pos[1] + 1)) i6 = indexes.get((pos[0] + 1, pos[1])) i7 = indexes.get((pos[0], pos[1] + 1)) i8 = indexes.get((pos[0], pos[1] - 1)) value = 0 value += values[i1] if i1 is not None else 0 value += values[i2] if i2 is not None else 0 value += values[i3] if i3 is not None else 0 value += values[i4] if i4 is not None else 0 value += values[i5] if i5 is not None else 0 value += values[i6] if i6 is not None else 0 value += values[i7] if i7 is not None else 0 value += values[i8] if i8 is not None else 0 if value > input: print(value) break values.append(value)
input = '361527' input = int(input) def walk(): number = 1 sign = 1 while True: for _ in range(number): yield (sign, 0) for _ in range(number): yield (0, sign) number += 1 sign = -sign def calc_position(index): pos = (0, 0) for (i, (dx, dy)) in enumerate(walk()): pos = (pos[0] + dx, pos[1] + dy) if i + 2 == index: return pos pos = calc_position(input) distance = abs(pos[0]) + abs(pos[1]) print(distance) values = [1] indexes = {(0, 0): 0} pos = (0, 0) for (i, (dx, dy)) in enumerate(walk()): pos = (pos[0] + dx, pos[1] + dy) i = i + 1 indexes[pos] = i i1 = indexes.get((pos[0] - 1, pos[1] - 1)) i2 = indexes.get((pos[0] - 1, pos[1] + 1)) i3 = indexes.get((pos[0] - 1, pos[1])) i4 = indexes.get((pos[0] + 1, pos[1] - 1)) i5 = indexes.get((pos[0] + 1, pos[1] + 1)) i6 = indexes.get((pos[0] + 1, pos[1])) i7 = indexes.get((pos[0], pos[1] + 1)) i8 = indexes.get((pos[0], pos[1] - 1)) value = 0 value += values[i1] if i1 is not None else 0 value += values[i2] if i2 is not None else 0 value += values[i3] if i3 is not None else 0 value += values[i4] if i4 is not None else 0 value += values[i5] if i5 is not None else 0 value += values[i6] if i6 is not None else 0 value += values[i7] if i7 is not None else 0 value += values[i8] if i8 is not None else 0 if value > input: print(value) break values.append(value)
class Solution: def __init__(self, radius: float, x_center: float, y_center: float): self.radius = radius self.x_center = x_center self.y_center = y_center def randPoint(self) -> List[float]: length = sqrt(random.uniform(0, 1)) * self.radius degree = random.uniform(0, 1) * 2 * math.pi x = self.x_center + length * math.cos(degree) y = self.y_center + length * math.sin(degree) return [x, y]
class Solution: def __init__(self, radius: float, x_center: float, y_center: float): self.radius = radius self.x_center = x_center self.y_center = y_center def rand_point(self) -> List[float]: length = sqrt(random.uniform(0, 1)) * self.radius degree = random.uniform(0, 1) * 2 * math.pi x = self.x_center + length * math.cos(degree) y = self.y_center + length * math.sin(degree) return [x, y]
class BasisFunctionLike(object): @classmethod def derivatives_factory(cls, coef, *args, **kwargs): raise NotImplementedError @classmethod def functions_factory(cls, coef, *args, **kwargs): raise NotImplementedError
class Basisfunctionlike(object): @classmethod def derivatives_factory(cls, coef, *args, **kwargs): raise NotImplementedError @classmethod def functions_factory(cls, coef, *args, **kwargs): raise NotImplementedError
def crop(image, height, width): ''' Function to crop images Parameters: image, a 3d array of the image (can be obtained using plt.imread(image)) height, integer, the desired height of the cropped image width, integer, the desired width of the cropped image Returns: cropped_image, a 3d array with dimensions height x width x 3 Example: crop(image, 10, 15) returns an array with shape (10, 15, 3) ''' pass
def crop(image, height, width): """ Function to crop images Parameters: image, a 3d array of the image (can be obtained using plt.imread(image)) height, integer, the desired height of the cropped image width, integer, the desired width of the cropped image Returns: cropped_image, a 3d array with dimensions height x width x 3 Example: crop(image, 10, 15) returns an array with shape (10, 15, 3) """ pass
entries = [ { 'env-title': 'atari-alien', 'env-variant': 'Human start', 'score': 128.30, }, { 'env-title': 'atari-amidar', 'env-variant': 'Human start', 'score': 11.80, }, { 'env-title': 'atari-assault', 'env-variant': 'Human start', 'score': 166.90, }, { 'env-title': 'atari-asterix', 'env-variant': 'Human start', 'score': 164.50, }, { 'env-title': 'atari-asteroids', 'env-variant': 'Human start', 'score': 871.30, }, { 'env-title': 'atari-atlantis', 'env-variant': 'Human start', 'score': 13463.00, }, { 'env-title': 'atari-bank-heist', 'env-variant': 'Human start', 'score': 21.70, }, { 'env-title': 'atari-battle-zone', 'env-variant': 'Human start', 'score': 3560.00, }, { 'env-title': 'atari-beam-rider', 'env-variant': 'Human start', 'score': 254.60, }, { 'env-title': 'atari-bowling', 'env-variant': 'Human start', 'score': 35.20, }, { 'env-title': 'atari-boxing', 'env-variant': 'Human start', 'score': -1.50, }, { 'env-title': 'atari-breakout', 'env-variant': 'Human start', 'score': 1.60, }, { 'env-title': 'atari-centipede', 'env-variant': 'Human start', 'score': 1925.50, }, { 'env-title': 'atari-chopper-command', 'env-variant': 'Human start', 'score': 644.00, }, { 'env-title': 'atari-crazy-climber', 'env-variant': 'Human start', 'score': 9337.00, }, { 'env-title': 'atari-demon-attack', 'env-variant': 'Human start', 'score': 208.30, }, { 'env-title': 'atari-double-dunk', 'env-variant': 'Human start', 'score': -16.00, }, { 'env-title': 'atari-enduro', 'env-variant': 'Human start', 'score': -81.80, }, { 'env-title': 'atari-fishing-derby', 'env-variant': 'Human start', 'score': -77.10, }, { 'env-title': 'atari-freeway', 'env-variant': 'Human start', 'score': 0.10, }, { 'env-title': 'atari-frostbite', 'env-variant': 'Human start', 'score': 66.40, }, { 'env-title': 'atari-gopher', 'env-variant': 'Human start', 'score': 250.00, }, { 'env-title': 'atari-gravitar', 'env-variant': 'Human start', 'score': 245.50, }, { 'env-title': 'atari-hero', 'env-variant': 'Human start', 'score': 1580.30, }, { 'env-title': 'atari-ice-hockey', 'env-variant': 'Human start', 'score': -9.70, }, { 'env-title': 'atari-jamesbond', 'env-variant': 'Human start', 'score': 33.50, }, { 'env-title': 'atari-kangaroo', 'env-variant': 'Human start', 'score': 100.00, }, { 'env-title': 'atari-krull', 'env-variant': 'Human start', 'score': 1151.90, }, { 'env-title': 'atari-kung-fu-master', 'env-variant': 'Human start', 'score': 304.00, }, { 'env-title': 'atari-montezuma-revenge', 'env-variant': 'Human start', 'score': 25.00, }, { 'env-title': 'atari-ms-pacman', 'env-variant': 'Human start', 'score': 197.80, }, { 'env-title': 'atari-name-this-game', 'env-variant': 'Human start', 'score': 1747.80, }, { 'env-title': 'atari-pong', 'env-variant': 'Human start', 'score': -18.00, }, { 'env-title': 'atari-private-eye', 'env-variant': 'Human start', 'score': 662.80, }, { 'env-title': 'atari-qbert', 'env-variant': 'Human start', 'score': 183.00, }, { 'env-title': 'atari-riverraid', 'env-variant': 'Human start', 'score': 588.30, }, { 'env-title': 'atari-road-runner', 'env-variant': 'Human start', 'score': 200.00, }, { 'env-title': 'atari-robotank', 'env-variant': 'Human start', 'score': 2.40, }, { 'env-title': 'atari-seaquest', 'env-variant': 'Human start', 'score': 215.50, }, { 'env-title': 'atari-space-invaders', 'env-variant': 'Human start', 'score': 182.60, }, { 'env-title': 'atari-star-gunner', 'env-variant': 'Human start', 'score': 697.00, }, { 'env-title': 'atari-tennis', 'env-variant': 'Human start', 'score': -21.40, }, { 'env-title': 'atari-time-pilot', 'env-variant': 'Human start', 'score': 3273.00, }, { 'env-title': 'atari-tutankham', 'env-variant': 'Human start', 'score': 12.70, }, { 'env-title': 'atari-up-n-down', 'env-variant': 'Human start', 'score': 707.20, }, { 'env-title': 'atari-venture', 'env-variant': 'Human start', 'score': 18.00, }, { 'env-title': 'atari-video-pinball', 'env-variant': 'Human start', 'score': 20452.0, }, { 'env-title': 'atari-wizard-of-wor', 'env-variant': 'Human start', 'score': 804.00, }, { 'env-title': 'atari-zaxxon', 'env-variant': 'Human start', 'score': 475.00, }, ]
entries = [{'env-title': 'atari-alien', 'env-variant': 'Human start', 'score': 128.3}, {'env-title': 'atari-amidar', 'env-variant': 'Human start', 'score': 11.8}, {'env-title': 'atari-assault', 'env-variant': 'Human start', 'score': 166.9}, {'env-title': 'atari-asterix', 'env-variant': 'Human start', 'score': 164.5}, {'env-title': 'atari-asteroids', 'env-variant': 'Human start', 'score': 871.3}, {'env-title': 'atari-atlantis', 'env-variant': 'Human start', 'score': 13463.0}, {'env-title': 'atari-bank-heist', 'env-variant': 'Human start', 'score': 21.7}, {'env-title': 'atari-battle-zone', 'env-variant': 'Human start', 'score': 3560.0}, {'env-title': 'atari-beam-rider', 'env-variant': 'Human start', 'score': 254.6}, {'env-title': 'atari-bowling', 'env-variant': 'Human start', 'score': 35.2}, {'env-title': 'atari-boxing', 'env-variant': 'Human start', 'score': -1.5}, {'env-title': 'atari-breakout', 'env-variant': 'Human start', 'score': 1.6}, {'env-title': 'atari-centipede', 'env-variant': 'Human start', 'score': 1925.5}, {'env-title': 'atari-chopper-command', 'env-variant': 'Human start', 'score': 644.0}, {'env-title': 'atari-crazy-climber', 'env-variant': 'Human start', 'score': 9337.0}, {'env-title': 'atari-demon-attack', 'env-variant': 'Human start', 'score': 208.3}, {'env-title': 'atari-double-dunk', 'env-variant': 'Human start', 'score': -16.0}, {'env-title': 'atari-enduro', 'env-variant': 'Human start', 'score': -81.8}, {'env-title': 'atari-fishing-derby', 'env-variant': 'Human start', 'score': -77.1}, {'env-title': 'atari-freeway', 'env-variant': 'Human start', 'score': 0.1}, {'env-title': 'atari-frostbite', 'env-variant': 'Human start', 'score': 66.4}, {'env-title': 'atari-gopher', 'env-variant': 'Human start', 'score': 250.0}, {'env-title': 'atari-gravitar', 'env-variant': 'Human start', 'score': 245.5}, {'env-title': 'atari-hero', 'env-variant': 'Human start', 'score': 1580.3}, {'env-title': 'atari-ice-hockey', 'env-variant': 'Human start', 'score': -9.7}, {'env-title': 'atari-jamesbond', 'env-variant': 'Human start', 'score': 33.5}, {'env-title': 'atari-kangaroo', 'env-variant': 'Human start', 'score': 100.0}, {'env-title': 'atari-krull', 'env-variant': 'Human start', 'score': 1151.9}, {'env-title': 'atari-kung-fu-master', 'env-variant': 'Human start', 'score': 304.0}, {'env-title': 'atari-montezuma-revenge', 'env-variant': 'Human start', 'score': 25.0}, {'env-title': 'atari-ms-pacman', 'env-variant': 'Human start', 'score': 197.8}, {'env-title': 'atari-name-this-game', 'env-variant': 'Human start', 'score': 1747.8}, {'env-title': 'atari-pong', 'env-variant': 'Human start', 'score': -18.0}, {'env-title': 'atari-private-eye', 'env-variant': 'Human start', 'score': 662.8}, {'env-title': 'atari-qbert', 'env-variant': 'Human start', 'score': 183.0}, {'env-title': 'atari-riverraid', 'env-variant': 'Human start', 'score': 588.3}, {'env-title': 'atari-road-runner', 'env-variant': 'Human start', 'score': 200.0}, {'env-title': 'atari-robotank', 'env-variant': 'Human start', 'score': 2.4}, {'env-title': 'atari-seaquest', 'env-variant': 'Human start', 'score': 215.5}, {'env-title': 'atari-space-invaders', 'env-variant': 'Human start', 'score': 182.6}, {'env-title': 'atari-star-gunner', 'env-variant': 'Human start', 'score': 697.0}, {'env-title': 'atari-tennis', 'env-variant': 'Human start', 'score': -21.4}, {'env-title': 'atari-time-pilot', 'env-variant': 'Human start', 'score': 3273.0}, {'env-title': 'atari-tutankham', 'env-variant': 'Human start', 'score': 12.7}, {'env-title': 'atari-up-n-down', 'env-variant': 'Human start', 'score': 707.2}, {'env-title': 'atari-venture', 'env-variant': 'Human start', 'score': 18.0}, {'env-title': 'atari-video-pinball', 'env-variant': 'Human start', 'score': 20452.0}, {'env-title': 'atari-wizard-of-wor', 'env-variant': 'Human start', 'score': 804.0}, {'env-title': 'atari-zaxxon', 'env-variant': 'Human start', 'score': 475.0}]
class BoxField: BOXES = 'bbox' KEYPOINTS = 'keypoints' LABELS = 'label' MASKS = 'masks' NUM_BOXES = 'num_boxes' SCORES = 'scores' WEIGHTS = 'weights' class DatasetField: IMAGES = 'images' IMAGES_INFO = 'images_information' IMAGES_PMASK = 'images_padding_mask'
class Boxfield: boxes = 'bbox' keypoints = 'keypoints' labels = 'label' masks = 'masks' num_boxes = 'num_boxes' scores = 'scores' weights = 'weights' class Datasetfield: images = 'images' images_info = 'images_information' images_pmask = 'images_padding_mask'
# # PySNMP MIB module HH3C-WAPI-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HH3C-WAPI-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:30:34 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, ValueSizeConstraint, ConstraintsUnion, ValueRangeConstraint, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueSizeConstraint", "ConstraintsUnion", "ValueRangeConstraint", "SingleValueConstraint") hh3cCommon, = mibBuilder.importSymbols("HH3C-OID-MIB", "hh3cCommon") ifDescr, ifIndex = mibBuilder.importSymbols("IF-MIB", "ifDescr", "ifIndex") InetAddressType, InetAddress = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddressType", "InetAddress") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") Integer32, MibIdentifier, ModuleIdentity, ObjectIdentity, IpAddress, Unsigned32, TimeTicks, Counter32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, iso, Bits, Gauge32, Counter64 = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibIdentifier", "ModuleIdentity", "ObjectIdentity", "IpAddress", "Unsigned32", "TimeTicks", "Counter32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "iso", "Bits", "Gauge32", "Counter64") TextualConvention, MacAddress, DisplayString, TruthValue = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "MacAddress", "DisplayString", "TruthValue") hh3cwapiMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 25506, 2, 77)) if mibBuilder.loadTexts: hh3cwapiMIB.setLastUpdated('201012011757Z') if mibBuilder.loadTexts: hh3cwapiMIB.setOrganization('Hangzhou H3C Tech. Co., Ltd.') if mibBuilder.loadTexts: hh3cwapiMIB.setContactInfo('Platform Team Hangzhou H3C Tech. Co., Ltd. Hai-Dian District Beijing P.R. China http://www.h3c.com Zip:100085 ') if mibBuilder.loadTexts: hh3cwapiMIB.setDescription('HH3C-WAPI-MIB is an extension of MIB in WAPI protocol. This MIB contains objects to manage configuration and monitor running state for WAPI feature.') hh3cwapiMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 25506, 2, 77, 1)) hh3cwapiMIBStatsObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 25506, 2, 77, 2)) hh3cwapiMIBTableObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3)) hh3cwapiTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 25506, 2, 77, 4)) hh3cwapiModeEnabled = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 77, 1, 1), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cwapiModeEnabled.setStatus('current') if mibBuilder.loadTexts: hh3cwapiModeEnabled.setDescription('When this object is set to TRUE, it shall indicate that WAPI is enabled. Otherwise, it shall indicate that WAPI is disabled.') hh3cwapiASIPAddressType = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 77, 1, 2), InetAddressType().clone('ipv4')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cwapiASIPAddressType.setStatus('current') if mibBuilder.loadTexts: hh3cwapiASIPAddressType.setDescription('This object is used to set global IP addresses type (IPv4 or IPv6) of AS.') hh3cwapiASIPAddress = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 77, 1, 3), InetAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cwapiASIPAddress.setStatus('current') if mibBuilder.loadTexts: hh3cwapiASIPAddress.setDescription('This object is used to set the global IP address of AS.') hh3cwapiCertificateInstalled = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 77, 1, 4), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cwapiCertificateInstalled.setStatus('current') if mibBuilder.loadTexts: hh3cwapiCertificateInstalled.setDescription("This object indicates whether the entity has installed certificate. When the value is TURE, it shall indicate that the entity has installed certificate. Otherwise, it shall indicate that the entity hasn't installed certificate.") hh3cwapiStatsWAISignatureErrors = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 77, 2, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cwapiStatsWAISignatureErrors.setStatus('current') if mibBuilder.loadTexts: hh3cwapiStatsWAISignatureErrors.setDescription('This counter increases when the received packet of WAI signature is wrong.') hh3cwapiStatsWAIHMACErrors = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 77, 2, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cwapiStatsWAIHMACErrors.setStatus('current') if mibBuilder.loadTexts: hh3cwapiStatsWAIHMACErrors.setDescription('This counter increases when the received packet of WAI message authentication key checking error occurs.') hh3cwapiStatsWAIAuthRsltFailures = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 77, 2, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cwapiStatsWAIAuthRsltFailures.setStatus('current') if mibBuilder.loadTexts: hh3cwapiStatsWAIAuthRsltFailures.setDescription('This counter increases when the WAI authentication result is unsuccessful.') hh3cwapiStatsWAIDiscardCounters = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 77, 2, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cwapiStatsWAIDiscardCounters.setStatus('current') if mibBuilder.loadTexts: hh3cwapiStatsWAIDiscardCounters.setDescription('This counter increases when the received packet of WAI are discarded.') hh3cwapiStatsWAITimeoutCounters = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 77, 2, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cwapiStatsWAITimeoutCounters.setStatus('current') if mibBuilder.loadTexts: hh3cwapiStatsWAITimeoutCounters.setDescription('This counter increases when the packet of WAI overtime are detected.') hh3cwapiStatsWAIFormatErrors = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 77, 2, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cwapiStatsWAIFormatErrors.setStatus('current') if mibBuilder.loadTexts: hh3cwapiStatsWAIFormatErrors.setDescription('This counter increases when the WAI packet of WAI format error is detected.') hh3cwapiStatsWAICtfHskFailures = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 77, 2, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cwapiStatsWAICtfHskFailures.setStatus('current') if mibBuilder.loadTexts: hh3cwapiStatsWAICtfHskFailures.setDescription('This counter increases when the WAI certificate authenticates unsuccessfully.') hh3cwapiStatsWAIUniHskFailures = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 77, 2, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cwapiStatsWAIUniHskFailures.setStatus('current') if mibBuilder.loadTexts: hh3cwapiStatsWAIUniHskFailures.setDescription('This counter increases when the WAI unicast cipher key negotiates unsuccessfully.') hh3cwapiStatsWAIMulHskFailures = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 77, 2, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cwapiStatsWAIMulHskFailures.setStatus('current') if mibBuilder.loadTexts: hh3cwapiStatsWAIMulHskFailures.setDescription('This counter increases when the WAI multicast cipher key announces unsuccessfully.') hh3cwapiConfigTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 1), ) if mibBuilder.loadTexts: hh3cwapiConfigTable.setStatus('current') if mibBuilder.loadTexts: hh3cwapiConfigTable.setDescription('The table containing WAPI configuration objects.') hh3cwapiConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hh3cwapiConfigEntry.setStatus('current') if mibBuilder.loadTexts: hh3cwapiConfigEntry.setDescription('An entry in the hh3cwapiConfigTable.') hh3cwapiConfigASIPAddressType = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 1, 1, 1), InetAddressType()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cwapiConfigASIPAddressType.setStatus('current') if mibBuilder.loadTexts: hh3cwapiConfigASIPAddressType.setDescription('This object is used to set IP addresses type of AS.') hh3cwapiConfigASIPAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 1, 1, 2), InetAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cwapiConfigASIPAddress.setStatus('current') if mibBuilder.loadTexts: hh3cwapiConfigASIPAddress.setDescription('This object is used to set the IP address of AS.') hh3cwapiConfigAuthMethod = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("certificate", 1), ("psk", 2), ("certificatePsk", 3))).clone('certificate')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cwapiConfigAuthMethod.setStatus('current') if mibBuilder.loadTexts: hh3cwapiConfigAuthMethod.setDescription('This object selects a mechanism for WAPI authentication method. The default is certificate.') hh3cwapiConfigAuthMode = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("standard", 1), ("radiusExtension", 2))).clone('standard')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cwapiConfigAuthMode.setStatus('current') if mibBuilder.loadTexts: hh3cwapiConfigAuthMode.setDescription('This object selects a mechanism for WAPI authentication mode. When the value is standard, it shall indicate that the entity acts accord with the official definition. Otherwise, it shall indicate that the entity finishs authentication by means of RADIUS. The default is standard.') hh3cwapiConfigISPDomain = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 1, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 24))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cwapiConfigISPDomain.setStatus('current') if mibBuilder.loadTexts: hh3cwapiConfigISPDomain.setDescription('The ISP domain name.') hh3cwapiConfigCertificateDomain = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 1, 1, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 15))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cwapiConfigCertificateDomain.setStatus('current') if mibBuilder.loadTexts: hh3cwapiConfigCertificateDomain.setDescription('The PKI domain name.') hh3cwapiConfigASName = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 1, 1, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 15))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cwapiConfigASName.setStatus('current') if mibBuilder.loadTexts: hh3cwapiConfigASName.setDescription('The name of AS.') hh3cwapiConfigBKRekeyEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 1, 1, 8), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cwapiConfigBKRekeyEnabled.setStatus('current') if mibBuilder.loadTexts: hh3cwapiConfigBKRekeyEnabled.setDescription('This object indicates whether the BK rekey function is supported. When the value is TURE, it shall indicate that the BK rekey function is supported. Otherwise, it shall indicate that the BK rekey function is not supported.') hh3cwapiConfigExtTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 2), ) if mibBuilder.loadTexts: hh3cwapiConfigExtTable.setStatus('current') if mibBuilder.loadTexts: hh3cwapiConfigExtTable.setDescription('The table containing WAPI configuration objects for SSID.') hh3cwapiConfigExtEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 2, 1), ).setIndexNames((0, "HH3C-WAPI-MIB", "hh3cwapiConfigServicePolicyID")) if mibBuilder.loadTexts: hh3cwapiConfigExtEntry.setStatus('current') if mibBuilder.loadTexts: hh3cwapiConfigExtEntry.setDescription('An extend entry in the hh3cwapiConfigExtTable.') hh3cwapiConfigServicePolicyID = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 2, 1, 1), Integer32()) if mibBuilder.loadTexts: hh3cwapiConfigServicePolicyID.setStatus('current') if mibBuilder.loadTexts: hh3cwapiConfigServicePolicyID.setDescription('Represents the ID of each service policy.') hh3cwapiConfigUnicastCipherEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 2, 1, 2), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cwapiConfigUnicastCipherEnabled.setStatus('current') if mibBuilder.loadTexts: hh3cwapiConfigUnicastCipherEnabled.setDescription('This object enables or disables the unicast cipher.') hh3cwapiConfigUnicastCipherSize = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 2, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cwapiConfigUnicastCipherSize.setStatus('current') if mibBuilder.loadTexts: hh3cwapiConfigUnicastCipherSize.setDescription('This object indicates the length in bits of the unicast cipher key. This should be 256 for SMS4, first 128 bits for encrypting, last 128 bits for integrity checking.') hh3cwapiConfigAuthenticationSuiteEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 2, 1, 4), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cwapiConfigAuthenticationSuiteEnabled.setStatus('current') if mibBuilder.loadTexts: hh3cwapiConfigAuthenticationSuiteEnabled.setDescription('This variable indicates the corresponding AKM suite is enabled or disabled.') hh3cwapiConfigAuthenticationSuite = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 2, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(4, 4)).setFixedLength(4)).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cwapiConfigAuthenticationSuite.setStatus('current') if mibBuilder.loadTexts: hh3cwapiConfigAuthenticationSuite.setDescription('The selector of an AKM suite. It consists of an OUI (the first 3 octets) and a cipher suite identifier (the last octet).') hh3cwapiCfgExtASIPAddressType = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 2, 1, 6), InetAddressType()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cwapiCfgExtASIPAddressType.setStatus('current') if mibBuilder.loadTexts: hh3cwapiCfgExtASIPAddressType.setDescription('This object is used to set IP addresses type of AS.') hh3cwapiCfgExtASIPAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 2, 1, 7), InetAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cwapiCfgExtASIPAddress.setStatus('current') if mibBuilder.loadTexts: hh3cwapiCfgExtASIPAddress.setDescription('This object is used to set the IP address of AS.') hh3cwapiCfgExtASName = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 2, 1, 8), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 15))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cwapiCfgExtASName.setStatus('current') if mibBuilder.loadTexts: hh3cwapiCfgExtASName.setDescription('This object is used to set the name of AS.') hh3cwapiCfgExtCertDomain = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 2, 1, 9), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 15))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cwapiCfgExtCertDomain.setStatus('current') if mibBuilder.loadTexts: hh3cwapiCfgExtCertDomain.setDescription('This object is used to set the PKI domain name.') hh3cwapiCfgExtCertInstalled = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 2, 1, 10), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cwapiCfgExtCertInstalled.setStatus('current') if mibBuilder.loadTexts: hh3cwapiCfgExtCertInstalled.setDescription("This object indicates whether the entity has installed certificate. When the value is TURE, it shall indicate that the SSID has installed certificate. Otherwise, it shall indicate that the SSID hasn't installed certificate.") hh3cwapiTrapPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 25506, 2, 77, 4, 0)) hh3cwapiUserwithInvalidCertificate = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 77, 4, 0, 1)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HH3C-WAPI-MIB", "hh3cwapiTrapInfoMacAddr"), ("HH3C-WAPI-MIB", "hh3cwapiTrapInfoAPId"), ("HH3C-WAPI-MIB", "hh3cwapiTrapInfoRadioId"), ("HH3C-WAPI-MIB", "hh3cwapiTrapInfoBSSId")) if mibBuilder.loadTexts: hh3cwapiUserwithInvalidCertificate.setStatus('current') if mibBuilder.loadTexts: hh3cwapiUserwithInvalidCertificate.setDescription('This trap is sent when a user intrudes upon network with invalid certificate.') hh3cwapiStationReplayAttack = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 77, 4, 0, 2)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HH3C-WAPI-MIB", "hh3cwapiTrapInfoMacAddr"), ("HH3C-WAPI-MIB", "hh3cwapiTrapInfoAPId"), ("HH3C-WAPI-MIB", "hh3cwapiTrapInfoRadioId"), ("HH3C-WAPI-MIB", "hh3cwapiTrapInfoBSSId")) if mibBuilder.loadTexts: hh3cwapiStationReplayAttack.setStatus('current') if mibBuilder.loadTexts: hh3cwapiStationReplayAttack.setDescription('This trap is sent when an attacker records and replays network transactions.') hh3cwapiTamperAttack = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 77, 4, 0, 3)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HH3C-WAPI-MIB", "hh3cwapiTrapInfoMacAddr"), ("HH3C-WAPI-MIB", "hh3cwapiTrapInfoAPId"), ("HH3C-WAPI-MIB", "hh3cwapiTrapInfoRadioId"), ("HH3C-WAPI-MIB", "hh3cwapiTrapInfoBSSId")) if mibBuilder.loadTexts: hh3cwapiTamperAttack.setStatus('current') if mibBuilder.loadTexts: hh3cwapiTamperAttack.setDescription('This trap is sent when an attacker monitors network traffic and maliciously changes data in transit(for example, an attacker may modify the contents of a WAI message).') hh3cwapiLowSafeLevelAttack = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 77, 4, 0, 4)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HH3C-WAPI-MIB", "hh3cwapiTrapInfoMacAddr"), ("HH3C-WAPI-MIB", "hh3cwapiTrapInfoAPId"), ("HH3C-WAPI-MIB", "hh3cwapiTrapInfoRadioId"), ("HH3C-WAPI-MIB", "hh3cwapiTrapInfoBSSId")) if mibBuilder.loadTexts: hh3cwapiLowSafeLevelAttack.setStatus('current') if mibBuilder.loadTexts: hh3cwapiLowSafeLevelAttack.setDescription('This trap is sent when a station associates AP(Access Point), creates packet of Unicast Key Negotiation Response with wrong WIE(WAPI Information Element) of ASUE(Authentication Supplicant Entity).') hh3cwapiAddressRedirectionAttack = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 77, 4, 0, 5)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HH3C-WAPI-MIB", "hh3cwapiTrapInfoMacAddr"), ("HH3C-WAPI-MIB", "hh3cwapiTrapInfoAPId"), ("HH3C-WAPI-MIB", "hh3cwapiTrapInfoRadioId"), ("HH3C-WAPI-MIB", "hh3cwapiTrapInfoBSSId")) if mibBuilder.loadTexts: hh3cwapiAddressRedirectionAttack.setStatus('current') if mibBuilder.loadTexts: hh3cwapiAddressRedirectionAttack.setDescription('This trap is sent when an attacker maliciously changes destination MAC address of WPI(WLAN Privacy Infrastructure) frame.') hh3cwapiTrapInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 25506, 2, 77, 4, 1)) hh3cwapiTrapInfoMacAddr = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 77, 4, 1, 1), MacAddress()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hh3cwapiTrapInfoMacAddr.setStatus('current') if mibBuilder.loadTexts: hh3cwapiTrapInfoMacAddr.setDescription('The MAC address of the WAPI user.') hh3cwapiTrapInfoAPId = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 77, 4, 1, 2), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hh3cwapiTrapInfoAPId.setStatus('current') if mibBuilder.loadTexts: hh3cwapiTrapInfoAPId.setDescription('To uniquely identify each AP.') hh3cwapiTrapInfoRadioId = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 77, 4, 1, 3), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hh3cwapiTrapInfoRadioId.setStatus('current') if mibBuilder.loadTexts: hh3cwapiTrapInfoRadioId.setDescription('Represents each radio.') hh3cwapiTrapInfoBSSId = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 77, 4, 1, 4), MacAddress()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hh3cwapiTrapInfoBSSId.setStatus('current') if mibBuilder.loadTexts: hh3cwapiTrapInfoBSSId.setDescription('As MAC Address format, it is to identify BSS.') mibBuilder.exportSymbols("HH3C-WAPI-MIB", hh3cwapiConfigAuthMode=hh3cwapiConfigAuthMode, hh3cwapiMIBStatsObjects=hh3cwapiMIBStatsObjects, hh3cwapiTrapPrefix=hh3cwapiTrapPrefix, hh3cwapiTrapInfoMacAddr=hh3cwapiTrapInfoMacAddr, hh3cwapiStatsWAIMulHskFailures=hh3cwapiStatsWAIMulHskFailures, hh3cwapiTrapInfoBSSId=hh3cwapiTrapInfoBSSId, hh3cwapiConfigASName=hh3cwapiConfigASName, hh3cwapiModeEnabled=hh3cwapiModeEnabled, hh3cwapiConfigExtEntry=hh3cwapiConfigExtEntry, hh3cwapiTrap=hh3cwapiTrap, hh3cwapiMIB=hh3cwapiMIB, hh3cwapiConfigServicePolicyID=hh3cwapiConfigServicePolicyID, hh3cwapiUserwithInvalidCertificate=hh3cwapiUserwithInvalidCertificate, hh3cwapiAddressRedirectionAttack=hh3cwapiAddressRedirectionAttack, hh3cwapiStationReplayAttack=hh3cwapiStationReplayAttack, hh3cwapiTrapInfoAPId=hh3cwapiTrapInfoAPId, hh3cwapiConfigExtTable=hh3cwapiConfigExtTable, hh3cwapiTamperAttack=hh3cwapiTamperAttack, hh3cwapiASIPAddressType=hh3cwapiASIPAddressType, hh3cwapiCfgExtASName=hh3cwapiCfgExtASName, PYSNMP_MODULE_ID=hh3cwapiMIB, hh3cwapiTrapInfo=hh3cwapiTrapInfo, hh3cwapiMIBObjects=hh3cwapiMIBObjects, hh3cwapiASIPAddress=hh3cwapiASIPAddress, hh3cwapiStatsWAICtfHskFailures=hh3cwapiStatsWAICtfHskFailures, hh3cwapiCfgExtCertInstalled=hh3cwapiCfgExtCertInstalled, hh3cwapiStatsWAIHMACErrors=hh3cwapiStatsWAIHMACErrors, hh3cwapiTrapInfoRadioId=hh3cwapiTrapInfoRadioId, hh3cwapiStatsWAIUniHskFailures=hh3cwapiStatsWAIUniHskFailures, hh3cwapiConfigUnicastCipherSize=hh3cwapiConfigUnicastCipherSize, hh3cwapiCfgExtCertDomain=hh3cwapiCfgExtCertDomain, hh3cwapiStatsWAISignatureErrors=hh3cwapiStatsWAISignatureErrors, hh3cwapiConfigASIPAddressType=hh3cwapiConfigASIPAddressType, hh3cwapiConfigUnicastCipherEnabled=hh3cwapiConfigUnicastCipherEnabled, hh3cwapiConfigAuthenticationSuite=hh3cwapiConfigAuthenticationSuite, hh3cwapiLowSafeLevelAttack=hh3cwapiLowSafeLevelAttack, hh3cwapiStatsWAIAuthRsltFailures=hh3cwapiStatsWAIAuthRsltFailures, hh3cwapiConfigTable=hh3cwapiConfigTable, hh3cwapiCfgExtASIPAddress=hh3cwapiCfgExtASIPAddress, hh3cwapiConfigBKRekeyEnabled=hh3cwapiConfigBKRekeyEnabled, hh3cwapiCfgExtASIPAddressType=hh3cwapiCfgExtASIPAddressType, hh3cwapiMIBTableObjects=hh3cwapiMIBTableObjects, hh3cwapiConfigCertificateDomain=hh3cwapiConfigCertificateDomain, hh3cwapiConfigASIPAddress=hh3cwapiConfigASIPAddress, hh3cwapiConfigEntry=hh3cwapiConfigEntry, hh3cwapiConfigAuthenticationSuiteEnabled=hh3cwapiConfigAuthenticationSuiteEnabled, hh3cwapiConfigISPDomain=hh3cwapiConfigISPDomain, hh3cwapiStatsWAITimeoutCounters=hh3cwapiStatsWAITimeoutCounters, hh3cwapiStatsWAIFormatErrors=hh3cwapiStatsWAIFormatErrors, hh3cwapiStatsWAIDiscardCounters=hh3cwapiStatsWAIDiscardCounters, hh3cwapiCertificateInstalled=hh3cwapiCertificateInstalled, hh3cwapiConfigAuthMethod=hh3cwapiConfigAuthMethod)
(object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_intersection, value_size_constraint, constraints_union, value_range_constraint, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ValueSizeConstraint', 'ConstraintsUnion', 'ValueRangeConstraint', 'SingleValueConstraint') (hh3c_common,) = mibBuilder.importSymbols('HH3C-OID-MIB', 'hh3cCommon') (if_descr, if_index) = mibBuilder.importSymbols('IF-MIB', 'ifDescr', 'ifIndex') (inet_address_type, inet_address) = mibBuilder.importSymbols('INET-ADDRESS-MIB', 'InetAddressType', 'InetAddress') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (integer32, mib_identifier, module_identity, object_identity, ip_address, unsigned32, time_ticks, counter32, mib_scalar, mib_table, mib_table_row, mib_table_column, notification_type, iso, bits, gauge32, counter64) = mibBuilder.importSymbols('SNMPv2-SMI', 'Integer32', 'MibIdentifier', 'ModuleIdentity', 'ObjectIdentity', 'IpAddress', 'Unsigned32', 'TimeTicks', 'Counter32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'NotificationType', 'iso', 'Bits', 'Gauge32', 'Counter64') (textual_convention, mac_address, display_string, truth_value) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'MacAddress', 'DisplayString', 'TruthValue') hh3cwapi_mib = module_identity((1, 3, 6, 1, 4, 1, 25506, 2, 77)) if mibBuilder.loadTexts: hh3cwapiMIB.setLastUpdated('201012011757Z') if mibBuilder.loadTexts: hh3cwapiMIB.setOrganization('Hangzhou H3C Tech. Co., Ltd.') if mibBuilder.loadTexts: hh3cwapiMIB.setContactInfo('Platform Team Hangzhou H3C Tech. Co., Ltd. Hai-Dian District Beijing P.R. China http://www.h3c.com Zip:100085 ') if mibBuilder.loadTexts: hh3cwapiMIB.setDescription('HH3C-WAPI-MIB is an extension of MIB in WAPI protocol. This MIB contains objects to manage configuration and monitor running state for WAPI feature.') hh3cwapi_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 25506, 2, 77, 1)) hh3cwapi_mib_stats_objects = mib_identifier((1, 3, 6, 1, 4, 1, 25506, 2, 77, 2)) hh3cwapi_mib_table_objects = mib_identifier((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3)) hh3cwapi_trap = mib_identifier((1, 3, 6, 1, 4, 1, 25506, 2, 77, 4)) hh3cwapi_mode_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 77, 1, 1), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cwapiModeEnabled.setStatus('current') if mibBuilder.loadTexts: hh3cwapiModeEnabled.setDescription('When this object is set to TRUE, it shall indicate that WAPI is enabled. Otherwise, it shall indicate that WAPI is disabled.') hh3cwapi_asip_address_type = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 77, 1, 2), inet_address_type().clone('ipv4')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cwapiASIPAddressType.setStatus('current') if mibBuilder.loadTexts: hh3cwapiASIPAddressType.setDescription('This object is used to set global IP addresses type (IPv4 or IPv6) of AS.') hh3cwapi_asip_address = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 77, 1, 3), inet_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cwapiASIPAddress.setStatus('current') if mibBuilder.loadTexts: hh3cwapiASIPAddress.setDescription('This object is used to set the global IP address of AS.') hh3cwapi_certificate_installed = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 77, 1, 4), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cwapiCertificateInstalled.setStatus('current') if mibBuilder.loadTexts: hh3cwapiCertificateInstalled.setDescription("This object indicates whether the entity has installed certificate. When the value is TURE, it shall indicate that the entity has installed certificate. Otherwise, it shall indicate that the entity hasn't installed certificate.") hh3cwapi_stats_wai_signature_errors = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 77, 2, 1), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cwapiStatsWAISignatureErrors.setStatus('current') if mibBuilder.loadTexts: hh3cwapiStatsWAISignatureErrors.setDescription('This counter increases when the received packet of WAI signature is wrong.') hh3cwapi_stats_waihmac_errors = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 77, 2, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cwapiStatsWAIHMACErrors.setStatus('current') if mibBuilder.loadTexts: hh3cwapiStatsWAIHMACErrors.setDescription('This counter increases when the received packet of WAI message authentication key checking error occurs.') hh3cwapi_stats_wai_auth_rslt_failures = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 77, 2, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cwapiStatsWAIAuthRsltFailures.setStatus('current') if mibBuilder.loadTexts: hh3cwapiStatsWAIAuthRsltFailures.setDescription('This counter increases when the WAI authentication result is unsuccessful.') hh3cwapi_stats_wai_discard_counters = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 77, 2, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cwapiStatsWAIDiscardCounters.setStatus('current') if mibBuilder.loadTexts: hh3cwapiStatsWAIDiscardCounters.setDescription('This counter increases when the received packet of WAI are discarded.') hh3cwapi_stats_wai_timeout_counters = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 77, 2, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cwapiStatsWAITimeoutCounters.setStatus('current') if mibBuilder.loadTexts: hh3cwapiStatsWAITimeoutCounters.setDescription('This counter increases when the packet of WAI overtime are detected.') hh3cwapi_stats_wai_format_errors = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 77, 2, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cwapiStatsWAIFormatErrors.setStatus('current') if mibBuilder.loadTexts: hh3cwapiStatsWAIFormatErrors.setDescription('This counter increases when the WAI packet of WAI format error is detected.') hh3cwapi_stats_wai_ctf_hsk_failures = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 77, 2, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cwapiStatsWAICtfHskFailures.setStatus('current') if mibBuilder.loadTexts: hh3cwapiStatsWAICtfHskFailures.setDescription('This counter increases when the WAI certificate authenticates unsuccessfully.') hh3cwapi_stats_wai_uni_hsk_failures = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 77, 2, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cwapiStatsWAIUniHskFailures.setStatus('current') if mibBuilder.loadTexts: hh3cwapiStatsWAIUniHskFailures.setDescription('This counter increases when the WAI unicast cipher key negotiates unsuccessfully.') hh3cwapi_stats_wai_mul_hsk_failures = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 77, 2, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cwapiStatsWAIMulHskFailures.setStatus('current') if mibBuilder.loadTexts: hh3cwapiStatsWAIMulHskFailures.setDescription('This counter increases when the WAI multicast cipher key announces unsuccessfully.') hh3cwapi_config_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 1)) if mibBuilder.loadTexts: hh3cwapiConfigTable.setStatus('current') if mibBuilder.loadTexts: hh3cwapiConfigTable.setDescription('The table containing WAPI configuration objects.') hh3cwapi_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hh3cwapiConfigEntry.setStatus('current') if mibBuilder.loadTexts: hh3cwapiConfigEntry.setDescription('An entry in the hh3cwapiConfigTable.') hh3cwapi_config_asip_address_type = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 1, 1, 1), inet_address_type()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cwapiConfigASIPAddressType.setStatus('current') if mibBuilder.loadTexts: hh3cwapiConfigASIPAddressType.setDescription('This object is used to set IP addresses type of AS.') hh3cwapi_config_asip_address = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 1, 1, 2), inet_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cwapiConfigASIPAddress.setStatus('current') if mibBuilder.loadTexts: hh3cwapiConfigASIPAddress.setDescription('This object is used to set the IP address of AS.') hh3cwapi_config_auth_method = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('certificate', 1), ('psk', 2), ('certificatePsk', 3))).clone('certificate')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cwapiConfigAuthMethod.setStatus('current') if mibBuilder.loadTexts: hh3cwapiConfigAuthMethod.setDescription('This object selects a mechanism for WAPI authentication method. The default is certificate.') hh3cwapi_config_auth_mode = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('standard', 1), ('radiusExtension', 2))).clone('standard')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cwapiConfigAuthMode.setStatus('current') if mibBuilder.loadTexts: hh3cwapiConfigAuthMode.setDescription('This object selects a mechanism for WAPI authentication mode. When the value is standard, it shall indicate that the entity acts accord with the official definition. Otherwise, it shall indicate that the entity finishs authentication by means of RADIUS. The default is standard.') hh3cwapi_config_isp_domain = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 1, 1, 5), octet_string().subtype(subtypeSpec=value_size_constraint(0, 24))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cwapiConfigISPDomain.setStatus('current') if mibBuilder.loadTexts: hh3cwapiConfigISPDomain.setDescription('The ISP domain name.') hh3cwapi_config_certificate_domain = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 1, 1, 6), octet_string().subtype(subtypeSpec=value_size_constraint(1, 15))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cwapiConfigCertificateDomain.setStatus('current') if mibBuilder.loadTexts: hh3cwapiConfigCertificateDomain.setDescription('The PKI domain name.') hh3cwapi_config_as_name = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 1, 1, 7), octet_string().subtype(subtypeSpec=value_size_constraint(1, 15))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cwapiConfigASName.setStatus('current') if mibBuilder.loadTexts: hh3cwapiConfigASName.setDescription('The name of AS.') hh3cwapi_config_bk_rekey_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 1, 1, 8), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cwapiConfigBKRekeyEnabled.setStatus('current') if mibBuilder.loadTexts: hh3cwapiConfigBKRekeyEnabled.setDescription('This object indicates whether the BK rekey function is supported. When the value is TURE, it shall indicate that the BK rekey function is supported. Otherwise, it shall indicate that the BK rekey function is not supported.') hh3cwapi_config_ext_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 2)) if mibBuilder.loadTexts: hh3cwapiConfigExtTable.setStatus('current') if mibBuilder.loadTexts: hh3cwapiConfigExtTable.setDescription('The table containing WAPI configuration objects for SSID.') hh3cwapi_config_ext_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 2, 1)).setIndexNames((0, 'HH3C-WAPI-MIB', 'hh3cwapiConfigServicePolicyID')) if mibBuilder.loadTexts: hh3cwapiConfigExtEntry.setStatus('current') if mibBuilder.loadTexts: hh3cwapiConfigExtEntry.setDescription('An extend entry in the hh3cwapiConfigExtTable.') hh3cwapi_config_service_policy_id = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 2, 1, 1), integer32()) if mibBuilder.loadTexts: hh3cwapiConfigServicePolicyID.setStatus('current') if mibBuilder.loadTexts: hh3cwapiConfigServicePolicyID.setDescription('Represents the ID of each service policy.') hh3cwapi_config_unicast_cipher_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 2, 1, 2), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cwapiConfigUnicastCipherEnabled.setStatus('current') if mibBuilder.loadTexts: hh3cwapiConfigUnicastCipherEnabled.setDescription('This object enables or disables the unicast cipher.') hh3cwapi_config_unicast_cipher_size = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 2, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cwapiConfigUnicastCipherSize.setStatus('current') if mibBuilder.loadTexts: hh3cwapiConfigUnicastCipherSize.setDescription('This object indicates the length in bits of the unicast cipher key. This should be 256 for SMS4, first 128 bits for encrypting, last 128 bits for integrity checking.') hh3cwapi_config_authentication_suite_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 2, 1, 4), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cwapiConfigAuthenticationSuiteEnabled.setStatus('current') if mibBuilder.loadTexts: hh3cwapiConfigAuthenticationSuiteEnabled.setDescription('This variable indicates the corresponding AKM suite is enabled or disabled.') hh3cwapi_config_authentication_suite = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 2, 1, 5), octet_string().subtype(subtypeSpec=value_size_constraint(4, 4)).setFixedLength(4)).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cwapiConfigAuthenticationSuite.setStatus('current') if mibBuilder.loadTexts: hh3cwapiConfigAuthenticationSuite.setDescription('The selector of an AKM suite. It consists of an OUI (the first 3 octets) and a cipher suite identifier (the last octet).') hh3cwapi_cfg_ext_asip_address_type = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 2, 1, 6), inet_address_type()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cwapiCfgExtASIPAddressType.setStatus('current') if mibBuilder.loadTexts: hh3cwapiCfgExtASIPAddressType.setDescription('This object is used to set IP addresses type of AS.') hh3cwapi_cfg_ext_asip_address = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 2, 1, 7), inet_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cwapiCfgExtASIPAddress.setStatus('current') if mibBuilder.loadTexts: hh3cwapiCfgExtASIPAddress.setDescription('This object is used to set the IP address of AS.') hh3cwapi_cfg_ext_as_name = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 2, 1, 8), octet_string().subtype(subtypeSpec=value_size_constraint(1, 15))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cwapiCfgExtASName.setStatus('current') if mibBuilder.loadTexts: hh3cwapiCfgExtASName.setDescription('This object is used to set the name of AS.') hh3cwapi_cfg_ext_cert_domain = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 2, 1, 9), octet_string().subtype(subtypeSpec=value_size_constraint(1, 15))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cwapiCfgExtCertDomain.setStatus('current') if mibBuilder.loadTexts: hh3cwapiCfgExtCertDomain.setDescription('This object is used to set the PKI domain name.') hh3cwapi_cfg_ext_cert_installed = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 77, 3, 2, 1, 10), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cwapiCfgExtCertInstalled.setStatus('current') if mibBuilder.loadTexts: hh3cwapiCfgExtCertInstalled.setDescription("This object indicates whether the entity has installed certificate. When the value is TURE, it shall indicate that the SSID has installed certificate. Otherwise, it shall indicate that the SSID hasn't installed certificate.") hh3cwapi_trap_prefix = mib_identifier((1, 3, 6, 1, 4, 1, 25506, 2, 77, 4, 0)) hh3cwapi_userwith_invalid_certificate = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 77, 4, 0, 1)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HH3C-WAPI-MIB', 'hh3cwapiTrapInfoMacAddr'), ('HH3C-WAPI-MIB', 'hh3cwapiTrapInfoAPId'), ('HH3C-WAPI-MIB', 'hh3cwapiTrapInfoRadioId'), ('HH3C-WAPI-MIB', 'hh3cwapiTrapInfoBSSId')) if mibBuilder.loadTexts: hh3cwapiUserwithInvalidCertificate.setStatus('current') if mibBuilder.loadTexts: hh3cwapiUserwithInvalidCertificate.setDescription('This trap is sent when a user intrudes upon network with invalid certificate.') hh3cwapi_station_replay_attack = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 77, 4, 0, 2)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HH3C-WAPI-MIB', 'hh3cwapiTrapInfoMacAddr'), ('HH3C-WAPI-MIB', 'hh3cwapiTrapInfoAPId'), ('HH3C-WAPI-MIB', 'hh3cwapiTrapInfoRadioId'), ('HH3C-WAPI-MIB', 'hh3cwapiTrapInfoBSSId')) if mibBuilder.loadTexts: hh3cwapiStationReplayAttack.setStatus('current') if mibBuilder.loadTexts: hh3cwapiStationReplayAttack.setDescription('This trap is sent when an attacker records and replays network transactions.') hh3cwapi_tamper_attack = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 77, 4, 0, 3)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HH3C-WAPI-MIB', 'hh3cwapiTrapInfoMacAddr'), ('HH3C-WAPI-MIB', 'hh3cwapiTrapInfoAPId'), ('HH3C-WAPI-MIB', 'hh3cwapiTrapInfoRadioId'), ('HH3C-WAPI-MIB', 'hh3cwapiTrapInfoBSSId')) if mibBuilder.loadTexts: hh3cwapiTamperAttack.setStatus('current') if mibBuilder.loadTexts: hh3cwapiTamperAttack.setDescription('This trap is sent when an attacker monitors network traffic and maliciously changes data in transit(for example, an attacker may modify the contents of a WAI message).') hh3cwapi_low_safe_level_attack = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 77, 4, 0, 4)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HH3C-WAPI-MIB', 'hh3cwapiTrapInfoMacAddr'), ('HH3C-WAPI-MIB', 'hh3cwapiTrapInfoAPId'), ('HH3C-WAPI-MIB', 'hh3cwapiTrapInfoRadioId'), ('HH3C-WAPI-MIB', 'hh3cwapiTrapInfoBSSId')) if mibBuilder.loadTexts: hh3cwapiLowSafeLevelAttack.setStatus('current') if mibBuilder.loadTexts: hh3cwapiLowSafeLevelAttack.setDescription('This trap is sent when a station associates AP(Access Point), creates packet of Unicast Key Negotiation Response with wrong WIE(WAPI Information Element) of ASUE(Authentication Supplicant Entity).') hh3cwapi_address_redirection_attack = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 77, 4, 0, 5)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HH3C-WAPI-MIB', 'hh3cwapiTrapInfoMacAddr'), ('HH3C-WAPI-MIB', 'hh3cwapiTrapInfoAPId'), ('HH3C-WAPI-MIB', 'hh3cwapiTrapInfoRadioId'), ('HH3C-WAPI-MIB', 'hh3cwapiTrapInfoBSSId')) if mibBuilder.loadTexts: hh3cwapiAddressRedirectionAttack.setStatus('current') if mibBuilder.loadTexts: hh3cwapiAddressRedirectionAttack.setDescription('This trap is sent when an attacker maliciously changes destination MAC address of WPI(WLAN Privacy Infrastructure) frame.') hh3cwapi_trap_info = mib_identifier((1, 3, 6, 1, 4, 1, 25506, 2, 77, 4, 1)) hh3cwapi_trap_info_mac_addr = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 77, 4, 1, 1), mac_address()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hh3cwapiTrapInfoMacAddr.setStatus('current') if mibBuilder.loadTexts: hh3cwapiTrapInfoMacAddr.setDescription('The MAC address of the WAPI user.') hh3cwapi_trap_info_ap_id = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 77, 4, 1, 2), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hh3cwapiTrapInfoAPId.setStatus('current') if mibBuilder.loadTexts: hh3cwapiTrapInfoAPId.setDescription('To uniquely identify each AP.') hh3cwapi_trap_info_radio_id = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 77, 4, 1, 3), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hh3cwapiTrapInfoRadioId.setStatus('current') if mibBuilder.loadTexts: hh3cwapiTrapInfoRadioId.setDescription('Represents each radio.') hh3cwapi_trap_info_bss_id = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 77, 4, 1, 4), mac_address()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hh3cwapiTrapInfoBSSId.setStatus('current') if mibBuilder.loadTexts: hh3cwapiTrapInfoBSSId.setDescription('As MAC Address format, it is to identify BSS.') mibBuilder.exportSymbols('HH3C-WAPI-MIB', hh3cwapiConfigAuthMode=hh3cwapiConfigAuthMode, hh3cwapiMIBStatsObjects=hh3cwapiMIBStatsObjects, hh3cwapiTrapPrefix=hh3cwapiTrapPrefix, hh3cwapiTrapInfoMacAddr=hh3cwapiTrapInfoMacAddr, hh3cwapiStatsWAIMulHskFailures=hh3cwapiStatsWAIMulHskFailures, hh3cwapiTrapInfoBSSId=hh3cwapiTrapInfoBSSId, hh3cwapiConfigASName=hh3cwapiConfigASName, hh3cwapiModeEnabled=hh3cwapiModeEnabled, hh3cwapiConfigExtEntry=hh3cwapiConfigExtEntry, hh3cwapiTrap=hh3cwapiTrap, hh3cwapiMIB=hh3cwapiMIB, hh3cwapiConfigServicePolicyID=hh3cwapiConfigServicePolicyID, hh3cwapiUserwithInvalidCertificate=hh3cwapiUserwithInvalidCertificate, hh3cwapiAddressRedirectionAttack=hh3cwapiAddressRedirectionAttack, hh3cwapiStationReplayAttack=hh3cwapiStationReplayAttack, hh3cwapiTrapInfoAPId=hh3cwapiTrapInfoAPId, hh3cwapiConfigExtTable=hh3cwapiConfigExtTable, hh3cwapiTamperAttack=hh3cwapiTamperAttack, hh3cwapiASIPAddressType=hh3cwapiASIPAddressType, hh3cwapiCfgExtASName=hh3cwapiCfgExtASName, PYSNMP_MODULE_ID=hh3cwapiMIB, hh3cwapiTrapInfo=hh3cwapiTrapInfo, hh3cwapiMIBObjects=hh3cwapiMIBObjects, hh3cwapiASIPAddress=hh3cwapiASIPAddress, hh3cwapiStatsWAICtfHskFailures=hh3cwapiStatsWAICtfHskFailures, hh3cwapiCfgExtCertInstalled=hh3cwapiCfgExtCertInstalled, hh3cwapiStatsWAIHMACErrors=hh3cwapiStatsWAIHMACErrors, hh3cwapiTrapInfoRadioId=hh3cwapiTrapInfoRadioId, hh3cwapiStatsWAIUniHskFailures=hh3cwapiStatsWAIUniHskFailures, hh3cwapiConfigUnicastCipherSize=hh3cwapiConfigUnicastCipherSize, hh3cwapiCfgExtCertDomain=hh3cwapiCfgExtCertDomain, hh3cwapiStatsWAISignatureErrors=hh3cwapiStatsWAISignatureErrors, hh3cwapiConfigASIPAddressType=hh3cwapiConfigASIPAddressType, hh3cwapiConfigUnicastCipherEnabled=hh3cwapiConfigUnicastCipherEnabled, hh3cwapiConfigAuthenticationSuite=hh3cwapiConfigAuthenticationSuite, hh3cwapiLowSafeLevelAttack=hh3cwapiLowSafeLevelAttack, hh3cwapiStatsWAIAuthRsltFailures=hh3cwapiStatsWAIAuthRsltFailures, hh3cwapiConfigTable=hh3cwapiConfigTable, hh3cwapiCfgExtASIPAddress=hh3cwapiCfgExtASIPAddress, hh3cwapiConfigBKRekeyEnabled=hh3cwapiConfigBKRekeyEnabled, hh3cwapiCfgExtASIPAddressType=hh3cwapiCfgExtASIPAddressType, hh3cwapiMIBTableObjects=hh3cwapiMIBTableObjects, hh3cwapiConfigCertificateDomain=hh3cwapiConfigCertificateDomain, hh3cwapiConfigASIPAddress=hh3cwapiConfigASIPAddress, hh3cwapiConfigEntry=hh3cwapiConfigEntry, hh3cwapiConfigAuthenticationSuiteEnabled=hh3cwapiConfigAuthenticationSuiteEnabled, hh3cwapiConfigISPDomain=hh3cwapiConfigISPDomain, hh3cwapiStatsWAITimeoutCounters=hh3cwapiStatsWAITimeoutCounters, hh3cwapiStatsWAIFormatErrors=hh3cwapiStatsWAIFormatErrors, hh3cwapiStatsWAIDiscardCounters=hh3cwapiStatsWAIDiscardCounters, hh3cwapiCertificateInstalled=hh3cwapiCertificateInstalled, hh3cwapiConfigAuthMethod=hh3cwapiConfigAuthMethod)
class Solution: def longestPalindromeSubseq(self, s: str) -> int: n = len(s) dp = [[0 for _ in range(n+1) ] for _ in range(n+1)] for i in range(1,n+1): for j in range(1,n+1): if( s[i-1] == s[n-j]): dp[i][j] = 1+dp[i-1][j-1] else: dp[i][j] = max(dp[i-1][j],dp[i][j-1]) return dp[n][n]
class Solution: def longest_palindrome_subseq(self, s: str) -> int: n = len(s) dp = [[0 for _ in range(n + 1)] for _ in range(n + 1)] for i in range(1, n + 1): for j in range(1, n + 1): if s[i - 1] == s[n - j]: dp[i][j] = 1 + dp[i - 1][j - 1] else: dp[i][j] = max(dp[i - 1][j], dp[i][j - 1]) return dp[n][n]
class JsutCounter: __secretCount = 0 def count(self): self.__secretCount += 1 print(self.__secretCount) counter = JustCounter() counter.count() counter.count() # print(counter.__secretCount) print(counter._JustCounter.__secretCount) #public:normal variables #private:__ #protected:_
class Jsutcounter: __secret_count = 0 def count(self): self.__secretCount += 1 print(self.__secretCount) counter = just_counter() counter.count() counter.count() print(counter._JustCounter.__secretCount)
class Solution: def max_dp(self, nums2: List[int]) -> int: dp=[0,0,nums2[0]] for num in nums2[1:]: dp.append(num+max(dp[-2], dp[-3])) return max(dp[-1], dp[-2]) def rob(self, nums: List[int]) -> int: if len(nums)<=3: return max(nums) elif len(nums)==4: return max(nums[0]+nums[2], nums[1]+nums[-1]) else: dp=[0,0,0] cand1 = nums[0]+self.max_dp(nums[2:-1]) cand2 = nums[-1]+self.max_dp(nums[1:-2]) cand3 = self.max_dp(nums[1:-1]) return max(cand1, cand2, cand3) # [1,2,1,0] # [2,7,9,3,1]
class Solution: def max_dp(self, nums2: List[int]) -> int: dp = [0, 0, nums2[0]] for num in nums2[1:]: dp.append(num + max(dp[-2], dp[-3])) return max(dp[-1], dp[-2]) def rob(self, nums: List[int]) -> int: if len(nums) <= 3: return max(nums) elif len(nums) == 4: return max(nums[0] + nums[2], nums[1] + nums[-1]) else: dp = [0, 0, 0] cand1 = nums[0] + self.max_dp(nums[2:-1]) cand2 = nums[-1] + self.max_dp(nums[1:-2]) cand3 = self.max_dp(nums[1:-1]) return max(cand1, cand2, cand3)
#-*- coding:utf-8 -*- def display(name,age): print (name,age)
def display(name, age): print(name, age)
n = int(input("Digite o valor de n: ")) i=0 count = 0 while count<n: if (i % 2) != 0: print (i) count = count + 1 i = i + 1
n = int(input('Digite o valor de n: ')) i = 0 count = 0 while count < n: if i % 2 != 0: print(i) count = count + 1 i = i + 1
# # PySNMP MIB module WWP-LEOS-BENCHMARK-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/WWP-LEOS-BENCHMARK-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 21:30:56 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, SingleValueConstraint, ValueRangeConstraint, ConstraintsIntersection, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsIntersection", "ConstraintsUnion") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") Counter32, Unsigned32, iso, ModuleIdentity, Bits, NotificationType, IpAddress, Gauge32, Integer32, ObjectIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, MibIdentifier, Counter64, TimeTicks = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "Unsigned32", "iso", "ModuleIdentity", "Bits", "NotificationType", "IpAddress", "Gauge32", "Integer32", "ObjectIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "MibIdentifier", "Counter64", "TimeTicks") DisplayString, MacAddress, TextualConvention, TruthValue = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "MacAddress", "TextualConvention", "TruthValue") wwpModulesLeos, = mibBuilder.importSymbols("WWP-SMI", "wwpModulesLeos") wwpLeosBenchmarkMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43)) wwpLeosBenchmarkMIB.setRevisions(('2012-02-13 08:00', '2012-02-03 08:00', '2010-12-14 08:00', '2010-11-25 08:00', '2010-11-15 08:00',)) if mibBuilder.loadTexts: wwpLeosBenchmarkMIB.setLastUpdated('201202130800Z') if mibBuilder.loadTexts: wwpLeosBenchmarkMIB.setOrganization('Ciena, Inc') class BenchmarkLatencyPdvTestState(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9)) namedValues = NamedValues(("idle", 1), ("sendingTraffic", 2), ("waitingForTimestampData", 3), ("waitingForResidualPackets", 4), ("processingResults", 5), ("stoppedByIntervalTimer", 6), ("stoppedByDurationTimer", 7), ("stoppedByUser", 8), ("done", 9)) wwpLeosBenchmarkMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1)) wwpLeosBenchmarkModule = MibIdentifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 1)) wwpLeosBenchmarkReflectorModule = MibIdentifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 2)) wwpLeosBenchmarkGeneratorModule = MibIdentifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 3)) wwpLeosBenchmarkFpgaStats = MibIdentifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 4)) wwpLeosBenchmarkPortStats = MibIdentifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5)) wwpLeosBenchmarkProfileObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6)) wwpLeosBenchmarkRole = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("reflector", 2), ("generator", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosBenchmarkRole.setStatus('current') wwpLeosBenchmarkPort = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosBenchmarkPort.setStatus('current') wwpLeosBenchmarkMode = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("inService", 2), ("outOfService", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosBenchmarkMode.setStatus('current') wwpLeosBenchmarkEnable = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 1, 4), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosBenchmarkEnable.setStatus('current') wwpLeosBenchmarkOperEnable = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 1, 5), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkOperEnable.setStatus('current') wwpLeosBenchmarkLocalFpgaMac = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 1, 6), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkLocalFpgaMac.setStatus('current') wwpLeosBenchmarkReflectorEnable = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 2, 1), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosBenchmarkReflectorEnable.setStatus('current') wwpLeosBenchmarkReflectorVid = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 2, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 4095))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosBenchmarkReflectorVid.setStatus('current') wwpLeosBenchmarkReflectorVendorType = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 2, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("other", 1), ("ciena", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosBenchmarkReflectorVendorType.setStatus('current') wwpLeosBenchmarkGeneratorEnable = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 3, 1), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosBenchmarkGeneratorEnable.setStatus('current') wwpLeosBenchmarkGeneratorprofileUnderTest = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 3, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkGeneratorprofileUnderTest.setStatus('current') wwpLeosBenchmarkGeneratorThroughputTestState = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 3, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("idle", 1), ("running", 2), ("waitingForResidualPackets", 3), ("processingResults", 4), ("stoppedByIntervalTimer", 5), ("stoppedByDurationTimer", 6), ("stoppedByUser", 7), ("done", 8)))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkGeneratorThroughputTestState.setStatus('current') wwpLeosBenchmarkGeneratorFramelossTestState = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 3, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))).clone(namedValues=NamedValues(("idle", 1), ("runningFirstTest", 2), ("waitingForResidualFirstPackets", 3), ("processingFirstResults", 4), ("runningSecondTest", 5), ("waitingForResidualSecondPackets", 6), ("processingSecondResults", 7), ("stoppedByIntervalTimer", 8), ("stoppedByDurationTimer", 9), ("stoppedByUser", 10), ("done", 11)))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkGeneratorFramelossTestState.setStatus('current') wwpLeosBenchmarkGeneratorLatencyTestState = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 3, 5), BenchmarkLatencyPdvTestState()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkGeneratorLatencyTestState.setStatus('current') wwpLeosBenchmarkGeneratorPdvTestState = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 3, 6), BenchmarkLatencyPdvTestState()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkGeneratorPdvTestState.setStatus('current') wwpLeosBenchmarkGeneratorRfc2544State = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 3, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("idle", 1), ("running", 2), ("stoppedByIntervalTimer", 3), ("stoppedByDurationTimer", 4), ("stoppedByUser", 5), ("done", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkGeneratorRfc2544State.setStatus('current') wwpLeosBenchmarkGeneratorCurrentPktSize = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 3, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkGeneratorCurrentPktSize.setStatus('current') wwpLeosBenchmarkGeneratorCurrentRate = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 3, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkGeneratorCurrentRate.setStatus('current') wwpLeosBenchmarkGeneratorSamplesCompleted = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 3, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkGeneratorSamplesCompleted.setStatus('current') wwpLeosBenchmarkGeneratorCurrentIteration = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 3, 11), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkGeneratorCurrentIteration.setStatus('current') wwpLeosBenchmarkGeneratorTotalIterations = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 3, 12), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkGeneratorTotalIterations.setStatus('current') wwpLeosBenchmarkProfileTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1), ) if mibBuilder.loadTexts: wwpLeosBenchmarkProfileTable.setStatus('current') wwpLeosBenchmarkProfileEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1), ).setIndexNames((0, "WWP-LEOS-BENCHMARK-MIB", "wwpLeosBenchmarkProfileEntryId")) if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntry.setStatus('current') wwpLeosBenchmarkProfileEntryId = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 24))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryId.setStatus('current') wwpLeosBenchmarkProfileEntryName = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryName.setStatus('current') wwpLeosBenchmarkProfileEntryEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 3), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryEnabled.setStatus('current') wwpLeosBenchmarkProfileEntryStarted = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 4), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryStarted.setStatus('current') wwpLeosBenchmarkProfileEntryInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("t15min", 1), ("t1hr", 2), ("t6hr", 3), ("tCompletion", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryInterval.setStatus('current') wwpLeosBenchmarkProfileEntryDuration = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("t15min", 1), ("t1hr", 2), ("t6hr", 3), ("t24hr", 4), ("tIndefinite", 5), ("tOnce", 6)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryDuration.setStatus('current') wwpLeosBenchmarkProfileEntryThroughputTest = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 7), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryThroughputTest.setStatus('current') wwpLeosBenchmarkProfileEntryFramelossTest = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 8), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryFramelossTest.setStatus('current') wwpLeosBenchmarkProfileEntryLatencyTest = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 9), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryLatencyTest.setStatus('current') wwpLeosBenchmarkProfileEntryPdvTest = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 10), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryPdvTest.setStatus('current') wwpLeosBenchmarkProfileEntryRfc2544Suite = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 11), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryRfc2544Suite.setStatus('current') wwpLeosBenchmarkProfileEntryDstmac = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 12), MacAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryDstmac.setStatus('current') wwpLeosBenchmarkProfileEntryEncapType = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("untagged", 1), ("dot1q", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryEncapType.setStatus('current') wwpLeosBenchmarkProfileEntryVid = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 14), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryVid.setStatus('current') wwpLeosBenchmarkProfileEntryPcp = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryPcp.setStatus('current') wwpLeosBenchmarkProfileEntryCfi = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 16), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryCfi.setStatus('current') wwpLeosBenchmarkProfileEntryTpid = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 17), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryTpid.setStatus('current') wwpLeosBenchmarkProfileEntryPduType = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("ethernet", 1), ("ip", 2), ("udpecho", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryPduType.setStatus('current') wwpLeosBenchmarkProfileEntrySrcIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 19), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntrySrcIpAddr.setStatus('current') wwpLeosBenchmarkProfileEntryDstIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 20), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryDstIpAddr.setStatus('current') wwpLeosBenchmarkProfileEntryDscp = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 21), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 63))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryDscp.setStatus('current') wwpLeosBenchmarkProfileEntryCustomPayload = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 22), OctetString().subtype(subtypeSpec=ValueSizeConstraint(256, 256)).setFixedLength(256)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryCustomPayload.setStatus('current') wwpLeosBenchmarkProfileEntryBandwidth = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 23), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryBandwidth.setStatus('current') wwpLeosBenchmarkProfileEntryVidValidation = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 24), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryVidValidation.setStatus('current') wwpLeosBenchmarkProfileEntryMaxSearches = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 25), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryMaxSearches.setStatus('current') wwpLeosBenchmarkProfileEntryMaxSamples = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 26), Integer32().subtype(subtypeSpec=ValueRangeConstraint(2, 20))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryMaxSamples.setStatus('current') wwpLeosBenchmarkProfileEntrySamplingInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 27), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntrySamplingInterval.setStatus('current') wwpLeosBenchmarkProfileEntryFrameLossStartBw = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 28), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("profileBandwidth", 1), ("maximumThroughput", 2), ("maximumLineRate", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryFrameLossStartBw.setStatus('current') wwpLeosBenchmarkProfileThroughputStatisticsTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 2), ) if mibBuilder.loadTexts: wwpLeosBenchmarkProfileThroughputStatisticsTable.setStatus('current') wwpLeosBenchmarkProfileThroughputStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 2, 1), ).setIndexNames((0, "WWP-LEOS-BENCHMARK-MIB", "wwpLeosBenchmarkProfileThroughputStatsProfileId"), (0, "WWP-LEOS-BENCHMARK-MIB", "wwpLeosBenchmarkProfileThroughputStatsFrameSizeIndex")) if mibBuilder.loadTexts: wwpLeosBenchmarkProfileThroughputStatsEntry.setStatus('current') wwpLeosBenchmarkProfileThroughputStatsProfileId = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 20))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileThroughputStatsProfileId.setStatus('current') wwpLeosBenchmarkProfileThroughputStatsFrameSizeIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 9))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileThroughputStatsFrameSizeIndex.setStatus('current') wwpLeosBenchmarkProfileThroughputStatsFrameSize = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 2, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileThroughputStatsFrameSize.setStatus('current') wwpLeosBenchmarkProfileThroughputStatsMin = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 2, 1, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileThroughputStatsMin.setStatus('current') wwpLeosBenchmarkProfileThroughputStatsMax = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 2, 1, 5), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileThroughputStatsMax.setStatus('current') wwpLeosBenchmarkProfileThroughputStatsAvg = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 2, 1, 6), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileThroughputStatsAvg.setStatus('current') wwpLeosBenchmarkProfileThroughputStatsIterations = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 2, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileThroughputStatsIterations.setStatus('current') wwpLeosBenchmarkProfileThroughputStatsActiveVid = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 2, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileThroughputStatsActiveVid.setStatus('current') wwpLeosBenchmarkProfileThroughputStatsActiveDstMac = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 2, 1, 9), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileThroughputStatsActiveDstMac.setStatus('current') wwpLeosBenchmarkProfileFramelossStatisticsTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 3), ) if mibBuilder.loadTexts: wwpLeosBenchmarkProfileFramelossStatisticsTable.setStatus('current') wwpLeosBenchmarkProfileFramelossStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 3, 1), ).setIndexNames((0, "WWP-LEOS-BENCHMARK-MIB", "wwpLeosBenchmarkProfileFramelossStatsProfileId"), (0, "WWP-LEOS-BENCHMARK-MIB", "wwpLeosBenchmarkProfileFramelossStatsFrameSizeIndex"), (0, "WWP-LEOS-BENCHMARK-MIB", "wwpLeosBenchmarkProfileFramelossStatsRateIndex")) if mibBuilder.loadTexts: wwpLeosBenchmarkProfileFramelossStatsEntry.setStatus('current') wwpLeosBenchmarkProfileFramelossStatsProfileId = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 20))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileFramelossStatsProfileId.setStatus('current') wwpLeosBenchmarkProfileFramelossStatsFrameSizeIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 3, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 9))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileFramelossStatsFrameSizeIndex.setStatus('current') wwpLeosBenchmarkProfileFramelossStatsRateIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 3, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 9))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileFramelossStatsRateIndex.setStatus('current') wwpLeosBenchmarkProfileFramelossStatsFrameSize = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 3, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileFramelossStatsFrameSize.setStatus('current') wwpLeosBenchmarkProfileFramelossStatsRate = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 3, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileFramelossStatsRate.setStatus('current') wwpLeosBenchmarkProfileFramelossStatsFirst = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 3, 1, 6), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileFramelossStatsFirst.setStatus('current') wwpLeosBenchmarkProfileFramelossStatsSecond = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 3, 1, 7), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileFramelossStatsSecond.setStatus('current') wwpLeosBenchmarkProfileFramelossStatsActiveVid = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 3, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileFramelossStatsActiveVid.setStatus('current') wwpLeosBenchmarkProfileFramelossStatsActiveDstMac = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 3, 1, 9), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileFramelossStatsActiveDstMac.setStatus('current') wwpLeosBenchmarkProfileLatencyStatisticsTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 4), ) if mibBuilder.loadTexts: wwpLeosBenchmarkProfileLatencyStatisticsTable.setStatus('current') wwpLeosBenchmarkProfileLatencyStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 4, 1), ).setIndexNames((0, "WWP-LEOS-BENCHMARK-MIB", "wwpLeosBenchmarkProfileLatencyStatsProfileId"), (0, "WWP-LEOS-BENCHMARK-MIB", "wwpLeosBenchmarkProfileLatencyStatsFrameSizeIndex")) if mibBuilder.loadTexts: wwpLeosBenchmarkProfileLatencyStatsEntry.setStatus('current') wwpLeosBenchmarkProfileLatencyStatsProfileId = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 20))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileLatencyStatsProfileId.setStatus('current') wwpLeosBenchmarkProfileLatencyStatsFrameSizeIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 9))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileLatencyStatsFrameSizeIndex.setStatus('current') wwpLeosBenchmarkProfileLatencyStatsFrameSize = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 4, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileLatencyStatsFrameSize.setStatus('current') wwpLeosBenchmarkProfileLatencyStatsMin = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 4, 1, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileLatencyStatsMin.setStatus('current') wwpLeosBenchmarkProfileLatencyStatsMax = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 4, 1, 5), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileLatencyStatsMax.setStatus('current') wwpLeosBenchmarkProfileLatencyStatsAvg = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 4, 1, 6), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileLatencyStatsAvg.setStatus('current') wwpLeosBenchmarkProfileLatencyStatsSamples = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 4, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileLatencyStatsSamples.setStatus('current') wwpLeosBenchmarkProfileLatencyStatsActiveVid = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 4, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileLatencyStatsActiveVid.setStatus('current') wwpLeosBenchmarkProfileLatencyStatsActiveDstMac = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 4, 1, 9), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileLatencyStatsActiveDstMac.setStatus('current') wwpLeosBenchmarkProfilePdvStatisticsTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 5), ) if mibBuilder.loadTexts: wwpLeosBenchmarkProfilePdvStatisticsTable.setStatus('current') wwpLeosBenchmarkProfilePdvStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 5, 1), ).setIndexNames((0, "WWP-LEOS-BENCHMARK-MIB", "wwpLeosBenchmarkProfilePdvStatsProfileId"), (0, "WWP-LEOS-BENCHMARK-MIB", "wwpLeosBenchmarkProfilePdvStatsFrameSizeIndex")) if mibBuilder.loadTexts: wwpLeosBenchmarkProfilePdvStatsEntry.setStatus('current') wwpLeosBenchmarkProfilePdvStatsProfileId = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 5, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 20))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfilePdvStatsProfileId.setStatus('current') wwpLeosBenchmarkProfilePdvStatsFrameSizeIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 5, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 9))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfilePdvStatsFrameSizeIndex.setStatus('current') wwpLeosBenchmarkProfilePdvStatsFrameSize = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 5, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfilePdvStatsFrameSize.setStatus('current') wwpLeosBenchmarkProfilePdvStatsAvg = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 5, 1, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfilePdvStatsAvg.setStatus('current') wwpLeosBenchmarkProfilePdvStatsSamples = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 5, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfilePdvStatsSamples.setStatus('current') wwpLeosBenchmarkProfilePdvStatsActiveVid = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 5, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfilePdvStatsActiveVid.setStatus('current') wwpLeosBenchmarkProfilePdvStatsActiveDstMac = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 5, 1, 7), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfilePdvStatsActiveDstMac.setStatus('current') wwpLeosBenchmarkProfileFrameSizeTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 6), ) if mibBuilder.loadTexts: wwpLeosBenchmarkProfileFrameSizeTable.setStatus('current') wwpLeosBenchmarkProfileFrameSizeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 6, 1), ).setIndexNames((0, "WWP-LEOS-BENCHMARK-MIB", "wwpLeosBenchmarkProfileFrameSizeProfileId"), (0, "WWP-LEOS-BENCHMARK-MIB", "wwpLeosBenchmarkProfileFrameSizeIndex")) if mibBuilder.loadTexts: wwpLeosBenchmarkProfileFrameSizeEntry.setStatus('current') wwpLeosBenchmarkProfileFrameSizeProfileId = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 6, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 20))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileFrameSizeProfileId.setStatus('current') wwpLeosBenchmarkProfileFrameSizeIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 6, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 9))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileFrameSizeIndex.setStatus('current') wwpLeosBenchmarkProfileFrameSize = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 6, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkProfileFrameSize.setStatus('current') wwpLeosBenchmarkFpgaStatsRxPkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 4, 1), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkFpgaStatsRxPkts.setStatus('current') wwpLeosBenchmarkFpgaStatsCrcPkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 4, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkFpgaStatsCrcPkts.setStatus('current') wwpLeosBenchmarkFpgaStatsUdpChecksumPkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 4, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkFpgaStatsUdpChecksumPkts.setStatus('current') wwpLeosBenchmarkFpgaStatsDiscardPkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 4, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkFpgaStatsDiscardPkts.setStatus('current') wwpLeosBenchmarkFpgaStatsDuplicatePkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 4, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkFpgaStatsDuplicatePkts.setStatus('current') wwpLeosBenchmarkFpgaStatsOOSeqPkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 4, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkFpgaStatsOOSeqPkts.setStatus('deprecated') wwpLeosBenchmarkFpgaStatsTxPkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 4, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkFpgaStatsTxPkts.setStatus('current') wwpLeosBenchmarkFpgaStatsOOOPkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 4, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkFpgaStatsOOOPkts.setStatus('current') wwpLeosBenchmarkFpgaStatsDiscSeqNumPkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 4, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkFpgaStatsDiscSeqNumPkts.setStatus('current') wwpLeosBenchmarkPortStatsTxBytes = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 1), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsTxBytes.setStatus('current') wwpLeosBenchmarkPortStatsTxPkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsTxPkts.setStatus('current') wwpLeosBenchmarkPortStatsCrcErrorPkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsCrcErrorPkts.setStatus('current') wwpLeosBenchmarkPortStatsUcastPkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsUcastPkts.setStatus('current') wwpLeosBenchmarkPortStatsMcastPkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsMcastPkts.setStatus('current') wwpLeosBenchmarkPortStatsBcastPkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsBcastPkts.setStatus('current') wwpLeosBenchmarkPortStatsUndersizePkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsUndersizePkts.setStatus('current') wwpLeosBenchmarkPortStatsOversizePkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsOversizePkts.setStatus('current') wwpLeosBenchmarkPortStatsFragmentsPkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsFragmentsPkts.setStatus('current') wwpLeosBenchmarkPortStatsJabbersPkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsJabbersPkts.setStatus('current') wwpLeosBenchmarkPortStatsTxPausePkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsTxPausePkts.setStatus('current') wwpLeosBenchmarkPortStatsTxDropPkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 12), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsTxDropPkts.setStatus('current') wwpLeosBenchmarkPortStatsTxDiscardPkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsTxDiscardPkts.setStatus('current') wwpLeosBenchmarkPortStatsTxLOutRangePkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 14), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsTxLOutRangePkts.setStatus('current') wwpLeosBenchmarkPortStatsTx64OctsPkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 15), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsTx64OctsPkts.setStatus('current') wwpLeosBenchmarkPortStatsTx65To127Pkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 16), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsTx65To127Pkts.setStatus('current') wwpLeosBenchmarkPortStatsTx128To255Pkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 17), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsTx128To255Pkts.setStatus('current') wwpLeosBenchmarkPortStatsTx256To511Pkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 18), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsTx256To511Pkts.setStatus('current') wwpLeosBenchmarkPortStatsTx512To1023Pkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 19), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsTx512To1023Pkts.setStatus('current') wwpLeosBenchmarkPortStatsTx1024To1518Pkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 20), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsTx1024To1518Pkts.setStatus('current') wwpLeosBenchmarkPortStatsTx1519To2047Pkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 21), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsTx1519To2047Pkts.setStatus('current') wwpLeosBenchmarkPortStatsTx2048To4095Pkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 22), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsTx2048To4095Pkts.setStatus('current') wwpLeosBenchmarkPortStatsTx4096To9216Pkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 23), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsTx4096To9216Pkts.setStatus('current') wwpLeosBenchmarkPortStatsRxBytes = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 24), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRxBytes.setStatus('current') wwpLeosBenchmarkPortStatsRxPkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 25), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRxPkts.setStatus('current') wwpLeosBenchmarkPortStatsRxExDeferPkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 26), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRxExDeferPkts.setStatus('current') wwpLeosBenchmarkPortStatsRxDeferPkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 27), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRxDeferPkts.setStatus('current') wwpLeosBenchmarkPortStatsRxGiantPkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 28), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRxGiantPkts.setStatus('current') wwpLeosBenchmarkPortStatsRxUnderRunPkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 29), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRxUnderRunPkts.setStatus('current') wwpLeosBenchmarkPortStatsRxCrcErrorPkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 30), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRxCrcErrorPkts.setStatus('current') wwpLeosBenchmarkPortStatsRxLCheckErrorPkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 31), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRxLCheckErrorPkts.setStatus('current') wwpLeosBenchmarkPortStatsRxLOutRangePkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 32), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRxLOutRangePkts.setStatus('current') wwpLeosBenchmarkPortStatsRxPausePkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 33), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRxPausePkts.setStatus('current') wwpLeosBenchmarkPortStatsRxUcastPkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 34), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRxUcastPkts.setStatus('current') wwpLeosBenchmarkPortStatsRxMcastPkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 35), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRxMcastPkts.setStatus('current') wwpLeosBenchmarkPortStatsRxBcastPkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 36), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRxBcastPkts.setStatus('current') wwpLeosBenchmarkPortStatsRx64Pkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 37), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRx64Pkts.setStatus('current') wwpLeosBenchmarkPortStatsRx65To127Pkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 38), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRx65To127Pkts.setStatus('current') wwpLeosBenchmarkPortStatsRx128To255Pkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 39), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRx128To255Pkts.setStatus('current') wwpLeosBenchmarkPortStatsRx256To511Pkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 40), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRx256To511Pkts.setStatus('current') wwpLeosBenchmarkPortStatsRx512To1023Pkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 41), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRx512To1023Pkts.setStatus('current') wwpLeosBenchmarkPortStatsRx1024To1518Pkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 42), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRx1024To1518Pkts.setStatus('current') wwpLeosBenchmarkPortStatsRx1519To2047Pkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 43), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRx1519To2047Pkts.setStatus('current') wwpLeosBenchmarkPortStatsRx2048To4095Pkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 44), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRx2048To4095Pkts.setStatus('current') wwpLeosBenchmarkPortStatsRx4096To9216Pkts = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 45), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRx4096To9216Pkts.setStatus('current') mibBuilder.exportSymbols("WWP-LEOS-BENCHMARK-MIB", wwpLeosBenchmarkProfileLatencyStatsAvg=wwpLeosBenchmarkProfileLatencyStatsAvg, wwpLeosBenchmarkProfileEntryBandwidth=wwpLeosBenchmarkProfileEntryBandwidth, wwpLeosBenchmarkPortStatsRx128To255Pkts=wwpLeosBenchmarkPortStatsRx128To255Pkts, wwpLeosBenchmarkProfileFrameSizeProfileId=wwpLeosBenchmarkProfileFrameSizeProfileId, wwpLeosBenchmarkFpgaStatsDiscSeqNumPkts=wwpLeosBenchmarkFpgaStatsDiscSeqNumPkts, wwpLeosBenchmarkPortStatsTx65To127Pkts=wwpLeosBenchmarkPortStatsTx65To127Pkts, wwpLeosBenchmarkProfileLatencyStatsActiveVid=wwpLeosBenchmarkProfileLatencyStatsActiveVid, wwpLeosBenchmarkProfileFramelossStatsProfileId=wwpLeosBenchmarkProfileFramelossStatsProfileId, wwpLeosBenchmarkProfileLatencyStatsProfileId=wwpLeosBenchmarkProfileLatencyStatsProfileId, wwpLeosBenchmarkGeneratorCurrentRate=wwpLeosBenchmarkGeneratorCurrentRate, wwpLeosBenchmarkPort=wwpLeosBenchmarkPort, wwpLeosBenchmarkProfileLatencyStatisticsTable=wwpLeosBenchmarkProfileLatencyStatisticsTable, wwpLeosBenchmarkProfileEntryMaxSamples=wwpLeosBenchmarkProfileEntryMaxSamples, wwpLeosBenchmarkProfileThroughputStatisticsTable=wwpLeosBenchmarkProfileThroughputStatisticsTable, wwpLeosBenchmarkPortStatsTx512To1023Pkts=wwpLeosBenchmarkPortStatsTx512To1023Pkts, wwpLeosBenchmarkProfileEntrySamplingInterval=wwpLeosBenchmarkProfileEntrySamplingInterval, wwpLeosBenchmarkPortStatsTx1024To1518Pkts=wwpLeosBenchmarkPortStatsTx1024To1518Pkts, wwpLeosBenchmarkPortStatsRx1519To2047Pkts=wwpLeosBenchmarkPortStatsRx1519To2047Pkts, wwpLeosBenchmarkProfileThroughputStatsMin=wwpLeosBenchmarkProfileThroughputStatsMin, wwpLeosBenchmarkProfileEntryThroughputTest=wwpLeosBenchmarkProfileEntryThroughputTest, wwpLeosBenchmarkPortStatsTx2048To4095Pkts=wwpLeosBenchmarkPortStatsTx2048To4095Pkts, wwpLeosBenchmarkReflectorVendorType=wwpLeosBenchmarkReflectorVendorType, wwpLeosBenchmarkProfileEntryPdvTest=wwpLeosBenchmarkProfileEntryPdvTest, wwpLeosBenchmarkPortStatsRx256To511Pkts=wwpLeosBenchmarkPortStatsRx256To511Pkts, wwpLeosBenchmarkProfileEntrySrcIpAddr=wwpLeosBenchmarkProfileEntrySrcIpAddr, wwpLeosBenchmarkPortStatsRx2048To4095Pkts=wwpLeosBenchmarkPortStatsRx2048To4095Pkts, wwpLeosBenchmarkProfileEntryMaxSearches=wwpLeosBenchmarkProfileEntryMaxSearches, wwpLeosBenchmarkMode=wwpLeosBenchmarkMode, wwpLeosBenchmarkProfileEntryFramelossTest=wwpLeosBenchmarkProfileEntryFramelossTest, wwpLeosBenchmarkProfileObjects=wwpLeosBenchmarkProfileObjects, wwpLeosBenchmarkPortStatsRxBcastPkts=wwpLeosBenchmarkPortStatsRxBcastPkts, wwpLeosBenchmarkPortStatsUcastPkts=wwpLeosBenchmarkPortStatsUcastPkts, wwpLeosBenchmarkProfileEntryCfi=wwpLeosBenchmarkProfileEntryCfi, wwpLeosBenchmarkProfilePdvStatisticsTable=wwpLeosBenchmarkProfilePdvStatisticsTable, wwpLeosBenchmarkPortStatsRxGiantPkts=wwpLeosBenchmarkPortStatsRxGiantPkts, wwpLeosBenchmarkProfileLatencyStatsMin=wwpLeosBenchmarkProfileLatencyStatsMin, wwpLeosBenchmarkFpgaStatsTxPkts=wwpLeosBenchmarkFpgaStatsTxPkts, wwpLeosBenchmarkFpgaStatsCrcPkts=wwpLeosBenchmarkFpgaStatsCrcPkts, wwpLeosBenchmarkPortStatsBcastPkts=wwpLeosBenchmarkPortStatsBcastPkts, wwpLeosBenchmarkPortStats=wwpLeosBenchmarkPortStats, wwpLeosBenchmarkProfileEntryCustomPayload=wwpLeosBenchmarkProfileEntryCustomPayload, wwpLeosBenchmarkPortStatsCrcErrorPkts=wwpLeosBenchmarkPortStatsCrcErrorPkts, wwpLeosBenchmarkProfileThroughputStatsFrameSizeIndex=wwpLeosBenchmarkProfileThroughputStatsFrameSizeIndex, wwpLeosBenchmarkGeneratorCurrentIteration=wwpLeosBenchmarkGeneratorCurrentIteration, wwpLeosBenchmarkProfileFramelossStatsRateIndex=wwpLeosBenchmarkProfileFramelossStatsRateIndex, wwpLeosBenchmarkProfileFramelossStatsActiveVid=wwpLeosBenchmarkProfileFramelossStatsActiveVid, wwpLeosBenchmarkProfileEntryStarted=wwpLeosBenchmarkProfileEntryStarted, wwpLeosBenchmarkMIBObjects=wwpLeosBenchmarkMIBObjects, wwpLeosBenchmarkProfileFrameSizeTable=wwpLeosBenchmarkProfileFrameSizeTable, wwpLeosBenchmarkPortStatsRx64Pkts=wwpLeosBenchmarkPortStatsRx64Pkts, wwpLeosBenchmarkProfileThroughputStatsProfileId=wwpLeosBenchmarkProfileThroughputStatsProfileId, wwpLeosBenchmarkPortStatsJabbersPkts=wwpLeosBenchmarkPortStatsJabbersPkts, wwpLeosBenchmarkPortStatsRx4096To9216Pkts=wwpLeosBenchmarkPortStatsRx4096To9216Pkts, wwpLeosBenchmarkProfileEntryTpid=wwpLeosBenchmarkProfileEntryTpid, wwpLeosBenchmarkProfileLatencyStatsActiveDstMac=wwpLeosBenchmarkProfileLatencyStatsActiveDstMac, wwpLeosBenchmarkFpgaStatsDiscardPkts=wwpLeosBenchmarkFpgaStatsDiscardPkts, wwpLeosBenchmarkPortStatsTx64OctsPkts=wwpLeosBenchmarkPortStatsTx64OctsPkts, wwpLeosBenchmarkGeneratorFramelossTestState=wwpLeosBenchmarkGeneratorFramelossTestState, wwpLeosBenchmarkPortStatsTx128To255Pkts=wwpLeosBenchmarkPortStatsTx128To255Pkts, wwpLeosBenchmarkProfileLatencyStatsFrameSize=wwpLeosBenchmarkProfileLatencyStatsFrameSize, wwpLeosBenchmarkPortStatsTxDiscardPkts=wwpLeosBenchmarkPortStatsTxDiscardPkts, wwpLeosBenchmarkProfileFrameSizeEntry=wwpLeosBenchmarkProfileFrameSizeEntry, wwpLeosBenchmarkGeneratorEnable=wwpLeosBenchmarkGeneratorEnable, wwpLeosBenchmarkOperEnable=wwpLeosBenchmarkOperEnable, wwpLeosBenchmarkProfileFrameSizeIndex=wwpLeosBenchmarkProfileFrameSizeIndex, wwpLeosBenchmarkPortStatsRxUnderRunPkts=wwpLeosBenchmarkPortStatsRxUnderRunPkts, wwpLeosBenchmarkPortStatsTx1519To2047Pkts=wwpLeosBenchmarkPortStatsTx1519To2047Pkts, wwpLeosBenchmarkProfilePdvStatsFrameSize=wwpLeosBenchmarkProfilePdvStatsFrameSize, BenchmarkLatencyPdvTestState=BenchmarkLatencyPdvTestState, wwpLeosBenchmarkProfileLatencyStatsMax=wwpLeosBenchmarkProfileLatencyStatsMax, wwpLeosBenchmarkProfileEntryInterval=wwpLeosBenchmarkProfileEntryInterval, wwpLeosBenchmarkProfileEntryEncapType=wwpLeosBenchmarkProfileEntryEncapType, wwpLeosBenchmarkPortStatsRxLCheckErrorPkts=wwpLeosBenchmarkPortStatsRxLCheckErrorPkts, wwpLeosBenchmarkProfileEntryDuration=wwpLeosBenchmarkProfileEntryDuration, wwpLeosBenchmarkProfileLatencyStatsFrameSizeIndex=wwpLeosBenchmarkProfileLatencyStatsFrameSizeIndex, wwpLeosBenchmarkPortStatsRxPausePkts=wwpLeosBenchmarkPortStatsRxPausePkts, wwpLeosBenchmarkProfileEntryDscp=wwpLeosBenchmarkProfileEntryDscp, wwpLeosBenchmarkGeneratorTotalIterations=wwpLeosBenchmarkGeneratorTotalIterations, wwpLeosBenchmarkProfileLatencyStatsEntry=wwpLeosBenchmarkProfileLatencyStatsEntry, wwpLeosBenchmarkGeneratorModule=wwpLeosBenchmarkGeneratorModule, wwpLeosBenchmarkReflectorModule=wwpLeosBenchmarkReflectorModule, wwpLeosBenchmarkProfileEntryId=wwpLeosBenchmarkProfileEntryId, wwpLeosBenchmarkGeneratorCurrentPktSize=wwpLeosBenchmarkGeneratorCurrentPktSize, wwpLeosBenchmarkMIB=wwpLeosBenchmarkMIB, wwpLeosBenchmarkPortStatsTxDropPkts=wwpLeosBenchmarkPortStatsTxDropPkts, wwpLeosBenchmarkPortStatsRxUcastPkts=wwpLeosBenchmarkPortStatsRxUcastPkts, wwpLeosBenchmarkGeneratorLatencyTestState=wwpLeosBenchmarkGeneratorLatencyTestState, wwpLeosBenchmarkProfilePdvStatsActiveVid=wwpLeosBenchmarkProfilePdvStatsActiveVid, wwpLeosBenchmarkPortStatsRxMcastPkts=wwpLeosBenchmarkPortStatsRxMcastPkts, wwpLeosBenchmarkProfileEntryLatencyTest=wwpLeosBenchmarkProfileEntryLatencyTest, wwpLeosBenchmarkProfileFramelossStatsRate=wwpLeosBenchmarkProfileFramelossStatsRate, wwpLeosBenchmarkFpgaStatsDuplicatePkts=wwpLeosBenchmarkFpgaStatsDuplicatePkts, wwpLeosBenchmarkProfileFramelossStatsSecond=wwpLeosBenchmarkProfileFramelossStatsSecond, wwpLeosBenchmarkRole=wwpLeosBenchmarkRole, wwpLeosBenchmarkProfileFramelossStatsFirst=wwpLeosBenchmarkProfileFramelossStatsFirst, wwpLeosBenchmarkProfileEntryVid=wwpLeosBenchmarkProfileEntryVid, wwpLeosBenchmarkProfileFramelossStatisticsTable=wwpLeosBenchmarkProfileFramelossStatisticsTable, wwpLeosBenchmarkPortStatsRxPkts=wwpLeosBenchmarkPortStatsRxPkts, wwpLeosBenchmarkPortStatsFragmentsPkts=wwpLeosBenchmarkPortStatsFragmentsPkts, wwpLeosBenchmarkReflectorEnable=wwpLeosBenchmarkReflectorEnable, wwpLeosBenchmarkPortStatsTxPausePkts=wwpLeosBenchmarkPortStatsTxPausePkts, wwpLeosBenchmarkFpgaStats=wwpLeosBenchmarkFpgaStats, wwpLeosBenchmarkGeneratorRfc2544State=wwpLeosBenchmarkGeneratorRfc2544State, wwpLeosBenchmarkPortStatsTxLOutRangePkts=wwpLeosBenchmarkPortStatsTxLOutRangePkts, wwpLeosBenchmarkPortStatsRxDeferPkts=wwpLeosBenchmarkPortStatsRxDeferPkts, wwpLeosBenchmarkModule=wwpLeosBenchmarkModule, wwpLeosBenchmarkPortStatsRxExDeferPkts=wwpLeosBenchmarkPortStatsRxExDeferPkts, wwpLeosBenchmarkPortStatsRx512To1023Pkts=wwpLeosBenchmarkPortStatsRx512To1023Pkts, wwpLeosBenchmarkProfileTable=wwpLeosBenchmarkProfileTable, wwpLeosBenchmarkProfileEntryEnabled=wwpLeosBenchmarkProfileEntryEnabled, wwpLeosBenchmarkProfileEntryDstmac=wwpLeosBenchmarkProfileEntryDstmac, wwpLeosBenchmarkProfileEntryVidValidation=wwpLeosBenchmarkProfileEntryVidValidation, wwpLeosBenchmarkProfileThroughputStatsAvg=wwpLeosBenchmarkProfileThroughputStatsAvg, wwpLeosBenchmarkEnable=wwpLeosBenchmarkEnable, wwpLeosBenchmarkProfilePdvStatsEntry=wwpLeosBenchmarkProfilePdvStatsEntry, wwpLeosBenchmarkPortStatsUndersizePkts=wwpLeosBenchmarkPortStatsUndersizePkts, wwpLeosBenchmarkProfileEntryPduType=wwpLeosBenchmarkProfileEntryPduType, wwpLeosBenchmarkPortStatsTx4096To9216Pkts=wwpLeosBenchmarkPortStatsTx4096To9216Pkts, wwpLeosBenchmarkProfileThroughputStatsFrameSize=wwpLeosBenchmarkProfileThroughputStatsFrameSize, wwpLeosBenchmarkLocalFpgaMac=wwpLeosBenchmarkLocalFpgaMac, wwpLeosBenchmarkProfileEntryPcp=wwpLeosBenchmarkProfileEntryPcp, wwpLeosBenchmarkFpgaStatsUdpChecksumPkts=wwpLeosBenchmarkFpgaStatsUdpChecksumPkts, wwpLeosBenchmarkPortStatsRxLOutRangePkts=wwpLeosBenchmarkPortStatsRxLOutRangePkts, wwpLeosBenchmarkPortStatsOversizePkts=wwpLeosBenchmarkPortStatsOversizePkts, wwpLeosBenchmarkProfilePdvStatsSamples=wwpLeosBenchmarkProfilePdvStatsSamples, wwpLeosBenchmarkProfileFramelossStatsEntry=wwpLeosBenchmarkProfileFramelossStatsEntry, wwpLeosBenchmarkPortStatsRxBytes=wwpLeosBenchmarkPortStatsRxBytes, wwpLeosBenchmarkGeneratorPdvTestState=wwpLeosBenchmarkGeneratorPdvTestState, wwpLeosBenchmarkGeneratorSamplesCompleted=wwpLeosBenchmarkGeneratorSamplesCompleted, wwpLeosBenchmarkProfileFramelossStatsFrameSize=wwpLeosBenchmarkProfileFramelossStatsFrameSize, wwpLeosBenchmarkGeneratorprofileUnderTest=wwpLeosBenchmarkGeneratorprofileUnderTest, wwpLeosBenchmarkProfileThroughputStatsIterations=wwpLeosBenchmarkProfileThroughputStatsIterations, wwpLeosBenchmarkFpgaStatsOOSeqPkts=wwpLeosBenchmarkFpgaStatsOOSeqPkts, wwpLeosBenchmarkFpgaStatsOOOPkts=wwpLeosBenchmarkFpgaStatsOOOPkts, wwpLeosBenchmarkProfileThroughputStatsEntry=wwpLeosBenchmarkProfileThroughputStatsEntry, wwpLeosBenchmarkFpgaStatsRxPkts=wwpLeosBenchmarkFpgaStatsRxPkts, wwpLeosBenchmarkGeneratorThroughputTestState=wwpLeosBenchmarkGeneratorThroughputTestState, wwpLeosBenchmarkProfileEntryDstIpAddr=wwpLeosBenchmarkProfileEntryDstIpAddr, wwpLeosBenchmarkProfileThroughputStatsActiveVid=wwpLeosBenchmarkProfileThroughputStatsActiveVid, wwpLeosBenchmarkPortStatsRxCrcErrorPkts=wwpLeosBenchmarkPortStatsRxCrcErrorPkts, wwpLeosBenchmarkPortStatsRx65To127Pkts=wwpLeosBenchmarkPortStatsRx65To127Pkts, wwpLeosBenchmarkProfileThroughputStatsMax=wwpLeosBenchmarkProfileThroughputStatsMax, wwpLeosBenchmarkProfileEntry=wwpLeosBenchmarkProfileEntry, wwpLeosBenchmarkProfileEntryFrameLossStartBw=wwpLeosBenchmarkProfileEntryFrameLossStartBw, wwpLeosBenchmarkProfilePdvStatsFrameSizeIndex=wwpLeosBenchmarkProfilePdvStatsFrameSizeIndex, wwpLeosBenchmarkProfileThroughputStatsActiveDstMac=wwpLeosBenchmarkProfileThroughputStatsActiveDstMac, wwpLeosBenchmarkProfilePdvStatsAvg=wwpLeosBenchmarkProfilePdvStatsAvg, PYSNMP_MODULE_ID=wwpLeosBenchmarkMIB, wwpLeosBenchmarkPortStatsRx1024To1518Pkts=wwpLeosBenchmarkPortStatsRx1024To1518Pkts, wwpLeosBenchmarkProfilePdvStatsActiveDstMac=wwpLeosBenchmarkProfilePdvStatsActiveDstMac, wwpLeosBenchmarkProfilePdvStatsProfileId=wwpLeosBenchmarkProfilePdvStatsProfileId, wwpLeosBenchmarkProfileFramelossStatsActiveDstMac=wwpLeosBenchmarkProfileFramelossStatsActiveDstMac, wwpLeosBenchmarkProfileEntryRfc2544Suite=wwpLeosBenchmarkProfileEntryRfc2544Suite, wwpLeosBenchmarkReflectorVid=wwpLeosBenchmarkReflectorVid, wwpLeosBenchmarkProfileLatencyStatsSamples=wwpLeosBenchmarkProfileLatencyStatsSamples, wwpLeosBenchmarkProfileEntryName=wwpLeosBenchmarkProfileEntryName, wwpLeosBenchmarkPortStatsTxBytes=wwpLeosBenchmarkPortStatsTxBytes, wwpLeosBenchmarkProfileFrameSize=wwpLeosBenchmarkProfileFrameSize, wwpLeosBenchmarkProfileFramelossStatsFrameSizeIndex=wwpLeosBenchmarkProfileFramelossStatsFrameSizeIndex, wwpLeosBenchmarkPortStatsMcastPkts=wwpLeosBenchmarkPortStatsMcastPkts, wwpLeosBenchmarkPortStatsTxPkts=wwpLeosBenchmarkPortStatsTxPkts, wwpLeosBenchmarkPortStatsTx256To511Pkts=wwpLeosBenchmarkPortStatsTx256To511Pkts)
(octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier') (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') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (counter32, unsigned32, iso, module_identity, bits, notification_type, ip_address, gauge32, integer32, object_identity, mib_scalar, mib_table, mib_table_row, mib_table_column, mib_identifier, counter64, time_ticks) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter32', 'Unsigned32', 'iso', 'ModuleIdentity', 'Bits', 'NotificationType', 'IpAddress', 'Gauge32', 'Integer32', 'ObjectIdentity', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'MibIdentifier', 'Counter64', 'TimeTicks') (display_string, mac_address, textual_convention, truth_value) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'MacAddress', 'TextualConvention', 'TruthValue') (wwp_modules_leos,) = mibBuilder.importSymbols('WWP-SMI', 'wwpModulesLeos') wwp_leos_benchmark_mib = module_identity((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43)) wwpLeosBenchmarkMIB.setRevisions(('2012-02-13 08:00', '2012-02-03 08:00', '2010-12-14 08:00', '2010-11-25 08:00', '2010-11-15 08:00')) if mibBuilder.loadTexts: wwpLeosBenchmarkMIB.setLastUpdated('201202130800Z') if mibBuilder.loadTexts: wwpLeosBenchmarkMIB.setOrganization('Ciena, Inc') class Benchmarklatencypdvteststate(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(('idle', 1), ('sendingTraffic', 2), ('waitingForTimestampData', 3), ('waitingForResidualPackets', 4), ('processingResults', 5), ('stoppedByIntervalTimer', 6), ('stoppedByDurationTimer', 7), ('stoppedByUser', 8), ('done', 9)) wwp_leos_benchmark_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1)) wwp_leos_benchmark_module = mib_identifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 1)) wwp_leos_benchmark_reflector_module = mib_identifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 2)) wwp_leos_benchmark_generator_module = mib_identifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 3)) wwp_leos_benchmark_fpga_stats = mib_identifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 4)) wwp_leos_benchmark_port_stats = mib_identifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5)) wwp_leos_benchmark_profile_objects = mib_identifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6)) wwp_leos_benchmark_role = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('none', 1), ('reflector', 2), ('generator', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosBenchmarkRole.setStatus('current') wwp_leos_benchmark_port = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 64))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosBenchmarkPort.setStatus('current') wwp_leos_benchmark_mode = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('none', 1), ('inService', 2), ('outOfService', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosBenchmarkMode.setStatus('current') wwp_leos_benchmark_enable = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 1, 4), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosBenchmarkEnable.setStatus('current') wwp_leos_benchmark_oper_enable = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 1, 5), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkOperEnable.setStatus('current') wwp_leos_benchmark_local_fpga_mac = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 1, 6), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkLocalFpgaMac.setStatus('current') wwp_leos_benchmark_reflector_enable = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 2, 1), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosBenchmarkReflectorEnable.setStatus('current') wwp_leos_benchmark_reflector_vid = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 2, 2), integer32().subtype(subtypeSpec=value_range_constraint(-1, 4095))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosBenchmarkReflectorVid.setStatus('current') wwp_leos_benchmark_reflector_vendor_type = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 2, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('other', 1), ('ciena', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosBenchmarkReflectorVendorType.setStatus('current') wwp_leos_benchmark_generator_enable = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 3, 1), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosBenchmarkGeneratorEnable.setStatus('current') wwp_leos_benchmark_generatorprofile_under_test = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 3, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkGeneratorprofileUnderTest.setStatus('current') wwp_leos_benchmark_generator_throughput_test_state = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 3, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('idle', 1), ('running', 2), ('waitingForResidualPackets', 3), ('processingResults', 4), ('stoppedByIntervalTimer', 5), ('stoppedByDurationTimer', 6), ('stoppedByUser', 7), ('done', 8)))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkGeneratorThroughputTestState.setStatus('current') wwp_leos_benchmark_generator_frameloss_test_state = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 3, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))).clone(namedValues=named_values(('idle', 1), ('runningFirstTest', 2), ('waitingForResidualFirstPackets', 3), ('processingFirstResults', 4), ('runningSecondTest', 5), ('waitingForResidualSecondPackets', 6), ('processingSecondResults', 7), ('stoppedByIntervalTimer', 8), ('stoppedByDurationTimer', 9), ('stoppedByUser', 10), ('done', 11)))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkGeneratorFramelossTestState.setStatus('current') wwp_leos_benchmark_generator_latency_test_state = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 3, 5), benchmark_latency_pdv_test_state()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkGeneratorLatencyTestState.setStatus('current') wwp_leos_benchmark_generator_pdv_test_state = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 3, 6), benchmark_latency_pdv_test_state()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkGeneratorPdvTestState.setStatus('current') wwp_leos_benchmark_generator_rfc2544_state = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 3, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('idle', 1), ('running', 2), ('stoppedByIntervalTimer', 3), ('stoppedByDurationTimer', 4), ('stoppedByUser', 5), ('done', 6)))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkGeneratorRfc2544State.setStatus('current') wwp_leos_benchmark_generator_current_pkt_size = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 3, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkGeneratorCurrentPktSize.setStatus('current') wwp_leos_benchmark_generator_current_rate = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 3, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkGeneratorCurrentRate.setStatus('current') wwp_leos_benchmark_generator_samples_completed = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 3, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkGeneratorSamplesCompleted.setStatus('current') wwp_leos_benchmark_generator_current_iteration = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 3, 11), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkGeneratorCurrentIteration.setStatus('current') wwp_leos_benchmark_generator_total_iterations = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 3, 12), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkGeneratorTotalIterations.setStatus('current') wwp_leos_benchmark_profile_table = mib_table((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1)) if mibBuilder.loadTexts: wwpLeosBenchmarkProfileTable.setStatus('current') wwp_leos_benchmark_profile_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1)).setIndexNames((0, 'WWP-LEOS-BENCHMARK-MIB', 'wwpLeosBenchmarkProfileEntryId')) if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntry.setStatus('current') wwp_leos_benchmark_profile_entry_id = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 24))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryId.setStatus('current') wwp_leos_benchmark_profile_entry_name = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(1, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryName.setStatus('current') wwp_leos_benchmark_profile_entry_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 3), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryEnabled.setStatus('current') wwp_leos_benchmark_profile_entry_started = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 4), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryStarted.setStatus('current') wwp_leos_benchmark_profile_entry_interval = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('t15min', 1), ('t1hr', 2), ('t6hr', 3), ('tCompletion', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryInterval.setStatus('current') wwp_leos_benchmark_profile_entry_duration = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('t15min', 1), ('t1hr', 2), ('t6hr', 3), ('t24hr', 4), ('tIndefinite', 5), ('tOnce', 6)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryDuration.setStatus('current') wwp_leos_benchmark_profile_entry_throughput_test = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 7), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryThroughputTest.setStatus('current') wwp_leos_benchmark_profile_entry_frameloss_test = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 8), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryFramelossTest.setStatus('current') wwp_leos_benchmark_profile_entry_latency_test = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 9), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryLatencyTest.setStatus('current') wwp_leos_benchmark_profile_entry_pdv_test = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 10), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryPdvTest.setStatus('current') wwp_leos_benchmark_profile_entry_rfc2544_suite = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 11), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryRfc2544Suite.setStatus('current') wwp_leos_benchmark_profile_entry_dstmac = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 12), mac_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryDstmac.setStatus('current') wwp_leos_benchmark_profile_entry_encap_type = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('untagged', 1), ('dot1q', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryEncapType.setStatus('current') wwp_leos_benchmark_profile_entry_vid = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 14), integer32().subtype(subtypeSpec=value_range_constraint(0, 4095))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryVid.setStatus('current') wwp_leos_benchmark_profile_entry_pcp = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 15), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryPcp.setStatus('current') wwp_leos_benchmark_profile_entry_cfi = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 16), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryCfi.setStatus('current') wwp_leos_benchmark_profile_entry_tpid = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 17), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryTpid.setStatus('current') wwp_leos_benchmark_profile_entry_pdu_type = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('ethernet', 1), ('ip', 2), ('udpecho', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryPduType.setStatus('current') wwp_leos_benchmark_profile_entry_src_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 19), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntrySrcIpAddr.setStatus('current') wwp_leos_benchmark_profile_entry_dst_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 20), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryDstIpAddr.setStatus('current') wwp_leos_benchmark_profile_entry_dscp = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 21), integer32().subtype(subtypeSpec=value_range_constraint(0, 63))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryDscp.setStatus('current') wwp_leos_benchmark_profile_entry_custom_payload = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 22), octet_string().subtype(subtypeSpec=value_size_constraint(256, 256)).setFixedLength(256)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryCustomPayload.setStatus('current') wwp_leos_benchmark_profile_entry_bandwidth = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 23), integer32().subtype(subtypeSpec=value_range_constraint(1, 1000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryBandwidth.setStatus('current') wwp_leos_benchmark_profile_entry_vid_validation = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 24), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryVidValidation.setStatus('current') wwp_leos_benchmark_profile_entry_max_searches = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 25), integer32().subtype(subtypeSpec=value_range_constraint(1, 16))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryMaxSearches.setStatus('current') wwp_leos_benchmark_profile_entry_max_samples = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 26), integer32().subtype(subtypeSpec=value_range_constraint(2, 20))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryMaxSamples.setStatus('current') wwp_leos_benchmark_profile_entry_sampling_interval = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 27), integer32().subtype(subtypeSpec=value_range_constraint(1, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntrySamplingInterval.setStatus('current') wwp_leos_benchmark_profile_entry_frame_loss_start_bw = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 1, 1, 28), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('profileBandwidth', 1), ('maximumThroughput', 2), ('maximumLineRate', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileEntryFrameLossStartBw.setStatus('current') wwp_leos_benchmark_profile_throughput_statistics_table = mib_table((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 2)) if mibBuilder.loadTexts: wwpLeosBenchmarkProfileThroughputStatisticsTable.setStatus('current') wwp_leos_benchmark_profile_throughput_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 2, 1)).setIndexNames((0, 'WWP-LEOS-BENCHMARK-MIB', 'wwpLeosBenchmarkProfileThroughputStatsProfileId'), (0, 'WWP-LEOS-BENCHMARK-MIB', 'wwpLeosBenchmarkProfileThroughputStatsFrameSizeIndex')) if mibBuilder.loadTexts: wwpLeosBenchmarkProfileThroughputStatsEntry.setStatus('current') wwp_leos_benchmark_profile_throughput_stats_profile_id = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 20))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileThroughputStatsProfileId.setStatus('current') wwp_leos_benchmark_profile_throughput_stats_frame_size_index = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 9))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileThroughputStatsFrameSizeIndex.setStatus('current') wwp_leos_benchmark_profile_throughput_stats_frame_size = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 2, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileThroughputStatsFrameSize.setStatus('current') wwp_leos_benchmark_profile_throughput_stats_min = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 2, 1, 4), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileThroughputStatsMin.setStatus('current') wwp_leos_benchmark_profile_throughput_stats_max = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 2, 1, 5), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileThroughputStatsMax.setStatus('current') wwp_leos_benchmark_profile_throughput_stats_avg = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 2, 1, 6), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileThroughputStatsAvg.setStatus('current') wwp_leos_benchmark_profile_throughput_stats_iterations = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 2, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileThroughputStatsIterations.setStatus('current') wwp_leos_benchmark_profile_throughput_stats_active_vid = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 2, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 4095))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileThroughputStatsActiveVid.setStatus('current') wwp_leos_benchmark_profile_throughput_stats_active_dst_mac = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 2, 1, 9), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileThroughputStatsActiveDstMac.setStatus('current') wwp_leos_benchmark_profile_frameloss_statistics_table = mib_table((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 3)) if mibBuilder.loadTexts: wwpLeosBenchmarkProfileFramelossStatisticsTable.setStatus('current') wwp_leos_benchmark_profile_frameloss_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 3, 1)).setIndexNames((0, 'WWP-LEOS-BENCHMARK-MIB', 'wwpLeosBenchmarkProfileFramelossStatsProfileId'), (0, 'WWP-LEOS-BENCHMARK-MIB', 'wwpLeosBenchmarkProfileFramelossStatsFrameSizeIndex'), (0, 'WWP-LEOS-BENCHMARK-MIB', 'wwpLeosBenchmarkProfileFramelossStatsRateIndex')) if mibBuilder.loadTexts: wwpLeosBenchmarkProfileFramelossStatsEntry.setStatus('current') wwp_leos_benchmark_profile_frameloss_stats_profile_id = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 20))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileFramelossStatsProfileId.setStatus('current') wwp_leos_benchmark_profile_frameloss_stats_frame_size_index = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 3, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 9))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileFramelossStatsFrameSizeIndex.setStatus('current') wwp_leos_benchmark_profile_frameloss_stats_rate_index = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 3, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 9))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileFramelossStatsRateIndex.setStatus('current') wwp_leos_benchmark_profile_frameloss_stats_frame_size = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 3, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileFramelossStatsFrameSize.setStatus('current') wwp_leos_benchmark_profile_frameloss_stats_rate = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 3, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileFramelossStatsRate.setStatus('current') wwp_leos_benchmark_profile_frameloss_stats_first = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 3, 1, 6), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileFramelossStatsFirst.setStatus('current') wwp_leos_benchmark_profile_frameloss_stats_second = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 3, 1, 7), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileFramelossStatsSecond.setStatus('current') wwp_leos_benchmark_profile_frameloss_stats_active_vid = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 3, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 4095))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileFramelossStatsActiveVid.setStatus('current') wwp_leos_benchmark_profile_frameloss_stats_active_dst_mac = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 3, 1, 9), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileFramelossStatsActiveDstMac.setStatus('current') wwp_leos_benchmark_profile_latency_statistics_table = mib_table((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 4)) if mibBuilder.loadTexts: wwpLeosBenchmarkProfileLatencyStatisticsTable.setStatus('current') wwp_leos_benchmark_profile_latency_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 4, 1)).setIndexNames((0, 'WWP-LEOS-BENCHMARK-MIB', 'wwpLeosBenchmarkProfileLatencyStatsProfileId'), (0, 'WWP-LEOS-BENCHMARK-MIB', 'wwpLeosBenchmarkProfileLatencyStatsFrameSizeIndex')) if mibBuilder.loadTexts: wwpLeosBenchmarkProfileLatencyStatsEntry.setStatus('current') wwp_leos_benchmark_profile_latency_stats_profile_id = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 4, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 20))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileLatencyStatsProfileId.setStatus('current') wwp_leos_benchmark_profile_latency_stats_frame_size_index = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 4, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 9))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileLatencyStatsFrameSizeIndex.setStatus('current') wwp_leos_benchmark_profile_latency_stats_frame_size = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 4, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileLatencyStatsFrameSize.setStatus('current') wwp_leos_benchmark_profile_latency_stats_min = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 4, 1, 4), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileLatencyStatsMin.setStatus('current') wwp_leos_benchmark_profile_latency_stats_max = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 4, 1, 5), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileLatencyStatsMax.setStatus('current') wwp_leos_benchmark_profile_latency_stats_avg = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 4, 1, 6), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileLatencyStatsAvg.setStatus('current') wwp_leos_benchmark_profile_latency_stats_samples = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 4, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileLatencyStatsSamples.setStatus('current') wwp_leos_benchmark_profile_latency_stats_active_vid = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 4, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 4095))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileLatencyStatsActiveVid.setStatus('current') wwp_leos_benchmark_profile_latency_stats_active_dst_mac = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 4, 1, 9), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileLatencyStatsActiveDstMac.setStatus('current') wwp_leos_benchmark_profile_pdv_statistics_table = mib_table((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 5)) if mibBuilder.loadTexts: wwpLeosBenchmarkProfilePdvStatisticsTable.setStatus('current') wwp_leos_benchmark_profile_pdv_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 5, 1)).setIndexNames((0, 'WWP-LEOS-BENCHMARK-MIB', 'wwpLeosBenchmarkProfilePdvStatsProfileId'), (0, 'WWP-LEOS-BENCHMARK-MIB', 'wwpLeosBenchmarkProfilePdvStatsFrameSizeIndex')) if mibBuilder.loadTexts: wwpLeosBenchmarkProfilePdvStatsEntry.setStatus('current') wwp_leos_benchmark_profile_pdv_stats_profile_id = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 5, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 20))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfilePdvStatsProfileId.setStatus('current') wwp_leos_benchmark_profile_pdv_stats_frame_size_index = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 5, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 9))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfilePdvStatsFrameSizeIndex.setStatus('current') wwp_leos_benchmark_profile_pdv_stats_frame_size = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 5, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfilePdvStatsFrameSize.setStatus('current') wwp_leos_benchmark_profile_pdv_stats_avg = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 5, 1, 4), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfilePdvStatsAvg.setStatus('current') wwp_leos_benchmark_profile_pdv_stats_samples = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 5, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfilePdvStatsSamples.setStatus('current') wwp_leos_benchmark_profile_pdv_stats_active_vid = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 5, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 4095))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfilePdvStatsActiveVid.setStatus('current') wwp_leos_benchmark_profile_pdv_stats_active_dst_mac = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 5, 1, 7), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfilePdvStatsActiveDstMac.setStatus('current') wwp_leos_benchmark_profile_frame_size_table = mib_table((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 6)) if mibBuilder.loadTexts: wwpLeosBenchmarkProfileFrameSizeTable.setStatus('current') wwp_leos_benchmark_profile_frame_size_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 6, 1)).setIndexNames((0, 'WWP-LEOS-BENCHMARK-MIB', 'wwpLeosBenchmarkProfileFrameSizeProfileId'), (0, 'WWP-LEOS-BENCHMARK-MIB', 'wwpLeosBenchmarkProfileFrameSizeIndex')) if mibBuilder.loadTexts: wwpLeosBenchmarkProfileFrameSizeEntry.setStatus('current') wwp_leos_benchmark_profile_frame_size_profile_id = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 6, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 20))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileFrameSizeProfileId.setStatus('current') wwp_leos_benchmark_profile_frame_size_index = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 6, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 9))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileFrameSizeIndex.setStatus('current') wwp_leos_benchmark_profile_frame_size = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 6, 6, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkProfileFrameSize.setStatus('current') wwp_leos_benchmark_fpga_stats_rx_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 4, 1), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkFpgaStatsRxPkts.setStatus('current') wwp_leos_benchmark_fpga_stats_crc_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 4, 2), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkFpgaStatsCrcPkts.setStatus('current') wwp_leos_benchmark_fpga_stats_udp_checksum_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 4, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkFpgaStatsUdpChecksumPkts.setStatus('current') wwp_leos_benchmark_fpga_stats_discard_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 4, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkFpgaStatsDiscardPkts.setStatus('current') wwp_leos_benchmark_fpga_stats_duplicate_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 4, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkFpgaStatsDuplicatePkts.setStatus('current') wwp_leos_benchmark_fpga_stats_oo_seq_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 4, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkFpgaStatsOOSeqPkts.setStatus('deprecated') wwp_leos_benchmark_fpga_stats_tx_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 4, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkFpgaStatsTxPkts.setStatus('current') wwp_leos_benchmark_fpga_stats_ooo_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 4, 8), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkFpgaStatsOOOPkts.setStatus('current') wwp_leos_benchmark_fpga_stats_disc_seq_num_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 4, 9), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkFpgaStatsDiscSeqNumPkts.setStatus('current') wwp_leos_benchmark_port_stats_tx_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 1), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsTxBytes.setStatus('current') wwp_leos_benchmark_port_stats_tx_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 2), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsTxPkts.setStatus('current') wwp_leos_benchmark_port_stats_crc_error_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsCrcErrorPkts.setStatus('current') wwp_leos_benchmark_port_stats_ucast_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsUcastPkts.setStatus('current') wwp_leos_benchmark_port_stats_mcast_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsMcastPkts.setStatus('current') wwp_leos_benchmark_port_stats_bcast_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsBcastPkts.setStatus('current') wwp_leos_benchmark_port_stats_undersize_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsUndersizePkts.setStatus('current') wwp_leos_benchmark_port_stats_oversize_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 8), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsOversizePkts.setStatus('current') wwp_leos_benchmark_port_stats_fragments_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 9), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsFragmentsPkts.setStatus('current') wwp_leos_benchmark_port_stats_jabbers_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 10), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsJabbersPkts.setStatus('current') wwp_leos_benchmark_port_stats_tx_pause_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 11), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsTxPausePkts.setStatus('current') wwp_leos_benchmark_port_stats_tx_drop_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 12), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsTxDropPkts.setStatus('current') wwp_leos_benchmark_port_stats_tx_discard_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 13), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsTxDiscardPkts.setStatus('current') wwp_leos_benchmark_port_stats_tx_l_out_range_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 14), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsTxLOutRangePkts.setStatus('current') wwp_leos_benchmark_port_stats_tx64_octs_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 15), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsTx64OctsPkts.setStatus('current') wwp_leos_benchmark_port_stats_tx65_to127_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 16), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsTx65To127Pkts.setStatus('current') wwp_leos_benchmark_port_stats_tx128_to255_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 17), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsTx128To255Pkts.setStatus('current') wwp_leos_benchmark_port_stats_tx256_to511_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 18), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsTx256To511Pkts.setStatus('current') wwp_leos_benchmark_port_stats_tx512_to1023_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 19), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsTx512To1023Pkts.setStatus('current') wwp_leos_benchmark_port_stats_tx1024_to1518_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 20), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsTx1024To1518Pkts.setStatus('current') wwp_leos_benchmark_port_stats_tx1519_to2047_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 21), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsTx1519To2047Pkts.setStatus('current') wwp_leos_benchmark_port_stats_tx2048_to4095_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 22), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsTx2048To4095Pkts.setStatus('current') wwp_leos_benchmark_port_stats_tx4096_to9216_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 23), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsTx4096To9216Pkts.setStatus('current') wwp_leos_benchmark_port_stats_rx_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 24), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRxBytes.setStatus('current') wwp_leos_benchmark_port_stats_rx_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 25), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRxPkts.setStatus('current') wwp_leos_benchmark_port_stats_rx_ex_defer_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 26), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRxExDeferPkts.setStatus('current') wwp_leos_benchmark_port_stats_rx_defer_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 27), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRxDeferPkts.setStatus('current') wwp_leos_benchmark_port_stats_rx_giant_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 28), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRxGiantPkts.setStatus('current') wwp_leos_benchmark_port_stats_rx_under_run_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 29), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRxUnderRunPkts.setStatus('current') wwp_leos_benchmark_port_stats_rx_crc_error_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 30), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRxCrcErrorPkts.setStatus('current') wwp_leos_benchmark_port_stats_rx_l_check_error_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 31), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRxLCheckErrorPkts.setStatus('current') wwp_leos_benchmark_port_stats_rx_l_out_range_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 32), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRxLOutRangePkts.setStatus('current') wwp_leos_benchmark_port_stats_rx_pause_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 33), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRxPausePkts.setStatus('current') wwp_leos_benchmark_port_stats_rx_ucast_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 34), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRxUcastPkts.setStatus('current') wwp_leos_benchmark_port_stats_rx_mcast_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 35), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRxMcastPkts.setStatus('current') wwp_leos_benchmark_port_stats_rx_bcast_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 36), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRxBcastPkts.setStatus('current') wwp_leos_benchmark_port_stats_rx64_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 37), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRx64Pkts.setStatus('current') wwp_leos_benchmark_port_stats_rx65_to127_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 38), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRx65To127Pkts.setStatus('current') wwp_leos_benchmark_port_stats_rx128_to255_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 39), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRx128To255Pkts.setStatus('current') wwp_leos_benchmark_port_stats_rx256_to511_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 40), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRx256To511Pkts.setStatus('current') wwp_leos_benchmark_port_stats_rx512_to1023_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 41), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRx512To1023Pkts.setStatus('current') wwp_leos_benchmark_port_stats_rx1024_to1518_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 42), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRx1024To1518Pkts.setStatus('current') wwp_leos_benchmark_port_stats_rx1519_to2047_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 43), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRx1519To2047Pkts.setStatus('current') wwp_leos_benchmark_port_stats_rx2048_to4095_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 44), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRx2048To4095Pkts.setStatus('current') wwp_leos_benchmark_port_stats_rx4096_to9216_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 43, 1, 5, 45), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosBenchmarkPortStatsRx4096To9216Pkts.setStatus('current') mibBuilder.exportSymbols('WWP-LEOS-BENCHMARK-MIB', wwpLeosBenchmarkProfileLatencyStatsAvg=wwpLeosBenchmarkProfileLatencyStatsAvg, wwpLeosBenchmarkProfileEntryBandwidth=wwpLeosBenchmarkProfileEntryBandwidth, wwpLeosBenchmarkPortStatsRx128To255Pkts=wwpLeosBenchmarkPortStatsRx128To255Pkts, wwpLeosBenchmarkProfileFrameSizeProfileId=wwpLeosBenchmarkProfileFrameSizeProfileId, wwpLeosBenchmarkFpgaStatsDiscSeqNumPkts=wwpLeosBenchmarkFpgaStatsDiscSeqNumPkts, wwpLeosBenchmarkPortStatsTx65To127Pkts=wwpLeosBenchmarkPortStatsTx65To127Pkts, wwpLeosBenchmarkProfileLatencyStatsActiveVid=wwpLeosBenchmarkProfileLatencyStatsActiveVid, wwpLeosBenchmarkProfileFramelossStatsProfileId=wwpLeosBenchmarkProfileFramelossStatsProfileId, wwpLeosBenchmarkProfileLatencyStatsProfileId=wwpLeosBenchmarkProfileLatencyStatsProfileId, wwpLeosBenchmarkGeneratorCurrentRate=wwpLeosBenchmarkGeneratorCurrentRate, wwpLeosBenchmarkPort=wwpLeosBenchmarkPort, wwpLeosBenchmarkProfileLatencyStatisticsTable=wwpLeosBenchmarkProfileLatencyStatisticsTable, wwpLeosBenchmarkProfileEntryMaxSamples=wwpLeosBenchmarkProfileEntryMaxSamples, wwpLeosBenchmarkProfileThroughputStatisticsTable=wwpLeosBenchmarkProfileThroughputStatisticsTable, wwpLeosBenchmarkPortStatsTx512To1023Pkts=wwpLeosBenchmarkPortStatsTx512To1023Pkts, wwpLeosBenchmarkProfileEntrySamplingInterval=wwpLeosBenchmarkProfileEntrySamplingInterval, wwpLeosBenchmarkPortStatsTx1024To1518Pkts=wwpLeosBenchmarkPortStatsTx1024To1518Pkts, wwpLeosBenchmarkPortStatsRx1519To2047Pkts=wwpLeosBenchmarkPortStatsRx1519To2047Pkts, wwpLeosBenchmarkProfileThroughputStatsMin=wwpLeosBenchmarkProfileThroughputStatsMin, wwpLeosBenchmarkProfileEntryThroughputTest=wwpLeosBenchmarkProfileEntryThroughputTest, wwpLeosBenchmarkPortStatsTx2048To4095Pkts=wwpLeosBenchmarkPortStatsTx2048To4095Pkts, wwpLeosBenchmarkReflectorVendorType=wwpLeosBenchmarkReflectorVendorType, wwpLeosBenchmarkProfileEntryPdvTest=wwpLeosBenchmarkProfileEntryPdvTest, wwpLeosBenchmarkPortStatsRx256To511Pkts=wwpLeosBenchmarkPortStatsRx256To511Pkts, wwpLeosBenchmarkProfileEntrySrcIpAddr=wwpLeosBenchmarkProfileEntrySrcIpAddr, wwpLeosBenchmarkPortStatsRx2048To4095Pkts=wwpLeosBenchmarkPortStatsRx2048To4095Pkts, wwpLeosBenchmarkProfileEntryMaxSearches=wwpLeosBenchmarkProfileEntryMaxSearches, wwpLeosBenchmarkMode=wwpLeosBenchmarkMode, wwpLeosBenchmarkProfileEntryFramelossTest=wwpLeosBenchmarkProfileEntryFramelossTest, wwpLeosBenchmarkProfileObjects=wwpLeosBenchmarkProfileObjects, wwpLeosBenchmarkPortStatsRxBcastPkts=wwpLeosBenchmarkPortStatsRxBcastPkts, wwpLeosBenchmarkPortStatsUcastPkts=wwpLeosBenchmarkPortStatsUcastPkts, wwpLeosBenchmarkProfileEntryCfi=wwpLeosBenchmarkProfileEntryCfi, wwpLeosBenchmarkProfilePdvStatisticsTable=wwpLeosBenchmarkProfilePdvStatisticsTable, wwpLeosBenchmarkPortStatsRxGiantPkts=wwpLeosBenchmarkPortStatsRxGiantPkts, wwpLeosBenchmarkProfileLatencyStatsMin=wwpLeosBenchmarkProfileLatencyStatsMin, wwpLeosBenchmarkFpgaStatsTxPkts=wwpLeosBenchmarkFpgaStatsTxPkts, wwpLeosBenchmarkFpgaStatsCrcPkts=wwpLeosBenchmarkFpgaStatsCrcPkts, wwpLeosBenchmarkPortStatsBcastPkts=wwpLeosBenchmarkPortStatsBcastPkts, wwpLeosBenchmarkPortStats=wwpLeosBenchmarkPortStats, wwpLeosBenchmarkProfileEntryCustomPayload=wwpLeosBenchmarkProfileEntryCustomPayload, wwpLeosBenchmarkPortStatsCrcErrorPkts=wwpLeosBenchmarkPortStatsCrcErrorPkts, wwpLeosBenchmarkProfileThroughputStatsFrameSizeIndex=wwpLeosBenchmarkProfileThroughputStatsFrameSizeIndex, wwpLeosBenchmarkGeneratorCurrentIteration=wwpLeosBenchmarkGeneratorCurrentIteration, wwpLeosBenchmarkProfileFramelossStatsRateIndex=wwpLeosBenchmarkProfileFramelossStatsRateIndex, wwpLeosBenchmarkProfileFramelossStatsActiveVid=wwpLeosBenchmarkProfileFramelossStatsActiveVid, wwpLeosBenchmarkProfileEntryStarted=wwpLeosBenchmarkProfileEntryStarted, wwpLeosBenchmarkMIBObjects=wwpLeosBenchmarkMIBObjects, wwpLeosBenchmarkProfileFrameSizeTable=wwpLeosBenchmarkProfileFrameSizeTable, wwpLeosBenchmarkPortStatsRx64Pkts=wwpLeosBenchmarkPortStatsRx64Pkts, wwpLeosBenchmarkProfileThroughputStatsProfileId=wwpLeosBenchmarkProfileThroughputStatsProfileId, wwpLeosBenchmarkPortStatsJabbersPkts=wwpLeosBenchmarkPortStatsJabbersPkts, wwpLeosBenchmarkPortStatsRx4096To9216Pkts=wwpLeosBenchmarkPortStatsRx4096To9216Pkts, wwpLeosBenchmarkProfileEntryTpid=wwpLeosBenchmarkProfileEntryTpid, wwpLeosBenchmarkProfileLatencyStatsActiveDstMac=wwpLeosBenchmarkProfileLatencyStatsActiveDstMac, wwpLeosBenchmarkFpgaStatsDiscardPkts=wwpLeosBenchmarkFpgaStatsDiscardPkts, wwpLeosBenchmarkPortStatsTx64OctsPkts=wwpLeosBenchmarkPortStatsTx64OctsPkts, wwpLeosBenchmarkGeneratorFramelossTestState=wwpLeosBenchmarkGeneratorFramelossTestState, wwpLeosBenchmarkPortStatsTx128To255Pkts=wwpLeosBenchmarkPortStatsTx128To255Pkts, wwpLeosBenchmarkProfileLatencyStatsFrameSize=wwpLeosBenchmarkProfileLatencyStatsFrameSize, wwpLeosBenchmarkPortStatsTxDiscardPkts=wwpLeosBenchmarkPortStatsTxDiscardPkts, wwpLeosBenchmarkProfileFrameSizeEntry=wwpLeosBenchmarkProfileFrameSizeEntry, wwpLeosBenchmarkGeneratorEnable=wwpLeosBenchmarkGeneratorEnable, wwpLeosBenchmarkOperEnable=wwpLeosBenchmarkOperEnable, wwpLeosBenchmarkProfileFrameSizeIndex=wwpLeosBenchmarkProfileFrameSizeIndex, wwpLeosBenchmarkPortStatsRxUnderRunPkts=wwpLeosBenchmarkPortStatsRxUnderRunPkts, wwpLeosBenchmarkPortStatsTx1519To2047Pkts=wwpLeosBenchmarkPortStatsTx1519To2047Pkts, wwpLeosBenchmarkProfilePdvStatsFrameSize=wwpLeosBenchmarkProfilePdvStatsFrameSize, BenchmarkLatencyPdvTestState=BenchmarkLatencyPdvTestState, wwpLeosBenchmarkProfileLatencyStatsMax=wwpLeosBenchmarkProfileLatencyStatsMax, wwpLeosBenchmarkProfileEntryInterval=wwpLeosBenchmarkProfileEntryInterval, wwpLeosBenchmarkProfileEntryEncapType=wwpLeosBenchmarkProfileEntryEncapType, wwpLeosBenchmarkPortStatsRxLCheckErrorPkts=wwpLeosBenchmarkPortStatsRxLCheckErrorPkts, wwpLeosBenchmarkProfileEntryDuration=wwpLeosBenchmarkProfileEntryDuration, wwpLeosBenchmarkProfileLatencyStatsFrameSizeIndex=wwpLeosBenchmarkProfileLatencyStatsFrameSizeIndex, wwpLeosBenchmarkPortStatsRxPausePkts=wwpLeosBenchmarkPortStatsRxPausePkts, wwpLeosBenchmarkProfileEntryDscp=wwpLeosBenchmarkProfileEntryDscp, wwpLeosBenchmarkGeneratorTotalIterations=wwpLeosBenchmarkGeneratorTotalIterations, wwpLeosBenchmarkProfileLatencyStatsEntry=wwpLeosBenchmarkProfileLatencyStatsEntry, wwpLeosBenchmarkGeneratorModule=wwpLeosBenchmarkGeneratorModule, wwpLeosBenchmarkReflectorModule=wwpLeosBenchmarkReflectorModule, wwpLeosBenchmarkProfileEntryId=wwpLeosBenchmarkProfileEntryId, wwpLeosBenchmarkGeneratorCurrentPktSize=wwpLeosBenchmarkGeneratorCurrentPktSize, wwpLeosBenchmarkMIB=wwpLeosBenchmarkMIB, wwpLeosBenchmarkPortStatsTxDropPkts=wwpLeosBenchmarkPortStatsTxDropPkts, wwpLeosBenchmarkPortStatsRxUcastPkts=wwpLeosBenchmarkPortStatsRxUcastPkts, wwpLeosBenchmarkGeneratorLatencyTestState=wwpLeosBenchmarkGeneratorLatencyTestState, wwpLeosBenchmarkProfilePdvStatsActiveVid=wwpLeosBenchmarkProfilePdvStatsActiveVid, wwpLeosBenchmarkPortStatsRxMcastPkts=wwpLeosBenchmarkPortStatsRxMcastPkts, wwpLeosBenchmarkProfileEntryLatencyTest=wwpLeosBenchmarkProfileEntryLatencyTest, wwpLeosBenchmarkProfileFramelossStatsRate=wwpLeosBenchmarkProfileFramelossStatsRate, wwpLeosBenchmarkFpgaStatsDuplicatePkts=wwpLeosBenchmarkFpgaStatsDuplicatePkts, wwpLeosBenchmarkProfileFramelossStatsSecond=wwpLeosBenchmarkProfileFramelossStatsSecond, wwpLeosBenchmarkRole=wwpLeosBenchmarkRole, wwpLeosBenchmarkProfileFramelossStatsFirst=wwpLeosBenchmarkProfileFramelossStatsFirst, wwpLeosBenchmarkProfileEntryVid=wwpLeosBenchmarkProfileEntryVid, wwpLeosBenchmarkProfileFramelossStatisticsTable=wwpLeosBenchmarkProfileFramelossStatisticsTable, wwpLeosBenchmarkPortStatsRxPkts=wwpLeosBenchmarkPortStatsRxPkts, wwpLeosBenchmarkPortStatsFragmentsPkts=wwpLeosBenchmarkPortStatsFragmentsPkts, wwpLeosBenchmarkReflectorEnable=wwpLeosBenchmarkReflectorEnable, wwpLeosBenchmarkPortStatsTxPausePkts=wwpLeosBenchmarkPortStatsTxPausePkts, wwpLeosBenchmarkFpgaStats=wwpLeosBenchmarkFpgaStats, wwpLeosBenchmarkGeneratorRfc2544State=wwpLeosBenchmarkGeneratorRfc2544State, wwpLeosBenchmarkPortStatsTxLOutRangePkts=wwpLeosBenchmarkPortStatsTxLOutRangePkts, wwpLeosBenchmarkPortStatsRxDeferPkts=wwpLeosBenchmarkPortStatsRxDeferPkts, wwpLeosBenchmarkModule=wwpLeosBenchmarkModule, wwpLeosBenchmarkPortStatsRxExDeferPkts=wwpLeosBenchmarkPortStatsRxExDeferPkts, wwpLeosBenchmarkPortStatsRx512To1023Pkts=wwpLeosBenchmarkPortStatsRx512To1023Pkts, wwpLeosBenchmarkProfileTable=wwpLeosBenchmarkProfileTable, wwpLeosBenchmarkProfileEntryEnabled=wwpLeosBenchmarkProfileEntryEnabled, wwpLeosBenchmarkProfileEntryDstmac=wwpLeosBenchmarkProfileEntryDstmac, wwpLeosBenchmarkProfileEntryVidValidation=wwpLeosBenchmarkProfileEntryVidValidation, wwpLeosBenchmarkProfileThroughputStatsAvg=wwpLeosBenchmarkProfileThroughputStatsAvg, wwpLeosBenchmarkEnable=wwpLeosBenchmarkEnable, wwpLeosBenchmarkProfilePdvStatsEntry=wwpLeosBenchmarkProfilePdvStatsEntry, wwpLeosBenchmarkPortStatsUndersizePkts=wwpLeosBenchmarkPortStatsUndersizePkts, wwpLeosBenchmarkProfileEntryPduType=wwpLeosBenchmarkProfileEntryPduType, wwpLeosBenchmarkPortStatsTx4096To9216Pkts=wwpLeosBenchmarkPortStatsTx4096To9216Pkts, wwpLeosBenchmarkProfileThroughputStatsFrameSize=wwpLeosBenchmarkProfileThroughputStatsFrameSize, wwpLeosBenchmarkLocalFpgaMac=wwpLeosBenchmarkLocalFpgaMac, wwpLeosBenchmarkProfileEntryPcp=wwpLeosBenchmarkProfileEntryPcp, wwpLeosBenchmarkFpgaStatsUdpChecksumPkts=wwpLeosBenchmarkFpgaStatsUdpChecksumPkts, wwpLeosBenchmarkPortStatsRxLOutRangePkts=wwpLeosBenchmarkPortStatsRxLOutRangePkts, wwpLeosBenchmarkPortStatsOversizePkts=wwpLeosBenchmarkPortStatsOversizePkts, wwpLeosBenchmarkProfilePdvStatsSamples=wwpLeosBenchmarkProfilePdvStatsSamples, wwpLeosBenchmarkProfileFramelossStatsEntry=wwpLeosBenchmarkProfileFramelossStatsEntry, wwpLeosBenchmarkPortStatsRxBytes=wwpLeosBenchmarkPortStatsRxBytes, wwpLeosBenchmarkGeneratorPdvTestState=wwpLeosBenchmarkGeneratorPdvTestState, wwpLeosBenchmarkGeneratorSamplesCompleted=wwpLeosBenchmarkGeneratorSamplesCompleted, wwpLeosBenchmarkProfileFramelossStatsFrameSize=wwpLeosBenchmarkProfileFramelossStatsFrameSize, wwpLeosBenchmarkGeneratorprofileUnderTest=wwpLeosBenchmarkGeneratorprofileUnderTest, wwpLeosBenchmarkProfileThroughputStatsIterations=wwpLeosBenchmarkProfileThroughputStatsIterations, wwpLeosBenchmarkFpgaStatsOOSeqPkts=wwpLeosBenchmarkFpgaStatsOOSeqPkts, wwpLeosBenchmarkFpgaStatsOOOPkts=wwpLeosBenchmarkFpgaStatsOOOPkts, wwpLeosBenchmarkProfileThroughputStatsEntry=wwpLeosBenchmarkProfileThroughputStatsEntry, wwpLeosBenchmarkFpgaStatsRxPkts=wwpLeosBenchmarkFpgaStatsRxPkts, wwpLeosBenchmarkGeneratorThroughputTestState=wwpLeosBenchmarkGeneratorThroughputTestState, wwpLeosBenchmarkProfileEntryDstIpAddr=wwpLeosBenchmarkProfileEntryDstIpAddr, wwpLeosBenchmarkProfileThroughputStatsActiveVid=wwpLeosBenchmarkProfileThroughputStatsActiveVid, wwpLeosBenchmarkPortStatsRxCrcErrorPkts=wwpLeosBenchmarkPortStatsRxCrcErrorPkts, wwpLeosBenchmarkPortStatsRx65To127Pkts=wwpLeosBenchmarkPortStatsRx65To127Pkts, wwpLeosBenchmarkProfileThroughputStatsMax=wwpLeosBenchmarkProfileThroughputStatsMax, wwpLeosBenchmarkProfileEntry=wwpLeosBenchmarkProfileEntry, wwpLeosBenchmarkProfileEntryFrameLossStartBw=wwpLeosBenchmarkProfileEntryFrameLossStartBw, wwpLeosBenchmarkProfilePdvStatsFrameSizeIndex=wwpLeosBenchmarkProfilePdvStatsFrameSizeIndex, wwpLeosBenchmarkProfileThroughputStatsActiveDstMac=wwpLeosBenchmarkProfileThroughputStatsActiveDstMac, wwpLeosBenchmarkProfilePdvStatsAvg=wwpLeosBenchmarkProfilePdvStatsAvg, PYSNMP_MODULE_ID=wwpLeosBenchmarkMIB, wwpLeosBenchmarkPortStatsRx1024To1518Pkts=wwpLeosBenchmarkPortStatsRx1024To1518Pkts, wwpLeosBenchmarkProfilePdvStatsActiveDstMac=wwpLeosBenchmarkProfilePdvStatsActiveDstMac, wwpLeosBenchmarkProfilePdvStatsProfileId=wwpLeosBenchmarkProfilePdvStatsProfileId, wwpLeosBenchmarkProfileFramelossStatsActiveDstMac=wwpLeosBenchmarkProfileFramelossStatsActiveDstMac, wwpLeosBenchmarkProfileEntryRfc2544Suite=wwpLeosBenchmarkProfileEntryRfc2544Suite, wwpLeosBenchmarkReflectorVid=wwpLeosBenchmarkReflectorVid, wwpLeosBenchmarkProfileLatencyStatsSamples=wwpLeosBenchmarkProfileLatencyStatsSamples, wwpLeosBenchmarkProfileEntryName=wwpLeosBenchmarkProfileEntryName, wwpLeosBenchmarkPortStatsTxBytes=wwpLeosBenchmarkPortStatsTxBytes, wwpLeosBenchmarkProfileFrameSize=wwpLeosBenchmarkProfileFrameSize, wwpLeosBenchmarkProfileFramelossStatsFrameSizeIndex=wwpLeosBenchmarkProfileFramelossStatsFrameSizeIndex, wwpLeosBenchmarkPortStatsMcastPkts=wwpLeosBenchmarkPortStatsMcastPkts, wwpLeosBenchmarkPortStatsTxPkts=wwpLeosBenchmarkPortStatsTxPkts, wwpLeosBenchmarkPortStatsTx256To511Pkts=wwpLeosBenchmarkPortStatsTx256To511Pkts)
# # PySNMP MIB module CISCOSB-CDP-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCOSB-CDP-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:22:03 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") ConstraintsUnion, ValueRangeConstraint, SingleValueConstraint, ValueSizeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueRangeConstraint", "SingleValueConstraint", "ValueSizeConstraint", "ConstraintsIntersection") cdpCacheDeviceIndex, cdpCacheEntry, cdpCacheIfIndex = mibBuilder.importSymbols("CISCO-CDP-MIB", "cdpCacheDeviceIndex", "cdpCacheEntry", "cdpCacheIfIndex") rndErrorDesc, rndErrorSeverity = mibBuilder.importSymbols("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc", "rndErrorSeverity") rndNotifications, switch001 = mibBuilder.importSymbols("CISCOSB-MIB", "rndNotifications", "switch001") InterfaceIndex, InterfaceIndexOrZero = mibBuilder.importSymbols("IF-MIB", "InterfaceIndex", "InterfaceIndexOrZero") InetAddress, InetAddressType = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddress", "InetAddressType") VlanId, PortList = mibBuilder.importSymbols("Q-BRIDGE-MIB", "VlanId", "PortList") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") MibScalar, MibTable, MibTableRow, MibTableColumn, ModuleIdentity, TimeTicks, Integer32, Counter64, ObjectIdentity, MibIdentifier, Gauge32, Counter32, NotificationType, iso, Bits, IpAddress, Unsigned32 = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ModuleIdentity", "TimeTicks", "Integer32", "Counter64", "ObjectIdentity", "MibIdentifier", "Gauge32", "Counter32", "NotificationType", "iso", "Bits", "IpAddress", "Unsigned32") TruthValue, DisplayString, TextualConvention, MacAddress = mibBuilder.importSymbols("SNMPv2-TC", "TruthValue", "DisplayString", "TextualConvention", "MacAddress") rlCdp = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137)) rlCdp.setRevisions(('2008-09-14 00:00', '2010-08-11 00:00', '2010-10-25 00:00', '2010-11-10 00:00', '2010-11-14 00:00', '2011-01-09 00:00', '2011-02-15 00:00', '2012-02-14 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: rlCdp.setRevisionsDescriptions(('Initial revision.', 'Added rlCdpLogMismatchVoiceVlanEnable, rlCdpLogMismatchNativeVlanEnable', 'Added rlCdpSecondaryCacheTable. Added maxNeighborsExceededInSecondaryCache. Renamed maxNeighborsExceeded to maxNeighborsExceededInMainCache.', 'Added rlCdpGlobalLogMismatchDuplexEnable. Added rlCdpGlobalLogMismatchVoiceVlanEnable. Added rlCdpGlobalLogMismatchNativeVlanEnable.', 'Added rlCdpTlvTable. Added rlCdpAdvertiseApplianceTlv.', 'Added rlCdpValidateMandatoryTlvs.', 'Added rlCdpLogMismatchDuplexTrap. Added rlCdpLogMismatchVoiceVlanTrap. Added rlCdpLogMismatchNativeVlanTrap.', 'Added rlCdpTlvSysName to rlCdpTlvTable.',)) if mibBuilder.loadTexts: rlCdp.setLastUpdated('201102150000Z') if mibBuilder.loadTexts: rlCdp.setOrganization('Cisco Systems, Inc.') if mibBuilder.loadTexts: rlCdp.setContactInfo('Postal: 170 West Tasman Drive San Jose , CA 95134-1706 USA Website: Cisco Small Business Support Community <http://www.cisco.com/go/smallbizsupport>') if mibBuilder.loadTexts: rlCdp.setDescription('The private MIB module definition for CDP protocol.') class RlCdpVersionTypes(TextualConvention, Integer32): description = 'version-v1 - cdp version 1 version-v2 - cdp version 2 ' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("version-v1", 1), ("version-v2", 2)) class RlCdpCounterTypes(TextualConvention, Integer32): description = ' v1OutputPackets counter specifies the number of sent CDP packets with version 1 v2OutputPackets counter specifies the number of sent CDP packets with version 2 v1InputPackets counter specifies the number of received CDP packets with version 1 v2InputPackets counter specifies the number of received CDP packets with version 2 totalInputPackets counter specifies the total number of received CDP packets totalOutputPackets counter specifies the total number of sent CDP packets illegalChksum counter specifies the number of received CDP packets with illegal checksum. errorPackets counter specifies the number of received CDP packets with other error (duplicated TLVs, illegal TLVs, etc.) maxNeighborsExceededInMainCache counter specifies the number of times a CDP neighbor could not be stored in the main cache. maxNeighborsExceededInSecondaryCache specifies counter the number of times a CDP neighbor could not be stored in the secondary cache. ' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)) namedValues = NamedValues(("totalInputPackets", 1), ("v1InputPackets", 2), ("v2InputPackets", 3), ("totalOutputPackets", 4), ("v1OutputPackets", 5), ("v2OutputPackets", 6), ("illegalChksum", 7), ("errorPackets", 8), ("maxNeighborsExceededInMainCache", 9), ("maxNeighborsExceededInSecondaryCache", 10)) class RlCdpPduActionTypes(TextualConvention, Integer32): description = 'filtering - CDP packets would filtered (dropped). bridging - CDP packets bridged as regular data packets ' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3)) namedValues = NamedValues(("filtering", 1), ("bridging", 2), ("flooding", 3)) rlCdpVersionAdvertised = MibScalar((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 1), RlCdpVersionTypes()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlCdpVersionAdvertised.setStatus('current') if mibBuilder.loadTexts: rlCdpVersionAdvertised.setDescription('Specifies the verison of sent CDP packets') rlCdpSourceInterface = MibScalar((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 2), InterfaceIndexOrZero()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlCdpSourceInterface.setStatus('current') if mibBuilder.loadTexts: rlCdpSourceInterface.setDescription('Specifices the CDP source-interface, which the IP address advertised into TLV is accoding to this source-interface instead of the outgoing interface. value of 0 indicates no source interface. value must belong to an ethernet port/lag ') rlCdpLogMismatchDuplexEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 3), PortList()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlCdpLogMismatchDuplexEnable.setStatus('current') if mibBuilder.loadTexts: rlCdpLogMismatchDuplexEnable.setDescription('Enable logging messages when detecting mishmatch between advertised and received duplex mode. To enable loging on specific interface set the corresponing bit.') rlCdpCountersTable = MibTable((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 4), ) if mibBuilder.loadTexts: rlCdpCountersTable.setStatus('current') if mibBuilder.loadTexts: rlCdpCountersTable.setDescription('This table contains all CDP counters values, indexed by counter name') rlCdpCountersEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 4, 1), ).setIndexNames((0, "CISCOSB-CDP-MIB", "rlCdpCountersName")) if mibBuilder.loadTexts: rlCdpCountersEntry.setStatus('current') if mibBuilder.loadTexts: rlCdpCountersEntry.setDescription('The row definition for this table.') rlCdpCountersName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 4, 1, 1), RlCdpCounterTypes()) if mibBuilder.loadTexts: rlCdpCountersName.setStatus('current') if mibBuilder.loadTexts: rlCdpCountersName.setDescription('counter name used as key for counters table ') rlCdpCountersValue = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 4, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpCountersValue.setStatus('current') if mibBuilder.loadTexts: rlCdpCountersValue.setDescription('the value of the counter name specisifed by rlCdpCountersName, unsuppo will have no entry in the tab.') rlCdpCountersClear = MibScalar((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 5), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlCdpCountersClear.setStatus('current') if mibBuilder.loadTexts: rlCdpCountersClear.setDescription('By setting the MIB to True, all error and traffic counters are set to zero.') rlCdpCacheClear = MibScalar((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 6), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlCdpCacheClear.setStatus('current') if mibBuilder.loadTexts: rlCdpCacheClear.setDescription('By setting the MIB to True, all entries from the cdp cache table is deleted.') rlCdpVoiceVlanId = MibScalar((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4094))).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlCdpVoiceVlanId.setStatus('obsolete') if mibBuilder.loadTexts: rlCdpVoiceVlanId.setDescription('voice vlan Id, used as the Appliance Vlan-Id TLV') rlCdpCacheTable = MibTable((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 8), ) if mibBuilder.loadTexts: rlCdpCacheTable.setStatus('current') if mibBuilder.loadTexts: rlCdpCacheTable.setDescription('The (conceptual) table contains externtion for the cdpCache table. indexed by cdpCacheEntry.') rlCdpCacheEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 8, 1), ) cdpCacheEntry.registerAugmentions(("CISCOSB-CDP-MIB", "rlCdpCacheEntry")) rlCdpCacheEntry.setIndexNames(*cdpCacheEntry.getIndexNames()) if mibBuilder.loadTexts: rlCdpCacheEntry.setStatus('current') if mibBuilder.loadTexts: rlCdpCacheEntry.setDescription('The row definition for this table.') rlCdpCacheVersionExt = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 8, 1, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpCacheVersionExt.setStatus('current') if mibBuilder.loadTexts: rlCdpCacheVersionExt.setDescription('This field contains the extention of the cdpCacheVersion field in the cdpCache table. In case the neighbour advertised the SW TLV as a string with length larger than 160, this field contains the chacters from place 160 and on. Zero-length strings indicates no Version field (TLV) was reported in the most recent CDP message, or it was smaller than 160 chars ') rlCdpCacheTimeToLive = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 8, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpCacheTimeToLive.setStatus('current') if mibBuilder.loadTexts: rlCdpCacheTimeToLive.setDescription('This field indicates the time remains in seconds till the entry should be expried. ') rlCdpCacheCdpVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 8, 1, 3), RlCdpVersionTypes()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpCacheCdpVersion.setStatus('current') if mibBuilder.loadTexts: rlCdpCacheCdpVersion.setDescription('This field indicates the cdp version that was reported in the most recent CDP message.') rlCdpPduAction = MibScalar((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 9), RlCdpPduActionTypes().clone('bridging')).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlCdpPduAction.setStatus('current') if mibBuilder.loadTexts: rlCdpPduAction.setDescription('Defines CDP packets handling when CDP is globally disabled.') rlCdpLogMismatchVoiceVlanEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 10), PortList()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlCdpLogMismatchVoiceVlanEnable.setStatus('current') if mibBuilder.loadTexts: rlCdpLogMismatchVoiceVlanEnable.setDescription('Enable logging messages when detecting mishmatch between advertised and received voice VLAN. To enable logging on specific interface set the corresponing bit.') rlCdpLogMismatchNativeVlanEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 11), PortList()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlCdpLogMismatchNativeVlanEnable.setStatus('current') if mibBuilder.loadTexts: rlCdpLogMismatchNativeVlanEnable.setDescription('Enable logging messages when detecting mishmatch between advertised and received native VLAN. To enable loging on specific interface set the corresponing bit.') rlCdpSecondaryCacheTable = MibTable((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 12), ) if mibBuilder.loadTexts: rlCdpSecondaryCacheTable.setStatus('current') if mibBuilder.loadTexts: rlCdpSecondaryCacheTable.setDescription('The (conceptual) table contains partial information from cdpCache table. indexed by rlCdpSecondaryCacheEntry.') rlCdpSecondaryCacheEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 12, 1), ).setIndexNames((0, "CISCO-CDP-MIB", "cdpCacheIfIndex"), (0, "CISCO-CDP-MIB", "cdpCacheDeviceIndex")) if mibBuilder.loadTexts: rlCdpSecondaryCacheEntry.setStatus('current') if mibBuilder.loadTexts: rlCdpSecondaryCacheEntry.setDescription('An entry (conceptual row) in the rlCdpSecondaryCacheTable, containing partial information received via CDP on one interface from one device. Entries appear when a CDP advertisement is received from a neighbor device. Entries disappear when CDP is disabled on the interface, globally or when the secondary cache is cleared') rlCdpSecondaryCacheMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 12, 1, 3), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpSecondaryCacheMacAddress.setStatus('current') if mibBuilder.loadTexts: rlCdpSecondaryCacheMacAddress.setDescription('The MAC address of the neighbor.') rlCdpSecondaryCachePlatform = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 12, 1, 4), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpSecondaryCachePlatform.setStatus('current') if mibBuilder.loadTexts: rlCdpSecondaryCachePlatform.setDescription("The Device's Hardware Platform prefix, as reported in the most recent CDP message. The zero-length string indicates that no Platform field (TLV) was reported in the most recent CDP message.") rlCdpSecondaryCacheCapabilities = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 12, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 4))).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpSecondaryCacheCapabilities.setStatus('current') if mibBuilder.loadTexts: rlCdpSecondaryCacheCapabilities.setDescription("The Device's Functional Capabilities as reported in the most recent CDP message.") rlCdpSecondaryCacheVoiceVlanID = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 12, 1, 6), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpSecondaryCacheVoiceVlanID.setStatus('current') if mibBuilder.loadTexts: rlCdpSecondaryCacheVoiceVlanID.setDescription("The remote device's VoIP VLAN ID, as reported in the most recent CDP message. This object is not instantiated if no Appliance VLAN-ID field (TLV) was reported in the most recently received CDP message.") rlCdpSecondaryCacheTimeToLive = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 12, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpSecondaryCacheTimeToLive.setStatus('current') if mibBuilder.loadTexts: rlCdpSecondaryCacheTimeToLive.setDescription('This field indicates the number of seconds till the entry is expried. ') rlCdpGlobalLogMismatchDuplexEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 13), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlCdpGlobalLogMismatchDuplexEnable.setStatus('current') if mibBuilder.loadTexts: rlCdpGlobalLogMismatchDuplexEnable.setDescription('Globally enable/disable logging messages when detecting mishmatch between advertised and received duplex mode.') rlCdpGlobalLogMismatchVoiceVlanEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 14), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlCdpGlobalLogMismatchVoiceVlanEnable.setStatus('current') if mibBuilder.loadTexts: rlCdpGlobalLogMismatchVoiceVlanEnable.setDescription('Globally enable/disable logging messages when detecting mishmatch between advertised and received voice VLAN.') rlCdpGlobalLogMismatchNativeVlanEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 15), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlCdpGlobalLogMismatchNativeVlanEnable.setStatus('current') if mibBuilder.loadTexts: rlCdpGlobalLogMismatchNativeVlanEnable.setDescription('Globally enable/disable logging messages when detecting mishmatch between advertised and received native VLAN.') rlCdpTlvTable = MibTable((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16), ) if mibBuilder.loadTexts: rlCdpTlvTable.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvTable.setDescription('The (conceptual) table contains the local advertised information. indexed by rlCdpTlvEntry.') rlCdpTlvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1), ).setIndexNames((0, "CISCOSB-CDP-MIB", "rlCdpTlvIfIndex")) if mibBuilder.loadTexts: rlCdpTlvEntry.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvEntry.setDescription('An entry (conceptual row) in the rlCdpTlvTable, containing local information advertised by CDP on one interface. Entries are available only when CDP is globally enabled, for interfaces on which CDP is enabled and the interface state is UP.') rlCdpTlvIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))) if mibBuilder.loadTexts: rlCdpTlvIfIndex.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvIfIndex.setDescription('The ifIndex value of the local interface. A value of zero is used to access TLVs which do not changed between interfaces.') rlCdpTlvDeviceIdFormat = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("serialNumber", 1), ("macAddress", 2), ("other", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpTlvDeviceIdFormat.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvDeviceIdFormat.setDescription('An indication of the format of Device-Id contained in the corresponding instance of rlCdpTlvDeviceId. serialNumber(1) indicates that the value of rlCdpTlvDeviceId object is in the form of an ASCII string contain the device serial number. macAddress(2) indicates that the value of rlCdpTlvDeviceId object is in the form of Layer 2 MAC address. other(3) indicates that the value of rlCdpTlvDeviceId object is in the form of a platform specific ASCII string contain info that identifies the device. For example: ASCII string contains serialNumber appended/prepened with system name.') rlCdpTlvDeviceId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 3), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpTlvDeviceId.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvDeviceId.setDescription('The Device-ID string as will be advertised in subsequent CDP messages.') rlCdpTlvAddress1Type = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 4), InetAddressType()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpTlvAddress1Type.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvAddress1Type.setDescription('The Inet address type of rlCdpTlvAddress1') rlCdpTlvAddress1 = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 5), InetAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpTlvAddress1.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvAddress1.setDescription("The (first) network-layer address of the device as will be advertised in the Address TLV of subsequent CDP messages. For example, if the corresponding instance of rlCdpTlvAddress1Type had the value 'ipv4(1)', then this object would be an IPv4-address.") rlCdpTlvAddress2Type = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 6), InetAddressType()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpTlvAddress2Type.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvAddress2Type.setDescription('The Inet address type of rlCdpTlvAddress2') rlCdpTlvAddress2 = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 7), InetAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpTlvAddress2.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvAddress2.setDescription("The (first) network-layer address of the device as will be advertised in the Address TLV of subsequent CDP messages. For example, if the corresponding instance of rlCdpTlvAddress2Type had the value 'ipv6(2)', then this object would be an IPv6-address.") rlCdpTlvAddress3Type = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 8), InetAddressType()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpTlvAddress3Type.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvAddress3Type.setDescription('The Inet address type of rlCdpTlvAddress3') rlCdpTlvAddress3 = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 9), InetAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpTlvAddress3.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvAddress3.setDescription("The (first) network-layer address of the device as will be advertised in the Address TLV of subsequent CDP messages. For example, if the corresponding instance of rlCdpTlvAddress3Type had the value 'ipv6(2)', then this object would be an IPv6-address.") rlCdpTlvPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 10), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpTlvPortId.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvPortId.setDescription("The Port-ID string as will be advertised in subsequent CDP messages from this interface. This will typically be the value of the ifName object (e.g., 'Ethernet0').") rlCdpTlvCapabilities = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 11), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 4))).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpTlvCapabilities.setReference('Cisco Discovery Protocol Specification, 10/19/94.') if mibBuilder.loadTexts: rlCdpTlvCapabilities.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvCapabilities.setDescription("The Device's Functional Capabilities as will be advertised in subsequent CDP messages. For latest set of specific values, see the latest version of the CDP specification.") rlCdpTlvVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 12), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpTlvVersion.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvVersion.setDescription('The Version string as will be advertised in subsequent CDP messages.') rlCdpTlvPlatform = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 13), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpTlvPlatform.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvPlatform.setDescription("The Device's Hardware Platform as will be advertised in subsequent CDP messages.") rlCdpTlvNativeVLAN = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 14), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpTlvNativeVLAN.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvNativeVLAN.setDescription("The local device's interface's native VLAN, as will be advertised in subsequent CDP messages.") rlCdpTlvDuplex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("unknown", 1), ("halfduplex", 2), ("fullduplex", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpTlvDuplex.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvDuplex.setDescription("The local device's interface's duplex mode, as will be advertised in subsequent CDP messages.") rlCdpTlvApplianceID = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 16), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpTlvApplianceID.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvApplianceID.setDescription("The local device's Appliance ID, as will be advertised in subsequent CDP messages. A value of zero denotes no Appliance VLAN-ID TLV will be advertised in subsequent CDP messages.") rlCdpTlvApplianceVlanID = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 17), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpTlvApplianceVlanID.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvApplianceVlanID.setDescription("The local device's VoIP VLAN ID, as will be advertised in subsequent CDP messages. A value of zero denotes no Appliance VLAN-ID TLV will be advertised in subsequent CDP messages.") rlCdpTlvExtendedTrust = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("untrusted", 0), ("trusted", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpTlvExtendedTrust.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvExtendedTrust.setDescription("The local device's interface's extended trust mode, as will be advertised in subsequent CDP messages. A value of zero indicates the absence of extended trust.") rlCdpTlvCosForUntrustedPorts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 19), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpTlvCosForUntrustedPorts.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvCosForUntrustedPorts.setDescription('The COS value with which all packets received on an untrusted port should be marked by a simple switching device which cannot itself classify individual packets. This TLV only has any meaning if corresponding instance of rlCdpTlvExtendedTrust indicates the absence of extended trust.') rlCdpTlvPowerAvailableRequestId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 20), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpTlvPowerAvailableRequestId.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvPowerAvailableRequestId.setDescription('The Power Available TLV Request-ID field echoes the Request-ID field last received in a Power Requested TLV. It is 0 if no Power Requested TLV has been received since the interface last transitioned to ifOperState == Up.') rlCdpTlvPowerAvailablePowerManagementId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 21), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpTlvPowerAvailablePowerManagementId.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvPowerAvailablePowerManagementId.setDescription('The Power Available TLV Power-Management-ID field.') rlCdpTlvPowerAvailable = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 22), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpTlvPowerAvailable.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvPowerAvailable.setDescription('The Power Available TLV Available-Power field indicates the number of milliwatts of power available to powered devices at the time this object is instatiated.') rlCdpTlvPowerAvailableManagementPowerLevel = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 23), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpTlvPowerAvailableManagementPowerLevel.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvPowerAvailableManagementPowerLevel.setDescription("The Power Available TLV Management-Power-Level field indicates the number of milliwatts representing the supplier's request to the powered device for its Power Consumption TLV. A value of 0xFFFFFFFF indicates the local device has no preference.") rlCdpTlvSysName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 24), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpTlvSysName.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvSysName.setDescription('The sysName MIB as will be advertised in subsequent CDP messages.') rlCdpAdvertiseApplianceTlv = MibScalar((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 17), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlCdpAdvertiseApplianceTlv.setStatus('current') if mibBuilder.loadTexts: rlCdpAdvertiseApplianceTlv.setDescription('By setting the MIB to True Appliance VLAN-ID TLV may be advertised. A value of False will prevent this TLV from being advertised.') rlCdpValidateMandatoryTlvs = MibScalar((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 18), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlCdpValidateMandatoryTlvs.setStatus('current') if mibBuilder.loadTexts: rlCdpValidateMandatoryTlvs.setDescription('By setting the MIB to true all mandatory TLVs 0x0001-0x0006 will be validated. Incoming CDP frames without any of the TLVs will be dropped. A value of false indicates that only the Device ID TLV (0x0001) is mandatory. Frames containing Device ID TLV will be processed, regardless of whether other TLVs are present or not.') rlCdpInterfaceCountersTable = MibTable((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 19), ) if mibBuilder.loadTexts: rlCdpInterfaceCountersTable.setStatus('current') if mibBuilder.loadTexts: rlCdpInterfaceCountersTable.setDescription('This table contains all CDP counters values, indexed by interface id.') rlCdpInterfaceCountersEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 19, 1), ).setIndexNames((0, "CISCOSB-CDP-MIB", "rlCdpInterfaceId")) if mibBuilder.loadTexts: rlCdpInterfaceCountersEntry.setStatus('current') if mibBuilder.loadTexts: rlCdpInterfaceCountersEntry.setDescription('The row definition for this table.') rlCdpInterfaceId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 19, 1, 1), InterfaceIndex()) if mibBuilder.loadTexts: rlCdpInterfaceId.setStatus('current') if mibBuilder.loadTexts: rlCdpInterfaceId.setDescription('Interface id, used as index for interface counters table.') rlCdpInterfaceTotalInputPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 19, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpInterfaceTotalInputPackets.setStatus('current') if mibBuilder.loadTexts: rlCdpInterfaceTotalInputPackets.setDescription('Num of received packets on rlCdpInterfaceId') rlCdpInterfaceV1InputPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 19, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpInterfaceV1InputPackets.setStatus('current') if mibBuilder.loadTexts: rlCdpInterfaceV1InputPackets.setDescription('Num of v1 received packets on rlCdpInterfaceId') rlCdpInterfaceV2InputPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 19, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpInterfaceV2InputPackets.setStatus('current') if mibBuilder.loadTexts: rlCdpInterfaceV2InputPackets.setDescription('Num of v2 received packets on rlCdpInterfaceId') rlCdpInterfaceTotalOutputPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 19, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpInterfaceTotalOutputPackets.setStatus('current') if mibBuilder.loadTexts: rlCdpInterfaceTotalOutputPackets.setDescription('Num of sent packets from rlCdpInterfaceId') rlCdpInterfaceV1OutputPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 19, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpInterfaceV1OutputPackets.setStatus('current') if mibBuilder.loadTexts: rlCdpInterfaceV1OutputPackets.setDescription('Num of v1 sent packets from rlCdpInterfaceId') rlCdpInterfaceV2OutputPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 19, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpInterfaceV2OutputPackets.setStatus('current') if mibBuilder.loadTexts: rlCdpInterfaceV2OutputPackets.setDescription('Num of v2 sent packets from rlCdpInterfaceId') rlCdpInterfaceIllegalChksum = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 19, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpInterfaceIllegalChksum.setStatus('current') if mibBuilder.loadTexts: rlCdpInterfaceIllegalChksum.setDescription('Num of received packets with illegal CDP checksum.') rlCdpInterfaceErrorPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 19, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpInterfaceErrorPackets.setStatus('current') if mibBuilder.loadTexts: rlCdpInterfaceErrorPackets.setDescription('specifies the number of received CDP packets with other error (duplicated TLVs, illegal TLVs, etc.) ') rlCdpInterfaceMaxNeighborsExceededInMainCache = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 19, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpInterfaceMaxNeighborsExceededInMainCache.setStatus('current') if mibBuilder.loadTexts: rlCdpInterfaceMaxNeighborsExceededInMainCache.setDescription('specifies the number of times a CDP neighbor could not be stored in the main cache. ') rlCdpInterfaceMaxNeighborsExceededInSecondaryCache = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 19, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlCdpInterfaceMaxNeighborsExceededInSecondaryCache.setStatus('current') if mibBuilder.loadTexts: rlCdpInterfaceMaxNeighborsExceededInSecondaryCache.setDescription(' specifies the number of times a CDP neighbor could not be stored in the secondary cache.') rlCdpInterfaceCountersClear = MibScalar((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 20), InterfaceIndexOrZero()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlCdpInterfaceCountersClear.setStatus('current') if mibBuilder.loadTexts: rlCdpInterfaceCountersClear.setDescription('By setting the scalar to a interface id , all error and traffic counters of this interface are set to zero. To clear the counters for ALL interfaces set the scalar to 0x0FFFFFFF') rlCdpLogMismatchDuplexTrap = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 224)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity")) if mibBuilder.loadTexts: rlCdpLogMismatchDuplexTrap.setStatus('current') if mibBuilder.loadTexts: rlCdpLogMismatchDuplexTrap.setDescription('Warning trap indicating that duplex mismatch has been detected by CDP') rlCdpLogMismatchVoiceVlanTrap = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 225)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity")) if mibBuilder.loadTexts: rlCdpLogMismatchVoiceVlanTrap.setStatus('current') if mibBuilder.loadTexts: rlCdpLogMismatchVoiceVlanTrap.setDescription('Warning trap indicating that voice vlan mismatch has been detected by CDP') rlCdpLogMismatchNativeVlanTrap = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 226)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity")) if mibBuilder.loadTexts: rlCdpLogMismatchNativeVlanTrap.setStatus('current') if mibBuilder.loadTexts: rlCdpLogMismatchNativeVlanTrap.setDescription('Warning trap indicating that native vlan mismatch has been detected by CDP') mibBuilder.exportSymbols("CISCOSB-CDP-MIB", rlCdpInterfaceTotalInputPackets=rlCdpInterfaceTotalInputPackets, rlCdpTlvCosForUntrustedPorts=rlCdpTlvCosForUntrustedPorts, rlCdpTlvAddress3Type=rlCdpTlvAddress3Type, rlCdpAdvertiseApplianceTlv=rlCdpAdvertiseApplianceTlv, rlCdpCountersName=rlCdpCountersName, rlCdpSecondaryCachePlatform=rlCdpSecondaryCachePlatform, rlCdpCacheEntry=rlCdpCacheEntry, rlCdpTlvPowerAvailable=rlCdpTlvPowerAvailable, rlCdpInterfaceV2OutputPackets=rlCdpInterfaceV2OutputPackets, rlCdpInterfaceMaxNeighborsExceededInSecondaryCache=rlCdpInterfaceMaxNeighborsExceededInSecondaryCache, rlCdpLogMismatchVoiceVlanTrap=rlCdpLogMismatchVoiceVlanTrap, rlCdpSourceInterface=rlCdpSourceInterface, PYSNMP_MODULE_ID=rlCdp, rlCdpLogMismatchNativeVlanEnable=rlCdpLogMismatchNativeVlanEnable, rlCdpTlvTable=rlCdpTlvTable, rlCdpTlvNativeVLAN=rlCdpTlvNativeVLAN, rlCdpSecondaryCacheMacAddress=rlCdpSecondaryCacheMacAddress, rlCdpInterfaceV1OutputPackets=rlCdpInterfaceV1OutputPackets, rlCdpTlvAddress3=rlCdpTlvAddress3, rlCdpCountersClear=rlCdpCountersClear, rlCdpGlobalLogMismatchVoiceVlanEnable=rlCdpGlobalLogMismatchVoiceVlanEnable, rlCdpCountersTable=rlCdpCountersTable, rlCdpTlvAddress2Type=rlCdpTlvAddress2Type, rlCdpVersionAdvertised=rlCdpVersionAdvertised, rlCdpTlvSysName=rlCdpTlvSysName, rlCdpTlvDuplex=rlCdpTlvDuplex, rlCdpInterfaceErrorPackets=rlCdpInterfaceErrorPackets, rlCdpTlvAddress2=rlCdpTlvAddress2, rlCdpGlobalLogMismatchNativeVlanEnable=rlCdpGlobalLogMismatchNativeVlanEnable, rlCdpLogMismatchDuplexTrap=rlCdpLogMismatchDuplexTrap, rlCdpCacheVersionExt=rlCdpCacheVersionExt, rlCdpTlvApplianceID=rlCdpTlvApplianceID, RlCdpCounterTypes=RlCdpCounterTypes, rlCdpInterfaceCountersTable=rlCdpInterfaceCountersTable, rlCdpValidateMandatoryTlvs=rlCdpValidateMandatoryTlvs, rlCdpCacheClear=rlCdpCacheClear, rlCdpTlvExtendedTrust=rlCdpTlvExtendedTrust, rlCdpInterfaceV1InputPackets=rlCdpInterfaceV1InputPackets, rlCdpTlvPowerAvailableRequestId=rlCdpTlvPowerAvailableRequestId, rlCdpCacheTimeToLive=rlCdpCacheTimeToLive, rlCdpTlvEntry=rlCdpTlvEntry, rlCdpInterfaceMaxNeighborsExceededInMainCache=rlCdpInterfaceMaxNeighborsExceededInMainCache, rlCdpTlvAddress1=rlCdpTlvAddress1, RlCdpPduActionTypes=RlCdpPduActionTypes, rlCdpTlvDeviceId=rlCdpTlvDeviceId, rlCdpSecondaryCacheCapabilities=rlCdpSecondaryCacheCapabilities, rlCdpCountersValue=rlCdpCountersValue, rlCdpTlvVersion=rlCdpTlvVersion, rlCdpSecondaryCacheEntry=rlCdpSecondaryCacheEntry, rlCdpSecondaryCacheTimeToLive=rlCdpSecondaryCacheTimeToLive, rlCdpCountersEntry=rlCdpCountersEntry, rlCdpCacheCdpVersion=rlCdpCacheCdpVersion, rlCdpInterfaceCountersClear=rlCdpInterfaceCountersClear, rlCdpPduAction=rlCdpPduAction, rlCdpTlvPowerAvailablePowerManagementId=rlCdpTlvPowerAvailablePowerManagementId, rlCdpTlvPowerAvailableManagementPowerLevel=rlCdpTlvPowerAvailableManagementPowerLevel, rlCdpSecondaryCacheTable=rlCdpSecondaryCacheTable, rlCdpLogMismatchDuplexEnable=rlCdpLogMismatchDuplexEnable, rlCdp=rlCdp, rlCdpInterfaceCountersEntry=rlCdpInterfaceCountersEntry, rlCdpLogMismatchVoiceVlanEnable=rlCdpLogMismatchVoiceVlanEnable, rlCdpTlvPlatform=rlCdpTlvPlatform, rlCdpTlvIfIndex=rlCdpTlvIfIndex, rlCdpLogMismatchNativeVlanTrap=rlCdpLogMismatchNativeVlanTrap, rlCdpInterfaceV2InputPackets=rlCdpInterfaceV2InputPackets, rlCdpTlvDeviceIdFormat=rlCdpTlvDeviceIdFormat, rlCdpCacheTable=rlCdpCacheTable, rlCdpTlvCapabilities=rlCdpTlvCapabilities, RlCdpVersionTypes=RlCdpVersionTypes, rlCdpTlvApplianceVlanID=rlCdpTlvApplianceVlanID, rlCdpTlvAddress1Type=rlCdpTlvAddress1Type, rlCdpInterfaceId=rlCdpInterfaceId, rlCdpInterfaceTotalOutputPackets=rlCdpInterfaceTotalOutputPackets, rlCdpGlobalLogMismatchDuplexEnable=rlCdpGlobalLogMismatchDuplexEnable, rlCdpSecondaryCacheVoiceVlanID=rlCdpSecondaryCacheVoiceVlanID, rlCdpTlvPortId=rlCdpTlvPortId, rlCdpVoiceVlanId=rlCdpVoiceVlanId, rlCdpInterfaceIllegalChksum=rlCdpInterfaceIllegalChksum)
(octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, value_range_constraint, single_value_constraint, value_size_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ValueRangeConstraint', 'SingleValueConstraint', 'ValueSizeConstraint', 'ConstraintsIntersection') (cdp_cache_device_index, cdp_cache_entry, cdp_cache_if_index) = mibBuilder.importSymbols('CISCO-CDP-MIB', 'cdpCacheDeviceIndex', 'cdpCacheEntry', 'cdpCacheIfIndex') (rnd_error_desc, rnd_error_severity) = mibBuilder.importSymbols('CISCOSB-DEVICEPARAMS-MIB', 'rndErrorDesc', 'rndErrorSeverity') (rnd_notifications, switch001) = mibBuilder.importSymbols('CISCOSB-MIB', 'rndNotifications', 'switch001') (interface_index, interface_index_or_zero) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndex', 'InterfaceIndexOrZero') (inet_address, inet_address_type) = mibBuilder.importSymbols('INET-ADDRESS-MIB', 'InetAddress', 'InetAddressType') (vlan_id, port_list) = mibBuilder.importSymbols('Q-BRIDGE-MIB', 'VlanId', 'PortList') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (mib_scalar, mib_table, mib_table_row, mib_table_column, module_identity, time_ticks, integer32, counter64, object_identity, mib_identifier, gauge32, counter32, notification_type, iso, bits, ip_address, unsigned32) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ModuleIdentity', 'TimeTicks', 'Integer32', 'Counter64', 'ObjectIdentity', 'MibIdentifier', 'Gauge32', 'Counter32', 'NotificationType', 'iso', 'Bits', 'IpAddress', 'Unsigned32') (truth_value, display_string, textual_convention, mac_address) = mibBuilder.importSymbols('SNMPv2-TC', 'TruthValue', 'DisplayString', 'TextualConvention', 'MacAddress') rl_cdp = module_identity((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137)) rlCdp.setRevisions(('2008-09-14 00:00', '2010-08-11 00:00', '2010-10-25 00:00', '2010-11-10 00:00', '2010-11-14 00:00', '2011-01-09 00:00', '2011-02-15 00:00', '2012-02-14 00:00')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: rlCdp.setRevisionsDescriptions(('Initial revision.', 'Added rlCdpLogMismatchVoiceVlanEnable, rlCdpLogMismatchNativeVlanEnable', 'Added rlCdpSecondaryCacheTable. Added maxNeighborsExceededInSecondaryCache. Renamed maxNeighborsExceeded to maxNeighborsExceededInMainCache.', 'Added rlCdpGlobalLogMismatchDuplexEnable. Added rlCdpGlobalLogMismatchVoiceVlanEnable. Added rlCdpGlobalLogMismatchNativeVlanEnable.', 'Added rlCdpTlvTable. Added rlCdpAdvertiseApplianceTlv.', 'Added rlCdpValidateMandatoryTlvs.', 'Added rlCdpLogMismatchDuplexTrap. Added rlCdpLogMismatchVoiceVlanTrap. Added rlCdpLogMismatchNativeVlanTrap.', 'Added rlCdpTlvSysName to rlCdpTlvTable.')) if mibBuilder.loadTexts: rlCdp.setLastUpdated('201102150000Z') if mibBuilder.loadTexts: rlCdp.setOrganization('Cisco Systems, Inc.') if mibBuilder.loadTexts: rlCdp.setContactInfo('Postal: 170 West Tasman Drive San Jose , CA 95134-1706 USA Website: Cisco Small Business Support Community <http://www.cisco.com/go/smallbizsupport>') if mibBuilder.loadTexts: rlCdp.setDescription('The private MIB module definition for CDP protocol.') class Rlcdpversiontypes(TextualConvention, Integer32): description = 'version-v1 - cdp version 1 version-v2 - cdp version 2 ' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('version-v1', 1), ('version-v2', 2)) class Rlcdpcountertypes(TextualConvention, Integer32): description = ' v1OutputPackets counter specifies the number of sent CDP packets with version 1 v2OutputPackets counter specifies the number of sent CDP packets with version 2 v1InputPackets counter specifies the number of received CDP packets with version 1 v2InputPackets counter specifies the number of received CDP packets with version 2 totalInputPackets counter specifies the total number of received CDP packets totalOutputPackets counter specifies the total number of sent CDP packets illegalChksum counter specifies the number of received CDP packets with illegal checksum. errorPackets counter specifies the number of received CDP packets with other error (duplicated TLVs, illegal TLVs, etc.) maxNeighborsExceededInMainCache counter specifies the number of times a CDP neighbor could not be stored in the main cache. maxNeighborsExceededInSecondaryCache specifies counter the number of times a CDP neighbor could not be stored in the secondary cache. ' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)) named_values = named_values(('totalInputPackets', 1), ('v1InputPackets', 2), ('v2InputPackets', 3), ('totalOutputPackets', 4), ('v1OutputPackets', 5), ('v2OutputPackets', 6), ('illegalChksum', 7), ('errorPackets', 8), ('maxNeighborsExceededInMainCache', 9), ('maxNeighborsExceededInSecondaryCache', 10)) class Rlcdppduactiontypes(TextualConvention, Integer32): description = 'filtering - CDP packets would filtered (dropped). bridging - CDP packets bridged as regular data packets ' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3)) named_values = named_values(('filtering', 1), ('bridging', 2), ('flooding', 3)) rl_cdp_version_advertised = mib_scalar((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 1), rl_cdp_version_types()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlCdpVersionAdvertised.setStatus('current') if mibBuilder.loadTexts: rlCdpVersionAdvertised.setDescription('Specifies the verison of sent CDP packets') rl_cdp_source_interface = mib_scalar((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 2), interface_index_or_zero()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlCdpSourceInterface.setStatus('current') if mibBuilder.loadTexts: rlCdpSourceInterface.setDescription('Specifices the CDP source-interface, which the IP address advertised into TLV is accoding to this source-interface instead of the outgoing interface. value of 0 indicates no source interface. value must belong to an ethernet port/lag ') rl_cdp_log_mismatch_duplex_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 3), port_list()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlCdpLogMismatchDuplexEnable.setStatus('current') if mibBuilder.loadTexts: rlCdpLogMismatchDuplexEnable.setDescription('Enable logging messages when detecting mishmatch between advertised and received duplex mode. To enable loging on specific interface set the corresponing bit.') rl_cdp_counters_table = mib_table((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 4)) if mibBuilder.loadTexts: rlCdpCountersTable.setStatus('current') if mibBuilder.loadTexts: rlCdpCountersTable.setDescription('This table contains all CDP counters values, indexed by counter name') rl_cdp_counters_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 4, 1)).setIndexNames((0, 'CISCOSB-CDP-MIB', 'rlCdpCountersName')) if mibBuilder.loadTexts: rlCdpCountersEntry.setStatus('current') if mibBuilder.loadTexts: rlCdpCountersEntry.setDescription('The row definition for this table.') rl_cdp_counters_name = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 4, 1, 1), rl_cdp_counter_types()) if mibBuilder.loadTexts: rlCdpCountersName.setStatus('current') if mibBuilder.loadTexts: rlCdpCountersName.setDescription('counter name used as key for counters table ') rl_cdp_counters_value = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 4, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpCountersValue.setStatus('current') if mibBuilder.loadTexts: rlCdpCountersValue.setDescription('the value of the counter name specisifed by rlCdpCountersName, unsuppo will have no entry in the tab.') rl_cdp_counters_clear = mib_scalar((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 5), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlCdpCountersClear.setStatus('current') if mibBuilder.loadTexts: rlCdpCountersClear.setDescription('By setting the MIB to True, all error and traffic counters are set to zero.') rl_cdp_cache_clear = mib_scalar((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 6), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlCdpCacheClear.setStatus('current') if mibBuilder.loadTexts: rlCdpCacheClear.setDescription('By setting the MIB to True, all entries from the cdp cache table is deleted.') rl_cdp_voice_vlan_id = mib_scalar((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 4094))).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlCdpVoiceVlanId.setStatus('obsolete') if mibBuilder.loadTexts: rlCdpVoiceVlanId.setDescription('voice vlan Id, used as the Appliance Vlan-Id TLV') rl_cdp_cache_table = mib_table((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 8)) if mibBuilder.loadTexts: rlCdpCacheTable.setStatus('current') if mibBuilder.loadTexts: rlCdpCacheTable.setDescription('The (conceptual) table contains externtion for the cdpCache table. indexed by cdpCacheEntry.') rl_cdp_cache_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 8, 1)) cdpCacheEntry.registerAugmentions(('CISCOSB-CDP-MIB', 'rlCdpCacheEntry')) rlCdpCacheEntry.setIndexNames(*cdpCacheEntry.getIndexNames()) if mibBuilder.loadTexts: rlCdpCacheEntry.setStatus('current') if mibBuilder.loadTexts: rlCdpCacheEntry.setDescription('The row definition for this table.') rl_cdp_cache_version_ext = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 8, 1, 1), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpCacheVersionExt.setStatus('current') if mibBuilder.loadTexts: rlCdpCacheVersionExt.setDescription('This field contains the extention of the cdpCacheVersion field in the cdpCache table. In case the neighbour advertised the SW TLV as a string with length larger than 160, this field contains the chacters from place 160 and on. Zero-length strings indicates no Version field (TLV) was reported in the most recent CDP message, or it was smaller than 160 chars ') rl_cdp_cache_time_to_live = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 8, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpCacheTimeToLive.setStatus('current') if mibBuilder.loadTexts: rlCdpCacheTimeToLive.setDescription('This field indicates the time remains in seconds till the entry should be expried. ') rl_cdp_cache_cdp_version = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 8, 1, 3), rl_cdp_version_types()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpCacheCdpVersion.setStatus('current') if mibBuilder.loadTexts: rlCdpCacheCdpVersion.setDescription('This field indicates the cdp version that was reported in the most recent CDP message.') rl_cdp_pdu_action = mib_scalar((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 9), rl_cdp_pdu_action_types().clone('bridging')).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlCdpPduAction.setStatus('current') if mibBuilder.loadTexts: rlCdpPduAction.setDescription('Defines CDP packets handling when CDP is globally disabled.') rl_cdp_log_mismatch_voice_vlan_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 10), port_list()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlCdpLogMismatchVoiceVlanEnable.setStatus('current') if mibBuilder.loadTexts: rlCdpLogMismatchVoiceVlanEnable.setDescription('Enable logging messages when detecting mishmatch between advertised and received voice VLAN. To enable logging on specific interface set the corresponing bit.') rl_cdp_log_mismatch_native_vlan_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 11), port_list()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlCdpLogMismatchNativeVlanEnable.setStatus('current') if mibBuilder.loadTexts: rlCdpLogMismatchNativeVlanEnable.setDescription('Enable logging messages when detecting mishmatch between advertised and received native VLAN. To enable loging on specific interface set the corresponing bit.') rl_cdp_secondary_cache_table = mib_table((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 12)) if mibBuilder.loadTexts: rlCdpSecondaryCacheTable.setStatus('current') if mibBuilder.loadTexts: rlCdpSecondaryCacheTable.setDescription('The (conceptual) table contains partial information from cdpCache table. indexed by rlCdpSecondaryCacheEntry.') rl_cdp_secondary_cache_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 12, 1)).setIndexNames((0, 'CISCO-CDP-MIB', 'cdpCacheIfIndex'), (0, 'CISCO-CDP-MIB', 'cdpCacheDeviceIndex')) if mibBuilder.loadTexts: rlCdpSecondaryCacheEntry.setStatus('current') if mibBuilder.loadTexts: rlCdpSecondaryCacheEntry.setDescription('An entry (conceptual row) in the rlCdpSecondaryCacheTable, containing partial information received via CDP on one interface from one device. Entries appear when a CDP advertisement is received from a neighbor device. Entries disappear when CDP is disabled on the interface, globally or when the secondary cache is cleared') rl_cdp_secondary_cache_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 12, 1, 3), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpSecondaryCacheMacAddress.setStatus('current') if mibBuilder.loadTexts: rlCdpSecondaryCacheMacAddress.setDescription('The MAC address of the neighbor.') rl_cdp_secondary_cache_platform = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 12, 1, 4), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpSecondaryCachePlatform.setStatus('current') if mibBuilder.loadTexts: rlCdpSecondaryCachePlatform.setDescription("The Device's Hardware Platform prefix, as reported in the most recent CDP message. The zero-length string indicates that no Platform field (TLV) was reported in the most recent CDP message.") rl_cdp_secondary_cache_capabilities = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 12, 1, 5), octet_string().subtype(subtypeSpec=value_size_constraint(0, 4))).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpSecondaryCacheCapabilities.setStatus('current') if mibBuilder.loadTexts: rlCdpSecondaryCacheCapabilities.setDescription("The Device's Functional Capabilities as reported in the most recent CDP message.") rl_cdp_secondary_cache_voice_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 12, 1, 6), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4095))).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpSecondaryCacheVoiceVlanID.setStatus('current') if mibBuilder.loadTexts: rlCdpSecondaryCacheVoiceVlanID.setDescription("The remote device's VoIP VLAN ID, as reported in the most recent CDP message. This object is not instantiated if no Appliance VLAN-ID field (TLV) was reported in the most recently received CDP message.") rl_cdp_secondary_cache_time_to_live = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 12, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpSecondaryCacheTimeToLive.setStatus('current') if mibBuilder.loadTexts: rlCdpSecondaryCacheTimeToLive.setDescription('This field indicates the number of seconds till the entry is expried. ') rl_cdp_global_log_mismatch_duplex_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 13), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlCdpGlobalLogMismatchDuplexEnable.setStatus('current') if mibBuilder.loadTexts: rlCdpGlobalLogMismatchDuplexEnable.setDescription('Globally enable/disable logging messages when detecting mishmatch between advertised and received duplex mode.') rl_cdp_global_log_mismatch_voice_vlan_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 14), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlCdpGlobalLogMismatchVoiceVlanEnable.setStatus('current') if mibBuilder.loadTexts: rlCdpGlobalLogMismatchVoiceVlanEnable.setDescription('Globally enable/disable logging messages when detecting mishmatch between advertised and received voice VLAN.') rl_cdp_global_log_mismatch_native_vlan_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 15), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlCdpGlobalLogMismatchNativeVlanEnable.setStatus('current') if mibBuilder.loadTexts: rlCdpGlobalLogMismatchNativeVlanEnable.setDescription('Globally enable/disable logging messages when detecting mishmatch between advertised and received native VLAN.') rl_cdp_tlv_table = mib_table((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16)) if mibBuilder.loadTexts: rlCdpTlvTable.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvTable.setDescription('The (conceptual) table contains the local advertised information. indexed by rlCdpTlvEntry.') rl_cdp_tlv_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1)).setIndexNames((0, 'CISCOSB-CDP-MIB', 'rlCdpTlvIfIndex')) if mibBuilder.loadTexts: rlCdpTlvEntry.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvEntry.setDescription('An entry (conceptual row) in the rlCdpTlvTable, containing local information advertised by CDP on one interface. Entries are available only when CDP is globally enabled, for interfaces on which CDP is enabled and the interface state is UP.') rl_cdp_tlv_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))) if mibBuilder.loadTexts: rlCdpTlvIfIndex.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvIfIndex.setDescription('The ifIndex value of the local interface. A value of zero is used to access TLVs which do not changed between interfaces.') rl_cdp_tlv_device_id_format = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('serialNumber', 1), ('macAddress', 2), ('other', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpTlvDeviceIdFormat.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvDeviceIdFormat.setDescription('An indication of the format of Device-Id contained in the corresponding instance of rlCdpTlvDeviceId. serialNumber(1) indicates that the value of rlCdpTlvDeviceId object is in the form of an ASCII string contain the device serial number. macAddress(2) indicates that the value of rlCdpTlvDeviceId object is in the form of Layer 2 MAC address. other(3) indicates that the value of rlCdpTlvDeviceId object is in the form of a platform specific ASCII string contain info that identifies the device. For example: ASCII string contains serialNumber appended/prepened with system name.') rl_cdp_tlv_device_id = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 3), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpTlvDeviceId.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvDeviceId.setDescription('The Device-ID string as will be advertised in subsequent CDP messages.') rl_cdp_tlv_address1_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 4), inet_address_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpTlvAddress1Type.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvAddress1Type.setDescription('The Inet address type of rlCdpTlvAddress1') rl_cdp_tlv_address1 = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 5), inet_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpTlvAddress1.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvAddress1.setDescription("The (first) network-layer address of the device as will be advertised in the Address TLV of subsequent CDP messages. For example, if the corresponding instance of rlCdpTlvAddress1Type had the value 'ipv4(1)', then this object would be an IPv4-address.") rl_cdp_tlv_address2_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 6), inet_address_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpTlvAddress2Type.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvAddress2Type.setDescription('The Inet address type of rlCdpTlvAddress2') rl_cdp_tlv_address2 = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 7), inet_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpTlvAddress2.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvAddress2.setDescription("The (first) network-layer address of the device as will be advertised in the Address TLV of subsequent CDP messages. For example, if the corresponding instance of rlCdpTlvAddress2Type had the value 'ipv6(2)', then this object would be an IPv6-address.") rl_cdp_tlv_address3_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 8), inet_address_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpTlvAddress3Type.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvAddress3Type.setDescription('The Inet address type of rlCdpTlvAddress3') rl_cdp_tlv_address3 = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 9), inet_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpTlvAddress3.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvAddress3.setDescription("The (first) network-layer address of the device as will be advertised in the Address TLV of subsequent CDP messages. For example, if the corresponding instance of rlCdpTlvAddress3Type had the value 'ipv6(2)', then this object would be an IPv6-address.") rl_cdp_tlv_port_id = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 10), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpTlvPortId.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvPortId.setDescription("The Port-ID string as will be advertised in subsequent CDP messages from this interface. This will typically be the value of the ifName object (e.g., 'Ethernet0').") rl_cdp_tlv_capabilities = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 11), octet_string().subtype(subtypeSpec=value_size_constraint(0, 4))).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpTlvCapabilities.setReference('Cisco Discovery Protocol Specification, 10/19/94.') if mibBuilder.loadTexts: rlCdpTlvCapabilities.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvCapabilities.setDescription("The Device's Functional Capabilities as will be advertised in subsequent CDP messages. For latest set of specific values, see the latest version of the CDP specification.") rl_cdp_tlv_version = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 12), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpTlvVersion.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvVersion.setDescription('The Version string as will be advertised in subsequent CDP messages.') rl_cdp_tlv_platform = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 13), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpTlvPlatform.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvPlatform.setDescription("The Device's Hardware Platform as will be advertised in subsequent CDP messages.") rl_cdp_tlv_native_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 14), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4095))).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpTlvNativeVLAN.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvNativeVLAN.setDescription("The local device's interface's native VLAN, as will be advertised in subsequent CDP messages.") rl_cdp_tlv_duplex = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 15), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('unknown', 1), ('halfduplex', 2), ('fullduplex', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpTlvDuplex.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvDuplex.setDescription("The local device's interface's duplex mode, as will be advertised in subsequent CDP messages.") rl_cdp_tlv_appliance_id = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 16), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpTlvApplianceID.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvApplianceID.setDescription("The local device's Appliance ID, as will be advertised in subsequent CDP messages. A value of zero denotes no Appliance VLAN-ID TLV will be advertised in subsequent CDP messages.") rl_cdp_tlv_appliance_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 17), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4095))).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpTlvApplianceVlanID.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvApplianceVlanID.setDescription("The local device's VoIP VLAN ID, as will be advertised in subsequent CDP messages. A value of zero denotes no Appliance VLAN-ID TLV will be advertised in subsequent CDP messages.") rl_cdp_tlv_extended_trust = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('untrusted', 0), ('trusted', 1)))).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpTlvExtendedTrust.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvExtendedTrust.setDescription("The local device's interface's extended trust mode, as will be advertised in subsequent CDP messages. A value of zero indicates the absence of extended trust.") rl_cdp_tlv_cos_for_untrusted_ports = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 19), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpTlvCosForUntrustedPorts.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvCosForUntrustedPorts.setDescription('The COS value with which all packets received on an untrusted port should be marked by a simple switching device which cannot itself classify individual packets. This TLV only has any meaning if corresponding instance of rlCdpTlvExtendedTrust indicates the absence of extended trust.') rl_cdp_tlv_power_available_request_id = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 20), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpTlvPowerAvailableRequestId.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvPowerAvailableRequestId.setDescription('The Power Available TLV Request-ID field echoes the Request-ID field last received in a Power Requested TLV. It is 0 if no Power Requested TLV has been received since the interface last transitioned to ifOperState == Up.') rl_cdp_tlv_power_available_power_management_id = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 21), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpTlvPowerAvailablePowerManagementId.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvPowerAvailablePowerManagementId.setDescription('The Power Available TLV Power-Management-ID field.') rl_cdp_tlv_power_available = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 22), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpTlvPowerAvailable.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvPowerAvailable.setDescription('The Power Available TLV Available-Power field indicates the number of milliwatts of power available to powered devices at the time this object is instatiated.') rl_cdp_tlv_power_available_management_power_level = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 23), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpTlvPowerAvailableManagementPowerLevel.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvPowerAvailableManagementPowerLevel.setDescription("The Power Available TLV Management-Power-Level field indicates the number of milliwatts representing the supplier's request to the powered device for its Power Consumption TLV. A value of 0xFFFFFFFF indicates the local device has no preference.") rl_cdp_tlv_sys_name = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 16, 1, 24), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpTlvSysName.setStatus('current') if mibBuilder.loadTexts: rlCdpTlvSysName.setDescription('The sysName MIB as will be advertised in subsequent CDP messages.') rl_cdp_advertise_appliance_tlv = mib_scalar((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 17), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlCdpAdvertiseApplianceTlv.setStatus('current') if mibBuilder.loadTexts: rlCdpAdvertiseApplianceTlv.setDescription('By setting the MIB to True Appliance VLAN-ID TLV may be advertised. A value of False will prevent this TLV from being advertised.') rl_cdp_validate_mandatory_tlvs = mib_scalar((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 18), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlCdpValidateMandatoryTlvs.setStatus('current') if mibBuilder.loadTexts: rlCdpValidateMandatoryTlvs.setDescription('By setting the MIB to true all mandatory TLVs 0x0001-0x0006 will be validated. Incoming CDP frames without any of the TLVs will be dropped. A value of false indicates that only the Device ID TLV (0x0001) is mandatory. Frames containing Device ID TLV will be processed, regardless of whether other TLVs are present or not.') rl_cdp_interface_counters_table = mib_table((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 19)) if mibBuilder.loadTexts: rlCdpInterfaceCountersTable.setStatus('current') if mibBuilder.loadTexts: rlCdpInterfaceCountersTable.setDescription('This table contains all CDP counters values, indexed by interface id.') rl_cdp_interface_counters_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 19, 1)).setIndexNames((0, 'CISCOSB-CDP-MIB', 'rlCdpInterfaceId')) if mibBuilder.loadTexts: rlCdpInterfaceCountersEntry.setStatus('current') if mibBuilder.loadTexts: rlCdpInterfaceCountersEntry.setDescription('The row definition for this table.') rl_cdp_interface_id = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 19, 1, 1), interface_index()) if mibBuilder.loadTexts: rlCdpInterfaceId.setStatus('current') if mibBuilder.loadTexts: rlCdpInterfaceId.setDescription('Interface id, used as index for interface counters table.') rl_cdp_interface_total_input_packets = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 19, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpInterfaceTotalInputPackets.setStatus('current') if mibBuilder.loadTexts: rlCdpInterfaceTotalInputPackets.setDescription('Num of received packets on rlCdpInterfaceId') rl_cdp_interface_v1_input_packets = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 19, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpInterfaceV1InputPackets.setStatus('current') if mibBuilder.loadTexts: rlCdpInterfaceV1InputPackets.setDescription('Num of v1 received packets on rlCdpInterfaceId') rl_cdp_interface_v2_input_packets = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 19, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpInterfaceV2InputPackets.setStatus('current') if mibBuilder.loadTexts: rlCdpInterfaceV2InputPackets.setDescription('Num of v2 received packets on rlCdpInterfaceId') rl_cdp_interface_total_output_packets = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 19, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpInterfaceTotalOutputPackets.setStatus('current') if mibBuilder.loadTexts: rlCdpInterfaceTotalOutputPackets.setDescription('Num of sent packets from rlCdpInterfaceId') rl_cdp_interface_v1_output_packets = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 19, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpInterfaceV1OutputPackets.setStatus('current') if mibBuilder.loadTexts: rlCdpInterfaceV1OutputPackets.setDescription('Num of v1 sent packets from rlCdpInterfaceId') rl_cdp_interface_v2_output_packets = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 19, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpInterfaceV2OutputPackets.setStatus('current') if mibBuilder.loadTexts: rlCdpInterfaceV2OutputPackets.setDescription('Num of v2 sent packets from rlCdpInterfaceId') rl_cdp_interface_illegal_chksum = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 19, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpInterfaceIllegalChksum.setStatus('current') if mibBuilder.loadTexts: rlCdpInterfaceIllegalChksum.setDescription('Num of received packets with illegal CDP checksum.') rl_cdp_interface_error_packets = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 19, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpInterfaceErrorPackets.setStatus('current') if mibBuilder.loadTexts: rlCdpInterfaceErrorPackets.setDescription('specifies the number of received CDP packets with other error (duplicated TLVs, illegal TLVs, etc.) ') rl_cdp_interface_max_neighbors_exceeded_in_main_cache = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 19, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpInterfaceMaxNeighborsExceededInMainCache.setStatus('current') if mibBuilder.loadTexts: rlCdpInterfaceMaxNeighborsExceededInMainCache.setDescription('specifies the number of times a CDP neighbor could not be stored in the main cache. ') rl_cdp_interface_max_neighbors_exceeded_in_secondary_cache = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 19, 1, 11), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlCdpInterfaceMaxNeighborsExceededInSecondaryCache.setStatus('current') if mibBuilder.loadTexts: rlCdpInterfaceMaxNeighborsExceededInSecondaryCache.setDescription(' specifies the number of times a CDP neighbor could not be stored in the secondary cache.') rl_cdp_interface_counters_clear = mib_scalar((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 137, 20), interface_index_or_zero()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlCdpInterfaceCountersClear.setStatus('current') if mibBuilder.loadTexts: rlCdpInterfaceCountersClear.setDescription('By setting the scalar to a interface id , all error and traffic counters of this interface are set to zero. To clear the counters for ALL interfaces set the scalar to 0x0FFFFFFF') rl_cdp_log_mismatch_duplex_trap = notification_type((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 224)).setObjects(('CISCOSB-DEVICEPARAMS-MIB', 'rndErrorDesc'), ('CISCOSB-DEVICEPARAMS-MIB', 'rndErrorSeverity')) if mibBuilder.loadTexts: rlCdpLogMismatchDuplexTrap.setStatus('current') if mibBuilder.loadTexts: rlCdpLogMismatchDuplexTrap.setDescription('Warning trap indicating that duplex mismatch has been detected by CDP') rl_cdp_log_mismatch_voice_vlan_trap = notification_type((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 225)).setObjects(('CISCOSB-DEVICEPARAMS-MIB', 'rndErrorDesc'), ('CISCOSB-DEVICEPARAMS-MIB', 'rndErrorSeverity')) if mibBuilder.loadTexts: rlCdpLogMismatchVoiceVlanTrap.setStatus('current') if mibBuilder.loadTexts: rlCdpLogMismatchVoiceVlanTrap.setDescription('Warning trap indicating that voice vlan mismatch has been detected by CDP') rl_cdp_log_mismatch_native_vlan_trap = notification_type((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 226)).setObjects(('CISCOSB-DEVICEPARAMS-MIB', 'rndErrorDesc'), ('CISCOSB-DEVICEPARAMS-MIB', 'rndErrorSeverity')) if mibBuilder.loadTexts: rlCdpLogMismatchNativeVlanTrap.setStatus('current') if mibBuilder.loadTexts: rlCdpLogMismatchNativeVlanTrap.setDescription('Warning trap indicating that native vlan mismatch has been detected by CDP') mibBuilder.exportSymbols('CISCOSB-CDP-MIB', rlCdpInterfaceTotalInputPackets=rlCdpInterfaceTotalInputPackets, rlCdpTlvCosForUntrustedPorts=rlCdpTlvCosForUntrustedPorts, rlCdpTlvAddress3Type=rlCdpTlvAddress3Type, rlCdpAdvertiseApplianceTlv=rlCdpAdvertiseApplianceTlv, rlCdpCountersName=rlCdpCountersName, rlCdpSecondaryCachePlatform=rlCdpSecondaryCachePlatform, rlCdpCacheEntry=rlCdpCacheEntry, rlCdpTlvPowerAvailable=rlCdpTlvPowerAvailable, rlCdpInterfaceV2OutputPackets=rlCdpInterfaceV2OutputPackets, rlCdpInterfaceMaxNeighborsExceededInSecondaryCache=rlCdpInterfaceMaxNeighborsExceededInSecondaryCache, rlCdpLogMismatchVoiceVlanTrap=rlCdpLogMismatchVoiceVlanTrap, rlCdpSourceInterface=rlCdpSourceInterface, PYSNMP_MODULE_ID=rlCdp, rlCdpLogMismatchNativeVlanEnable=rlCdpLogMismatchNativeVlanEnable, rlCdpTlvTable=rlCdpTlvTable, rlCdpTlvNativeVLAN=rlCdpTlvNativeVLAN, rlCdpSecondaryCacheMacAddress=rlCdpSecondaryCacheMacAddress, rlCdpInterfaceV1OutputPackets=rlCdpInterfaceV1OutputPackets, rlCdpTlvAddress3=rlCdpTlvAddress3, rlCdpCountersClear=rlCdpCountersClear, rlCdpGlobalLogMismatchVoiceVlanEnable=rlCdpGlobalLogMismatchVoiceVlanEnable, rlCdpCountersTable=rlCdpCountersTable, rlCdpTlvAddress2Type=rlCdpTlvAddress2Type, rlCdpVersionAdvertised=rlCdpVersionAdvertised, rlCdpTlvSysName=rlCdpTlvSysName, rlCdpTlvDuplex=rlCdpTlvDuplex, rlCdpInterfaceErrorPackets=rlCdpInterfaceErrorPackets, rlCdpTlvAddress2=rlCdpTlvAddress2, rlCdpGlobalLogMismatchNativeVlanEnable=rlCdpGlobalLogMismatchNativeVlanEnable, rlCdpLogMismatchDuplexTrap=rlCdpLogMismatchDuplexTrap, rlCdpCacheVersionExt=rlCdpCacheVersionExt, rlCdpTlvApplianceID=rlCdpTlvApplianceID, RlCdpCounterTypes=RlCdpCounterTypes, rlCdpInterfaceCountersTable=rlCdpInterfaceCountersTable, rlCdpValidateMandatoryTlvs=rlCdpValidateMandatoryTlvs, rlCdpCacheClear=rlCdpCacheClear, rlCdpTlvExtendedTrust=rlCdpTlvExtendedTrust, rlCdpInterfaceV1InputPackets=rlCdpInterfaceV1InputPackets, rlCdpTlvPowerAvailableRequestId=rlCdpTlvPowerAvailableRequestId, rlCdpCacheTimeToLive=rlCdpCacheTimeToLive, rlCdpTlvEntry=rlCdpTlvEntry, rlCdpInterfaceMaxNeighborsExceededInMainCache=rlCdpInterfaceMaxNeighborsExceededInMainCache, rlCdpTlvAddress1=rlCdpTlvAddress1, RlCdpPduActionTypes=RlCdpPduActionTypes, rlCdpTlvDeviceId=rlCdpTlvDeviceId, rlCdpSecondaryCacheCapabilities=rlCdpSecondaryCacheCapabilities, rlCdpCountersValue=rlCdpCountersValue, rlCdpTlvVersion=rlCdpTlvVersion, rlCdpSecondaryCacheEntry=rlCdpSecondaryCacheEntry, rlCdpSecondaryCacheTimeToLive=rlCdpSecondaryCacheTimeToLive, rlCdpCountersEntry=rlCdpCountersEntry, rlCdpCacheCdpVersion=rlCdpCacheCdpVersion, rlCdpInterfaceCountersClear=rlCdpInterfaceCountersClear, rlCdpPduAction=rlCdpPduAction, rlCdpTlvPowerAvailablePowerManagementId=rlCdpTlvPowerAvailablePowerManagementId, rlCdpTlvPowerAvailableManagementPowerLevel=rlCdpTlvPowerAvailableManagementPowerLevel, rlCdpSecondaryCacheTable=rlCdpSecondaryCacheTable, rlCdpLogMismatchDuplexEnable=rlCdpLogMismatchDuplexEnable, rlCdp=rlCdp, rlCdpInterfaceCountersEntry=rlCdpInterfaceCountersEntry, rlCdpLogMismatchVoiceVlanEnable=rlCdpLogMismatchVoiceVlanEnable, rlCdpTlvPlatform=rlCdpTlvPlatform, rlCdpTlvIfIndex=rlCdpTlvIfIndex, rlCdpLogMismatchNativeVlanTrap=rlCdpLogMismatchNativeVlanTrap, rlCdpInterfaceV2InputPackets=rlCdpInterfaceV2InputPackets, rlCdpTlvDeviceIdFormat=rlCdpTlvDeviceIdFormat, rlCdpCacheTable=rlCdpCacheTable, rlCdpTlvCapabilities=rlCdpTlvCapabilities, RlCdpVersionTypes=RlCdpVersionTypes, rlCdpTlvApplianceVlanID=rlCdpTlvApplianceVlanID, rlCdpTlvAddress1Type=rlCdpTlvAddress1Type, rlCdpInterfaceId=rlCdpInterfaceId, rlCdpInterfaceTotalOutputPackets=rlCdpInterfaceTotalOutputPackets, rlCdpGlobalLogMismatchDuplexEnable=rlCdpGlobalLogMismatchDuplexEnable, rlCdpSecondaryCacheVoiceVlanID=rlCdpSecondaryCacheVoiceVlanID, rlCdpTlvPortId=rlCdpTlvPortId, rlCdpVoiceVlanId=rlCdpVoiceVlanId, rlCdpInterfaceIllegalChksum=rlCdpInterfaceIllegalChksum)
unique_symbols= { 1:'I', 5:'V', 10:'X', 50:'L', 100:'C', 500:'D', 1000:'M' } def calculateRoman(algarism, place): if algarism==0: return '' elif place>=4: return algarism * unique_symbols[1000] elif algarism>5: if algarism==9: return unique_symbols[10**(place-1)]+unique_symbols[10**place] else: return unique_symbols[5*10**(place-1)] + (algarism-5) * unique_symbols[10**(place-1)] elif algarism<5: if algarism==4: return unique_symbols[10**(place-1)] + unique_symbols[5*10**(place-1)] else: return algarism * unique_symbols[10**(place-1)] else: return unique_symbols[5*10**(place-1)] def converter(integer): place=0 roman='' while integer!=0: rest= integer%10 integer//=10 place+=1 roman= calculateRoman(rest, place) + roman return roman if __name__ == "__main__": while True: try: integer = input('Insert an Integer: ') if integer.isdecimal(): integer= int(integer) else: print('Insert a valid Integer') continue if integer<1 or integer>10000: raise roman=converter(integer) print("{} converts into {}".format(integer, roman)) break except: print("Integer is too high")
unique_symbols = {1: 'I', 5: 'V', 10: 'X', 50: 'L', 100: 'C', 500: 'D', 1000: 'M'} def calculate_roman(algarism, place): if algarism == 0: return '' elif place >= 4: return algarism * unique_symbols[1000] elif algarism > 5: if algarism == 9: return unique_symbols[10 ** (place - 1)] + unique_symbols[10 ** place] else: return unique_symbols[5 * 10 ** (place - 1)] + (algarism - 5) * unique_symbols[10 ** (place - 1)] elif algarism < 5: if algarism == 4: return unique_symbols[10 ** (place - 1)] + unique_symbols[5 * 10 ** (place - 1)] else: return algarism * unique_symbols[10 ** (place - 1)] else: return unique_symbols[5 * 10 ** (place - 1)] def converter(integer): place = 0 roman = '' while integer != 0: rest = integer % 10 integer //= 10 place += 1 roman = calculate_roman(rest, place) + roman return roman if __name__ == '__main__': while True: try: integer = input('Insert an Integer: ') if integer.isdecimal(): integer = int(integer) else: print('Insert a valid Integer') continue if integer < 1 or integer > 10000: raise roman = converter(integer) print('{} converts into {}'.format(integer, roman)) break except: print('Integer is too high')
class MapAsObject: def __init__(self, wrapped): self.wrapped = wrapped def __getattr__(self, key): try: return self.wrapped[key] except KeyError: raise AttributeError("%r object has no attribute %r" % (self.__class__.__name__, key)) def get(self, *args, **kwargs): return self.wrapped.get(*args, **kwargs) def __str__(self): return str(self.wrapped) def as_object(wrapped_map): return MapAsObject(wrapped_map)
class Mapasobject: def __init__(self, wrapped): self.wrapped = wrapped def __getattr__(self, key): try: return self.wrapped[key] except KeyError: raise attribute_error('%r object has no attribute %r' % (self.__class__.__name__, key)) def get(self, *args, **kwargs): return self.wrapped.get(*args, **kwargs) def __str__(self): return str(self.wrapped) def as_object(wrapped_map): return map_as_object(wrapped_map)
fhand = open(input('Enter file name: ')) d = dict() for ln in fhand: if not ln.startswith('From '): continue words = ln.split() time = words[5] d[time[:2]] = d.get(time[:2],0) + 1 l = list() for key,val in d.items(): l.append((val,key)) l.sort() for val,key in l: print(key,val)
fhand = open(input('Enter file name: ')) d = dict() for ln in fhand: if not ln.startswith('From '): continue words = ln.split() time = words[5] d[time[:2]] = d.get(time[:2], 0) + 1 l = list() for (key, val) in d.items(): l.append((val, key)) l.sort() for (val, key) in l: print(key, val)
dbname='postgres' user='postgres' password='q1w2e3r4' host='127.0.0.1'
dbname = 'postgres' user = 'postgres' password = 'q1w2e3r4' host = '127.0.0.1'
Blue = 0 Red = 0 Yellow = 0 Green = 0 Gold = 1 Health = 100 Experience = 0 if Gold == 1: print("The chest opens") Health += 50 Experience += 100 elif Blue == 1: print("DEATH Appears") Health -= 100 elif Red == 1: print("The chest burns you") Health -= 50 elif Yellow == 1: print("A monster appears behind you") elif Green == 1: print("A giant boulder falls from the ceiling and rolls toward you") else: print("You need a key to open this") print("Health:", Health) print("Experience:", Experience) if Health <= 0: print("GAME OVER") else: print("")
blue = 0 red = 0 yellow = 0 green = 0 gold = 1 health = 100 experience = 0 if Gold == 1: print('The chest opens') health += 50 experience += 100 elif Blue == 1: print('DEATH Appears') health -= 100 elif Red == 1: print('The chest burns you') health -= 50 elif Yellow == 1: print('A monster appears behind you') elif Green == 1: print('A giant boulder falls from the ceiling and rolls toward you') else: print('You need a key to open this') print('Health:', Health) print('Experience:', Experience) if Health <= 0: print('GAME OVER') else: print('')
numList = [3, 4, 5, 6, 7] length = len(numList) for i in range(length): print(2 * numList[i])
num_list = [3, 4, 5, 6, 7] length = len(numList) for i in range(length): print(2 * numList[i])
# # @lc app=leetcode id=273 lang=python3 # # [273] Integer to English Words # # @lc code=start class Solution: def numberToWords(self, num: int) -> str: v0 = ["Thousand", "Million", "Billion"] v1 = ["", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven", "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen", "Seventeen", "Eighteen", "Nineteen"] v2 = ["", "", "Twenty", "Thirty", "Forty", "Fifty", "Sixty", "Seventy", "Eighty", "Ninety"] ret = [] def convert_hundred(sub_num): h_ret = [] hundred = sub_num // 100 if hundred > 0: h_ret.append(v1[hundred]) h_ret.append("Hundred") sub_num = sub_num % 100 if sub_num > 19: ten = sub_num // 10 sub_num = sub_num % 10 h_ret.append(v2[ten]) if sub_num > 0: h_ret.append(v1[sub_num]) elif sub_num > 0: h_ret.append(v1[sub_num]) return " ".join(h_ret) sub_num = num % 1000 ret = [convert_hundred(sub_num)] + ret num = num // 1000 for i in range(3): if num == 0: break sub_num = num % 1000 if sub_num > 0: ret = [convert_hundred(sub_num), v0[i]] + ret num = num // 1000 ret = " ".join([i for i in ret if i != ""]) return ret if ret else "Zero" # @lc code=end s = Solution() # WA1 # num = 0 # WA2 # num = 20 # WA3 num = 1000010001 ret = s.numberToWords(num) print(f"'{ret}'")
class Solution: def number_to_words(self, num: int) -> str: v0 = ['Thousand', 'Million', 'Billion'] v1 = ['', 'One', 'Two', 'Three', 'Four', 'Five', 'Six', 'Seven', 'Eight', 'Nine', 'Ten', 'Eleven', 'Twelve', 'Thirteen', 'Fourteen', 'Fifteen', 'Sixteen', 'Seventeen', 'Eighteen', 'Nineteen'] v2 = ['', '', 'Twenty', 'Thirty', 'Forty', 'Fifty', 'Sixty', 'Seventy', 'Eighty', 'Ninety'] ret = [] def convert_hundred(sub_num): h_ret = [] hundred = sub_num // 100 if hundred > 0: h_ret.append(v1[hundred]) h_ret.append('Hundred') sub_num = sub_num % 100 if sub_num > 19: ten = sub_num // 10 sub_num = sub_num % 10 h_ret.append(v2[ten]) if sub_num > 0: h_ret.append(v1[sub_num]) elif sub_num > 0: h_ret.append(v1[sub_num]) return ' '.join(h_ret) sub_num = num % 1000 ret = [convert_hundred(sub_num)] + ret num = num // 1000 for i in range(3): if num == 0: break sub_num = num % 1000 if sub_num > 0: ret = [convert_hundred(sub_num), v0[i]] + ret num = num // 1000 ret = ' '.join([i for i in ret if i != '']) return ret if ret else 'Zero' s = solution() num = 1000010001 ret = s.numberToWords(num) print(f"'{ret}'")
''' IQ test ''' n = int(input()) numbers = list(map(int, input().split(' '))) even = 0 odd = 0 first_eve = -1 first_odd = -1 for i in range(n): if numbers[i] % 2 == 0: even += 1 if first_eve == -1: first_eve = i else: odd += 1 if first_odd == -1: first_odd = i if even >= 2 and first_odd != -1: print(first_odd+1) break if odd >= 2 and first_eve != -1: print(first_eve+1) break
""" IQ test """ n = int(input()) numbers = list(map(int, input().split(' '))) even = 0 odd = 0 first_eve = -1 first_odd = -1 for i in range(n): if numbers[i] % 2 == 0: even += 1 if first_eve == -1: first_eve = i else: odd += 1 if first_odd == -1: first_odd = i if even >= 2 and first_odd != -1: print(first_odd + 1) break if odd >= 2 and first_eve != -1: print(first_eve + 1) break
class Solution: def canVisitAllRooms(self, rooms: List[List[int]]) -> bool: opened = set() N = len(rooms) opened.add(0) toOpen = rooms[0] while toOpen: nextRound = set() for room in toOpen: for newKey in rooms[room]: if newKey not in opened: nextRound.add(newKey) opened.add(room) toOpen = list(nextRound) if len(opened) == N: return True return False
class Solution: def can_visit_all_rooms(self, rooms: List[List[int]]) -> bool: opened = set() n = len(rooms) opened.add(0) to_open = rooms[0] while toOpen: next_round = set() for room in toOpen: for new_key in rooms[room]: if newKey not in opened: nextRound.add(newKey) opened.add(room) to_open = list(nextRound) if len(opened) == N: return True return False
''' Python program to compute the sum of the negative and positive numbers of an array of integers and display the largest sum. Original array elements: {0, 15, 16, 17, -14, -13, -12, -11, -10, 18, 19, 20} Largest sum - Positive/Negative numbers of the said array: 105 Original array elements: {0, 3, 4, 5, 9, -22, -44, -11} Largest sum - Positive/Negative numbers of the said array: -77 ''' def test(lst): pos_sum = 0 neg_sum = 0 for n in lst: if n > 0: pos_sum += n elif n < 0: neg_sum += n print ("Pos Sum", pos_sum) print ("Neg Sum", neg_sum) return max(pos_sum, neg_sum, key=abs) nums = { 0, -10, -11, -12, -13, -14, 15, 16, 17, 18, 19, 20 }; print("Original array elements:"); print(nums) print("Largest sum - Positive/Negative numbers of the said array: ", test(nums)); nums = { -11, -22, -44, 0, 3, 4 , 5, 9 }; print("\nOriginal array elements:"); print(nums) print("Largest sum - Positive/Negative numbers of the said array: ", test(nums));
""" Python program to compute the sum of the negative and positive numbers of an array of integers and display the largest sum. Original array elements: {0, 15, 16, 17, -14, -13, -12, -11, -10, 18, 19, 20} Largest sum - Positive/Negative numbers of the said array: 105 Original array elements: {0, 3, 4, 5, 9, -22, -44, -11} Largest sum - Positive/Negative numbers of the said array: -77 """ def test(lst): pos_sum = 0 neg_sum = 0 for n in lst: if n > 0: pos_sum += n elif n < 0: neg_sum += n print('Pos Sum', pos_sum) print('Neg Sum', neg_sum) return max(pos_sum, neg_sum, key=abs) nums = {0, -10, -11, -12, -13, -14, 15, 16, 17, 18, 19, 20} print('Original array elements:') print(nums) print('Largest sum - Positive/Negative numbers of the said array: ', test(nums)) nums = {-11, -22, -44, 0, 3, 4, 5, 9} print('\nOriginal array elements:') print(nums) print('Largest sum - Positive/Negative numbers of the said array: ', test(nums))
'''input 549 817 715 603 1152 600 300 220 420 520 ''' # -*- coding: utf-8 -*- # AtCoder Beginner Contest # Problem A if __name__ == '__main__': a = int(input()) b = int(input()) c = int(input()) d = int(input()) print(min(a, b) + min(c, d))
"""input 549 817 715 603 1152 600 300 220 420 520 """ if __name__ == '__main__': a = int(input()) b = int(input()) c = int(input()) d = int(input()) print(min(a, b) + min(c, d))
list_1 = [2,3,1,4,2,3,5,6,8,5,8,9,10,9,6] s = set(list_1) list_2 = list(s) #print(list_2) n = 3 l = len(list_1) #print(l) b = int((len(list_2)/n)) s1 = list_2.__getslice__(0, b) s2 = list_2.__getslice__(len(s1), len(s1)+b) #l1 = list(enumerate(s1, 1)) #l2 = list(enumerate(s2, 1)) print(s1,s2) #print(l1, l2)
list_1 = [2, 3, 1, 4, 2, 3, 5, 6, 8, 5, 8, 9, 10, 9, 6] s = set(list_1) list_2 = list(s) n = 3 l = len(list_1) b = int(len(list_2) / n) s1 = list_2.__getslice__(0, b) s2 = list_2.__getslice__(len(s1), len(s1) + b) print(s1, s2)
def get_token_files(parser, logic, logging, args=0): if args: if "hid" not in args.keys(): parser.print("missing honeypotid") return hid = args["hid"] for h in hid: r = logic.get_token_files(h) if r != "": parser.print("Tokens loaded and saved: \n" + r) else: parser.print(h+": Tokens not downloaded") else: parser.print("missing arguments")
def get_token_files(parser, logic, logging, args=0): if args: if 'hid' not in args.keys(): parser.print('missing honeypotid') return hid = args['hid'] for h in hid: r = logic.get_token_files(h) if r != '': parser.print('Tokens loaded and saved: \n' + r) else: parser.print(h + ': Tokens not downloaded') else: parser.print('missing arguments')
class Queue: def __init__(self, initial_size=10): self.arr = [0 for _ in range(initial_size)] self.next_index = 0 self.front_index = -1 self.queue_size = 0
class Queue: def __init__(self, initial_size=10): self.arr = [0 for _ in range(initial_size)] self.next_index = 0 self.front_index = -1 self.queue_size = 0
def divisores(n): div=[] for i in range(1,n-1): if n % i ==0: div.append(i) return div def amigos(a,b): div_a = divisores(a) div_b = divisores(b) sigma_a = sum(div_a) sigma_b = sum(div_b) if sigma_a == b or sigma_b == a: return True else: return False assert amigos(220,284) == True, "ejemplo 1 incorrecto" assert amigos(6,5) == False, "ejemplo 2 incorrecto"
def divisores(n): div = [] for i in range(1, n - 1): if n % i == 0: div.append(i) return div def amigos(a, b): div_a = divisores(a) div_b = divisores(b) sigma_a = sum(div_a) sigma_b = sum(div_b) if sigma_a == b or sigma_b == a: return True else: return False assert amigos(220, 284) == True, 'ejemplo 1 incorrecto' assert amigos(6, 5) == False, 'ejemplo 2 incorrecto'
def print_formatted(number): width = len(str(bin(number))) # Since the last column is always filled for i in range(1, number+1): print(str(i).rjust(width-2, '.') + oct(i).lstrip("0o").rjust(width-1, '.') + hex(i).lstrip("0x").upper().rjust(width-1, '.') + bin(i).lstrip("0b").rjust(width-1, '.') ) if __name__ == "__main__": n = int(input()) print_formatted(n)
def print_formatted(number): width = len(str(bin(number))) for i in range(1, number + 1): print(str(i).rjust(width - 2, '.') + oct(i).lstrip('0o').rjust(width - 1, '.') + hex(i).lstrip('0x').upper().rjust(width - 1, '.') + bin(i).lstrip('0b').rjust(width - 1, '.')) if __name__ == '__main__': n = int(input()) print_formatted(n)
# Copyright 2014 F5 Networks Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # CONSTANTS MODULE MIN_TMOS_MAJOR_VERSION = 11 MIN_TMOS_MINOR_VERSION = 5 MIN_EXTRA_MB = 500 DEFAULT_HOSTNAME = 'bigip1' MAX_HOSTNAME_LENGTH = 128 DEFAULT_FOLDER = "Common" FOLDER_CACHE_TIMEOUT = 120 CONNECTION_TIMEOUT = 30 FDB_POPULATE_STATIC_ARP = True # DEVICE LOCK PREFIX DEVICE_LOCK_PREFIX = 'lock_' # DIR TO CACHE WSDLS. SET TO NONE TO READ FROM DEVICE # WSDL_CACHE_DIR = "/data/iControl-11.4.0/sdk/wsdl/" WSDL_CACHE_DIR = '' # HA CONSTANTS HA_VLAN_NAME = "HA" HA_SELFIP_NAME = "HA" # VIRTUAL SERVER CONSTANTS VS_PREFIX = 'vs' # POOL CONSTANTS POOL_PREFIX = 'pool' # POOL CONSTANTS MONITOR_PREFIX = 'monitor' # VLAN CONSTANTS VLAN_PREFIX = 'vlan' # BIG-IP PLATFORM CONSTANTS BIGIP_VE_PLATFORM_ID = 'Z100' # DEVICE CONSTANTS DEVICE_DEFAULT_DOMAIN = ".local" DEVICE_HEALTH_SCORE_CPU_WEIGHT = 1 DEVICE_HEALTH_SCORE_MEM_WEIGHT = 1 DEVICE_HEALTH_SCORE_CPS_WEIGHT = 1 DEVICE_HEALTH_SCORE_CPS_PERIOD = 5 DEVICE_HEALTH_SCORE_CPS_MAX = 100 # DEVICE GROUP CONSTANTS PEER_ADD_ATTEMPTS_MAX = 10 PEER_ADD_ATTEMPT_DELAY = 2 DEFAULT_SYNC_MODE = 'autosync' # MAX RAM SYNC DELAY IS 63 SECONDS # (3+6+9+12+15+18) = 63 SYNC_DELAY = 3 MAX_SYNC_ATTEMPTS = 10 # SHARED CONFIG CONSTANTS SHARED_CONFIG_DEFAULT_TRAFFIC_GROUP = 'traffic-group-local-only' SHARED_CONFIG_DEFAULT_FLOATING_TRAFFIC_GROUP = 'traffic-group-1' VXLAN_UDP_PORT = 4789
min_tmos_major_version = 11 min_tmos_minor_version = 5 min_extra_mb = 500 default_hostname = 'bigip1' max_hostname_length = 128 default_folder = 'Common' folder_cache_timeout = 120 connection_timeout = 30 fdb_populate_static_arp = True device_lock_prefix = 'lock_' wsdl_cache_dir = '' ha_vlan_name = 'HA' ha_selfip_name = 'HA' vs_prefix = 'vs' pool_prefix = 'pool' monitor_prefix = 'monitor' vlan_prefix = 'vlan' bigip_ve_platform_id = 'Z100' device_default_domain = '.local' device_health_score_cpu_weight = 1 device_health_score_mem_weight = 1 device_health_score_cps_weight = 1 device_health_score_cps_period = 5 device_health_score_cps_max = 100 peer_add_attempts_max = 10 peer_add_attempt_delay = 2 default_sync_mode = 'autosync' sync_delay = 3 max_sync_attempts = 10 shared_config_default_traffic_group = 'traffic-group-local-only' shared_config_default_floating_traffic_group = 'traffic-group-1' vxlan_udp_port = 4789
# File: crowdstrike_consts.py # # Copyright (c) 2016-2020 Splunk Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software distributed under # the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, # either express or implied. See the License for the specific language governing permissions # and limitations under the License. # # # Json keys specific to the app's input parameters/config and the output result CROWDSTRIKE_JSON_URL = "url" CROWDSTRIKE_FILTER_REQUEST_STR = '{0}rest/container?page_size=0'\ '&_filter_asset={1}'\ '&_filter_name__contains="{2}"'\ '&_filter_start_time__gte="{3}"' # Status messages for the app CROWDSTRIKE_SUCC_CONNECTIVITY_TEST = "Connectivity test passed" CROWDSTRIKE_ERR_CONNECTIVITY_TEST = "Connectivity test failed" CROWDSTRIKE_ERR_CONNECTING = "Error connecting to server" CROWDSTRIKE_ERR_FROM_SERVER = "Error from Server, Status Code: {status}, Message: {message}" CROWDSTRIKE_UNABLE_TO_PARSE_DATA = "Unable to parse data from server" CROWDSTRIKE_ERR_EVENTS_FETCH = "Error occurred while fetching the DetectionSummaryEvents from the CrowdStrike server datafeed URL stream" CROWDSTRIKE_LIMIT_VALIDATION_ALLOW_ZERO_MSG = "Please provide zero or a valid positive integer value in the {parameter} parameter" CROWDSTRIKE_LIMIT_VALIDATION_MSG = "Please provide a valid non-zero positive integer value in the {parameter} parameter" CROWDSTRIKE_ERROR_CODE = "Error code unavailable" CROWDSTRIKE_ERROR_MESSAGE = "Unknown error occurred. Please check the asset configuration and|or action parameters." CROWDSTRIKE_INTEGER_VALIDATION_MESSAGE = "Please provide a valid integer value in the {} parameter" # Progress messages format string CROWDSTRIKE_USING_BASE_URL = "Using base url: {base_url}" CROWDSTRIKE_BASE_ENDPOINT = "/sensors/entities/datafeed/v1" CROWDSTRIKE_ERR_RESOURCES_KEY_EMPTY = "Resources key empty or not present" CROWDSTRIKE_ERR_DATAFEED_EMPTY = "Datafeed key empty or not present" CROWDSTRIKE_ERR_META_KEY_EMPTY = "Meta key empty or not present" CROWDSTRIKE_ERR_SESSION_TOKEN_NOT_FOUND = "Session token, not found" CROWDSTRIKE_MSG_GETTING_EVENTS = "Getting maximum {max_events} DetectionSummaryEvents from id {lower_id} onwards (ids might not be contiguous)" CROWDSTRIKE_NO_MORE_FEEDS_AVAILABLE = "No more feeds available" CROWDSTRIKE_JSON_UUID = "uuid" CROWDSTRIKE_JSON_API_KEY = "api_key" CROWDSTRIKE_JSON_ACCESS = "access" CROWDSTRIKE_ERR_CONN_FAILED = "Please make sure the system time is correct." CROWDSTRIKE_ERR_CONN_FAILED += "\r\nCrowdStrike credentials validation might fail in case the time is misconfigured." CROWDSTRIKE_ERR_CONN_FAILED += "\r\nYou can also try choosing a different Access Type" DEFAULT_POLLNOW_EVENTS_COUNT = 2000 DEFAULT_EVENTS_COUNT = 10000 DEFAULT_BLANK_LINES_ALLOWABLE_LIMIT = 50
crowdstrike_json_url = 'url' crowdstrike_filter_request_str = '{0}rest/container?page_size=0&_filter_asset={1}&_filter_name__contains="{2}"&_filter_start_time__gte="{3}"' crowdstrike_succ_connectivity_test = 'Connectivity test passed' crowdstrike_err_connectivity_test = 'Connectivity test failed' crowdstrike_err_connecting = 'Error connecting to server' crowdstrike_err_from_server = 'Error from Server, Status Code: {status}, Message: {message}' crowdstrike_unable_to_parse_data = 'Unable to parse data from server' crowdstrike_err_events_fetch = 'Error occurred while fetching the DetectionSummaryEvents from the CrowdStrike server datafeed URL stream' crowdstrike_limit_validation_allow_zero_msg = 'Please provide zero or a valid positive integer value in the {parameter} parameter' crowdstrike_limit_validation_msg = 'Please provide a valid non-zero positive integer value in the {parameter} parameter' crowdstrike_error_code = 'Error code unavailable' crowdstrike_error_message = 'Unknown error occurred. Please check the asset configuration and|or action parameters.' crowdstrike_integer_validation_message = 'Please provide a valid integer value in the {} parameter' crowdstrike_using_base_url = 'Using base url: {base_url}' crowdstrike_base_endpoint = '/sensors/entities/datafeed/v1' crowdstrike_err_resources_key_empty = 'Resources key empty or not present' crowdstrike_err_datafeed_empty = 'Datafeed key empty or not present' crowdstrike_err_meta_key_empty = 'Meta key empty or not present' crowdstrike_err_session_token_not_found = 'Session token, not found' crowdstrike_msg_getting_events = 'Getting maximum {max_events} DetectionSummaryEvents from id {lower_id} onwards (ids might not be contiguous)' crowdstrike_no_more_feeds_available = 'No more feeds available' crowdstrike_json_uuid = 'uuid' crowdstrike_json_api_key = 'api_key' crowdstrike_json_access = 'access' crowdstrike_err_conn_failed = 'Please make sure the system time is correct.' crowdstrike_err_conn_failed += '\r\nCrowdStrike credentials validation might fail in case the time is misconfigured.' crowdstrike_err_conn_failed += '\r\nYou can also try choosing a different Access Type' default_pollnow_events_count = 2000 default_events_count = 10000 default_blank_lines_allowable_limit = 50
HANDSHAKING = 0 STATUS = 1 LOGIN = 2 PLAY = 3
handshaking = 0 status = 1 login = 2 play = 3
class Node: def __init__(self, data): self.data = data self.next = None class Queue: def __init__(self): self.head = None self.last = None self.l = [] def isEmpty(self): return self.head == None # Method to add an item to the queue def Enqueue(self, item): temp = Node(item) self.l.append(item) if self.head == None: self.head = self.last = temp return self.last.next = temp self.last = temp # Method to remove an item from queue def Dequeue(self): if self.isEmpty(): return temp = self.head self.head = temp.next if(self.head == None): self.last = None z = self.l[0] self.l = self.l[1:] return z
class Node: def __init__(self, data): self.data = data self.next = None class Queue: def __init__(self): self.head = None self.last = None self.l = [] def is_empty(self): return self.head == None def enqueue(self, item): temp = node(item) self.l.append(item) if self.head == None: self.head = self.last = temp return self.last.next = temp self.last = temp def dequeue(self): if self.isEmpty(): return temp = self.head self.head = temp.next if self.head == None: self.last = None z = self.l[0] self.l = self.l[1:] return z
datasets = { "cv-corpus-7.0-2021-07-21": { "directories": ["speakers"], "audio_extensions": [".wav", ".flac"], "transcript_extension": ".txt" }, "LibriTTS": { "directories": ["train-clean-100", "train-clean-360", "train-other-500"], "audio_extensions": [".wav", ".flac"], "transcript_extension": ".original.txt" #"transcript_extension": ".normalized.txt" }, "TEDLIUM_release-3": { # slr51 "directories": ["speakers"], "audio_extensions": [".wav"], "transcript_extension": ".txt" }, "VCTK-Corpus": { "directories": ["speakers"], "audio_extensions": [".flac"], "transcript_extension": ".txt" }, } slr_datasets_wav = { "slr41": ["slr41/speakers"], "slr42": ["slr42/speakers"], "slr43": ["slr43/speakers"], "slr44": ["slr44/speakers"], "slr51": ["TEDLIUM_release-3/speakers"], # TED-LIUM v3 "slr61": ["slr61/speakers"], "slr63": ["slr63/speakers"], "slr64": ["slr64/speakers"], "slr65": ["slr65/speakers"], "slr66": ["slr66/speakers"], "slr69": ["slr69/speakers"], "slr70": ["slr70/speakers"], "slr71": ["slr71/speakers"], "slr72": ["slr72/speakers"], "slr73": ["slr73/speakers"], "slr74": ["slr74/speakers"], "slr75": ["slr75/speakers"], "slr76": ["slr76/speakers"], "slr77": ["slr77/speakers"], "slr78": ["slr78/speakers"], "slr79": ["slr79/speakers"], "slr80": ["slr80/speakers"], "slr96": ["slr96/train/audio"], "slr100": [ # Multilingual TEDx (without translations) "mtedx/ar-ar/data/train", "mtedx/de-de/data/train", "mtedx/el-el/data/train", "mtedx/es-es/data/train", "mtedx/fr-fr/data/train", "mtedx/it-it/data/train", "mtedx/pt-pt/data/train", "mtedx/ru-ru/data/train" ] } slr_datasets_flac = { "slr82": ["slr82/CN-Celeb_flac/data", "slr82/CN-Celeb2_flac/data"] } commonvoice_datasets = { "commonvoice-7": { "all": ["cv-corpus-7.0-2021-07-21/speakers"], "en": ["cv-corpus-7.0-2021-07-21/en/speakers"] # TODO: other ndividual languages }, } other_datasets = { "LJSpeech-1.1": [], "VCTK": ["VCTK-Corpus/wav48_silence_trimmed"], "nasjonalbank": ["nasjonal-bank/speakers"] }
datasets = {'cv-corpus-7.0-2021-07-21': {'directories': ['speakers'], 'audio_extensions': ['.wav', '.flac'], 'transcript_extension': '.txt'}, 'LibriTTS': {'directories': ['train-clean-100', 'train-clean-360', 'train-other-500'], 'audio_extensions': ['.wav', '.flac'], 'transcript_extension': '.original.txt'}, 'TEDLIUM_release-3': {'directories': ['speakers'], 'audio_extensions': ['.wav'], 'transcript_extension': '.txt'}, 'VCTK-Corpus': {'directories': ['speakers'], 'audio_extensions': ['.flac'], 'transcript_extension': '.txt'}} slr_datasets_wav = {'slr41': ['slr41/speakers'], 'slr42': ['slr42/speakers'], 'slr43': ['slr43/speakers'], 'slr44': ['slr44/speakers'], 'slr51': ['TEDLIUM_release-3/speakers'], 'slr61': ['slr61/speakers'], 'slr63': ['slr63/speakers'], 'slr64': ['slr64/speakers'], 'slr65': ['slr65/speakers'], 'slr66': ['slr66/speakers'], 'slr69': ['slr69/speakers'], 'slr70': ['slr70/speakers'], 'slr71': ['slr71/speakers'], 'slr72': ['slr72/speakers'], 'slr73': ['slr73/speakers'], 'slr74': ['slr74/speakers'], 'slr75': ['slr75/speakers'], 'slr76': ['slr76/speakers'], 'slr77': ['slr77/speakers'], 'slr78': ['slr78/speakers'], 'slr79': ['slr79/speakers'], 'slr80': ['slr80/speakers'], 'slr96': ['slr96/train/audio'], 'slr100': ['mtedx/ar-ar/data/train', 'mtedx/de-de/data/train', 'mtedx/el-el/data/train', 'mtedx/es-es/data/train', 'mtedx/fr-fr/data/train', 'mtedx/it-it/data/train', 'mtedx/pt-pt/data/train', 'mtedx/ru-ru/data/train']} slr_datasets_flac = {'slr82': ['slr82/CN-Celeb_flac/data', 'slr82/CN-Celeb2_flac/data']} commonvoice_datasets = {'commonvoice-7': {'all': ['cv-corpus-7.0-2021-07-21/speakers'], 'en': ['cv-corpus-7.0-2021-07-21/en/speakers']}} other_datasets = {'LJSpeech-1.1': [], 'VCTK': ['VCTK-Corpus/wav48_silence_trimmed'], 'nasjonalbank': ['nasjonal-bank/speakers']}
# Copyright 2019 DIVERSIS Software. 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. def NetworkConfig(netType): if netType == 1: layerOutDimSize = [16, 32, 64, 128, 256, 64, 10] kernelSize = [[3,3],[3,3],[3,3],[3,3],[3,3],[1],[1]] strideSize = [2,2,2,2,2,1,1] poolKernelSize = [[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3]] poolSize = [1,1,1,1,1,1,1] dropoutInput = 1.0 dropoutPool = [1.0,1.0,1.0,1.0,1.0,1.0,1.0] elif netType == 2: layerOutDimSize = [16,16,32,32,64,64,64,128,128,128,128,128,128,128,10] kernelSize = [[3, 3],[3, 3],[3, 3],[3, 3],[3, 3],[3, 3],[3, 3],[3, 3],[3, 3],[3, 3],[3, 3],[3, 3],[3, 3],[1],[1]] strideSize = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1] poolKernelSize = [[2,2],[2,2],[2,2],[2, 2],[2, 2],[2, 2],[2,2],[2,2],[2,2],[2, 2],[2, 2],[2, 2],[2, 2],[2, 2],[2, 2]] poolSize = [1,2,1,2,1,1,2,1,1,2,1,1,2,1,1] dropoutInput = 1.0 dropoutPool = [0.3,1.0,0.4,1.0,0.4,0.4,1.0,0.4,0.4,1.0,0.4,0.4,0.5,0.5,1.0] elif netType == 3: layerOutDimSize = [64, 128, 256, 512, 1024,256,10] kernelSize = [[3,3],[3,3],[3,3],[3,3],[3,3],[1],[1]] strideSize = [2,2,2,2,2,1,1] poolKernelSize = [[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3]] poolSize = [1,1,1,1,1,1,1] dropoutInput = 1.0 dropoutPool = [1.0,1.0,1.0,1.0,1.0,1.0,1.0] elif netType == 4: layerOutDimSize = [16,16,16,16,32,32,32,32,64,64,64,64,128,128,128,128,256,256,256,256,256,10] kernelSize = [[3, 3],[3, 3],[3, 3],[3, 3],[3, 3],[3, 3],[3, 3],[3, 3],[3, 3],[3, 3],[3, 3],[3, 3],[3, 3],[3, 3],[3, 3],[3, 3],[3, 3],[3, 3],[3, 3],[3, 3],[1],[1]] strideSize = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1] poolKernelSize = [[2,2],[2,2],[2,2],[2,2],[2,2],[2, 2],[2, 2],[2, 2],[2, 2],[2, 2],[2, 2],[2,2],[2,2],[2,2],[2, 2],[2, 2],[2, 2],[2, 2],[2, 2],[2, 2],[2, 2],[2, 2]] poolSize = [1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,2,1,1] dropoutInput = 1.0 dropoutPool = [1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0] elif netType == 5: layerOutDimSize = [512,128,64,32,10] kernelSize = [[1],[1],[1],[1],[1]] strideSize = [1,1,1,1,1] poolKernelSize = [[3,3],[3,3],[3,3],[3,3],[3,3]] poolSize = [1,1,1,1,1] dropoutInput = 1.0 dropoutPool = [1.0,1.0,1.0,1.0,1.0] elif netType == 6: layerOutDimSize = [128,128,128,128,128,128,128,128,128,128,128,128,10] kernelSize = [[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1]] strideSize = [1,1,1,1,1,1,1,1,1,1,1,1,1] poolKernelSize = [[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3]] poolSize = [1,1,1,1,1,1,1,1,1,1,1,1,1] dropoutInput = 1.0 dropoutPool = [1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0] else: print("Network Type is not selected properly") return layerOutDimSize,kernelSize,strideSize,poolKernelSize,poolSize,dropoutInput,dropoutPool
def network_config(netType): if netType == 1: layer_out_dim_size = [16, 32, 64, 128, 256, 64, 10] kernel_size = [[3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [1], [1]] stride_size = [2, 2, 2, 2, 2, 1, 1] pool_kernel_size = [[3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [3, 3]] pool_size = [1, 1, 1, 1, 1, 1, 1] dropout_input = 1.0 dropout_pool = [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0] elif netType == 2: layer_out_dim_size = [16, 16, 32, 32, 64, 64, 64, 128, 128, 128, 128, 128, 128, 128, 10] kernel_size = [[3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [1], [1]] stride_size = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] pool_kernel_size = [[2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2]] pool_size = [1, 2, 1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 1] dropout_input = 1.0 dropout_pool = [0.3, 1.0, 0.4, 1.0, 0.4, 0.4, 1.0, 0.4, 0.4, 1.0, 0.4, 0.4, 0.5, 0.5, 1.0] elif netType == 3: layer_out_dim_size = [64, 128, 256, 512, 1024, 256, 10] kernel_size = [[3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [1], [1]] stride_size = [2, 2, 2, 2, 2, 1, 1] pool_kernel_size = [[3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [3, 3]] pool_size = [1, 1, 1, 1, 1, 1, 1] dropout_input = 1.0 dropout_pool = [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0] elif netType == 4: layer_out_dim_size = [16, 16, 16, 16, 32, 32, 32, 32, 64, 64, 64, 64, 128, 128, 128, 128, 256, 256, 256, 256, 256, 10] kernel_size = [[3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [1], [1]] stride_size = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] pool_kernel_size = [[2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2]] pool_size = [1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1] dropout_input = 1.0 dropout_pool = [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0] elif netType == 5: layer_out_dim_size = [512, 128, 64, 32, 10] kernel_size = [[1], [1], [1], [1], [1]] stride_size = [1, 1, 1, 1, 1] pool_kernel_size = [[3, 3], [3, 3], [3, 3], [3, 3], [3, 3]] pool_size = [1, 1, 1, 1, 1] dropout_input = 1.0 dropout_pool = [1.0, 1.0, 1.0, 1.0, 1.0] elif netType == 6: layer_out_dim_size = [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 10] kernel_size = [[1], [1], [1], [1], [1], [1], [1], [1], [1], [1], [1], [1], [1]] stride_size = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] pool_kernel_size = [[3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [3, 3]] pool_size = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] dropout_input = 1.0 dropout_pool = [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0] else: print('Network Type is not selected properly') return (layerOutDimSize, kernelSize, strideSize, poolKernelSize, poolSize, dropoutInput, dropoutPool)
# https://app.codility.com/demo/results/trainingPURU8U-DP4/ def solution(array): set_array = set() for val in array: if val not in set_array : set_array.add(val) return len(set_array) if __name__ == '__main__': print(solution([0]))
def solution(array): set_array = set() for val in array: if val not in set_array: set_array.add(val) return len(set_array) if __name__ == '__main__': print(solution([0]))
# The key 'ICE' is repeated to match the length of the string and later they are xored taking eacg character at a time def xor(string,key): length = divmod(len(string),len(key)) key = key*length[0]+key[0:length[1]] return ''.join([chr(ord(a)^ord(b)) for a,b in zip(string,key)]) if __name__ == "__main__": print (xor("\n".join([line.strip() for line in open('5.txt')]),"ICE")).encode('hex')
def xor(string, key): length = divmod(len(string), len(key)) key = key * length[0] + key[0:length[1]] return ''.join([chr(ord(a) ^ ord(b)) for (a, b) in zip(string, key)]) if __name__ == '__main__': print(xor('\n'.join([line.strip() for line in open('5.txt')]), 'ICE')).encode('hex')
Root.default = 'C' Scale.scale = 'major' Clock.bpm = 120 notas = [0, 3, 5, 4] frequencia = var(notas, 4) d0 >> play( '<x |o2| ><---{[----]-*}>', sample=4, dur=1/2 ) s0 >> space( notas, dur=1/4, apm=3, pan=[-1, 0, 1] ) s1 >> bass( frequencia, dur=1/4, oct=4, ) s2 >> spark( frequencia, dur=[1/2, 1/4], ) + (0, 2, 4) s3 >> pluck( s2.degree, dur=[1/4, 1, 1/2, 2], pan=[-1, 1] )
Root.default = 'C' Scale.scale = 'major' Clock.bpm = 120 notas = [0, 3, 5, 4] frequencia = var(notas, 4) d0 >> play('<x |o2| ><---{[----]-*}>', sample=4, dur=1 / 2) s0 >> space(notas, dur=1 / 4, apm=3, pan=[-1, 0, 1]) s1 >> bass(frequencia, dur=1 / 4, oct=4) s2 >> spark(frequencia, dur=[1 / 2, 1 / 4]) + (0, 2, 4) s3 >> pluck(s2.degree, dur=[1 / 4, 1, 1 / 2, 2], pan=[-1, 1])
class Cue: def __init__(self): pass def power_to_speed(self, power, ball=None): # Translate a power (0-100) to the ball's velocity. # Ball object passed in in case this depends on ball weight. return power*10 def on_hit(self, ball): # Apply some effect to ball on hit pass class BasicCue(Cue): pass
class Cue: def __init__(self): pass def power_to_speed(self, power, ball=None): return power * 10 def on_hit(self, ball): pass class Basiccue(Cue): pass
# # PySNMP MIB module UAS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/UAS-MIB # Produced by pysmi-0.3.4 at Wed May 1 15:28:15 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ConstraintsIntersection, ValueRangeConstraint, ConstraintsUnion, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsIntersection", "ValueRangeConstraint", "ConstraintsUnion", "ValueSizeConstraint") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") ObjectIdentity, enterprises, IpAddress, Integer32, iso, Unsigned32, Bits, MibIdentifier, Counter32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, ModuleIdentity, TimeTicks, Gauge32, Counter64 = mibBuilder.importSymbols("SNMPv2-SMI", "ObjectIdentity", "enterprises", "IpAddress", "Integer32", "iso", "Unsigned32", "Bits", "MibIdentifier", "Counter32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "ModuleIdentity", "TimeTicks", "Gauge32", "Counter64") PhysAddress, TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "PhysAddress", "TextualConvention", "DisplayString") zxUasMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 3902, 1006, 1)) if mibBuilder.loadTexts: zxUasMib.setLastUpdated('200503081500Z') if mibBuilder.loadTexts: zxUasMib.setOrganization('ZTE Co.') if mibBuilder.loadTexts: zxUasMib.setContactInfo('') if mibBuilder.loadTexts: zxUasMib.setDescription('This mib defines management information objects for uas') zte = MibIdentifier((1, 3, 6, 1, 4, 1, 3902)) zxUas = MibIdentifier((1, 3, 6, 1, 4, 1, 3902, 1006)) zxUasMibObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1)) zxUasTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 2)) zxUasSystemGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 1)) zxUasServiceMgmtGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2)) zxUasStaticsGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3)) zxUasPppStatics = MibIdentifier((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 1)) zxUasInterfaceIPPoolTable = MibTable((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1), ) if mibBuilder.loadTexts: zxUasInterfaceIPPoolTable.setStatus('current') if mibBuilder.loadTexts: zxUasInterfaceIPPoolTable.setDescription('This table contains IP Pool entry') zxUasInterfaceIPPoolEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1), ).setIndexNames((0, "UAS-MIB", "zxUasIPPoolName"), (0, "UAS-MIB", "zxUasIPPoolVirtualRouteField"), (0, "UAS-MIB", "zxUasIPPoolInterfaceName"), (0, "UAS-MIB", "zxUasIPPoolID"), (0, "UAS-MIB", "zxUasIPPoolStartIPAddr"), (0, "UAS-MIB", "zxUasIPPoolEndIPAddr")) if mibBuilder.loadTexts: zxUasInterfaceIPPoolEntry.setStatus('current') if mibBuilder.loadTexts: zxUasInterfaceIPPoolEntry.setDescription('This list contains IP Pool parameters and is indexed by zxUasIPPoolName') zxUasIPPoolName = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readonly") if mibBuilder.loadTexts: zxUasIPPoolName.setStatus('current') if mibBuilder.loadTexts: zxUasIPPoolName.setDescription('IP Pool name.') zxUasIPPoolVirtualRouteField = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 15))).setMaxAccess("readonly") if mibBuilder.loadTexts: zxUasIPPoolVirtualRouteField.setStatus('current') if mibBuilder.loadTexts: zxUasIPPoolVirtualRouteField.setDescription('IP pool virtual route field name.') zxUasIPPoolInterfaceName = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readonly") if mibBuilder.loadTexts: zxUasIPPoolInterfaceName.setStatus('current') if mibBuilder.loadTexts: zxUasIPPoolInterfaceName.setDescription('VBUI global port.') zxUasIPPoolID = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: zxUasIPPoolID.setStatus('current') if mibBuilder.loadTexts: zxUasIPPoolID.setDescription('IP Pool ID.') zxUasIPPoolStartIPAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 5), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: zxUasIPPoolStartIPAddr.setStatus('current') if mibBuilder.loadTexts: zxUasIPPoolStartIPAddr.setDescription('start IP address.') zxUasIPPoolEndIPAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 6), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: zxUasIPPoolEndIPAddr.setStatus('current') if mibBuilder.loadTexts: zxUasIPPoolEndIPAddr.setDescription('end IP Address.') zxUasIPPoolFreeIPNum = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 256))).setMaxAccess("readonly") if mibBuilder.loadTexts: zxUasIPPoolFreeIPNum.setStatus('current') if mibBuilder.loadTexts: zxUasIPPoolFreeIPNum.setDescription('free IP Num.') zxUasIPPoolUsedIPNum = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 256))).setMaxAccess("readonly") if mibBuilder.loadTexts: zxUasIPPoolUsedIPNum.setStatus('current') if mibBuilder.loadTexts: zxUasIPPoolUsedIPNum.setDescription('used IP Num.') zxUasIPPoolUnavailableIPNum = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 256))).setMaxAccess("readonly") if mibBuilder.loadTexts: zxUasIPPoolUnavailableIPNum.setStatus('current') if mibBuilder.loadTexts: zxUasIPPoolUnavailableIPNum.setDescription('unavailable IP Num.') zxUasIPPoolBindToDomainFlag = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("unreserved", 1), ("reserved", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: zxUasIPPoolBindToDomainFlag.setStatus('current') if mibBuilder.loadTexts: zxUasIPPoolBindToDomainFlag.setDescription('this flag is used for binding to domain.') zxUasActiveSubscriberTable = MibTable((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2), ) if mibBuilder.loadTexts: zxUasActiveSubscriberTable.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberTable.setDescription('This table contains active subscriber entry') zxUasActiveSubscriberEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1), ).setIndexNames((0, "UAS-MIB", "zxUasActiveSubscriberVirtualRouteField"), (0, "UAS-MIB", "zxUasActiveSubscriberIPAddr"), (0, "UAS-MIB", "zxUasActiveSubscriberType"), (0, "UAS-MIB", "zxUasActiveSubscriberPPPID")) if mibBuilder.loadTexts: zxUasActiveSubscriberEntry.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberEntry.setDescription('This list contains active subscriber parameters and is indexed by zxUasActiveSubscriberIndex ') zxUasActiveSubscriberVirtualRouteField = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 15))).setMaxAccess("readonly") if mibBuilder.loadTexts: zxUasActiveSubscriberVirtualRouteField.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberVirtualRouteField.setDescription('active subscriber virtual route field name.') zxUasActiveSubscriberIPAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 2), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: zxUasActiveSubscriberIPAddr.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberIPAddr.setDescription('active subscriber IP address.') zxUasActiveSubscriberType = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("ppp", 1), ("ipdhcp", 2), ("remotedhcp", 3), ("ipdhcprelay", 4), ("iphost", 5), ("remotehost", 6), ("vpn", 7), ("brg", 8)))).setMaxAccess("readonly") if mibBuilder.loadTexts: zxUasActiveSubscriberType.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberType.setDescription('active subscriber type.') zxUasActiveSubscriberPPPID = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: zxUasActiveSubscriberPPPID.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberPPPID.setDescription('PPP active subscriber ID.') zxUasActiveSubscriberName = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 63))).setMaxAccess("readonly") if mibBuilder.loadTexts: zxUasActiveSubscriberName.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberName.setDescription('active subscriber name.') zxUasActiveSubscriberInterfaceName = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readonly") if mibBuilder.loadTexts: zxUasActiveSubscriberInterfaceName.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberInterfaceName.setDescription('active subscriber VBUI global port.') zxUasActiveSubscriberDoaminID = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: zxUasActiveSubscriberDoaminID.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberDoaminID.setDescription('active subscriber domain ID.') zxUasActiveSubscriberSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: zxUasActiveSubscriberSlot.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberSlot.setDescription('active subscriber slot.') zxUasActiveSubscriberPort = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: zxUasActiveSubscriberPort.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberPort.setDescription('active subscriber port.') zxUasActiveSubscriberVlanId = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: zxUasActiveSubscriberVlanId.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberVlanId.setDescription('active subscriber VlanId.') zxUasActiveSubscriberVpi = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 11), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: zxUasActiveSubscriberVpi.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberVpi.setDescription('active subscriber vpi value.') zxUasActiveSubscriberVci = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 12), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: zxUasActiveSubscriberVci.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberVci.setDescription('active subscriber vci value.') zxUasActiveSubscriberMACAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 13), PhysAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: zxUasActiveSubscriberMACAddr.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberMACAddr.setDescription('active subscriber host MAC address.') zxUasActiveSubscriberUpOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 14), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: zxUasActiveSubscriberUpOctets.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberUpOctets.setDescription('active subscriber up flow.') zxUasActiveSubscriberUpGigaOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: zxUasActiveSubscriberUpGigaOctets.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberUpGigaOctets.setDescription('active subscriber up flow extend.') zxUasActiveSubscriberDownOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: zxUasActiveSubscriberDownOctets.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberDownOctets.setDescription('active subscriber down flow.') zxUasActiveSubscriberDownGigaOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: zxUasActiveSubscriberDownGigaOctets.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberDownGigaOctets.setDescription('active subscriber down flow extend.') zxUasActiveDhcpSubscriberAuthFlag = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 18), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: zxUasActiveDhcpSubscriberAuthFlag.setStatus('current') if mibBuilder.loadTexts: zxUasActiveDhcpSubscriberAuthFlag.setDescription('DHCP subscriber authentication status.') zxUasActiveSubscriberUpTime = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 19), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: zxUasActiveSubscriberUpTime.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberUpTime.setDescription('active subscriber create time.') zxUasTail = MibScalar((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 0))).clone(namedValues=NamedValues(("true", 1), ("false", 0)))) if mibBuilder.loadTexts: zxUasTail.setStatus('current') if mibBuilder.loadTexts: zxUasTail.setDescription(' null node') zxUasPppCallCount = MibScalar((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 1, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: zxUasPppCallCount.setStatus('current') if mibBuilder.loadTexts: zxUasPppCallCount.setDescription('ppp calling counts.') zxUasPppCallFailedCount = MibScalar((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: zxUasPppCallFailedCount.setStatus('current') if mibBuilder.loadTexts: zxUasPppCallFailedCount.setDescription('ppp calling failed counts.') zxUasPppLinkBreakFailedCount = MibScalar((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: zxUasPppLinkBreakFailedCount.setStatus('current') if mibBuilder.loadTexts: zxUasPppLinkBreakFailedCount.setDescription('ppp linkbreak failed counts.') zxUasPppAbnormalCloseCount = MibScalar((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: zxUasPppAbnormalCloseCount.setStatus('current') if mibBuilder.loadTexts: zxUasPppAbnormalCloseCount.setDescription('abnormal close counts.') zxUasActiveSubscriberStaticsTable = MibTable((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 2), ) if mibBuilder.loadTexts: zxUasActiveSubscriberStaticsTable.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberStaticsTable.setDescription('This table contains active subscriber statics Entry') zxUasActiveSubscriberStaticsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 2, 1), ).setIndexNames((0, "UAS-MIB", "zxUasActiveSubscriberType")) if mibBuilder.loadTexts: zxUasActiveSubscriberStaticsEntry.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberStaticsEntry.setDescription('This list contains active subscriber statics parameters and is indexed by zxUasActiveSubscriberType') zxUasActiveSubscriberNum = MibTableColumn((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: zxUasActiveSubscriberNum.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberNum.setDescription('ppp users num,iphost users num,dhcp users num and vpn users num.') zxUasMaxSubscriberOnlineCount = MibScalar((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: zxUasMaxSubscriberOnlineCount.setStatus('current') if mibBuilder.loadTexts: zxUasMaxSubscriberOnlineCount.setDescription('The subscriber peak online in the history') zxUasMaxSubscriberOnlineClear = MibScalar((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("normal", 0), ("clear", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: zxUasMaxSubscriberOnlineClear.setStatus('current') if mibBuilder.loadTexts: zxUasMaxSubscriberOnlineClear.setDescription('Clear subscriber peak online in the history') zxUasMaxSubscriberOnlineTime = MibScalar((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readonly") if mibBuilder.loadTexts: zxUasMaxSubscriberOnlineTime.setStatus('current') if mibBuilder.loadTexts: zxUasMaxSubscriberOnlineTime.setDescription('The time which the max subscriber occured.') mibBuilder.exportSymbols("UAS-MIB", zxUasActiveSubscriberNum=zxUasActiveSubscriberNum, zxUasMibObjects=zxUasMibObjects, zxUasIPPoolUnavailableIPNum=zxUasIPPoolUnavailableIPNum, zxUas=zxUas, zxUasActiveSubscriberName=zxUasActiveSubscriberName, zxUasActiveSubscriberStaticsTable=zxUasActiveSubscriberStaticsTable, zxUasActiveSubscriberUpOctets=zxUasActiveSubscriberUpOctets, zxUasActiveSubscriberVpi=zxUasActiveSubscriberVpi, zxUasPppCallCount=zxUasPppCallCount, zxUasActiveSubscriberVirtualRouteField=zxUasActiveSubscriberVirtualRouteField, zxUasSystemGroup=zxUasSystemGroup, zxUasMaxSubscriberOnlineClear=zxUasMaxSubscriberOnlineClear, zxUasActiveSubscriberEntry=zxUasActiveSubscriberEntry, zxUasActiveSubscriberIPAddr=zxUasActiveSubscriberIPAddr, zxUasServiceMgmtGroup=zxUasServiceMgmtGroup, zxUasActiveSubscriberPPPID=zxUasActiveSubscriberPPPID, zxUasActiveSubscriberDoaminID=zxUasActiveSubscriberDoaminID, zxUasInterfaceIPPoolTable=zxUasInterfaceIPPoolTable, zxUasActiveSubscriberTable=zxUasActiveSubscriberTable, zxUasIPPoolVirtualRouteField=zxUasIPPoolVirtualRouteField, zxUasActiveSubscriberInterfaceName=zxUasActiveSubscriberInterfaceName, zte=zte, zxUasIPPoolInterfaceName=zxUasIPPoolInterfaceName, zxUasActiveSubscriberVlanId=zxUasActiveSubscriberVlanId, PYSNMP_MODULE_ID=zxUasMib, zxUasActiveDhcpSubscriberAuthFlag=zxUasActiveDhcpSubscriberAuthFlag, zxUasActiveSubscriberSlot=zxUasActiveSubscriberSlot, zxUasMaxSubscriberOnlineCount=zxUasMaxSubscriberOnlineCount, zxUasActiveSubscriberUpTime=zxUasActiveSubscriberUpTime, zxUasPppAbnormalCloseCount=zxUasPppAbnormalCloseCount, zxUasActiveSubscriberMACAddr=zxUasActiveSubscriberMACAddr, zxUasIPPoolID=zxUasIPPoolID, zxUasActiveSubscriberPort=zxUasActiveSubscriberPort, zxUasStaticsGroup=zxUasStaticsGroup, zxUasActiveSubscriberUpGigaOctets=zxUasActiveSubscriberUpGigaOctets, zxUasMaxSubscriberOnlineTime=zxUasMaxSubscriberOnlineTime, zxUasActiveSubscriberType=zxUasActiveSubscriberType, zxUasMib=zxUasMib, zxUasTraps=zxUasTraps, zxUasInterfaceIPPoolEntry=zxUasInterfaceIPPoolEntry, zxUasIPPoolName=zxUasIPPoolName, zxUasIPPoolEndIPAddr=zxUasIPPoolEndIPAddr, zxUasActiveSubscriberVci=zxUasActiveSubscriberVci, zxUasActiveSubscriberDownOctets=zxUasActiveSubscriberDownOctets, zxUasIPPoolStartIPAddr=zxUasIPPoolStartIPAddr, zxUasActiveSubscriberDownGigaOctets=zxUasActiveSubscriberDownGigaOctets, zxUasIPPoolBindToDomainFlag=zxUasIPPoolBindToDomainFlag, zxUasPppCallFailedCount=zxUasPppCallFailedCount, zxUasPppLinkBreakFailedCount=zxUasPppLinkBreakFailedCount, zxUasActiveSubscriberStaticsEntry=zxUasActiveSubscriberStaticsEntry, zxUasIPPoolUsedIPNum=zxUasIPPoolUsedIPNum, zxUasIPPoolFreeIPNum=zxUasIPPoolFreeIPNum, zxUasPppStatics=zxUasPppStatics, zxUasTail=zxUasTail)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, constraints_intersection, value_range_constraint, constraints_union, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueRangeConstraint', 'ConstraintsUnion', 'ValueSizeConstraint') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (object_identity, enterprises, ip_address, integer32, iso, unsigned32, bits, mib_identifier, counter32, mib_scalar, mib_table, mib_table_row, mib_table_column, notification_type, module_identity, time_ticks, gauge32, counter64) = mibBuilder.importSymbols('SNMPv2-SMI', 'ObjectIdentity', 'enterprises', 'IpAddress', 'Integer32', 'iso', 'Unsigned32', 'Bits', 'MibIdentifier', 'Counter32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'NotificationType', 'ModuleIdentity', 'TimeTicks', 'Gauge32', 'Counter64') (phys_address, textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'PhysAddress', 'TextualConvention', 'DisplayString') zx_uas_mib = module_identity((1, 3, 6, 1, 4, 1, 3902, 1006, 1)) if mibBuilder.loadTexts: zxUasMib.setLastUpdated('200503081500Z') if mibBuilder.loadTexts: zxUasMib.setOrganization('ZTE Co.') if mibBuilder.loadTexts: zxUasMib.setContactInfo('') if mibBuilder.loadTexts: zxUasMib.setDescription('This mib defines management information objects for uas') zte = mib_identifier((1, 3, 6, 1, 4, 1, 3902)) zx_uas = mib_identifier((1, 3, 6, 1, 4, 1, 3902, 1006)) zx_uas_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1)) zx_uas_traps = mib_identifier((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 2)) zx_uas_system_group = mib_identifier((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 1)) zx_uas_service_mgmt_group = mib_identifier((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2)) zx_uas_statics_group = mib_identifier((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3)) zx_uas_ppp_statics = mib_identifier((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 1)) zx_uas_interface_ip_pool_table = mib_table((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1)) if mibBuilder.loadTexts: zxUasInterfaceIPPoolTable.setStatus('current') if mibBuilder.loadTexts: zxUasInterfaceIPPoolTable.setDescription('This table contains IP Pool entry') zx_uas_interface_ip_pool_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1)).setIndexNames((0, 'UAS-MIB', 'zxUasIPPoolName'), (0, 'UAS-MIB', 'zxUasIPPoolVirtualRouteField'), (0, 'UAS-MIB', 'zxUasIPPoolInterfaceName'), (0, 'UAS-MIB', 'zxUasIPPoolID'), (0, 'UAS-MIB', 'zxUasIPPoolStartIPAddr'), (0, 'UAS-MIB', 'zxUasIPPoolEndIPAddr')) if mibBuilder.loadTexts: zxUasInterfaceIPPoolEntry.setStatus('current') if mibBuilder.loadTexts: zxUasInterfaceIPPoolEntry.setDescription('This list contains IP Pool parameters and is indexed by zxUasIPPoolName') zx_uas_ip_pool_name = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readonly') if mibBuilder.loadTexts: zxUasIPPoolName.setStatus('current') if mibBuilder.loadTexts: zxUasIPPoolName.setDescription('IP Pool name.') zx_uas_ip_pool_virtual_route_field = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 15))).setMaxAccess('readonly') if mibBuilder.loadTexts: zxUasIPPoolVirtualRouteField.setStatus('current') if mibBuilder.loadTexts: zxUasIPPoolVirtualRouteField.setDescription('IP pool virtual route field name.') zx_uas_ip_pool_interface_name = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readonly') if mibBuilder.loadTexts: zxUasIPPoolInterfaceName.setStatus('current') if mibBuilder.loadTexts: zxUasIPPoolInterfaceName.setDescription('VBUI global port.') zx_uas_ip_pool_id = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: zxUasIPPoolID.setStatus('current') if mibBuilder.loadTexts: zxUasIPPoolID.setDescription('IP Pool ID.') zx_uas_ip_pool_start_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 5), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: zxUasIPPoolStartIPAddr.setStatus('current') if mibBuilder.loadTexts: zxUasIPPoolStartIPAddr.setDescription('start IP address.') zx_uas_ip_pool_end_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 6), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: zxUasIPPoolEndIPAddr.setStatus('current') if mibBuilder.loadTexts: zxUasIPPoolEndIPAddr.setDescription('end IP Address.') zx_uas_ip_pool_free_ip_num = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 256))).setMaxAccess('readonly') if mibBuilder.loadTexts: zxUasIPPoolFreeIPNum.setStatus('current') if mibBuilder.loadTexts: zxUasIPPoolFreeIPNum.setDescription('free IP Num.') zx_uas_ip_pool_used_ip_num = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 256))).setMaxAccess('readonly') if mibBuilder.loadTexts: zxUasIPPoolUsedIPNum.setStatus('current') if mibBuilder.loadTexts: zxUasIPPoolUsedIPNum.setDescription('used IP Num.') zx_uas_ip_pool_unavailable_ip_num = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 256))).setMaxAccess('readonly') if mibBuilder.loadTexts: zxUasIPPoolUnavailableIPNum.setStatus('current') if mibBuilder.loadTexts: zxUasIPPoolUnavailableIPNum.setDescription('unavailable IP Num.') zx_uas_ip_pool_bind_to_domain_flag = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('unreserved', 1), ('reserved', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: zxUasIPPoolBindToDomainFlag.setStatus('current') if mibBuilder.loadTexts: zxUasIPPoolBindToDomainFlag.setDescription('this flag is used for binding to domain.') zx_uas_active_subscriber_table = mib_table((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2)) if mibBuilder.loadTexts: zxUasActiveSubscriberTable.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberTable.setDescription('This table contains active subscriber entry') zx_uas_active_subscriber_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1)).setIndexNames((0, 'UAS-MIB', 'zxUasActiveSubscriberVirtualRouteField'), (0, 'UAS-MIB', 'zxUasActiveSubscriberIPAddr'), (0, 'UAS-MIB', 'zxUasActiveSubscriberType'), (0, 'UAS-MIB', 'zxUasActiveSubscriberPPPID')) if mibBuilder.loadTexts: zxUasActiveSubscriberEntry.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberEntry.setDescription('This list contains active subscriber parameters and is indexed by zxUasActiveSubscriberIndex ') zx_uas_active_subscriber_virtual_route_field = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 15))).setMaxAccess('readonly') if mibBuilder.loadTexts: zxUasActiveSubscriberVirtualRouteField.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberVirtualRouteField.setDescription('active subscriber virtual route field name.') zx_uas_active_subscriber_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 2), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: zxUasActiveSubscriberIPAddr.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberIPAddr.setDescription('active subscriber IP address.') zx_uas_active_subscriber_type = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('ppp', 1), ('ipdhcp', 2), ('remotedhcp', 3), ('ipdhcprelay', 4), ('iphost', 5), ('remotehost', 6), ('vpn', 7), ('brg', 8)))).setMaxAccess('readonly') if mibBuilder.loadTexts: zxUasActiveSubscriberType.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberType.setDescription('active subscriber type.') zx_uas_active_subscriber_pppid = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: zxUasActiveSubscriberPPPID.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberPPPID.setDescription('PPP active subscriber ID.') zx_uas_active_subscriber_name = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 63))).setMaxAccess('readonly') if mibBuilder.loadTexts: zxUasActiveSubscriberName.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberName.setDescription('active subscriber name.') zx_uas_active_subscriber_interface_name = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readonly') if mibBuilder.loadTexts: zxUasActiveSubscriberInterfaceName.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberInterfaceName.setDescription('active subscriber VBUI global port.') zx_uas_active_subscriber_doamin_id = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: zxUasActiveSubscriberDoaminID.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberDoaminID.setDescription('active subscriber domain ID.') zx_uas_active_subscriber_slot = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: zxUasActiveSubscriberSlot.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberSlot.setDescription('active subscriber slot.') zx_uas_active_subscriber_port = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: zxUasActiveSubscriberPort.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberPort.setDescription('active subscriber port.') zx_uas_active_subscriber_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: zxUasActiveSubscriberVlanId.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberVlanId.setDescription('active subscriber VlanId.') zx_uas_active_subscriber_vpi = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 11), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: zxUasActiveSubscriberVpi.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberVpi.setDescription('active subscriber vpi value.') zx_uas_active_subscriber_vci = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 12), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: zxUasActiveSubscriberVci.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberVci.setDescription('active subscriber vci value.') zx_uas_active_subscriber_mac_addr = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 13), phys_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: zxUasActiveSubscriberMACAddr.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberMACAddr.setDescription('active subscriber host MAC address.') zx_uas_active_subscriber_up_octets = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 14), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: zxUasActiveSubscriberUpOctets.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberUpOctets.setDescription('active subscriber up flow.') zx_uas_active_subscriber_up_giga_octets = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 15), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: zxUasActiveSubscriberUpGigaOctets.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberUpGigaOctets.setDescription('active subscriber up flow extend.') zx_uas_active_subscriber_down_octets = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 16), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: zxUasActiveSubscriberDownOctets.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberDownOctets.setDescription('active subscriber down flow.') zx_uas_active_subscriber_down_giga_octets = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 17), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: zxUasActiveSubscriberDownGigaOctets.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberDownGigaOctets.setDescription('active subscriber down flow extend.') zx_uas_active_dhcp_subscriber_auth_flag = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 18), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: zxUasActiveDhcpSubscriberAuthFlag.setStatus('current') if mibBuilder.loadTexts: zxUasActiveDhcpSubscriberAuthFlag.setDescription('DHCP subscriber authentication status.') zx_uas_active_subscriber_up_time = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 2, 1, 19), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: zxUasActiveSubscriberUpTime.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberUpTime.setDescription('active subscriber create time.') zx_uas_tail = mib_scalar((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 2, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 0))).clone(namedValues=named_values(('true', 1), ('false', 0)))) if mibBuilder.loadTexts: zxUasTail.setStatus('current') if mibBuilder.loadTexts: zxUasTail.setDescription(' null node') zx_uas_ppp_call_count = mib_scalar((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 1, 1), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: zxUasPppCallCount.setStatus('current') if mibBuilder.loadTexts: zxUasPppCallCount.setDescription('ppp calling counts.') zx_uas_ppp_call_failed_count = mib_scalar((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: zxUasPppCallFailedCount.setStatus('current') if mibBuilder.loadTexts: zxUasPppCallFailedCount.setDescription('ppp calling failed counts.') zx_uas_ppp_link_break_failed_count = mib_scalar((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: zxUasPppLinkBreakFailedCount.setStatus('current') if mibBuilder.loadTexts: zxUasPppLinkBreakFailedCount.setDescription('ppp linkbreak failed counts.') zx_uas_ppp_abnormal_close_count = mib_scalar((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: zxUasPppAbnormalCloseCount.setStatus('current') if mibBuilder.loadTexts: zxUasPppAbnormalCloseCount.setDescription('abnormal close counts.') zx_uas_active_subscriber_statics_table = mib_table((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 2)) if mibBuilder.loadTexts: zxUasActiveSubscriberStaticsTable.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberStaticsTable.setDescription('This table contains active subscriber statics Entry') zx_uas_active_subscriber_statics_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 2, 1)).setIndexNames((0, 'UAS-MIB', 'zxUasActiveSubscriberType')) if mibBuilder.loadTexts: zxUasActiveSubscriberStaticsEntry.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberStaticsEntry.setDescription('This list contains active subscriber statics parameters and is indexed by zxUasActiveSubscriberType') zx_uas_active_subscriber_num = mib_table_column((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: zxUasActiveSubscriberNum.setStatus('current') if mibBuilder.loadTexts: zxUasActiveSubscriberNum.setDescription('ppp users num,iphost users num,dhcp users num and vpn users num.') zx_uas_max_subscriber_online_count = mib_scalar((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: zxUasMaxSubscriberOnlineCount.setStatus('current') if mibBuilder.loadTexts: zxUasMaxSubscriberOnlineCount.setDescription('The subscriber peak online in the history') zx_uas_max_subscriber_online_clear = mib_scalar((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('normal', 0), ('clear', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: zxUasMaxSubscriberOnlineClear.setStatus('current') if mibBuilder.loadTexts: zxUasMaxSubscriberOnlineClear.setDescription('Clear subscriber peak online in the history') zx_uas_max_subscriber_online_time = mib_scalar((1, 3, 6, 1, 4, 1, 3902, 1006, 1, 1, 3, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readonly') if mibBuilder.loadTexts: zxUasMaxSubscriberOnlineTime.setStatus('current') if mibBuilder.loadTexts: zxUasMaxSubscriberOnlineTime.setDescription('The time which the max subscriber occured.') mibBuilder.exportSymbols('UAS-MIB', zxUasActiveSubscriberNum=zxUasActiveSubscriberNum, zxUasMibObjects=zxUasMibObjects, zxUasIPPoolUnavailableIPNum=zxUasIPPoolUnavailableIPNum, zxUas=zxUas, zxUasActiveSubscriberName=zxUasActiveSubscriberName, zxUasActiveSubscriberStaticsTable=zxUasActiveSubscriberStaticsTable, zxUasActiveSubscriberUpOctets=zxUasActiveSubscriberUpOctets, zxUasActiveSubscriberVpi=zxUasActiveSubscriberVpi, zxUasPppCallCount=zxUasPppCallCount, zxUasActiveSubscriberVirtualRouteField=zxUasActiveSubscriberVirtualRouteField, zxUasSystemGroup=zxUasSystemGroup, zxUasMaxSubscriberOnlineClear=zxUasMaxSubscriberOnlineClear, zxUasActiveSubscriberEntry=zxUasActiveSubscriberEntry, zxUasActiveSubscriberIPAddr=zxUasActiveSubscriberIPAddr, zxUasServiceMgmtGroup=zxUasServiceMgmtGroup, zxUasActiveSubscriberPPPID=zxUasActiveSubscriberPPPID, zxUasActiveSubscriberDoaminID=zxUasActiveSubscriberDoaminID, zxUasInterfaceIPPoolTable=zxUasInterfaceIPPoolTable, zxUasActiveSubscriberTable=zxUasActiveSubscriberTable, zxUasIPPoolVirtualRouteField=zxUasIPPoolVirtualRouteField, zxUasActiveSubscriberInterfaceName=zxUasActiveSubscriberInterfaceName, zte=zte, zxUasIPPoolInterfaceName=zxUasIPPoolInterfaceName, zxUasActiveSubscriberVlanId=zxUasActiveSubscriberVlanId, PYSNMP_MODULE_ID=zxUasMib, zxUasActiveDhcpSubscriberAuthFlag=zxUasActiveDhcpSubscriberAuthFlag, zxUasActiveSubscriberSlot=zxUasActiveSubscriberSlot, zxUasMaxSubscriberOnlineCount=zxUasMaxSubscriberOnlineCount, zxUasActiveSubscriberUpTime=zxUasActiveSubscriberUpTime, zxUasPppAbnormalCloseCount=zxUasPppAbnormalCloseCount, zxUasActiveSubscriberMACAddr=zxUasActiveSubscriberMACAddr, zxUasIPPoolID=zxUasIPPoolID, zxUasActiveSubscriberPort=zxUasActiveSubscriberPort, zxUasStaticsGroup=zxUasStaticsGroup, zxUasActiveSubscriberUpGigaOctets=zxUasActiveSubscriberUpGigaOctets, zxUasMaxSubscriberOnlineTime=zxUasMaxSubscriberOnlineTime, zxUasActiveSubscriberType=zxUasActiveSubscriberType, zxUasMib=zxUasMib, zxUasTraps=zxUasTraps, zxUasInterfaceIPPoolEntry=zxUasInterfaceIPPoolEntry, zxUasIPPoolName=zxUasIPPoolName, zxUasIPPoolEndIPAddr=zxUasIPPoolEndIPAddr, zxUasActiveSubscriberVci=zxUasActiveSubscriberVci, zxUasActiveSubscriberDownOctets=zxUasActiveSubscriberDownOctets, zxUasIPPoolStartIPAddr=zxUasIPPoolStartIPAddr, zxUasActiveSubscriberDownGigaOctets=zxUasActiveSubscriberDownGigaOctets, zxUasIPPoolBindToDomainFlag=zxUasIPPoolBindToDomainFlag, zxUasPppCallFailedCount=zxUasPppCallFailedCount, zxUasPppLinkBreakFailedCount=zxUasPppLinkBreakFailedCount, zxUasActiveSubscriberStaticsEntry=zxUasActiveSubscriberStaticsEntry, zxUasIPPoolUsedIPNum=zxUasIPPoolUsedIPNum, zxUasIPPoolFreeIPNum=zxUasIPPoolFreeIPNum, zxUasPppStatics=zxUasPppStatics, zxUasTail=zxUasTail)
def maior_primo(num): if num < 2: return False else: for n in range(2, num): while num % n == 0: return num - 1 return num
def maior_primo(num): if num < 2: return False else: for n in range(2, num): while num % n == 0: return num - 1 return num
# Demo Python If ... Else - And ''' And The 'and' keyword is a logical operator, and is used to combine conditional statements. ''' # Test if a is greater than b, AND if c is greater than a: a = 200 b = 33 c = 500 if a > b and c > a: print("Both conditions are True")
""" And The 'and' keyword is a logical operator, and is used to combine conditional statements. """ a = 200 b = 33 c = 500 if a > b and c > a: print('Both conditions are True')
def timesize(t): if t<60: return f"{t:.2f}s" elif t<3600: return f"{t/60:.2f}m" elif t<86400: return f"{t/3600:.2f}h" else: return f"{t/86400:.2f}d"
def timesize(t): if t < 60: return f'{t:.2f}s' elif t < 3600: return f'{t / 60:.2f}m' elif t < 86400: return f'{t / 3600:.2f}h' else: return f'{t / 86400:.2f}d'
# .txt mesh converter def txt_mesh_converter(mesh_filename): # txt mesh converter, returns mesh variables with open(mesh_filename, 'r') as mesh_file: lines = mesh_file.readlines() # remove blank lines lines_list = [] for line in lines: if line.strip(): lines_list.append(line) surfaces_start = lines_list.index('$Surfaces\n') surfaces_end = lines_list.index('$EndSurfaces\n') surfaces_elements_start = lines_list.index('$SurfacesElements\n') surfaces_elements_end = lines_list.index('$EndSurfacesElements\n') boundaries_start = lines_list.index('$Boundaries\n') boundaries_end = lines_list.index('$EndBoundaries\n') boundaries_nodes_start = lines_list.index('$BoundariesNodes\n') boundaries_nodes_end = lines_list.index('$EndBoundariesNodes\n') nodes_start = lines_list.index('$Nodes\n') nodes_end = lines_list.index('$EndNodes\n') elements_start = lines_list.index('$Elements\n') elements_end = lines_list.index('$EndElements\n') surfaces = [lines_list[i] for i in range(surfaces_start + 1, surfaces_end)] surfaces_tags = [] surfaces_names = [] for i in range(len(surfaces)): surfaces[i] = surfaces[i].split() surfaces_tags.append(int(surfaces[i][0])) surfaces_names.append(surfaces[i][1]) boundaries = [lines_list[i] for i in range(boundaries_start + 1, boundaries_end)] boundaries_tags = [] boundaries_names = [] for i in range(len(boundaries)): boundaries[i] = boundaries[i].split() boundaries_tags.append(int(boundaries[i][0])) boundaries_names.append(boundaries[i][1]) nodes = [lines_list[i] for i in range(nodes_start + 1, nodes_end)] nodes_tags = [] x_nodes_coordinates = [] y_nodes_coordinates = [] for i in range(len(nodes)): nodes[i] = nodes[i].split() nodes_tags.append(int(nodes[i][0])) x_nodes_coordinates.append(float(nodes[i][1])) y_nodes_coordinates.append(float(nodes[i][2])) elements = [lines_list[i] for i in range(elements_start + 1, elements_end)] elements_tags = [] connectivity = [] for i in range(1, len(elements)): elements[i] = elements[i].split() element_connectivity = [nodes_tags.index(int(elements[i][j])) for j in range(1, len(elements[i]))] if elements[0].lower() == 'c\n': tmp_element_connectivity = list(element_connectivity) element_connectivity = [tmp_element_connectivity[j] for j in [0, 3, 2, 1]] elements_tags.append(int(elements[i][0])) connectivity.append(element_connectivity) surfaces_elements_list = [lines_list[i] for i in range(surfaces_elements_start + 1, surfaces_elements_end)] number_of_surfaces = int(surfaces_elements_list[0]) surface_elements = [i for i in range(number_of_surfaces)] for i in range(1, len(surfaces_elements_list), 2): surfaces_elements_list[i] = surfaces_elements_list[i][0].split() surfaces_elements_list[i + 1] = surfaces_elements_list[i + 1].split() index_ = surfaces_tags.index(int(surfaces_elements_list[i][0])) elements_list = [elements_tags.index(int(surfaces_elements_list[i + 1][j])) for j in range(len(surfaces_elements_list[i + 1]))] surface_elements[index_] = list(elements_list) boundaries_nodes_list = [lines_list[i] for i in range(boundaries_nodes_start + 1, boundaries_nodes_end)] number_of_boundaries = int(boundaries_nodes_list[0]) boundary_nodes = [i for i in range(number_of_boundaries)] for i in range(1, len(boundaries_nodes_list), 2): boundaries_nodes_list[i] = boundaries_nodes_list[i].split() boundaries_nodes_list[i + 1] = boundaries_nodes_list[i + 1].split() index_ = boundaries_tags.index(int(boundaries_nodes_list[i][0])) nodes_list = [nodes_tags.index(int(boundaries_nodes_list[i + 1][j])) for j in range(len(boundaries_nodes_list[i + 1]))] boundary_nodes[index_] = list(nodes_list) return surfaces_names, boundaries_names, x_nodes_coordinates, y_nodes_coordinates, \ connectivity, surface_elements, boundary_nodes
def txt_mesh_converter(mesh_filename): with open(mesh_filename, 'r') as mesh_file: lines = mesh_file.readlines() lines_list = [] for line in lines: if line.strip(): lines_list.append(line) surfaces_start = lines_list.index('$Surfaces\n') surfaces_end = lines_list.index('$EndSurfaces\n') surfaces_elements_start = lines_list.index('$SurfacesElements\n') surfaces_elements_end = lines_list.index('$EndSurfacesElements\n') boundaries_start = lines_list.index('$Boundaries\n') boundaries_end = lines_list.index('$EndBoundaries\n') boundaries_nodes_start = lines_list.index('$BoundariesNodes\n') boundaries_nodes_end = lines_list.index('$EndBoundariesNodes\n') nodes_start = lines_list.index('$Nodes\n') nodes_end = lines_list.index('$EndNodes\n') elements_start = lines_list.index('$Elements\n') elements_end = lines_list.index('$EndElements\n') surfaces = [lines_list[i] for i in range(surfaces_start + 1, surfaces_end)] surfaces_tags = [] surfaces_names = [] for i in range(len(surfaces)): surfaces[i] = surfaces[i].split() surfaces_tags.append(int(surfaces[i][0])) surfaces_names.append(surfaces[i][1]) boundaries = [lines_list[i] for i in range(boundaries_start + 1, boundaries_end)] boundaries_tags = [] boundaries_names = [] for i in range(len(boundaries)): boundaries[i] = boundaries[i].split() boundaries_tags.append(int(boundaries[i][0])) boundaries_names.append(boundaries[i][1]) nodes = [lines_list[i] for i in range(nodes_start + 1, nodes_end)] nodes_tags = [] x_nodes_coordinates = [] y_nodes_coordinates = [] for i in range(len(nodes)): nodes[i] = nodes[i].split() nodes_tags.append(int(nodes[i][0])) x_nodes_coordinates.append(float(nodes[i][1])) y_nodes_coordinates.append(float(nodes[i][2])) elements = [lines_list[i] for i in range(elements_start + 1, elements_end)] elements_tags = [] connectivity = [] for i in range(1, len(elements)): elements[i] = elements[i].split() element_connectivity = [nodes_tags.index(int(elements[i][j])) for j in range(1, len(elements[i]))] if elements[0].lower() == 'c\n': tmp_element_connectivity = list(element_connectivity) element_connectivity = [tmp_element_connectivity[j] for j in [0, 3, 2, 1]] elements_tags.append(int(elements[i][0])) connectivity.append(element_connectivity) surfaces_elements_list = [lines_list[i] for i in range(surfaces_elements_start + 1, surfaces_elements_end)] number_of_surfaces = int(surfaces_elements_list[0]) surface_elements = [i for i in range(number_of_surfaces)] for i in range(1, len(surfaces_elements_list), 2): surfaces_elements_list[i] = surfaces_elements_list[i][0].split() surfaces_elements_list[i + 1] = surfaces_elements_list[i + 1].split() index_ = surfaces_tags.index(int(surfaces_elements_list[i][0])) elements_list = [elements_tags.index(int(surfaces_elements_list[i + 1][j])) for j in range(len(surfaces_elements_list[i + 1]))] surface_elements[index_] = list(elements_list) boundaries_nodes_list = [lines_list[i] for i in range(boundaries_nodes_start + 1, boundaries_nodes_end)] number_of_boundaries = int(boundaries_nodes_list[0]) boundary_nodes = [i for i in range(number_of_boundaries)] for i in range(1, len(boundaries_nodes_list), 2): boundaries_nodes_list[i] = boundaries_nodes_list[i].split() boundaries_nodes_list[i + 1] = boundaries_nodes_list[i + 1].split() index_ = boundaries_tags.index(int(boundaries_nodes_list[i][0])) nodes_list = [nodes_tags.index(int(boundaries_nodes_list[i + 1][j])) for j in range(len(boundaries_nodes_list[i + 1]))] boundary_nodes[index_] = list(nodes_list) return (surfaces_names, boundaries_names, x_nodes_coordinates, y_nodes_coordinates, connectivity, surface_elements, boundary_nodes)
getAllObjects = [ { "id": 1, "keyName": "SPREAD", "name": "SPREAD" } ]
get_all_objects = [{'id': 1, 'keyName': 'SPREAD', 'name': 'SPREAD'}]
# # PySNMP MIB module CISCO-OPTICAL-MONITOR-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-OPTICAL-MONITOR-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:51:58 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, SingleValueConstraint, ValueSizeConstraint, ValueRangeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsIntersection") ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt") ifIndex, = mibBuilder.importSymbols("IF-MIB", "ifIndex") NotificationGroup, ObjectGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ObjectGroup", "ModuleCompliance") MibScalar, MibTable, MibTableRow, MibTableColumn, Unsigned32, Counter32, Bits, Gauge32, ObjectIdentity, IpAddress, Counter64, ModuleIdentity, Integer32, TimeTicks, NotificationType, iso, MibIdentifier = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Unsigned32", "Counter32", "Bits", "Gauge32", "ObjectIdentity", "IpAddress", "Counter64", "ModuleIdentity", "Integer32", "TimeTicks", "NotificationType", "iso", "MibIdentifier") TextualConvention, DisplayString, TimeStamp = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString", "TimeStamp") ciscoOpticalMonitorMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 264)) ciscoOpticalMonitorMIB.setRevisions(('2007-01-02 00:00', '2002-05-10 00:00',)) if mibBuilder.loadTexts: ciscoOpticalMonitorMIB.setLastUpdated('200701020000Z') if mibBuilder.loadTexts: ciscoOpticalMonitorMIB.setOrganization('Cisco Systems, Inc.') class OpticalParameterType(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7)) namedValues = NamedValues(("power", 1), ("acPower", 2), ("ambientTemp", 3), ("laserTemp", 4), ("biasCurrent", 5), ("peltierCurrent", 6), ("xcvrVoltage", 7)) class OpticalParameterValue(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(-1000000, 1000000) class OpticalIfDirection(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3)) namedValues = NamedValues(("receive", 1), ("transmit", 2), ("notApplicable", 3)) class OpticalIfMonLocation(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3)) namedValues = NamedValues(("beforeAdjustment", 1), ("afterAdjustment", 2), ("notApplicable", 3)) class OpticalAlarmStatus(TextualConvention, OctetString): reference = 'Telcordia Technologies Generic Requirements GR-2918-CORE, Issue 4, December 1999, Section 8.11' status = 'current' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(1, 1) fixedLength = 1 class OpticalAlarmSeverity(TextualConvention, Integer32): reference = 'Telcordia Technologies Generic Requirements GR-474-CORE, Issue 1, December 1997, Section 2.2' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6)) namedValues = NamedValues(("critical", 1), ("major", 2), ("minor", 3), ("notAlarmed", 4), ("notReported", 5), ("cleared", 6)) class OpticalAlarmSeverityOrZero(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 6) class OpticalPMPeriod(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("fifteenMin", 1), ("twentyFourHour", 2)) cOpticalMonitorMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 1)) cOpticalMonGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1)) cOpticalPMGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2)) cOpticalMonTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1), ) if mibBuilder.loadTexts: cOpticalMonTable.setStatus('current') cOpticalMonEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "CISCO-OPTICAL-MONITOR-MIB", "cOpticalMonDirection"), (0, "CISCO-OPTICAL-MONITOR-MIB", "cOpticalMonLocation"), (0, "CISCO-OPTICAL-MONITOR-MIB", "cOpticalMonParameterType")) if mibBuilder.loadTexts: cOpticalMonEntry.setStatus('current') cOpticalMonDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 1), OpticalIfDirection()) if mibBuilder.loadTexts: cOpticalMonDirection.setStatus('current') cOpticalMonLocation = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 2), OpticalIfMonLocation()) if mibBuilder.loadTexts: cOpticalMonLocation.setStatus('current') cOpticalMonParameterType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 3), OpticalParameterType()) if mibBuilder.loadTexts: cOpticalMonParameterType.setStatus('current') cOpticalParameterValue = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 4), OpticalParameterValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cOpticalParameterValue.setStatus('current') cOpticalParamHighAlarmThresh = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 5), OpticalParameterValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cOpticalParamHighAlarmThresh.setStatus('current') cOpticalParamHighAlarmSev = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 6), OpticalAlarmSeverity()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cOpticalParamHighAlarmSev.setStatus('current') cOpticalParamHighWarningThresh = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 7), OpticalParameterValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cOpticalParamHighWarningThresh.setStatus('current') cOpticalParamHighWarningSev = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 8), OpticalAlarmSeverity()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cOpticalParamHighWarningSev.setStatus('current') cOpticalParamLowAlarmThresh = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 9), OpticalParameterValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cOpticalParamLowAlarmThresh.setStatus('current') cOpticalParamLowAlarmSev = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 10), OpticalAlarmSeverity()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cOpticalParamLowAlarmSev.setStatus('current') cOpticalParamLowWarningThresh = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 11), OpticalParameterValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cOpticalParamLowWarningThresh.setStatus('current') cOpticalParamLowWarningSev = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 12), OpticalAlarmSeverity()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cOpticalParamLowWarningSev.setStatus('current') cOpticalParamAlarmStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 13), OpticalAlarmStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: cOpticalParamAlarmStatus.setStatus('current') cOpticalParamAlarmCurMaxThresh = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 14), OpticalParameterValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cOpticalParamAlarmCurMaxThresh.setStatus('current') cOpticalParamAlarmCurMaxSev = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 15), OpticalAlarmSeverity()).setMaxAccess("readonly") if mibBuilder.loadTexts: cOpticalParamAlarmCurMaxSev.setStatus('current') cOpticalParamAlarmLastChange = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 16), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: cOpticalParamAlarmLastChange.setStatus('current') cOpticalMon15MinValidIntervals = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 17), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 96))).setMaxAccess("readonly") if mibBuilder.loadTexts: cOpticalMon15MinValidIntervals.setStatus('current') cOpticalMon24HrValidIntervals = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 18), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readonly") if mibBuilder.loadTexts: cOpticalMon24HrValidIntervals.setStatus('current') cOpticalParamThreshSource = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 19), Bits().clone(namedValues=NamedValues(("highAlarmDefThresh", 0), ("highWarnDefThresh", 1), ("lowAlarmDefThresh", 2), ("lowWarnDefThresh", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cOpticalParamThreshSource.setStatus('current') cOpticalNotifyEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 2), OpticalAlarmSeverityOrZero()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cOpticalNotifyEnable.setStatus('current') cOpticalMonEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 3), Bits().clone(namedValues=NamedValues(("all", 0)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cOpticalMonEnable.setStatus('current') cOpticalMonPollInterval = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 4), Unsigned32()).setUnits('minutes').setMaxAccess("readwrite") if mibBuilder.loadTexts: cOpticalMonPollInterval.setStatus('current') cOpticalMonIfTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 5), ) if mibBuilder.loadTexts: cOpticalMonIfTable.setStatus('current') cOpticalMonIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 5, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: cOpticalMonIfEntry.setStatus('current') cOpticalMonIfTimeInSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 5, 1, 1), Unsigned32()).setUnits('seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: cOpticalMonIfTimeInSlot.setStatus('current') cOpticalPMCurrentTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1), ) if mibBuilder.loadTexts: cOpticalPMCurrentTable.setStatus('current') cOpticalPMCurrentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1), ).setIndexNames((0, "CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMCurrentPeriod"), (0, "IF-MIB", "ifIndex"), (0, "CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMCurrentDirection"), (0, "CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMCurrentLocation"), (0, "CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMCurrentParamType")) if mibBuilder.loadTexts: cOpticalPMCurrentEntry.setStatus('current') cOpticalPMCurrentPeriod = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 1), OpticalPMPeriod()) if mibBuilder.loadTexts: cOpticalPMCurrentPeriod.setStatus('current') cOpticalPMCurrentDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 2), OpticalIfDirection()) if mibBuilder.loadTexts: cOpticalPMCurrentDirection.setStatus('current') cOpticalPMCurrentLocation = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 3), OpticalIfMonLocation()) if mibBuilder.loadTexts: cOpticalPMCurrentLocation.setStatus('current') cOpticalPMCurrentParamType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 4), OpticalParameterType()) if mibBuilder.loadTexts: cOpticalPMCurrentParamType.setStatus('current') cOpticalPMCurrentMaxParam = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 5), OpticalParameterValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cOpticalPMCurrentMaxParam.setStatus('current') cOpticalPMCurrentMinParam = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 6), OpticalParameterValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cOpticalPMCurrentMinParam.setStatus('current') cOpticalPMCurrentMeanParam = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 7), OpticalParameterValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cOpticalPMCurrentMeanParam.setStatus('current') cOpticalPMCurrentUnavailSecs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 86400))).setMaxAccess("readonly") if mibBuilder.loadTexts: cOpticalPMCurrentUnavailSecs.setStatus('current') cOpticalPMIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2), ) if mibBuilder.loadTexts: cOpticalPMIntervalTable.setStatus('current') cOpticalPMIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1), ).setIndexNames((0, "CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMIntervalPeriod"), (0, "CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMIntervalNumber"), (0, "IF-MIB", "ifIndex"), (0, "CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMIntervalDirection"), (0, "CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMIntervalLocation"), (0, "CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMIntervalParamType")) if mibBuilder.loadTexts: cOpticalPMIntervalEntry.setStatus('current') cOpticalPMIntervalPeriod = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 1), OpticalPMPeriod()) if mibBuilder.loadTexts: cOpticalPMIntervalPeriod.setStatus('current') cOpticalPMIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 96))) if mibBuilder.loadTexts: cOpticalPMIntervalNumber.setStatus('current') cOpticalPMIntervalDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 3), OpticalIfDirection()) if mibBuilder.loadTexts: cOpticalPMIntervalDirection.setStatus('current') cOpticalPMIntervalLocation = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 4), OpticalIfMonLocation()) if mibBuilder.loadTexts: cOpticalPMIntervalLocation.setStatus('current') cOpticalPMIntervalParamType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 5), OpticalParameterType()) if mibBuilder.loadTexts: cOpticalPMIntervalParamType.setStatus('current') cOpticalPMIntervalMaxParam = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 6), OpticalParameterValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cOpticalPMIntervalMaxParam.setStatus('current') cOpticalPMIntervalMinParam = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 7), OpticalParameterValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cOpticalPMIntervalMinParam.setStatus('current') cOpticalPMIntervalMeanParam = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 8), OpticalParameterValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cOpticalPMIntervalMeanParam.setStatus('current') cOpticalPMIntervalUnavailSecs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 86400))).setMaxAccess("readonly") if mibBuilder.loadTexts: cOpticalPMIntervalUnavailSecs.setStatus('current') cOpticalMonitorMIBNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 2)) cOpticalMonNotificationPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 2, 0)) cOpticalMonParameterStatus = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 264, 2, 0, 1)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParameterValue"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamAlarmStatus"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamAlarmCurMaxThresh"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamAlarmCurMaxSev"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamAlarmLastChange")) if mibBuilder.loadTexts: cOpticalMonParameterStatus.setStatus('current') cOpticalMonitorMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 3)) cOpticalMonitorMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 1)) cOpticalMonitorMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2)) cOpticalMonitorMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 1, 1)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBMonGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBThresholdGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBSeverityGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBPMGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBNotifyEnableGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBNotifGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cOpticalMonitorMIBCompliance = cOpticalMonitorMIBCompliance.setStatus('deprecated') cOpticalMonitorMIBComplianceRev = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 1, 2)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBMonGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBThresholdGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBSeverityGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBPMGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMonIfTimeGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBNotifyEnableGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBNotifGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBEnableConfigGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBIntervalConfigGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMonThreshSourceGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cOpticalMonitorMIBComplianceRev = cOpticalMonitorMIBComplianceRev.setStatus('current') cOpticalMIBMonGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 1)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParameterValue")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cOpticalMIBMonGroup = cOpticalMIBMonGroup.setStatus('current') cOpticalMIBThresholdGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 2)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamHighAlarmThresh"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamHighWarningThresh"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamLowAlarmThresh"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamLowWarningThresh"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamAlarmStatus"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamAlarmCurMaxThresh"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamAlarmLastChange")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cOpticalMIBThresholdGroup = cOpticalMIBThresholdGroup.setStatus('current') cOpticalMIBSeverityGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 3)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamHighAlarmSev"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamHighWarningSev"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamLowAlarmSev"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamLowWarningSev"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamAlarmCurMaxSev")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cOpticalMIBSeverityGroup = cOpticalMIBSeverityGroup.setStatus('current') cOpticalMIBPMGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 4)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMon15MinValidIntervals"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMon24HrValidIntervals"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMCurrentMaxParam"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMCurrentMinParam"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMCurrentMeanParam"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMCurrentUnavailSecs"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMIntervalMaxParam"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMIntervalMinParam"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMIntervalMeanParam"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMIntervalUnavailSecs")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cOpticalMIBPMGroup = cOpticalMIBPMGroup.setStatus('current') cOpticalMIBNotifyEnableGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 5)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalNotifyEnable")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cOpticalMIBNotifyEnableGroup = cOpticalMIBNotifyEnableGroup.setStatus('current') cOpticalMIBNotifGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 6)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMonParameterStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cOpticalMIBNotifGroup = cOpticalMIBNotifGroup.setStatus('current') cOpticalMonIfTimeGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 7)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMonIfTimeInSlot")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cOpticalMonIfTimeGroup = cOpticalMonIfTimeGroup.setStatus('current') cOpticalMIBEnableConfigGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 8)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMonEnable")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cOpticalMIBEnableConfigGroup = cOpticalMIBEnableConfigGroup.setStatus('current') cOpticalMIBIntervalConfigGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 9)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMonPollInterval")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cOpticalMIBIntervalConfigGroup = cOpticalMIBIntervalConfigGroup.setStatus('current') cOpticalMonThreshSourceGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 10)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamThreshSource")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cOpticalMonThreshSourceGroup = cOpticalMonThreshSourceGroup.setStatus('current') mibBuilder.exportSymbols("CISCO-OPTICAL-MONITOR-MIB", cOpticalParamHighAlarmThresh=cOpticalParamHighAlarmThresh, cOpticalParamHighWarningThresh=cOpticalParamHighWarningThresh, cOpticalPMCurrentLocation=cOpticalPMCurrentLocation, cOpticalMIBMonGroup=cOpticalMIBMonGroup, cOpticalMonNotificationPrefix=cOpticalMonNotificationPrefix, cOpticalMonGroup=cOpticalMonGroup, cOpticalMonIfTimeInSlot=cOpticalMonIfTimeInSlot, cOpticalMonitorMIBNotifications=cOpticalMonitorMIBNotifications, OpticalParameterType=OpticalParameterType, cOpticalMonEntry=cOpticalMonEntry, OpticalPMPeriod=OpticalPMPeriod, cOpticalMIBNotifGroup=cOpticalMIBNotifGroup, cOpticalMIBIntervalConfigGroup=cOpticalMIBIntervalConfigGroup, OpticalIfDirection=OpticalIfDirection, ciscoOpticalMonitorMIB=ciscoOpticalMonitorMIB, cOpticalMonParameterType=cOpticalMonParameterType, cOpticalPMCurrentTable=cOpticalPMCurrentTable, cOpticalMonEnable=cOpticalMonEnable, cOpticalMIBEnableConfigGroup=cOpticalMIBEnableConfigGroup, cOpticalMonitorMIBCompliance=cOpticalMonitorMIBCompliance, cOpticalPMGroup=cOpticalPMGroup, cOpticalPMIntervalMaxParam=cOpticalPMIntervalMaxParam, cOpticalMonIfTimeGroup=cOpticalMonIfTimeGroup, cOpticalPMCurrentUnavailSecs=cOpticalPMCurrentUnavailSecs, cOpticalMonIfTable=cOpticalMonIfTable, cOpticalParamHighWarningSev=cOpticalParamHighWarningSev, cOpticalParamThreshSource=cOpticalParamThreshSource, cOpticalMIBSeverityGroup=cOpticalMIBSeverityGroup, OpticalIfMonLocation=OpticalIfMonLocation, cOpticalMonThreshSourceGroup=cOpticalMonThreshSourceGroup, cOpticalPMCurrentPeriod=cOpticalPMCurrentPeriod, cOpticalMIBThresholdGroup=cOpticalMIBThresholdGroup, cOpticalMonitorMIBConformance=cOpticalMonitorMIBConformance, cOpticalPMCurrentMinParam=cOpticalPMCurrentMinParam, cOpticalPMIntervalEntry=cOpticalPMIntervalEntry, cOpticalParamLowWarningThresh=cOpticalParamLowWarningThresh, cOpticalMonitorMIBComplianceRev=cOpticalMonitorMIBComplianceRev, cOpticalParamLowWarningSev=cOpticalParamLowWarningSev, cOpticalPMIntervalParamType=cOpticalPMIntervalParamType, cOpticalPMIntervalUnavailSecs=cOpticalPMIntervalUnavailSecs, cOpticalPMCurrentEntry=cOpticalPMCurrentEntry, OpticalAlarmSeverityOrZero=OpticalAlarmSeverityOrZero, cOpticalParamLowAlarmThresh=cOpticalParamLowAlarmThresh, cOpticalPMCurrentMeanParam=cOpticalPMCurrentMeanParam, cOpticalPMIntervalNumber=cOpticalPMIntervalNumber, cOpticalMIBNotifyEnableGroup=cOpticalMIBNotifyEnableGroup, cOpticalMonIfEntry=cOpticalMonIfEntry, cOpticalPMCurrentMaxParam=cOpticalPMCurrentMaxParam, cOpticalPMIntervalPeriod=cOpticalPMIntervalPeriod, cOpticalPMIntervalMinParam=cOpticalPMIntervalMinParam, cOpticalParamAlarmCurMaxSev=cOpticalParamAlarmCurMaxSev, cOpticalPMCurrentParamType=cOpticalPMCurrentParamType, cOpticalParamLowAlarmSev=cOpticalParamLowAlarmSev, cOpticalParamAlarmCurMaxThresh=cOpticalParamAlarmCurMaxThresh, cOpticalParamHighAlarmSev=cOpticalParamHighAlarmSev, cOpticalMonitorMIBCompliances=cOpticalMonitorMIBCompliances, OpticalAlarmStatus=OpticalAlarmStatus, cOpticalMonDirection=cOpticalMonDirection, cOpticalMonitorMIBObjects=cOpticalMonitorMIBObjects, cOpticalParamAlarmLastChange=cOpticalParamAlarmLastChange, cOpticalPMIntervalDirection=cOpticalPMIntervalDirection, cOpticalParameterValue=cOpticalParameterValue, PYSNMP_MODULE_ID=ciscoOpticalMonitorMIB, cOpticalMonLocation=cOpticalMonLocation, cOpticalParamAlarmStatus=cOpticalParamAlarmStatus, cOpticalMonParameterStatus=cOpticalMonParameterStatus, cOpticalPMIntervalLocation=cOpticalPMIntervalLocation, OpticalParameterValue=OpticalParameterValue, cOpticalMonitorMIBGroups=cOpticalMonitorMIBGroups, cOpticalNotifyEnable=cOpticalNotifyEnable, cOpticalMIBPMGroup=cOpticalMIBPMGroup, cOpticalMon24HrValidIntervals=cOpticalMon24HrValidIntervals, cOpticalPMIntervalTable=cOpticalPMIntervalTable, cOpticalMonTable=cOpticalMonTable, cOpticalPMCurrentDirection=cOpticalPMCurrentDirection, cOpticalMon15MinValidIntervals=cOpticalMon15MinValidIntervals, cOpticalMonPollInterval=cOpticalMonPollInterval, OpticalAlarmSeverity=OpticalAlarmSeverity, cOpticalPMIntervalMeanParam=cOpticalPMIntervalMeanParam)
(object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, single_value_constraint, value_size_constraint, value_range_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'SingleValueConstraint', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsIntersection') (cisco_mgmt,) = mibBuilder.importSymbols('CISCO-SMI', 'ciscoMgmt') (if_index,) = mibBuilder.importSymbols('IF-MIB', 'ifIndex') (notification_group, object_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ObjectGroup', 'ModuleCompliance') (mib_scalar, mib_table, mib_table_row, mib_table_column, unsigned32, counter32, bits, gauge32, object_identity, ip_address, counter64, module_identity, integer32, time_ticks, notification_type, iso, mib_identifier) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Unsigned32', 'Counter32', 'Bits', 'Gauge32', 'ObjectIdentity', 'IpAddress', 'Counter64', 'ModuleIdentity', 'Integer32', 'TimeTicks', 'NotificationType', 'iso', 'MibIdentifier') (textual_convention, display_string, time_stamp) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString', 'TimeStamp') cisco_optical_monitor_mib = module_identity((1, 3, 6, 1, 4, 1, 9, 9, 264)) ciscoOpticalMonitorMIB.setRevisions(('2007-01-02 00:00', '2002-05-10 00:00')) if mibBuilder.loadTexts: ciscoOpticalMonitorMIB.setLastUpdated('200701020000Z') if mibBuilder.loadTexts: ciscoOpticalMonitorMIB.setOrganization('Cisco Systems, Inc.') class Opticalparametertype(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7)) named_values = named_values(('power', 1), ('acPower', 2), ('ambientTemp', 3), ('laserTemp', 4), ('biasCurrent', 5), ('peltierCurrent', 6), ('xcvrVoltage', 7)) class Opticalparametervalue(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + value_range_constraint(-1000000, 1000000) class Opticalifdirection(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3)) named_values = named_values(('receive', 1), ('transmit', 2), ('notApplicable', 3)) class Opticalifmonlocation(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3)) named_values = named_values(('beforeAdjustment', 1), ('afterAdjustment', 2), ('notApplicable', 3)) class Opticalalarmstatus(TextualConvention, OctetString): reference = 'Telcordia Technologies Generic Requirements GR-2918-CORE, Issue 4, December 1999, Section 8.11' status = 'current' subtype_spec = OctetString.subtypeSpec + value_size_constraint(1, 1) fixed_length = 1 class Opticalalarmseverity(TextualConvention, Integer32): reference = 'Telcordia Technologies Generic Requirements GR-474-CORE, Issue 1, December 1997, Section 2.2' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6)) named_values = named_values(('critical', 1), ('major', 2), ('minor', 3), ('notAlarmed', 4), ('notReported', 5), ('cleared', 6)) class Opticalalarmseverityorzero(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + value_range_constraint(0, 6) class Opticalpmperiod(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('fifteenMin', 1), ('twentyFourHour', 2)) c_optical_monitor_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 1)) c_optical_mon_group = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1)) c_optical_pm_group = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2)) c_optical_mon_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1)) if mibBuilder.loadTexts: cOpticalMonTable.setStatus('current') c_optical_mon_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMonDirection'), (0, 'CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMonLocation'), (0, 'CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMonParameterType')) if mibBuilder.loadTexts: cOpticalMonEntry.setStatus('current') c_optical_mon_direction = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 1), optical_if_direction()) if mibBuilder.loadTexts: cOpticalMonDirection.setStatus('current') c_optical_mon_location = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 2), optical_if_mon_location()) if mibBuilder.loadTexts: cOpticalMonLocation.setStatus('current') c_optical_mon_parameter_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 3), optical_parameter_type()) if mibBuilder.loadTexts: cOpticalMonParameterType.setStatus('current') c_optical_parameter_value = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 4), optical_parameter_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: cOpticalParameterValue.setStatus('current') c_optical_param_high_alarm_thresh = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 5), optical_parameter_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cOpticalParamHighAlarmThresh.setStatus('current') c_optical_param_high_alarm_sev = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 6), optical_alarm_severity()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cOpticalParamHighAlarmSev.setStatus('current') c_optical_param_high_warning_thresh = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 7), optical_parameter_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cOpticalParamHighWarningThresh.setStatus('current') c_optical_param_high_warning_sev = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 8), optical_alarm_severity()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cOpticalParamHighWarningSev.setStatus('current') c_optical_param_low_alarm_thresh = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 9), optical_parameter_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cOpticalParamLowAlarmThresh.setStatus('current') c_optical_param_low_alarm_sev = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 10), optical_alarm_severity()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cOpticalParamLowAlarmSev.setStatus('current') c_optical_param_low_warning_thresh = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 11), optical_parameter_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cOpticalParamLowWarningThresh.setStatus('current') c_optical_param_low_warning_sev = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 12), optical_alarm_severity()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cOpticalParamLowWarningSev.setStatus('current') c_optical_param_alarm_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 13), optical_alarm_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: cOpticalParamAlarmStatus.setStatus('current') c_optical_param_alarm_cur_max_thresh = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 14), optical_parameter_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: cOpticalParamAlarmCurMaxThresh.setStatus('current') c_optical_param_alarm_cur_max_sev = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 15), optical_alarm_severity()).setMaxAccess('readonly') if mibBuilder.loadTexts: cOpticalParamAlarmCurMaxSev.setStatus('current') c_optical_param_alarm_last_change = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 16), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: cOpticalParamAlarmLastChange.setStatus('current') c_optical_mon15_min_valid_intervals = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 17), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 96))).setMaxAccess('readonly') if mibBuilder.loadTexts: cOpticalMon15MinValidIntervals.setStatus('current') c_optical_mon24_hr_valid_intervals = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 18), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readonly') if mibBuilder.loadTexts: cOpticalMon24HrValidIntervals.setStatus('current') c_optical_param_thresh_source = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 19), bits().clone(namedValues=named_values(('highAlarmDefThresh', 0), ('highWarnDefThresh', 1), ('lowAlarmDefThresh', 2), ('lowWarnDefThresh', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cOpticalParamThreshSource.setStatus('current') c_optical_notify_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 2), optical_alarm_severity_or_zero()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cOpticalNotifyEnable.setStatus('current') c_optical_mon_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 3), bits().clone(namedValues=named_values(('all', 0)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cOpticalMonEnable.setStatus('current') c_optical_mon_poll_interval = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 4), unsigned32()).setUnits('minutes').setMaxAccess('readwrite') if mibBuilder.loadTexts: cOpticalMonPollInterval.setStatus('current') c_optical_mon_if_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 5)) if mibBuilder.loadTexts: cOpticalMonIfTable.setStatus('current') c_optical_mon_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 5, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: cOpticalMonIfEntry.setStatus('current') c_optical_mon_if_time_in_slot = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 5, 1, 1), unsigned32()).setUnits('seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: cOpticalMonIfTimeInSlot.setStatus('current') c_optical_pm_current_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1)) if mibBuilder.loadTexts: cOpticalPMCurrentTable.setStatus('current') c_optical_pm_current_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1)).setIndexNames((0, 'CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMCurrentPeriod'), (0, 'IF-MIB', 'ifIndex'), (0, 'CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMCurrentDirection'), (0, 'CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMCurrentLocation'), (0, 'CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMCurrentParamType')) if mibBuilder.loadTexts: cOpticalPMCurrentEntry.setStatus('current') c_optical_pm_current_period = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 1), optical_pm_period()) if mibBuilder.loadTexts: cOpticalPMCurrentPeriod.setStatus('current') c_optical_pm_current_direction = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 2), optical_if_direction()) if mibBuilder.loadTexts: cOpticalPMCurrentDirection.setStatus('current') c_optical_pm_current_location = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 3), optical_if_mon_location()) if mibBuilder.loadTexts: cOpticalPMCurrentLocation.setStatus('current') c_optical_pm_current_param_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 4), optical_parameter_type()) if mibBuilder.loadTexts: cOpticalPMCurrentParamType.setStatus('current') c_optical_pm_current_max_param = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 5), optical_parameter_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: cOpticalPMCurrentMaxParam.setStatus('current') c_optical_pm_current_min_param = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 6), optical_parameter_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: cOpticalPMCurrentMinParam.setStatus('current') c_optical_pm_current_mean_param = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 7), optical_parameter_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: cOpticalPMCurrentMeanParam.setStatus('current') c_optical_pm_current_unavail_secs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 86400))).setMaxAccess('readonly') if mibBuilder.loadTexts: cOpticalPMCurrentUnavailSecs.setStatus('current') c_optical_pm_interval_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2)) if mibBuilder.loadTexts: cOpticalPMIntervalTable.setStatus('current') c_optical_pm_interval_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1)).setIndexNames((0, 'CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMIntervalPeriod'), (0, 'CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMIntervalNumber'), (0, 'IF-MIB', 'ifIndex'), (0, 'CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMIntervalDirection'), (0, 'CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMIntervalLocation'), (0, 'CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMIntervalParamType')) if mibBuilder.loadTexts: cOpticalPMIntervalEntry.setStatus('current') c_optical_pm_interval_period = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 1), optical_pm_period()) if mibBuilder.loadTexts: cOpticalPMIntervalPeriod.setStatus('current') c_optical_pm_interval_number = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 96))) if mibBuilder.loadTexts: cOpticalPMIntervalNumber.setStatus('current') c_optical_pm_interval_direction = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 3), optical_if_direction()) if mibBuilder.loadTexts: cOpticalPMIntervalDirection.setStatus('current') c_optical_pm_interval_location = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 4), optical_if_mon_location()) if mibBuilder.loadTexts: cOpticalPMIntervalLocation.setStatus('current') c_optical_pm_interval_param_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 5), optical_parameter_type()) if mibBuilder.loadTexts: cOpticalPMIntervalParamType.setStatus('current') c_optical_pm_interval_max_param = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 6), optical_parameter_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: cOpticalPMIntervalMaxParam.setStatus('current') c_optical_pm_interval_min_param = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 7), optical_parameter_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: cOpticalPMIntervalMinParam.setStatus('current') c_optical_pm_interval_mean_param = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 8), optical_parameter_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: cOpticalPMIntervalMeanParam.setStatus('current') c_optical_pm_interval_unavail_secs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 86400))).setMaxAccess('readonly') if mibBuilder.loadTexts: cOpticalPMIntervalUnavailSecs.setStatus('current') c_optical_monitor_mib_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 2)) c_optical_mon_notification_prefix = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 2, 0)) c_optical_mon_parameter_status = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 264, 2, 0, 1)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParameterValue'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamAlarmStatus'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamAlarmCurMaxThresh'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamAlarmCurMaxSev'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamAlarmLastChange')) if mibBuilder.loadTexts: cOpticalMonParameterStatus.setStatus('current') c_optical_monitor_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 3)) c_optical_monitor_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 1)) c_optical_monitor_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2)) c_optical_monitor_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 1, 1)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBMonGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBThresholdGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBSeverityGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBPMGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBNotifyEnableGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBNotifGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): c_optical_monitor_mib_compliance = cOpticalMonitorMIBCompliance.setStatus('deprecated') c_optical_monitor_mib_compliance_rev = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 1, 2)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBMonGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBThresholdGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBSeverityGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBPMGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMonIfTimeGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBNotifyEnableGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBNotifGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBEnableConfigGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBIntervalConfigGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMonThreshSourceGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): c_optical_monitor_mib_compliance_rev = cOpticalMonitorMIBComplianceRev.setStatus('current') c_optical_mib_mon_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 1)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParameterValue')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): c_optical_mib_mon_group = cOpticalMIBMonGroup.setStatus('current') c_optical_mib_threshold_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 2)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamHighAlarmThresh'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamHighWarningThresh'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamLowAlarmThresh'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamLowWarningThresh'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamAlarmStatus'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamAlarmCurMaxThresh'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamAlarmLastChange')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): c_optical_mib_threshold_group = cOpticalMIBThresholdGroup.setStatus('current') c_optical_mib_severity_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 3)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamHighAlarmSev'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamHighWarningSev'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamLowAlarmSev'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamLowWarningSev'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamAlarmCurMaxSev')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): c_optical_mib_severity_group = cOpticalMIBSeverityGroup.setStatus('current') c_optical_mibpm_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 4)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMon15MinValidIntervals'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMon24HrValidIntervals'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMCurrentMaxParam'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMCurrentMinParam'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMCurrentMeanParam'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMCurrentUnavailSecs'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMIntervalMaxParam'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMIntervalMinParam'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMIntervalMeanParam'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMIntervalUnavailSecs')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): c_optical_mibpm_group = cOpticalMIBPMGroup.setStatus('current') c_optical_mib_notify_enable_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 5)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalNotifyEnable')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): c_optical_mib_notify_enable_group = cOpticalMIBNotifyEnableGroup.setStatus('current') c_optical_mib_notif_group = notification_group((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 6)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMonParameterStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): c_optical_mib_notif_group = cOpticalMIBNotifGroup.setStatus('current') c_optical_mon_if_time_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 7)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMonIfTimeInSlot')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): c_optical_mon_if_time_group = cOpticalMonIfTimeGroup.setStatus('current') c_optical_mib_enable_config_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 8)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMonEnable')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): c_optical_mib_enable_config_group = cOpticalMIBEnableConfigGroup.setStatus('current') c_optical_mib_interval_config_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 9)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMonPollInterval')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): c_optical_mib_interval_config_group = cOpticalMIBIntervalConfigGroup.setStatus('current') c_optical_mon_thresh_source_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 10)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamThreshSource')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): c_optical_mon_thresh_source_group = cOpticalMonThreshSourceGroup.setStatus('current') mibBuilder.exportSymbols('CISCO-OPTICAL-MONITOR-MIB', cOpticalParamHighAlarmThresh=cOpticalParamHighAlarmThresh, cOpticalParamHighWarningThresh=cOpticalParamHighWarningThresh, cOpticalPMCurrentLocation=cOpticalPMCurrentLocation, cOpticalMIBMonGroup=cOpticalMIBMonGroup, cOpticalMonNotificationPrefix=cOpticalMonNotificationPrefix, cOpticalMonGroup=cOpticalMonGroup, cOpticalMonIfTimeInSlot=cOpticalMonIfTimeInSlot, cOpticalMonitorMIBNotifications=cOpticalMonitorMIBNotifications, OpticalParameterType=OpticalParameterType, cOpticalMonEntry=cOpticalMonEntry, OpticalPMPeriod=OpticalPMPeriod, cOpticalMIBNotifGroup=cOpticalMIBNotifGroup, cOpticalMIBIntervalConfigGroup=cOpticalMIBIntervalConfigGroup, OpticalIfDirection=OpticalIfDirection, ciscoOpticalMonitorMIB=ciscoOpticalMonitorMIB, cOpticalMonParameterType=cOpticalMonParameterType, cOpticalPMCurrentTable=cOpticalPMCurrentTable, cOpticalMonEnable=cOpticalMonEnable, cOpticalMIBEnableConfigGroup=cOpticalMIBEnableConfigGroup, cOpticalMonitorMIBCompliance=cOpticalMonitorMIBCompliance, cOpticalPMGroup=cOpticalPMGroup, cOpticalPMIntervalMaxParam=cOpticalPMIntervalMaxParam, cOpticalMonIfTimeGroup=cOpticalMonIfTimeGroup, cOpticalPMCurrentUnavailSecs=cOpticalPMCurrentUnavailSecs, cOpticalMonIfTable=cOpticalMonIfTable, cOpticalParamHighWarningSev=cOpticalParamHighWarningSev, cOpticalParamThreshSource=cOpticalParamThreshSource, cOpticalMIBSeverityGroup=cOpticalMIBSeverityGroup, OpticalIfMonLocation=OpticalIfMonLocation, cOpticalMonThreshSourceGroup=cOpticalMonThreshSourceGroup, cOpticalPMCurrentPeriod=cOpticalPMCurrentPeriod, cOpticalMIBThresholdGroup=cOpticalMIBThresholdGroup, cOpticalMonitorMIBConformance=cOpticalMonitorMIBConformance, cOpticalPMCurrentMinParam=cOpticalPMCurrentMinParam, cOpticalPMIntervalEntry=cOpticalPMIntervalEntry, cOpticalParamLowWarningThresh=cOpticalParamLowWarningThresh, cOpticalMonitorMIBComplianceRev=cOpticalMonitorMIBComplianceRev, cOpticalParamLowWarningSev=cOpticalParamLowWarningSev, cOpticalPMIntervalParamType=cOpticalPMIntervalParamType, cOpticalPMIntervalUnavailSecs=cOpticalPMIntervalUnavailSecs, cOpticalPMCurrentEntry=cOpticalPMCurrentEntry, OpticalAlarmSeverityOrZero=OpticalAlarmSeverityOrZero, cOpticalParamLowAlarmThresh=cOpticalParamLowAlarmThresh, cOpticalPMCurrentMeanParam=cOpticalPMCurrentMeanParam, cOpticalPMIntervalNumber=cOpticalPMIntervalNumber, cOpticalMIBNotifyEnableGroup=cOpticalMIBNotifyEnableGroup, cOpticalMonIfEntry=cOpticalMonIfEntry, cOpticalPMCurrentMaxParam=cOpticalPMCurrentMaxParam, cOpticalPMIntervalPeriod=cOpticalPMIntervalPeriod, cOpticalPMIntervalMinParam=cOpticalPMIntervalMinParam, cOpticalParamAlarmCurMaxSev=cOpticalParamAlarmCurMaxSev, cOpticalPMCurrentParamType=cOpticalPMCurrentParamType, cOpticalParamLowAlarmSev=cOpticalParamLowAlarmSev, cOpticalParamAlarmCurMaxThresh=cOpticalParamAlarmCurMaxThresh, cOpticalParamHighAlarmSev=cOpticalParamHighAlarmSev, cOpticalMonitorMIBCompliances=cOpticalMonitorMIBCompliances, OpticalAlarmStatus=OpticalAlarmStatus, cOpticalMonDirection=cOpticalMonDirection, cOpticalMonitorMIBObjects=cOpticalMonitorMIBObjects, cOpticalParamAlarmLastChange=cOpticalParamAlarmLastChange, cOpticalPMIntervalDirection=cOpticalPMIntervalDirection, cOpticalParameterValue=cOpticalParameterValue, PYSNMP_MODULE_ID=ciscoOpticalMonitorMIB, cOpticalMonLocation=cOpticalMonLocation, cOpticalParamAlarmStatus=cOpticalParamAlarmStatus, cOpticalMonParameterStatus=cOpticalMonParameterStatus, cOpticalPMIntervalLocation=cOpticalPMIntervalLocation, OpticalParameterValue=OpticalParameterValue, cOpticalMonitorMIBGroups=cOpticalMonitorMIBGroups, cOpticalNotifyEnable=cOpticalNotifyEnable, cOpticalMIBPMGroup=cOpticalMIBPMGroup, cOpticalMon24HrValidIntervals=cOpticalMon24HrValidIntervals, cOpticalPMIntervalTable=cOpticalPMIntervalTable, cOpticalMonTable=cOpticalMonTable, cOpticalPMCurrentDirection=cOpticalPMCurrentDirection, cOpticalMon15MinValidIntervals=cOpticalMon15MinValidIntervals, cOpticalMonPollInterval=cOpticalMonPollInterval, OpticalAlarmSeverity=OpticalAlarmSeverity, cOpticalPMIntervalMeanParam=cOpticalPMIntervalMeanParam)
class MetaDato: def __init__(self, nombreTabla, campos): pass def calcularRegistros(self): pass def getRegistro(self): pass
class Metadato: def __init__(self, nombreTabla, campos): pass def calcular_registros(self): pass def get_registro(self): pass
nama = str(input("Masukkan Nama ")) nim = int(input("Masukkan NIM ")) uts = int(input("Masukkan Nilai UTS : ")) uas = int(input("Masukkan Nilai UAS : ")) hitungRataRata = (uts+uas)/2 if int(hitungRataRata) <= 40: nilai = 'E' elif int(hitungRataRata) <= 60: nilai = 'D' elif int(hitungRataRata) <= 70: nilai = 'C' elif int(hitungRataRata) <= 80: nilai = 'B' elif int(hitungRataRata) <= 100: nilai = 'A' print("Nama :",nama) print("NIM :",nim) print("Nilai rata-rata anda",int(hitungRataRata)) print("Anda mendapatkan Nilai",nilai)
nama = str(input('Masukkan Nama ')) nim = int(input('Masukkan NIM ')) uts = int(input('Masukkan Nilai UTS : ')) uas = int(input('Masukkan Nilai UAS : ')) hitung_rata_rata = (uts + uas) / 2 if int(hitungRataRata) <= 40: nilai = 'E' elif int(hitungRataRata) <= 60: nilai = 'D' elif int(hitungRataRata) <= 70: nilai = 'C' elif int(hitungRataRata) <= 80: nilai = 'B' elif int(hitungRataRata) <= 100: nilai = 'A' print('Nama :', nama) print('NIM :', nim) print('Nilai rata-rata anda', int(hitungRataRata)) print('Anda mendapatkan Nilai', nilai)
''' Pattern Plus star pattern: Enter number of rows: 5 + + + + +++++++++ + + + + ''' number_rows=int(input('Enter number of rows: ')) for row in range(1,number_rows+1): for column in range(1,number_rows+1): if number_rows%2!=0: if row==((number_rows//2)+1) or column==((number_rows//2)+1) : print('*',end=" ") else: print(' ',end=' ') else: if row==(((number_rows+1)//2)+1) or column==(((number_rows+1)//2)+1) : print('*',end=" ") else: print(' ',end=' ') print('\n',end='') #print(f'Row=> {row}, column=> {column}')
""" Pattern Plus star pattern: Enter number of rows: 5 + + + + +++++++++ + + + + """ number_rows = int(input('Enter number of rows: ')) for row in range(1, number_rows + 1): for column in range(1, number_rows + 1): if number_rows % 2 != 0: if row == number_rows // 2 + 1 or column == number_rows // 2 + 1: print('*', end=' ') else: print(' ', end=' ') elif row == (number_rows + 1) // 2 + 1 or column == (number_rows + 1) // 2 + 1: print('*', end=' ') else: print(' ', end=' ') print('\n', end='')
class Solution: def maxRotateFunction(self, A: List[int]) -> int: n = len(A) if n <= 1: return 0 if n == 2: return max(A) result = -inf for i in range(n): result = max(result, sum([((j + i) % n) * v for j, v in enumerate(A)])) return result
class Solution: def max_rotate_function(self, A: List[int]) -> int: n = len(A) if n <= 1: return 0 if n == 2: return max(A) result = -inf for i in range(n): result = max(result, sum([(j + i) % n * v for (j, v) in enumerate(A)])) return result
def demo_map(): num_list = list( range(1, 6) ) ## Example_#1: # compute x^2 for each element result = list( map( lambda x:x**2, num_list) ) # [1, 4, 9, 16, 25] print( result ) ## Example_#2: # compute 3x + 1 for each element result = list( map( lambda x:3*x+1, num_list) ) # [4, 7, 10, 13, 16] print( result ) ## Example_#3: # compute sqrt(x) for each element result = list( map( lambda x:x**(0.5), num_list) ) # [1.0, 1.4142135623730951, 1.7320508075688772, 2.0, 2.23606797749979] print( result ) str_list = ["apple", "banana", "cat", "dog", "elephant"] ## Example_#4: # Capitalize each word result = list( map( lambda x:x.capitalize(), str_list) ) # ['Apple', 'Banana', 'Cat', 'Dog', 'Elephant'] print( result ) ## Example_#5: # Transfer each word into uppercase result = list( map( lambda x:x.upper(), str_list) ) # ['APPLE', 'BANANA', 'CAT', 'DOG', 'ELEPHANT'] print( result ) def demo_input_with_map(): with open("input.txt", 'r') as f: input_content = f.readline() print("\ninput_content is:\n{}".format(input_content) ) # read one line, separator is white space set # convert each token to integer and save in list num_list = list( map(int, input_content.split() ) ) # [1, 2, 3, 4, 5] print( num_list ) input_content = f.readline() print("\ninput_content is:\n{}".format(input_content) ) # read one line, separator is ',' # convert each token to integer and save in list num_list = list( map(int, input_content.split(sep = ',') ) ) # [1, 2, 3, 4, 5] print( num_list ) input_content = f.readline() print("\ninput_content is:\n{}".format(input_content) ) # read one line, separator is white space # convert each token to integer and save in list str_list = list( map(str, input_content.split(sep = ' ') ) ) # ['apple', 'banana', 'cat', 'dog', 'elephant'] print( str_list ) if __name__ == '__main__': demo_map() demo_input_with_map()
def demo_map(): num_list = list(range(1, 6)) result = list(map(lambda x: x ** 2, num_list)) print(result) result = list(map(lambda x: 3 * x + 1, num_list)) print(result) result = list(map(lambda x: x ** 0.5, num_list)) print(result) str_list = ['apple', 'banana', 'cat', 'dog', 'elephant'] result = list(map(lambda x: x.capitalize(), str_list)) print(result) result = list(map(lambda x: x.upper(), str_list)) print(result) def demo_input_with_map(): with open('input.txt', 'r') as f: input_content = f.readline() print('\ninput_content is:\n{}'.format(input_content)) num_list = list(map(int, input_content.split())) print(num_list) input_content = f.readline() print('\ninput_content is:\n{}'.format(input_content)) num_list = list(map(int, input_content.split(sep=','))) print(num_list) input_content = f.readline() print('\ninput_content is:\n{}'.format(input_content)) str_list = list(map(str, input_content.split(sep=' '))) print(str_list) if __name__ == '__main__': demo_map() demo_input_with_map()
class Solution: def numWaterBottles(self, numBottles: int, numExchange: int) -> int: ans = numBottles // (numExchange - 1) + numBottles return ans if numBottles % (numExchange - 1) else ans - 1
class Solution: def num_water_bottles(self, numBottles: int, numExchange: int) -> int: ans = numBottles // (numExchange - 1) + numBottles return ans if numBottles % (numExchange - 1) else ans - 1
self.description = "Sysupgrade with a set of sync packages replacing a set of local ones" sp1 = pmpkg("pkg2") sp1.replaces = ["pkg1"] sp2 = pmpkg("pkg3") sp2.replaces = ["pkg1"] sp3 = pmpkg("pkg4") sp3.replaces = ["pkg1", "pkg0"] sp4 = pmpkg("pkg5") sp4.replaces = ["pkg0"] for p in sp1, sp2, sp3, sp4: self.addpkg2db("sync", p) lp1 = pmpkg("pkg1") lp2 = pmpkg("pkg0") for p in lp1, lp2: self.addpkg2db("local", p) self.args = "-Su" self.addrule("PACMAN_RETCODE=0") for p in lp1, lp2: self.addrule("!PKG_EXIST=%s" % p.name) for p in sp1, sp2, sp3, sp4: self.addrule("PKG_EXIST=%s" % p.name)
self.description = 'Sysupgrade with a set of sync packages replacing a set of local ones' sp1 = pmpkg('pkg2') sp1.replaces = ['pkg1'] sp2 = pmpkg('pkg3') sp2.replaces = ['pkg1'] sp3 = pmpkg('pkg4') sp3.replaces = ['pkg1', 'pkg0'] sp4 = pmpkg('pkg5') sp4.replaces = ['pkg0'] for p in (sp1, sp2, sp3, sp4): self.addpkg2db('sync', p) lp1 = pmpkg('pkg1') lp2 = pmpkg('pkg0') for p in (lp1, lp2): self.addpkg2db('local', p) self.args = '-Su' self.addrule('PACMAN_RETCODE=0') for p in (lp1, lp2): self.addrule('!PKG_EXIST=%s' % p.name) for p in (sp1, sp2, sp3, sp4): self.addrule('PKG_EXIST=%s' % p.name)
class NullDisplay: def __init__(self, board=None): pass def show_results(self): pass def draw(self): pass
class Nulldisplay: def __init__(self, board=None): pass def show_results(self): pass def draw(self): pass
n=int(input("How Many Time you Chack the Condition: ")) for i in range(1,n+1): num=int(input("Enter The Number To be Chack Even or Odd: ")) if(num%2==0): print("The Enterd Number is Even") else: print("The Enterd Number is odd")
n = int(input('How Many Time you Chack the Condition: ')) for i in range(1, n + 1): num = int(input('Enter The Number To be Chack Even or Odd: ')) if num % 2 == 0: print('The Enterd Number is Even') else: print('The Enterd Number is odd')
class ShareInstance(): __session = None @classmethod def share(cls, **kwargs): if not cls.__session: cls.__session = cls(**kwargs) return cls.__session # Expand dict class Dict(dict): def get(self, key, default=None, sep='.'): keys = key.split(sep) for i, key in enumerate(keys): try: value = self[key] if len(keys[i + 1:]) and isinstance(value, Dict): return value.get(sep.join(keys[i + 1:]), default=default, sep=sep) return value except KeyError: return self.dict_to_dict(default) def __getitem__(self, k): return self.dict_to_dict(super().__getitem__(k)) @staticmethod def dict_to_dict(value): return Dict(value) if isinstance(value, dict) else value class DataHelper: __origin: dict = {} __mappers: dict = {} def __init__(self, data: dict = {}, **kwargs): new_data = data.copy() new_data.update(kwargs) self.__generate_mappers() self.__origin = new_data for key, val in new_data.items(): if str(key) in self.__mappers: self.__dict__[self.__mappers[str(key)]] = val elif key in self.__annotations__: self.__dict__[key] = val def __generate_mappers(self): for key, val in self.__annotations__.items(): try: val = self.__getattribute__(key) if isinstance(val, str) and val.startswith('key:'): tags = val.split(';') self.__dict__[key] = None for tag in tags: tag_info = tag.split(':') if tag_info[0] == 'key': self.__mappers[tag_info[1]] = key elif tag_info[0] == 'default': self.__dict__[key] = tag_info[1] except (KeyError, AttributeError): pass def get_origin(self) -> dict: return self.__origin def __str__(self): return str(self.__class__) + ": " + str(self.__dict__)
class Shareinstance: __session = None @classmethod def share(cls, **kwargs): if not cls.__session: cls.__session = cls(**kwargs) return cls.__session class Dict(dict): def get(self, key, default=None, sep='.'): keys = key.split(sep) for (i, key) in enumerate(keys): try: value = self[key] if len(keys[i + 1:]) and isinstance(value, Dict): return value.get(sep.join(keys[i + 1:]), default=default, sep=sep) return value except KeyError: return self.dict_to_dict(default) def __getitem__(self, k): return self.dict_to_dict(super().__getitem__(k)) @staticmethod def dict_to_dict(value): return dict(value) if isinstance(value, dict) else value class Datahelper: __origin: dict = {} __mappers: dict = {} def __init__(self, data: dict={}, **kwargs): new_data = data.copy() new_data.update(kwargs) self.__generate_mappers() self.__origin = new_data for (key, val) in new_data.items(): if str(key) in self.__mappers: self.__dict__[self.__mappers[str(key)]] = val elif key in self.__annotations__: self.__dict__[key] = val def __generate_mappers(self): for (key, val) in self.__annotations__.items(): try: val = self.__getattribute__(key) if isinstance(val, str) and val.startswith('key:'): tags = val.split(';') self.__dict__[key] = None for tag in tags: tag_info = tag.split(':') if tag_info[0] == 'key': self.__mappers[tag_info[1]] = key elif tag_info[0] == 'default': self.__dict__[key] = tag_info[1] except (KeyError, AttributeError): pass def get_origin(self) -> dict: return self.__origin def __str__(self): return str(self.__class__) + ': ' + str(self.__dict__)
emoji_dict = { "anger": ["\U0001F92C", "data/emoji/emoji_u1f92c.png"], "disgust": ["\U0001F616", "data/emoji/emoji_u1f616.png"], "fear": ["\U0001F633", "data/emoji/emoji_u1f633.png"], "happy": ["\U0001F604", "data/emoji/emoji_u1f604.png"], "neutral": ["\U0001F612", "data/emoji/emoji_u1f612.png"], "sadness": ["\U0001F61E", "data/emoji/emoji_u1f61e.png"], "surprise": ["\U0001F62F", "data/emoji/emoji_u1f62f.png"], } emotions = ["anger", "disgust", "fear", "happy", "neutral", "sadness", "surprise"]
emoji_dict = {'anger': ['🤬', 'data/emoji/emoji_u1f92c.png'], 'disgust': ['😖', 'data/emoji/emoji_u1f616.png'], 'fear': ['😳', 'data/emoji/emoji_u1f633.png'], 'happy': ['😄', 'data/emoji/emoji_u1f604.png'], 'neutral': ['😒', 'data/emoji/emoji_u1f612.png'], 'sadness': ['😞', 'data/emoji/emoji_u1f61e.png'], 'surprise': ['😯', 'data/emoji/emoji_u1f62f.png']} emotions = ['anger', 'disgust', 'fear', 'happy', 'neutral', 'sadness', 'surprise']
# Section 5.16 snippets # Creating a Two-Dimensional List a = [[77, 68, 86, 73], [96, 87, 89, 81], [70, 90, 86, 81]] # Illustrating a Two-Dimensional List # Identifying the Elements in a Two-Dimensional List for row in a: for item in row: print(item, end=' ') print() # How the Nested Loops Execute for i, row in enumerate(a): for j, item in enumerate(row): print(f'a[{i}][{j}]={item} ', end=' ') print() ########################################################################## # (C) Copyright 2019 by Deitel & Associates, Inc. and # # Pearson Education, Inc. All Rights Reserved. # # # # DISCLAIMER: The authors and publisher of this book have used their # # best efforts in preparing the book. These efforts include the # # development, research, and testing of the theories and programs # # to determine their effectiveness. The authors and publisher make # # no warranty of any kind, expressed or implied, with regard to these # # programs or to the documentation contained in these books. The authors # # and publisher shall not be liable in any event for incidental or # # consequential damages in connection with, or arising out of, the # # furnishing, performance, or use of these programs. # ##########################################################################
a = [[77, 68, 86, 73], [96, 87, 89, 81], [70, 90, 86, 81]] for row in a: for item in row: print(item, end=' ') print() for (i, row) in enumerate(a): for (j, item) in enumerate(row): print(f'a[{i}][{j}]={item} ', end=' ') print()
package_name = 'cms_search' name = 'django-cms-search' author = 'Benjamin Wohlwend' author_email = 'piquadrat@gmail.com' description = "An extension to django CMS to provide multilingual Haystack indexes" version = __import__(package_name).__version__ project_url = 'http://github.com/piquadrat/%s' % name license = 'BSD'
package_name = 'cms_search' name = 'django-cms-search' author = 'Benjamin Wohlwend' author_email = 'piquadrat@gmail.com' description = 'An extension to django CMS to provide multilingual Haystack indexes' version = __import__(package_name).__version__ project_url = 'http://github.com/piquadrat/%s' % name license = 'BSD'
# Space: O(1) # Time: O(n) # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def addOneRow(self, root, v, d): if d==1: new_node = TreeNode(v) new_node.left = root return new_node def helper(root, cur_level, required_level, required_val, direction): if root is None and cur_level == required_level: new_node = TreeNode(required_val) return new_node if root is None: return root if cur_level == required_level: new_node = TreeNode(required_val) if direction == 'left': new_node.left = root if direction == 'right': new_node.right = root return new_node root.left = helper(root.left, cur_level + 1, required_level, required_val, 'left') root.right = helper(root.right, cur_level + 1, required_level, required_val, 'right') return root return helper(root, 1, d, v, '')
class Solution: def add_one_row(self, root, v, d): if d == 1: new_node = tree_node(v) new_node.left = root return new_node def helper(root, cur_level, required_level, required_val, direction): if root is None and cur_level == required_level: new_node = tree_node(required_val) return new_node if root is None: return root if cur_level == required_level: new_node = tree_node(required_val) if direction == 'left': new_node.left = root if direction == 'right': new_node.right = root return new_node root.left = helper(root.left, cur_level + 1, required_level, required_val, 'left') root.right = helper(root.right, cur_level + 1, required_level, required_val, 'right') return root return helper(root, 1, d, v, '')
''' Selection sort is an O(n^2) sorting algorithm. The logic is to find the smallest element in the unsorted portion of the array and swapping it in the right position. In the worst-case it takes n(n+1)/2 accesses. ''' def selsort(A,l,r): ''' Convention is that array elements are indexed from l to r-1.''' for i in range(l,r-1): next_smallest_idx = i for j in range(i+1,r): if A[j] < A[next_smallest_idx] : next_smallest_idx = j A[i],A[next_smallest_idx] = A[next_smallest_idx],A[i] return A def main(): try : A = list(map(int,input("Enter array (space-separated) : ").split())) # Enter array. Split to get individual values. Map each elem to int type. # Convert map object to list except : print("Wrong input entered. Aborting ...") exit() A_sorted = selsort(A,0,len(A)) print(A_sorted) if sorted(A) != A_sorted : print("\Wrong output.\n") if __name__ == "__main__" : main()
""" Selection sort is an O(n^2) sorting algorithm. The logic is to find the smallest element in the unsorted portion of the array and swapping it in the right position. In the worst-case it takes n(n+1)/2 accesses. """ def selsort(A, l, r): """ Convention is that array elements are indexed from l to r-1.""" for i in range(l, r - 1): next_smallest_idx = i for j in range(i + 1, r): if A[j] < A[next_smallest_idx]: next_smallest_idx = j (A[i], A[next_smallest_idx]) = (A[next_smallest_idx], A[i]) return A def main(): try: a = list(map(int, input('Enter array (space-separated) : ').split())) except: print('Wrong input entered. Aborting ...') exit() a_sorted = selsort(A, 0, len(A)) print(A_sorted) if sorted(A) != A_sorted: print('\\Wrong output.\n') if __name__ == '__main__': main()
def dominator(arr): res = 0 if len(arr) == 0: return -1 for x in arr: if arr.count(x) > len(arr) / 2: res = x break else: res = -1 return res
def dominator(arr): res = 0 if len(arr) == 0: return -1 for x in arr: if arr.count(x) > len(arr) / 2: res = x break else: res = -1 return res
def move(instruction, x, y, w_x, w_y): if instruction[0] == 'N': w_y += instruction[1] if instruction[0] == 'S': w_y -= instruction[1] if instruction[0] == 'E': w_x += instruction[1] if instruction[0] == 'W': w_x -= instruction[1] if instruction[0] in ['L', 'R']: w_x, w_y = turn(w_x, w_y, instruction[0], instruction[1]) if instruction[0] == 'F': x, y = move_forward(instruction[1], x, y, w_x, w_y) return x, y, w_x, w_y def turn(w_x, w_y, direction_to_switch, degrees): count_direction_switches = degrees // 90 if direction_to_switch == 'L': for _ in range(count_direction_switches): w_x, w_y = -w_y, w_x elif direction_to_switch == 'R': for _ in range(count_direction_switches): w_x, w_y = w_y, -w_x return w_x, w_y def move_forward(value, x, y, w_x, w_y): return x + value * w_x, y + value * w_y def part2(instructions): x = 0 y = 0 w_x = 10 w_y = 1 for instruction in instructions: x, y, w_x, w_y = move(instruction, x, y, w_x, w_y) print('Part 2:', abs(x) + abs(y)) if __name__ == '__main__': with open('in.txt') as file: instructions = [[line[0], int(line[1:])] for line in file.read().splitlines()] part2(instructions)
def move(instruction, x, y, w_x, w_y): if instruction[0] == 'N': w_y += instruction[1] if instruction[0] == 'S': w_y -= instruction[1] if instruction[0] == 'E': w_x += instruction[1] if instruction[0] == 'W': w_x -= instruction[1] if instruction[0] in ['L', 'R']: (w_x, w_y) = turn(w_x, w_y, instruction[0], instruction[1]) if instruction[0] == 'F': (x, y) = move_forward(instruction[1], x, y, w_x, w_y) return (x, y, w_x, w_y) def turn(w_x, w_y, direction_to_switch, degrees): count_direction_switches = degrees // 90 if direction_to_switch == 'L': for _ in range(count_direction_switches): (w_x, w_y) = (-w_y, w_x) elif direction_to_switch == 'R': for _ in range(count_direction_switches): (w_x, w_y) = (w_y, -w_x) return (w_x, w_y) def move_forward(value, x, y, w_x, w_y): return (x + value * w_x, y + value * w_y) def part2(instructions): x = 0 y = 0 w_x = 10 w_y = 1 for instruction in instructions: (x, y, w_x, w_y) = move(instruction, x, y, w_x, w_y) print('Part 2:', abs(x) + abs(y)) if __name__ == '__main__': with open('in.txt') as file: instructions = [[line[0], int(line[1:])] for line in file.read().splitlines()] part2(instructions)
DEBUG = True TEMPLATE_DEBUG = True # THIS MUST BE HTTPS DOMAIN_NAME="https://52.34.71.182:8000" #CSRF_COOKIE_SECURE = False #SESSION_COOKIE_SECURE = False DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'expfactory.db', } } #DATABASES = { # 'default': { # 'ENGINE': 'django.db.backends.postgresql_psycopg2', # 'NAME': 'expfactory', # 'USER': 'expfactory', # 'PASSWORD':'expfactory', # 'HOST': 'localhost', # 'PORT': '5432', # } #} STATIC_ROOT = 'assets/' STATIC_URL = '/assets/' MEDIA_ROOT = 'static/' MEDIA_URL = '/static/'
debug = True template_debug = True domain_name = 'https://52.34.71.182:8000' databases = {'default': {'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'expfactory.db'}} static_root = 'assets/' static_url = '/assets/' media_root = 'static/' media_url = '/static/'
# Writes down all combinations of plates COMBINATIONS = [1.25, 2.5, 5, 10, 25] # 1 kg is 2.20... pounds KILOS_POUNDS_CONVERSION_RATE = 2.20462 # Function that asks for str input def get_input_in_kilos(): return input("Enter weight in kilos: ") # function that converts punds to kilos def convert_kilos_to_pounds(kilos): return kilos * KILOS_POUNDS_CONVERSION_RATE def break_down_into_combinations(weight, options): # An empty list combination = [] # Variable difference is the same as weight difference = weight # variable which sorts the options in reverse sorted_options = sorted(options, reverse=True) # variable which is equal to zero current_option_index = 0 # while loop which will keep looping as long as current_option_index is bigger than length of sorted_options while current_option_index < len(sorted_options): # Variable which says current_option is 0 in the sorted list current_option = sorted_options[current_option_index] # if current_option is less than or equal the weight if current_option <= difference: # then remove and apply difference fomr current_option difference -= current_option # Then append to combination the current option combination.append(current_option) # Else just take add and apply 1 to current_option_index else: current_option_index += 1 return combination def main(): kilos = int(get_input_in_kilos()) pounds = convert_kilos_to_pounds(kilos) weights = break_down_into_combinations(pounds, COMBINATIONS) print(weights) main()
combinations = [1.25, 2.5, 5, 10, 25] kilos_pounds_conversion_rate = 2.20462 def get_input_in_kilos(): return input('Enter weight in kilos: ') def convert_kilos_to_pounds(kilos): return kilos * KILOS_POUNDS_CONVERSION_RATE def break_down_into_combinations(weight, options): combination = [] difference = weight sorted_options = sorted(options, reverse=True) current_option_index = 0 while current_option_index < len(sorted_options): current_option = sorted_options[current_option_index] if current_option <= difference: difference -= current_option combination.append(current_option) else: current_option_index += 1 return combination def main(): kilos = int(get_input_in_kilos()) pounds = convert_kilos_to_pounds(kilos) weights = break_down_into_combinations(pounds, COMBINATIONS) print(weights) main()
class Fila: def __init__(self, maxx): self.limit = maxx self.elementos = [0] * maxx self.ini = -1 self.end = -1 self._size = 0 self.offset = -1 def __len__(self): return self._size def insert(self, elem): if ((self._size) >= self.limit) or (self.ini - self.end - 1 == 0): raise IndexError("Fila cheia!!") else: if (self.ini < 0): self.ini = 0 self.end = 0 self.offset = 0 elif (self.end < self.limit): self.end += 1 self.offset = self.end if (self.offset > self.limit - 1): self.offset = 0 self.end = self.offset else: self.offset += 1 self.end = self.offset self._size += 1 self.elementos[self.offset] = elem def remove(self): if (self._size <=0): print("Lista vazia") else: if (self.ini <= self.limit - 1): data = self.elementos[self.ini] self.elementos[self.ini] = 0 self.ini += 1 else: data = self.elementos[self.ini] self.ini = 0 self._size -=1 return data def consult(self): if (self._size > 0): return self.elementos[self.ini] def destroi(self): self.elementos = [0] * self.limit self.ini = -1 self.end = -1 self._size = 0 self.offset = -1 f = Fila(3) f.insert(23) f.insert(80) f.insert(10) f.insert(10)
class Fila: def __init__(self, maxx): self.limit = maxx self.elementos = [0] * maxx self.ini = -1 self.end = -1 self._size = 0 self.offset = -1 def __len__(self): return self._size def insert(self, elem): if self._size >= self.limit or self.ini - self.end - 1 == 0: raise index_error('Fila cheia!!') else: if self.ini < 0: self.ini = 0 self.end = 0 self.offset = 0 elif self.end < self.limit: self.end += 1 self.offset = self.end if self.offset > self.limit - 1: self.offset = 0 self.end = self.offset else: self.offset += 1 self.end = self.offset self._size += 1 self.elementos[self.offset] = elem def remove(self): if self._size <= 0: print('Lista vazia') else: if self.ini <= self.limit - 1: data = self.elementos[self.ini] self.elementos[self.ini] = 0 self.ini += 1 else: data = self.elementos[self.ini] self.ini = 0 self._size -= 1 return data def consult(self): if self._size > 0: return self.elementos[self.ini] def destroi(self): self.elementos = [0] * self.limit self.ini = -1 self.end = -1 self._size = 0 self.offset = -1 f = fila(3) f.insert(23) f.insert(80) f.insert(10) f.insert(10)
# O(N^2) def can_make_target1(arr, target): for i in range(len(arr)): for j in range(i, len(arr)): if arr[i] + arr[j] == target: return True return False # O(N) def can_make_target2(arr, target): looking_for = set() for a in arr: if a in looking_for: return True else: looking_for.add(target - a) return False
def can_make_target1(arr, target): for i in range(len(arr)): for j in range(i, len(arr)): if arr[i] + arr[j] == target: return True return False def can_make_target2(arr, target): looking_for = set() for a in arr: if a in looking_for: return True else: looking_for.add(target - a) return False
# A somewhat special node as it is designed for use in skip list, in addition to having two pointers \ # it has three (next, previous and down). # This class is used by SortedLinkList, but is somewhat different to a regular link list node. class Node: def __init__(self, value, next=None, down=None, prev=None): self.value = value self.next = next self.down = down self.prev = prev
class Node: def __init__(self, value, next=None, down=None, prev=None): self.value = value self.next = next self.down = down self.prev = prev
expected_output = { 'rib_table': { 'ipv4': { 'num_multicast_tables': 1, 'num_unicast_tables': 3, 'total_multicast_prefixes': 0, 'total_unicast_prefixes': 14 } } }
expected_output = {'rib_table': {'ipv4': {'num_multicast_tables': 1, 'num_unicast_tables': 3, 'total_multicast_prefixes': 0, 'total_unicast_prefixes': 14}}}
# # @lc app=leetcode id=993 lang=python3 # # [993] Cousins in Binary Tree # # @lc code=start # Definition for a binary tree node. class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def isCousins(self, root: TreeNode, x: int, y: int): pre = 0 curval = 0 self.x = x self.y = y self.xdetail = [] self.ydetail = [] self.finder(0, 0, root) if not self.xdetail or not self.ydetail: return False if self.xdetail[0] == self.ydetail[0]: return False if self.xdetail[1] != self.ydetail[1]: return False return True def finder(self, pre, level, node): if not node: return if not self.xdetail or not self.ydetail: if node.val == self.x: self.xdetail = [pre, level] elif node.val == self.y: self.ydetail = [pre, level] else: self.finder(node.val, level + 1, node.left) self.finder(node.val, level + 1, node.right) # @lc code=end
class Treenode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def is_cousins(self, root: TreeNode, x: int, y: int): pre = 0 curval = 0 self.x = x self.y = y self.xdetail = [] self.ydetail = [] self.finder(0, 0, root) if not self.xdetail or not self.ydetail: return False if self.xdetail[0] == self.ydetail[0]: return False if self.xdetail[1] != self.ydetail[1]: return False return True def finder(self, pre, level, node): if not node: return if not self.xdetail or not self.ydetail: if node.val == self.x: self.xdetail = [pre, level] elif node.val == self.y: self.ydetail = [pre, level] else: self.finder(node.val, level + 1, node.left) self.finder(node.val, level + 1, node.right)
class StringParser: def __init__(self): self.parse_trees = [] def register(self,tree): self.parse_trees.append(tree) def parse(self, string): for tree in self.parse_trees: return tree.parse(string)
class Stringparser: def __init__(self): self.parse_trees = [] def register(self, tree): self.parse_trees.append(tree) def parse(self, string): for tree in self.parse_trees: return tree.parse(string)
def merge(pairs): pairs = sorted(pairs) j,tmp = 0, [] while j < len(pairs): a = pairs[j] if j < len(pairs) - 1: b = pairs[j+1] if a[1] == b[0]: a = (a[0], b[1]) j += 1 tmp += [a] j += 1 return tmp print(merge(sorted(set([(1,2),(2,3),(4,5),(5,6),(1,2)]))))
def merge(pairs): pairs = sorted(pairs) (j, tmp) = (0, []) while j < len(pairs): a = pairs[j] if j < len(pairs) - 1: b = pairs[j + 1] if a[1] == b[0]: a = (a[0], b[1]) j += 1 tmp += [a] j += 1 return tmp print(merge(sorted(set([(1, 2), (2, 3), (4, 5), (5, 6), (1, 2)]))))
def corner_move(game): return list(set(game.possible_moves()) & {1, 3, 7, 9}) def center_move(game): return list(set(game.possible_moves()) & {5}) def side_move(game): return list(set(game.possible_moves()) & {2, 4, 6, 8}) def test_if_win_is_possible(game, to_check=None): if to_check is None: to_check = game.active_player possible_moves = [] for move in game.possible_moves(): game.make_move(move, to_check) if game.check_winner(to_check): possible_moves.append(move) game.unmake_move(move) return possible_moves def test_if_fork_is_possible(game, to_check=None): if to_check is None: to_check = game.active_player possible_moves = [] for move in game.possible_moves(): game.make_move(move, to_check) if len(test_if_win_is_possible(game, to_check)) > 1: possible_moves.append(move) game.unmake_move(move) return possible_moves def force_player_to_block(game): possible_moves = [] for move in game.possible_moves(): game.make_move(move) possible_win_moves = test_if_win_is_possible(game, game.COMPUTER) if possible_win_moves: game.make_move(possible_win_moves[0], game.PLAYER) if len(test_if_win_is_possible(game, game.PLAYER)) < 2: possible_moves.append(move) game.unmake_move(possible_win_moves[0]) game.unmake_move(move) return possible_moves # ai functions: def corner_center_side(game): possible_moves = corner_move(game) if len(possible_moves) > 0: return possible_moves possible_moves = center_move(game) if len(possible_moves) > 0: return possible_moves possible_moves = side_move(game) if len(possible_moves) > 0: return possible_moves def center_corner_side(game): possible_moves = center_move(game) if len(possible_moves) > 0: return possible_moves possible_moves = corner_move(game) if len(possible_moves) > 0: return possible_moves possible_moves = side_move(game) if len(possible_moves) > 0: return possible_moves
def corner_move(game): return list(set(game.possible_moves()) & {1, 3, 7, 9}) def center_move(game): return list(set(game.possible_moves()) & {5}) def side_move(game): return list(set(game.possible_moves()) & {2, 4, 6, 8}) def test_if_win_is_possible(game, to_check=None): if to_check is None: to_check = game.active_player possible_moves = [] for move in game.possible_moves(): game.make_move(move, to_check) if game.check_winner(to_check): possible_moves.append(move) game.unmake_move(move) return possible_moves def test_if_fork_is_possible(game, to_check=None): if to_check is None: to_check = game.active_player possible_moves = [] for move in game.possible_moves(): game.make_move(move, to_check) if len(test_if_win_is_possible(game, to_check)) > 1: possible_moves.append(move) game.unmake_move(move) return possible_moves def force_player_to_block(game): possible_moves = [] for move in game.possible_moves(): game.make_move(move) possible_win_moves = test_if_win_is_possible(game, game.COMPUTER) if possible_win_moves: game.make_move(possible_win_moves[0], game.PLAYER) if len(test_if_win_is_possible(game, game.PLAYER)) < 2: possible_moves.append(move) game.unmake_move(possible_win_moves[0]) game.unmake_move(move) return possible_moves def corner_center_side(game): possible_moves = corner_move(game) if len(possible_moves) > 0: return possible_moves possible_moves = center_move(game) if len(possible_moves) > 0: return possible_moves possible_moves = side_move(game) if len(possible_moves) > 0: return possible_moves def center_corner_side(game): possible_moves = center_move(game) if len(possible_moves) > 0: return possible_moves possible_moves = corner_move(game) if len(possible_moves) > 0: return possible_moves possible_moves = side_move(game) if len(possible_moves) > 0: return possible_moves
class Solution: def maxProfit(self, prices) -> int: ''' Notice that we can complete as many transactions as we like. Therefore, a greedy rule are easily came out, that we buy it on the low price day which compares with the next day and sell it on the high price day which compares with next day. ''' last_buy_day=0 is_buy = False profit = 0 for i in range(len(prices)): if i == len(prices)-1: if is_buy: profit += prices[i] - prices[last_buy_day] elif prices[i] < prices[i+1] and not is_buy: last_buy_day = i is_buy = True elif prices[i] > prices[i+1] and is_buy: profit += prices[i] - prices[last_buy_day] is_buy = False return profit print(Solution().maxProfit([1,2,3,4,5]))
class Solution: def max_profit(self, prices) -> int: """ Notice that we can complete as many transactions as we like. Therefore, a greedy rule are easily came out, that we buy it on the low price day which compares with the next day and sell it on the high price day which compares with next day. """ last_buy_day = 0 is_buy = False profit = 0 for i in range(len(prices)): if i == len(prices) - 1: if is_buy: profit += prices[i] - prices[last_buy_day] elif prices[i] < prices[i + 1] and (not is_buy): last_buy_day = i is_buy = True elif prices[i] > prices[i + 1] and is_buy: profit += prices[i] - prices[last_buy_day] is_buy = False return profit print(solution().maxProfit([1, 2, 3, 4, 5]))
def part1(): values = [i.split(" ") for i in open("input.txt").read().split("\n")] lights = [[False]*50 ,[False]*50,[False]*50,[False]*50,[False]*50,[False]*50] for command in values: if command[0] == "rect": length, height = (int(i) for i in command[1].split("x")) for i in range(length): for j in range(height): lights[j][i] = True pass elif command[1] == "column": column, rotation = int(command[2].split("=")[1]), int(command[-1]) for _ in range(rotation): stored = lights[-1][column] for i in range(5,0,-1): lights[i][column] = lights[i-1][column] lights[0][column] = stored else: row, rotation = int(command[2].split("=")[1]), int(command[-1]) for _ in range(rotation): stored = lights[row][-1] for i in range(49, 0, -1): lights[row][i] = lights[row][i-1] lights[row][0] = stored total = 0 for i in lights: for j in i: total += j return total def part2(): values = [i.split(" ") for i in open("input.txt").read().split("\n")] lights = [[False]*50 ,[False]*50,[False]*50,[False]*50,[False]*50,[False]*50] for command in values: if command[0] == "rect": length, height = (int(i) for i in command[1].split("x")) for i in range(length): for j in range(height): lights[j][i] = True pass elif command[1] == "column": column, rotation = int(command[2].split("=")[1]), int(command[-1]) for _ in range(rotation): stored = lights[-1][column] for i in range(5,0,-1): lights[i][column] = lights[i-1][column] lights[0][column] = stored else: row, rotation = int(command[2].split("=")[1]), int(command[-1]) for _ in range(rotation): stored = lights[row][-1] for i in range(49, 0, -1): lights[row][i] = lights[row][i-1] lights[row][0] = stored total = 0 for i in lights: toPrint = "" count = 0 for j in i: toPrint += "#" if j else " " count = (count+1) % 5 if count == 0: toPrint += " " print(toPrint) return total print(f"Answer to part 1: {part1()}") print(f"Answer to part 2: {part2()}")
def part1(): values = [i.split(' ') for i in open('input.txt').read().split('\n')] lights = [[False] * 50, [False] * 50, [False] * 50, [False] * 50, [False] * 50, [False] * 50] for command in values: if command[0] == 'rect': (length, height) = (int(i) for i in command[1].split('x')) for i in range(length): for j in range(height): lights[j][i] = True pass elif command[1] == 'column': (column, rotation) = (int(command[2].split('=')[1]), int(command[-1])) for _ in range(rotation): stored = lights[-1][column] for i in range(5, 0, -1): lights[i][column] = lights[i - 1][column] lights[0][column] = stored else: (row, rotation) = (int(command[2].split('=')[1]), int(command[-1])) for _ in range(rotation): stored = lights[row][-1] for i in range(49, 0, -1): lights[row][i] = lights[row][i - 1] lights[row][0] = stored total = 0 for i in lights: for j in i: total += j return total def part2(): values = [i.split(' ') for i in open('input.txt').read().split('\n')] lights = [[False] * 50, [False] * 50, [False] * 50, [False] * 50, [False] * 50, [False] * 50] for command in values: if command[0] == 'rect': (length, height) = (int(i) for i in command[1].split('x')) for i in range(length): for j in range(height): lights[j][i] = True pass elif command[1] == 'column': (column, rotation) = (int(command[2].split('=')[1]), int(command[-1])) for _ in range(rotation): stored = lights[-1][column] for i in range(5, 0, -1): lights[i][column] = lights[i - 1][column] lights[0][column] = stored else: (row, rotation) = (int(command[2].split('=')[1]), int(command[-1])) for _ in range(rotation): stored = lights[row][-1] for i in range(49, 0, -1): lights[row][i] = lights[row][i - 1] lights[row][0] = stored total = 0 for i in lights: to_print = '' count = 0 for j in i: to_print += '#' if j else ' ' count = (count + 1) % 5 if count == 0: to_print += ' ' print(toPrint) return total print(f'Answer to part 1: {part1()}') print(f'Answer to part 2: {part2()}')
# https://blog.csdn.net/Violet_ljp/article/details/80556460 # https://www.youtube.com/watch?v=pcKY4hjDrxk # https://github.com/minsuk-heo/problemsolving/tree/master/graph def bfs(graph, start): vertexList, edgeList = graph visitedList = [] queue = [start] adjacencyList = [[] for vertex in vertexList] # fill adjacencyList from graph # adjacency is the combination of array and linked list for edge in edgeList: # edge is each edgelist tuple # edge[0] is the vertex that leading the connection with other vertices adjacencyList[edge[0]].append(edge[1]) # bfs # the property of queue is FIFO # if queue is not empty while queue: # first pop out the queue value and regard it as the vertex of adjacencylist current = queue.pop() # find all nerghbors in adjacency list for neighbor in adjacencyList[current]: # use visitedList as flag to denote the neighbor access or not if not neighbor in visitedList: queue.insert(0,neighbor) # add queue's popped element to the final bfs spanning tree visitedList.append(current) return visitedList # test vertexList = ['A', 'B', 'C', 'D', 'E', 'F', 'G'] edgeList = [(0,1), (1,2), (1,3), (3,4), (4,5), (1,6)] graphs = (vertexList, edgeList) print(bfs(graphs, 0))
def bfs(graph, start): (vertex_list, edge_list) = graph visited_list = [] queue = [start] adjacency_list = [[] for vertex in vertexList] for edge in edgeList: adjacencyList[edge[0]].append(edge[1]) while queue: current = queue.pop() for neighbor in adjacencyList[current]: if not neighbor in visitedList: queue.insert(0, neighbor) visitedList.append(current) return visitedList vertex_list = ['A', 'B', 'C', 'D', 'E', 'F', 'G'] edge_list = [(0, 1), (1, 2), (1, 3), (3, 4), (4, 5), (1, 6)] graphs = (vertexList, edgeList) print(bfs(graphs, 0))
######################## BEGIN LICENSE BLOCK ######################## # The Original Code is Mozilla Communicator client code. # # The Initial Developer of the Original Code is # Netscape Communications Corporation. # Portions created by the Initial Developer are Copyright (C) 1998 # the Initial Developer. All Rights Reserved. # # Contributor(s): # Mark Pilgrim - port to Python # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library 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 # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA # 02110-1301 USA ######################### END LICENSE BLOCK ######################### # GB2312 most frequently used character table # # Char to FreqOrder table , from hz6763 # 512 --> 0.79 -- 0.79 # 1024 --> 0.92 -- 0.13 # 2048 --> 0.98 -- 0.06 # 6768 --> 1.00 -- 0.02 # # Ideal Distribution Ratio = 0.79135/(1-0.79135) = 3.79 # Random Distribution Ration = 512 / (3755 - 512) = 0.157 # # Typical Distribution Ratio about 25% of Ideal one, still much higher that RDR GB2312_TYPICAL_DISTRIBUTION_RATIO = 0.9 GB2312_TABLE_SIZE = 3760 GB2312CharToFreqOrder = ( \ 1671, 749, 1443, 2364, 3924, 3807, 2330, 3921, 1704, 3463, 2691, 1511, 1515, 572, 3191, 2205, 2361, 224, 2558, 479, 1711, 963, 3162, 440, 4060, 1905, 2966, 2947, 3580, 2647, 3961, 3842, 2204, 869, 4207, 970, 2678, 5626, 2944, 2956, 1479, 4048, 514, 3595, 588, 1346, 2820, 3409, 249, 4088, 1746, 1873, 2047, 1774, 581, 1813, 358, 1174, 3590, 1014, 1561, 4844, 2245, 670, 1636, 3112, 889, 1286, 953, 556, 2327, 3060, 1290, 3141, 613, 185, 3477, 1367, 850, 3820, 1715, 2428, 2642, 2303, 2732, 3041, 2562, 2648, 3566, 3946, 1349, 388, 3098, 2091, 1360, 3585, 152, 1687, 1539, 738, 1559, 59, 1232, 2925, 2267, 1388, 1249, 1741, 1679, 2960, 151, 1566, 1125, 1352, 4271, 924, 4296, 385, 3166, 4459, 310, 1245, 2850, 70, 3285, 2729, 3534, 3575, 2398, 3298, 3466, 1960, 2265, 217, 3647, 864, 1909, 2084, 4401, 2773, 1010, 3269, 5152, 853, 3051, 3121, 1244, 4251, 1895, 364, 1499, 1540, 2313, 1180, 3655, 2268, 562, 715, 2417, 3061, 544, 336, 3768, 2380, 1752, 4075, 950, 280, 2425, 4382, 183, 2759, 3272, 333, 4297, 2155, 1688, 2356, 1444, 1039, 4540, 736, 1177, 3349, 2443, 2368, 2144, 2225, 565, 196, 1482, 3406, 927, 1335, 4147, 692, 878, 1311, 1653, 3911, 3622, 1378, 4200, 1840, 2969, 3149, 2126, 1816, 2534, 1546, 2393, 2760, 737, 2494, 13, 447, 245, 2747, 38, 2765, 2129, 2589, 1079, 606, 360, 471, 3755, 2890, 404, 848, 699, 1785, 1236, 370, 2221, 1023, 3746, 2074, 2026, 2023, 2388, 1581, 2119, 812, 1141, 3091, 2536, 1519, 804, 2053, 406, 1596, 1090, 784, 548, 4414, 1806, 2264, 2936, 1100, 343, 4114, 5096, 622, 3358, 743, 3668, 1510, 1626, 5020, 3567, 2513, 3195, 4115, 5627, 2489, 2991, 24, 2065, 2697, 1087, 2719, 48, 1634, 315, 68, 985, 2052, 198, 2239, 1347, 1107, 1439, 597, 2366, 2172, 871, 3307, 919, 2487, 2790, 1867, 236, 2570, 1413, 3794, 906, 3365, 3381, 1701, 1982, 1818, 1524, 2924, 1205, 616, 2586, 2072, 2004, 575, 253, 3099, 32, 1365, 1182, 197, 1714, 2454, 1201, 554, 3388, 3224, 2748, 756, 2587, 250, 2567, 1507, 1517, 3529, 1922, 2761, 2337, 3416, 1961, 1677, 2452, 2238, 3153, 615, 911, 1506, 1474, 2495, 1265, 1906, 2749, 3756, 3280, 2161, 898, 2714, 1759, 3450, 2243, 2444, 563, 26, 3286, 2266, 3769, 3344, 2707, 3677, 611, 1402, 531, 1028, 2871, 4548, 1375, 261, 2948, 835, 1190, 4134, 353, 840, 2684, 1900, 3082, 1435, 2109, 1207, 1674, 329, 1872, 2781, 4055, 2686, 2104, 608, 3318, 2423, 2957, 2768, 1108, 3739, 3512, 3271, 3985, 2203, 1771, 3520, 1418, 2054, 1681, 1153, 225, 1627, 2929, 162, 2050, 2511, 3687, 1954, 124, 1859, 2431, 1684, 3032, 2894, 585, 4805, 3969, 2869, 2704, 2088, 2032, 2095, 3656, 2635, 4362, 2209, 256, 518, 2042, 2105, 3777, 3657, 643, 2298, 1148, 1779, 190, 989, 3544, 414, 11, 2135, 2063, 2979, 1471, 403, 3678, 126, 770, 1563, 671, 2499, 3216, 2877, 600, 1179, 307, 2805, 4937, 1268, 1297, 2694, 252, 4032, 1448, 1494, 1331, 1394, 127, 2256, 222, 1647, 1035, 1481, 3056, 1915, 1048, 873, 3651, 210, 33, 1608, 2516, 200, 1520, 415, 102, 0, 3389, 1287, 817, 91, 3299, 2940, 836, 1814, 549, 2197, 1396, 1669, 2987, 3582, 2297, 2848, 4528, 1070, 687, 20, 1819, 121, 1552, 1364, 1461, 1968, 2617, 3540, 2824, 2083, 177, 948, 4938, 2291, 110, 4549, 2066, 648, 3359, 1755, 2110, 2114, 4642, 4845, 1693, 3937, 3308, 1257, 1869, 2123, 208, 1804, 3159, 2992, 2531, 2549, 3361, 2418, 1350, 2347, 2800, 2568, 1291, 2036, 2680, 72, 842, 1990, 212, 1233, 1154, 1586, 75, 2027, 3410, 4900, 1823, 1337, 2710, 2676, 728, 2810, 1522, 3026, 4995, 157, 755, 1050, 4022, 710, 785, 1936, 2194, 2085, 1406, 2777, 2400, 150, 1250, 4049, 1206, 807, 1910, 534, 529, 3309, 1721, 1660, 274, 39, 2827, 661, 2670, 1578, 925, 3248, 3815, 1094, 4278, 4901, 4252, 41, 1150, 3747, 2572, 2227, 4501, 3658, 4902, 3813, 3357, 3617, 2884, 2258, 887, 538, 4187, 3199, 1294, 2439, 3042, 2329, 2343, 2497, 1255, 107, 543, 1527, 521, 3478, 3568, 194, 5062, 15, 961, 3870, 1241, 1192, 2664, 66, 5215, 3260, 2111, 1295, 1127, 2152, 3805, 4135, 901, 1164, 1976, 398, 1278, 530, 1460, 748, 904, 1054, 1966, 1426, 53, 2909, 509, 523, 2279, 1534, 536, 1019, 239, 1685, 460, 2353, 673, 1065, 2401, 3600, 4298, 2272, 1272, 2363, 284, 1753, 3679, 4064, 1695, 81, 815, 2677, 2757, 2731, 1386, 859, 500, 4221, 2190, 2566, 757, 1006, 2519, 2068, 1166, 1455, 337, 2654, 3203, 1863, 1682, 1914, 3025, 1252, 1409, 1366, 847, 714, 2834, 2038, 3209, 964, 2970, 1901, 885, 2553, 1078, 1756, 3049, 301, 1572, 3326, 688, 2130, 1996, 2429, 1805, 1648, 2930, 3421, 2750, 3652, 3088, 262, 1158, 1254, 389, 1641, 1812, 526, 1719, 923, 2073, 1073, 1902, 468, 489, 4625, 1140, 857, 2375, 3070, 3319, 2863, 380, 116, 1328, 2693, 1161, 2244, 273, 1212, 1884, 2769, 3011, 1775, 1142, 461, 3066, 1200, 2147, 2212, 790, 702, 2695, 4222, 1601, 1058, 434, 2338, 5153, 3640, 67, 2360, 4099, 2502, 618, 3472, 1329, 416, 1132, 830, 2782, 1807, 2653, 3211, 3510, 1662, 192, 2124, 296, 3979, 1739, 1611, 3684, 23, 118, 324, 446, 1239, 1225, 293, 2520, 3814, 3795, 2535, 3116, 17, 1074, 467, 2692, 2201, 387, 2922, 45, 1326, 3055, 1645, 3659, 2817, 958, 243, 1903, 2320, 1339, 2825, 1784, 3289, 356, 576, 865, 2315, 2381, 3377, 3916, 1088, 3122, 1713, 1655, 935, 628, 4689, 1034, 1327, 441, 800, 720, 894, 1979, 2183, 1528, 5289, 2702, 1071, 4046, 3572, 2399, 1571, 3281, 79, 761, 1103, 327, 134, 758, 1899, 1371, 1615, 879, 442, 215, 2605, 2579, 173, 2048, 2485, 1057, 2975, 3317, 1097, 2253, 3801, 4263, 1403, 1650, 2946, 814, 4968, 3487, 1548, 2644, 1567, 1285, 2, 295, 2636, 97, 946, 3576, 832, 141, 4257, 3273, 760, 3821, 3521, 3156, 2607, 949, 1024, 1733, 1516, 1803, 1920, 2125, 2283, 2665, 3180, 1501, 2064, 3560, 2171, 1592, 803, 3518, 1416, 732, 3897, 4258, 1363, 1362, 2458, 119, 1427, 602, 1525, 2608, 1605, 1639, 3175, 694, 3064, 10, 465, 76, 2000, 4846, 4208, 444, 3781, 1619, 3353, 2206, 1273, 3796, 740, 2483, 320, 1723, 2377, 3660, 2619, 1359, 1137, 1762, 1724, 2345, 2842, 1850, 1862, 912, 821, 1866, 612, 2625, 1735, 2573, 3369, 1093, 844, 89, 937, 930, 1424, 3564, 2413, 2972, 1004, 3046, 3019, 2011, 711, 3171, 1452, 4178, 428, 801, 1943, 432, 445, 2811, 206, 4136, 1472, 730, 349, 73, 397, 2802, 2547, 998, 1637, 1167, 789, 396, 3217, 154, 1218, 716, 1120, 1780, 2819, 4826, 1931, 3334, 3762, 2139, 1215, 2627, 552, 3664, 3628, 3232, 1405, 2383, 3111, 1356, 2652, 3577, 3320, 3101, 1703, 640, 1045, 1370, 1246, 4996, 371, 1575, 2436, 1621, 2210, 984, 4033, 1734, 2638, 16, 4529, 663, 2755, 3255, 1451, 3917, 2257, 1253, 1955, 2234, 1263, 2951, 214, 1229, 617, 485, 359, 1831, 1969, 473, 2310, 750, 2058, 165, 80, 2864, 2419, 361, 4344, 2416, 2479, 1134, 796, 3726, 1266, 2943, 860, 2715, 938, 390, 2734, 1313, 1384, 248, 202, 877, 1064, 2854, 522, 3907, 279, 1602, 297, 2357, 395, 3740, 137, 2075, 944, 4089, 2584, 1267, 3802, 62, 1533, 2285, 178, 176, 780, 2440, 201, 3707, 590, 478, 1560, 4354, 2117, 1075, 30, 74, 4643, 4004, 1635, 1441, 2745, 776, 2596, 238, 1077, 1692, 1912, 2844, 605, 499, 1742, 3947, 241, 3053, 980, 1749, 936, 2640, 4511, 2582, 515, 1543, 2162, 5322, 2892, 2993, 890, 2148, 1924, 665, 1827, 3581, 1032, 968, 3163, 339, 1044, 1896, 270, 583, 1791, 1720, 4367, 1194, 3488, 3669, 43, 2523, 1657, 163, 2167, 290, 1209, 1622, 3378, 550, 634, 2508, 2510, 695, 2634, 2384, 2512, 1476, 1414, 220, 1469, 2341, 2138, 2852, 3183, 2900, 4939, 2865, 3502, 1211, 3680, 854, 3227, 1299, 2976, 3172, 186, 2998, 1459, 443, 1067, 3251, 1495, 321, 1932, 3054, 909, 753, 1410, 1828, 436, 2441, 1119, 1587, 3164, 2186, 1258, 227, 231, 1425, 1890, 3200, 3942, 247, 959, 725, 5254, 2741, 577, 2158, 2079, 929, 120, 174, 838, 2813, 591, 1115, 417, 2024, 40, 3240, 1536, 1037, 291, 4151, 2354, 632, 1298, 2406, 2500, 3535, 1825, 1846, 3451, 205, 1171, 345, 4238, 18, 1163, 811, 685, 2208, 1217, 425, 1312, 1508, 1175, 4308, 2552, 1033, 587, 1381, 3059, 2984, 3482, 340, 1316, 4023, 3972, 792, 3176, 519, 777, 4690, 918, 933, 4130, 2981, 3741, 90, 3360, 2911, 2200, 5184, 4550, 609, 3079, 2030, 272, 3379, 2736, 363, 3881, 1130, 1447, 286, 779, 357, 1169, 3350, 3137, 1630, 1220, 2687, 2391, 747, 1277, 3688, 2618, 2682, 2601, 1156, 3196, 5290, 4034, 3102, 1689, 3596, 3128, 874, 219, 2783, 798, 508, 1843, 2461, 269, 1658, 1776, 1392, 1913, 2983, 3287, 2866, 2159, 2372, 829, 4076, 46, 4253, 2873, 1889, 1894, 915, 1834, 1631, 2181, 2318, 298, 664, 2818, 3555, 2735, 954, 3228, 3117, 527, 3511, 2173, 681, 2712, 3033, 2247, 2346, 3467, 1652, 155, 2164, 3382, 113, 1994, 450, 899, 494, 994, 1237, 2958, 1875, 2336, 1926, 3727, 545, 1577, 1550, 633, 3473, 204, 1305, 3072, 2410, 1956, 2471, 707, 2134, 841, 2195, 2196, 2663, 3843, 1026, 4940, 990, 3252, 4997, 368, 1092, 437, 3212, 3258, 1933, 1829, 675, 2977, 2893, 412, 943, 3723, 4644, 3294, 3283, 2230, 2373, 5154, 2389, 2241, 2661, 2323, 1404, 2524, 593, 787, 677, 3008, 1275, 2059, 438, 2709, 2609, 2240, 2269, 2246, 1446, 36, 1568, 1373, 3892, 1574, 2301, 1456, 3962, 693, 2276, 5216, 2035, 1143, 2720, 1919, 1797, 1811, 2763, 4137, 2597, 1830, 1699, 1488, 1198, 2090, 424, 1694, 312, 3634, 3390, 4179, 3335, 2252, 1214, 561, 1059, 3243, 2295, 2561, 975, 5155, 2321, 2751, 3772, 472, 1537, 3282, 3398, 1047, 2077, 2348, 2878, 1323, 3340, 3076, 690, 2906, 51, 369, 170, 3541, 1060, 2187, 2688, 3670, 2541, 1083, 1683, 928, 3918, 459, 109, 4427, 599, 3744, 4286, 143, 2101, 2730, 2490, 82, 1588, 3036, 2121, 281, 1860, 477, 4035, 1238, 2812, 3020, 2716, 3312, 1530, 2188, 2055, 1317, 843, 636, 1808, 1173, 3495, 649, 181, 1002, 147, 3641, 1159, 2414, 3750, 2289, 2795, 813, 3123, 2610, 1136, 4368, 5, 3391, 4541, 2174, 420, 429, 1728, 754, 1228, 2115, 2219, 347, 2223, 2733, 735, 1518, 3003, 2355, 3134, 1764, 3948, 3329, 1888, 2424, 1001, 1234, 1972, 3321, 3363, 1672, 1021, 1450, 1584, 226, 765, 655, 2526, 3404, 3244, 2302, 3665, 731, 594, 2184, 319, 1576, 621, 658, 2656, 4299, 2099, 3864, 1279, 2071, 2598, 2739, 795, 3086, 3699, 3908, 1707, 2352, 2402, 1382, 3136, 2475, 1465, 4847, 3496, 3865, 1085, 3004, 2591, 1084, 213, 2287, 1963, 3565, 2250, 822, 793, 4574, 3187, 1772, 1789, 3050, 595, 1484, 1959, 2770, 1080, 2650, 456, 422, 2996, 940, 3322, 4328, 4345, 3092, 2742, 965, 2784, 739, 4124, 952, 1358, 2498, 2949, 2565, 332, 2698, 2378, 660, 2260, 2473, 4194, 3856, 2919, 535, 1260, 2651, 1208, 1428, 1300, 1949, 1303, 2942, 433, 2455, 2450, 1251, 1946, 614, 1269, 641, 1306, 1810, 2737, 3078, 2912, 564, 2365, 1419, 1415, 1497, 4460, 2367, 2185, 1379, 3005, 1307, 3218, 2175, 1897, 3063, 682, 1157, 4040, 4005, 1712, 1160, 1941, 1399, 394, 402, 2952, 1573, 1151, 2986, 2404, 862, 299, 2033, 1489, 3006, 346, 171, 2886, 3401, 1726, 2932, 168, 2533, 47, 2507, 1030, 3735, 1145, 3370, 1395, 1318, 1579, 3609, 4560, 2857, 4116, 1457, 2529, 1965, 504, 1036, 2690, 2988, 2405, 745, 5871, 849, 2397, 2056, 3081, 863, 2359, 3857, 2096, 99, 1397, 1769, 2300, 4428, 1643, 3455, 1978, 1757, 3718, 1440, 35, 4879, 3742, 1296, 4228, 2280, 160, 5063, 1599, 2013, 166, 520, 3479, 1646, 3345, 3012, 490, 1937, 1545, 1264, 2182, 2505, 1096, 1188, 1369, 1436, 2421, 1667, 2792, 2460, 1270, 2122, 727, 3167, 2143, 806, 1706, 1012, 1800, 3037, 960, 2218, 1882, 805, 139, 2456, 1139, 1521, 851, 1052, 3093, 3089, 342, 2039, 744, 5097, 1468, 1502, 1585, 2087, 223, 939, 326, 2140, 2577, 892, 2481, 1623, 4077, 982, 3708, 135, 2131, 87, 2503, 3114, 2326, 1106, 876, 1616, 547, 2997, 2831, 2093, 3441, 4530, 4314, 9, 3256, 4229, 4148, 659, 1462, 1986, 1710, 2046, 2913, 2231, 4090, 4880, 5255, 3392, 3274, 1368, 3689, 4645, 1477, 705, 3384, 3635, 1068, 1529, 2941, 1458, 3782, 1509, 100, 1656, 2548, 718, 2339, 408, 1590, 2780, 3548, 1838, 4117, 3719, 1345, 3530, 717, 3442, 2778, 3220, 2898, 1892, 4590, 3614, 3371, 2043, 1998, 1224, 3483, 891, 635, 584, 2559, 3355, 733, 1766, 1729, 1172, 3789, 1891, 2307, 781, 2982, 2271, 1957, 1580, 5773, 2633, 2005, 4195, 3097, 1535, 3213, 1189, 1934, 5693, 3262, 586, 3118, 1324, 1598, 517, 1564, 2217, 1868, 1893, 4445, 3728, 2703, 3139, 1526, 1787, 1992, 3882, 2875, 1549, 1199, 1056, 2224, 1904, 2711, 5098, 4287, 338, 1993, 3129, 3489, 2689, 1809, 2815, 1997, 957, 1855, 3898, 2550, 3275, 3057, 1105, 1319, 627, 1505, 1911, 1883, 3526, 698, 3629, 3456, 1833, 1431, 746, 77, 1261, 2017, 2296, 1977, 1885, 125, 1334, 1600, 525, 1798, 1109, 2222, 1470, 1945, 559, 2236, 1186, 3443, 2476, 1929, 1411, 2411, 3135, 1777, 3372, 2621, 1841, 1613, 3229, 668, 1430, 1839, 2643, 2916, 195, 1989, 2671, 2358, 1387, 629, 3205, 2293, 5256, 4439, 123, 1310, 888, 1879, 4300, 3021, 3605, 1003, 1162, 3192, 2910, 2010, 140, 2395, 2859, 55, 1082, 2012, 2901, 662, 419, 2081, 1438, 680, 2774, 4654, 3912, 1620, 1731, 1625, 5035, 4065, 2328, 512, 1344, 802, 5443, 2163, 2311, 2537, 524, 3399, 98, 1155, 2103, 1918, 2606, 3925, 2816, 1393, 2465, 1504, 3773, 2177, 3963, 1478, 4346, 180, 1113, 4655, 3461, 2028, 1698, 833, 2696, 1235, 1322, 1594, 4408, 3623, 3013, 3225, 2040, 3022, 541, 2881, 607, 3632, 2029, 1665, 1219, 639, 1385, 1686, 1099, 2803, 3231, 1938, 3188, 2858, 427, 676, 2772, 1168, 2025, 454, 3253, 2486, 3556, 230, 1950, 580, 791, 1991, 1280, 1086, 1974, 2034, 630, 257, 3338, 2788, 4903, 1017, 86, 4790, 966, 2789, 1995, 1696, 1131, 259, 3095, 4188, 1308, 179, 1463, 5257, 289, 4107, 1248, 42, 3413, 1725, 2288, 896, 1947, 774, 4474, 4254, 604, 3430, 4264, 392, 2514, 2588, 452, 237, 1408, 3018, 988, 4531, 1970, 3034, 3310, 540, 2370, 1562, 1288, 2990, 502, 4765, 1147, 4, 1853, 2708, 207, 294, 2814, 4078, 2902, 2509, 684, 34, 3105, 3532, 2551, 644, 709, 2801, 2344, 573, 1727, 3573, 3557, 2021, 1081, 3100, 4315, 2100, 3681, 199, 2263, 1837, 2385, 146, 3484, 1195, 2776, 3949, 997, 1939, 3973, 1008, 1091, 1202, 1962, 1847, 1149, 4209, 5444, 1076, 493, 117, 5400, 2521, 972, 1490, 2934, 1796, 4542, 2374, 1512, 2933, 2657, 413, 2888, 1135, 2762, 2314, 2156, 1355, 2369, 766, 2007, 2527, 2170, 3124, 2491, 2593, 2632, 4757, 2437, 234, 3125, 3591, 1898, 1750, 1376, 1942, 3468, 3138, 570, 2127, 2145, 3276, 4131, 962, 132, 1445, 4196, 19, 941, 3624, 3480, 3366, 1973, 1374, 4461, 3431, 2629, 283, 2415, 2275, 808, 2887, 3620, 2112, 2563, 1353, 3610, 955, 1089, 3103, 1053, 96, 88, 4097, 823, 3808, 1583, 399, 292, 4091, 3313, 421, 1128, 642, 4006, 903, 2539, 1877, 2082, 596, 29, 4066, 1790, 722, 2157, 130, 995, 1569, 769, 1485, 464, 513, 2213, 288, 1923, 1101, 2453, 4316, 133, 486, 2445, 50, 625, 487, 2207, 57, 423, 481, 2962, 159, 3729, 1558, 491, 303, 482, 501, 240, 2837, 112, 3648, 2392, 1783, 362, 8, 3433, 3422, 610, 2793, 3277, 1390, 1284, 1654, 21, 3823, 734, 367, 623, 193, 287, 374, 1009, 1483, 816, 476, 313, 2255, 2340, 1262, 2150, 2899, 1146, 2581, 782, 2116, 1659, 2018, 1880, 255, 3586, 3314, 1110, 2867, 2137, 2564, 986, 2767, 5185, 2006, 650, 158, 926, 762, 881, 3157, 2717, 2362, 3587, 306, 3690, 3245, 1542, 3077, 2427, 1691, 2478, 2118, 2985, 3490, 2438, 539, 2305, 983, 129, 1754, 355, 4201, 2386, 827, 2923, 104, 1773, 2838, 2771, 411, 2905, 3919, 376, 767, 122, 1114, 828, 2422, 1817, 3506, 266, 3460, 1007, 1609, 4998, 945, 2612, 4429, 2274, 726, 1247, 1964, 2914, 2199, 2070, 4002, 4108, 657, 3323, 1422, 579, 455, 2764, 4737, 1222, 2895, 1670, 824, 1223, 1487, 2525, 558, 861, 3080, 598, 2659, 2515, 1967, 752, 2583, 2376, 2214, 4180, 977, 704, 2464, 4999, 2622, 4109, 1210, 2961, 819, 1541, 142, 2284, 44, 418, 457, 1126, 3730, 4347, 4626, 1644, 1876, 3671, 1864, 302, 1063, 5694, 624, 723, 1984, 3745, 1314, 1676, 2488, 1610, 1449, 3558, 3569, 2166, 2098, 409, 1011, 2325, 3704, 2306, 818, 1732, 1383, 1824, 1844, 3757, 999, 2705, 3497, 1216, 1423, 2683, 2426, 2954, 2501, 2726, 2229, 1475, 2554, 5064, 1971, 1794, 1666, 2014, 1343, 783, 724, 191, 2434, 1354, 2220, 5065, 1763, 2752, 2472, 4152, 131, 175, 2885, 3434, 92, 1466, 4920, 2616, 3871, 3872, 3866, 128, 1551, 1632, 669, 1854, 3682, 4691, 4125, 1230, 188, 2973, 3290, 1302, 1213, 560, 3266, 917, 763, 3909, 3249, 1760, 868, 1958, 764, 1782, 2097, 145, 2277, 3774, 4462, 64, 1491, 3062, 971, 2132, 3606, 2442, 221, 1226, 1617, 218, 323, 1185, 3207, 3147, 571, 619, 1473, 1005, 1744, 2281, 449, 1887, 2396, 3685, 275, 375, 3816, 1743, 3844, 3731, 845, 1983, 2350, 4210, 1377, 773, 967, 3499, 3052, 3743, 2725, 4007, 1697, 1022, 3943, 1464, 3264, 2855, 2722, 1952, 1029, 2839, 2467, 84, 4383, 2215, 820, 1391, 2015, 2448, 3672, 377, 1948, 2168, 797, 2545, 3536, 2578, 2645, 94, 2874, 1678, 405, 1259, 3071, 771, 546, 1315, 470, 1243, 3083, 895, 2468, 981, 969, 2037, 846, 4181, 653, 1276, 2928, 14, 2594, 557, 3007, 2474, 156, 902, 1338, 1740, 2574, 537, 2518, 973, 2282, 2216, 2433, 1928, 138, 2903, 1293, 2631, 1612, 646, 3457, 839, 2935, 111, 496, 2191, 2847, 589, 3186, 149, 3994, 2060, 4031, 2641, 4067, 3145, 1870, 37, 3597, 2136, 1025, 2051, 3009, 3383, 3549, 1121, 1016, 3261, 1301, 251, 2446, 2599, 2153, 872, 3246, 637, 334, 3705, 831, 884, 921, 3065, 3140, 4092, 2198, 1944, 246, 2964, 108, 2045, 1152, 1921, 2308, 1031, 203, 3173, 4170, 1907, 3890, 810, 1401, 2003, 1690, 506, 647, 1242, 2828, 1761, 1649, 3208, 2249, 1589, 3709, 2931, 5156, 1708, 498, 666, 2613, 834, 3817, 1231, 184, 2851, 1124, 883, 3197, 2261, 3710, 1765, 1553, 2658, 1178, 2639, 2351, 93, 1193, 942, 2538, 2141, 4402, 235, 1821, 870, 1591, 2192, 1709, 1871, 3341, 1618, 4126, 2595, 2334, 603, 651, 69, 701, 268, 2662, 3411, 2555, 1380, 1606, 503, 448, 254, 2371, 2646, 574, 1187, 2309, 1770, 322, 2235, 1292, 1801, 305, 566, 1133, 229, 2067, 2057, 706, 167, 483, 2002, 2672, 3295, 1820, 3561, 3067, 316, 378, 2746, 3452, 1112, 136, 1981, 507, 1651, 2917, 1117, 285, 4591, 182, 2580, 3522, 1304, 335, 3303, 1835, 2504, 1795, 1792, 2248, 674, 1018, 2106, 2449, 1857, 2292, 2845, 976, 3047, 1781, 2600, 2727, 1389, 1281, 52, 3152, 153, 265, 3950, 672, 3485, 3951, 4463, 430, 1183, 365, 278, 2169, 27, 1407, 1336, 2304, 209, 1340, 1730, 2202, 1852, 2403, 2883, 979, 1737, 1062, 631, 2829, 2542, 3876, 2592, 825, 2086, 2226, 3048, 3625, 352, 1417, 3724, 542, 991, 431, 1351, 3938, 1861, 2294, 826, 1361, 2927, 3142, 3503, 1738, 463, 2462, 2723, 582, 1916, 1595, 2808, 400, 3845, 3891, 2868, 3621, 2254, 58, 2492, 1123, 910, 2160, 2614, 1372, 1603, 1196, 1072, 3385, 1700, 3267, 1980, 696, 480, 2430, 920, 799, 1570, 2920, 1951, 2041, 4047, 2540, 1321, 4223, 2469, 3562, 2228, 1271, 2602, 401, 2833, 3351, 2575, 5157, 907, 2312, 1256, 410, 263, 3507, 1582, 996, 678, 1849, 2316, 1480, 908, 3545, 2237, 703, 2322, 667, 1826, 2849, 1531, 2604, 2999, 2407, 3146, 2151, 2630, 1786, 3711, 469, 3542, 497, 3899, 2409, 858, 837, 4446, 3393, 1274, 786, 620, 1845, 2001, 3311, 484, 308, 3367, 1204, 1815, 3691, 2332, 1532, 2557, 1842, 2020, 2724, 1927, 2333, 4440, 567, 22, 1673, 2728, 4475, 1987, 1858, 1144, 1597, 101, 1832, 3601, 12, 974, 3783, 4391, 951, 1412, 1, 3720, 453, 4608, 4041, 528, 1041, 1027, 3230, 2628, 1129, 875, 1051, 3291, 1203, 2262, 1069, 2860, 2799, 2149, 2615, 3278, 144, 1758, 3040, 31, 475, 1680, 366, 2685, 3184, 311, 1642, 4008, 2466, 5036, 1593, 1493, 2809, 216, 1420, 1668, 233, 304, 2128, 3284, 232, 1429, 1768, 1040, 2008, 3407, 2740, 2967, 2543, 242, 2133, 778, 1565, 2022, 2620, 505, 2189, 2756, 1098, 2273, 372, 1614, 708, 553, 2846, 2094, 2278, 169, 3626, 2835, 4161, 228, 2674, 3165, 809, 1454, 1309, 466, 1705, 1095, 900, 3423, 880, 2667, 3751, 5258, 2317, 3109, 2571, 4317, 2766, 1503, 1342, 866, 4447, 1118, 63, 2076, 314, 1881, 1348, 1061, 172, 978, 3515, 1747, 532, 511, 3970, 6, 601, 905, 2699, 3300, 1751, 276, 1467, 3725, 2668, 65, 4239, 2544, 2779, 2556, 1604, 578, 2451, 1802, 992, 2331, 2624, 1320, 3446, 713, 1513, 1013, 103, 2786, 2447, 1661, 886, 1702, 916, 654, 3574, 2031, 1556, 751, 2178, 2821, 2179, 1498, 1538, 2176, 271, 914, 2251, 2080, 1325, 638, 1953, 2937, 3877, 2432, 2754, 95, 3265, 1716, 260, 1227, 4083, 775, 106, 1357, 3254, 426, 1607, 555, 2480, 772, 1985, 244, 2546, 474, 495, 1046, 2611, 1851, 2061, 71, 2089, 1675, 2590, 742, 3758, 2843, 3222, 1433, 267, 2180, 2576, 2826, 2233, 2092, 3913, 2435, 956, 1745, 3075, 856, 2113, 1116, 451, 3, 1988, 2896, 1398, 993, 2463, 1878, 2049, 1341, 2718, 2721, 2870, 2108, 712, 2904, 4363, 2753, 2324, 277, 2872, 2349, 2649, 384, 987, 435, 691, 3000, 922, 164, 3939, 652, 1500, 1184, 4153, 2482, 3373, 2165, 4848, 2335, 3775, 3508, 3154, 2806, 2830, 1554, 2102, 1664, 2530, 1434, 2408, 893, 1547, 2623, 3447, 2832, 2242, 2532, 3169, 2856, 3223, 2078, 49, 3770, 3469, 462, 318, 656, 2259, 3250, 3069, 679, 1629, 2758, 344, 1138, 1104, 3120, 1836, 1283, 3115, 2154, 1437, 4448, 934, 759, 1999, 794, 2862, 1038, 533, 2560, 1722, 2342, 855, 2626, 1197, 1663, 4476, 3127, 85, 4240, 2528, 25, 1111, 1181, 3673, 407, 3470, 4561, 2679, 2713, 768, 1925, 2841, 3986, 1544, 1165, 932, 373, 1240, 2146, 1930, 2673, 721, 4766, 354, 4333, 391, 2963, 187, 61, 3364, 1442, 1102, 330, 1940, 1767, 341, 3809, 4118, 393, 2496, 2062, 2211, 105, 331, 300, 439, 913, 1332, 626, 379, 3304, 1557, 328, 689, 3952, 309, 1555, 931, 317, 2517, 3027, 325, 569, 686, 2107, 3084, 60, 1042, 1333, 2794, 264, 3177, 4014, 1628, 258, 3712, 7, 4464, 1176, 1043, 1778, 683, 114, 1975, 78, 1492, 383, 1886, 510, 386, 645, 5291, 2891, 2069, 3305, 4138, 3867, 2939, 2603, 2493, 1935, 1066, 1848, 3588, 1015, 1282, 1289, 4609, 697, 1453, 3044, 2666, 3611, 1856, 2412, 54, 719, 1330, 568, 3778, 2459, 1748, 788, 492, 551, 1191, 1000, 488, 3394, 3763, 282, 1799, 348, 2016, 1523, 3155, 2390, 1049, 382, 2019, 1788, 1170, 729, 2968, 3523, 897, 3926, 2785, 2938, 3292, 350, 2319, 3238, 1718, 1717, 2655, 3453, 3143, 4465, 161, 2889, 2980, 2009, 1421, 56, 1908, 1640, 2387, 2232, 1917, 1874, 2477, 4921, 148, 83, 3438, 592, 4245, 2882, 1822, 1055, 741, 115, 1496, 1624, 381, 1638, 4592, 1020, 516, 3214, 458, 947, 4575, 1432, 211, 1514, 2926, 1865, 2142, 189, 852, 1221, 1400, 1486, 882, 2299, 4036, 351, 28, 1122, 700, 6479, 6480, 6481, 6482, 6483, # last 512 # Everything below is of no interest for detection purpose 5508, 6484, 3900, 3414, 3974, 4441, 4024, 3537, 4037, 5628, 5099, 3633, 6485, 3148, 6486, 3636, 5509, 3257, 5510, 5973, 5445, 5872, 4941, 4403, 3174, 4627, 5873, 6276, 2286, 4230, 5446, 5874, 5122, 6102, 6103, 4162, 5447, 5123, 5323, 4849, 6277, 3980, 3851, 5066, 4246, 5774, 5067, 6278, 3001, 2807, 5695, 3346, 5775, 5974, 5158, 5448, 6487, 5975, 5976, 5776, 3598, 6279, 5696, 4806, 4211, 4154, 6280, 6488, 6489, 6490, 6281, 4212, 5037, 3374, 4171, 6491, 4562, 4807, 4722, 4827, 5977, 6104, 4532, 4079, 5159, 5324, 5160, 4404, 3858, 5359, 5875, 3975, 4288, 4610, 3486, 4512, 5325, 3893, 5360, 6282, 6283, 5560, 2522, 4231, 5978, 5186, 5449, 2569, 3878, 6284, 5401, 3578, 4415, 6285, 4656, 5124, 5979, 2506, 4247, 4449, 3219, 3417, 4334, 4969, 4329, 6492, 4576, 4828, 4172, 4416, 4829, 5402, 6286, 3927, 3852, 5361, 4369, 4830, 4477, 4867, 5876, 4173, 6493, 6105, 4657, 6287, 6106, 5877, 5450, 6494, 4155, 4868, 5451, 3700, 5629, 4384, 6288, 6289, 5878, 3189, 4881, 6107, 6290, 6495, 4513, 6496, 4692, 4515, 4723, 5100, 3356, 6497, 6291, 3810, 4080, 5561, 3570, 4430, 5980, 6498, 4355, 5697, 6499, 4724, 6108, 6109, 3764, 4050, 5038, 5879, 4093, 3226, 6292, 5068, 5217, 4693, 3342, 5630, 3504, 4831, 4377, 4466, 4309, 5698, 4431, 5777, 6293, 5778, 4272, 3706, 6110, 5326, 3752, 4676, 5327, 4273, 5403, 4767, 5631, 6500, 5699, 5880, 3475, 5039, 6294, 5562, 5125, 4348, 4301, 4482, 4068, 5126, 4593, 5700, 3380, 3462, 5981, 5563, 3824, 5404, 4970, 5511, 3825, 4738, 6295, 6501, 5452, 4516, 6111, 5881, 5564, 6502, 6296, 5982, 6503, 4213, 4163, 3454, 6504, 6112, 4009, 4450, 6113, 4658, 6297, 6114, 3035, 6505, 6115, 3995, 4904, 4739, 4563, 4942, 4110, 5040, 3661, 3928, 5362, 3674, 6506, 5292, 3612, 4791, 5565, 4149, 5983, 5328, 5259, 5021, 4725, 4577, 4564, 4517, 4364, 6298, 5405, 4578, 5260, 4594, 4156, 4157, 5453, 3592, 3491, 6507, 5127, 5512, 4709, 4922, 5984, 5701, 4726, 4289, 6508, 4015, 6116, 5128, 4628, 3424, 4241, 5779, 6299, 4905, 6509, 6510, 5454, 5702, 5780, 6300, 4365, 4923, 3971, 6511, 5161, 3270, 3158, 5985, 4100, 867, 5129, 5703, 6117, 5363, 3695, 3301, 5513, 4467, 6118, 6512, 5455, 4232, 4242, 4629, 6513, 3959, 4478, 6514, 5514, 5329, 5986, 4850, 5162, 5566, 3846, 4694, 6119, 5456, 4869, 5781, 3779, 6301, 5704, 5987, 5515, 4710, 6302, 5882, 6120, 4392, 5364, 5705, 6515, 6121, 6516, 6517, 3736, 5988, 5457, 5989, 4695, 2457, 5883, 4551, 5782, 6303, 6304, 6305, 5130, 4971, 6122, 5163, 6123, 4870, 3263, 5365, 3150, 4871, 6518, 6306, 5783, 5069, 5706, 3513, 3498, 4409, 5330, 5632, 5366, 5458, 5459, 3991, 5990, 4502, 3324, 5991, 5784, 3696, 4518, 5633, 4119, 6519, 4630, 5634, 4417, 5707, 4832, 5992, 3418, 6124, 5993, 5567, 4768, 5218, 6520, 4595, 3458, 5367, 6125, 5635, 6126, 4202, 6521, 4740, 4924, 6307, 3981, 4069, 4385, 6308, 3883, 2675, 4051, 3834, 4302, 4483, 5568, 5994, 4972, 4101, 5368, 6309, 5164, 5884, 3922, 6127, 6522, 6523, 5261, 5460, 5187, 4164, 5219, 3538, 5516, 4111, 3524, 5995, 6310, 6311, 5369, 3181, 3386, 2484, 5188, 3464, 5569, 3627, 5708, 6524, 5406, 5165, 4677, 4492, 6312, 4872, 4851, 5885, 4468, 5996, 6313, 5709, 5710, 6128, 2470, 5886, 6314, 5293, 4882, 5785, 3325, 5461, 5101, 6129, 5711, 5786, 6525, 4906, 6526, 6527, 4418, 5887, 5712, 4808, 2907, 3701, 5713, 5888, 6528, 3765, 5636, 5331, 6529, 6530, 3593, 5889, 3637, 4943, 3692, 5714, 5787, 4925, 6315, 6130, 5462, 4405, 6131, 6132, 6316, 5262, 6531, 6532, 5715, 3859, 5716, 5070, 4696, 5102, 3929, 5788, 3987, 4792, 5997, 6533, 6534, 3920, 4809, 5000, 5998, 6535, 2974, 5370, 6317, 5189, 5263, 5717, 3826, 6536, 3953, 5001, 4883, 3190, 5463, 5890, 4973, 5999, 4741, 6133, 6134, 3607, 5570, 6000, 4711, 3362, 3630, 4552, 5041, 6318, 6001, 2950, 2953, 5637, 4646, 5371, 4944, 6002, 2044, 4120, 3429, 6319, 6537, 5103, 4833, 6538, 6539, 4884, 4647, 3884, 6003, 6004, 4758, 3835, 5220, 5789, 4565, 5407, 6540, 6135, 5294, 4697, 4852, 6320, 6321, 3206, 4907, 6541, 6322, 4945, 6542, 6136, 6543, 6323, 6005, 4631, 3519, 6544, 5891, 6545, 5464, 3784, 5221, 6546, 5571, 4659, 6547, 6324, 6137, 5190, 6548, 3853, 6549, 4016, 4834, 3954, 6138, 5332, 3827, 4017, 3210, 3546, 4469, 5408, 5718, 3505, 4648, 5790, 5131, 5638, 5791, 5465, 4727, 4318, 6325, 6326, 5792, 4553, 4010, 4698, 3439, 4974, 3638, 4335, 3085, 6006, 5104, 5042, 5166, 5892, 5572, 6327, 4356, 4519, 5222, 5573, 5333, 5793, 5043, 6550, 5639, 5071, 4503, 6328, 6139, 6551, 6140, 3914, 3901, 5372, 6007, 5640, 4728, 4793, 3976, 3836, 4885, 6552, 4127, 6553, 4451, 4102, 5002, 6554, 3686, 5105, 6555, 5191, 5072, 5295, 4611, 5794, 5296, 6556, 5893, 5264, 5894, 4975, 5466, 5265, 4699, 4976, 4370, 4056, 3492, 5044, 4886, 6557, 5795, 4432, 4769, 4357, 5467, 3940, 4660, 4290, 6141, 4484, 4770, 4661, 3992, 6329, 4025, 4662, 5022, 4632, 4835, 4070, 5297, 4663, 4596, 5574, 5132, 5409, 5895, 6142, 4504, 5192, 4664, 5796, 5896, 3885, 5575, 5797, 5023, 4810, 5798, 3732, 5223, 4712, 5298, 4084, 5334, 5468, 6143, 4052, 4053, 4336, 4977, 4794, 6558, 5335, 4908, 5576, 5224, 4233, 5024, 4128, 5469, 5225, 4873, 6008, 5045, 4729, 4742, 4633, 3675, 4597, 6559, 5897, 5133, 5577, 5003, 5641, 5719, 6330, 6560, 3017, 2382, 3854, 4406, 4811, 6331, 4393, 3964, 4946, 6561, 2420, 3722, 6562, 4926, 4378, 3247, 1736, 4442, 6332, 5134, 6333, 5226, 3996, 2918, 5470, 4319, 4003, 4598, 4743, 4744, 4485, 3785, 3902, 5167, 5004, 5373, 4394, 5898, 6144, 4874, 1793, 3997, 6334, 4085, 4214, 5106, 5642, 4909, 5799, 6009, 4419, 4189, 3330, 5899, 4165, 4420, 5299, 5720, 5227, 3347, 6145, 4081, 6335, 2876, 3930, 6146, 3293, 3786, 3910, 3998, 5900, 5300, 5578, 2840, 6563, 5901, 5579, 6147, 3531, 5374, 6564, 6565, 5580, 4759, 5375, 6566, 6148, 3559, 5643, 6336, 6010, 5517, 6337, 6338, 5721, 5902, 3873, 6011, 6339, 6567, 5518, 3868, 3649, 5722, 6568, 4771, 4947, 6569, 6149, 4812, 6570, 2853, 5471, 6340, 6341, 5644, 4795, 6342, 6012, 5723, 6343, 5724, 6013, 4349, 6344, 3160, 6150, 5193, 4599, 4514, 4493, 5168, 4320, 6345, 4927, 3666, 4745, 5169, 5903, 5005, 4928, 6346, 5725, 6014, 4730, 4203, 5046, 4948, 3395, 5170, 6015, 4150, 6016, 5726, 5519, 6347, 5047, 3550, 6151, 6348, 4197, 4310, 5904, 6571, 5581, 2965, 6152, 4978, 3960, 4291, 5135, 6572, 5301, 5727, 4129, 4026, 5905, 4853, 5728, 5472, 6153, 6349, 4533, 2700, 4505, 5336, 4678, 3583, 5073, 2994, 4486, 3043, 4554, 5520, 6350, 6017, 5800, 4487, 6351, 3931, 4103, 5376, 6352, 4011, 4321, 4311, 4190, 5136, 6018, 3988, 3233, 4350, 5906, 5645, 4198, 6573, 5107, 3432, 4191, 3435, 5582, 6574, 4139, 5410, 6353, 5411, 3944, 5583, 5074, 3198, 6575, 6354, 4358, 6576, 5302, 4600, 5584, 5194, 5412, 6577, 6578, 5585, 5413, 5303, 4248, 5414, 3879, 4433, 6579, 4479, 5025, 4854, 5415, 6355, 4760, 4772, 3683, 2978, 4700, 3797, 4452, 3965, 3932, 3721, 4910, 5801, 6580, 5195, 3551, 5907, 3221, 3471, 3029, 6019, 3999, 5908, 5909, 5266, 5267, 3444, 3023, 3828, 3170, 4796, 5646, 4979, 4259, 6356, 5647, 5337, 3694, 6357, 5648, 5338, 4520, 4322, 5802, 3031, 3759, 4071, 6020, 5586, 4836, 4386, 5048, 6581, 3571, 4679, 4174, 4949, 6154, 4813, 3787, 3402, 3822, 3958, 3215, 3552, 5268, 4387, 3933, 4950, 4359, 6021, 5910, 5075, 3579, 6358, 4234, 4566, 5521, 6359, 3613, 5049, 6022, 5911, 3375, 3702, 3178, 4911, 5339, 4521, 6582, 6583, 4395, 3087, 3811, 5377, 6023, 6360, 6155, 4027, 5171, 5649, 4421, 4249, 2804, 6584, 2270, 6585, 4000, 4235, 3045, 6156, 5137, 5729, 4140, 4312, 3886, 6361, 4330, 6157, 4215, 6158, 3500, 3676, 4929, 4331, 3713, 4930, 5912, 4265, 3776, 3368, 5587, 4470, 4855, 3038, 4980, 3631, 6159, 6160, 4132, 4680, 6161, 6362, 3923, 4379, 5588, 4255, 6586, 4121, 6587, 6363, 4649, 6364, 3288, 4773, 4774, 6162, 6024, 6365, 3543, 6588, 4274, 3107, 3737, 5050, 5803, 4797, 4522, 5589, 5051, 5730, 3714, 4887, 5378, 4001, 4523, 6163, 5026, 5522, 4701, 4175, 2791, 3760, 6589, 5473, 4224, 4133, 3847, 4814, 4815, 4775, 3259, 5416, 6590, 2738, 6164, 6025, 5304, 3733, 5076, 5650, 4816, 5590, 6591, 6165, 6592, 3934, 5269, 6593, 3396, 5340, 6594, 5804, 3445, 3602, 4042, 4488, 5731, 5732, 3525, 5591, 4601, 5196, 6166, 6026, 5172, 3642, 4612, 3202, 4506, 4798, 6366, 3818, 5108, 4303, 5138, 5139, 4776, 3332, 4304, 2915, 3415, 4434, 5077, 5109, 4856, 2879, 5305, 4817, 6595, 5913, 3104, 3144, 3903, 4634, 5341, 3133, 5110, 5651, 5805, 6167, 4057, 5592, 2945, 4371, 5593, 6596, 3474, 4182, 6367, 6597, 6168, 4507, 4279, 6598, 2822, 6599, 4777, 4713, 5594, 3829, 6169, 3887, 5417, 6170, 3653, 5474, 6368, 4216, 2971, 5228, 3790, 4579, 6369, 5733, 6600, 6601, 4951, 4746, 4555, 6602, 5418, 5475, 6027, 3400, 4665, 5806, 6171, 4799, 6028, 5052, 6172, 3343, 4800, 4747, 5006, 6370, 4556, 4217, 5476, 4396, 5229, 5379, 5477, 3839, 5914, 5652, 5807, 4714, 3068, 4635, 5808, 6173, 5342, 4192, 5078, 5419, 5523, 5734, 6174, 4557, 6175, 4602, 6371, 6176, 6603, 5809, 6372, 5735, 4260, 3869, 5111, 5230, 6029, 5112, 6177, 3126, 4681, 5524, 5915, 2706, 3563, 4748, 3130, 6178, 4018, 5525, 6604, 6605, 5478, 4012, 4837, 6606, 4534, 4193, 5810, 4857, 3615, 5479, 6030, 4082, 3697, 3539, 4086, 5270, 3662, 4508, 4931, 5916, 4912, 5811, 5027, 3888, 6607, 4397, 3527, 3302, 3798, 2775, 2921, 2637, 3966, 4122, 4388, 4028, 4054, 1633, 4858, 5079, 3024, 5007, 3982, 3412, 5736, 6608, 3426, 3236, 5595, 3030, 6179, 3427, 3336, 3279, 3110, 6373, 3874, 3039, 5080, 5917, 5140, 4489, 3119, 6374, 5812, 3405, 4494, 6031, 4666, 4141, 6180, 4166, 6032, 5813, 4981, 6609, 5081, 4422, 4982, 4112, 3915, 5653, 3296, 3983, 6375, 4266, 4410, 5654, 6610, 6181, 3436, 5082, 6611, 5380, 6033, 3819, 5596, 4535, 5231, 5306, 5113, 6612, 4952, 5918, 4275, 3113, 6613, 6376, 6182, 6183, 5814, 3073, 4731, 4838, 5008, 3831, 6614, 4888, 3090, 3848, 4280, 5526, 5232, 3014, 5655, 5009, 5737, 5420, 5527, 6615, 5815, 5343, 5173, 5381, 4818, 6616, 3151, 4953, 6617, 5738, 2796, 3204, 4360, 2989, 4281, 5739, 5174, 5421, 5197, 3132, 5141, 3849, 5142, 5528, 5083, 3799, 3904, 4839, 5480, 2880, 4495, 3448, 6377, 6184, 5271, 5919, 3771, 3193, 6034, 6035, 5920, 5010, 6036, 5597, 6037, 6378, 6038, 3106, 5422, 6618, 5423, 5424, 4142, 6619, 4889, 5084, 4890, 4313, 5740, 6620, 3437, 5175, 5307, 5816, 4199, 5198, 5529, 5817, 5199, 5656, 4913, 5028, 5344, 3850, 6185, 2955, 5272, 5011, 5818, 4567, 4580, 5029, 5921, 3616, 5233, 6621, 6622, 6186, 4176, 6039, 6379, 6380, 3352, 5200, 5273, 2908, 5598, 5234, 3837, 5308, 6623, 6624, 5819, 4496, 4323, 5309, 5201, 6625, 6626, 4983, 3194, 3838, 4167, 5530, 5922, 5274, 6381, 6382, 3860, 3861, 5599, 3333, 4292, 4509, 6383, 3553, 5481, 5820, 5531, 4778, 6187, 3955, 3956, 4324, 4389, 4218, 3945, 4325, 3397, 2681, 5923, 4779, 5085, 4019, 5482, 4891, 5382, 5383, 6040, 4682, 3425, 5275, 4094, 6627, 5310, 3015, 5483, 5657, 4398, 5924, 3168, 4819, 6628, 5925, 6629, 5532, 4932, 4613, 6041, 6630, 4636, 6384, 4780, 4204, 5658, 4423, 5821, 3989, 4683, 5822, 6385, 4954, 6631, 5345, 6188, 5425, 5012, 5384, 3894, 6386, 4490, 4104, 6632, 5741, 5053, 6633, 5823, 5926, 5659, 5660, 5927, 6634, 5235, 5742, 5824, 4840, 4933, 4820, 6387, 4859, 5928, 4955, 6388, 4143, 3584, 5825, 5346, 5013, 6635, 5661, 6389, 5014, 5484, 5743, 4337, 5176, 5662, 6390, 2836, 6391, 3268, 6392, 6636, 6042, 5236, 6637, 4158, 6638, 5744, 5663, 4471, 5347, 3663, 4123, 5143, 4293, 3895, 6639, 6640, 5311, 5929, 5826, 3800, 6189, 6393, 6190, 5664, 5348, 3554, 3594, 4749, 4603, 6641, 5385, 4801, 6043, 5827, 4183, 6642, 5312, 5426, 4761, 6394, 5665, 6191, 4715, 2669, 6643, 6644, 5533, 3185, 5427, 5086, 5930, 5931, 5386, 6192, 6044, 6645, 4781, 4013, 5745, 4282, 4435, 5534, 4390, 4267, 6045, 5746, 4984, 6046, 2743, 6193, 3501, 4087, 5485, 5932, 5428, 4184, 4095, 5747, 4061, 5054, 3058, 3862, 5933, 5600, 6646, 5144, 3618, 6395, 3131, 5055, 5313, 6396, 4650, 4956, 3855, 6194, 3896, 5202, 4985, 4029, 4225, 6195, 6647, 5828, 5486, 5829, 3589, 3002, 6648, 6397, 4782, 5276, 6649, 6196, 6650, 4105, 3803, 4043, 5237, 5830, 6398, 4096, 3643, 6399, 3528, 6651, 4453, 3315, 4637, 6652, 3984, 6197, 5535, 3182, 3339, 6653, 3096, 2660, 6400, 6654, 3449, 5934, 4250, 4236, 6047, 6401, 5831, 6655, 5487, 3753, 4062, 5832, 6198, 6199, 6656, 3766, 6657, 3403, 4667, 6048, 6658, 4338, 2897, 5833, 3880, 2797, 3780, 4326, 6659, 5748, 5015, 6660, 5387, 4351, 5601, 4411, 6661, 3654, 4424, 5935, 4339, 4072, 5277, 4568, 5536, 6402, 6662, 5238, 6663, 5349, 5203, 6200, 5204, 6201, 5145, 4536, 5016, 5056, 4762, 5834, 4399, 4957, 6202, 6403, 5666, 5749, 6664, 4340, 6665, 5936, 5177, 5667, 6666, 6667, 3459, 4668, 6404, 6668, 6669, 4543, 6203, 6670, 4276, 6405, 4480, 5537, 6671, 4614, 5205, 5668, 6672, 3348, 2193, 4763, 6406, 6204, 5937, 5602, 4177, 5669, 3419, 6673, 4020, 6205, 4443, 4569, 5388, 3715, 3639, 6407, 6049, 4058, 6206, 6674, 5938, 4544, 6050, 4185, 4294, 4841, 4651, 4615, 5488, 6207, 6408, 6051, 5178, 3241, 3509, 5835, 6208, 4958, 5836, 4341, 5489, 5278, 6209, 2823, 5538, 5350, 5206, 5429, 6675, 4638, 4875, 4073, 3516, 4684, 4914, 4860, 5939, 5603, 5389, 6052, 5057, 3237, 5490, 3791, 6676, 6409, 6677, 4821, 4915, 4106, 5351, 5058, 4243, 5539, 4244, 5604, 4842, 4916, 5239, 3028, 3716, 5837, 5114, 5605, 5390, 5940, 5430, 6210, 4332, 6678, 5540, 4732, 3667, 3840, 6053, 4305, 3408, 5670, 5541, 6410, 2744, 5240, 5750, 6679, 3234, 5606, 6680, 5607, 5671, 3608, 4283, 4159, 4400, 5352, 4783, 6681, 6411, 6682, 4491, 4802, 6211, 6412, 5941, 6413, 6414, 5542, 5751, 6683, 4669, 3734, 5942, 6684, 6415, 5943, 5059, 3328, 4670, 4144, 4268, 6685, 6686, 6687, 6688, 4372, 3603, 6689, 5944, 5491, 4373, 3440, 6416, 5543, 4784, 4822, 5608, 3792, 4616, 5838, 5672, 3514, 5391, 6417, 4892, 6690, 4639, 6691, 6054, 5673, 5839, 6055, 6692, 6056, 5392, 6212, 4038, 5544, 5674, 4497, 6057, 6693, 5840, 4284, 5675, 4021, 4545, 5609, 6418, 4454, 6419, 6213, 4113, 4472, 5314, 3738, 5087, 5279, 4074, 5610, 4959, 4063, 3179, 4750, 6058, 6420, 6214, 3476, 4498, 4716, 5431, 4960, 4685, 6215, 5241, 6694, 6421, 6216, 6695, 5841, 5945, 6422, 3748, 5946, 5179, 3905, 5752, 5545, 5947, 4374, 6217, 4455, 6423, 4412, 6218, 4803, 5353, 6696, 3832, 5280, 6219, 4327, 4702, 6220, 6221, 6059, 4652, 5432, 6424, 3749, 4751, 6425, 5753, 4986, 5393, 4917, 5948, 5030, 5754, 4861, 4733, 6426, 4703, 6697, 6222, 4671, 5949, 4546, 4961, 5180, 6223, 5031, 3316, 5281, 6698, 4862, 4295, 4934, 5207, 3644, 6427, 5842, 5950, 6428, 6429, 4570, 5843, 5282, 6430, 6224, 5088, 3239, 6060, 6699, 5844, 5755, 6061, 6431, 2701, 5546, 6432, 5115, 5676, 4039, 3993, 3327, 4752, 4425, 5315, 6433, 3941, 6434, 5677, 4617, 4604, 3074, 4581, 6225, 5433, 6435, 6226, 6062, 4823, 5756, 5116, 6227, 3717, 5678, 4717, 5845, 6436, 5679, 5846, 6063, 5847, 6064, 3977, 3354, 6437, 3863, 5117, 6228, 5547, 5394, 4499, 4524, 6229, 4605, 6230, 4306, 4500, 6700, 5951, 6065, 3693, 5952, 5089, 4366, 4918, 6701, 6231, 5548, 6232, 6702, 6438, 4704, 5434, 6703, 6704, 5953, 4168, 6705, 5680, 3420, 6706, 5242, 4407, 6066, 3812, 5757, 5090, 5954, 4672, 4525, 3481, 5681, 4618, 5395, 5354, 5316, 5955, 6439, 4962, 6707, 4526, 6440, 3465, 4673, 6067, 6441, 5682, 6708, 5435, 5492, 5758, 5683, 4619, 4571, 4674, 4804, 4893, 4686, 5493, 4753, 6233, 6068, 4269, 6442, 6234, 5032, 4705, 5146, 5243, 5208, 5848, 6235, 6443, 4963, 5033, 4640, 4226, 6236, 5849, 3387, 6444, 6445, 4436, 4437, 5850, 4843, 5494, 4785, 4894, 6709, 4361, 6710, 5091, 5956, 3331, 6237, 4987, 5549, 6069, 6711, 4342, 3517, 4473, 5317, 6070, 6712, 6071, 4706, 6446, 5017, 5355, 6713, 6714, 4988, 5436, 6447, 4734, 5759, 6715, 4735, 4547, 4456, 4754, 6448, 5851, 6449, 6450, 3547, 5852, 5318, 6451, 6452, 5092, 4205, 6716, 6238, 4620, 4219, 5611, 6239, 6072, 4481, 5760, 5957, 5958, 4059, 6240, 6453, 4227, 4537, 6241, 5761, 4030, 4186, 5244, 5209, 3761, 4457, 4876, 3337, 5495, 5181, 6242, 5959, 5319, 5612, 5684, 5853, 3493, 5854, 6073, 4169, 5613, 5147, 4895, 6074, 5210, 6717, 5182, 6718, 3830, 6243, 2798, 3841, 6075, 6244, 5855, 5614, 3604, 4606, 5496, 5685, 5118, 5356, 6719, 6454, 5960, 5357, 5961, 6720, 4145, 3935, 4621, 5119, 5962, 4261, 6721, 6455, 4786, 5963, 4375, 4582, 6245, 6246, 6247, 6076, 5437, 4877, 5856, 3376, 4380, 6248, 4160, 6722, 5148, 6456, 5211, 6457, 6723, 4718, 6458, 6724, 6249, 5358, 4044, 3297, 6459, 6250, 5857, 5615, 5497, 5245, 6460, 5498, 6725, 6251, 6252, 5550, 3793, 5499, 2959, 5396, 6461, 6462, 4572, 5093, 5500, 5964, 3806, 4146, 6463, 4426, 5762, 5858, 6077, 6253, 4755, 3967, 4220, 5965, 6254, 4989, 5501, 6464, 4352, 6726, 6078, 4764, 2290, 5246, 3906, 5438, 5283, 3767, 4964, 2861, 5763, 5094, 6255, 6256, 4622, 5616, 5859, 5860, 4707, 6727, 4285, 4708, 4824, 5617, 6257, 5551, 4787, 5212, 4965, 4935, 4687, 6465, 6728, 6466, 5686, 6079, 3494, 4413, 2995, 5247, 5966, 5618, 6729, 5967, 5764, 5765, 5687, 5502, 6730, 6731, 6080, 5397, 6467, 4990, 6258, 6732, 4538, 5060, 5619, 6733, 4719, 5688, 5439, 5018, 5149, 5284, 5503, 6734, 6081, 4607, 6259, 5120, 3645, 5861, 4583, 6260, 4584, 4675, 5620, 4098, 5440, 6261, 4863, 2379, 3306, 4585, 5552, 5689, 4586, 5285, 6735, 4864, 6736, 5286, 6082, 6737, 4623, 3010, 4788, 4381, 4558, 5621, 4587, 4896, 3698, 3161, 5248, 4353, 4045, 6262, 3754, 5183, 4588, 6738, 6263, 6739, 6740, 5622, 3936, 6741, 6468, 6742, 6264, 5095, 6469, 4991, 5968, 6743, 4992, 6744, 6083, 4897, 6745, 4256, 5766, 4307, 3108, 3968, 4444, 5287, 3889, 4343, 6084, 4510, 6085, 4559, 6086, 4898, 5969, 6746, 5623, 5061, 4919, 5249, 5250, 5504, 5441, 6265, 5320, 4878, 3242, 5862, 5251, 3428, 6087, 6747, 4237, 5624, 5442, 6266, 5553, 4539, 6748, 2585, 3533, 5398, 4262, 6088, 5150, 4736, 4438, 6089, 6267, 5505, 4966, 6749, 6268, 6750, 6269, 5288, 5554, 3650, 6090, 6091, 4624, 6092, 5690, 6751, 5863, 4270, 5691, 4277, 5555, 5864, 6752, 5692, 4720, 4865, 6470, 5151, 4688, 4825, 6753, 3094, 6754, 6471, 3235, 4653, 6755, 5213, 5399, 6756, 3201, 4589, 5865, 4967, 6472, 5866, 6473, 5019, 3016, 6757, 5321, 4756, 3957, 4573, 6093, 4993, 5767, 4721, 6474, 6758, 5625, 6759, 4458, 6475, 6270, 6760, 5556, 4994, 5214, 5252, 6271, 3875, 5768, 6094, 5034, 5506, 4376, 5769, 6761, 2120, 6476, 5253, 5770, 6762, 5771, 5970, 3990, 5971, 5557, 5558, 5772, 6477, 6095, 2787, 4641, 5972, 5121, 6096, 6097, 6272, 6763, 3703, 5867, 5507, 6273, 4206, 6274, 4789, 6098, 6764, 3619, 3646, 3833, 3804, 2394, 3788, 4936, 3978, 4866, 4899, 6099, 6100, 5559, 6478, 6765, 3599, 5868, 6101, 5869, 5870, 6275, 6766, 4527, 6767)
gb2312_typical_distribution_ratio = 0.9 gb2312_table_size = 3760 gb2312_char_to_freq_order = (1671, 749, 1443, 2364, 3924, 3807, 2330, 3921, 1704, 3463, 2691, 1511, 1515, 572, 3191, 2205, 2361, 224, 2558, 479, 1711, 963, 3162, 440, 4060, 1905, 2966, 2947, 3580, 2647, 3961, 3842, 2204, 869, 4207, 970, 2678, 5626, 2944, 2956, 1479, 4048, 514, 3595, 588, 1346, 2820, 3409, 249, 4088, 1746, 1873, 2047, 1774, 581, 1813, 358, 1174, 3590, 1014, 1561, 4844, 2245, 670, 1636, 3112, 889, 1286, 953, 556, 2327, 3060, 1290, 3141, 613, 185, 3477, 1367, 850, 3820, 1715, 2428, 2642, 2303, 2732, 3041, 2562, 2648, 3566, 3946, 1349, 388, 3098, 2091, 1360, 3585, 152, 1687, 1539, 738, 1559, 59, 1232, 2925, 2267, 1388, 1249, 1741, 1679, 2960, 151, 1566, 1125, 1352, 4271, 924, 4296, 385, 3166, 4459, 310, 1245, 2850, 70, 3285, 2729, 3534, 3575, 2398, 3298, 3466, 1960, 2265, 217, 3647, 864, 1909, 2084, 4401, 2773, 1010, 3269, 5152, 853, 3051, 3121, 1244, 4251, 1895, 364, 1499, 1540, 2313, 1180, 3655, 2268, 562, 715, 2417, 3061, 544, 336, 3768, 2380, 1752, 4075, 950, 280, 2425, 4382, 183, 2759, 3272, 333, 4297, 2155, 1688, 2356, 1444, 1039, 4540, 736, 1177, 3349, 2443, 2368, 2144, 2225, 565, 196, 1482, 3406, 927, 1335, 4147, 692, 878, 1311, 1653, 3911, 3622, 1378, 4200, 1840, 2969, 3149, 2126, 1816, 2534, 1546, 2393, 2760, 737, 2494, 13, 447, 245, 2747, 38, 2765, 2129, 2589, 1079, 606, 360, 471, 3755, 2890, 404, 848, 699, 1785, 1236, 370, 2221, 1023, 3746, 2074, 2026, 2023, 2388, 1581, 2119, 812, 1141, 3091, 2536, 1519, 804, 2053, 406, 1596, 1090, 784, 548, 4414, 1806, 2264, 2936, 1100, 343, 4114, 5096, 622, 3358, 743, 3668, 1510, 1626, 5020, 3567, 2513, 3195, 4115, 5627, 2489, 2991, 24, 2065, 2697, 1087, 2719, 48, 1634, 315, 68, 985, 2052, 198, 2239, 1347, 1107, 1439, 597, 2366, 2172, 871, 3307, 919, 2487, 2790, 1867, 236, 2570, 1413, 3794, 906, 3365, 3381, 1701, 1982, 1818, 1524, 2924, 1205, 616, 2586, 2072, 2004, 575, 253, 3099, 32, 1365, 1182, 197, 1714, 2454, 1201, 554, 3388, 3224, 2748, 756, 2587, 250, 2567, 1507, 1517, 3529, 1922, 2761, 2337, 3416, 1961, 1677, 2452, 2238, 3153, 615, 911, 1506, 1474, 2495, 1265, 1906, 2749, 3756, 3280, 2161, 898, 2714, 1759, 3450, 2243, 2444, 563, 26, 3286, 2266, 3769, 3344, 2707, 3677, 611, 1402, 531, 1028, 2871, 4548, 1375, 261, 2948, 835, 1190, 4134, 353, 840, 2684, 1900, 3082, 1435, 2109, 1207, 1674, 329, 1872, 2781, 4055, 2686, 2104, 608, 3318, 2423, 2957, 2768, 1108, 3739, 3512, 3271, 3985, 2203, 1771, 3520, 1418, 2054, 1681, 1153, 225, 1627, 2929, 162, 2050, 2511, 3687, 1954, 124, 1859, 2431, 1684, 3032, 2894, 585, 4805, 3969, 2869, 2704, 2088, 2032, 2095, 3656, 2635, 4362, 2209, 256, 518, 2042, 2105, 3777, 3657, 643, 2298, 1148, 1779, 190, 989, 3544, 414, 11, 2135, 2063, 2979, 1471, 403, 3678, 126, 770, 1563, 671, 2499, 3216, 2877, 600, 1179, 307, 2805, 4937, 1268, 1297, 2694, 252, 4032, 1448, 1494, 1331, 1394, 127, 2256, 222, 1647, 1035, 1481, 3056, 1915, 1048, 873, 3651, 210, 33, 1608, 2516, 200, 1520, 415, 102, 0, 3389, 1287, 817, 91, 3299, 2940, 836, 1814, 549, 2197, 1396, 1669, 2987, 3582, 2297, 2848, 4528, 1070, 687, 20, 1819, 121, 1552, 1364, 1461, 1968, 2617, 3540, 2824, 2083, 177, 948, 4938, 2291, 110, 4549, 2066, 648, 3359, 1755, 2110, 2114, 4642, 4845, 1693, 3937, 3308, 1257, 1869, 2123, 208, 1804, 3159, 2992, 2531, 2549, 3361, 2418, 1350, 2347, 2800, 2568, 1291, 2036, 2680, 72, 842, 1990, 212, 1233, 1154, 1586, 75, 2027, 3410, 4900, 1823, 1337, 2710, 2676, 728, 2810, 1522, 3026, 4995, 157, 755, 1050, 4022, 710, 785, 1936, 2194, 2085, 1406, 2777, 2400, 150, 1250, 4049, 1206, 807, 1910, 534, 529, 3309, 1721, 1660, 274, 39, 2827, 661, 2670, 1578, 925, 3248, 3815, 1094, 4278, 4901, 4252, 41, 1150, 3747, 2572, 2227, 4501, 3658, 4902, 3813, 3357, 3617, 2884, 2258, 887, 538, 4187, 3199, 1294, 2439, 3042, 2329, 2343, 2497, 1255, 107, 543, 1527, 521, 3478, 3568, 194, 5062, 15, 961, 3870, 1241, 1192, 2664, 66, 5215, 3260, 2111, 1295, 1127, 2152, 3805, 4135, 901, 1164, 1976, 398, 1278, 530, 1460, 748, 904, 1054, 1966, 1426, 53, 2909, 509, 523, 2279, 1534, 536, 1019, 239, 1685, 460, 2353, 673, 1065, 2401, 3600, 4298, 2272, 1272, 2363, 284, 1753, 3679, 4064, 1695, 81, 815, 2677, 2757, 2731, 1386, 859, 500, 4221, 2190, 2566, 757, 1006, 2519, 2068, 1166, 1455, 337, 2654, 3203, 1863, 1682, 1914, 3025, 1252, 1409, 1366, 847, 714, 2834, 2038, 3209, 964, 2970, 1901, 885, 2553, 1078, 1756, 3049, 301, 1572, 3326, 688, 2130, 1996, 2429, 1805, 1648, 2930, 3421, 2750, 3652, 3088, 262, 1158, 1254, 389, 1641, 1812, 526, 1719, 923, 2073, 1073, 1902, 468, 489, 4625, 1140, 857, 2375, 3070, 3319, 2863, 380, 116, 1328, 2693, 1161, 2244, 273, 1212, 1884, 2769, 3011, 1775, 1142, 461, 3066, 1200, 2147, 2212, 790, 702, 2695, 4222, 1601, 1058, 434, 2338, 5153, 3640, 67, 2360, 4099, 2502, 618, 3472, 1329, 416, 1132, 830, 2782, 1807, 2653, 3211, 3510, 1662, 192, 2124, 296, 3979, 1739, 1611, 3684, 23, 118, 324, 446, 1239, 1225, 293, 2520, 3814, 3795, 2535, 3116, 17, 1074, 467, 2692, 2201, 387, 2922, 45, 1326, 3055, 1645, 3659, 2817, 958, 243, 1903, 2320, 1339, 2825, 1784, 3289, 356, 576, 865, 2315, 2381, 3377, 3916, 1088, 3122, 1713, 1655, 935, 628, 4689, 1034, 1327, 441, 800, 720, 894, 1979, 2183, 1528, 5289, 2702, 1071, 4046, 3572, 2399, 1571, 3281, 79, 761, 1103, 327, 134, 758, 1899, 1371, 1615, 879, 442, 215, 2605, 2579, 173, 2048, 2485, 1057, 2975, 3317, 1097, 2253, 3801, 4263, 1403, 1650, 2946, 814, 4968, 3487, 1548, 2644, 1567, 1285, 2, 295, 2636, 97, 946, 3576, 832, 141, 4257, 3273, 760, 3821, 3521, 3156, 2607, 949, 1024, 1733, 1516, 1803, 1920, 2125, 2283, 2665, 3180, 1501, 2064, 3560, 2171, 1592, 803, 3518, 1416, 732, 3897, 4258, 1363, 1362, 2458, 119, 1427, 602, 1525, 2608, 1605, 1639, 3175, 694, 3064, 10, 465, 76, 2000, 4846, 4208, 444, 3781, 1619, 3353, 2206, 1273, 3796, 740, 2483, 320, 1723, 2377, 3660, 2619, 1359, 1137, 1762, 1724, 2345, 2842, 1850, 1862, 912, 821, 1866, 612, 2625, 1735, 2573, 3369, 1093, 844, 89, 937, 930, 1424, 3564, 2413, 2972, 1004, 3046, 3019, 2011, 711, 3171, 1452, 4178, 428, 801, 1943, 432, 445, 2811, 206, 4136, 1472, 730, 349, 73, 397, 2802, 2547, 998, 1637, 1167, 789, 396, 3217, 154, 1218, 716, 1120, 1780, 2819, 4826, 1931, 3334, 3762, 2139, 1215, 2627, 552, 3664, 3628, 3232, 1405, 2383, 3111, 1356, 2652, 3577, 3320, 3101, 1703, 640, 1045, 1370, 1246, 4996, 371, 1575, 2436, 1621, 2210, 984, 4033, 1734, 2638, 16, 4529, 663, 2755, 3255, 1451, 3917, 2257, 1253, 1955, 2234, 1263, 2951, 214, 1229, 617, 485, 359, 1831, 1969, 473, 2310, 750, 2058, 165, 80, 2864, 2419, 361, 4344, 2416, 2479, 1134, 796, 3726, 1266, 2943, 860, 2715, 938, 390, 2734, 1313, 1384, 248, 202, 877, 1064, 2854, 522, 3907, 279, 1602, 297, 2357, 395, 3740, 137, 2075, 944, 4089, 2584, 1267, 3802, 62, 1533, 2285, 178, 176, 780, 2440, 201, 3707, 590, 478, 1560, 4354, 2117, 1075, 30, 74, 4643, 4004, 1635, 1441, 2745, 776, 2596, 238, 1077, 1692, 1912, 2844, 605, 499, 1742, 3947, 241, 3053, 980, 1749, 936, 2640, 4511, 2582, 515, 1543, 2162, 5322, 2892, 2993, 890, 2148, 1924, 665, 1827, 3581, 1032, 968, 3163, 339, 1044, 1896, 270, 583, 1791, 1720, 4367, 1194, 3488, 3669, 43, 2523, 1657, 163, 2167, 290, 1209, 1622, 3378, 550, 634, 2508, 2510, 695, 2634, 2384, 2512, 1476, 1414, 220, 1469, 2341, 2138, 2852, 3183, 2900, 4939, 2865, 3502, 1211, 3680, 854, 3227, 1299, 2976, 3172, 186, 2998, 1459, 443, 1067, 3251, 1495, 321, 1932, 3054, 909, 753, 1410, 1828, 436, 2441, 1119, 1587, 3164, 2186, 1258, 227, 231, 1425, 1890, 3200, 3942, 247, 959, 725, 5254, 2741, 577, 2158, 2079, 929, 120, 174, 838, 2813, 591, 1115, 417, 2024, 40, 3240, 1536, 1037, 291, 4151, 2354, 632, 1298, 2406, 2500, 3535, 1825, 1846, 3451, 205, 1171, 345, 4238, 18, 1163, 811, 685, 2208, 1217, 425, 1312, 1508, 1175, 4308, 2552, 1033, 587, 1381, 3059, 2984, 3482, 340, 1316, 4023, 3972, 792, 3176, 519, 777, 4690, 918, 933, 4130, 2981, 3741, 90, 3360, 2911, 2200, 5184, 4550, 609, 3079, 2030, 272, 3379, 2736, 363, 3881, 1130, 1447, 286, 779, 357, 1169, 3350, 3137, 1630, 1220, 2687, 2391, 747, 1277, 3688, 2618, 2682, 2601, 1156, 3196, 5290, 4034, 3102, 1689, 3596, 3128, 874, 219, 2783, 798, 508, 1843, 2461, 269, 1658, 1776, 1392, 1913, 2983, 3287, 2866, 2159, 2372, 829, 4076, 46, 4253, 2873, 1889, 1894, 915, 1834, 1631, 2181, 2318, 298, 664, 2818, 3555, 2735, 954, 3228, 3117, 527, 3511, 2173, 681, 2712, 3033, 2247, 2346, 3467, 1652, 155, 2164, 3382, 113, 1994, 450, 899, 494, 994, 1237, 2958, 1875, 2336, 1926, 3727, 545, 1577, 1550, 633, 3473, 204, 1305, 3072, 2410, 1956, 2471, 707, 2134, 841, 2195, 2196, 2663, 3843, 1026, 4940, 990, 3252, 4997, 368, 1092, 437, 3212, 3258, 1933, 1829, 675, 2977, 2893, 412, 943, 3723, 4644, 3294, 3283, 2230, 2373, 5154, 2389, 2241, 2661, 2323, 1404, 2524, 593, 787, 677, 3008, 1275, 2059, 438, 2709, 2609, 2240, 2269, 2246, 1446, 36, 1568, 1373, 3892, 1574, 2301, 1456, 3962, 693, 2276, 5216, 2035, 1143, 2720, 1919, 1797, 1811, 2763, 4137, 2597, 1830, 1699, 1488, 1198, 2090, 424, 1694, 312, 3634, 3390, 4179, 3335, 2252, 1214, 561, 1059, 3243, 2295, 2561, 975, 5155, 2321, 2751, 3772, 472, 1537, 3282, 3398, 1047, 2077, 2348, 2878, 1323, 3340, 3076, 690, 2906, 51, 369, 170, 3541, 1060, 2187, 2688, 3670, 2541, 1083, 1683, 928, 3918, 459, 109, 4427, 599, 3744, 4286, 143, 2101, 2730, 2490, 82, 1588, 3036, 2121, 281, 1860, 477, 4035, 1238, 2812, 3020, 2716, 3312, 1530, 2188, 2055, 1317, 843, 636, 1808, 1173, 3495, 649, 181, 1002, 147, 3641, 1159, 2414, 3750, 2289, 2795, 813, 3123, 2610, 1136, 4368, 5, 3391, 4541, 2174, 420, 429, 1728, 754, 1228, 2115, 2219, 347, 2223, 2733, 735, 1518, 3003, 2355, 3134, 1764, 3948, 3329, 1888, 2424, 1001, 1234, 1972, 3321, 3363, 1672, 1021, 1450, 1584, 226, 765, 655, 2526, 3404, 3244, 2302, 3665, 731, 594, 2184, 319, 1576, 621, 658, 2656, 4299, 2099, 3864, 1279, 2071, 2598, 2739, 795, 3086, 3699, 3908, 1707, 2352, 2402, 1382, 3136, 2475, 1465, 4847, 3496, 3865, 1085, 3004, 2591, 1084, 213, 2287, 1963, 3565, 2250, 822, 793, 4574, 3187, 1772, 1789, 3050, 595, 1484, 1959, 2770, 1080, 2650, 456, 422, 2996, 940, 3322, 4328, 4345, 3092, 2742, 965, 2784, 739, 4124, 952, 1358, 2498, 2949, 2565, 332, 2698, 2378, 660, 2260, 2473, 4194, 3856, 2919, 535, 1260, 2651, 1208, 1428, 1300, 1949, 1303, 2942, 433, 2455, 2450, 1251, 1946, 614, 1269, 641, 1306, 1810, 2737, 3078, 2912, 564, 2365, 1419, 1415, 1497, 4460, 2367, 2185, 1379, 3005, 1307, 3218, 2175, 1897, 3063, 682, 1157, 4040, 4005, 1712, 1160, 1941, 1399, 394, 402, 2952, 1573, 1151, 2986, 2404, 862, 299, 2033, 1489, 3006, 346, 171, 2886, 3401, 1726, 2932, 168, 2533, 47, 2507, 1030, 3735, 1145, 3370, 1395, 1318, 1579, 3609, 4560, 2857, 4116, 1457, 2529, 1965, 504, 1036, 2690, 2988, 2405, 745, 5871, 849, 2397, 2056, 3081, 863, 2359, 3857, 2096, 99, 1397, 1769, 2300, 4428, 1643, 3455, 1978, 1757, 3718, 1440, 35, 4879, 3742, 1296, 4228, 2280, 160, 5063, 1599, 2013, 166, 520, 3479, 1646, 3345, 3012, 490, 1937, 1545, 1264, 2182, 2505, 1096, 1188, 1369, 1436, 2421, 1667, 2792, 2460, 1270, 2122, 727, 3167, 2143, 806, 1706, 1012, 1800, 3037, 960, 2218, 1882, 805, 139, 2456, 1139, 1521, 851, 1052, 3093, 3089, 342, 2039, 744, 5097, 1468, 1502, 1585, 2087, 223, 939, 326, 2140, 2577, 892, 2481, 1623, 4077, 982, 3708, 135, 2131, 87, 2503, 3114, 2326, 1106, 876, 1616, 547, 2997, 2831, 2093, 3441, 4530, 4314, 9, 3256, 4229, 4148, 659, 1462, 1986, 1710, 2046, 2913, 2231, 4090, 4880, 5255, 3392, 3274, 1368, 3689, 4645, 1477, 705, 3384, 3635, 1068, 1529, 2941, 1458, 3782, 1509, 100, 1656, 2548, 718, 2339, 408, 1590, 2780, 3548, 1838, 4117, 3719, 1345, 3530, 717, 3442, 2778, 3220, 2898, 1892, 4590, 3614, 3371, 2043, 1998, 1224, 3483, 891, 635, 584, 2559, 3355, 733, 1766, 1729, 1172, 3789, 1891, 2307, 781, 2982, 2271, 1957, 1580, 5773, 2633, 2005, 4195, 3097, 1535, 3213, 1189, 1934, 5693, 3262, 586, 3118, 1324, 1598, 517, 1564, 2217, 1868, 1893, 4445, 3728, 2703, 3139, 1526, 1787, 1992, 3882, 2875, 1549, 1199, 1056, 2224, 1904, 2711, 5098, 4287, 338, 1993, 3129, 3489, 2689, 1809, 2815, 1997, 957, 1855, 3898, 2550, 3275, 3057, 1105, 1319, 627, 1505, 1911, 1883, 3526, 698, 3629, 3456, 1833, 1431, 746, 77, 1261, 2017, 2296, 1977, 1885, 125, 1334, 1600, 525, 1798, 1109, 2222, 1470, 1945, 559, 2236, 1186, 3443, 2476, 1929, 1411, 2411, 3135, 1777, 3372, 2621, 1841, 1613, 3229, 668, 1430, 1839, 2643, 2916, 195, 1989, 2671, 2358, 1387, 629, 3205, 2293, 5256, 4439, 123, 1310, 888, 1879, 4300, 3021, 3605, 1003, 1162, 3192, 2910, 2010, 140, 2395, 2859, 55, 1082, 2012, 2901, 662, 419, 2081, 1438, 680, 2774, 4654, 3912, 1620, 1731, 1625, 5035, 4065, 2328, 512, 1344, 802, 5443, 2163, 2311, 2537, 524, 3399, 98, 1155, 2103, 1918, 2606, 3925, 2816, 1393, 2465, 1504, 3773, 2177, 3963, 1478, 4346, 180, 1113, 4655, 3461, 2028, 1698, 833, 2696, 1235, 1322, 1594, 4408, 3623, 3013, 3225, 2040, 3022, 541, 2881, 607, 3632, 2029, 1665, 1219, 639, 1385, 1686, 1099, 2803, 3231, 1938, 3188, 2858, 427, 676, 2772, 1168, 2025, 454, 3253, 2486, 3556, 230, 1950, 580, 791, 1991, 1280, 1086, 1974, 2034, 630, 257, 3338, 2788, 4903, 1017, 86, 4790, 966, 2789, 1995, 1696, 1131, 259, 3095, 4188, 1308, 179, 1463, 5257, 289, 4107, 1248, 42, 3413, 1725, 2288, 896, 1947, 774, 4474, 4254, 604, 3430, 4264, 392, 2514, 2588, 452, 237, 1408, 3018, 988, 4531, 1970, 3034, 3310, 540, 2370, 1562, 1288, 2990, 502, 4765, 1147, 4, 1853, 2708, 207, 294, 2814, 4078, 2902, 2509, 684, 34, 3105, 3532, 2551, 644, 709, 2801, 2344, 573, 1727, 3573, 3557, 2021, 1081, 3100, 4315, 2100, 3681, 199, 2263, 1837, 2385, 146, 3484, 1195, 2776, 3949, 997, 1939, 3973, 1008, 1091, 1202, 1962, 1847, 1149, 4209, 5444, 1076, 493, 117, 5400, 2521, 972, 1490, 2934, 1796, 4542, 2374, 1512, 2933, 2657, 413, 2888, 1135, 2762, 2314, 2156, 1355, 2369, 766, 2007, 2527, 2170, 3124, 2491, 2593, 2632, 4757, 2437, 234, 3125, 3591, 1898, 1750, 1376, 1942, 3468, 3138, 570, 2127, 2145, 3276, 4131, 962, 132, 1445, 4196, 19, 941, 3624, 3480, 3366, 1973, 1374, 4461, 3431, 2629, 283, 2415, 2275, 808, 2887, 3620, 2112, 2563, 1353, 3610, 955, 1089, 3103, 1053, 96, 88, 4097, 823, 3808, 1583, 399, 292, 4091, 3313, 421, 1128, 642, 4006, 903, 2539, 1877, 2082, 596, 29, 4066, 1790, 722, 2157, 130, 995, 1569, 769, 1485, 464, 513, 2213, 288, 1923, 1101, 2453, 4316, 133, 486, 2445, 50, 625, 487, 2207, 57, 423, 481, 2962, 159, 3729, 1558, 491, 303, 482, 501, 240, 2837, 112, 3648, 2392, 1783, 362, 8, 3433, 3422, 610, 2793, 3277, 1390, 1284, 1654, 21, 3823, 734, 367, 623, 193, 287, 374, 1009, 1483, 816, 476, 313, 2255, 2340, 1262, 2150, 2899, 1146, 2581, 782, 2116, 1659, 2018, 1880, 255, 3586, 3314, 1110, 2867, 2137, 2564, 986, 2767, 5185, 2006, 650, 158, 926, 762, 881, 3157, 2717, 2362, 3587, 306, 3690, 3245, 1542, 3077, 2427, 1691, 2478, 2118, 2985, 3490, 2438, 539, 2305, 983, 129, 1754, 355, 4201, 2386, 827, 2923, 104, 1773, 2838, 2771, 411, 2905, 3919, 376, 767, 122, 1114, 828, 2422, 1817, 3506, 266, 3460, 1007, 1609, 4998, 945, 2612, 4429, 2274, 726, 1247, 1964, 2914, 2199, 2070, 4002, 4108, 657, 3323, 1422, 579, 455, 2764, 4737, 1222, 2895, 1670, 824, 1223, 1487, 2525, 558, 861, 3080, 598, 2659, 2515, 1967, 752, 2583, 2376, 2214, 4180, 977, 704, 2464, 4999, 2622, 4109, 1210, 2961, 819, 1541, 142, 2284, 44, 418, 457, 1126, 3730, 4347, 4626, 1644, 1876, 3671, 1864, 302, 1063, 5694, 624, 723, 1984, 3745, 1314, 1676, 2488, 1610, 1449, 3558, 3569, 2166, 2098, 409, 1011, 2325, 3704, 2306, 818, 1732, 1383, 1824, 1844, 3757, 999, 2705, 3497, 1216, 1423, 2683, 2426, 2954, 2501, 2726, 2229, 1475, 2554, 5064, 1971, 1794, 1666, 2014, 1343, 783, 724, 191, 2434, 1354, 2220, 5065, 1763, 2752, 2472, 4152, 131, 175, 2885, 3434, 92, 1466, 4920, 2616, 3871, 3872, 3866, 128, 1551, 1632, 669, 1854, 3682, 4691, 4125, 1230, 188, 2973, 3290, 1302, 1213, 560, 3266, 917, 763, 3909, 3249, 1760, 868, 1958, 764, 1782, 2097, 145, 2277, 3774, 4462, 64, 1491, 3062, 971, 2132, 3606, 2442, 221, 1226, 1617, 218, 323, 1185, 3207, 3147, 571, 619, 1473, 1005, 1744, 2281, 449, 1887, 2396, 3685, 275, 375, 3816, 1743, 3844, 3731, 845, 1983, 2350, 4210, 1377, 773, 967, 3499, 3052, 3743, 2725, 4007, 1697, 1022, 3943, 1464, 3264, 2855, 2722, 1952, 1029, 2839, 2467, 84, 4383, 2215, 820, 1391, 2015, 2448, 3672, 377, 1948, 2168, 797, 2545, 3536, 2578, 2645, 94, 2874, 1678, 405, 1259, 3071, 771, 546, 1315, 470, 1243, 3083, 895, 2468, 981, 969, 2037, 846, 4181, 653, 1276, 2928, 14, 2594, 557, 3007, 2474, 156, 902, 1338, 1740, 2574, 537, 2518, 973, 2282, 2216, 2433, 1928, 138, 2903, 1293, 2631, 1612, 646, 3457, 839, 2935, 111, 496, 2191, 2847, 589, 3186, 149, 3994, 2060, 4031, 2641, 4067, 3145, 1870, 37, 3597, 2136, 1025, 2051, 3009, 3383, 3549, 1121, 1016, 3261, 1301, 251, 2446, 2599, 2153, 872, 3246, 637, 334, 3705, 831, 884, 921, 3065, 3140, 4092, 2198, 1944, 246, 2964, 108, 2045, 1152, 1921, 2308, 1031, 203, 3173, 4170, 1907, 3890, 810, 1401, 2003, 1690, 506, 647, 1242, 2828, 1761, 1649, 3208, 2249, 1589, 3709, 2931, 5156, 1708, 498, 666, 2613, 834, 3817, 1231, 184, 2851, 1124, 883, 3197, 2261, 3710, 1765, 1553, 2658, 1178, 2639, 2351, 93, 1193, 942, 2538, 2141, 4402, 235, 1821, 870, 1591, 2192, 1709, 1871, 3341, 1618, 4126, 2595, 2334, 603, 651, 69, 701, 268, 2662, 3411, 2555, 1380, 1606, 503, 448, 254, 2371, 2646, 574, 1187, 2309, 1770, 322, 2235, 1292, 1801, 305, 566, 1133, 229, 2067, 2057, 706, 167, 483, 2002, 2672, 3295, 1820, 3561, 3067, 316, 378, 2746, 3452, 1112, 136, 1981, 507, 1651, 2917, 1117, 285, 4591, 182, 2580, 3522, 1304, 335, 3303, 1835, 2504, 1795, 1792, 2248, 674, 1018, 2106, 2449, 1857, 2292, 2845, 976, 3047, 1781, 2600, 2727, 1389, 1281, 52, 3152, 153, 265, 3950, 672, 3485, 3951, 4463, 430, 1183, 365, 278, 2169, 27, 1407, 1336, 2304, 209, 1340, 1730, 2202, 1852, 2403, 2883, 979, 1737, 1062, 631, 2829, 2542, 3876, 2592, 825, 2086, 2226, 3048, 3625, 352, 1417, 3724, 542, 991, 431, 1351, 3938, 1861, 2294, 826, 1361, 2927, 3142, 3503, 1738, 463, 2462, 2723, 582, 1916, 1595, 2808, 400, 3845, 3891, 2868, 3621, 2254, 58, 2492, 1123, 910, 2160, 2614, 1372, 1603, 1196, 1072, 3385, 1700, 3267, 1980, 696, 480, 2430, 920, 799, 1570, 2920, 1951, 2041, 4047, 2540, 1321, 4223, 2469, 3562, 2228, 1271, 2602, 401, 2833, 3351, 2575, 5157, 907, 2312, 1256, 410, 263, 3507, 1582, 996, 678, 1849, 2316, 1480, 908, 3545, 2237, 703, 2322, 667, 1826, 2849, 1531, 2604, 2999, 2407, 3146, 2151, 2630, 1786, 3711, 469, 3542, 497, 3899, 2409, 858, 837, 4446, 3393, 1274, 786, 620, 1845, 2001, 3311, 484, 308, 3367, 1204, 1815, 3691, 2332, 1532, 2557, 1842, 2020, 2724, 1927, 2333, 4440, 567, 22, 1673, 2728, 4475, 1987, 1858, 1144, 1597, 101, 1832, 3601, 12, 974, 3783, 4391, 951, 1412, 1, 3720, 453, 4608, 4041, 528, 1041, 1027, 3230, 2628, 1129, 875, 1051, 3291, 1203, 2262, 1069, 2860, 2799, 2149, 2615, 3278, 144, 1758, 3040, 31, 475, 1680, 366, 2685, 3184, 311, 1642, 4008, 2466, 5036, 1593, 1493, 2809, 216, 1420, 1668, 233, 304, 2128, 3284, 232, 1429, 1768, 1040, 2008, 3407, 2740, 2967, 2543, 242, 2133, 778, 1565, 2022, 2620, 505, 2189, 2756, 1098, 2273, 372, 1614, 708, 553, 2846, 2094, 2278, 169, 3626, 2835, 4161, 228, 2674, 3165, 809, 1454, 1309, 466, 1705, 1095, 900, 3423, 880, 2667, 3751, 5258, 2317, 3109, 2571, 4317, 2766, 1503, 1342, 866, 4447, 1118, 63, 2076, 314, 1881, 1348, 1061, 172, 978, 3515, 1747, 532, 511, 3970, 6, 601, 905, 2699, 3300, 1751, 276, 1467, 3725, 2668, 65, 4239, 2544, 2779, 2556, 1604, 578, 2451, 1802, 992, 2331, 2624, 1320, 3446, 713, 1513, 1013, 103, 2786, 2447, 1661, 886, 1702, 916, 654, 3574, 2031, 1556, 751, 2178, 2821, 2179, 1498, 1538, 2176, 271, 914, 2251, 2080, 1325, 638, 1953, 2937, 3877, 2432, 2754, 95, 3265, 1716, 260, 1227, 4083, 775, 106, 1357, 3254, 426, 1607, 555, 2480, 772, 1985, 244, 2546, 474, 495, 1046, 2611, 1851, 2061, 71, 2089, 1675, 2590, 742, 3758, 2843, 3222, 1433, 267, 2180, 2576, 2826, 2233, 2092, 3913, 2435, 956, 1745, 3075, 856, 2113, 1116, 451, 3, 1988, 2896, 1398, 993, 2463, 1878, 2049, 1341, 2718, 2721, 2870, 2108, 712, 2904, 4363, 2753, 2324, 277, 2872, 2349, 2649, 384, 987, 435, 691, 3000, 922, 164, 3939, 652, 1500, 1184, 4153, 2482, 3373, 2165, 4848, 2335, 3775, 3508, 3154, 2806, 2830, 1554, 2102, 1664, 2530, 1434, 2408, 893, 1547, 2623, 3447, 2832, 2242, 2532, 3169, 2856, 3223, 2078, 49, 3770, 3469, 462, 318, 656, 2259, 3250, 3069, 679, 1629, 2758, 344, 1138, 1104, 3120, 1836, 1283, 3115, 2154, 1437, 4448, 934, 759, 1999, 794, 2862, 1038, 533, 2560, 1722, 2342, 855, 2626, 1197, 1663, 4476, 3127, 85, 4240, 2528, 25, 1111, 1181, 3673, 407, 3470, 4561, 2679, 2713, 768, 1925, 2841, 3986, 1544, 1165, 932, 373, 1240, 2146, 1930, 2673, 721, 4766, 354, 4333, 391, 2963, 187, 61, 3364, 1442, 1102, 330, 1940, 1767, 341, 3809, 4118, 393, 2496, 2062, 2211, 105, 331, 300, 439, 913, 1332, 626, 379, 3304, 1557, 328, 689, 3952, 309, 1555, 931, 317, 2517, 3027, 325, 569, 686, 2107, 3084, 60, 1042, 1333, 2794, 264, 3177, 4014, 1628, 258, 3712, 7, 4464, 1176, 1043, 1778, 683, 114, 1975, 78, 1492, 383, 1886, 510, 386, 645, 5291, 2891, 2069, 3305, 4138, 3867, 2939, 2603, 2493, 1935, 1066, 1848, 3588, 1015, 1282, 1289, 4609, 697, 1453, 3044, 2666, 3611, 1856, 2412, 54, 719, 1330, 568, 3778, 2459, 1748, 788, 492, 551, 1191, 1000, 488, 3394, 3763, 282, 1799, 348, 2016, 1523, 3155, 2390, 1049, 382, 2019, 1788, 1170, 729, 2968, 3523, 897, 3926, 2785, 2938, 3292, 350, 2319, 3238, 1718, 1717, 2655, 3453, 3143, 4465, 161, 2889, 2980, 2009, 1421, 56, 1908, 1640, 2387, 2232, 1917, 1874, 2477, 4921, 148, 83, 3438, 592, 4245, 2882, 1822, 1055, 741, 115, 1496, 1624, 381, 1638, 4592, 1020, 516, 3214, 458, 947, 4575, 1432, 211, 1514, 2926, 1865, 2142, 189, 852, 1221, 1400, 1486, 882, 2299, 4036, 351, 28, 1122, 700, 6479, 6480, 6481, 6482, 6483, 5508, 6484, 3900, 3414, 3974, 4441, 4024, 3537, 4037, 5628, 5099, 3633, 6485, 3148, 6486, 3636, 5509, 3257, 5510, 5973, 5445, 5872, 4941, 4403, 3174, 4627, 5873, 6276, 2286, 4230, 5446, 5874, 5122, 6102, 6103, 4162, 5447, 5123, 5323, 4849, 6277, 3980, 3851, 5066, 4246, 5774, 5067, 6278, 3001, 2807, 5695, 3346, 5775, 5974, 5158, 5448, 6487, 5975, 5976, 5776, 3598, 6279, 5696, 4806, 4211, 4154, 6280, 6488, 6489, 6490, 6281, 4212, 5037, 3374, 4171, 6491, 4562, 4807, 4722, 4827, 5977, 6104, 4532, 4079, 5159, 5324, 5160, 4404, 3858, 5359, 5875, 3975, 4288, 4610, 3486, 4512, 5325, 3893, 5360, 6282, 6283, 5560, 2522, 4231, 5978, 5186, 5449, 2569, 3878, 6284, 5401, 3578, 4415, 6285, 4656, 5124, 5979, 2506, 4247, 4449, 3219, 3417, 4334, 4969, 4329, 6492, 4576, 4828, 4172, 4416, 4829, 5402, 6286, 3927, 3852, 5361, 4369, 4830, 4477, 4867, 5876, 4173, 6493, 6105, 4657, 6287, 6106, 5877, 5450, 6494, 4155, 4868, 5451, 3700, 5629, 4384, 6288, 6289, 5878, 3189, 4881, 6107, 6290, 6495, 4513, 6496, 4692, 4515, 4723, 5100, 3356, 6497, 6291, 3810, 4080, 5561, 3570, 4430, 5980, 6498, 4355, 5697, 6499, 4724, 6108, 6109, 3764, 4050, 5038, 5879, 4093, 3226, 6292, 5068, 5217, 4693, 3342, 5630, 3504, 4831, 4377, 4466, 4309, 5698, 4431, 5777, 6293, 5778, 4272, 3706, 6110, 5326, 3752, 4676, 5327, 4273, 5403, 4767, 5631, 6500, 5699, 5880, 3475, 5039, 6294, 5562, 5125, 4348, 4301, 4482, 4068, 5126, 4593, 5700, 3380, 3462, 5981, 5563, 3824, 5404, 4970, 5511, 3825, 4738, 6295, 6501, 5452, 4516, 6111, 5881, 5564, 6502, 6296, 5982, 6503, 4213, 4163, 3454, 6504, 6112, 4009, 4450, 6113, 4658, 6297, 6114, 3035, 6505, 6115, 3995, 4904, 4739, 4563, 4942, 4110, 5040, 3661, 3928, 5362, 3674, 6506, 5292, 3612, 4791, 5565, 4149, 5983, 5328, 5259, 5021, 4725, 4577, 4564, 4517, 4364, 6298, 5405, 4578, 5260, 4594, 4156, 4157, 5453, 3592, 3491, 6507, 5127, 5512, 4709, 4922, 5984, 5701, 4726, 4289, 6508, 4015, 6116, 5128, 4628, 3424, 4241, 5779, 6299, 4905, 6509, 6510, 5454, 5702, 5780, 6300, 4365, 4923, 3971, 6511, 5161, 3270, 3158, 5985, 4100, 867, 5129, 5703, 6117, 5363, 3695, 3301, 5513, 4467, 6118, 6512, 5455, 4232, 4242, 4629, 6513, 3959, 4478, 6514, 5514, 5329, 5986, 4850, 5162, 5566, 3846, 4694, 6119, 5456, 4869, 5781, 3779, 6301, 5704, 5987, 5515, 4710, 6302, 5882, 6120, 4392, 5364, 5705, 6515, 6121, 6516, 6517, 3736, 5988, 5457, 5989, 4695, 2457, 5883, 4551, 5782, 6303, 6304, 6305, 5130, 4971, 6122, 5163, 6123, 4870, 3263, 5365, 3150, 4871, 6518, 6306, 5783, 5069, 5706, 3513, 3498, 4409, 5330, 5632, 5366, 5458, 5459, 3991, 5990, 4502, 3324, 5991, 5784, 3696, 4518, 5633, 4119, 6519, 4630, 5634, 4417, 5707, 4832, 5992, 3418, 6124, 5993, 5567, 4768, 5218, 6520, 4595, 3458, 5367, 6125, 5635, 6126, 4202, 6521, 4740, 4924, 6307, 3981, 4069, 4385, 6308, 3883, 2675, 4051, 3834, 4302, 4483, 5568, 5994, 4972, 4101, 5368, 6309, 5164, 5884, 3922, 6127, 6522, 6523, 5261, 5460, 5187, 4164, 5219, 3538, 5516, 4111, 3524, 5995, 6310, 6311, 5369, 3181, 3386, 2484, 5188, 3464, 5569, 3627, 5708, 6524, 5406, 5165, 4677, 4492, 6312, 4872, 4851, 5885, 4468, 5996, 6313, 5709, 5710, 6128, 2470, 5886, 6314, 5293, 4882, 5785, 3325, 5461, 5101, 6129, 5711, 5786, 6525, 4906, 6526, 6527, 4418, 5887, 5712, 4808, 2907, 3701, 5713, 5888, 6528, 3765, 5636, 5331, 6529, 6530, 3593, 5889, 3637, 4943, 3692, 5714, 5787, 4925, 6315, 6130, 5462, 4405, 6131, 6132, 6316, 5262, 6531, 6532, 5715, 3859, 5716, 5070, 4696, 5102, 3929, 5788, 3987, 4792, 5997, 6533, 6534, 3920, 4809, 5000, 5998, 6535, 2974, 5370, 6317, 5189, 5263, 5717, 3826, 6536, 3953, 5001, 4883, 3190, 5463, 5890, 4973, 5999, 4741, 6133, 6134, 3607, 5570, 6000, 4711, 3362, 3630, 4552, 5041, 6318, 6001, 2950, 2953, 5637, 4646, 5371, 4944, 6002, 2044, 4120, 3429, 6319, 6537, 5103, 4833, 6538, 6539, 4884, 4647, 3884, 6003, 6004, 4758, 3835, 5220, 5789, 4565, 5407, 6540, 6135, 5294, 4697, 4852, 6320, 6321, 3206, 4907, 6541, 6322, 4945, 6542, 6136, 6543, 6323, 6005, 4631, 3519, 6544, 5891, 6545, 5464, 3784, 5221, 6546, 5571, 4659, 6547, 6324, 6137, 5190, 6548, 3853, 6549, 4016, 4834, 3954, 6138, 5332, 3827, 4017, 3210, 3546, 4469, 5408, 5718, 3505, 4648, 5790, 5131, 5638, 5791, 5465, 4727, 4318, 6325, 6326, 5792, 4553, 4010, 4698, 3439, 4974, 3638, 4335, 3085, 6006, 5104, 5042, 5166, 5892, 5572, 6327, 4356, 4519, 5222, 5573, 5333, 5793, 5043, 6550, 5639, 5071, 4503, 6328, 6139, 6551, 6140, 3914, 3901, 5372, 6007, 5640, 4728, 4793, 3976, 3836, 4885, 6552, 4127, 6553, 4451, 4102, 5002, 6554, 3686, 5105, 6555, 5191, 5072, 5295, 4611, 5794, 5296, 6556, 5893, 5264, 5894, 4975, 5466, 5265, 4699, 4976, 4370, 4056, 3492, 5044, 4886, 6557, 5795, 4432, 4769, 4357, 5467, 3940, 4660, 4290, 6141, 4484, 4770, 4661, 3992, 6329, 4025, 4662, 5022, 4632, 4835, 4070, 5297, 4663, 4596, 5574, 5132, 5409, 5895, 6142, 4504, 5192, 4664, 5796, 5896, 3885, 5575, 5797, 5023, 4810, 5798, 3732, 5223, 4712, 5298, 4084, 5334, 5468, 6143, 4052, 4053, 4336, 4977, 4794, 6558, 5335, 4908, 5576, 5224, 4233, 5024, 4128, 5469, 5225, 4873, 6008, 5045, 4729, 4742, 4633, 3675, 4597, 6559, 5897, 5133, 5577, 5003, 5641, 5719, 6330, 6560, 3017, 2382, 3854, 4406, 4811, 6331, 4393, 3964, 4946, 6561, 2420, 3722, 6562, 4926, 4378, 3247, 1736, 4442, 6332, 5134, 6333, 5226, 3996, 2918, 5470, 4319, 4003, 4598, 4743, 4744, 4485, 3785, 3902, 5167, 5004, 5373, 4394, 5898, 6144, 4874, 1793, 3997, 6334, 4085, 4214, 5106, 5642, 4909, 5799, 6009, 4419, 4189, 3330, 5899, 4165, 4420, 5299, 5720, 5227, 3347, 6145, 4081, 6335, 2876, 3930, 6146, 3293, 3786, 3910, 3998, 5900, 5300, 5578, 2840, 6563, 5901, 5579, 6147, 3531, 5374, 6564, 6565, 5580, 4759, 5375, 6566, 6148, 3559, 5643, 6336, 6010, 5517, 6337, 6338, 5721, 5902, 3873, 6011, 6339, 6567, 5518, 3868, 3649, 5722, 6568, 4771, 4947, 6569, 6149, 4812, 6570, 2853, 5471, 6340, 6341, 5644, 4795, 6342, 6012, 5723, 6343, 5724, 6013, 4349, 6344, 3160, 6150, 5193, 4599, 4514, 4493, 5168, 4320, 6345, 4927, 3666, 4745, 5169, 5903, 5005, 4928, 6346, 5725, 6014, 4730, 4203, 5046, 4948, 3395, 5170, 6015, 4150, 6016, 5726, 5519, 6347, 5047, 3550, 6151, 6348, 4197, 4310, 5904, 6571, 5581, 2965, 6152, 4978, 3960, 4291, 5135, 6572, 5301, 5727, 4129, 4026, 5905, 4853, 5728, 5472, 6153, 6349, 4533, 2700, 4505, 5336, 4678, 3583, 5073, 2994, 4486, 3043, 4554, 5520, 6350, 6017, 5800, 4487, 6351, 3931, 4103, 5376, 6352, 4011, 4321, 4311, 4190, 5136, 6018, 3988, 3233, 4350, 5906, 5645, 4198, 6573, 5107, 3432, 4191, 3435, 5582, 6574, 4139, 5410, 6353, 5411, 3944, 5583, 5074, 3198, 6575, 6354, 4358, 6576, 5302, 4600, 5584, 5194, 5412, 6577, 6578, 5585, 5413, 5303, 4248, 5414, 3879, 4433, 6579, 4479, 5025, 4854, 5415, 6355, 4760, 4772, 3683, 2978, 4700, 3797, 4452, 3965, 3932, 3721, 4910, 5801, 6580, 5195, 3551, 5907, 3221, 3471, 3029, 6019, 3999, 5908, 5909, 5266, 5267, 3444, 3023, 3828, 3170, 4796, 5646, 4979, 4259, 6356, 5647, 5337, 3694, 6357, 5648, 5338, 4520, 4322, 5802, 3031, 3759, 4071, 6020, 5586, 4836, 4386, 5048, 6581, 3571, 4679, 4174, 4949, 6154, 4813, 3787, 3402, 3822, 3958, 3215, 3552, 5268, 4387, 3933, 4950, 4359, 6021, 5910, 5075, 3579, 6358, 4234, 4566, 5521, 6359, 3613, 5049, 6022, 5911, 3375, 3702, 3178, 4911, 5339, 4521, 6582, 6583, 4395, 3087, 3811, 5377, 6023, 6360, 6155, 4027, 5171, 5649, 4421, 4249, 2804, 6584, 2270, 6585, 4000, 4235, 3045, 6156, 5137, 5729, 4140, 4312, 3886, 6361, 4330, 6157, 4215, 6158, 3500, 3676, 4929, 4331, 3713, 4930, 5912, 4265, 3776, 3368, 5587, 4470, 4855, 3038, 4980, 3631, 6159, 6160, 4132, 4680, 6161, 6362, 3923, 4379, 5588, 4255, 6586, 4121, 6587, 6363, 4649, 6364, 3288, 4773, 4774, 6162, 6024, 6365, 3543, 6588, 4274, 3107, 3737, 5050, 5803, 4797, 4522, 5589, 5051, 5730, 3714, 4887, 5378, 4001, 4523, 6163, 5026, 5522, 4701, 4175, 2791, 3760, 6589, 5473, 4224, 4133, 3847, 4814, 4815, 4775, 3259, 5416, 6590, 2738, 6164, 6025, 5304, 3733, 5076, 5650, 4816, 5590, 6591, 6165, 6592, 3934, 5269, 6593, 3396, 5340, 6594, 5804, 3445, 3602, 4042, 4488, 5731, 5732, 3525, 5591, 4601, 5196, 6166, 6026, 5172, 3642, 4612, 3202, 4506, 4798, 6366, 3818, 5108, 4303, 5138, 5139, 4776, 3332, 4304, 2915, 3415, 4434, 5077, 5109, 4856, 2879, 5305, 4817, 6595, 5913, 3104, 3144, 3903, 4634, 5341, 3133, 5110, 5651, 5805, 6167, 4057, 5592, 2945, 4371, 5593, 6596, 3474, 4182, 6367, 6597, 6168, 4507, 4279, 6598, 2822, 6599, 4777, 4713, 5594, 3829, 6169, 3887, 5417, 6170, 3653, 5474, 6368, 4216, 2971, 5228, 3790, 4579, 6369, 5733, 6600, 6601, 4951, 4746, 4555, 6602, 5418, 5475, 6027, 3400, 4665, 5806, 6171, 4799, 6028, 5052, 6172, 3343, 4800, 4747, 5006, 6370, 4556, 4217, 5476, 4396, 5229, 5379, 5477, 3839, 5914, 5652, 5807, 4714, 3068, 4635, 5808, 6173, 5342, 4192, 5078, 5419, 5523, 5734, 6174, 4557, 6175, 4602, 6371, 6176, 6603, 5809, 6372, 5735, 4260, 3869, 5111, 5230, 6029, 5112, 6177, 3126, 4681, 5524, 5915, 2706, 3563, 4748, 3130, 6178, 4018, 5525, 6604, 6605, 5478, 4012, 4837, 6606, 4534, 4193, 5810, 4857, 3615, 5479, 6030, 4082, 3697, 3539, 4086, 5270, 3662, 4508, 4931, 5916, 4912, 5811, 5027, 3888, 6607, 4397, 3527, 3302, 3798, 2775, 2921, 2637, 3966, 4122, 4388, 4028, 4054, 1633, 4858, 5079, 3024, 5007, 3982, 3412, 5736, 6608, 3426, 3236, 5595, 3030, 6179, 3427, 3336, 3279, 3110, 6373, 3874, 3039, 5080, 5917, 5140, 4489, 3119, 6374, 5812, 3405, 4494, 6031, 4666, 4141, 6180, 4166, 6032, 5813, 4981, 6609, 5081, 4422, 4982, 4112, 3915, 5653, 3296, 3983, 6375, 4266, 4410, 5654, 6610, 6181, 3436, 5082, 6611, 5380, 6033, 3819, 5596, 4535, 5231, 5306, 5113, 6612, 4952, 5918, 4275, 3113, 6613, 6376, 6182, 6183, 5814, 3073, 4731, 4838, 5008, 3831, 6614, 4888, 3090, 3848, 4280, 5526, 5232, 3014, 5655, 5009, 5737, 5420, 5527, 6615, 5815, 5343, 5173, 5381, 4818, 6616, 3151, 4953, 6617, 5738, 2796, 3204, 4360, 2989, 4281, 5739, 5174, 5421, 5197, 3132, 5141, 3849, 5142, 5528, 5083, 3799, 3904, 4839, 5480, 2880, 4495, 3448, 6377, 6184, 5271, 5919, 3771, 3193, 6034, 6035, 5920, 5010, 6036, 5597, 6037, 6378, 6038, 3106, 5422, 6618, 5423, 5424, 4142, 6619, 4889, 5084, 4890, 4313, 5740, 6620, 3437, 5175, 5307, 5816, 4199, 5198, 5529, 5817, 5199, 5656, 4913, 5028, 5344, 3850, 6185, 2955, 5272, 5011, 5818, 4567, 4580, 5029, 5921, 3616, 5233, 6621, 6622, 6186, 4176, 6039, 6379, 6380, 3352, 5200, 5273, 2908, 5598, 5234, 3837, 5308, 6623, 6624, 5819, 4496, 4323, 5309, 5201, 6625, 6626, 4983, 3194, 3838, 4167, 5530, 5922, 5274, 6381, 6382, 3860, 3861, 5599, 3333, 4292, 4509, 6383, 3553, 5481, 5820, 5531, 4778, 6187, 3955, 3956, 4324, 4389, 4218, 3945, 4325, 3397, 2681, 5923, 4779, 5085, 4019, 5482, 4891, 5382, 5383, 6040, 4682, 3425, 5275, 4094, 6627, 5310, 3015, 5483, 5657, 4398, 5924, 3168, 4819, 6628, 5925, 6629, 5532, 4932, 4613, 6041, 6630, 4636, 6384, 4780, 4204, 5658, 4423, 5821, 3989, 4683, 5822, 6385, 4954, 6631, 5345, 6188, 5425, 5012, 5384, 3894, 6386, 4490, 4104, 6632, 5741, 5053, 6633, 5823, 5926, 5659, 5660, 5927, 6634, 5235, 5742, 5824, 4840, 4933, 4820, 6387, 4859, 5928, 4955, 6388, 4143, 3584, 5825, 5346, 5013, 6635, 5661, 6389, 5014, 5484, 5743, 4337, 5176, 5662, 6390, 2836, 6391, 3268, 6392, 6636, 6042, 5236, 6637, 4158, 6638, 5744, 5663, 4471, 5347, 3663, 4123, 5143, 4293, 3895, 6639, 6640, 5311, 5929, 5826, 3800, 6189, 6393, 6190, 5664, 5348, 3554, 3594, 4749, 4603, 6641, 5385, 4801, 6043, 5827, 4183, 6642, 5312, 5426, 4761, 6394, 5665, 6191, 4715, 2669, 6643, 6644, 5533, 3185, 5427, 5086, 5930, 5931, 5386, 6192, 6044, 6645, 4781, 4013, 5745, 4282, 4435, 5534, 4390, 4267, 6045, 5746, 4984, 6046, 2743, 6193, 3501, 4087, 5485, 5932, 5428, 4184, 4095, 5747, 4061, 5054, 3058, 3862, 5933, 5600, 6646, 5144, 3618, 6395, 3131, 5055, 5313, 6396, 4650, 4956, 3855, 6194, 3896, 5202, 4985, 4029, 4225, 6195, 6647, 5828, 5486, 5829, 3589, 3002, 6648, 6397, 4782, 5276, 6649, 6196, 6650, 4105, 3803, 4043, 5237, 5830, 6398, 4096, 3643, 6399, 3528, 6651, 4453, 3315, 4637, 6652, 3984, 6197, 5535, 3182, 3339, 6653, 3096, 2660, 6400, 6654, 3449, 5934, 4250, 4236, 6047, 6401, 5831, 6655, 5487, 3753, 4062, 5832, 6198, 6199, 6656, 3766, 6657, 3403, 4667, 6048, 6658, 4338, 2897, 5833, 3880, 2797, 3780, 4326, 6659, 5748, 5015, 6660, 5387, 4351, 5601, 4411, 6661, 3654, 4424, 5935, 4339, 4072, 5277, 4568, 5536, 6402, 6662, 5238, 6663, 5349, 5203, 6200, 5204, 6201, 5145, 4536, 5016, 5056, 4762, 5834, 4399, 4957, 6202, 6403, 5666, 5749, 6664, 4340, 6665, 5936, 5177, 5667, 6666, 6667, 3459, 4668, 6404, 6668, 6669, 4543, 6203, 6670, 4276, 6405, 4480, 5537, 6671, 4614, 5205, 5668, 6672, 3348, 2193, 4763, 6406, 6204, 5937, 5602, 4177, 5669, 3419, 6673, 4020, 6205, 4443, 4569, 5388, 3715, 3639, 6407, 6049, 4058, 6206, 6674, 5938, 4544, 6050, 4185, 4294, 4841, 4651, 4615, 5488, 6207, 6408, 6051, 5178, 3241, 3509, 5835, 6208, 4958, 5836, 4341, 5489, 5278, 6209, 2823, 5538, 5350, 5206, 5429, 6675, 4638, 4875, 4073, 3516, 4684, 4914, 4860, 5939, 5603, 5389, 6052, 5057, 3237, 5490, 3791, 6676, 6409, 6677, 4821, 4915, 4106, 5351, 5058, 4243, 5539, 4244, 5604, 4842, 4916, 5239, 3028, 3716, 5837, 5114, 5605, 5390, 5940, 5430, 6210, 4332, 6678, 5540, 4732, 3667, 3840, 6053, 4305, 3408, 5670, 5541, 6410, 2744, 5240, 5750, 6679, 3234, 5606, 6680, 5607, 5671, 3608, 4283, 4159, 4400, 5352, 4783, 6681, 6411, 6682, 4491, 4802, 6211, 6412, 5941, 6413, 6414, 5542, 5751, 6683, 4669, 3734, 5942, 6684, 6415, 5943, 5059, 3328, 4670, 4144, 4268, 6685, 6686, 6687, 6688, 4372, 3603, 6689, 5944, 5491, 4373, 3440, 6416, 5543, 4784, 4822, 5608, 3792, 4616, 5838, 5672, 3514, 5391, 6417, 4892, 6690, 4639, 6691, 6054, 5673, 5839, 6055, 6692, 6056, 5392, 6212, 4038, 5544, 5674, 4497, 6057, 6693, 5840, 4284, 5675, 4021, 4545, 5609, 6418, 4454, 6419, 6213, 4113, 4472, 5314, 3738, 5087, 5279, 4074, 5610, 4959, 4063, 3179, 4750, 6058, 6420, 6214, 3476, 4498, 4716, 5431, 4960, 4685, 6215, 5241, 6694, 6421, 6216, 6695, 5841, 5945, 6422, 3748, 5946, 5179, 3905, 5752, 5545, 5947, 4374, 6217, 4455, 6423, 4412, 6218, 4803, 5353, 6696, 3832, 5280, 6219, 4327, 4702, 6220, 6221, 6059, 4652, 5432, 6424, 3749, 4751, 6425, 5753, 4986, 5393, 4917, 5948, 5030, 5754, 4861, 4733, 6426, 4703, 6697, 6222, 4671, 5949, 4546, 4961, 5180, 6223, 5031, 3316, 5281, 6698, 4862, 4295, 4934, 5207, 3644, 6427, 5842, 5950, 6428, 6429, 4570, 5843, 5282, 6430, 6224, 5088, 3239, 6060, 6699, 5844, 5755, 6061, 6431, 2701, 5546, 6432, 5115, 5676, 4039, 3993, 3327, 4752, 4425, 5315, 6433, 3941, 6434, 5677, 4617, 4604, 3074, 4581, 6225, 5433, 6435, 6226, 6062, 4823, 5756, 5116, 6227, 3717, 5678, 4717, 5845, 6436, 5679, 5846, 6063, 5847, 6064, 3977, 3354, 6437, 3863, 5117, 6228, 5547, 5394, 4499, 4524, 6229, 4605, 6230, 4306, 4500, 6700, 5951, 6065, 3693, 5952, 5089, 4366, 4918, 6701, 6231, 5548, 6232, 6702, 6438, 4704, 5434, 6703, 6704, 5953, 4168, 6705, 5680, 3420, 6706, 5242, 4407, 6066, 3812, 5757, 5090, 5954, 4672, 4525, 3481, 5681, 4618, 5395, 5354, 5316, 5955, 6439, 4962, 6707, 4526, 6440, 3465, 4673, 6067, 6441, 5682, 6708, 5435, 5492, 5758, 5683, 4619, 4571, 4674, 4804, 4893, 4686, 5493, 4753, 6233, 6068, 4269, 6442, 6234, 5032, 4705, 5146, 5243, 5208, 5848, 6235, 6443, 4963, 5033, 4640, 4226, 6236, 5849, 3387, 6444, 6445, 4436, 4437, 5850, 4843, 5494, 4785, 4894, 6709, 4361, 6710, 5091, 5956, 3331, 6237, 4987, 5549, 6069, 6711, 4342, 3517, 4473, 5317, 6070, 6712, 6071, 4706, 6446, 5017, 5355, 6713, 6714, 4988, 5436, 6447, 4734, 5759, 6715, 4735, 4547, 4456, 4754, 6448, 5851, 6449, 6450, 3547, 5852, 5318, 6451, 6452, 5092, 4205, 6716, 6238, 4620, 4219, 5611, 6239, 6072, 4481, 5760, 5957, 5958, 4059, 6240, 6453, 4227, 4537, 6241, 5761, 4030, 4186, 5244, 5209, 3761, 4457, 4876, 3337, 5495, 5181, 6242, 5959, 5319, 5612, 5684, 5853, 3493, 5854, 6073, 4169, 5613, 5147, 4895, 6074, 5210, 6717, 5182, 6718, 3830, 6243, 2798, 3841, 6075, 6244, 5855, 5614, 3604, 4606, 5496, 5685, 5118, 5356, 6719, 6454, 5960, 5357, 5961, 6720, 4145, 3935, 4621, 5119, 5962, 4261, 6721, 6455, 4786, 5963, 4375, 4582, 6245, 6246, 6247, 6076, 5437, 4877, 5856, 3376, 4380, 6248, 4160, 6722, 5148, 6456, 5211, 6457, 6723, 4718, 6458, 6724, 6249, 5358, 4044, 3297, 6459, 6250, 5857, 5615, 5497, 5245, 6460, 5498, 6725, 6251, 6252, 5550, 3793, 5499, 2959, 5396, 6461, 6462, 4572, 5093, 5500, 5964, 3806, 4146, 6463, 4426, 5762, 5858, 6077, 6253, 4755, 3967, 4220, 5965, 6254, 4989, 5501, 6464, 4352, 6726, 6078, 4764, 2290, 5246, 3906, 5438, 5283, 3767, 4964, 2861, 5763, 5094, 6255, 6256, 4622, 5616, 5859, 5860, 4707, 6727, 4285, 4708, 4824, 5617, 6257, 5551, 4787, 5212, 4965, 4935, 4687, 6465, 6728, 6466, 5686, 6079, 3494, 4413, 2995, 5247, 5966, 5618, 6729, 5967, 5764, 5765, 5687, 5502, 6730, 6731, 6080, 5397, 6467, 4990, 6258, 6732, 4538, 5060, 5619, 6733, 4719, 5688, 5439, 5018, 5149, 5284, 5503, 6734, 6081, 4607, 6259, 5120, 3645, 5861, 4583, 6260, 4584, 4675, 5620, 4098, 5440, 6261, 4863, 2379, 3306, 4585, 5552, 5689, 4586, 5285, 6735, 4864, 6736, 5286, 6082, 6737, 4623, 3010, 4788, 4381, 4558, 5621, 4587, 4896, 3698, 3161, 5248, 4353, 4045, 6262, 3754, 5183, 4588, 6738, 6263, 6739, 6740, 5622, 3936, 6741, 6468, 6742, 6264, 5095, 6469, 4991, 5968, 6743, 4992, 6744, 6083, 4897, 6745, 4256, 5766, 4307, 3108, 3968, 4444, 5287, 3889, 4343, 6084, 4510, 6085, 4559, 6086, 4898, 5969, 6746, 5623, 5061, 4919, 5249, 5250, 5504, 5441, 6265, 5320, 4878, 3242, 5862, 5251, 3428, 6087, 6747, 4237, 5624, 5442, 6266, 5553, 4539, 6748, 2585, 3533, 5398, 4262, 6088, 5150, 4736, 4438, 6089, 6267, 5505, 4966, 6749, 6268, 6750, 6269, 5288, 5554, 3650, 6090, 6091, 4624, 6092, 5690, 6751, 5863, 4270, 5691, 4277, 5555, 5864, 6752, 5692, 4720, 4865, 6470, 5151, 4688, 4825, 6753, 3094, 6754, 6471, 3235, 4653, 6755, 5213, 5399, 6756, 3201, 4589, 5865, 4967, 6472, 5866, 6473, 5019, 3016, 6757, 5321, 4756, 3957, 4573, 6093, 4993, 5767, 4721, 6474, 6758, 5625, 6759, 4458, 6475, 6270, 6760, 5556, 4994, 5214, 5252, 6271, 3875, 5768, 6094, 5034, 5506, 4376, 5769, 6761, 2120, 6476, 5253, 5770, 6762, 5771, 5970, 3990, 5971, 5557, 5558, 5772, 6477, 6095, 2787, 4641, 5972, 5121, 6096, 6097, 6272, 6763, 3703, 5867, 5507, 6273, 4206, 6274, 4789, 6098, 6764, 3619, 3646, 3833, 3804, 2394, 3788, 4936, 3978, 4866, 4899, 6099, 6100, 5559, 6478, 6765, 3599, 5868, 6101, 5869, 5870, 6275, 6766, 4527, 6767)
# from collections import Counter, defaultdict # class Solution: # def smallerNumbersThanCurrent(self, nums: List[int]) -> List[int]: # count = Counter(nums) # # print('count: {}'.format(count)) # tmp = nums.copy() #list(set(nums.copy())) # tmp.sort() # # print('tmp: {}'.format(tmp)) # lastIdx = defaultdict(int) # for i, num in enumerate(tmp): # lastIdx[num] = i # smallerThanIt = {} # for t in tmp: # smallerThanIt[t] = lastIdx[t] - (count[t] - 1) # ans = [] # for num in nums: # ans.append(smallerThanIt[num]) # return ans class Solution: def smallerNumbersThanCurrent(self, nums: List[int]) -> List[int]: tmp = [0] * (max(nums) + 1) for num in nums: tmp[num] += 1 ans = [] for num in nums: ans.append(sum(tmp[:num])) return ans
class Solution: def smaller_numbers_than_current(self, nums: List[int]) -> List[int]: tmp = [0] * (max(nums) + 1) for num in nums: tmp[num] += 1 ans = [] for num in nums: ans.append(sum(tmp[:num])) return ans