content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
#!/usr/local/bin/python3 def main(): # Test suite tests = [None, '', 'AABBCC', 'AAABCCDDDD'] results = [None, '', 'AABBCC', 'A3BCCD4'] for i in range(len(tests)): temp_result = compress_string(tests[i]) if temp_result == results[i]: print('PASS: {} returned {}'.format(tests[i], temp_result)) else: print('FAIL: {} returned {}, should have returned {}'.format(tests[i], temp_result, results[i])) return 0 def compress_string(string): ''' Compresses a string such that 'AAABCCDDDD' becomes 'A3BCCD4'. Only compresses the string if it saves space ('AABBCC' stays same). Input: string Output: string ''' if string is None: return None # Check length s_length = len(string) if s_length == 0: return string # Create compressed string compressed = [] count = 1 base_char = string[0] for i in range(1, s_length): # Current char is different than last one if string[i] != base_char: compressed.append(base_char) if count == 2: compressed.append(base_char) elif count > 2: compressed.append(str(count)) # Change base_char to new character and reset count base_char = string[i] count = 1 # Current char is same as last one else: count += 1 # Append the last set of chars compressed.append(base_char) if count == 2: compressed.append(base_char) elif count > 2: compressed.append(str(count)) if len(compressed) >= s_length: return string else: return ''.join(compressed) if __name__ == '__main__': main()
def main(): tests = [None, '', 'AABBCC', 'AAABCCDDDD'] results = [None, '', 'AABBCC', 'A3BCCD4'] for i in range(len(tests)): temp_result = compress_string(tests[i]) if temp_result == results[i]: print('PASS: {} returned {}'.format(tests[i], temp_result)) else: print('FAIL: {} returned {}, should have returned {}'.format(tests[i], temp_result, results[i])) return 0 def compress_string(string): """ Compresses a string such that 'AAABCCDDDD' becomes 'A3BCCD4'. Only compresses the string if it saves space ('AABBCC' stays same). Input: string Output: string """ if string is None: return None s_length = len(string) if s_length == 0: return string compressed = [] count = 1 base_char = string[0] for i in range(1, s_length): if string[i] != base_char: compressed.append(base_char) if count == 2: compressed.append(base_char) elif count > 2: compressed.append(str(count)) base_char = string[i] count = 1 else: count += 1 compressed.append(base_char) if count == 2: compressed.append(base_char) elif count > 2: compressed.append(str(count)) if len(compressed) >= s_length: return string else: return ''.join(compressed) if __name__ == '__main__': main()
def load_dotdoe(doe_path=None): if doe_path is None: f = open('.doe', 'r') else: f = open(doe_path, 'r') text = f.read() lines = text.split('\n') dictionary = {} for line in lines: if line == '': pass else: variable = line.split(' > ')[0] content = line.split(' > ')[1] dictionary[variable] = content f.close() # print(lines) return dictionary
def load_dotdoe(doe_path=None): if doe_path is None: f = open('.doe', 'r') else: f = open(doe_path, 'r') text = f.read() lines = text.split('\n') dictionary = {} for line in lines: if line == '': pass else: variable = line.split(' > ')[0] content = line.split(' > ')[1] dictionary[variable] = content f.close() return dictionary
gols = list() jogador = dict() tot = 0 jogador['nome'] = str(input('Nome do jogador: ')) partidas = int(input('Quantas partidas jogou: ')) for c in range(0, partidas): gol = int(input(f' ->> Quntidade de gols na partida {c}: ')) tot += gol gols.append(gol) jogador['gols'] = gols jogador['total'] = tot # Mostrar os valores do campo nome, quant. gols e total de gols print('-=' * 30) for k, v in jogador.items(): print(f'O campo {k} tem valor {v}') #Mostrar a quantidade de partidas jogados, gol por partida e o total print('-=' * 30) print(f'O jogador {jogador["nome"]} jogou {partidas} partidas') for i, j in enumerate(jogador['gols']): print(f' =>> Na partida {i}, fez {j} gols') print(f'Foi um total de {jogador["total"]} gols. ')
gols = list() jogador = dict() tot = 0 jogador['nome'] = str(input('Nome do jogador: ')) partidas = int(input('Quantas partidas jogou: ')) for c in range(0, partidas): gol = int(input(f' ->> Quntidade de gols na partida {c}: ')) tot += gol gols.append(gol) jogador['gols'] = gols jogador['total'] = tot print('-=' * 30) for (k, v) in jogador.items(): print(f'O campo {k} tem valor {v}') print('-=' * 30) print(f"O jogador {jogador['nome']} jogou {partidas} partidas") for (i, j) in enumerate(jogador['gols']): print(f' =>> Na partida {i}, fez {j} gols') print(f"Foi um total de {jogador['total']} gols. ")
ROOT = "https://coursemology.org" LOGIN = "/users/sign_in" COURSE = "/courses/{}" ASSESSMENTS = "/assessments" SUBMISSIONS = "/submissions" MATERIALS = "/materials" FOLDERS = "/folders" def login(): return ROOT + LOGIN def course(id): return ROOT + COURSE.format(id) def assessments(id): return course(id) + ASSESSMENTS def download(id, mid): return assessments(id) + "/" + mid + SUBMISSIONS + "/download_all?format=json" def workbin(id, wid): return course(id) + MATERIALS + FOLDERS + "/" + str(wid)
root = 'https://coursemology.org' login = '/users/sign_in' course = '/courses/{}' assessments = '/assessments' submissions = '/submissions' materials = '/materials' folders = '/folders' def login(): return ROOT + LOGIN def course(id): return ROOT + COURSE.format(id) def assessments(id): return course(id) + ASSESSMENTS def download(id, mid): return assessments(id) + '/' + mid + SUBMISSIONS + '/download_all?format=json' def workbin(id, wid): return course(id) + MATERIALS + FOLDERS + '/' + str(wid)
# -*- coding: utf-8 -*- def killTree(n, k): if n < 1: return k return killTree(n-1, (k+1)*2) aa=int(input()) for s in range(0, aa): nm,cc = list(map(int,input().split(" "))) print("%d" % killTree(nm,cc))
def kill_tree(n, k): if n < 1: return k return kill_tree(n - 1, (k + 1) * 2) aa = int(input()) for s in range(0, aa): (nm, cc) = list(map(int, input().split(' '))) print('%d' % kill_tree(nm, cc))
def doPost(request,session): tagPaths = system.util.jsonDecode(request['postData'])['tagPaths'] tagValues = [] qualifiedValues = system.tag.readAll(tagPaths) tagValues = [{'value': qv.value, 'quality': qv.quality.toString(), 'timestamp': qv.timestamp} for qv in qualifiedValues] tagData = {} for i in range(len(tagPaths)): tagData[tagPaths[i]] = tagValues[i] return {'json': system.util.jsonEncode(tagData)}
def do_post(request, session): tag_paths = system.util.jsonDecode(request['postData'])['tagPaths'] tag_values = [] qualified_values = system.tag.readAll(tagPaths) tag_values = [{'value': qv.value, 'quality': qv.quality.toString(), 'timestamp': qv.timestamp} for qv in qualifiedValues] tag_data = {} for i in range(len(tagPaths)): tagData[tagPaths[i]] = tagValues[i] return {'json': system.util.jsonEncode(tagData)}
# Stores data about professor class Professor: # Initializes professor data def __init__(self, id, name): self.Id = id self.Name = name self.CourseClasses = [] # Bind professor to course def addCourseClass(self, courseClass): self.CourseClasses.append(courseClass) # Compares ID's of two objects which represent professors def __eq__(self, rhs): return self.Id == rhs.Id
class Professor: def __init__(self, id, name): self.Id = id self.Name = name self.CourseClasses = [] def add_course_class(self, courseClass): self.CourseClasses.append(courseClass) def __eq__(self, rhs): return self.Id == rhs.Id
def get_short_answer(unswer): return unswer.replace( ',', '.').replace( '(', '.').replace('"', '.').split('.')[0].strip().lower() def get_explanation(right_answer): index = 0 for char in right_answer: if char == '.': index += 1 break if char == ',': break if char == '(': index -= 1 break index += 1 explanation = right_answer[index:].strip() if len(explanation) > 2: return right_answer[index:] return ''
def get_short_answer(unswer): return unswer.replace(',', '.').replace('(', '.').replace('"', '.').split('.')[0].strip().lower() def get_explanation(right_answer): index = 0 for char in right_answer: if char == '.': index += 1 break if char == ',': break if char == '(': index -= 1 break index += 1 explanation = right_answer[index:].strip() if len(explanation) > 2: return right_answer[index:] return ''
_map_axis_values = { -11: -3, -9: -3, -7: -2, -5: -2, -3: -1, -1: -1, 1: 1, 3: 1, 5: 2, 7: 2, 9: 3, 11: 3, } class Learner: def __init__(self, id, lower_time, upper_time, active_reflexive, sensory_intuitive, visual_verbal, sequential_global, learning_goals): self.score = {} self.id = id self.lower_time = int(lower_time * 3600) self.upper_time = int(upper_time * 3600) self.learning_goals = learning_goals assert(active_reflexive in _map_axis_values) assert(sensory_intuitive in _map_axis_values) assert(visual_verbal in _map_axis_values) assert(sequential_global in _map_axis_values) self.active_reflexive = _map_axis_values[active_reflexive] self.sensory_intuitive = _map_axis_values[sensory_intuitive] self.visual_verbal = _map_axis_values[visual_verbal] self.sequential_global = _map_axis_values[sequential_global] @classmethod def load_from_string(cls, description): fields = description.split(';') assert(len(fields) > 7) id = fields[0] learner_lower_time = float(fields[1]) learner_upper_time = float(fields[2]) active_reflexive = int(fields[3]) sensory_intuitive = int(fields[4]) visual_verbal = int(fields[5]) sequential_global = int(fields[6]) learning_goals = set(fields[7:]) return cls(id, learner_lower_time, learner_upper_time, active_reflexive, sensory_intuitive, visual_verbal, sequential_global, learning_goals) def __str__(self): score_str = "" for concept in self.score: score_str += concept + "=" + str(self.score[concept]) + ", " score_str = score_str[:-2] return "Learner{id=" + str(self.id) + ", score={" + score_str + "}, active_reflexive=" + str(self.active_reflexive) + ", sensory_intuitive=" + str(self.sensory_intuitive) + ", visual_verbal=" + str(self.visual_verbal) + ", sequential_global=" + str(self.sequential_global) + ", lower_time=" + str(self.lower_time) + ", upper_time=" + str(self.upper_time) + "}"
_map_axis_values = {-11: -3, -9: -3, -7: -2, -5: -2, -3: -1, -1: -1, 1: 1, 3: 1, 5: 2, 7: 2, 9: 3, 11: 3} class Learner: def __init__(self, id, lower_time, upper_time, active_reflexive, sensory_intuitive, visual_verbal, sequential_global, learning_goals): self.score = {} self.id = id self.lower_time = int(lower_time * 3600) self.upper_time = int(upper_time * 3600) self.learning_goals = learning_goals assert active_reflexive in _map_axis_values assert sensory_intuitive in _map_axis_values assert visual_verbal in _map_axis_values assert sequential_global in _map_axis_values self.active_reflexive = _map_axis_values[active_reflexive] self.sensory_intuitive = _map_axis_values[sensory_intuitive] self.visual_verbal = _map_axis_values[visual_verbal] self.sequential_global = _map_axis_values[sequential_global] @classmethod def load_from_string(cls, description): fields = description.split(';') assert len(fields) > 7 id = fields[0] learner_lower_time = float(fields[1]) learner_upper_time = float(fields[2]) active_reflexive = int(fields[3]) sensory_intuitive = int(fields[4]) visual_verbal = int(fields[5]) sequential_global = int(fields[6]) learning_goals = set(fields[7:]) return cls(id, learner_lower_time, learner_upper_time, active_reflexive, sensory_intuitive, visual_verbal, sequential_global, learning_goals) def __str__(self): score_str = '' for concept in self.score: score_str += concept + '=' + str(self.score[concept]) + ', ' score_str = score_str[:-2] return 'Learner{id=' + str(self.id) + ', score={' + score_str + '}, active_reflexive=' + str(self.active_reflexive) + ', sensory_intuitive=' + str(self.sensory_intuitive) + ', visual_verbal=' + str(self.visual_verbal) + ', sequential_global=' + str(self.sequential_global) + ', lower_time=' + str(self.lower_time) + ', upper_time=' + str(self.upper_time) + '}'
f = open("all_ref.fa", "r") linear_ref = open("linear_all_ref.fa", "w") linear_GFP = '' linear_gacS = '' linear_pME6010 = '' linear_pUC18 = '' linear_control = '' content = [x.strip('\n') for x in f.readlines()] for i, line in enumerate(content): if line.startswith(">gi|211909964"): # print line linear_ref.write(line +"\n") while not content[i+1].startswith(">"): linear_GFP += content[i+1] i += 1 linear_ref.write(linear_GFP+ "\n") elif line.startswith(">ENA|AF246292|"): # print line linear_ref.write(line +"\n") while not content[i+1].startswith(">"): linear_gacS += content[i+1] i += 1 linear_ref.write(linear_gacS + "\n") elif line.startswith(">gi|130693907|gb"): # print line linear_ref.write(line +"\n") while not content[i+1].startswith(">"): linear_control += content[i+1] i += 1 linear_ref.write(linear_control+ "\n") elif line.startswith(">gi|4378778|gb|"): # print line linear_ref.write(line+"\n") while not content[i+1].startswith(">"): linear_pME6010 += content[i+1] i += 1 linear_ref.write(linear_pME6010+ "\n") elif line.startswith(">gi|209211|gb|L08752.1"): # print line linear_ref.write(line+"\n") while not content[i+1].startswith(">"): linear_pUC18 += content[i+1] i += 1 linear_ref.write(linear_pUC18+ "\n") linear_ref.close()
f = open('all_ref.fa', 'r') linear_ref = open('linear_all_ref.fa', 'w') linear_gfp = '' linear_gac_s = '' linear_p_me6010 = '' linear_p_uc18 = '' linear_control = '' content = [x.strip('\n') for x in f.readlines()] for (i, line) in enumerate(content): if line.startswith('>gi|211909964'): linear_ref.write(line + '\n') while not content[i + 1].startswith('>'): linear_gfp += content[i + 1] i += 1 linear_ref.write(linear_GFP + '\n') elif line.startswith('>ENA|AF246292|'): linear_ref.write(line + '\n') while not content[i + 1].startswith('>'): linear_gac_s += content[i + 1] i += 1 linear_ref.write(linear_gacS + '\n') elif line.startswith('>gi|130693907|gb'): linear_ref.write(line + '\n') while not content[i + 1].startswith('>'): linear_control += content[i + 1] i += 1 linear_ref.write(linear_control + '\n') elif line.startswith('>gi|4378778|gb|'): linear_ref.write(line + '\n') while not content[i + 1].startswith('>'): linear_p_me6010 += content[i + 1] i += 1 linear_ref.write(linear_pME6010 + '\n') elif line.startswith('>gi|209211|gb|L08752.1'): linear_ref.write(line + '\n') while not content[i + 1].startswith('>'): linear_p_uc18 += content[i + 1] i += 1 linear_ref.write(linear_pUC18 + '\n') linear_ref.close()
class Difference: def __init__(self, a): self.__elements = a def computeDifference(self): max = self.__elements[0] min = self.__elements[0] for num in self.__elements: if num > max: max = num if num < min: min = num self.maximumDifference = max - min # End of Difference class _ = input() a = [int(e) for e in input().split(' ')] d = Difference(a) d.computeDifference() print(d.maximumDifference)
class Difference: def __init__(self, a): self.__elements = a def compute_difference(self): max = self.__elements[0] min = self.__elements[0] for num in self.__elements: if num > max: max = num if num < min: min = num self.maximumDifference = max - min _ = input() a = [int(e) for e in input().split(' ')] d = difference(a) d.computeDifference() print(d.maximumDifference)
{ "targets": [{ "target_name": "heartbleed", "include_dirs": [ "src", "<(node_root_dir)/deps/openssl/openssl/include", ], "sources": [ "src/heartbleed.cc", ], }], }
{'targets': [{'target_name': 'heartbleed', 'include_dirs': ['src', '<(node_root_dir)/deps/openssl/openssl/include'], 'sources': ['src/heartbleed.cc']}]}
### Attribute IDS CONTROLLER = 500 RULES = 1000 IS_PREMADE_GAME = 1001 PARTIES_PRIVATE = 2000 PARTIES_PREMADE = 2001 PARTIES_PREMADE_1V1 = 2002 PARTIES_PREMADE_2V2 = 2003 PARTIES_PREMADE_3V3 = 2004 PARTIES_PREMADE_4V4 = 2005 PARTIES_PREMADE_FFA = 2006 PARTIES_PREMADE_5V5 = 2007 PARTIES_PREMADE_6V6 = 2008 PARTIES_PRIVATE_ONE = 2010 PARTIES_PRIVATE_TWO = 2011 PARTIES_PRIVATE_THREE = 2012 PARTIES_PRIVATE_FOUR = 2013 PARTIES_PRIVATE_FIVE = 2014 PARTIES_PRIVATE_SIX = 2015 PARTIES_PRIVATE_SEVEN = 2016 PARTIES_PRIVATE_FFA = 2017 PARTIES_PRIVATE_CUSTOM = 2018 PARTIES_PRIVATE_EIGHT = 2019 PARTIES_PRIVATE_NINE = 2020 PARTIES_PRIVATE_TEN = 2021 PARTIES_PRIVATE_ELEVEN = 2022 PARTIES_PRIVATE_FFA_TANDEM = 2023 PARTIES_PRIVATE_CUSTOM_TANDEM = 2024 GAME_SPEED = 3000 RACE = 3001 PARTY_COLOR = 3002 HANDICAP = 3003 AI_SKILL = 3004 AI_RACE = 3005 LOBBY_DELAY = 3006 PARTICIPANT_ROLE = 3007 WATCHER_TYPE = 3008 GAME_MODE = 3009 LOCKED_ALLIANCES = 3010 PLAYER_LOGO = 3011 TANDEM_LEADER = 3012 COMMANDER = 3013 COMMANDER_LEVEL = 3014 GAME_DURATION = 3015 COMMANDER_MASTERY_LEVEL = 3016 AI_BUILD_FIRST = 3100 AI_BUILD_LAST = 3300 PRIVACY_OPTION = 4000 USING_CUSTOM_OBSERVER_UI = 4001 CAN_READY = 4009 LOBBY_MODE = 4010 READY_ORDER_DEPRECATED = 4011 ACTIVE_TEAM = 4012 LOBBY_PHASE = 4015 READYING_COUNT_DEPRECATED = 4016 ACTIVE_ROUND = 4017 READY_MODE = 4018 READY_REQUIREMENTS = 4019 FIRST_ACTIVE_TEAM = 4020 COMMANDER_MASTERY_TALENT_FIRST = 5000 COMMANDER_MASTERY_TALENT_LAST = 5005
controller = 500 rules = 1000 is_premade_game = 1001 parties_private = 2000 parties_premade = 2001 parties_premade_1_v1 = 2002 parties_premade_2_v2 = 2003 parties_premade_3_v3 = 2004 parties_premade_4_v4 = 2005 parties_premade_ffa = 2006 parties_premade_5_v5 = 2007 parties_premade_6_v6 = 2008 parties_private_one = 2010 parties_private_two = 2011 parties_private_three = 2012 parties_private_four = 2013 parties_private_five = 2014 parties_private_six = 2015 parties_private_seven = 2016 parties_private_ffa = 2017 parties_private_custom = 2018 parties_private_eight = 2019 parties_private_nine = 2020 parties_private_ten = 2021 parties_private_eleven = 2022 parties_private_ffa_tandem = 2023 parties_private_custom_tandem = 2024 game_speed = 3000 race = 3001 party_color = 3002 handicap = 3003 ai_skill = 3004 ai_race = 3005 lobby_delay = 3006 participant_role = 3007 watcher_type = 3008 game_mode = 3009 locked_alliances = 3010 player_logo = 3011 tandem_leader = 3012 commander = 3013 commander_level = 3014 game_duration = 3015 commander_mastery_level = 3016 ai_build_first = 3100 ai_build_last = 3300 privacy_option = 4000 using_custom_observer_ui = 4001 can_ready = 4009 lobby_mode = 4010 ready_order_deprecated = 4011 active_team = 4012 lobby_phase = 4015 readying_count_deprecated = 4016 active_round = 4017 ready_mode = 4018 ready_requirements = 4019 first_active_team = 4020 commander_mastery_talent_first = 5000 commander_mastery_talent_last = 5005
adapters = [] for line in open('input.txt', 'r').readlines(): adapters.append(int(line.strip())) adapters = sorted(adapters) device_joltage = adapters[-1] + 3 adapters.append(device_joltage) joltage, one_diff, three_diff = 0, 0, 0 for adapter in adapters: if adapter - joltage == 1: one_diff += 1 elif adapter - joltage == 3: three_diff += 1 joltage = adapter print(one_diff * three_diff)
adapters = [] for line in open('input.txt', 'r').readlines(): adapters.append(int(line.strip())) adapters = sorted(adapters) device_joltage = adapters[-1] + 3 adapters.append(device_joltage) (joltage, one_diff, three_diff) = (0, 0, 0) for adapter in adapters: if adapter - joltage == 1: one_diff += 1 elif adapter - joltage == 3: three_diff += 1 joltage = adapter print(one_diff * three_diff)
class Peak: def __init__(self, startidx): self.born = self.left = self.right = startidx self.died = None def get_persistence(self, seq): return seq[self.born] if self.died is None else seq[self.born] - seq[self.died] def get_persistent_homology(seq): peaks = [] # Maps indices to peaks idxtopeak = [None for s in seq] # Sequence indices sorted by values indices = range(len(seq)) indices = sorted(indices, key = lambda i: seq[i], reverse=True) # Process each sample in descending order for idx in indices: lftdone = (idx > 0 and idxtopeak[idx-1] is not None) rgtdone = (idx < len(seq)-1 and idxtopeak[idx+1] is not None) il = idxtopeak[idx-1] if lftdone else None ir = idxtopeak[idx+1] if rgtdone else None # New peak born if not lftdone and not rgtdone: peaks.append(Peak(idx)) idxtopeak[idx] = len(peaks)-1 # Directly merge to next peak left if lftdone and not rgtdone: peaks[il].right += 1 idxtopeak[idx] = il # Directly merge to next peak right if not lftdone and rgtdone: peaks[ir].left -= 1 idxtopeak[idx] = ir # Merge left and right peaks if lftdone and rgtdone: # Left was born earlier: merge right to left if seq[peaks[il].born] > seq[peaks[ir].born]: peaks[ir].died = idx peaks[il].right = peaks[ir].right idxtopeak[peaks[il].right] = idxtopeak[idx] = il else: peaks[il].died = idx peaks[ir].left = peaks[il].left idxtopeak[peaks[ir].left] = idxtopeak[idx] = ir # This is optional convenience return sorted(peaks, key=lambda p: p.get_persistence(seq), reverse=True)
class Peak: def __init__(self, startidx): self.born = self.left = self.right = startidx self.died = None def get_persistence(self, seq): return seq[self.born] if self.died is None else seq[self.born] - seq[self.died] def get_persistent_homology(seq): peaks = [] idxtopeak = [None for s in seq] indices = range(len(seq)) indices = sorted(indices, key=lambda i: seq[i], reverse=True) for idx in indices: lftdone = idx > 0 and idxtopeak[idx - 1] is not None rgtdone = idx < len(seq) - 1 and idxtopeak[idx + 1] is not None il = idxtopeak[idx - 1] if lftdone else None ir = idxtopeak[idx + 1] if rgtdone else None if not lftdone and (not rgtdone): peaks.append(peak(idx)) idxtopeak[idx] = len(peaks) - 1 if lftdone and (not rgtdone): peaks[il].right += 1 idxtopeak[idx] = il if not lftdone and rgtdone: peaks[ir].left -= 1 idxtopeak[idx] = ir if lftdone and rgtdone: if seq[peaks[il].born] > seq[peaks[ir].born]: peaks[ir].died = idx peaks[il].right = peaks[ir].right idxtopeak[peaks[il].right] = idxtopeak[idx] = il else: peaks[il].died = idx peaks[ir].left = peaks[il].left idxtopeak[peaks[ir].left] = idxtopeak[idx] = ir return sorted(peaks, key=lambda p: p.get_persistence(seq), reverse=True)
a = input() lst = input() ans = [] for i in lst: if i != 'J' and i != 'A' and i != 'V': ans.append(i) if not ans: print("nojava") else: print(*ans,sep='')
a = input() lst = input() ans = [] for i in lst: if i != 'J' and i != 'A' and (i != 'V'): ans.append(i) if not ans: print('nojava') else: print(*ans, sep='')
# -*- coding: utf-8 -*- pokemon_constants = { 1: "BULBASAUR", 2: "IVYSAUR", 3: "VENUSAUR", 4: "CHARMANDER", 5: "CHARMELEON", 6: "CHARIZARD", 7: "SQUIRTLE", 8: "WARTORTLE", 9: "BLASTOISE", 10: "CATERPIE", 11: "METAPOD", 12: "BUTTERFREE", 13: "WEEDLE", 14: "KAKUNA", 15: "BEEDRILL", 16: "PIDGEY", 17: "PIDGEOTTO", 18: "PIDGEOT", 19: "RATTATA", 20: "RATICATE", 21: "SPEAROW", 22: "FEAROW", 23: "EKANS", 24: "ARBOK", 25: "PIKACHU", 26: "RAICHU", 27: "SANDSHREW", 28: "SANDSLASH", 29: "NIDORAN_F", 30: "NIDORINA", 31: "NIDOQUEEN", 32: "NIDORAN_M", 33: "NIDORINO", 34: "NIDOKING", 35: "CLEFAIRY", 36: "CLEFABLE", 37: "VULPIX", 38: "NINETALES", 39: "JIGGLYPUFF", 40: "WIGGLYTUFF", 41: "ZUBAT", 42: "GOLBAT", 43: "ODDISH", 44: "GLOOM", 45: "VILEPLUME", 46: "PARAS", 47: "PARASECT", 48: "VENONAT", 49: "VENOMOTH", 50: "DIGLETT", 51: "DUGTRIO", 52: "MEOWTH", 53: "PERSIAN", 54: "PSYDUCK", 55: "GOLDUCK", 56: "MANKEY", 57: "PRIMEAPE", 58: "GROWLITHE", 59: "ARCANINE", 60: "POLIWAG", 61: "POLIWHIRL", 62: "POLIWRATH", 63: "ABRA", 64: "KADABRA", 65: "ALAKAZAM", 66: "MACHOP", 67: "MACHOKE", 68: "MACHAMP", 69: "BELLSPROUT", 70: "WEEPINBELL", 71: "VICTREEBEL", 72: "TENTACOOL", 73: "TENTACRUEL", 74: "GEODUDE", 75: "GRAVELER", 76: "GOLEM", 77: "PONYTA", 78: "RAPIDASH", 79: "SLOWPOKE", 80: "SLOWBRO", 81: "MAGNEMITE", 82: "MAGNETON", 83: "FARFETCH_D", 84: "DODUO", 85: "DODRIO", 86: "SEEL", 87: "DEWGONG", 88: "GRIMER", 89: "MUK", 90: "SHELLDER", 91: "CLOYSTER", 92: "GASTLY", 93: "HAUNTER", 94: "GENGAR", 95: "ONIX", 96: "DROWZEE", 97: "HYPNO", 98: "KRABBY", 99: "KINGLER", 100: "VOLTORB", 101: "ELECTRODE", 102: "EXEGGCUTE", 103: "EXEGGUTOR", 104: "CUBONE", 105: "MAROWAK", 106: "HITMONLEE", 107: "HITMONCHAN", 108: "LICKITUNG", 109: "KOFFING", 110: "WEEZING", 111: "RHYHORN", 112: "RHYDON", 113: "CHANSEY", 114: "TANGELA", 115: "KANGASKHAN", 116: "HORSEA", 117: "SEADRA", 118: "GOLDEEN", 119: "SEAKING", 120: "STARYU", 121: "STARMIE", 122: "MR__MIME", 123: "SCYTHER", 124: "JYNX", 125: "ELECTABUZZ", 126: "MAGMAR", 127: "PINSIR", 128: "TAUROS", 129: "MAGIKARP", 130: "GYARADOS", 131: "LAPRAS", 132: "DITTO", 133: "EEVEE", 134: "VAPOREON", 135: "JOLTEON", 136: "FLAREON", 137: "PORYGON", 138: "OMANYTE", 139: "OMASTAR", 140: "KABUTO", 141: "KABUTOPS", 142: "AERODACTYL", 143: "SNORLAX", 144: "ARTICUNO", 145: "ZAPDOS", 146: "MOLTRES", 147: "DRATINI", 148: "DRAGONAIR", 149: "DRAGONITE", 150: "MEWTWO", 151: "MEW", 152: "CHIKORITA", 153: "BAYLEEF", 154: "MEGANIUM", 155: "CYNDAQUIL", 156: "QUILAVA", 157: "TYPHLOSION", 158: "TOTODILE", 159: "CROCONAW", 160: "FERALIGATR", 161: "SENTRET", 162: "FURRET", 163: "HOOTHOOT", 164: "NOCTOWL", 165: "LEDYBA", 166: "LEDIAN", 167: "SPINARAK", 168: "ARIADOS", 169: "CROBAT", 170: "CHINCHOU", 171: "LANTURN", 172: "PICHU", 173: "CLEFFA", 174: "IGGLYBUFF", 175: "TOGEPI", 176: "TOGETIC", 177: "NATU", 178: "XATU", 179: "MAREEP", 180: "FLAAFFY", 181: "AMPHAROS", 182: "BELLOSSOM", 183: "MARILL", 184: "AZUMARILL", 185: "SUDOWOODO", 186: "POLITOED", 187: "HOPPIP", 188: "SKIPLOOM", 189: "JUMPLUFF", 190: "AIPOM", 191: "SUNKERN", 192: "SUNFLORA", 193: "YANMA", 194: "WOOPER", 195: "QUAGSIRE", 196: "ESPEON", 197: "UMBREON", 198: "MURKROW", 199: "SLOWKING", 200: "MISDREAVUS", 201: "UNOWN", 202: "WOBBUFFET", 203: "GIRAFARIG", 204: "PINECO", 205: "FORRETRESS", 206: "DUNSPARCE", 207: "GLIGAR", 208: "STEELIX", 209: "SNUBBULL", 210: "GRANBULL", 211: "QWILFISH", 212: "SCIZOR", 213: "SHUCKLE", 214: "HERACROSS", 215: "SNEASEL", 216: "TEDDIURSA", 217: "URSARING", 218: "SLUGMA", 219: "MAGCARGO", 220: "SWINUB", 221: "PILOSWINE", 222: "CORSOLA", 223: "REMORAID", 224: "OCTILLERY", 225: "DELIBIRD", 226: "MANTINE", 227: "SKARMORY", 228: "HOUNDOUR", 229: "HOUNDOOM", 230: "KINGDRA", 231: "PHANPY", 232: "DONPHAN", 233: "PORYGON2", 234: "STANTLER", 235: "SMEARGLE", 236: "TYROGUE", 237: "HITMONTOP", 238: "SMOOCHUM", 239: "ELEKID", 240: "MAGBY", 241: "MILTANK", 242: "BLISSEY", 243: "RAIKOU", 244: "ENTEI", 245: "SUICUNE", 246: "LARVITAR", 247: "PUPITAR", 248: "TYRANITAR", 249: "LUGIA", 250: "HO_OH", 251: "CELEBI", }
pokemon_constants = {1: 'BULBASAUR', 2: 'IVYSAUR', 3: 'VENUSAUR', 4: 'CHARMANDER', 5: 'CHARMELEON', 6: 'CHARIZARD', 7: 'SQUIRTLE', 8: 'WARTORTLE', 9: 'BLASTOISE', 10: 'CATERPIE', 11: 'METAPOD', 12: 'BUTTERFREE', 13: 'WEEDLE', 14: 'KAKUNA', 15: 'BEEDRILL', 16: 'PIDGEY', 17: 'PIDGEOTTO', 18: 'PIDGEOT', 19: 'RATTATA', 20: 'RATICATE', 21: 'SPEAROW', 22: 'FEAROW', 23: 'EKANS', 24: 'ARBOK', 25: 'PIKACHU', 26: 'RAICHU', 27: 'SANDSHREW', 28: 'SANDSLASH', 29: 'NIDORAN_F', 30: 'NIDORINA', 31: 'NIDOQUEEN', 32: 'NIDORAN_M', 33: 'NIDORINO', 34: 'NIDOKING', 35: 'CLEFAIRY', 36: 'CLEFABLE', 37: 'VULPIX', 38: 'NINETALES', 39: 'JIGGLYPUFF', 40: 'WIGGLYTUFF', 41: 'ZUBAT', 42: 'GOLBAT', 43: 'ODDISH', 44: 'GLOOM', 45: 'VILEPLUME', 46: 'PARAS', 47: 'PARASECT', 48: 'VENONAT', 49: 'VENOMOTH', 50: 'DIGLETT', 51: 'DUGTRIO', 52: 'MEOWTH', 53: 'PERSIAN', 54: 'PSYDUCK', 55: 'GOLDUCK', 56: 'MANKEY', 57: 'PRIMEAPE', 58: 'GROWLITHE', 59: 'ARCANINE', 60: 'POLIWAG', 61: 'POLIWHIRL', 62: 'POLIWRATH', 63: 'ABRA', 64: 'KADABRA', 65: 'ALAKAZAM', 66: 'MACHOP', 67: 'MACHOKE', 68: 'MACHAMP', 69: 'BELLSPROUT', 70: 'WEEPINBELL', 71: 'VICTREEBEL', 72: 'TENTACOOL', 73: 'TENTACRUEL', 74: 'GEODUDE', 75: 'GRAVELER', 76: 'GOLEM', 77: 'PONYTA', 78: 'RAPIDASH', 79: 'SLOWPOKE', 80: 'SLOWBRO', 81: 'MAGNEMITE', 82: 'MAGNETON', 83: 'FARFETCH_D', 84: 'DODUO', 85: 'DODRIO', 86: 'SEEL', 87: 'DEWGONG', 88: 'GRIMER', 89: 'MUK', 90: 'SHELLDER', 91: 'CLOYSTER', 92: 'GASTLY', 93: 'HAUNTER', 94: 'GENGAR', 95: 'ONIX', 96: 'DROWZEE', 97: 'HYPNO', 98: 'KRABBY', 99: 'KINGLER', 100: 'VOLTORB', 101: 'ELECTRODE', 102: 'EXEGGCUTE', 103: 'EXEGGUTOR', 104: 'CUBONE', 105: 'MAROWAK', 106: 'HITMONLEE', 107: 'HITMONCHAN', 108: 'LICKITUNG', 109: 'KOFFING', 110: 'WEEZING', 111: 'RHYHORN', 112: 'RHYDON', 113: 'CHANSEY', 114: 'TANGELA', 115: 'KANGASKHAN', 116: 'HORSEA', 117: 'SEADRA', 118: 'GOLDEEN', 119: 'SEAKING', 120: 'STARYU', 121: 'STARMIE', 122: 'MR__MIME', 123: 'SCYTHER', 124: 'JYNX', 125: 'ELECTABUZZ', 126: 'MAGMAR', 127: 'PINSIR', 128: 'TAUROS', 129: 'MAGIKARP', 130: 'GYARADOS', 131: 'LAPRAS', 132: 'DITTO', 133: 'EEVEE', 134: 'VAPOREON', 135: 'JOLTEON', 136: 'FLAREON', 137: 'PORYGON', 138: 'OMANYTE', 139: 'OMASTAR', 140: 'KABUTO', 141: 'KABUTOPS', 142: 'AERODACTYL', 143: 'SNORLAX', 144: 'ARTICUNO', 145: 'ZAPDOS', 146: 'MOLTRES', 147: 'DRATINI', 148: 'DRAGONAIR', 149: 'DRAGONITE', 150: 'MEWTWO', 151: 'MEW', 152: 'CHIKORITA', 153: 'BAYLEEF', 154: 'MEGANIUM', 155: 'CYNDAQUIL', 156: 'QUILAVA', 157: 'TYPHLOSION', 158: 'TOTODILE', 159: 'CROCONAW', 160: 'FERALIGATR', 161: 'SENTRET', 162: 'FURRET', 163: 'HOOTHOOT', 164: 'NOCTOWL', 165: 'LEDYBA', 166: 'LEDIAN', 167: 'SPINARAK', 168: 'ARIADOS', 169: 'CROBAT', 170: 'CHINCHOU', 171: 'LANTURN', 172: 'PICHU', 173: 'CLEFFA', 174: 'IGGLYBUFF', 175: 'TOGEPI', 176: 'TOGETIC', 177: 'NATU', 178: 'XATU', 179: 'MAREEP', 180: 'FLAAFFY', 181: 'AMPHAROS', 182: 'BELLOSSOM', 183: 'MARILL', 184: 'AZUMARILL', 185: 'SUDOWOODO', 186: 'POLITOED', 187: 'HOPPIP', 188: 'SKIPLOOM', 189: 'JUMPLUFF', 190: 'AIPOM', 191: 'SUNKERN', 192: 'SUNFLORA', 193: 'YANMA', 194: 'WOOPER', 195: 'QUAGSIRE', 196: 'ESPEON', 197: 'UMBREON', 198: 'MURKROW', 199: 'SLOWKING', 200: 'MISDREAVUS', 201: 'UNOWN', 202: 'WOBBUFFET', 203: 'GIRAFARIG', 204: 'PINECO', 205: 'FORRETRESS', 206: 'DUNSPARCE', 207: 'GLIGAR', 208: 'STEELIX', 209: 'SNUBBULL', 210: 'GRANBULL', 211: 'QWILFISH', 212: 'SCIZOR', 213: 'SHUCKLE', 214: 'HERACROSS', 215: 'SNEASEL', 216: 'TEDDIURSA', 217: 'URSARING', 218: 'SLUGMA', 219: 'MAGCARGO', 220: 'SWINUB', 221: 'PILOSWINE', 222: 'CORSOLA', 223: 'REMORAID', 224: 'OCTILLERY', 225: 'DELIBIRD', 226: 'MANTINE', 227: 'SKARMORY', 228: 'HOUNDOUR', 229: 'HOUNDOOM', 230: 'KINGDRA', 231: 'PHANPY', 232: 'DONPHAN', 233: 'PORYGON2', 234: 'STANTLER', 235: 'SMEARGLE', 236: 'TYROGUE', 237: 'HITMONTOP', 238: 'SMOOCHUM', 239: 'ELEKID', 240: 'MAGBY', 241: 'MILTANK', 242: 'BLISSEY', 243: 'RAIKOU', 244: 'ENTEI', 245: 'SUICUNE', 246: 'LARVITAR', 247: 'PUPITAR', 248: 'TYRANITAR', 249: 'LUGIA', 250: 'HO_OH', 251: 'CELEBI'}
# # PySNMP MIB module CISCO-LWAPP-DOT11-LDAP-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-LWAPP-DOT11-LDAP-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:48:27 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, SingleValueConstraint, ConstraintsUnion, ValueRangeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsUnion", "ValueRangeConstraint", "ConstraintsIntersection") cLWlanIndex, = mibBuilder.importSymbols("CISCO-LWAPP-WLAN-MIB", "cLWlanIndex") ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt") InetPortNumber, InetAddress, InetAddressType = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetPortNumber", "InetAddress", "InetAddressType") SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString") ModuleCompliance, NotificationGroup, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup", "ObjectGroup") MibScalar, MibTable, MibTableRow, MibTableColumn, Unsigned32, Gauge32, MibIdentifier, NotificationType, TimeTicks, Counter32, Bits, IpAddress, iso, ObjectIdentity, Counter64, Integer32, ModuleIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Unsigned32", "Gauge32", "MibIdentifier", "NotificationType", "TimeTicks", "Counter32", "Bits", "IpAddress", "iso", "ObjectIdentity", "Counter64", "Integer32", "ModuleIdentity") DisplayString, RowStatus, TextualConvention, StorageType, TruthValue = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "RowStatus", "TextualConvention", "StorageType", "TruthValue") ciscoLwappDot11LdapMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 614)) ciscoLwappDot11LdapMIB.setRevisions(('2009-12-10 00:00', '2007-01-13 00:00',)) if mibBuilder.loadTexts: ciscoLwappDot11LdapMIB.setLastUpdated('200912100000Z') if mibBuilder.loadTexts: ciscoLwappDot11LdapMIB.setOrganization('Cisco Systems Inc.') ciscoLwappDot11LdapMIBNotifs = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 614, 0)) ciscoLwappDot11LdapMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 614, 1)) ciscoLwappDot11LdapMIBConform = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 614, 2)) cldlConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1)) cldlStatus = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 2)) class CldlBindType(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("anonymous", 1), ("authenticated", 2)) cldlServerTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 1), ) if mibBuilder.loadTexts: cldlServerTable.setStatus('current') cldlServerEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 1, 1), ).setIndexNames((0, "CISCO-LWAPP-DOT11-LDAP-MIB", "cldlServerIndex")) if mibBuilder.loadTexts: cldlServerEntry.setStatus('current') cldlServerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 1, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))) if mibBuilder.loadTexts: cldlServerIndex.setStatus('current') cldlServerAddressType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 1, 1, 2), InetAddressType()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cldlServerAddressType.setStatus('current') cldlServerAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 1, 1, 3), InetAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cldlServerAddress.setStatus('current') cldlServerPortNum = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 1, 1, 4), InetPortNumber().clone(389)).setMaxAccess("readcreate") if mibBuilder.loadTexts: cldlServerPortNum.setStatus('current') cldlServerState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 1, 1, 5), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cldlServerState.setStatus('current') cldlServerTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 1, 1, 6), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(2, 30))).setUnits('seconds').setMaxAccess("readcreate") if mibBuilder.loadTexts: cldlServerTimeout.setStatus('current') cldlServerUserBase = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 1, 1, 7), DisplayString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cldlServerUserBase.setStatus('current') cldlServerUserNameAttribute = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 1, 1, 8), DisplayString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cldlServerUserNameAttribute.setStatus('current') cldlServerUserName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 1, 1, 9), DisplayString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cldlServerUserName.setStatus('current') cldlServerSecurityEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 1, 1, 10), TruthValue().clone('false')).setMaxAccess("readcreate") if mibBuilder.loadTexts: cldlServerSecurityEnable.setStatus('current') cldlServerStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 1, 1, 11), StorageType().clone('nonVolatile')).setMaxAccess("readcreate") if mibBuilder.loadTexts: cldlServerStorageType.setStatus('current') cldlServerRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 1, 1, 12), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cldlServerRowStatus.setStatus('current') cldlServerBindType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 1, 1, 13), CldlBindType().clone('anonymous')).setMaxAccess("readcreate") if mibBuilder.loadTexts: cldlServerBindType.setStatus('current') cldlServerAuthBindUserName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 1, 1, 14), SnmpAdminString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cldlServerAuthBindUserName.setStatus('current') cldlServerAuthBindPassword = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 1, 1, 15), SnmpAdminString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cldlServerAuthBindPassword.setStatus('current') cldlWlanLdapTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 2), ) if mibBuilder.loadTexts: cldlWlanLdapTable.setStatus('current') cldlWlanLdapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 2, 1), ).setIndexNames((0, "CISCO-LWAPP-WLAN-MIB", "cLWlanIndex")) if mibBuilder.loadTexts: cldlWlanLdapEntry.setStatus('current') cldlWlanLdapPrimaryServerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 2, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cldlWlanLdapPrimaryServerIndex.setStatus('current') cldlWlanLdapSecondaryServerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 2, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cldlWlanLdapSecondaryServerIndex.setStatus('current') cldlWlanLdapTertiaryServerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 2, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cldlWlanLdapTertiaryServerIndex.setStatus('current') ciscoLwappDot11LdapMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 614, 2, 1)) ciscoLwappDot11LdapMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 614, 2, 2)) ciscoLwappDot11LdapMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 614, 2, 1, 1)).setObjects(("CISCO-LWAPP-DOT11-LDAP-MIB", "ciscoLwappDot11LdapMIBConfigGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoLwappDot11LdapMIBCompliance = ciscoLwappDot11LdapMIBCompliance.setStatus('deprecated') ciscoLwappDot11LdapMIBComplianceRev1 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 614, 2, 1, 2)).setObjects(("CISCO-LWAPP-DOT11-LDAP-MIB", "ciscoLwappDot11LdapMIBConfigGroup"), ("CISCO-LWAPP-DOT11-LDAP-MIB", "ciscoLwappDot11LdapMIBConfigGroupSup1")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoLwappDot11LdapMIBComplianceRev1 = ciscoLwappDot11LdapMIBComplianceRev1.setStatus('current') ciscoLwappDot11LdapMIBConfigGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 614, 2, 2, 1)).setObjects(("CISCO-LWAPP-DOT11-LDAP-MIB", "cldlServerAddressType"), ("CISCO-LWAPP-DOT11-LDAP-MIB", "cldlServerAddress"), ("CISCO-LWAPP-DOT11-LDAP-MIB", "cldlServerPortNum"), ("CISCO-LWAPP-DOT11-LDAP-MIB", "cldlServerState"), ("CISCO-LWAPP-DOT11-LDAP-MIB", "cldlServerTimeout"), ("CISCO-LWAPP-DOT11-LDAP-MIB", "cldlServerUserBase"), ("CISCO-LWAPP-DOT11-LDAP-MIB", "cldlServerUserNameAttribute"), ("CISCO-LWAPP-DOT11-LDAP-MIB", "cldlServerUserName"), ("CISCO-LWAPP-DOT11-LDAP-MIB", "cldlServerSecurityEnable"), ("CISCO-LWAPP-DOT11-LDAP-MIB", "cldlServerRowStatus"), ("CISCO-LWAPP-DOT11-LDAP-MIB", "cldlServerStorageType"), ("CISCO-LWAPP-DOT11-LDAP-MIB", "cldlWlanLdapPrimaryServerIndex"), ("CISCO-LWAPP-DOT11-LDAP-MIB", "cldlWlanLdapSecondaryServerIndex"), ("CISCO-LWAPP-DOT11-LDAP-MIB", "cldlWlanLdapTertiaryServerIndex")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoLwappDot11LdapMIBConfigGroup = ciscoLwappDot11LdapMIBConfigGroup.setStatus('current') ciscoLwappDot11LdapMIBConfigGroupSup1 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 614, 2, 2, 2)).setObjects(("CISCO-LWAPP-DOT11-LDAP-MIB", "cldlServerBindType"), ("CISCO-LWAPP-DOT11-LDAP-MIB", "cldlServerAuthBindUserName"), ("CISCO-LWAPP-DOT11-LDAP-MIB", "cldlServerAuthBindPassword")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoLwappDot11LdapMIBConfigGroupSup1 = ciscoLwappDot11LdapMIBConfigGroupSup1.setStatus('current') mibBuilder.exportSymbols("CISCO-LWAPP-DOT11-LDAP-MIB", cldlServerAuthBindUserName=cldlServerAuthBindUserName, ciscoLwappDot11LdapMIBCompliances=ciscoLwappDot11LdapMIBCompliances, cldlServerUserNameAttribute=cldlServerUserNameAttribute, cldlServerState=cldlServerState, cldlServerAddressType=cldlServerAddressType, cldlServerAuthBindPassword=cldlServerAuthBindPassword, cldlStatus=cldlStatus, cldlWlanLdapPrimaryServerIndex=cldlWlanLdapPrimaryServerIndex, cldlServerBindType=cldlServerBindType, cldlServerRowStatus=cldlServerRowStatus, cldlServerSecurityEnable=cldlServerSecurityEnable, cldlServerUserBase=cldlServerUserBase, ciscoLwappDot11LdapMIBConform=ciscoLwappDot11LdapMIBConform, cldlServerIndex=cldlServerIndex, ciscoLwappDot11LdapMIBConfigGroup=ciscoLwappDot11LdapMIBConfigGroup, cldlConfig=cldlConfig, ciscoLwappDot11LdapMIB=ciscoLwappDot11LdapMIB, ciscoLwappDot11LdapMIBNotifs=ciscoLwappDot11LdapMIBNotifs, cldlServerTimeout=cldlServerTimeout, PYSNMP_MODULE_ID=ciscoLwappDot11LdapMIB, ciscoLwappDot11LdapMIBConfigGroupSup1=ciscoLwappDot11LdapMIBConfigGroupSup1, cldlWlanLdapEntry=cldlWlanLdapEntry, cldlServerUserName=cldlServerUserName, ciscoLwappDot11LdapMIBObjects=ciscoLwappDot11LdapMIBObjects, cldlServerStorageType=cldlServerStorageType, cldlWlanLdapTertiaryServerIndex=cldlWlanLdapTertiaryServerIndex, ciscoLwappDot11LdapMIBCompliance=ciscoLwappDot11LdapMIBCompliance, CldlBindType=CldlBindType, cldlServerTable=cldlServerTable, cldlServerEntry=cldlServerEntry, ciscoLwappDot11LdapMIBGroups=ciscoLwappDot11LdapMIBGroups, ciscoLwappDot11LdapMIBComplianceRev1=ciscoLwappDot11LdapMIBComplianceRev1, cldlServerPortNum=cldlServerPortNum, cldlWlanLdapTable=cldlWlanLdapTable, cldlWlanLdapSecondaryServerIndex=cldlWlanLdapSecondaryServerIndex, cldlServerAddress=cldlServerAddress)
(integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, single_value_constraint, constraints_union, value_range_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'SingleValueConstraint', 'ConstraintsUnion', 'ValueRangeConstraint', 'ConstraintsIntersection') (c_l_wlan_index,) = mibBuilder.importSymbols('CISCO-LWAPP-WLAN-MIB', 'cLWlanIndex') (cisco_mgmt,) = mibBuilder.importSymbols('CISCO-SMI', 'ciscoMgmt') (inet_port_number, inet_address, inet_address_type) = mibBuilder.importSymbols('INET-ADDRESS-MIB', 'InetPortNumber', 'InetAddress', 'InetAddressType') (snmp_admin_string,) = mibBuilder.importSymbols('SNMP-FRAMEWORK-MIB', 'SnmpAdminString') (module_compliance, notification_group, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup', 'ObjectGroup') (mib_scalar, mib_table, mib_table_row, mib_table_column, unsigned32, gauge32, mib_identifier, notification_type, time_ticks, counter32, bits, ip_address, iso, object_identity, counter64, integer32, module_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Unsigned32', 'Gauge32', 'MibIdentifier', 'NotificationType', 'TimeTicks', 'Counter32', 'Bits', 'IpAddress', 'iso', 'ObjectIdentity', 'Counter64', 'Integer32', 'ModuleIdentity') (display_string, row_status, textual_convention, storage_type, truth_value) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'RowStatus', 'TextualConvention', 'StorageType', 'TruthValue') cisco_lwapp_dot11_ldap_mib = module_identity((1, 3, 6, 1, 4, 1, 9, 9, 614)) ciscoLwappDot11LdapMIB.setRevisions(('2009-12-10 00:00', '2007-01-13 00:00')) if mibBuilder.loadTexts: ciscoLwappDot11LdapMIB.setLastUpdated('200912100000Z') if mibBuilder.loadTexts: ciscoLwappDot11LdapMIB.setOrganization('Cisco Systems Inc.') cisco_lwapp_dot11_ldap_mib_notifs = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 614, 0)) cisco_lwapp_dot11_ldap_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 614, 1)) cisco_lwapp_dot11_ldap_mib_conform = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 614, 2)) cldl_config = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1)) cldl_status = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 2)) class Cldlbindtype(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('anonymous', 1), ('authenticated', 2)) cldl_server_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 1)) if mibBuilder.loadTexts: cldlServerTable.setStatus('current') cldl_server_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 1, 1)).setIndexNames((0, 'CISCO-LWAPP-DOT11-LDAP-MIB', 'cldlServerIndex')) if mibBuilder.loadTexts: cldlServerEntry.setStatus('current') cldl_server_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 1, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 255))) if mibBuilder.loadTexts: cldlServerIndex.setStatus('current') cldl_server_address_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 1, 1, 2), inet_address_type()).setMaxAccess('readcreate') if mibBuilder.loadTexts: cldlServerAddressType.setStatus('current') cldl_server_address = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 1, 1, 3), inet_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: cldlServerAddress.setStatus('current') cldl_server_port_num = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 1, 1, 4), inet_port_number().clone(389)).setMaxAccess('readcreate') if mibBuilder.loadTexts: cldlServerPortNum.setStatus('current') cldl_server_state = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 1, 1, 5), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: cldlServerState.setStatus('current') cldl_server_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 1, 1, 6), unsigned32().subtype(subtypeSpec=value_range_constraint(2, 30))).setUnits('seconds').setMaxAccess('readcreate') if mibBuilder.loadTexts: cldlServerTimeout.setStatus('current') cldl_server_user_base = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 1, 1, 7), display_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: cldlServerUserBase.setStatus('current') cldl_server_user_name_attribute = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 1, 1, 8), display_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: cldlServerUserNameAttribute.setStatus('current') cldl_server_user_name = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 1, 1, 9), display_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: cldlServerUserName.setStatus('current') cldl_server_security_enable = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 1, 1, 10), truth_value().clone('false')).setMaxAccess('readcreate') if mibBuilder.loadTexts: cldlServerSecurityEnable.setStatus('current') cldl_server_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 1, 1, 11), storage_type().clone('nonVolatile')).setMaxAccess('readcreate') if mibBuilder.loadTexts: cldlServerStorageType.setStatus('current') cldl_server_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 1, 1, 12), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: cldlServerRowStatus.setStatus('current') cldl_server_bind_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 1, 1, 13), cldl_bind_type().clone('anonymous')).setMaxAccess('readcreate') if mibBuilder.loadTexts: cldlServerBindType.setStatus('current') cldl_server_auth_bind_user_name = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 1, 1, 14), snmp_admin_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: cldlServerAuthBindUserName.setStatus('current') cldl_server_auth_bind_password = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 1, 1, 15), snmp_admin_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: cldlServerAuthBindPassword.setStatus('current') cldl_wlan_ldap_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 2)) if mibBuilder.loadTexts: cldlWlanLdapTable.setStatus('current') cldl_wlan_ldap_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 2, 1)).setIndexNames((0, 'CISCO-LWAPP-WLAN-MIB', 'cLWlanIndex')) if mibBuilder.loadTexts: cldlWlanLdapEntry.setStatus('current') cldl_wlan_ldap_primary_server_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 2, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cldlWlanLdapPrimaryServerIndex.setStatus('current') cldl_wlan_ldap_secondary_server_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 2, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cldlWlanLdapSecondaryServerIndex.setStatus('current') cldl_wlan_ldap_tertiary_server_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 614, 1, 1, 2, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cldlWlanLdapTertiaryServerIndex.setStatus('current') cisco_lwapp_dot11_ldap_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 614, 2, 1)) cisco_lwapp_dot11_ldap_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 614, 2, 2)) cisco_lwapp_dot11_ldap_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 614, 2, 1, 1)).setObjects(('CISCO-LWAPP-DOT11-LDAP-MIB', 'ciscoLwappDot11LdapMIBConfigGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_lwapp_dot11_ldap_mib_compliance = ciscoLwappDot11LdapMIBCompliance.setStatus('deprecated') cisco_lwapp_dot11_ldap_mib_compliance_rev1 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 614, 2, 1, 2)).setObjects(('CISCO-LWAPP-DOT11-LDAP-MIB', 'ciscoLwappDot11LdapMIBConfigGroup'), ('CISCO-LWAPP-DOT11-LDAP-MIB', 'ciscoLwappDot11LdapMIBConfigGroupSup1')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_lwapp_dot11_ldap_mib_compliance_rev1 = ciscoLwappDot11LdapMIBComplianceRev1.setStatus('current') cisco_lwapp_dot11_ldap_mib_config_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 614, 2, 2, 1)).setObjects(('CISCO-LWAPP-DOT11-LDAP-MIB', 'cldlServerAddressType'), ('CISCO-LWAPP-DOT11-LDAP-MIB', 'cldlServerAddress'), ('CISCO-LWAPP-DOT11-LDAP-MIB', 'cldlServerPortNum'), ('CISCO-LWAPP-DOT11-LDAP-MIB', 'cldlServerState'), ('CISCO-LWAPP-DOT11-LDAP-MIB', 'cldlServerTimeout'), ('CISCO-LWAPP-DOT11-LDAP-MIB', 'cldlServerUserBase'), ('CISCO-LWAPP-DOT11-LDAP-MIB', 'cldlServerUserNameAttribute'), ('CISCO-LWAPP-DOT11-LDAP-MIB', 'cldlServerUserName'), ('CISCO-LWAPP-DOT11-LDAP-MIB', 'cldlServerSecurityEnable'), ('CISCO-LWAPP-DOT11-LDAP-MIB', 'cldlServerRowStatus'), ('CISCO-LWAPP-DOT11-LDAP-MIB', 'cldlServerStorageType'), ('CISCO-LWAPP-DOT11-LDAP-MIB', 'cldlWlanLdapPrimaryServerIndex'), ('CISCO-LWAPP-DOT11-LDAP-MIB', 'cldlWlanLdapSecondaryServerIndex'), ('CISCO-LWAPP-DOT11-LDAP-MIB', 'cldlWlanLdapTertiaryServerIndex')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_lwapp_dot11_ldap_mib_config_group = ciscoLwappDot11LdapMIBConfigGroup.setStatus('current') cisco_lwapp_dot11_ldap_mib_config_group_sup1 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 614, 2, 2, 2)).setObjects(('CISCO-LWAPP-DOT11-LDAP-MIB', 'cldlServerBindType'), ('CISCO-LWAPP-DOT11-LDAP-MIB', 'cldlServerAuthBindUserName'), ('CISCO-LWAPP-DOT11-LDAP-MIB', 'cldlServerAuthBindPassword')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_lwapp_dot11_ldap_mib_config_group_sup1 = ciscoLwappDot11LdapMIBConfigGroupSup1.setStatus('current') mibBuilder.exportSymbols('CISCO-LWAPP-DOT11-LDAP-MIB', cldlServerAuthBindUserName=cldlServerAuthBindUserName, ciscoLwappDot11LdapMIBCompliances=ciscoLwappDot11LdapMIBCompliances, cldlServerUserNameAttribute=cldlServerUserNameAttribute, cldlServerState=cldlServerState, cldlServerAddressType=cldlServerAddressType, cldlServerAuthBindPassword=cldlServerAuthBindPassword, cldlStatus=cldlStatus, cldlWlanLdapPrimaryServerIndex=cldlWlanLdapPrimaryServerIndex, cldlServerBindType=cldlServerBindType, cldlServerRowStatus=cldlServerRowStatus, cldlServerSecurityEnable=cldlServerSecurityEnable, cldlServerUserBase=cldlServerUserBase, ciscoLwappDot11LdapMIBConform=ciscoLwappDot11LdapMIBConform, cldlServerIndex=cldlServerIndex, ciscoLwappDot11LdapMIBConfigGroup=ciscoLwappDot11LdapMIBConfigGroup, cldlConfig=cldlConfig, ciscoLwappDot11LdapMIB=ciscoLwappDot11LdapMIB, ciscoLwappDot11LdapMIBNotifs=ciscoLwappDot11LdapMIBNotifs, cldlServerTimeout=cldlServerTimeout, PYSNMP_MODULE_ID=ciscoLwappDot11LdapMIB, ciscoLwappDot11LdapMIBConfigGroupSup1=ciscoLwappDot11LdapMIBConfigGroupSup1, cldlWlanLdapEntry=cldlWlanLdapEntry, cldlServerUserName=cldlServerUserName, ciscoLwappDot11LdapMIBObjects=ciscoLwappDot11LdapMIBObjects, cldlServerStorageType=cldlServerStorageType, cldlWlanLdapTertiaryServerIndex=cldlWlanLdapTertiaryServerIndex, ciscoLwappDot11LdapMIBCompliance=ciscoLwappDot11LdapMIBCompliance, CldlBindType=CldlBindType, cldlServerTable=cldlServerTable, cldlServerEntry=cldlServerEntry, ciscoLwappDot11LdapMIBGroups=ciscoLwappDot11LdapMIBGroups, ciscoLwappDot11LdapMIBComplianceRev1=ciscoLwappDot11LdapMIBComplianceRev1, cldlServerPortNum=cldlServerPortNum, cldlWlanLdapTable=cldlWlanLdapTable, cldlWlanLdapSecondaryServerIndex=cldlWlanLdapSecondaryServerIndex, cldlServerAddress=cldlServerAddress)
# k = 0 # string = "**A31" # while k < len(string): # valid_letters = ["A"," ","X","Y","*","1","2","3","4","5","6","7","8","9","W","F"] # if string[k] not in valid_letters: # raise ValueError("Bad letter in configuration file: {}".format(string[k])) # k += 1 # lines = ['**X**', '* *', '**Y**'] # i = 0 # while i < len(lines): # string = lines[i] # k = 0 # while k < len(string): # valid_letters = ["A"," ","X","Y","*","1","2","3","4","5","6","7","8","9","W","F"] # if string[k] not in valid_letters: # raise ValueError("Bad letter in configuration file: {}".format(string[k])) # # occurence_x = "X" # # occurence_y = "Y" # k += 1 # i+=1 # st = "hi" # x_count = 0 # x_count += st.count("X") # print(x_count) ls = ['2', '3', '2', '4', '4','5'] counts = [[x,ls.count(x)] for x in set(ls)] print(counts) print(counts[0][1]) x = 0 while x < len(counts): if counts[x][1] != 2: print("this number does not have matching pair {}".format(counts[x][0])) break x += 1
ls = ['2', '3', '2', '4', '4', '5'] counts = [[x, ls.count(x)] for x in set(ls)] print(counts) print(counts[0][1]) x = 0 while x < len(counts): if counts[x][1] != 2: print('this number does not have matching pair {}'.format(counts[x][0])) break x += 1
# encoding: UTF-8 DATA_RECORDER = u'Data Recorder' TICK_RECORD = u'Tick Record' BAR_RECORD = u'Bar Record' CONTRACT_SYMBOL = u'Contract Symbol' GATEWAY = u'Gateway' DOMINANT_CONTRACT = u'Dominant Contract' DOMINANT_SYMBOL = u'Dominant Symbol' TICK_LOGGING_MESSAGE = u'Record Tick Data {symbol}, Time:{time}, last:{last}, bid:{bid}, ask:{ask}' BAR_LOGGING_MESSAGE = u'Record Bar Data {symbol}, Time:{time}, O:{open}, H:{high}, L:{low}, C:{close}'
data_recorder = u'Data Recorder' tick_record = u'Tick Record' bar_record = u'Bar Record' contract_symbol = u'Contract Symbol' gateway = u'Gateway' dominant_contract = u'Dominant Contract' dominant_symbol = u'Dominant Symbol' tick_logging_message = u'Record Tick Data {symbol}, Time:{time}, last:{last}, bid:{bid}, ask:{ask}' bar_logging_message = u'Record Bar Data {symbol}, Time:{time}, O:{open}, H:{high}, L:{low}, C:{close}'
__version__ = "4.2.1" __doc__ = ''' # Table of Contents - Introduction - [EnviroMS](#EnviroMS) - [Version](#current-version) - [Data Input](#data-input-formats) - [Data Output](#data-output-formats) - [Data Structure](#data-structure-types) - [Features](#molecular-formulae-search-and-assignment) - Installation - [PyPi](#enviroms-installation) - Execution: - [CLI](#running-the-workflow) - [MiniWDL](#MiniWDL) - [Docker Container](#enviroms-docker) # EnviroMS **EnviroMS** is a workflow for natural organic matter data processing and annotation ## Current Version ### `4.1.1` ### Data input formats - Generic mass list in profile and centroid mode (include all delimiters types and Excel formats) ### Data output formats - Pandas data frame (can be saved using pickle, h5, etc) - Text Files (.csv, tab separated .txt, etc) - Microsoft Excel (xlsx) - Automatic JSON for workflow metadata - Self-containing Hierarchical Data Format (.hdf5) including raw data and ime-series data-point for processed data-sets with all associated workflow metadata (JSON) ### Data structure types - FT-ICR MS - LC-FT-ICR MS ### Molecular formulae search and assignment - Automatic local (SQLite) or external (PostgreSQL) database check, generation, and search - Automatic molecular formulae assignments algorithm for ESI(-) MS for natural organic matter analysis - Automatic fine isotopic structure calculation and search for all isotopes - Flexible Kendrick normalization base - Kendrick filter using density-based clustering - Kendrick classification - Hetero atoms classification and visualization ## EnviroMS Installation - PyPi: ```bash pip3 install enviroms ``` - From source: ```bash pip3 install --editable . ``` To be able to open thermo raw files a installation of pythonnet is needed: - Windows: ```bash pip3 install pythonnet ``` - Mac and Linux: ```bash brew install mono pip3 install pythonnet ``` ## Running the workflow ```bash enviroMS dump-corems-enviroms-template EnviromsFile.json ``` ```bash enviroMS dump-corems-template CoremsFile.json ``` Modify the EnviromsFile.json and CoremsFile.json accordingly to your dataset and workflow parameters make sure to include CoremsFile.json path inside the EnviromsFile.json: "corems_json_path": "path_to_CoremsFile.json" ```bash enviroMS run-di path_to_MetamsFile.json ``` ## MiniWDL - Change wdl/enviroms_input.json to specify the data location - Change data/CoremsFile.json to specify the workflow parameters Install miniWDL: ```bash pip3 install miniwdl ``` Call: ```bash miniwdl run wdl/enviroMS.wdl -i wdl/enviroms_input.json --verbose --no-cache --copy-input-files ``` WARNING ** Current mode only allows for multiprocessing in a single node and it defaults to one job at a time. To use multiprocessing mode modify the parameter "runDirectInfusion.jobs_count" in the enviroMS.wdl and modify the parameter "MolecularFormulaSearch.url_database" on CoremsFile.json to point to a Postgresql url. The default is set to use SQLite and it will fail on multiprocessing mode. ## EnviroMS Docker A docker image containing the EnviroMS command line as code entry-point If you don't have docker installed, the easiest way is to [install docker for desktop](https://hub.docker.com/?overlay=onboarding) - Pull from Docker Registry: ```bash docker pull corilo/enviroms:latest ``` - Or to build the image from source: ```bash docker build -t enviroms:latest . ``` - Run Workflow from Container: $(data_dir) = dir_containing the FT-ICR MS data, EnviromsFile.json and CoremsFile.json ```bash docker run -v $(data_dir):/enviroms/data corilo/enviroms:latest enviroMS run-di /enviroms/data/EnviromsFile.json ``` - Save a new parameters file template: ```bash docker run -v $(data_dir):/enviroms/data corilo/enviroms:latest enviroMS dump_json_template /enviroms/data/EnviromsFile.json ``` ```bash docker run -v $(data_dir):/metaB/data corilo/enviroms:latest enviroMS dump_corems_json_template /metaB/data/CoremsFile.json ``` ## Disclaimer This material was prepared as an account of work sponsored by an agency of the United States Government. Neither the United States Government nor the United States Department of Energy, nor Battelle, nor any of their employees, nor any jurisdiction or organization that has cooperated in the development of these materials, makes any warranty, express or implied, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness or any information, apparatus, product, software, or process disclosed, or represents that its use would not infringe privately owned rights. Reference herein to any specific commercial product, process, or service by trade name, trademark, manufacturer, or otherwise does not necessarily constitute or imply its endorsement, recommendation, or favoring by the United States Government or any agency thereof, or Battelle Memorial Institute. The views and opinions of authors expressed herein do not necessarily state or reflect those of the United States Government or any agency thereof. PACIFIC NORTHWEST NATIONAL LABORATORY operated by BATTELLE for the UNITED STATES DEPARTMENT OF ENERGY under Contract DE-AC05-76RL01830 '''
__version__ = '4.2.1' __doc__ = '\n# Table of Contents \n- Introduction\n - [EnviroMS](#EnviroMS) \n - [Version](#current-version) \n - [Data Input](#data-input-formats) \n - [Data Output](#data-output-formats) \n - [Data Structure](#data-structure-types) \n - [Features](#molecular-formulae-search-and-assignment) \n- Installation\n - [PyPi](#enviroms-installation) \n- Execution: \n - [CLI](#running-the-workflow) \n - [MiniWDL](#MiniWDL) \n - [Docker Container](#enviroms-docker) \n \n\n# EnviroMS\n\n**EnviroMS** is a workflow for natural organic matter data processing and annotation\n\n## Current Version\n\n### `4.1.1`\n\n### Data input formats\n\n- Generic mass list in profile and centroid mode (include all delimiters types and Excel formats)\n\n### Data output formats\n\n- Pandas data frame (can be saved using pickle, h5, etc)\n- Text Files (.csv, tab separated .txt, etc)\n- Microsoft Excel (xlsx)\n- Automatic JSON for workflow metadata\n- Self-containing Hierarchical Data Format (.hdf5) including raw data and ime-series data-point for processed data-sets with all associated workflow metadata (JSON)\n\n### Data structure types\n\n- FT-ICR MS\n- LC-FT-ICR MS\n\n### Molecular formulae search and assignment\n\n- Automatic local (SQLite) or external (PostgreSQL) database check, generation, and search\n- Automatic molecular formulae assignments algorithm for ESI(-) MS for natural organic matter analysis\n- Automatic fine isotopic structure calculation and search for all isotopes\n- Flexible Kendrick normalization base\n- Kendrick filter using density-based clustering\n- Kendrick classification\n- Hetero atoms classification and visualization\n\n\n## EnviroMS Installation\n\n- PyPi: \n```bash\npip3 install enviroms\n```\n\n- From source:\n ```bash\npip3 install --editable .\n```\n\nTo be able to open thermo raw files a installation of pythonnet is needed:\n- Windows: \n ```bash\n pip3 install pythonnet\n ```\n\n- Mac and Linux:\n ```bash\n brew install mono\n pip3 install pythonnet \n ```\n\n## Running the workflow\n\n\n```bash\nenviroMS dump-corems-enviroms-template EnviromsFile.json\n```\n```bash\nenviroMS dump-corems-template CoremsFile.json\n```\n\n Modify the EnviromsFile.json and CoremsFile.json accordingly to your dataset and workflow parameters\nmake sure to include CoremsFile.json path inside the EnviromsFile.json: "corems_json_path": "path_to_CoremsFile.json" \n\n```bash\nenviroMS run-di path_to_MetamsFile.json\n```\n\n## MiniWDL \n- Change wdl/enviroms_input.json to specify the data location\n\n- Change data/CoremsFile.json to specify the workflow parameters\n\nInstall miniWDL:\n```bash\npip3 install miniwdl\n```\n\nCall:\n```bash\nminiwdl run wdl/enviroMS.wdl -i wdl/enviroms_input.json --verbose --no-cache --copy-input-files\n```\n\nWARNING ** Current mode only allows for multiprocessing in a single node and it defaults to one job at a time. \nTo use multiprocessing mode modify the parameter "runDirectInfusion.jobs_count" in the enviroMS.wdl and modify the parameter "MolecularFormulaSearch.url_database" on CoremsFile.json to point to a Postgresql url. The default is set to use SQLite and it will fail on multiprocessing mode.\n\n## EnviroMS Docker \n\nA docker image containing the EnviroMS command line as code entry-point\n\nIf you don\'t have docker installed, the easiest way is to [install docker for desktop](https://hub.docker.com/?overlay=onboarding)\n\n- Pull from Docker Registry:\n\n ```bash\n docker pull corilo/enviroms:latest\n \n ```\n\n- Or to build the image from source:\n\n ```bash\n docker build -t enviroms:latest .\n ```\n- Run Workflow from Container:\n\n $(data_dir) = dir_containing the FT-ICR MS data, EnviromsFile.json and CoremsFile.json\n \n ```bash\n docker run -v $(data_dir):/enviroms/data corilo/enviroms:latest enviroMS run-di /enviroms/data/EnviromsFile.json \n ```\n\n- Save a new parameters file template:\n \n ```bash\n docker run -v $(data_dir):/enviroms/data corilo/enviroms:latest enviroMS dump_json_template /enviroms/data/EnviromsFile.json \n ```\n \n ```bash\n docker run -v $(data_dir):/metaB/data corilo/enviroms:latest enviroMS dump_corems_json_template /metaB/data/CoremsFile.json\n ```\n\n## Disclaimer\n\nThis material was prepared as an account of work sponsored by an agency of the\nUnited States Government. Neither the United States Government nor the United\nStates Department of Energy, nor Battelle, nor any of their employees, nor any\njurisdiction or organization that has cooperated in the development of these\nmaterials, makes any warranty, express or implied, or assumes any legal\nliability or responsibility for the accuracy, completeness, or usefulness or\nany information, apparatus, product, software, or process disclosed, or\nrepresents that its use would not infringe privately owned rights.\n\nReference herein to any specific commercial product, process, or service by\ntrade name, trademark, manufacturer, or otherwise does not necessarily\nconstitute or imply its endorsement, recommendation, or favoring by the United\nStates Government or any agency thereof, or Battelle Memorial Institute. The\nviews and opinions of authors expressed herein do not necessarily state or\nreflect those of the United States Government or any agency thereof.\n\n PACIFIC NORTHWEST NATIONAL LABORATORY\n operated by\n BATTELLE\n for the\n UNITED STATES DEPARTMENT OF ENERGY\n under Contract DE-AC05-76RL01830\n'
# Leemos las dos cadenas primera = input("Ingrese su primer cadena\n") segunda = input("Ingrese su segunda cadena cadena\n") # Intentamos obtener las cadenas try: # Obtenemos el ultimo elemento de la primera ultimo_primera = primera[-1] # Obtenemos el primer elemento de la segunda primero_segunda = segunda[0] # Comparamos el ultimo elemento de la primera contra # El primero de la segunda if ultimo_primera == primero_segunda : print('El ultimo elemento de la cadena',primera, 'es igual al primer elemento de la cadena',segunda) else: print('El ultimo elemento de la cadena',primera, 'es diferente al primer elemento de la cadena',segunda) except IndexError: print("Las cadenas no pueden estar vacias")
primera = input('Ingrese su primer cadena\n') segunda = input('Ingrese su segunda cadena cadena\n') try: ultimo_primera = primera[-1] primero_segunda = segunda[0] if ultimo_primera == primero_segunda: print('El ultimo elemento de la cadena', primera, 'es igual al primer elemento de la cadena', segunda) else: print('El ultimo elemento de la cadena', primera, 'es diferente al primer elemento de la cadena', segunda) except IndexError: print('Las cadenas no pueden estar vacias')
class LabelsHelper(object): @staticmethod def create_label_from_uint(label_uint): raise Exception("Not implemented") @staticmethod def create_label_from_relations(relation_labels, label_creation_mode): raise Exception("Not implemented") @staticmethod def create_label_from_opinions(forward, backward): raise Exception("Not implementer") @staticmethod def create_opinions_by_relation_and_label(extracted_relation, label): raise Exception("Not implemented") @staticmethod def get_classes_count(): raise Exception("Not implemented")
class Labelshelper(object): @staticmethod def create_label_from_uint(label_uint): raise exception('Not implemented') @staticmethod def create_label_from_relations(relation_labels, label_creation_mode): raise exception('Not implemented') @staticmethod def create_label_from_opinions(forward, backward): raise exception('Not implementer') @staticmethod def create_opinions_by_relation_and_label(extracted_relation, label): raise exception('Not implemented') @staticmethod def get_classes_count(): raise exception('Not implemented')
class Event(): def __init__(self, correspondingEvents: dict, objects: list, characters: list, name:str, description:str): self.correspondingEvents = correspondingEvents self.objects = objects self.characters = characters self.name = name self.description= description def generate_description(self): pass
class Event: def __init__(self, correspondingEvents: dict, objects: list, characters: list, name: str, description: str): self.correspondingEvents = correspondingEvents self.objects = objects self.characters = characters self.name = name self.description = description def generate_description(self): pass
soluciones = [] billetes, participantes = [int(x) for x in input().split()] while billetes and participantes: lista_billetes = [int(x) for x in input().split()] reparto = [[] for _ in range(participantes)] for posicion, billete in enumerate(lista_billetes): reparto[posicion % participantes].append(billete) soluciones.append(reparto) billetes, participantes = [int(x) for x in input().split()] for solucion in soluciones: for botin in solucion: print(sum(botin), ': ', end='') for billete in botin: print(billete, end=' ') print() print('---')
soluciones = [] (billetes, participantes) = [int(x) for x in input().split()] while billetes and participantes: lista_billetes = [int(x) for x in input().split()] reparto = [[] for _ in range(participantes)] for (posicion, billete) in enumerate(lista_billetes): reparto[posicion % participantes].append(billete) soluciones.append(reparto) (billetes, participantes) = [int(x) for x in input().split()] for solucion in soluciones: for botin in solucion: print(sum(botin), ': ', end='') for billete in botin: print(billete, end=' ') print() print('---')
# -------------- ##File path for the file file_path def read_file(path): file=open(path,'r') sentence=file.readline() file.close() return sentence sample_message=read_file(file_path) print(sample_message) #Code starts here # -------------- #Code starts here message_1=str(read_file(file_path_1)) message_2= str(read_file(file_path_2)) print(message_1) print(message_2) def fuse_msg(message_a,message_b): quotient=int(message_b)//int(message_a) return str(quotient) secret_msg_1=fuse_msg(message_1,message_2) # -------------- #Code starts here message_3= read_file(file_path_3) print(message_3) def substitute_msg(message_c): sub="" if message_c=="Red": sub = 'Army General' elif message_c=="Green": sub = 'Data Scientist' print(sub) elif message_c=="Blue": sub = 'Marine Biologist' else: pass return sub secret_msg_2=substitute_msg(message_3) # -------------- # File path for message 4 and message 5 file_path_4 file_path_5 #Code starts here message_4=read_file(file_path_4) message_5=read_file(file_path_5) print(message_4) print(message_5) def compare_msg(message_d,message_e): a_list=message_d.split() b_list=message_e.split() c_list=[] for i in range(len(a_list)): for j in range(len(b_list)): if a_list[i]==b_list[j]: break else: c_list.append(a_list[i]) final_msg= " ".join(c_list) return final_msg secret_msg_3=compare_msg(message_4,message_5) print(secret_msg_3) # -------------- #Code starts here message_6=read_file(file_path_6) print(message_6) def extract_msg(message_f): a_list=message_f.split() even_word= lambda x : len(x)%2==0 # using labmda function to find out even words b_list=list(filter(even_word,a_list)) #using filter tag to filter out even word from list final_msg= " ".join(b_list) return final_msg secret_msg_4=extract_msg(message_6) print(secret_msg_4) # -------------- #Secret message parts in the correct order message_parts=[secret_msg_3, secret_msg_1, secret_msg_4, secret_msg_2] secret_msg= " ".join(message_parts) print(secret_msg) def write_file(secret_msg,path): x=open(path,"a+") x.write(secret_msg) x.close() final_path= user_data_dir + '/secret_message.txt' #Code starts here write_file(secret_msg,final_path)
file_path def read_file(path): file = open(path, 'r') sentence = file.readline() file.close() return sentence sample_message = read_file(file_path) print(sample_message) message_1 = str(read_file(file_path_1)) message_2 = str(read_file(file_path_2)) print(message_1) print(message_2) def fuse_msg(message_a, message_b): quotient = int(message_b) // int(message_a) return str(quotient) secret_msg_1 = fuse_msg(message_1, message_2) message_3 = read_file(file_path_3) print(message_3) def substitute_msg(message_c): sub = '' if message_c == 'Red': sub = 'Army General' elif message_c == 'Green': sub = 'Data Scientist' print(sub) elif message_c == 'Blue': sub = 'Marine Biologist' else: pass return sub secret_msg_2 = substitute_msg(message_3) file_path_4 file_path_5 message_4 = read_file(file_path_4) message_5 = read_file(file_path_5) print(message_4) print(message_5) def compare_msg(message_d, message_e): a_list = message_d.split() b_list = message_e.split() c_list = [] for i in range(len(a_list)): for j in range(len(b_list)): if a_list[i] == b_list[j]: break else: c_list.append(a_list[i]) final_msg = ' '.join(c_list) return final_msg secret_msg_3 = compare_msg(message_4, message_5) print(secret_msg_3) message_6 = read_file(file_path_6) print(message_6) def extract_msg(message_f): a_list = message_f.split() even_word = lambda x: len(x) % 2 == 0 b_list = list(filter(even_word, a_list)) final_msg = ' '.join(b_list) return final_msg secret_msg_4 = extract_msg(message_6) print(secret_msg_4) message_parts = [secret_msg_3, secret_msg_1, secret_msg_4, secret_msg_2] secret_msg = ' '.join(message_parts) print(secret_msg) def write_file(secret_msg, path): x = open(path, 'a+') x.write(secret_msg) x.close() final_path = user_data_dir + '/secret_message.txt' write_file(secret_msg, final_path)
class Solution: def _find_upper(self, arr, cnt, key): start = 0 end = cnt - 1 while start < end: mid = (start + end) // 2 if key < arr[mid]: end = mid elif key == arr[mid]: start = mid + 1 else: start = mid + 1 return start def _right_shift(self, arr, cnt, pos): i = cnt - 1 while i >= pos: arr[i + 1] = arr[i] i = i - 1 def merge(self, nums1, m, nums2, n): for x in nums2: if x >= nums1[m - 1]: nums1[m] = x m = m + 1 else: pos = self._find_upper(nums1, m, x) self._right_shift(nums1, m, pos) nums1[pos] = x m = m + 1 sl = Solution() arr1 = [1,2,3,0,0,0] arr2 = [2,5,6] res = sl.merge(arr1, 3, arr2, 3) print(arr1)
class Solution: def _find_upper(self, arr, cnt, key): start = 0 end = cnt - 1 while start < end: mid = (start + end) // 2 if key < arr[mid]: end = mid elif key == arr[mid]: start = mid + 1 else: start = mid + 1 return start def _right_shift(self, arr, cnt, pos): i = cnt - 1 while i >= pos: arr[i + 1] = arr[i] i = i - 1 def merge(self, nums1, m, nums2, n): for x in nums2: if x >= nums1[m - 1]: nums1[m] = x m = m + 1 else: pos = self._find_upper(nums1, m, x) self._right_shift(nums1, m, pos) nums1[pos] = x m = m + 1 sl = solution() arr1 = [1, 2, 3, 0, 0, 0] arr2 = [2, 5, 6] res = sl.merge(arr1, 3, arr2, 3) print(arr1)
class Match(object): def __init__(self, span, match): pass
class Match(object): def __init__(self, span, match): pass
#la diferencia entre estas dos variables "__dict__": # la de la clase y la del objeto. # class ClaseEjemplo: varia = 1 def __init__(self, val): ClaseEjemplo.varia = val self.__varia = val print(ClaseEjemplo.__dict__) objetoEjemplo = ClaseEjemplo(2) print(ClaseEjemplo.__dict__) print(objetoEjemplo.__dict__)
class Claseejemplo: varia = 1 def __init__(self, val): ClaseEjemplo.varia = val self.__varia = val print(ClaseEjemplo.__dict__) objeto_ejemplo = clase_ejemplo(2) print(ClaseEjemplo.__dict__) print(objetoEjemplo.__dict__)
# coding: utf-8 # file generated by setuptools_scm # don't change, don't track in version control version = '0.1.dev133+g3c58c47.d20220526' version_tuple = (0, 1, 'dev133', 'g3c58c47.d20220526')
version = '0.1.dev133+g3c58c47.d20220526' version_tuple = (0, 1, 'dev133', 'g3c58c47.d20220526')
# generates a list of 5 letter words from /usr/share/dict/words def main(): filtered = set() with open("/usr/share/dict/words", 'r') as file: for line in file: word = line.strip().replace("'", '').lower() if len(word) == 5: filtered.add(word) print(f"{len(filtered)} 5 letter words found") filtered = list(filtered) filtered.sort() with open("./five_letter_words", 'w') as file: file.write('\n'.join(filtered)) if __name__ == "__main__": main()
def main(): filtered = set() with open('/usr/share/dict/words', 'r') as file: for line in file: word = line.strip().replace("'", '').lower() if len(word) == 5: filtered.add(word) print(f'{len(filtered)} 5 letter words found') filtered = list(filtered) filtered.sort() with open('./five_letter_words', 'w') as file: file.write('\n'.join(filtered)) if __name__ == '__main__': main()
# -*- coding: utf-8 -*- ENVELOPE_XMLNS = 'http://schemas.xmlsoap.org/soap/envelope/' def strip_xmlns(root): def iter_node(n): nsmap = n.nsmap for child in n: nsmap.update(iter_node(child)) return nsmap xmlns = list('{' + item + '}' for item in iter_node(root).values()) def strip_node(n): for item in xmlns: n.tag = n.tag.replace(item, '') for child in n[:]: try: strip_node(child) except AttributeError: n.remove(child) strip_node(root) return root
envelope_xmlns = 'http://schemas.xmlsoap.org/soap/envelope/' def strip_xmlns(root): def iter_node(n): nsmap = n.nsmap for child in n: nsmap.update(iter_node(child)) return nsmap xmlns = list(('{' + item + '}' for item in iter_node(root).values())) def strip_node(n): for item in xmlns: n.tag = n.tag.replace(item, '') for child in n[:]: try: strip_node(child) except AttributeError: n.remove(child) strip_node(root) return root
#!/usr/bin/env python3 # represents the noteblocks of a certain instrument and pitch # may need to be split (further), because it may contain more than one of the same note playing at once # or for other reasons class UnsplitLine: def __init__(self, key, instrument): self.key = key self.instrument = instrument self.ticks = {} # indexed with tick, value >0 is noteblock count at that tick def __repr__(self): return f"[UnprocessedLine i,k:{self.instrument},{self.key} ticks:{self.ticks}]" # tps is already supposed to be 20 here, tick=20 means 1 sec def add_note(self, tick, count=1): if not tick in self.ticks: self.ticks[tick] = 0 self.ticks[tick] += count def is_empty(self): return not self.ticks # splits this line into 2 lines, one with even and one with odd (game)tick values def _split_even(self): new_line = UnsplitLine(self.key, self.instrument) evenness = next(iter(self.ticks)) % 2 # first key in dict for tick in list(self.ticks): # list of keys, so that we can safely remove elements if tick % 2 != evenness: new_line.add_note(tick, count=self.ticks[tick]) self.ticks.pop(tick) return [self] if new_line.is_empty() else [self, new_line] # splits off one line, that is returned, that is fully split and can be converted to a SplitLine later # self's ticks have to have the same parity already def _split_further(self): new_line = UnsplitLine(self.key, self.instrument) previous = -42 # there can't be 2 notes closer to each other than 4 gameticks for tick in sorted(self.ticks): # this creates a list, we can safely remove elements from ticks if previous + 4 <= tick: previous = tick new_line.add_note(tick) if self.ticks[tick] > 1: self.ticks[tick] -= 1 else: self.ticks.pop(tick) return new_line # we need to split this line if # 1) there are both odd and even tick delays (_split_even) or # 2) there are more than 1 notes playing at the same time (_split_further) or # 3) there is a 2 tick delay somewhere (_split_further) def split(self): assert not self.is_empty(), f"Empty {self} cannot be split!" # assert: true is good, false is bad lines_halfsplit = self._split_even() processed_lines = [] for line in lines_halfsplit: assert len(set(k % 2 for k in line.ticks)) == 1, f"All keys should have the same parity, but they don't: {line}" while not line.is_empty(): new_line = line._split_further() assert all(count == 1 for count in new_line.ticks.values()), f"All values should be one (the line should be fully split), but they aren't: {line}" processed_lines.append(new_line) return processed_lines # needs a pynbs.File song and # gives back a list of UnsplitLines that are ready to be converted to SplitLines def lines_from_song(song, override_tempo=-1): # this is hardcoded as in NBS there isn't a 6.67 tps option, so # 6.75 almost always wants to mean every 3 gameticks if song.header.tempo == 6.75: song.header.tempo = 20/3 # this is where we fix the tps to 20, so we multiply tick by this: multiplier = 20 / (song.header.tempo if override_tempo == -1 else override_tempo) lines = {} # indexed with (key, instrument) for tick, chord in song: for note in chord: code = (note.key, note.instrument) if code not in lines: lines[code] = UnsplitLine(note.key, note.instrument) lines[code].add_note(int(0.5 + tick * multiplier)) # rounding split_lines = [] for line in lines.values(): split_lines += line.split() return split_lines
class Unsplitline: def __init__(self, key, instrument): self.key = key self.instrument = instrument self.ticks = {} def __repr__(self): return f'[UnprocessedLine i,k:{self.instrument},{self.key} ticks:{self.ticks}]' def add_note(self, tick, count=1): if not tick in self.ticks: self.ticks[tick] = 0 self.ticks[tick] += count def is_empty(self): return not self.ticks def _split_even(self): new_line = unsplit_line(self.key, self.instrument) evenness = next(iter(self.ticks)) % 2 for tick in list(self.ticks): if tick % 2 != evenness: new_line.add_note(tick, count=self.ticks[tick]) self.ticks.pop(tick) return [self] if new_line.is_empty() else [self, new_line] def _split_further(self): new_line = unsplit_line(self.key, self.instrument) previous = -42 for tick in sorted(self.ticks): if previous + 4 <= tick: previous = tick new_line.add_note(tick) if self.ticks[tick] > 1: self.ticks[tick] -= 1 else: self.ticks.pop(tick) return new_line def split(self): assert not self.is_empty(), f'Empty {self} cannot be split!' lines_halfsplit = self._split_even() processed_lines = [] for line in lines_halfsplit: assert len(set((k % 2 for k in line.ticks))) == 1, f"All keys should have the same parity, but they don't: {line}" while not line.is_empty(): new_line = line._split_further() assert all((count == 1 for count in new_line.ticks.values())), f"All values should be one (the line should be fully split), but they aren't: {line}" processed_lines.append(new_line) return processed_lines def lines_from_song(song, override_tempo=-1): if song.header.tempo == 6.75: song.header.tempo = 20 / 3 multiplier = 20 / (song.header.tempo if override_tempo == -1 else override_tempo) lines = {} for (tick, chord) in song: for note in chord: code = (note.key, note.instrument) if code not in lines: lines[code] = unsplit_line(note.key, note.instrument) lines[code].add_note(int(0.5 + tick * multiplier)) split_lines = [] for line in lines.values(): split_lines += line.split() return split_lines
class Solution: def divide(self, dividend: int, divisor: int) -> int: negative = False if dividend < 0 and divisor < 0: negative = False elif dividend < 0 or divisor < 0: negative = True dividend, divisor = abs(dividend), abs(divisor) result = 0 while dividend >= divisor: shift = 0 while dividend >= (divisor << 1 << shift): shift += 1 result += 1 << shift dividend -= divisor << shift if negative: return max(-result, -2147483648) else: return min(result, 2147483647)
class Solution: def divide(self, dividend: int, divisor: int) -> int: negative = False if dividend < 0 and divisor < 0: negative = False elif dividend < 0 or divisor < 0: negative = True (dividend, divisor) = (abs(dividend), abs(divisor)) result = 0 while dividend >= divisor: shift = 0 while dividend >= divisor << 1 << shift: shift += 1 result += 1 << shift dividend -= divisor << shift if negative: return max(-result, -2147483648) else: return min(result, 2147483647)
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@bazel_tools//tools/build_defs/repo:java.bzl", "java_import_external") def ts_repositories(): http_archive( name = "io_bazel_rules_closure", sha256 = "d66deed38a0bb20581c15664f0ab62270af5940786855c7adc3087b27168b529", strip_prefix = "rules_closure-0.11.0", urls = [ "https://mirror.bazel.build/github.com/bazelbuild/rules_closure/archive/0.11.0.tar.gz", "https://github.com/bazelbuild/rules_closure/archive/0.11.0.tar.gz", ], ) java_import_external( name = "com_google_template_soy", licenses = ["notice"], # Apache 2.0 jar_urls = [ "https://repo1.maven.org/maven2/com/google/template/soy/2021-02-01/soy-2021-02-01.jar", ], jar_sha256 = "60c59b9f5d3074b5b72b18f00efd4c96d10deb0693a16f40ce538657c51f63a4", deps = [ "@args4j", "@com_google_code_findbugs_jsr305", "@com_google_code_gson", "@com_google_common_html_types", "@com_google_guava", "@com_google_inject_extensions_guice_assistedinject", "@com_google_inject_extensions_guice_multibindings", "@com_google_inject_guice", "@com_google_protobuf//:protobuf_java", "@com_ibm_icu_icu4j", "@javax_inject", "@org_json", "@org_ow2_asm", "@org_ow2_asm_analysis", "@org_ow2_asm_commons", "@org_ow2_asm_util", ], extra_build_file_content = "\n".join([ ("java_binary(\n" + " name = \"%s\",\n" + " main_class = \"com.google.template.soy.%s\",\n" + " output_licenses = [\"unencumbered\"],\n" + " runtime_deps = [\":com_google_template_soy\"],\n" + ")\n") % (name, name) for name in ( "SoyParseInfoGenerator", "SoyHeaderCompiler", "SoyToJbcSrcCompiler", "SoyToJsSrcCompiler", "SoyToPySrcCompiler", ) ]), )
load('@bazel_tools//tools/build_defs/repo:http.bzl', 'http_archive') load('@bazel_tools//tools/build_defs/repo:java.bzl', 'java_import_external') def ts_repositories(): http_archive(name='io_bazel_rules_closure', sha256='d66deed38a0bb20581c15664f0ab62270af5940786855c7adc3087b27168b529', strip_prefix='rules_closure-0.11.0', urls=['https://mirror.bazel.build/github.com/bazelbuild/rules_closure/archive/0.11.0.tar.gz', 'https://github.com/bazelbuild/rules_closure/archive/0.11.0.tar.gz']) java_import_external(name='com_google_template_soy', licenses=['notice'], jar_urls=['https://repo1.maven.org/maven2/com/google/template/soy/2021-02-01/soy-2021-02-01.jar'], jar_sha256='60c59b9f5d3074b5b72b18f00efd4c96d10deb0693a16f40ce538657c51f63a4', deps=['@args4j', '@com_google_code_findbugs_jsr305', '@com_google_code_gson', '@com_google_common_html_types', '@com_google_guava', '@com_google_inject_extensions_guice_assistedinject', '@com_google_inject_extensions_guice_multibindings', '@com_google_inject_guice', '@com_google_protobuf//:protobuf_java', '@com_ibm_icu_icu4j', '@javax_inject', '@org_json', '@org_ow2_asm', '@org_ow2_asm_analysis', '@org_ow2_asm_commons', '@org_ow2_asm_util'], extra_build_file_content='\n'.join([('java_binary(\n' + ' name = "%s",\n' + ' main_class = "com.google.template.soy.%s",\n' + ' output_licenses = ["unencumbered"],\n' + ' runtime_deps = [":com_google_template_soy"],\n' + ')\n') % (name, name) for name in ('SoyParseInfoGenerator', 'SoyHeaderCompiler', 'SoyToJbcSrcCompiler', 'SoyToJsSrcCompiler', 'SoyToPySrcCompiler')]))
# Input: String="aabccbb" # Output: 3 # Explanation: The longest substring with distinct characters is "abc". class DistinctCharMap(dict): def __missing__(self, v): return 0 def find_the_longest_substring_distinct(string, k=1): distinct_char_map = DistinctCharMap() temp_substring = "" longest_substring = "" for i in range(len(string)): char = string[i] distinct_char_map[char]+=1 temp_substring+=char if distinct_char_map[char] > k: temp_substring = char else: if len(temp_substring) > len(longest_substring): longest_substring = temp_substring return longest_substring def find_the_longest_substring_length_distinct(string): return len(find_the_longest_substring_distinct(string)) v = find_the_longest_substring_length_distinct("aabccddaefghigkbb") print(v) def main(): print("Length of the longest substring: " + str(find_the_longest_substring_length_distinct("aabccbb"))) print("Length of the longest substring: " + str(find_the_longest_substring_length_distinct("abbbb"))) print("Length of the longest substring: " + str(find_the_longest_substring_length_distinct("abccde"))) main() my_dict = dict(a=5, b=10) print(my_dict)
class Distinctcharmap(dict): def __missing__(self, v): return 0 def find_the_longest_substring_distinct(string, k=1): distinct_char_map = distinct_char_map() temp_substring = '' longest_substring = '' for i in range(len(string)): char = string[i] distinct_char_map[char] += 1 temp_substring += char if distinct_char_map[char] > k: temp_substring = char elif len(temp_substring) > len(longest_substring): longest_substring = temp_substring return longest_substring def find_the_longest_substring_length_distinct(string): return len(find_the_longest_substring_distinct(string)) v = find_the_longest_substring_length_distinct('aabccddaefghigkbb') print(v) def main(): print('Length of the longest substring: ' + str(find_the_longest_substring_length_distinct('aabccbb'))) print('Length of the longest substring: ' + str(find_the_longest_substring_length_distinct('abbbb'))) print('Length of the longest substring: ' + str(find_the_longest_substring_length_distinct('abccde'))) main() my_dict = dict(a=5, b=10) print(my_dict)
n,m,k = map(int, input().split()) aa = list(map(int, input().split())) a = [] for i in range(n): a.append([aa[i], i+1]) a.sort() if not(k%m): t = int(k/m) if t < 1: print("impossible") exit() se =n - t if n == 1: if t == 1: print(1) exit() else: print("impossible") exit() elif se < 0: print("impossible") exit() #print(se) first = a[0:se] first.reverse() #print(first) sec = a[se:n] #print(sec) jj,kk= 0,0 result = [sec[0][1]] ii = 1 avg = m for i in range(1,n): #print(i) if ii != t and sec[ii][0] >= (avg / i): result.append(sec[ii][1]) ii +=1 avg += m elif jj != se and first[jj][0] < (avg / i): result.append(first[jj][1]) jj+=1 else: print("impossible") break else: print(*result,sep=" ") else: print("impossible")
(n, m, k) = map(int, input().split()) aa = list(map(int, input().split())) a = [] for i in range(n): a.append([aa[i], i + 1]) a.sort() if not k % m: t = int(k / m) if t < 1: print('impossible') exit() se = n - t if n == 1: if t == 1: print(1) exit() else: print('impossible') exit() elif se < 0: print('impossible') exit() first = a[0:se] first.reverse() sec = a[se:n] (jj, kk) = (0, 0) result = [sec[0][1]] ii = 1 avg = m for i in range(1, n): if ii != t and sec[ii][0] >= avg / i: result.append(sec[ii][1]) ii += 1 avg += m elif jj != se and first[jj][0] < avg / i: result.append(first[jj][1]) jj += 1 else: print('impossible') break else: print(*result, sep=' ') else: print('impossible')
# coding: utf-8 RESOURCE_MAPPING = { 'bookings': { 'resource': 'bookings/', 'docs': 'http://www.documentation.com/link/to/resource/documentation', 'methods': ['GET', 'POST'] }, }
resource_mapping = {'bookings': {'resource': 'bookings/', 'docs': 'http://www.documentation.com/link/to/resource/documentation', 'methods': ['GET', 'POST']}}
class Solution: def minAddToMakeValid(self, S: str) -> int: stack1=[] stack2=[] for i in range(len(S)): if S[i] =="(": stack1.append(S[i]) elif S[i]==")" and stack1: stack1.pop() else: stack2.append(S[i]) print(stack1,stack2) return len(stack1)+len(stack2)
class Solution: def min_add_to_make_valid(self, S: str) -> int: stack1 = [] stack2 = [] for i in range(len(S)): if S[i] == '(': stack1.append(S[i]) elif S[i] == ')' and stack1: stack1.pop() else: stack2.append(S[i]) print(stack1, stack2) return len(stack1) + len(stack2)
#!/usr/bin/env python # _*_ coding:utf-8 _*_ TAG_XML = 'xml' TAG_TESTSUITE = 'testsuite' TAG_DETAILS = 'details' TAG_TESTCASE = 'testcase' TAG_VERSION = 'version' TAG_SUMMARY = 'summary' TAG_PRECONDITIONS = 'preconditions' TAG_IMPORTANCE = 'importance' TAG_ESTIMATED_EXEC_DURATION = 'estimated_exec_duration' TAG_STATUS = 'status' TAG_IS_OPEN = 'is_open' TAG_ACTIVE = 'active' TAG_STEPS = 'steps' TAG_STEP = 'step' TAG_STEP_NUMBER = 'step_number' TAG_ACTIONS = 'actions' TAG_EXPECTEDRESULTS = 'expectedresults' TAG_EXECUTION_TYPE = 'execution_type' ATTR_NMAE = 'name' ATTR_ID = 'id' ATTR_INTERNALID = 'internalid'
tag_xml = 'xml' tag_testsuite = 'testsuite' tag_details = 'details' tag_testcase = 'testcase' tag_version = 'version' tag_summary = 'summary' tag_preconditions = 'preconditions' tag_importance = 'importance' tag_estimated_exec_duration = 'estimated_exec_duration' tag_status = 'status' tag_is_open = 'is_open' tag_active = 'active' tag_steps = 'steps' tag_step = 'step' tag_step_number = 'step_number' tag_actions = 'actions' tag_expectedresults = 'expectedresults' tag_execution_type = 'execution_type' attr_nmae = 'name' attr_id = 'id' attr_internalid = 'internalid'
class credit_scrore_calculator_and_saver(): age = input("What's your age?\n") gender = input("What's your gender?\n") payment_history = input("How many loans you have you paid\n") loans = input("How many loans do you have?\n") loans_paid = input("How many loans you have paid\n") credit_card_utilization = input("How much have you used your credit card\n") def __init__(self): self.__init__() def _credit_calculator(self,age,gender,payment_history,loans_paid): self.credit_scrore_calculator_1 = age self.credit_scrore_calculator_2 = gender self.payment_history_converted_to_int = int(payment_history) self.loans_paid_conerted_to_int = int(loans_paid) self.kg_or__to_kg_converterdebt = self.payment_history_converted_to_int - self.loans_paid_conerted_to_int self.score = 350 for self.debt in range(31): self.score += 100 if self.debt < 43: self.score += 100 if gender.lower() == "girl" or "woman": self.score -= 100 if gender.lower() == "boy" or "man": self.score += 1 for age in range(36-1): self.score += 200 if age == 36 or 37 or 38 or 39 or 40 or 41 or 42 or 43 or 44 - 1: self.score = 0 elif age == 45 or 46 or 47 or 48 or 49 or 50 or 51 or 52 or 53 or 54 - 1: self.score =- 200 elif age == 55 or 56 or 57 or 58 or 59 or 60 or 61 or 62 or 63 or 64 - 1: self.score == 0 elif age == 65 or 66 or 67 or 68 or 69 or 70 or 71 or 72 or 73 or 74 - 1: self.score =+ 100 elif age > 75 - 1: self.score =+ 200 if self.score == 900: print(f"Your credit score is:{self.score}.\nYour credit score is perfect.\nYou'll definetely") for self.score in range(700,900): print(f"Your credit score is:{self.score}.\nThat's average\n.But sometimes you'll never be allowed to take a loan.\n") for self.score in range(500,700): print(f"Your credit score is:{self.score} .\nThat's not too bad.\n But you'll not be given loans that much") for self.score in range(350,500): print(f"Your credit score is:{self.score} .\nThat's bad\nDefinetly no loans.\nHere are some tips to help:\n1.Try spending less of your card.\n2.Respect your money ")
class Credit_Scrore_Calculator_And_Saver: age = input("What's your age?\n") gender = input("What's your gender?\n") payment_history = input('How many loans you have you paid\n') loans = input('How many loans do you have?\n') loans_paid = input('How many loans you have paid\n') credit_card_utilization = input('How much have you used your credit card\n') def __init__(self): self.__init__() def _credit_calculator(self, age, gender, payment_history, loans_paid): self.credit_scrore_calculator_1 = age self.credit_scrore_calculator_2 = gender self.payment_history_converted_to_int = int(payment_history) self.loans_paid_conerted_to_int = int(loans_paid) self.kg_or__to_kg_converterdebt = self.payment_history_converted_to_int - self.loans_paid_conerted_to_int self.score = 350 for self.debt in range(31): self.score += 100 if self.debt < 43: self.score += 100 if gender.lower() == 'girl' or 'woman': self.score -= 100 if gender.lower() == 'boy' or 'man': self.score += 1 for age in range(36 - 1): self.score += 200 if age == 36 or 37 or 38 or 39 or 40 or 41 or 42 or 43 or (44 - 1): self.score = 0 elif age == 45 or 46 or 47 or 48 or 49 or 50 or 51 or 52 or 53 or (54 - 1): self.score = -200 elif age == 55 or 56 or 57 or 58 or 59 or 60 or 61 or 62 or 63 or (64 - 1): self.score == 0 elif age == 65 or 66 or 67 or 68 or 69 or 70 or 71 or 72 or 73 or (74 - 1): self.score = +100 elif age > 75 - 1: self.score = +200 if self.score == 900: print(f"Your credit score is:{self.score}.\nYour credit score is perfect.\nYou'll definetely") for self.score in range(700, 900): print(f"Your credit score is:{self.score}.\nThat's average\n.But sometimes you'll never be allowed to take a loan.\n") for self.score in range(500, 700): print(f"Your credit score is:{self.score} .\nThat's not too bad.\n But you'll not be given loans that much") for self.score in range(350, 500): print(f"Your credit score is:{self.score} .\nThat's bad\nDefinetly no loans.\nHere are some tips to help:\n1.Try spending less of your card.\n2.Respect your money ")
print('===========Digite a Placa e a Hora==========') placa = input('Digite sua placa :') hora =float(input('Digite a hora de entrada :')) registro = placa horas = hora * 3600 horaf = horas // 3600 placaSaida = input('Digite sua placa, para liberar, seu automovel! :') horaSaida = int(input('Digite a hora de saida :')) #saida = placaSaida if placaSaida == registro: saida = placaSaida preco = (horaSaida - horaf ) * 5.60 print('Seu automovel sera liberado de imediato') print('Valor do estacionamento {:.2f} '.format(preco)) print('hora da sua entrada : ',horaf,':00' , ' hora da sua saida :',horaSaida ,':00') elif placaSaida != registro: print('Sua placa esta incorreta,tente novamente !')
print('===========Digite a Placa e a Hora==========') placa = input('Digite sua placa :') hora = float(input('Digite a hora de entrada :')) registro = placa horas = hora * 3600 horaf = horas // 3600 placa_saida = input('Digite sua placa, para liberar, seu automovel! :') hora_saida = int(input('Digite a hora de saida :')) if placaSaida == registro: saida = placaSaida preco = (horaSaida - horaf) * 5.6 print('Seu automovel sera liberado de imediato') print('Valor do estacionamento {:.2f} '.format(preco)) print('hora da sua entrada : ', horaf, ':00', ' hora da sua saida :', horaSaida, ':00') elif placaSaida != registro: print('Sua placa esta incorreta,tente novamente !')
settings = { 'launch_path': '', 'auto_generate': False, 'auto_backup': False, 'JsonRpcUser': '', 'JsonRpcPassword': '', 'observer': '', 'num_addresses': 10, 'destination': '', } # Info about the settings are in the README.md file
settings = {'launch_path': '', 'auto_generate': False, 'auto_backup': False, 'JsonRpcUser': '', 'JsonRpcPassword': '', 'observer': '', 'num_addresses': 10, 'destination': ''}
x = 7 y = 11 print("x={}, y={}".format(x, y)) # swap: nonpythonic # temp = x # x = y # y = temp y, x = x, y print("x={}, y={}".format(x, y))
x = 7 y = 11 print('x={}, y={}'.format(x, y)) (y, x) = (x, y) print('x={}, y={}'.format(x, y))
# -*- coding: utf-8 -*- def make_urls(urlsource, *args, **kwargs): if urlsource.kind == 'single': return urlsource.url raise NotImplementedError
def make_urls(urlsource, *args, **kwargs): if urlsource.kind == 'single': return urlsource.url raise NotImplementedError
alarms = { "0x00": { "Category": "Public Alarm", "Name": "Reset Alarm", "SetCondition": " After the system reset, the reset alarm will be set automatically", "ResetCondition": " Protocol instruction is cleared" }, "0x01": { "Category": "Public Alarm", "Name": "Undefined Instruction", "SetCondition": "Undifined instruction is received", "ResetCondition": "The protocol instruction is cleared." }, "0x02": { "Category": "Public Alarm", "Name": "File System Error", "SetCondition": "The file system errors;", "ResetCondition": "Reset, if the file system initialization is successful, then reset the alarm automatically." }, "0x03": { "Category": "Public Alarm", "Name": "Failed Communication between MCU and FPGA", "SetCondition": "The communication between MCU and FPGA is failed when initialization;", "ResetCondition": "Reset, if the communication is successful, then reset the alarm automatically" }, "0x04": { "Category": "Public Alarm", "Name": "Angle Sensor Reading Error", "SetCondition": "The angle sensor value can not be read correctly", "ResetCondition": "Power off, power on again, if the angle sensor value can be read correctly, then reset alarm." }, "0x11": { "Category": "Planning Alarm", "Name": "Inverse Resolve Alarm", "SetCondition": "The planning target point is not in the robot work space, resulting in the reverse solution error", "ResetCondition": "The protocol instruction is cleared" }, "0x12": { "Category": "Planning Alarm", "Name": "Inverse Resolve Limit", "SetCondition": "Inverse resolve of the target point beyond the joint limit value", "ResetCondition": "The protocol instruction is cleared" }, "0x13": { "Category": "Planning Alarm", "Name": "Arc Input Parameter Alarm", "SetCondition": "Enter the midpoint of the arc, and the target point can not form an arc", "ResetCondition": "The protocol instruction is cleared" }, "0x15": { "Category": "Planning Alarm", "Name": "JUMP Parameter Error", "SetCondition": "The planning starting point or the target point height above the set maximum JUMP height", "ResetCondition": "The protocol instruction is cleared" }, "0x21": { "Category": "Kinematic Alarm", "Name": "Inverse Resolve Alarm", "SetCondition": "The movement process beyond the robot work space resulting in the inverse solution error", "ResetCondition": "The protocol instruction is cleared" }, "0x22": { "Category": "Kinematic Alarm", "Name": "Inverse Resolve Limit", "SetCondition": "The inverse solution of the motion exceeds the Joint limit value", "ResetCondition": "The protocol instruction is cleared" }, "0x44": { "Category": "Limit Alarm", "Name": "Joint 3 Positive Limit Alarm", "SetCondition": "Joint 3 moves in the positive direction to the limit area", "ResetCondition": "Protocol command reset the alarm manually; reset the alarm in reverse exit limit area automatically" } }
alarms = {'0x00': {'Category': 'Public Alarm', 'Name': 'Reset Alarm', 'SetCondition': ' After the system reset, the reset alarm will be set automatically', 'ResetCondition': ' Protocol instruction is cleared'}, '0x01': {'Category': 'Public Alarm', 'Name': 'Undefined Instruction', 'SetCondition': 'Undifined instruction is received', 'ResetCondition': 'The protocol instruction is cleared.'}, '0x02': {'Category': 'Public Alarm', 'Name': 'File System Error', 'SetCondition': 'The file system errors;', 'ResetCondition': 'Reset, if the file system initialization is successful, then reset the alarm automatically.'}, '0x03': {'Category': 'Public Alarm', 'Name': 'Failed Communication between MCU and FPGA', 'SetCondition': 'The communication between MCU and FPGA is failed when initialization;', 'ResetCondition': 'Reset, if the communication is successful, then reset the alarm automatically'}, '0x04': {'Category': 'Public Alarm', 'Name': 'Angle Sensor Reading Error', 'SetCondition': 'The angle sensor value can not be read correctly', 'ResetCondition': 'Power off, power on again, if the angle sensor value can be read correctly, then reset alarm.'}, '0x11': {'Category': 'Planning Alarm', 'Name': 'Inverse Resolve Alarm', 'SetCondition': 'The planning target point is not in the robot work space, resulting in the reverse solution error', 'ResetCondition': 'The protocol instruction is cleared'}, '0x12': {'Category': 'Planning Alarm', 'Name': 'Inverse Resolve Limit', 'SetCondition': 'Inverse resolve of the target point beyond the joint limit value', 'ResetCondition': 'The protocol instruction is cleared'}, '0x13': {'Category': 'Planning Alarm', 'Name': 'Arc Input Parameter Alarm', 'SetCondition': 'Enter the midpoint of the arc, and the target point can not form an arc', 'ResetCondition': 'The protocol instruction is cleared'}, '0x15': {'Category': 'Planning Alarm', 'Name': 'JUMP Parameter Error', 'SetCondition': 'The planning starting point or the target point height above the set maximum JUMP height', 'ResetCondition': 'The protocol instruction is cleared'}, '0x21': {'Category': 'Kinematic Alarm', 'Name': 'Inverse Resolve Alarm', 'SetCondition': 'The movement process beyond the robot work space resulting in the inverse solution error', 'ResetCondition': 'The protocol instruction is cleared'}, '0x22': {'Category': 'Kinematic Alarm', 'Name': 'Inverse Resolve Limit', 'SetCondition': 'The inverse solution of the motion exceeds the Joint limit value', 'ResetCondition': 'The protocol instruction is cleared'}, '0x44': {'Category': 'Limit Alarm', 'Name': 'Joint 3 Positive Limit Alarm', 'SetCondition': 'Joint 3 moves in the positive direction to the limit area', 'ResetCondition': 'Protocol command reset the alarm manually; reset the alarm in reverse exit limit area automatically'}}
class StandInLine: def getWays(self, n, a, b): if n <= 1: return [0, 0] a1, a2 = 1, 1 if n > 2: for i in range(1, n + 1): a1 *= i a1 /= 2 a2 = a1 * 2 / n return [a1, a2]
class Standinline: def get_ways(self, n, a, b): if n <= 1: return [0, 0] (a1, a2) = (1, 1) if n > 2: for i in range(1, n + 1): a1 *= i a1 /= 2 a2 = a1 * 2 / n return [a1, a2]
class Solution: def convert(self, s: str, numRows: int) -> str: res = ['' for _ in range(numRows)] curr_row = 0 for c in s: res[curr_row] += c if curr_row == 0: direction = 1 elif curr_row == numRows - 1: direction = -1 curr_row = (direction + curr_row) % numRows return ''.join(res)
class Solution: def convert(self, s: str, numRows: int) -> str: res = ['' for _ in range(numRows)] curr_row = 0 for c in s: res[curr_row] += c if curr_row == 0: direction = 1 elif curr_row == numRows - 1: direction = -1 curr_row = (direction + curr_row) % numRows return ''.join(res)
isLoggedIn = False credentials = {} currentViewedRant = "" feedItemId = 2 currentFeed = "" rantToPost = "" commentToPost = "" notifs = [] notifInterval = 60 # interval in seconds comments = [] commentLen = 0 commentInterval = 30 # interval in seconds # threads check_notifs = "" check_comments = ""
is_logged_in = False credentials = {} current_viewed_rant = '' feed_item_id = 2 current_feed = '' rant_to_post = '' comment_to_post = '' notifs = [] notif_interval = 60 comments = [] comment_len = 0 comment_interval = 30 check_notifs = '' check_comments = ''
n = int(input()) coelhos = 0 ratos = 0 sapos = 0 for i in range(n): quantia, tipo = input().split() quantia = int(quantia) if tipo == 'C': coelhos += quantia elif tipo == 'R': ratos += quantia else: sapos += quantia total = coelhos + ratos + sapos print(f"Total: {total} cobaias") print(f"Total de coelhos: {coelhos}") print(f"Total de ratos: {ratos}") print(f"Total de sapos: {sapos}") print(f"Percentual de coelhos: {coelhos * 100 / total:.2f} %") print(f"Percentual de ratos: {ratos * 100 / total:.2f} %") print(f"Percentual de sapos: {sapos * 100 / total:.2f} %")
n = int(input()) coelhos = 0 ratos = 0 sapos = 0 for i in range(n): (quantia, tipo) = input().split() quantia = int(quantia) if tipo == 'C': coelhos += quantia elif tipo == 'R': ratos += quantia else: sapos += quantia total = coelhos + ratos + sapos print(f'Total: {total} cobaias') print(f'Total de coelhos: {coelhos}') print(f'Total de ratos: {ratos}') print(f'Total de sapos: {sapos}') print(f'Percentual de coelhos: {coelhos * 100 / total:.2f} %') print(f'Percentual de ratos: {ratos * 100 / total:.2f} %') print(f'Percentual de sapos: {sapos * 100 / total:.2f} %')
class ScoreSaberException(Exception): def __init__(self, status: int, url: str) -> None: self.status = status self.url = url super().__init__(f"Score Saber returned {self.status} for {self.url}") class NotFoundException(ScoreSaberException): pass class ServerException(ScoreSaberException): pass
class Scoresaberexception(Exception): def __init__(self, status: int, url: str) -> None: self.status = status self.url = url super().__init__(f'Score Saber returned {self.status} for {self.url}') class Notfoundexception(ScoreSaberException): pass class Serverexception(ScoreSaberException): pass
#Finding the percentage #https://www.hackerrank.com/challenges/finding-the-percentage/problem if __name__ == '__main__': n = int(raw_input()) student_marks = {} for _ in range(n): line = raw_input().split() name, scores = line[0], line[1:] scores = map(float, scores) student_marks[name] = scores query_name = raw_input() student_scores = student_marks[query_name] avg_score = (sum(student_scores)/len(student_scores)) avg_score = format(avg_score, '.2f') print(avg_score)
if __name__ == '__main__': n = int(raw_input()) student_marks = {} for _ in range(n): line = raw_input().split() (name, scores) = (line[0], line[1:]) scores = map(float, scores) student_marks[name] = scores query_name = raw_input() student_scores = student_marks[query_name] avg_score = sum(student_scores) / len(student_scores) avg_score = format(avg_score, '.2f') print(avg_score)
grades = [80, 75, 90] grades.append(100) total = sum(grades) length = len(grades) average = total / length grades_as_strings = [ str(grade) for grade in grades ] grades_as_string = ', '.join(grades_as_strings) print(f'Grades are: {grades_as_string}') print(f'Average is {average}')
grades = [80, 75, 90] grades.append(100) total = sum(grades) length = len(grades) average = total / length grades_as_strings = [str(grade) for grade in grades] grades_as_string = ', '.join(grades_as_strings) print(f'Grades are: {grades_as_string}') print(f'Average is {average}')
''' Given a triangle array, return the minimum path sum from top to bottom. For each step, you may move to an adjacent number of the row below. More formally, if you are on index i on the current row, you may move to either index i or index i + 1 on the next row. Example 1: Input: triangle = [[2],[3,4],[6,5,7],[4,1,8,3]] Output: 11 Explanation: The triangle looks like: 2 3 4 6 5 7 4 1 8 3 The minimum path sum from top to bottom is 2 + 3 + 5 + 1 = 11 (underlined above). Example 2: Input: triangle = [[-10]] Output: -10 Constraints: 1 <= triangle.length <= 200 triangle[0].length == 1 triangle[i].length == triangle[i - 1].length + 1 -104 <= triangle[i][j] <= 104 Follow up: Could you do this using only O(n) extra space, where n is the total number of rows in the triangle? ''' class Solution: def minimumTotal(self, triangle: List[List[int]]) -> int: if len(triangle) == 1: return triangle[0][0] triangle[1][0] += triangle[0][0] triangle[1][1] += triangle[0][0] for row in range(2, len(triangle)): for col in range(len(triangle[row])): if col == 0: triangle[row][col] += triangle[row - 1][col] elif col == len(triangle[row]) - 1: triangle[row][col] += triangle[row - 1][col - 1] else: triangle[row][col] += min(triangle[row - 1][col], triangle[row - 1][col - 1]) return min(triangle[-1])
""" Given a triangle array, return the minimum path sum from top to bottom. For each step, you may move to an adjacent number of the row below. More formally, if you are on index i on the current row, you may move to either index i or index i + 1 on the next row. Example 1: Input: triangle = [[2],[3,4],[6,5,7],[4,1,8,3]] Output: 11 Explanation: The triangle looks like: 2 3 4 6 5 7 4 1 8 3 The minimum path sum from top to bottom is 2 + 3 + 5 + 1 = 11 (underlined above). Example 2: Input: triangle = [[-10]] Output: -10 Constraints: 1 <= triangle.length <= 200 triangle[0].length == 1 triangle[i].length == triangle[i - 1].length + 1 -104 <= triangle[i][j] <= 104 Follow up: Could you do this using only O(n) extra space, where n is the total number of rows in the triangle? """ class Solution: def minimum_total(self, triangle: List[List[int]]) -> int: if len(triangle) == 1: return triangle[0][0] triangle[1][0] += triangle[0][0] triangle[1][1] += triangle[0][0] for row in range(2, len(triangle)): for col in range(len(triangle[row])): if col == 0: triangle[row][col] += triangle[row - 1][col] elif col == len(triangle[row]) - 1: triangle[row][col] += triangle[row - 1][col - 1] else: triangle[row][col] += min(triangle[row - 1][col], triangle[row - 1][col - 1]) return min(triangle[-1])
PASSAGES = {} # type:ignore START = None INIT_STATE = None
passages = {} start = None init_state = None
pass
pass
# s: "The quick, superduperlong brown fox jumped over the lazy dog." # limit: 10 # output: [ # "The quick,", # "superduperlong", # "brown fox", # "jumped", # "over the", # "lazy dog.", # ] # # s: "" # output: [""] # if single word exceeds limit, count it as its own entry in the output. abc = "The quick, superduperlong brown fox jumped over the lazy dog." def text_chunker(text, limit): output = [] text = text.split(" ") curr_limit = '' for word in text: if (len(word) + len(curr_limit)) > (limit - 1): output.append(curr_limit) curr_limit=word elif not curr_limit: curr_limit=word else: curr_limit = " ".join([curr_limit, word]) if curr_limit: output.append(curr_limit) return output print(text_chunker(abc, 10))
abc = 'The quick, superduperlong brown fox jumped over the lazy dog.' def text_chunker(text, limit): output = [] text = text.split(' ') curr_limit = '' for word in text: if len(word) + len(curr_limit) > limit - 1: output.append(curr_limit) curr_limit = word elif not curr_limit: curr_limit = word else: curr_limit = ' '.join([curr_limit, word]) if curr_limit: output.append(curr_limit) return output print(text_chunker(abc, 10))
ES_HOST = 'localhost:9200' ES_INDEX = 'pending-pathway' ES_DOC_TYPE = 'geneset' API_PREFIX = 'geneset' API_VERSION = ''
es_host = 'localhost:9200' es_index = 'pending-pathway' es_doc_type = 'geneset' api_prefix = 'geneset' api_version = ''
CREATE_REPORTS = ('CREATE TABLE reports ' '(id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,' 'bug_id INTEGER NOT NULL,' 'current_resolution TEXT,' 'current_status TEXT,' 'opening INTEGER NOT NULL,' 'reporter INTEGER NOT NULL)' ) CREATE_ASSIGNED_TO = ('CREATE TABLE assigned_to(' 'id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,' 'bug_id INTEGER NOT NULL,' 'what TEXT,' 'timestamp INTEGER NOT NULL,' # do not use when since it is a reserved keyword 'who INTEGER NOT NULL,' 'FOREIGN KEY (id) REFERENCES reports(bug_id))' ) CREATE_BUG_STATUS = ('CREATE TABLE bug_status(' 'id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,' 'bug_id INTEGER NOT NULL,' 'what TEXT,' 'timestamp INTEGER NOT NULL,' 'who INTEGER NOT NULL,' 'FOREIGN KEY (id) REFERENCES reports(bug_id))' ) CREATE_CC = ('CREATE TABLE cc(' 'id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,' 'bug_id INTEGER NOT NULL,' 'what TEXT,' 'timestamp INTEGER NOT NULL,' 'who INTEGER NOT NULL,' 'FOREIGN KEY (id) REFERENCES reports(bug_id))' ) CREATE_COMPONENTS = ('CREATE TABLE components(' 'id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,' 'bug_id INTEGER NOT NULL,' 'what TEXT,' 'timestamp INTEGER NOT NULL,' 'who INTEGER NOT NULL,' 'FOREIGN KEY (id) REFERENCES reports(bug_id))' ) CREATE_OPERATION_SYSTEM = ('CREATE TABLE operation_system(' 'id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,' 'bug_id INTEGER NOT NULL,' 'what TEXT,' 'timestamp INTEGER NOT NULL,' 'who INTEGER NOT NULL,' 'FOREIGN KEY (id) REFERENCES reports(bug_id))' ) CREATE_PRIORITY = ('CREATE TABLE priority(' 'id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,' 'bug_id INTEGER NOT NULL,' 'what TEXT,' 'timestamp INTEGER NOT NULL,' 'who INTEGER NOT NULL,' 'FOREIGN KEY (id) REFERENCES reports(bug_id))' ) CREATE_PRODUCT = ('CREATE TABLE product(' 'id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,' 'bug_id INTEGER NOT NULL,' 'what TEXT,' 'timestamp INTEGER NOT NULL,' 'who INTEGER NOT NULL,' 'FOREIGN KEY (id) REFERENCES reports(bug_id))' ) CREATE_RESOLUTION = ('CREATE TABLE resolution(' 'id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,' 'bug_id INTEGER NOT NULL,' 'what TEXT,' 'timestamp INTEGER NOT NULL,' 'who INTEGER NOT NULL,' 'FOREIGN KEY (id) REFERENCES reports(bug_id))' ) CREATE_SEVERITY = ('CREATE TABLE severity(' 'id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,' 'bug_id INTEGER NOT NULL,' 'what TEXT,' 'timestamp INTEGER NOT NULL,' 'who INTEGER NOT NULL,' 'FOREIGN KEY (id) REFERENCES reports(bug_id))' ) CREATE_SHORT_DESCRIPTION = ('CREATE TABLE short_desc(' 'id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,' 'bug_id INTEGER NOT NULL,' 'what TEXT,' 'timestamp INTEGER NOT NULL,' 'who INTEGER NOT NULL,' 'FOREIGN KEY (id) REFERENCES reports(bug_id))' ) CREATE_VERSION = ('CREATE TABLE version(' 'id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,' 'bug_id INTEGER NOT NULL,' 'what TEXT,' 'timestamp INTEGER NOT NULL,' 'who INTEGER NOT NULL,' 'FOREIGN KEY (id) REFERENCES reports(bug_id))' ) CREATE_TRAINING_SET = ('CREATE TABLE training_set(' 'bug_id INTEGER PRIMARY KEY NOT NULL,' 'FOREIGN KEY (bug_id) REFERENCES reports(bug_id))' ) CREATE_VALIDATION_SET = ('CREATE TABLE validation_set(' 'bug_id INTEGER PRIMARY KEY NOT NULL,' 'FOREIGN KEY (bug_id) REFERENCES reports(bug_id))' ) CREATE_TEST_SET = ('CREATE TABLE test_set(' 'bug_id INTEGER PRIMARY KEY NOT NULL,' 'FOREIGN KEY (bug_id) REFERENCES reports(bug_id))' ) CREATE_FEATURES = ('CREATE TABLE features(' 'id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,' 'bug_id INTEGER NOT NULL,' 'feature_1 REAL,' 'feature_2 REAL,' 'feature_3 REAL,' 'feature_4 REAL,' 'feature_5 REAL,' 'feature_6 REAL,' 'feature_7 REAL,' 'feature_8 REAL,' 'feature_9 REAL,' 'feature_10 REAL,' 'FOREIGN KEY (bug_id) REFERENCES reports(bug_id))' ) FIND_SAMPLE_BUGS = ('SELECT bug_id FROM features WHERE feature_1 NOT NULL AND feature_2 NOT NULL AND feature_3 NOT NULL AND feature_4 NOT NULL AND feature_5 NOT NULL AND feature_6 NOT NULL AND feature_7 NOT NULL AND feature_8 NOT NULL AND feature_9 NOT NULL;')
create_reports = 'CREATE TABLE reports (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,bug_id INTEGER NOT NULL,current_resolution TEXT,current_status TEXT,opening INTEGER NOT NULL,reporter INTEGER NOT NULL)' create_assigned_to = 'CREATE TABLE assigned_to(id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,bug_id INTEGER NOT NULL,what TEXT,timestamp INTEGER NOT NULL,who INTEGER NOT NULL,FOREIGN KEY (id) REFERENCES reports(bug_id))' create_bug_status = 'CREATE TABLE bug_status(id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,bug_id INTEGER NOT NULL,what TEXT,timestamp INTEGER NOT NULL,who INTEGER NOT NULL,FOREIGN KEY (id) REFERENCES reports(bug_id))' create_cc = 'CREATE TABLE cc(id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,bug_id INTEGER NOT NULL,what TEXT,timestamp INTEGER NOT NULL,who INTEGER NOT NULL,FOREIGN KEY (id) REFERENCES reports(bug_id))' create_components = 'CREATE TABLE components(id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,bug_id INTEGER NOT NULL,what TEXT,timestamp INTEGER NOT NULL,who INTEGER NOT NULL,FOREIGN KEY (id) REFERENCES reports(bug_id))' create_operation_system = 'CREATE TABLE operation_system(id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,bug_id INTEGER NOT NULL,what TEXT,timestamp INTEGER NOT NULL,who INTEGER NOT NULL,FOREIGN KEY (id) REFERENCES reports(bug_id))' create_priority = 'CREATE TABLE priority(id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,bug_id INTEGER NOT NULL,what TEXT,timestamp INTEGER NOT NULL,who INTEGER NOT NULL,FOREIGN KEY (id) REFERENCES reports(bug_id))' create_product = 'CREATE TABLE product(id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,bug_id INTEGER NOT NULL,what TEXT,timestamp INTEGER NOT NULL,who INTEGER NOT NULL,FOREIGN KEY (id) REFERENCES reports(bug_id))' create_resolution = 'CREATE TABLE resolution(id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,bug_id INTEGER NOT NULL,what TEXT,timestamp INTEGER NOT NULL,who INTEGER NOT NULL,FOREIGN KEY (id) REFERENCES reports(bug_id))' create_severity = 'CREATE TABLE severity(id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,bug_id INTEGER NOT NULL,what TEXT,timestamp INTEGER NOT NULL,who INTEGER NOT NULL,FOREIGN KEY (id) REFERENCES reports(bug_id))' create_short_description = 'CREATE TABLE short_desc(id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,bug_id INTEGER NOT NULL,what TEXT,timestamp INTEGER NOT NULL,who INTEGER NOT NULL,FOREIGN KEY (id) REFERENCES reports(bug_id))' create_version = 'CREATE TABLE version(id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,bug_id INTEGER NOT NULL,what TEXT,timestamp INTEGER NOT NULL,who INTEGER NOT NULL,FOREIGN KEY (id) REFERENCES reports(bug_id))' create_training_set = 'CREATE TABLE training_set(bug_id INTEGER PRIMARY KEY NOT NULL,FOREIGN KEY (bug_id) REFERENCES reports(bug_id))' create_validation_set = 'CREATE TABLE validation_set(bug_id INTEGER PRIMARY KEY NOT NULL,FOREIGN KEY (bug_id) REFERENCES reports(bug_id))' create_test_set = 'CREATE TABLE test_set(bug_id INTEGER PRIMARY KEY NOT NULL,FOREIGN KEY (bug_id) REFERENCES reports(bug_id))' create_features = 'CREATE TABLE features(id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,bug_id INTEGER NOT NULL,feature_1 REAL,feature_2 REAL,feature_3 REAL,feature_4 REAL,feature_5 REAL,feature_6 REAL,feature_7 REAL,feature_8 REAL,feature_9 REAL,feature_10 REAL,FOREIGN KEY (bug_id) REFERENCES reports(bug_id))' find_sample_bugs = 'SELECT bug_id FROM features WHERE feature_1 NOT NULL AND feature_2 NOT NULL AND feature_3 NOT NULL AND feature_4 NOT NULL AND feature_5 NOT NULL AND feature_6 NOT NULL AND feature_7 NOT NULL AND feature_8 NOT NULL AND feature_9 NOT NULL;'
"Generate a Kaggle submission file from VW predictions" loc_preds = "data/shop.preds.txt" loc_submission = "data/kaggle.submission.csv" loc_test = "data/testHistory.csv" def generate_submission(loc_preds, loc_test, loc_submission): preds = {} for e, line in enumerate( open(loc_preds) ): row = line.strip().split(" ") preds[ row[1] ] = row[0] with open(loc_submission, "wb") as outfile: for e, line in enumerate( open(loc_test) ): if e == 0: outfile.write( "id,repeatProbability\n" ) else: row = line.strip().split(",") if row[0] not in preds: outfile.write(row[0]+",0\n") else: outfile.write(row[0]+","+preds[row[0]]+"\n") #generate_submission(loc_preds, loc_test, loc_submission) if __name__ == '__main__': generate_submission(loc_preds, loc_test, loc_submission)
"""Generate a Kaggle submission file from VW predictions""" loc_preds = 'data/shop.preds.txt' loc_submission = 'data/kaggle.submission.csv' loc_test = 'data/testHistory.csv' def generate_submission(loc_preds, loc_test, loc_submission): preds = {} for (e, line) in enumerate(open(loc_preds)): row = line.strip().split(' ') preds[row[1]] = row[0] with open(loc_submission, 'wb') as outfile: for (e, line) in enumerate(open(loc_test)): if e == 0: outfile.write('id,repeatProbability\n') else: row = line.strip().split(',') if row[0] not in preds: outfile.write(row[0] + ',0\n') else: outfile.write(row[0] + ',' + preds[row[0]] + '\n') if __name__ == '__main__': generate_submission(loc_preds, loc_test, loc_submission)
''' Author : Arnob Mahmud Mail : arnob.tech.me @ gmail.com ''' num = int(input("Enter starting number :")) n = int(input("Enter ending number :")) i = num while i <= n: print(i) if i % 13 == 0: break; # Breaks the loop if the upper condition been right i = i + 1
""" Author : Arnob Mahmud Mail : arnob.tech.me @ gmail.com """ num = int(input('Enter starting number :')) n = int(input('Enter ending number :')) i = num while i <= n: print(i) if i % 13 == 0: break i = i + 1
def make_node(): pass def make_value_info(): pass
def make_node(): pass def make_value_info(): pass
categorie="TELEPHONIE - GPS" all_descr_clean_stem = " ".join(data[data.Categorie1==categorie].Description_cleaned.values) wordcloud_word = WordCloud(background_color="black", collocations=False).generate_from_text(all_descr_clean_stem) plt.figure(figsize=(10,10)) plt.imshow(wordcloud_word,cmap=plt.cm.Paired) plt.axis("off") plt.show()
categorie = 'TELEPHONIE - GPS' all_descr_clean_stem = ' '.join(data[data.Categorie1 == categorie].Description_cleaned.values) wordcloud_word = word_cloud(background_color='black', collocations=False).generate_from_text(all_descr_clean_stem) plt.figure(figsize=(10, 10)) plt.imshow(wordcloud_word, cmap=plt.cm.Paired) plt.axis('off') plt.show()
def minutes_to_hours(seconds, minutes=70): hours = minutes / 60.0 + seconds / 3600 return hours print(minutes_to_hours(300, 200)) # oppure si puo' scrivere: # def minutes_to_hours(seconds, minutes=70): # hours = minutes / 60.0 + seconds / 3600 # print(hours) # (minutes_to_hours(300, 200)) # for example, numbers2.py's file function can be rewritten as def age_foo(age): new_age = float(age) + 50 return new_age age = input("Enter your age: ") print(age_foo(age))
def minutes_to_hours(seconds, minutes=70): hours = minutes / 60.0 + seconds / 3600 return hours print(minutes_to_hours(300, 200)) def age_foo(age): new_age = float(age) + 50 return new_age age = input('Enter your age: ') print(age_foo(age))
i = 1 for n in range(5): globals()["w" + str(i)] = "adi" i += 1 print(w2)
i = 1 for n in range(5): globals()['w' + str(i)] = 'adi' i += 1 print(w2)
class Serialreader: def __init__(self, s): self.buf = bytearray() self.s = s def readline(self): i = self.buf.find(b"\r") if i >= 0: r = self.buf[:i+1] self.buf = self.buf[i+1:] return r while True: i = max(1, min(2048, self.s.in_waiting)) data = self.s.read(i) i = data.find(b"\r") if i >= 0: r = self.buf + data[:i+1] self.buf[0:] = data[i+1:] return r else: self.buf.extend(data)
class Serialreader: def __init__(self, s): self.buf = bytearray() self.s = s def readline(self): i = self.buf.find(b'\r') if i >= 0: r = self.buf[:i + 1] self.buf = self.buf[i + 1:] return r while True: i = max(1, min(2048, self.s.in_waiting)) data = self.s.read(i) i = data.find(b'\r') if i >= 0: r = self.buf + data[:i + 1] self.buf[0:] = data[i + 1:] return r else: self.buf.extend(data)
i = int(input("Enter a number: ")) if i%5 == 0: print('Hello') else: print('Bye')
i = int(input('Enter a number: ')) if i % 5 == 0: print('Hello') else: print('Bye')
class Users(THE_DATABASE.Model): # this uses SqlAlchemy to create User classes when pulling data from the database __tablename__ = 'Users' username = THE_DATABASE.Column(THE_DATABASE.String(128),primary_key = True) password = THE_DATABASE.Column(THE_DATABASE.String(64)) def __init__(self,input_username,input_password): # FIXME, check if username is already in database self.password = input_password self.username = input_username THE_DATABASE.session.add(self) THE_DATABASE.session.commit() @classmethod def add(this_class,input_username,input_password): # FIXME, check if username is already in database return Users(input_username,input_password) @classmethod def withUsername(this_class,input_username): result = this_class.query.filter_by(username=input_username).first() if result == None: return None else: return result.asJson() def delete(self): THE_DATABASE.session.delete(self) THE_DATABASE.session.commit() def asJson(self): return { "username" : self.username, "password" : self.password, }
class Users(THE_DATABASE.Model): __tablename__ = 'Users' username = THE_DATABASE.Column(THE_DATABASE.String(128), primary_key=True) password = THE_DATABASE.Column(THE_DATABASE.String(64)) def __init__(self, input_username, input_password): self.password = input_password self.username = input_username THE_DATABASE.session.add(self) THE_DATABASE.session.commit() @classmethod def add(this_class, input_username, input_password): return users(input_username, input_password) @classmethod def with_username(this_class, input_username): result = this_class.query.filter_by(username=input_username).first() if result == None: return None else: return result.asJson() def delete(self): THE_DATABASE.session.delete(self) THE_DATABASE.session.commit() def as_json(self): return {'username': self.username, 'password': self.password}
t=int(input()) for i in range(t): x1,x2,y1,y2,z1,z2=map(int,input().split()) if(x1<=x2 and y1<=y2 and z1>=z2): print("yes") else: print("no")
t = int(input()) for i in range(t): (x1, x2, y1, y2, z1, z2) = map(int, input().split()) if x1 <= x2 and y1 <= y2 and (z1 >= z2): print('yes') else: print('no')
def new(): pass
def new(): pass
class LeadRecord: def __init__(self): self.attributes = {} def __str__(self): return "Lead (%s - %s)" % (self.id, self.email) def __repr__(self): return self.__str__() def unwrap(xml): lead = LeadRecord() lead.id = xml.find('Id').text lead.email = xml.find('Email').text for attribute in xml.findall('.//attribute'): name = attribute.find('attrName').text attr_type = attribute.find('attrType').text val = attribute.find('attrValue').text if attr_type == 'integer': val = int(val) lead.attributes[name] = val return lead
class Leadrecord: def __init__(self): self.attributes = {} def __str__(self): return 'Lead (%s - %s)' % (self.id, self.email) def __repr__(self): return self.__str__() def unwrap(xml): lead = lead_record() lead.id = xml.find('Id').text lead.email = xml.find('Email').text for attribute in xml.findall('.//attribute'): name = attribute.find('attrName').text attr_type = attribute.find('attrType').text val = attribute.find('attrValue').text if attr_type == 'integer': val = int(val) lead.attributes[name] = val return lead
# def pow2(x): # return x**2 # for x in map(pow2, range(1,5)): # print(x) # for n in map(pow, range(1,10), range(4,0,-1)): # print(n) #==========practice============= #1. 1**2 + 2**2 + 3**2........+9**2 print("pow2 total is: ",sum(map(lambda x: x**2, range(1,10)))) #2. 1**3 + 2**3 + 3**3........+9**3 total=0 pow3=lambda n: n**3 for x in map(pow3, range(1,10)): total+=x print("pow3 total is: ", total) #3. 1**9 + 2**8 + 3**7........+9**1 total=0 for x in map(pow, range(1,10), range(9,0,-1)): total+=x print("pow total is: ", total)
print('pow2 total is: ', sum(map(lambda x: x ** 2, range(1, 10)))) total = 0 pow3 = lambda n: n ** 3 for x in map(pow3, range(1, 10)): total += x print('pow3 total is: ', total) total = 0 for x in map(pow, range(1, 10), range(9, 0, -1)): total += x print('pow total is: ', total)
# a*x+b=y def a_line (a,b): # def arg_y (x): # y = a*x+b # return y y = lambda x:a*x+b return y # a=3,b=5 # x=10,y=? # x=20,y=? line1 = a_line(3,5) line2 = a_line(5,10) print(line1(10)) print(line1(20)) print(line2(10)) print(line2(20))
def a_line(a, b): y = lambda x: a * x + b return y line1 = a_line(3, 5) line2 = a_line(5, 10) print(line1(10)) print(line1(20)) print(line2(10)) print(line2(20))
#!/usr/bin/env python # coding=utf-8 # author: zengyuetian if __name__ == '__main__': pass
if __name__ == '__main__': pass
class Solution: def longestAwesome(self, s: str) -> int: ans = 0 prefix = 0 # binary prefix prefixToIndex = [len(s)] * 1024 prefixToIndex[0] = -1 for i, c in enumerate(s): prefix ^= 1 << ord(c) - ord('0') ans = max(ans, i - prefixToIndex[prefix]) for j in range(10): ans = max(ans, i - prefixToIndex[prefix ^ 1 << j]) prefixToIndex[prefix] = min(prefixToIndex[prefix], i) return ans
class Solution: def longest_awesome(self, s: str) -> int: ans = 0 prefix = 0 prefix_to_index = [len(s)] * 1024 prefixToIndex[0] = -1 for (i, c) in enumerate(s): prefix ^= 1 << ord(c) - ord('0') ans = max(ans, i - prefixToIndex[prefix]) for j in range(10): ans = max(ans, i - prefixToIndex[prefix ^ 1 << j]) prefixToIndex[prefix] = min(prefixToIndex[prefix], i) return ans
__author__ = 'Tyler Rudie' class article(object): Date = '' Publisher = '' Title = '' URL = '' Term = '' def __init__(self, Date, Publisher, Title, URL, Term): self.Date = Date self.Publisher = Publisher self.Title = Title self.URL = URL self.Term = Term def new_article(Date, Publisher, Title, URL, Term): return article(Date, Publisher, Title, URL, Term)
__author__ = 'Tyler Rudie' class Article(object): date = '' publisher = '' title = '' url = '' term = '' def __init__(self, Date, Publisher, Title, URL, Term): self.Date = Date self.Publisher = Publisher self.Title = Title self.URL = URL self.Term = Term def new_article(Date, Publisher, Title, URL, Term): return article(Date, Publisher, Title, URL, Term)
#! /usr/bin/env python # -*- coding: utf-8 -*- class CakeError(Exception): def __init__(self, name): self.name = name def __str__(self): return self.name
class Cakeerror(Exception): def __init__(self, name): self.name = name def __str__(self): return self.name
# # PySNMP MIB module HH3C-EPON-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HH3C-EPON-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:13:45 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, ValueRangeConstraint, ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection") hh3cLswSlotIndex, hh3cLswFrameIndex = mibBuilder.importSymbols("HH3C-LSW-DEV-ADM-MIB", "hh3cLswSlotIndex", "hh3cLswFrameIndex") hh3cEpon, = mibBuilder.importSymbols("HH3C-OID-MIB", "hh3cEpon") ifIndex, ifDescr = mibBuilder.importSymbols("IF-MIB", "ifIndex", "ifDescr") InetAddressType, InetAddress = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddressType", "InetAddress") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") Integer32, iso, Unsigned32, IpAddress, Counter64, TimeTicks, MibScalar, MibTable, MibTableRow, MibTableColumn, MibIdentifier, Gauge32, Counter32, ObjectIdentity, Bits, ModuleIdentity, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "iso", "Unsigned32", "IpAddress", "Counter64", "TimeTicks", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "MibIdentifier", "Gauge32", "Counter32", "ObjectIdentity", "Bits", "ModuleIdentity", "NotificationType") TextualConvention, TruthValue, MacAddress, DisplayString, RowStatus, DateAndTime = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "TruthValue", "MacAddress", "DisplayString", "RowStatus", "DateAndTime") hh3cEponMibObjects = ModuleIdentity((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1)) if mibBuilder.loadTexts: hh3cEponMibObjects.setLastUpdated('200705221008Z') if mibBuilder.loadTexts: hh3cEponMibObjects.setOrganization('Hangzhou H3C Technologies Co., Ltd.') hh3cEponSysMan = MibIdentifier((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1)) hh3cEponAutoAuthorize = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 1), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cEponAutoAuthorize.setStatus('current') hh3cEponMonitorCycle = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cEponMonitorCycle.setStatus('current') hh3cEponMsgTimeOut = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 3), Integer32().clone(600)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cEponMsgTimeOut.setStatus('current') hh3cEponMsgLoseNum = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 4), Integer32().clone(20)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cEponMsgLoseNum.setStatus('current') hh3cEponSysHasEPONBoard = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 5), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cEponSysHasEPONBoard.setStatus('current') hh3cEponMonitorCycleEnable = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 6), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cEponMonitorCycleEnable.setStatus('current') hh3cEponOltSoftwareErrAlmEnable = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 7), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cEponOltSoftwareErrAlmEnable.setStatus('current') hh3cEponPortLoopBackAlmEnable = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 8), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cEponPortLoopBackAlmEnable.setStatus('current') hh3cEponMonitorCycleMinVal = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cEponMonitorCycleMinVal.setStatus('current') hh3cEponMonitorCycleMaxVal = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cEponMonitorCycleMaxVal.setStatus('current') hh3cEponMsgTimeOutMinVal = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 11), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cEponMsgTimeOutMinVal.setStatus('current') hh3cEponMsgTimeOutMaxVal = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 12), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cEponMsgTimeOutMaxVal.setStatus('current') hh3cEponMsgLoseNumMinVal = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 13), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cEponMsgLoseNumMinVal.setStatus('current') hh3cEponMsgLoseNumMaxVal = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 14), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cEponMsgLoseNumMaxVal.setStatus('current') hh3cEponSysScalarGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 15)) hh3cEponSysManTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 16), ) if mibBuilder.loadTexts: hh3cEponSysManTable.setStatus('current') hh3cEponSysManEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 16, 1), ).setIndexNames((0, "HH3C-EPON-MIB", "hh3cEponSlotIndex")) if mibBuilder.loadTexts: hh3cEponSysManEntry.setStatus('current') hh3cEponSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 16, 1, 1), Integer32()) if mibBuilder.loadTexts: hh3cEponSlotIndex.setStatus('current') hh3cEponModeSwitch = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 16, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("cmode", 1), ("hmode", 2))).clone('cmode')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cEponModeSwitch.setStatus('current') hh3cEponAutomaticMode = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 16, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2))).clone('enable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cEponAutomaticMode.setStatus('current') hh3cEponOamDiscoveryTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 16, 1, 4), Integer32().clone(30)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cEponOamDiscoveryTimeout.setStatus('current') hh3cEponEncryptionNoReplyTimeOut = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 16, 1, 5), Integer32().clone(30)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cEponEncryptionNoReplyTimeOut.setStatus('current') hh3cEponEncryptionUpdateTime = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 16, 1, 6), Integer32().clone(10)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cEponEncryptionUpdateTime.setStatus('current') hh3cEponAutoBindStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 16, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2))).clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cEponAutoBindStatus.setStatus('current') hh3cEponAutoUpdateTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 17), ) if mibBuilder.loadTexts: hh3cEponAutoUpdateTable.setStatus('current') hh3cEponAutoUpdateEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 17, 1), ).setIndexNames((0, "HH3C-EPON-MIB", "hh3cEponSlotIndex")) if mibBuilder.loadTexts: hh3cEponAutoUpdateEntry.setStatus('current') hh3cEponAutoUpdateFileName = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 17, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cEponAutoUpdateFileName.setStatus('current') hh3cEponAutoUpdateSchedStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 17, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2))).clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cEponAutoUpdateSchedStatus.setStatus('current') hh3cEponAutoUpdateSchedTime = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 17, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cEponAutoUpdateSchedTime.setStatus('current') hh3cEponAutoUpdateSchedType = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 17, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("daily", 1), ("weekly", 2), ("comingdate", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cEponAutoUpdateSchedType.setStatus('current') hh3cEponAutoUpdateRealTimeStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 17, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2))).clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cEponAutoUpdateRealTimeStatus.setStatus('current') hh3cEponOuiIndexNextTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 18), ) if mibBuilder.loadTexts: hh3cEponOuiIndexNextTable.setStatus('current') hh3cEponOuiIndexNextEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 18, 1), ).setIndexNames((0, "HH3C-EPON-MIB", "hh3cEponSlotIndex")) if mibBuilder.loadTexts: hh3cEponOuiIndexNextEntry.setStatus('current') hh3cEponOuiIndexNext = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 18, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cEponOuiIndexNext.setStatus('current') hh3cEponOuiTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 19), ) if mibBuilder.loadTexts: hh3cEponOuiTable.setStatus('current') hh3cEponOuiEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 19, 1), ).setIndexNames((0, "HH3C-EPON-MIB", "hh3cEponSlotIndex"), (0, "HH3C-EPON-MIB", "hh3cEponOuiIndex")) if mibBuilder.loadTexts: hh3cEponOuiEntry.setStatus('current') hh3cEponOuiIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 19, 1, 1), Integer32()) if mibBuilder.loadTexts: hh3cEponOuiIndex.setStatus('current') hh3cEponOuiValue = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 19, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 512))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hh3cEponOuiValue.setStatus('current') hh3cEponOamVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 19, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hh3cEponOamVersion.setStatus('current') hh3cEponOuiRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 19, 1, 4), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hh3cEponOuiRowStatus.setStatus('current') hh3cEponMulticastControlTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 20), ) if mibBuilder.loadTexts: hh3cEponMulticastControlTable.setStatus('current') hh3cEponMulticastControlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 20, 1), ).setIndexNames((0, "HH3C-EPON-MIB", "hh3cEponMulticastVlanId")) if mibBuilder.loadTexts: hh3cEponMulticastControlEntry.setStatus('current') hh3cEponMulticastVlanId = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 20, 1, 1), Integer32()) if mibBuilder.loadTexts: hh3cEponMulticastVlanId.setStatus('current') hh3cEponMulticastAddressList = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 20, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hh3cEponMulticastAddressList.setStatus('current') hh3cEponMulticastStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 20, 1, 3), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hh3cEponMulticastStatus.setStatus('current') hh3cEponFileName = MibIdentifier((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 2)) hh3cEponDbaUpdateFileName = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 2, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cEponDbaUpdateFileName.setStatus('current') hh3cEponOnuUpdateFileName = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 2, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cEponOnuUpdateFileName.setStatus('current') hh3cEponOltMan = MibIdentifier((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3)) hh3cOltSysManTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 1), ) if mibBuilder.loadTexts: hh3cOltSysManTable.setStatus('current') hh3cOltSysManEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hh3cOltSysManEntry.setStatus('current') hh3cOltLaserOnTime = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 1, 1, 1), Integer32().clone(96)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOltLaserOnTime.setStatus('current') hh3cOltLaserOffTime = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 1, 1, 2), Integer32().clone(96)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOltLaserOffTime.setStatus('current') hh3cOltMultiCopyBrdCast = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 1, 1, 3), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOltMultiCopyBrdCast.setStatus('current') hh3cOltEnableDiscardPacket = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 1, 1, 4), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOltEnableDiscardPacket.setStatus('current') hh3cOltSelfTest = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("selftest", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOltSelfTest.setStatus('current') hh3cOltSelfTestResult = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("fail", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOltSelfTestResult.setStatus('current') hh3cOltMaxRtt = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 1, 1, 7), Unsigned32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOltMaxRtt.setStatus('current') hh3cOltInfoTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 2), ) if mibBuilder.loadTexts: hh3cOltInfoTable.setStatus('current') hh3cOltInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hh3cOltInfoEntry.setStatus('current') hh3cOltFirmMajorVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 2, 1, 1), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOltFirmMajorVersion.setStatus('current') hh3cOltFirmMinorVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 2, 1, 2), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOltFirmMinorVersion.setStatus('current') hh3cOltHardMajorVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 2, 1, 3), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOltHardMajorVersion.setStatus('current') hh3cOltHardMinorVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 2, 1, 4), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOltHardMinorVersion.setStatus('current') hh3cOltAgcLockTime = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 2, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOltAgcLockTime.setStatus('current') hh3cOltAgcCdrTime = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 2, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOltAgcCdrTime.setStatus('current') hh3cOltMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 2, 1, 7), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOltMacAddress.setStatus('current') hh3cOltWorkMode = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 2, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("open", 2), ("reset", 3), ("closed", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOltWorkMode.setStatus('current') hh3cOltOpticalPowerTx = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 2, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOltOpticalPowerTx.setStatus('current') hh3cOltOpticalPowerRx = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 2, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOltOpticalPowerRx.setStatus('current') hh3cOltDbaManTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 3), ) if mibBuilder.loadTexts: hh3cOltDbaManTable.setStatus('current') hh3cOltDbaManEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 3, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hh3cOltDbaManEntry.setStatus('current') hh3cOltDbaEnabledType = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 3, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("internal", 1), ("external", 2))).clone('internal')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOltDbaEnabledType.setStatus('current') hh3cOltDbaDiscoveryLength = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 3, 1, 2), Integer32().clone(41500)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOltDbaDiscoveryLength.setStatus('current') hh3cOltDbaDiscovryFrequency = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 3, 1, 3), Integer32().clone(50)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOltDbaDiscovryFrequency.setStatus('current') hh3cOltDbaCycleLength = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 3, 1, 4), Integer32().clone(65535)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOltDbaCycleLength.setStatus('current') hh3cOltDbaVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 3, 1, 5), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOltDbaVersion.setStatus('current') hh3cOltDbaUpdate = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 3, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("update", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOltDbaUpdate.setStatus('current') hh3cOltDbaUpdateResult = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 3, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("fail", 3), ("fileNotExist", 4), ("notSetFilename", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOltDbaUpdateResult.setStatus('current') hh3cOltPortAlarmThresholdTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 4), ) if mibBuilder.loadTexts: hh3cOltPortAlarmThresholdTable.setStatus('current') hh3cOltPortAlarmThresholdEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 4, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hh3cOltPortAlarmThresholdEntry.setStatus('current') hh3cOltPortAlarmBerEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 4, 1, 1), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOltPortAlarmBerEnabled.setStatus('current') hh3cOltPortAlarmBerDirect = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 4, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("berUplink", 1), ("berDownlink", 2), ("berAll", 3))).clone('berAll')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOltPortAlarmBerDirect.setStatus('current') hh3cOltPortAlarmBerThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 4, 1, 3), Integer32().clone(10)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOltPortAlarmBerThreshold.setStatus('current') hh3cOltPortAlarmFerEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 4, 1, 4), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOltPortAlarmFerEnabled.setStatus('current') hh3cOltPortAlarmFerDirect = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 4, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("ferUplink", 1), ("ferDownlink", 2), ("ferAll", 3))).clone('ferAll')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOltPortAlarmFerDirect.setStatus('current') hh3cOltPortAlarmFerThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 4, 1, 6), Integer32().clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOltPortAlarmFerThreshold.setStatus('current') hh3cOltPortAlarmLlidMismatchEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 4, 1, 7), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOltPortAlarmLlidMismatchEnabled.setStatus('current') hh3cOltPortAlarmLlidMismatchThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 4, 1, 8), Integer32().clone(5000)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOltPortAlarmLlidMismatchThreshold.setStatus('current') hh3cOltPortAlarmRemoteStableEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 4, 1, 9), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOltPortAlarmRemoteStableEnabled.setStatus('current') hh3cOltPortAlarmLocalStableEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 4, 1, 10), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOltPortAlarmLocalStableEnabled.setStatus('current') hh3cOltPortAlarmRegistrationEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 4, 1, 11), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOltPortAlarmRegistrationEnabled.setStatus('current') hh3cOltPortAlarmOamDisconnectionEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 4, 1, 12), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOltPortAlarmOamDisconnectionEnabled.setStatus('current') hh3cOltPortAlarmEncryptionKeyEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 4, 1, 13), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOltPortAlarmEncryptionKeyEnabled.setStatus('current') hh3cOltPortAlarmVendorSpecificEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 4, 1, 14), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOltPortAlarmVendorSpecificEnabled.setStatus('current') hh3cOltPortAlarmRegExcessEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 4, 1, 15), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOltPortAlarmRegExcessEnabled.setStatus('current') hh3cOltPortAlarmDFEEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 4, 1, 16), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOltPortAlarmDFEEnabled.setStatus('current') hh3cOltLaserOnTimeMinVal = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOltLaserOnTimeMinVal.setStatus('current') hh3cOltLaserOnTimeMaxVal = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOltLaserOnTimeMaxVal.setStatus('current') hh3cOltLaserOffTimeMinVal = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOltLaserOffTimeMinVal.setStatus('current') hh3cOltLaserOffTimeMaxVal = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOltLaserOffTimeMaxVal.setStatus('current') hh3cOltDbaDiscoveryLengthMinVal = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOltDbaDiscoveryLengthMinVal.setStatus('current') hh3cOltDbaDiscoveryLengthMaxVal = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOltDbaDiscoveryLengthMaxVal.setStatus('current') hh3cOltDbaDiscovryFrequencyMinVal = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 11), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOltDbaDiscovryFrequencyMinVal.setStatus('current') hh3cOltDbaDiscovryFrequencyMaxVal = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 12), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOltDbaDiscovryFrequencyMaxVal.setStatus('current') hh3cOltDbaCycleLengthMinVal = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 13), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOltDbaCycleLengthMinVal.setStatus('current') hh3cOltDbaCycleLengthMaxVal = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 14), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOltDbaCycleLengthMaxVal.setStatus('current') hh3cOltPortAlarmLlidMisMinVal = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 15), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOltPortAlarmLlidMisMinVal.setStatus('current') hh3cOltPortAlarmLlidMisMaxVal = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 16), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOltPortAlarmLlidMisMaxVal.setStatus('current') hh3cOltPortAlarmBerMinVal = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 17), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOltPortAlarmBerMinVal.setStatus('current') hh3cOltPortAlarmBerMaxVal = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 18), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOltPortAlarmBerMaxVal.setStatus('current') hh3cOltPortAlarmFerMinVal = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 19), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOltPortAlarmFerMinVal.setStatus('current') hh3cOltPortAlarmFerMaxVal = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 20), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOltPortAlarmFerMaxVal.setStatus('current') hh3cOnuSilentTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 21), ) if mibBuilder.loadTexts: hh3cOnuSilentTable.setStatus('current') hh3cOnuSilentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 21, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "HH3C-EPON-MIB", "hh3cOnuSilentMacAddr")) if mibBuilder.loadTexts: hh3cOnuSilentEntry.setStatus('current') hh3cOnuSilentMacAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 21, 1, 1), MacAddress()) if mibBuilder.loadTexts: hh3cOnuSilentMacAddr.setStatus('current') hh3cOnuSilentTime = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 21, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuSilentTime.setStatus('current') hh3cOltUsingOnuTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 22), ) if mibBuilder.loadTexts: hh3cOltUsingOnuTable.setStatus('current') hh3cOltUsingOnuEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 22, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "HH3C-EPON-MIB", "hh3cOltUsingOnuNum")) if mibBuilder.loadTexts: hh3cOltUsingOnuEntry.setStatus('current') hh3cOltUsingOnuNum = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 22, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))) if mibBuilder.loadTexts: hh3cOltUsingOnuNum.setStatus('current') hh3cOltUsingOnuIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 22, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOltUsingOnuIfIndex.setStatus('current') hh3cOltUsingOnuRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 22, 1, 3), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hh3cOltUsingOnuRowStatus.setStatus('current') hh3cEponOnuMan = MibIdentifier((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5)) hh3cOnuSysManTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 1), ) if mibBuilder.loadTexts: hh3cOnuSysManTable.setStatus('current') hh3cOnuSysManEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hh3cOnuSysManEntry.setStatus('current') hh3cOnuEncryptMan = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("off", 1), ("downlink", 2), ("updownlink", 3))).clone('downlink')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuEncryptMan.setStatus('current') hh3cOnuReAuthorize = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("reAuthorize", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuReAuthorize.setStatus('current') hh3cOnuMulticastFilterStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 1, 1, 3), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuMulticastFilterStatus.setStatus('current') hh3cOnuDbaReportQueueSetNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 1, 1, 4), Integer32().clone(2)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuDbaReportQueueSetNumber.setStatus('current') hh3cOnuRemoteFecStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2))).clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuRemoteFecStatus.setStatus('current') hh3cOnuPortBerStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2))).clone('enable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuPortBerStatus.setStatus('current') hh3cOnuReset = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("reset", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuReset.setStatus('current') hh3cOnuMulticastControlMode = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("igmpsnooping", 1), ("multicastcontrol", 2))).clone('igmpsnooping')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuMulticastControlMode.setStatus('current') hh3cOnuAccessVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 1, 1, 9), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuAccessVlan.setStatus('current') hh3cOnuEncryptKey = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 1, 1, 10), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuEncryptKey.setStatus('current') hh3cOnuUniUpDownTrapStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 1, 1, 11), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuUniUpDownTrapStatus.setStatus('current') hh3cOnuFecStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2))).clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuFecStatus.setStatus('current') hh3cOnuMcastCtrlHostAgingTime = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 1, 1, 13), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuMcastCtrlHostAgingTime.setStatus('current') hh3cOnuMulticastFastLeaveEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 1, 1, 14), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuMulticastFastLeaveEnable.setStatus('current') hh3cOnuPortIsolateEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 1, 1, 15), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuPortIsolateEnable.setStatus('current') hh3cOnuLinkTestTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 2), ) if mibBuilder.loadTexts: hh3cOnuLinkTestTable.setStatus('current') hh3cOnuLinkTestEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hh3cOnuLinkTestEntry.setStatus('current') hh3cOnuLinkTestFrameNum = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 2, 1, 1), Integer32().clone(20)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuLinkTestFrameNum.setStatus('current') hh3cOnuLinkTestFrameSize = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(60, 1514)).clone(1000)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuLinkTestFrameSize.setStatus('current') hh3cOnuLinkTestDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 2, 1, 3), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuLinkTestDelay.setStatus('current') hh3cOnuLinkTestVlanTag = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 2, 1, 4), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuLinkTestVlanTag.setStatus('current') hh3cOnuLinkTestVlanPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 2, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7)).clone(2)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuLinkTestVlanPriority.setStatus('current') hh3cOnuLinkTestVlanTagID = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 2, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4094)).clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuLinkTestVlanTagID.setStatus('current') hh3cOnuLinkTestResultSentFrameNum = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 2, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuLinkTestResultSentFrameNum.setStatus('current') hh3cOnuLinkTestResultRetFrameNum = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 2, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuLinkTestResultRetFrameNum.setStatus('current') hh3cOnuLinkTestResultRetErrFrameNum = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 2, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuLinkTestResultRetErrFrameNum.setStatus('current') hh3cOnuLinkTestResultMinDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 2, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuLinkTestResultMinDelay.setStatus('current') hh3cOnuLinkTestResultMeanDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 2, 1, 11), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuLinkTestResultMeanDelay.setStatus('current') hh3cOnuLinkTestResultMaxDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 2, 1, 12), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuLinkTestResultMaxDelay.setStatus('current') hh3cOnuBandWidthTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 3), ) if mibBuilder.loadTexts: hh3cOnuBandWidthTable.setStatus('current') hh3cOnuBandWidthEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 3, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hh3cOnuBandWidthEntry.setStatus('current') hh3cOnuDownStreamBandWidthPolicy = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 3, 1, 1), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuDownStreamBandWidthPolicy.setStatus('current') hh3cOnuDownStreamMaxBandWidth = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 3, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1000000)).clone(1000000)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuDownStreamMaxBandWidth.setStatus('current') hh3cOnuDownStreamMaxBurstSize = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 3, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 8388480)).clone(8388480)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuDownStreamMaxBurstSize.setStatus('current') hh3cOnuDownStreamHighPriorityFirst = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 3, 1, 4), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuDownStreamHighPriorityFirst.setStatus('current') hh3cOnuDownStreamShortFrameFirst = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 3, 1, 5), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuDownStreamShortFrameFirst.setStatus('current') hh3cOnuP2PBandWidthPolicy = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 3, 1, 6), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuP2PBandWidthPolicy.setStatus('current') hh3cOnuP2PMaxBandWidth = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 3, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1000000)).clone(1000000)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuP2PMaxBandWidth.setStatus('current') hh3cOnuP2PMaxBurstSize = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 3, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 8388480)).clone(8388480)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuP2PMaxBurstSize.setStatus('current') hh3cOnuP2PHighPriorityFirst = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 3, 1, 9), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuP2PHighPriorityFirst.setStatus('current') hh3cOnuP2PShortFrameFirst = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 3, 1, 10), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuP2PShortFrameFirst.setStatus('current') hh3cOnuSlaManTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 4), ) if mibBuilder.loadTexts: hh3cOnuSlaManTable.setStatus('current') hh3cOnuSlaManEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 4, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hh3cOnuSlaManEntry.setStatus('current') hh3cOnuSlaMaxBandWidth = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 4, 1, 1), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuSlaMaxBandWidth.setStatus('current') hh3cOnuSlaMinBandWidth = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 4, 1, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuSlaMinBandWidth.setStatus('current') hh3cOnuSlaBandWidthStepVal = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 4, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuSlaBandWidthStepVal.setStatus('current') hh3cOnuSlaDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 4, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("low", 1), ("high", 2))).clone('low')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuSlaDelay.setStatus('current') hh3cOnuSlaFixedBandWidth = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 4, 1, 5), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuSlaFixedBandWidth.setStatus('current') hh3cOnuSlaPriorityClass = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 4, 1, 6), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuSlaPriorityClass.setStatus('current') hh3cOnuSlaFixedPacketSize = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 4, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuSlaFixedPacketSize.setStatus('current') hh3cOnuInfoTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5), ) if mibBuilder.loadTexts: hh3cOnuInfoTable.setStatus('current') hh3cOnuInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hh3cOnuInfoEntry.setStatus('current') hh3cOnuHardMajorVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5, 1, 1), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuHardMajorVersion.setStatus('current') hh3cOnuHardMinorVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5, 1, 2), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuHardMinorVersion.setStatus('current') hh3cOnuSoftwareVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5, 1, 3), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuSoftwareVersion.setStatus('current') hh3cOnuUniMacType = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("mii", 2), ("gmii", 3), ("tbi", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuUniMacType.setStatus('current') hh3cOnuLaserOnTime = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuLaserOnTime.setStatus('current') hh3cOnuLaserOffTime = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuLaserOffTime.setStatus('current') hh3cOnuGrantFifoDep = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(1, 255), ValueRangeConstraint(2147483647, 2147483647), ))).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuGrantFifoDep.setStatus('current') hh3cOnuWorkMode = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("on", 2), ("pending", 3), ("off", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuWorkMode.setStatus('current') hh3cOnuPCBVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5, 1, 9), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuPCBVersion.setStatus('current') hh3cOnuRtt = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5, 1, 10), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuRtt.setStatus('current') hh3cOnuEEPROMVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5, 1, 11), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuEEPROMVersion.setStatus('current') hh3cOnuRegType = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5, 1, 12), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuRegType.setStatus('current') hh3cOnuHostType = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5, 1, 13), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuHostType.setStatus('current') hh3cOnuDistance = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5, 1, 14), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuDistance.setStatus('current') hh3cOnuLlid = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5, 1, 15), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuLlid.setStatus('current') hh3cOnuVendorId = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5, 1, 16), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuVendorId.setStatus('current') hh3cOnuFirmwareVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5, 1, 17), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuFirmwareVersion.setStatus('current') hh3cOnuOpticalPowerReceivedByOlt = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5, 1, 18), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuOpticalPowerReceivedByOlt.setStatus('current') hh3cOnuMacAddrInfoTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 6), ) if mibBuilder.loadTexts: hh3cOnuMacAddrInfoTable.setStatus('current') hh3cOnuMacAddrInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 6, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "HH3C-EPON-MIB", "hh3cOnuMacIndex")) if mibBuilder.loadTexts: hh3cOnuMacAddrInfoEntry.setStatus('current') hh3cOnuMacIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 6, 1, 1), Integer32()) if mibBuilder.loadTexts: hh3cOnuMacIndex.setStatus('current') hh3cOnuMacAddrFlag = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 6, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("bound", 1), ("registered", 2), ("run", 3), ("regIncorrect", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuMacAddrFlag.setStatus('current') hh3cOnuMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 6, 1, 3), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuMacAddress.setStatus('current') hh3cOnuBindMacAddrTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 7), ) if mibBuilder.loadTexts: hh3cOnuBindMacAddrTable.setStatus('current') hh3cOnuBindMacAddrEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 7, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hh3cOnuBindMacAddrEntry.setStatus('current') hh3cOnuBindMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 7, 1, 1), MacAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuBindMacAddress.setStatus('current') hh3cOnuBindType = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 7, 1, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuBindType.setStatus('current') hh3cOnuFirmwareUpdateTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 8), ) if mibBuilder.loadTexts: hh3cOnuFirmwareUpdateTable.setStatus('current') hh3cOnuFirmwareUpdateEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 8, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hh3cOnuFirmwareUpdateEntry.setStatus('current') hh3cOnuUpdate = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 8, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("update", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuUpdate.setStatus('current') hh3cOnuUpdateResult = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 8, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("updating", 1), ("ok", 2), ("fail", 3), ("fileNotExist", 4), ("notSetFilename", 5), ("fileNotMatchONU", 6), ("timeout", 7), ("otherError", 8)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuUpdateResult.setStatus('current') hh3cOnuUpdateFileName = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 8, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuUpdateFileName.setStatus('current') hh3cOnuLinkTestFrameNumMinVal = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuLinkTestFrameNumMinVal.setStatus('current') hh3cOnuLinkTestFrameNumMaxVal = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuLinkTestFrameNumMaxVal.setStatus('current') hh3cOnuSlaMaxBandWidthMinVal = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 11), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuSlaMaxBandWidthMinVal.setStatus('current') hh3cOnuSlaMaxBandWidthMaxVal = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 12), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuSlaMaxBandWidthMaxVal.setStatus('current') hh3cOnuSlaMinBandWidthMinVal = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 13), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuSlaMinBandWidthMinVal.setStatus('current') hh3cOnuSlaMinBandWidthMaxVal = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 14), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuSlaMinBandWidthMaxVal.setStatus('current') hh3cEponOnuTypeManTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 15), ) if mibBuilder.loadTexts: hh3cEponOnuTypeManTable.setStatus('current') hh3cEponOnuTypeManEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 15, 1), ).setIndexNames((0, "HH3C-EPON-MIB", "hh3cEponOnuTypeIndex")) if mibBuilder.loadTexts: hh3cEponOnuTypeManEntry.setStatus('current') hh3cEponOnuTypeIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 15, 1, 1), Integer32()) if mibBuilder.loadTexts: hh3cEponOnuTypeIndex.setStatus('current') hh3cEponOnuTypeDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 15, 1, 2), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cEponOnuTypeDescr.setStatus('current') hh3cOnuPacketManTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 16), ) if mibBuilder.loadTexts: hh3cOnuPacketManTable.setStatus('current') hh3cOnuPacketManEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 16, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hh3cOnuPacketManEntry.setStatus('current') hh3cOnuPriorityTrust = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 16, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("dscp", 1), ("ipprecedence", 2), ("cos", 3))).clone('cos')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuPriorityTrust.setStatus('current') hh3cOnuQueueScheduler = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 16, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("spq", 1), ("wfq", 2))).clone('spq')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuQueueScheduler.setStatus('current') hh3cOnuProtocolTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 17), ) if mibBuilder.loadTexts: hh3cOnuProtocolTable.setStatus('current') hh3cOnuProtocolEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 17, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hh3cOnuProtocolEntry.setStatus('current') hh3cOnuStpStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 17, 1, 1), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuStpStatus.setStatus('current') hh3cOnuIgmpSnoopingStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 17, 1, 2), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuIgmpSnoopingStatus.setStatus('current') hh3cOnuDhcpsnoopingOption82 = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 17, 1, 3), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuDhcpsnoopingOption82.setStatus('current') hh3cOnuDhcpsnooping = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 17, 1, 4), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuDhcpsnooping.setStatus('current') hh3cOnuPppoe = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 17, 1, 5), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuPppoe.setStatus('current') hh3cOnuIgmpSnoopingHostAgingT = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 17, 1, 6), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuIgmpSnoopingHostAgingT.setStatus('current') hh3cOnuIgmpSnoopingMaxRespT = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 17, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuIgmpSnoopingMaxRespT.setStatus('current') hh3cOnuIgmpSnoopingRouterAgingT = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 17, 1, 8), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuIgmpSnoopingRouterAgingT.setStatus('current') hh3cOnuIgmpSnoopingAggReportS = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 17, 1, 9), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuIgmpSnoopingAggReportS.setStatus('current') hh3cOnuIgmpSnoopingAggLeaveS = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 17, 1, 10), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuIgmpSnoopingAggLeaveS.setStatus('current') hh3cOnuDot1xTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 18), ) if mibBuilder.loadTexts: hh3cOnuDot1xTable.setStatus('current') hh3cOnuDot1xEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 18, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hh3cOnuDot1xEntry.setStatus('current') hh3cOnuDot1xAccount = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 18, 1, 1), OctetString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuDot1xAccount.setStatus('current') hh3cOnuDot1xPassword = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 18, 1, 2), OctetString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuDot1xPassword.setStatus('current') hh3cEponBatchOperationMan = MibIdentifier((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 6)) hh3cOnuPriorityQueueTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 19), ) if mibBuilder.loadTexts: hh3cOnuPriorityQueueTable.setStatus('current') hh3cOnuPriorityQueueEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 19, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "HH3C-EPON-MIB", "hh3cOnuQueueDirection"), (0, "HH3C-EPON-MIB", "hh3cOnuQueueId")) if mibBuilder.loadTexts: hh3cOnuPriorityQueueEntry.setStatus('current') hh3cOnuQueueDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 19, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("inbound", 1), ("outbound", 2)))) if mibBuilder.loadTexts: hh3cOnuQueueDirection.setStatus('current') hh3cOnuQueueId = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 19, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))) if mibBuilder.loadTexts: hh3cOnuQueueId.setStatus('current') hh3cOnuQueueSize = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 19, 1, 3), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuQueueSize.setStatus('current') hh3cOnuCountTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 20), ) if mibBuilder.loadTexts: hh3cOnuCountTable.setStatus('current') hh3cOnuCountEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 20, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hh3cOnuCountEntry.setStatus('current') hh3cOnuInCRCErrPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 20, 1, 1), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuInCRCErrPkts.setStatus('current') hh3cOnuOutDroppedFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 20, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuOutDroppedFrames.setStatus('current') hh3cEponOnuScalarGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 21)) hh3cOnuPriorityQueueSizeMinVal = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 21, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuPriorityQueueSizeMinVal.setStatus('current') hh3cOnuPriorityQueueSizeMaxVal = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 21, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuPriorityQueueSizeMaxVal.setStatus('current') hh3cOnuPriorityQueueBandwidthMinVal = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 21, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuPriorityQueueBandwidthMinVal.setStatus('current') hh3cOnuPriorityQueueBandwidthMaxVal = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 21, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuPriorityQueueBandwidthMaxVal.setStatus('current') hh3cOnuPriorityQueueBurstsizeMinVal = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 21, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuPriorityQueueBurstsizeMinVal.setStatus('current') hh3cOnuPriorityQueueBurstsizeMaxVal = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 21, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuPriorityQueueBurstsizeMaxVal.setStatus('current') hh3cOnuUpdateByTypeNextIndex = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 21, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuUpdateByTypeNextIndex.setStatus('current') hh3cOnuQueueBandwidthTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 22), ) if mibBuilder.loadTexts: hh3cOnuQueueBandwidthTable.setStatus('current') hh3cOnuQueueBandwidthEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 22, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "HH3C-EPON-MIB", "hh3cOnuQueueDirection"), (0, "HH3C-EPON-MIB", "hh3cOnuQueueId")) if mibBuilder.loadTexts: hh3cOnuQueueBandwidthEntry.setStatus('current') hh3cOnuQueueMaxBandwidth = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 22, 1, 1), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuQueueMaxBandwidth.setStatus('current') hh3cOnuQueueMaxBurstsize = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 22, 1, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuQueueMaxBurstsize.setStatus('current') hh3cOnuQueuePolicyStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 22, 1, 3), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuQueuePolicyStatus.setStatus('current') hh3cOnuIpAddressTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 23), ) if mibBuilder.loadTexts: hh3cOnuIpAddressTable.setStatus('current') hh3cOnuIpAddressEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 23, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hh3cOnuIpAddressEntry.setStatus('current') hh3cOnuIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 23, 1, 1), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuIpAddress.setStatus('current') hh3cOnuIpAddressMask = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 23, 1, 2), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuIpAddressMask.setStatus('current') hh3cOnuIpAddressGateway = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 23, 1, 3), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuIpAddressGateway.setStatus('current') hh3cOnuDhcpallocate = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 23, 1, 4), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuDhcpallocate.setStatus('current') hh3cOnuManageVID = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 23, 1, 5), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuManageVID.setStatus('current') hh3cOnuManageVlanIntfS = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 23, 1, 6), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuManageVlanIntfS.setStatus('current') hh3cOnuChipSetInfoTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 24), ) if mibBuilder.loadTexts: hh3cOnuChipSetInfoTable.setStatus('current') hh3cOnuChipSetInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 24, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hh3cOnuChipSetInfoEntry.setStatus('current') hh3cOnuChipSetVendorId = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 24, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuChipSetVendorId.setStatus('current') hh3cOnuChipSetModel = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 24, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuChipSetModel.setStatus('current') hh3cOnuChipSetRevision = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 24, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuChipSetRevision.setStatus('current') hh3cOnuChipSetDesignDate = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 24, 1, 4), DateAndTime()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuChipSetDesignDate.setStatus('current') hh3cOnuCapabilityTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 25), ) if mibBuilder.loadTexts: hh3cOnuCapabilityTable.setStatus('current') hh3cOnuCapabilityEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 25, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hh3cOnuCapabilityEntry.setStatus('current') hh3cOnuServiceSupported = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 25, 1, 1), Bits().clone(namedValues=NamedValues(("geinterfacesupport", 0), ("feinterfacesupport", 1), ("voipservicesupport", 2), ("tdmservicesupport", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuServiceSupported.setStatus('current') hh3cOnuGEPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 25, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuGEPortNumber.setStatus('current') hh3cOnuFEPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 25, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuFEPortNumber.setStatus('current') hh3cOnuPOTSPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 25, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuPOTSPortNumber.setStatus('current') hh3cOnuE1PortsNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 25, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuE1PortsNumber.setStatus('current') hh3cOnuUpstreamQueueNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 25, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuUpstreamQueueNumber.setStatus('current') hh3cOnuMaxUpstreamQueuePerPort = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 25, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuMaxUpstreamQueuePerPort.setStatus('current') hh3cOnuDownstreamQueueNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 25, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuDownstreamQueueNumber.setStatus('current') hh3cOnuMaxDownstreamQueuePerPort = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 25, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuMaxDownstreamQueuePerPort.setStatus('current') hh3cOnuBatteryBackup = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 25, 1, 10), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuBatteryBackup.setStatus('current') hh3cOnuIgspFastLeaveSupported = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 25, 1, 11), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuIgspFastLeaveSupported.setStatus('current') hh3cOnuMCtrlFastLeaveSupported = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 25, 1, 12), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuMCtrlFastLeaveSupported.setStatus('current') hh3cOnuDbaReportTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 26), ) if mibBuilder.loadTexts: hh3cOnuDbaReportTable.setStatus('current') hh3cOnuDbaReportEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 26, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "HH3C-EPON-MIB", "hh3cOnuDbaReportQueueId")) if mibBuilder.loadTexts: hh3cOnuDbaReportEntry.setStatus('current') hh3cOnuDbaReportQueueId = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 26, 1, 1), Integer32()) if mibBuilder.loadTexts: hh3cOnuDbaReportQueueId.setStatus('current') hh3cOnuDbaReportThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 26, 1, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuDbaReportThreshold.setStatus('current') hh3cOnuDbaReportStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 26, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2))).clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuDbaReportStatus.setStatus('current') hh3cOnuCosToLocalPrecedenceTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 27), ) if mibBuilder.loadTexts: hh3cOnuCosToLocalPrecedenceTable.setStatus('current') hh3cOnuCosToLocalPrecedenceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 27, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "HH3C-EPON-MIB", "hh3cOnuCosToLocalPrecedenceCosIndex")) if mibBuilder.loadTexts: hh3cOnuCosToLocalPrecedenceEntry.setStatus('current') hh3cOnuCosToLocalPrecedenceCosIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 27, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuCosToLocalPrecedenceCosIndex.setStatus('current') hh3cOnuCosToLocalPrecedenceValue = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 27, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuCosToLocalPrecedenceValue.setStatus('current') hh3cEponOnuStpPortTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 28), ) if mibBuilder.loadTexts: hh3cEponOnuStpPortTable.setStatus('current') hh3cEponOnuStpPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 28, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "HH3C-EPON-MIB", "hh3cEponStpPortIndex")) if mibBuilder.loadTexts: hh3cEponOnuStpPortEntry.setStatus('current') hh3cEponStpPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 28, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 144))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hh3cEponStpPortIndex.setStatus('current') hh3cEponStpPortDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 28, 1, 2), OctetString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hh3cEponStpPortDescr.setStatus('current') hh3cEponStpPortState = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 28, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("disabled", 1), ("discarding", 2), ("learning", 3), ("forwarding", 4)))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hh3cEponStpPortState.setStatus('current') hh3cOnuPhysicalTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 29), ) if mibBuilder.loadTexts: hh3cOnuPhysicalTable.setStatus('current') hh3cOnuPhysicalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 29, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hh3cOnuPhysicalEntry.setStatus('current') hh3cOnuBridgeMac = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 29, 1, 1), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuBridgeMac.setStatus('current') hh3cOnuFirstPonMac = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 29, 1, 2), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuFirstPonMac.setStatus('current') hh3cOnuFirstPonRegState = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 29, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("notExist", 1), ("absent", 2), ("offline", 3), ("silent", 4), ("down", 5), ("up", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuFirstPonRegState.setStatus('current') hh3cOnuSecondPonMac = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 29, 1, 4), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuSecondPonMac.setStatus('current') hh3cOnuSecondPonRegState = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 29, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("notExist", 1), ("absent", 2), ("offline", 3), ("silent", 4), ("down", 5), ("up", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuSecondPonRegState.setStatus('current') hh3cOnuSmlkTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 30), ) if mibBuilder.loadTexts: hh3cOnuSmlkTable.setStatus('current') hh3cOnuSmlkEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 30, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "HH3C-EPON-MIB", "hh3cOnuSmlkGroupID")) if mibBuilder.loadTexts: hh3cOnuSmlkEntry.setStatus('current') hh3cOnuSmlkGroupID = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 30, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuSmlkGroupID.setStatus('current') hh3cOnuSmlkFirstPonRole = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 30, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("master", 1), ("slave", 2), ("null", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuSmlkFirstPonRole.setStatus('current') hh3cOnuSmlkFirstPonStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 30, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("active", 1), ("standby", 2), ("down", 3), ("null", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuSmlkFirstPonStatus.setStatus('current') hh3cOnuSmlkSecondPonRole = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 30, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("master", 1), ("slave", 2), ("null", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuSmlkSecondPonRole.setStatus('current') hh3cOnuSmlkSecondPonStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 30, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("active", 1), ("standby", 2), ("down", 3), ("null", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuSmlkSecondPonStatus.setStatus('current') hh3cOnuRS485PropertiesTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 31), ) if mibBuilder.loadTexts: hh3cOnuRS485PropertiesTable.setStatus('current') hh3cOnuRS485PropertiesEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 31, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "HH3C-EPON-MIB", "hh3cOnuRS485SerialIndex")) if mibBuilder.loadTexts: hh3cOnuRS485PropertiesEntry.setStatus('current') hh3cOnuRS485SerialIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 31, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))) if mibBuilder.loadTexts: hh3cOnuRS485SerialIndex.setStatus('current') hh3cOnuRS485BaudRate = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 31, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=NamedValues(("baudRate300", 1), ("baudRate600", 2), ("baudRate1200", 3), ("baudRate2400", 4), ("baudRate4800", 5), ("baudRate9600", 6), ("baudRate19200", 7), ("baudRate38400", 8), ("baudRate57600", 9), ("baudRate115200", 10))).clone('baudRate9600')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuRS485BaudRate.setStatus('current') hh3cOnuRS485DataBits = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 31, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("five", 1), ("six", 2), ("seven", 3), ("eight", 4))).clone('eight')).setUnits('bit').setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuRS485DataBits.setStatus('current') hh3cOnuRS485Parity = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 31, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("none", 1), ("odd", 2), ("even", 3), ("mark", 4), ("space", 5))).clone('none')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuRS485Parity.setStatus('current') hh3cOnuRS485StopBits = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 31, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("one", 1), ("two", 2), ("oneAndHalf", 3))).clone('one')).setUnits('bit').setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuRS485StopBits.setStatus('current') hh3cOnuRS485FlowControl = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 31, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("hardware", 2), ("xonOrxoff", 3))).clone('none')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuRS485FlowControl.setStatus('current') hh3cOnuRS485TXOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 31, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuRS485TXOctets.setStatus('current') hh3cOnuRS485RXOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 31, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuRS485RXOctets.setStatus('current') hh3cOnuRS485TXErrOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 31, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuRS485TXErrOctets.setStatus('current') hh3cOnuRS485RXErrOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 31, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuRS485RXErrOctets.setStatus('current') hh3cOnuRS485ResetStatistics = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 31, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("counting", 1), ("clear", 2))).clone('counting')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cOnuRS485ResetStatistics.setStatus('current') hh3cOnuRS485SessionSummaryTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 32), ) if mibBuilder.loadTexts: hh3cOnuRS485SessionSummaryTable.setStatus('current') hh3cOnuRS485SessionSummaryEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 32, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "HH3C-EPON-MIB", "hh3cOnuRS485SerialIndex")) if mibBuilder.loadTexts: hh3cOnuRS485SessionSummaryEntry.setStatus('current') hh3cOnuRS485SessionMaxNum = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 32, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuRS485SessionMaxNum.setStatus('current') hh3cOnuRS485SessionNextIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 32, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuRS485SessionNextIndex.setStatus('current') hh3cOnuRS485SessionTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 33), ) if mibBuilder.loadTexts: hh3cOnuRS485SessionTable.setStatus('current') hh3cOnuRS485SessionEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 33, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "HH3C-EPON-MIB", "hh3cOnuRS485SerialIndex"), (0, "HH3C-EPON-MIB", "hh3cOnuRS485SessionIndex")) if mibBuilder.loadTexts: hh3cOnuRS485SessionEntry.setStatus('current') hh3cOnuRS485SessionIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 33, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))) if mibBuilder.loadTexts: hh3cOnuRS485SessionIndex.setStatus('current') hh3cOnuRS485SessionType = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 33, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("udp", 1), ("tcpClient", 2), ("tcpServer", 3)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hh3cOnuRS485SessionType.setStatus('current') hh3cOnuRS485SessionAddType = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 33, 1, 3), InetAddressType()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hh3cOnuRS485SessionAddType.setStatus('current') hh3cOnuRS485SessionRemoteIP = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 33, 1, 4), InetAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hh3cOnuRS485SessionRemoteIP.setStatus('current') hh3cOnuRS485SessionRemotePort = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 33, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1024, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hh3cOnuRS485SessionRemotePort.setStatus('current') hh3cOnuRS485SessionLocalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 33, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1024, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hh3cOnuRS485SessionLocalPort.setStatus('current') hh3cOnuRS485SessionRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 33, 1, 7), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hh3cOnuRS485SessionRowStatus.setStatus('current') hh3cOnuRS485SessionErrInfoTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 34), ) if mibBuilder.loadTexts: hh3cOnuRS485SessionErrInfoTable.setStatus('current') hh3cOnuRS485SessionErrInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 34, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "HH3C-EPON-MIB", "hh3cOnuRS485SerialIndex"), (0, "HH3C-EPON-MIB", "hh3cOnuRS485SessionIndex")) if mibBuilder.loadTexts: hh3cOnuRS485SessionErrInfoEntry.setStatus('current') hh3cOnuRS485SessionErrInfo = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 34, 1, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cOnuRS485SessionErrInfo.setStatus('current') hh3cEponBatchOperationBySlotTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 6, 1), ) if mibBuilder.loadTexts: hh3cEponBatchOperationBySlotTable.setStatus('current') hh3cEponBatchOperationBySlotEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 6, 1, 1), ).setIndexNames((0, "HH3C-EPON-MIB", "hh3cEponBatchOperationBySlotIndex")) if mibBuilder.loadTexts: hh3cEponBatchOperationBySlotEntry.setStatus('current') hh3cEponBatchOperationBySlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 6, 1, 1, 1), Integer32()) if mibBuilder.loadTexts: hh3cEponBatchOperationBySlotIndex.setStatus('current') hh3cEponBatchOperationBySlotType = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 6, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 9, 10))).clone(namedValues=NamedValues(("resetUnknown", 1), ("updateDba", 9), ("updateONU", 10)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cEponBatchOperationBySlotType.setStatus('current') hh3cEponBatchOperationBySlot = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 6, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("batOpBySlot", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cEponBatchOperationBySlot.setStatus('current') hh3cEponBatchOperationBySlotResult = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 6, 1, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cEponBatchOperationBySlotResult.setStatus('current') hh3cEponBatchOperationByOLTTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 6, 2), ) if mibBuilder.loadTexts: hh3cEponBatchOperationByOLTTable.setStatus('current') hh3cEponBatchOperationByOLTEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 6, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hh3cEponBatchOperationByOLTEntry.setStatus('current') hh3cEponBatchOperationByOLTType = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 6, 2, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 5))).clone(namedValues=NamedValues(("resetUnknown", 1), ("updateONU", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cEponBatchOperationByOLTType.setStatus('current') hh3cEponBatchOperationByOLT = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 6, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("batOpByOlt", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cEponBatchOperationByOLT.setStatus('current') hh3cEponBatchOperationByOLTResult = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 6, 2, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cEponBatchOperationByOLTResult.setStatus('current') hh3cOnuFirmwareUpdateByTypeTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 6, 3), ) if mibBuilder.loadTexts: hh3cOnuFirmwareUpdateByTypeTable.setStatus('current') hh3cOnuFirmwareUpdateByTypeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 6, 3, 1), ).setIndexNames((0, "HH3C-EPON-MIB", "hh3cOnuUpdateByOnuTypeIndex")) if mibBuilder.loadTexts: hh3cOnuFirmwareUpdateByTypeEntry.setStatus('current') hh3cOnuUpdateByOnuTypeIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 6, 3, 1, 1), Integer32()) if mibBuilder.loadTexts: hh3cOnuUpdateByOnuTypeIndex.setStatus('current') hh3cOnuUpdateByTypeOnuType = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 6, 3, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 15))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hh3cOnuUpdateByTypeOnuType.setStatus('current') hh3cOnuUpdateByTypeFileName = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 6, 3, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hh3cOnuUpdateByTypeFileName.setStatus('current') hh3cOnuUpdateByTypeRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 6, 3, 1, 4), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hh3cOnuUpdateByTypeRowStatus.setStatus('current') hh3cEponErrorInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 7)) hh3cEponSoftwareErrorCode = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 7, 1), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hh3cEponSoftwareErrorCode.setStatus('current') hh3cOamVendorSpecificAlarmCode = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 7, 2), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hh3cOamVendorSpecificAlarmCode.setStatus('current') hh3cEponOnuRegErrorMacAddr = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 7, 3), OctetString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hh3cEponOnuRegErrorMacAddr.setStatus('current') hh3cOamEventLogType = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 7, 4), Unsigned32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hh3cOamEventLogType.setStatus('current') hh3cOamEventLogLocation = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 7, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("local", 1), ("remote", 2)))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hh3cOamEventLogLocation.setStatus('current') hh3cEponLoopbackPortIndex = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 7, 6), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hh3cEponLoopbackPortIndex.setStatus('current') hh3cEponLoopbackPortDescr = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 7, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hh3cEponLoopbackPortDescr.setStatus('current') hh3cOltPortAlarmLlidMisFrames = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 7, 8), Unsigned32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hh3cOltPortAlarmLlidMisFrames.setStatus('current') hh3cOltPortAlarmBer = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 7, 9), Unsigned32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hh3cOltPortAlarmBer.setStatus('current') hh3cOltPortAlarmFer = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 7, 10), Unsigned32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hh3cOltPortAlarmFer.setStatus('current') hh3cEponOnuRegSilentMac = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 7, 11), OctetString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hh3cEponOnuRegSilentMac.setStatus('current') hh3cEponOperationResult = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 7, 12), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hh3cEponOperationResult.setStatus('current') hh3cEponOnuLaserState = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 7, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("normal", 1), ("laserAlwaysOn", 2), ("signalDegradation", 3), ("endOfLife", 4)))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hh3cEponOnuLaserState.setStatus('current') hh3cEponTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8)) hh3cEponTrapPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0)) hh3cEponPortAlarmBerTrap = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 1)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HH3C-EPON-MIB", "hh3cOltPortAlarmBerDirect"), ("HH3C-EPON-MIB", "hh3cOltPortAlarmBer"), ("HH3C-EPON-MIB", "hh3cOltPortAlarmBerThreshold")) if mibBuilder.loadTexts: hh3cEponPortAlarmBerTrap.setStatus('current') hh3cEponPortAlarmFerTrap = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 2)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HH3C-EPON-MIB", "hh3cOltPortAlarmFerDirect"), ("HH3C-EPON-MIB", "hh3cOltPortAlarmFer"), ("HH3C-EPON-MIB", "hh3cOltPortAlarmFerThreshold")) if mibBuilder.loadTexts: hh3cEponPortAlarmFerTrap.setStatus('current') hh3cEponErrorLLIDFrameTrap = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 3)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HH3C-EPON-MIB", "hh3cOltPortAlarmLlidMisFrames"), ("HH3C-EPON-MIB", "hh3cOltPortAlarmLlidMismatchThreshold")) if mibBuilder.loadTexts: hh3cEponErrorLLIDFrameTrap.setStatus('current') hh3cEponLoopBackEnableTrap = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 4)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HH3C-EPON-MIB", "hh3cEponLoopbackPortIndex"), ("HH3C-EPON-MIB", "hh3cEponLoopbackPortDescr")) if mibBuilder.loadTexts: hh3cEponLoopBackEnableTrap.setStatus('current') hh3cEponOnuRegistrationErrTrap = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 5)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HH3C-EPON-MIB", "hh3cEponOnuRegErrorMacAddr")) if mibBuilder.loadTexts: hh3cEponOnuRegistrationErrTrap.setStatus('current') hh3cEponOamDisconnectionTrap = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 6)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr")) if mibBuilder.loadTexts: hh3cEponOamDisconnectionTrap.setStatus('current') hh3cEponEncryptionKeyErrTrap = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 7)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr")) if mibBuilder.loadTexts: hh3cEponEncryptionKeyErrTrap.setStatus('current') hh3cEponRemoteStableTrap = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 8)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr")) if mibBuilder.loadTexts: hh3cEponRemoteStableTrap.setStatus('current') hh3cEponLocalStableTrap = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 9)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr")) if mibBuilder.loadTexts: hh3cEponLocalStableTrap.setStatus('current') hh3cEponOamVendorSpecificTrap = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 10)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HH3C-EPON-MIB", "hh3cOamVendorSpecificAlarmCode")) if mibBuilder.loadTexts: hh3cEponOamVendorSpecificTrap.setStatus('current') hh3cEponSoftwareErrTrap = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 11)).setObjects(("HH3C-LSW-DEV-ADM-MIB", "hh3cLswFrameIndex"), ("HH3C-LSW-DEV-ADM-MIB", "hh3cLswSlotIndex"), ("HH3C-EPON-MIB", "hh3cEponSoftwareErrorCode")) if mibBuilder.loadTexts: hh3cEponSoftwareErrTrap.setStatus('current') hh3cEponPortAlarmBerRecoverTrap = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 12)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HH3C-EPON-MIB", "hh3cOltPortAlarmBerDirect")) if mibBuilder.loadTexts: hh3cEponPortAlarmBerRecoverTrap.setStatus('current') hh3cEponPortAlarmFerRecoverTrap = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 13)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HH3C-EPON-MIB", "hh3cOltPortAlarmFerDirect")) if mibBuilder.loadTexts: hh3cEponPortAlarmFerRecoverTrap.setStatus('current') hh3cEponErrorLLIDFrameRecoverTrap = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 14)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr")) if mibBuilder.loadTexts: hh3cEponErrorLLIDFrameRecoverTrap.setStatus('current') hh3cEponLoopBackEnableRecoverTrap = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 15)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr")) if mibBuilder.loadTexts: hh3cEponLoopBackEnableRecoverTrap.setStatus('current') hh3cEponOnuRegistrationErrRecoverTrap = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 16)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HH3C-EPON-MIB", "hh3cEponOnuRegErrorMacAddr")) if mibBuilder.loadTexts: hh3cEponOnuRegistrationErrRecoverTrap.setStatus('current') hh3cEponOamDisconnectionRecoverTrap = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 17)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr")) if mibBuilder.loadTexts: hh3cEponOamDisconnectionRecoverTrap.setStatus('current') hh3cEponEncryptionKeyErrRecoverTrap = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 18)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr")) if mibBuilder.loadTexts: hh3cEponEncryptionKeyErrRecoverTrap.setStatus('current') hh3cEponRemoteStableRecoverTrap = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 19)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr")) if mibBuilder.loadTexts: hh3cEponRemoteStableRecoverTrap.setStatus('current') hh3cEponLocalStableRecoverTrap = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 20)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr")) if mibBuilder.loadTexts: hh3cEponLocalStableRecoverTrap.setStatus('current') hh3cEponOamVendorSpecificRecoverTrap = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 21)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HH3C-EPON-MIB", "hh3cOamVendorSpecificAlarmCode")) if mibBuilder.loadTexts: hh3cEponOamVendorSpecificRecoverTrap.setStatus('current') hh3cEponSoftwareErrRecoverTrap = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 22)).setObjects(("HH3C-LSW-DEV-ADM-MIB", "hh3cLswFrameIndex"), ("HH3C-LSW-DEV-ADM-MIB", "hh3cLswSlotIndex"), ("HH3C-EPON-MIB", "hh3cEponSoftwareErrorCode")) if mibBuilder.loadTexts: hh3cEponSoftwareErrRecoverTrap.setStatus('current') hh3cDot3OamThresholdRecoverEvent = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 23)).setObjects(("IF-MIB", "ifIndex"), ("HH3C-EPON-MIB", "hh3cOamEventLogType"), ("HH3C-EPON-MIB", "hh3cOamEventLogLocation")) if mibBuilder.loadTexts: hh3cDot3OamThresholdRecoverEvent.setStatus('current') hh3cDot3OamNonThresholdRecoverEvent = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 24)).setObjects(("IF-MIB", "ifIndex"), ("HH3C-EPON-MIB", "hh3cOamEventLogType"), ("HH3C-EPON-MIB", "hh3cOamEventLogLocation")) if mibBuilder.loadTexts: hh3cDot3OamNonThresholdRecoverEvent.setStatus('current') hh3cEponOnuRegExcessTrap = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 25)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr")) if mibBuilder.loadTexts: hh3cEponOnuRegExcessTrap.setStatus('current') hh3cEponOnuRegExcessRecoverTrap = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 26)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr")) if mibBuilder.loadTexts: hh3cEponOnuRegExcessRecoverTrap.setStatus('current') hh3cEponOnuPowerOffTrap = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 27)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr")) if mibBuilder.loadTexts: hh3cEponOnuPowerOffTrap.setStatus('current') hh3cEponOltSwitchoverTrap = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 28)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr")) if mibBuilder.loadTexts: hh3cEponOltSwitchoverTrap.setStatus('current') hh3cEponOltDFETrap = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 29)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr")) if mibBuilder.loadTexts: hh3cEponOltDFETrap.setStatus('current') hh3cEponOltDFERecoverTrap = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 30)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr")) if mibBuilder.loadTexts: hh3cEponOltDFERecoverTrap.setStatus('current') hh3cEponOnuSilenceTrap = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 31)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HH3C-EPON-MIB", "hh3cEponOnuRegSilentMac")) if mibBuilder.loadTexts: hh3cEponOnuSilenceTrap.setStatus('current') hh3cEponOnuSilenceRecoverTrap = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 32)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HH3C-EPON-MIB", "hh3cEponOnuRegSilentMac")) if mibBuilder.loadTexts: hh3cEponOnuSilenceRecoverTrap.setStatus('current') hh3cEponOnuUpdateResultTrap = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 33)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HH3C-EPON-MIB", "hh3cOnuBindMacAddress"), ("HH3C-EPON-MIB", "hh3cOnuUpdateResult"), ("HH3C-EPON-MIB", "hh3cOnuRegType"), ("HH3C-EPON-MIB", "hh3cOnuUpdateFileName")) if mibBuilder.loadTexts: hh3cEponOnuUpdateResultTrap.setStatus('current') hh3cEponOnuAutoBindTrap = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 34)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HH3C-EPON-MIB", "hh3cOnuBindMacAddress"), ("HH3C-EPON-MIB", "hh3cEponOperationResult")) if mibBuilder.loadTexts: hh3cEponOnuAutoBindTrap.setStatus('current') hh3cEponOnuPortStpStateTrap = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 35)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HH3C-EPON-MIB", "hh3cEponStpPortIndex"), ("HH3C-EPON-MIB", "hh3cEponStpPortDescr"), ("HH3C-EPON-MIB", "hh3cEponStpPortState")) if mibBuilder.loadTexts: hh3cEponOnuPortStpStateTrap.setStatus('current') hh3cEponOnuLaserFailedTrap = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 36)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HH3C-EPON-MIB", "hh3cEponOnuLaserState")) if mibBuilder.loadTexts: hh3cEponOnuLaserFailedTrap.setStatus('current') hh3cOnuSmlkSwitchoverTrap = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 37)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HH3C-EPON-MIB", "hh3cOnuSmlkGroupID"), ("HH3C-EPON-MIB", "hh3cOnuSmlkFirstPonStatus"), ("HH3C-EPON-MIB", "hh3cOnuSmlkSecondPonStatus")) if mibBuilder.loadTexts: hh3cOnuSmlkSwitchoverTrap.setStatus('current') hh3cEponStat = MibIdentifier((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 9)) hh3cEponStatTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 9, 1), ) if mibBuilder.loadTexts: hh3cEponStatTable.setStatus('current') hh3cEponStatEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 9, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hh3cEponStatEntry.setStatus('current') hh3cEponStatFER = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 9, 1, 1, 1), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cEponStatFER.setStatus('current') hh3cEponStatBER = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 9, 1, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cEponStatBER.setStatus('current') mibBuilder.exportSymbols("HH3C-EPON-MIB", hh3cOnuFirstPonMac=hh3cOnuFirstPonMac, hh3cEponAutoBindStatus=hh3cEponAutoBindStatus, hh3cEponSoftwareErrTrap=hh3cEponSoftwareErrTrap, hh3cOnuSlaMinBandWidthMaxVal=hh3cOnuSlaMinBandWidthMaxVal, hh3cOltPortAlarmDFEEnabled=hh3cOltPortAlarmDFEEnabled, hh3cEponOltDFETrap=hh3cEponOltDFETrap, hh3cOnuBridgeMac=hh3cOnuBridgeMac, hh3cOltDbaCycleLengthMaxVal=hh3cOltDbaCycleLengthMaxVal, hh3cEponOamVendorSpecificRecoverTrap=hh3cEponOamVendorSpecificRecoverTrap, hh3cEponMibObjects=hh3cEponMibObjects, hh3cEponPortAlarmBerRecoverTrap=hh3cEponPortAlarmBerRecoverTrap, hh3cEponAutoUpdateEntry=hh3cEponAutoUpdateEntry, hh3cOnuSmlkFirstPonStatus=hh3cOnuSmlkFirstPonStatus, hh3cEponErrorInfo=hh3cEponErrorInfo, hh3cEponBatchOperationByOLTEntry=hh3cEponBatchOperationByOLTEntry, hh3cOnuDbaReportQueueId=hh3cOnuDbaReportQueueId, hh3cEponEncryptionKeyErrTrap=hh3cEponEncryptionKeyErrTrap, hh3cEponOnuRegExcessTrap=hh3cEponOnuRegExcessTrap, hh3cOnuSmlkGroupID=hh3cOnuSmlkGroupID, hh3cEponSysScalarGroup=hh3cEponSysScalarGroup, hh3cEponPortAlarmFerTrap=hh3cEponPortAlarmFerTrap, hh3cOnuLinkTestDelay=hh3cOnuLinkTestDelay, hh3cEponBatchOperationByOLTTable=hh3cEponBatchOperationByOLTTable, hh3cOnuBindMacAddress=hh3cOnuBindMacAddress, hh3cOnuLinkTestResultRetFrameNum=hh3cOnuLinkTestResultRetFrameNum, hh3cOnuFirmwareUpdateByTypeEntry=hh3cOnuFirmwareUpdateByTypeEntry, hh3cEponAutoUpdateSchedTime=hh3cEponAutoUpdateSchedTime, hh3cOnuManageVlanIntfS=hh3cOnuManageVlanIntfS, hh3cEponOnuAutoBindTrap=hh3cEponOnuAutoBindTrap, hh3cOnuRegType=hh3cOnuRegType, hh3cOnuProtocolTable=hh3cOnuProtocolTable, hh3cOltFirmMinorVersion=hh3cOltFirmMinorVersion, hh3cEponStatTable=hh3cEponStatTable, hh3cEponMulticastVlanId=hh3cEponMulticastVlanId, hh3cOnuChipSetModel=hh3cOnuChipSetModel, hh3cOnuLinkTestResultMinDelay=hh3cOnuLinkTestResultMinDelay, hh3cOnuAccessVlan=hh3cOnuAccessVlan, hh3cEponStatBER=hh3cEponStatBER, hh3cEponLoopbackPortDescr=hh3cEponLoopbackPortDescr, hh3cOltLaserOffTime=hh3cOltLaserOffTime, hh3cEponPortAlarmFerRecoverTrap=hh3cEponPortAlarmFerRecoverTrap, hh3cOnuChipSetVendorId=hh3cOnuChipSetVendorId, hh3cEponOnuLaserFailedTrap=hh3cEponOnuLaserFailedTrap, hh3cEponMulticastStatus=hh3cEponMulticastStatus, hh3cOnuEncryptKey=hh3cOnuEncryptKey, hh3cOltLaserOnTimeMaxVal=hh3cOltLaserOnTimeMaxVal, hh3cOnuIgspFastLeaveSupported=hh3cOnuIgspFastLeaveSupported, hh3cOnuReAuthorize=hh3cOnuReAuthorize, hh3cOltUsingOnuRowStatus=hh3cOltUsingOnuRowStatus, hh3cEponOnuLaserState=hh3cEponOnuLaserState, hh3cOnuDistance=hh3cOnuDistance, hh3cOnuCountTable=hh3cOnuCountTable, hh3cOltLaserOffTimeMinVal=hh3cOltLaserOffTimeMinVal, hh3cOnuRS485SessionAddType=hh3cOnuRS485SessionAddType, hh3cOnuRS485PropertiesEntry=hh3cOnuRS485PropertiesEntry, hh3cEponOnuRegistrationErrTrap=hh3cEponOnuRegistrationErrTrap, hh3cOltPortAlarmBerMaxVal=hh3cOltPortAlarmBerMaxVal, hh3cEponOamDiscoveryTimeout=hh3cEponOamDiscoveryTimeout, hh3cOnuRS485FlowControl=hh3cOnuRS485FlowControl, hh3cOltUsingOnuIfIndex=hh3cOltUsingOnuIfIndex, hh3cEponErrorLLIDFrameTrap=hh3cEponErrorLLIDFrameTrap, hh3cOnuIgmpSnoopingStatus=hh3cOnuIgmpSnoopingStatus, hh3cEponBatchOperationByOLTResult=hh3cEponBatchOperationByOLTResult, hh3cOnuLinkTestFrameNum=hh3cOnuLinkTestFrameNum, hh3cEponTrapPrefix=hh3cEponTrapPrefix, hh3cEponAutoUpdateSchedStatus=hh3cEponAutoUpdateSchedStatus, hh3cEponOamVersion=hh3cEponOamVersion, hh3cOnuIpAddressEntry=hh3cOnuIpAddressEntry, hh3cOltPortAlarmBer=hh3cOltPortAlarmBer, hh3cOnuRS485SessionErrInfo=hh3cOnuRS485SessionErrInfo, hh3cOnuFecStatus=hh3cOnuFecStatus, hh3cEponStatEntry=hh3cEponStatEntry, hh3cOnuWorkMode=hh3cOnuWorkMode, hh3cOnuRS485DataBits=hh3cOnuRS485DataBits, hh3cOltPortAlarmBerThreshold=hh3cOltPortAlarmBerThreshold, hh3cEponSysHasEPONBoard=hh3cEponSysHasEPONBoard, hh3cOltOpticalPowerTx=hh3cOltOpticalPowerTx, hh3cOnuGrantFifoDep=hh3cOnuGrantFifoDep, hh3cOnuQueueMaxBandwidth=hh3cOnuQueueMaxBandwidth, hh3cDot3OamNonThresholdRecoverEvent=hh3cDot3OamNonThresholdRecoverEvent, hh3cOltSysManEntry=hh3cOltSysManEntry, hh3cOltPortAlarmOamDisconnectionEnabled=hh3cOltPortAlarmOamDisconnectionEnabled, hh3cOltPortAlarmFerMaxVal=hh3cOltPortAlarmFerMaxVal, hh3cOnuDbaReportEntry=hh3cOnuDbaReportEntry, hh3cOnuRS485SessionErrInfoTable=hh3cOnuRS485SessionErrInfoTable, hh3cOltDbaUpdateResult=hh3cOltDbaUpdateResult, hh3cOnuLinkTestTable=hh3cOnuLinkTestTable, hh3cEponSlotIndex=hh3cEponSlotIndex, hh3cOnuE1PortsNumber=hh3cOnuE1PortsNumber, hh3cOnuIgmpSnoopingMaxRespT=hh3cOnuIgmpSnoopingMaxRespT, hh3cOnuUpdateByTypeOnuType=hh3cOnuUpdateByTypeOnuType, hh3cEponMsgLoseNumMinVal=hh3cEponMsgLoseNumMinVal, hh3cOnuMulticastFastLeaveEnable=hh3cOnuMulticastFastLeaveEnable, hh3cOnuSlaPriorityClass=hh3cOnuSlaPriorityClass, hh3cOnuSlaMaxBandWidthMaxVal=hh3cOnuSlaMaxBandWidthMaxVal, hh3cOltDbaCycleLengthMinVal=hh3cOltDbaCycleLengthMinVal, hh3cEponLocalStableRecoverTrap=hh3cEponLocalStableRecoverTrap, hh3cOnuRS485PropertiesTable=hh3cOnuRS485PropertiesTable, hh3cOnuSecondPonRegState=hh3cOnuSecondPonRegState, hh3cOnuDownstreamQueueNumber=hh3cOnuDownstreamQueueNumber, hh3cOnuRS485StopBits=hh3cOnuRS485StopBits, hh3cOnuRS485SessionIndex=hh3cOnuRS485SessionIndex, hh3cOltEnableDiscardPacket=hh3cOltEnableDiscardPacket, hh3cOnuSlaMinBandWidthMinVal=hh3cOnuSlaMinBandWidthMinVal, hh3cOnuManageVID=hh3cOnuManageVID, hh3cEponEncryptionNoReplyTimeOut=hh3cEponEncryptionNoReplyTimeOut, hh3cEponOnuSilenceRecoverTrap=hh3cEponOnuSilenceRecoverTrap, hh3cOnuSoftwareVersion=hh3cOnuSoftwareVersion, hh3cOltPortAlarmLocalStableEnabled=hh3cOltPortAlarmLocalStableEnabled, hh3cEponSoftwareErrorCode=hh3cEponSoftwareErrorCode, hh3cOnuRS485SessionRemotePort=hh3cOnuRS485SessionRemotePort, hh3cOltInfoTable=hh3cOltInfoTable, hh3cOltPortAlarmFerThreshold=hh3cOltPortAlarmFerThreshold, hh3cEponSoftwareErrRecoverTrap=hh3cEponSoftwareErrRecoverTrap, hh3cOltPortAlarmFer=hh3cOltPortAlarmFer, hh3cOltMultiCopyBrdCast=hh3cOltMultiCopyBrdCast, hh3cOnuDownStreamShortFrameFirst=hh3cOnuDownStreamShortFrameFirst, hh3cOltMacAddress=hh3cOltMacAddress, hh3cOnuSilentMacAddr=hh3cOnuSilentMacAddr, hh3cOnuPriorityQueueSizeMinVal=hh3cOnuPriorityQueueSizeMinVal, hh3cOltPortAlarmLlidMisMinVal=hh3cOltPortAlarmLlidMisMinVal, hh3cOnuHostType=hh3cOnuHostType, hh3cOnuMacAddrInfoEntry=hh3cOnuMacAddrInfoEntry, hh3cOltPortAlarmThresholdEntry=hh3cOltPortAlarmThresholdEntry, hh3cEponMsgTimeOutMinVal=hh3cEponMsgTimeOutMinVal, hh3cOnuDbaReportQueueSetNumber=hh3cOnuDbaReportQueueSetNumber, hh3cOltSysManTable=hh3cOltSysManTable, hh3cOltSelfTestResult=hh3cOltSelfTestResult, hh3cOnuP2PMaxBandWidth=hh3cOnuP2PMaxBandWidth, hh3cOnuRS485TXOctets=hh3cOnuRS485TXOctets, hh3cOnuSilentTable=hh3cOnuSilentTable, hh3cEponOamDisconnectionTrap=hh3cEponOamDisconnectionTrap, hh3cOnuDhcpsnoopingOption82=hh3cOnuDhcpsnoopingOption82, hh3cEponAutoUpdateSchedType=hh3cEponAutoUpdateSchedType, hh3cOnuUpdateResult=hh3cOnuUpdateResult, hh3cEponAutoUpdateTable=hh3cEponAutoUpdateTable, hh3cOnuMulticastFilterStatus=hh3cOnuMulticastFilterStatus, hh3cOnuIpAddressGateway=hh3cOnuIpAddressGateway, hh3cOnuPhysicalTable=hh3cOnuPhysicalTable, hh3cOnuFirmwareUpdateEntry=hh3cOnuFirmwareUpdateEntry, hh3cOnuRemoteFecStatus=hh3cOnuRemoteFecStatus, hh3cOnuRS485SerialIndex=hh3cOnuRS485SerialIndex, hh3cEponStpPortDescr=hh3cEponStpPortDescr, hh3cOltLaserOnTime=hh3cOltLaserOnTime, hh3cOnuDownStreamBandWidthPolicy=hh3cOnuDownStreamBandWidthPolicy, hh3cEponOuiIndexNextEntry=hh3cEponOuiIndexNextEntry, hh3cEponMonitorCycle=hh3cEponMonitorCycle, hh3cEponLoopbackPortIndex=hh3cEponLoopbackPortIndex, hh3cOnuPhysicalEntry=hh3cOnuPhysicalEntry, hh3cEponMsgLoseNumMaxVal=hh3cEponMsgLoseNumMaxVal, hh3cOltDbaDiscovryFrequency=hh3cOltDbaDiscovryFrequency, hh3cEponOltDFERecoverTrap=hh3cEponOltDFERecoverTrap, hh3cOltPortAlarmVendorSpecificEnabled=hh3cOltPortAlarmVendorSpecificEnabled, hh3cOnuQueueMaxBurstsize=hh3cOnuQueueMaxBurstsize, hh3cOnuMCtrlFastLeaveSupported=hh3cOnuMCtrlFastLeaveSupported, hh3cOnuPriorityQueueBandwidthMaxVal=hh3cOnuPriorityQueueBandwidthMaxVal, hh3cEponOamDisconnectionRecoverTrap=hh3cEponOamDisconnectionRecoverTrap, hh3cOnuDhcpallocate=hh3cOnuDhcpallocate, hh3cOnuBandWidthTable=hh3cOnuBandWidthTable, hh3cEponOuiIndexNextTable=hh3cEponOuiIndexNextTable, hh3cOnuUpdate=hh3cOnuUpdate, hh3cEponAutoUpdateFileName=hh3cEponAutoUpdateFileName, hh3cOltPortAlarmBerMinVal=hh3cOltPortAlarmBerMinVal, hh3cOnuLaserOnTime=hh3cOnuLaserOnTime, hh3cEponBatchOperationBySlotEntry=hh3cEponBatchOperationBySlotEntry, hh3cOltDbaUpdate=hh3cOltDbaUpdate, hh3cOnuP2PHighPriorityFirst=hh3cOnuP2PHighPriorityFirst, hh3cOnuBatteryBackup=hh3cOnuBatteryBackup, hh3cOnuCosToLocalPrecedenceValue=hh3cOnuCosToLocalPrecedenceValue, hh3cOltPortAlarmFerDirect=hh3cOltPortAlarmFerDirect, hh3cOnuQueueDirection=hh3cOnuQueueDirection, hh3cOnuRS485Parity=hh3cOnuRS485Parity, hh3cOnuQueueSize=hh3cOnuQueueSize, hh3cOnuLlid=hh3cOnuLlid, hh3cOnuDot1xPassword=hh3cOnuDot1xPassword, hh3cEponMulticastControlTable=hh3cEponMulticastControlTable, hh3cOnuRS485SessionType=hh3cOnuRS485SessionType, hh3cOnuLinkTestVlanTagID=hh3cOnuLinkTestVlanTagID, hh3cOnuFEPortNumber=hh3cOnuFEPortNumber, hh3cOnuSlaManEntry=hh3cOnuSlaManEntry, hh3cOltDbaVersion=hh3cOltDbaVersion, hh3cEponBatchOperationBySlotTable=hh3cEponBatchOperationBySlotTable, hh3cOnuMacIndex=hh3cOnuMacIndex, hh3cOnuBindMacAddrEntry=hh3cOnuBindMacAddrEntry, hh3cOnuUpdateByTypeRowStatus=hh3cOnuUpdateByTypeRowStatus, hh3cOnuDhcpsnooping=hh3cOnuDhcpsnooping, hh3cOltDbaDiscoveryLength=hh3cOltDbaDiscoveryLength, hh3cOltPortAlarmBerDirect=hh3cOltPortAlarmBerDirect, hh3cOltHardMinorVersion=hh3cOltHardMinorVersion, hh3cOnuInfoTable=hh3cOnuInfoTable, hh3cOnuQueueBandwidthEntry=hh3cOnuQueueBandwidthEntry, hh3cEponOuiRowStatus=hh3cEponOuiRowStatus, hh3cEponOnuRegSilentMac=hh3cEponOnuRegSilentMac, hh3cEponMonitorCycleEnable=hh3cEponMonitorCycleEnable, hh3cOnuHardMinorVersion=hh3cOnuHardMinorVersion, hh3cEponMonitorCycleMaxVal=hh3cEponMonitorCycleMaxVal, hh3cOnuDbaReportStatus=hh3cOnuDbaReportStatus, hh3cEponBatchOperationMan=hh3cEponBatchOperationMan, hh3cOamEventLogType=hh3cOamEventLogType, hh3cEponSysMan=hh3cEponSysMan, hh3cEponOnuPortStpStateTrap=hh3cEponOnuPortStpStateTrap, hh3cOnuSlaMaxBandWidthMinVal=hh3cOnuSlaMaxBandWidthMinVal, hh3cEponDbaUpdateFileName=hh3cEponDbaUpdateFileName, hh3cOnuUpdateByOnuTypeIndex=hh3cOnuUpdateByOnuTypeIndex, hh3cOnuLinkTestResultRetErrFrameNum=hh3cOnuLinkTestResultRetErrFrameNum, hh3cEponBatchOperationBySlotResult=hh3cEponBatchOperationBySlotResult, hh3cEponModeSwitch=hh3cEponModeSwitch, hh3cOnuUpdateByTypeNextIndex=hh3cOnuUpdateByTypeNextIndex, hh3cOnuSmlkFirstPonRole=hh3cOnuSmlkFirstPonRole, hh3cOnuPacketManTable=hh3cOnuPacketManTable, hh3cEponOnuStpPortEntry=hh3cEponOnuStpPortEntry, hh3cOnuQueueScheduler=hh3cOnuQueueScheduler, hh3cOnuSysManTable=hh3cOnuSysManTable, hh3cEponLocalStableTrap=hh3cEponLocalStableTrap, hh3cOnuMacAddress=hh3cOnuMacAddress, hh3cEponOuiIndexNext=hh3cEponOuiIndexNext, hh3cEponBatchOperationByOLT=hh3cEponBatchOperationByOLT, hh3cOnuUpstreamQueueNumber=hh3cOnuUpstreamQueueNumber, hh3cOltPortAlarmThresholdTable=hh3cOltPortAlarmThresholdTable, hh3cOnuStpStatus=hh3cOnuStpStatus, hh3cOnuRS485SessionErrInfoEntry=hh3cOnuRS485SessionErrInfoEntry, hh3cOnuSlaFixedPacketSize=hh3cOnuSlaFixedPacketSize, hh3cOnuCosToLocalPrecedenceTable=hh3cOnuCosToLocalPrecedenceTable, hh3cEponOnuUpdateFileName=hh3cEponOnuUpdateFileName, hh3cOltFirmMajorVersion=hh3cOltFirmMajorVersion, hh3cOltOpticalPowerRx=hh3cOltOpticalPowerRx, hh3cOnuFirmwareVersion=hh3cOnuFirmwareVersion, hh3cOltPortAlarmLlidMisFrames=hh3cOltPortAlarmLlidMisFrames, hh3cOnuChipSetInfoEntry=hh3cOnuChipSetInfoEntry, hh3cEponOnuMan=hh3cEponOnuMan, hh3cOnuUniUpDownTrapStatus=hh3cOnuUniUpDownTrapStatus, hh3cOnuRS485SessionLocalPort=hh3cOnuRS485SessionLocalPort, hh3cEponTrap=hh3cEponTrap, hh3cOnuRS485SessionTable=hh3cOnuRS485SessionTable, hh3cEponOuiEntry=hh3cEponOuiEntry, hh3cEponOperationResult=hh3cEponOperationResult, hh3cEponOnuSilenceTrap=hh3cEponOnuSilenceTrap, hh3cOltSelfTest=hh3cOltSelfTest, hh3cOnuPortBerStatus=hh3cOnuPortBerStatus, hh3cOnuVendorId=hh3cOnuVendorId, hh3cOnuIgmpSnoopingRouterAgingT=hh3cOnuIgmpSnoopingRouterAgingT, hh3cEponSysManEntry=hh3cEponSysManEntry, hh3cEponRemoteStableRecoverTrap=hh3cEponRemoteStableRecoverTrap, hh3cOnuDbaReportTable=hh3cOnuDbaReportTable, hh3cOltDbaManTable=hh3cOltDbaManTable, hh3cOnuSlaDelay=hh3cOnuSlaDelay, hh3cOnuCapabilityTable=hh3cOnuCapabilityTable, hh3cEponOltMan=hh3cEponOltMan, hh3cOnuLinkTestResultMeanDelay=hh3cOnuLinkTestResultMeanDelay, hh3cEponOnuTypeManEntry=hh3cEponOnuTypeManEntry, hh3cOnuSysManEntry=hh3cOnuSysManEntry, hh3cOnuDot1xTable=hh3cOnuDot1xTable, hh3cOnuLinkTestVlanPriority=hh3cOnuLinkTestVlanPriority, hh3cOnuInfoEntry=hh3cOnuInfoEntry) mibBuilder.exportSymbols("HH3C-EPON-MIB", hh3cOnuDbaReportThreshold=hh3cOnuDbaReportThreshold, hh3cEponOnuRegExcessRecoverTrap=hh3cEponOnuRegExcessRecoverTrap, hh3cEponStpPortState=hh3cEponStpPortState, hh3cOnuMaxDownstreamQueuePerPort=hh3cOnuMaxDownstreamQueuePerPort, hh3cOnuEncryptMan=hh3cOnuEncryptMan, hh3cOltLaserOffTimeMaxVal=hh3cOltLaserOffTimeMaxVal, hh3cOnuCosToLocalPrecedenceCosIndex=hh3cOnuCosToLocalPrecedenceCosIndex, hh3cOnuBindType=hh3cOnuBindType, hh3cOnuLinkTestFrameNumMinVal=hh3cOnuLinkTestFrameNumMinVal, hh3cEponOltSoftwareErrAlmEnable=hh3cEponOltSoftwareErrAlmEnable, hh3cOnuPppoe=hh3cOnuPppoe, hh3cOnuIpAddressTable=hh3cOnuIpAddressTable, hh3cOnuSlaMinBandWidth=hh3cOnuSlaMinBandWidth, hh3cOnuOutDroppedFrames=hh3cOnuOutDroppedFrames, hh3cOltMaxRtt=hh3cOltMaxRtt, hh3cOnuPriorityQueueBurstsizeMinVal=hh3cOnuPriorityQueueBurstsizeMinVal, hh3cEponSysManTable=hh3cEponSysManTable, hh3cOnuFirstPonRegState=hh3cOnuFirstPonRegState, hh3cOnuIgmpSnoopingAggLeaveS=hh3cOnuIgmpSnoopingAggLeaveS, hh3cOnuRS485RXOctets=hh3cOnuRS485RXOctets, hh3cOnuDownStreamMaxBandWidth=hh3cOnuDownStreamMaxBandWidth, hh3cOnuFirmwareUpdateByTypeTable=hh3cOnuFirmwareUpdateByTypeTable, hh3cOnuMulticastControlMode=hh3cOnuMulticastControlMode, hh3cOnuP2PBandWidthPolicy=hh3cOnuP2PBandWidthPolicy, hh3cOnuIpAddressMask=hh3cOnuIpAddressMask, hh3cEponPortLoopBackAlmEnable=hh3cEponPortLoopBackAlmEnable, hh3cOnuPriorityQueueTable=hh3cOnuPriorityQueueTable, hh3cOnuRS485RXErrOctets=hh3cOnuRS485RXErrOctets, hh3cOnuRS485SessionRemoteIP=hh3cOnuRS485SessionRemoteIP, hh3cEponLoopBackEnableRecoverTrap=hh3cEponLoopBackEnableRecoverTrap, hh3cEponOnuTypeIndex=hh3cEponOnuTypeIndex, hh3cOnuQueueId=hh3cOnuQueueId, hh3cOltDbaDiscoveryLengthMinVal=hh3cOltDbaDiscoveryLengthMinVal, hh3cOnuRS485ResetStatistics=hh3cOnuRS485ResetStatistics, hh3cEponOnuPowerOffTrap=hh3cEponOnuPowerOffTrap, hh3cOnuLinkTestFrameNumMaxVal=hh3cOnuLinkTestFrameNumMaxVal, hh3cOnuSlaManTable=hh3cOnuSlaManTable, hh3cOnuChipSetRevision=hh3cOnuChipSetRevision, hh3cEponOamVendorSpecificTrap=hh3cEponOamVendorSpecificTrap, hh3cOnuRS485TXErrOctets=hh3cOnuRS485TXErrOctets, hh3cEponRemoteStableTrap=hh3cEponRemoteStableTrap, hh3cOnuP2PMaxBurstSize=hh3cOnuP2PMaxBurstSize, hh3cOltDbaCycleLength=hh3cOltDbaCycleLength, hh3cOnuRS485SessionNextIndex=hh3cOnuRS485SessionNextIndex, hh3cOnuSlaFixedBandWidth=hh3cOnuSlaFixedBandWidth, hh3cOnuSecondPonMac=hh3cOnuSecondPonMac, hh3cOltDbaDiscoveryLengthMaxVal=hh3cOltDbaDiscoveryLengthMaxVal, hh3cOltAgcCdrTime=hh3cOltAgcCdrTime, hh3cEponOnuStpPortTable=hh3cEponOnuStpPortTable, hh3cOnuMaxUpstreamQueuePerPort=hh3cOnuMaxUpstreamQueuePerPort, hh3cEponMsgTimeOutMaxVal=hh3cEponMsgTimeOutMaxVal, hh3cOnuSmlkSwitchoverTrap=hh3cOnuSmlkSwitchoverTrap, hh3cEponOuiIndex=hh3cEponOuiIndex, hh3cEponBatchOperationBySlotIndex=hh3cEponBatchOperationBySlotIndex, hh3cOltWorkMode=hh3cOltWorkMode, hh3cOltPortAlarmEncryptionKeyEnabled=hh3cOltPortAlarmEncryptionKeyEnabled, hh3cOltUsingOnuNum=hh3cOltUsingOnuNum, hh3cEponOnuScalarGroup=hh3cEponOnuScalarGroup, hh3cEponPortAlarmBerTrap=hh3cEponPortAlarmBerTrap, hh3cOnuQueueBandwidthTable=hh3cOnuQueueBandwidthTable, hh3cOnuPriorityQueueBurstsizeMaxVal=hh3cOnuPriorityQueueBurstsizeMaxVal, hh3cEponBatchOperationByOLTType=hh3cEponBatchOperationByOLTType, hh3cOnuMcastCtrlHostAgingTime=hh3cOnuMcastCtrlHostAgingTime, hh3cOnuDot1xEntry=hh3cOnuDot1xEntry, hh3cOnuEEPROMVersion=hh3cOnuEEPROMVersion, hh3cOnuSilentTime=hh3cOnuSilentTime, hh3cOnuLaserOffTime=hh3cOnuLaserOffTime, hh3cOltHardMajorVersion=hh3cOltHardMajorVersion, hh3cOltInfoEntry=hh3cOltInfoEntry, hh3cEponStatFER=hh3cEponStatFER, hh3cEponAutoUpdateRealTimeStatus=hh3cEponAutoUpdateRealTimeStatus, hh3cOltAgcLockTime=hh3cOltAgcLockTime, hh3cOltDbaEnabledType=hh3cOltDbaEnabledType, hh3cOnuMacAddrInfoTable=hh3cOnuMacAddrInfoTable, hh3cOltDbaManEntry=hh3cOltDbaManEntry, hh3cOnuIgmpSnoopingHostAgingT=hh3cOnuIgmpSnoopingHostAgingT, hh3cOnuPriorityQueueEntry=hh3cOnuPriorityQueueEntry, hh3cOnuServiceSupported=hh3cOnuServiceSupported, hh3cOnuP2PShortFrameFirst=hh3cOnuP2PShortFrameFirst, hh3cEponBatchOperationBySlot=hh3cEponBatchOperationBySlot, hh3cEponAutomaticMode=hh3cEponAutomaticMode, hh3cOnuPriorityTrust=hh3cOnuPriorityTrust, hh3cOnuCosToLocalPrecedenceEntry=hh3cOnuCosToLocalPrecedenceEntry, hh3cEponOltSwitchoverTrap=hh3cEponOltSwitchoverTrap, hh3cOnuProtocolEntry=hh3cOnuProtocolEntry, hh3cOnuSmlkEntry=hh3cOnuSmlkEntry, hh3cEponStpPortIndex=hh3cEponStpPortIndex, hh3cOnuLinkTestFrameSize=hh3cOnuLinkTestFrameSize, hh3cOnuBandWidthEntry=hh3cOnuBandWidthEntry, hh3cOltPortAlarmFerMinVal=hh3cOltPortAlarmFerMinVal, hh3cEponMonitorCycleMinVal=hh3cEponMonitorCycleMinVal, hh3cOnuSmlkSecondPonStatus=hh3cOnuSmlkSecondPonStatus, hh3cOltPortAlarmFerEnabled=hh3cOltPortAlarmFerEnabled, hh3cOnuSmlkTable=hh3cOnuSmlkTable, hh3cOnuRS485SessionSummaryTable=hh3cOnuRS485SessionSummaryTable, hh3cOnuQueuePolicyStatus=hh3cOnuQueuePolicyStatus, hh3cOnuSlaMaxBandWidth=hh3cOnuSlaMaxBandWidth, hh3cOnuRS485SessionMaxNum=hh3cOnuRS485SessionMaxNum, hh3cEponFileName=hh3cEponFileName, hh3cOnuRS485SessionEntry=hh3cOnuRS485SessionEntry, hh3cOnuRtt=hh3cOnuRtt, hh3cOltUsingOnuEntry=hh3cOltUsingOnuEntry, hh3cEponOnuRegErrorMacAddr=hh3cEponOnuRegErrorMacAddr, hh3cEponStat=hh3cEponStat, hh3cEponEncryptionUpdateTime=hh3cEponEncryptionUpdateTime, hh3cEponOnuTypeDescr=hh3cEponOnuTypeDescr, hh3cOnuUniMacType=hh3cOnuUniMacType, hh3cOnuCapabilityEntry=hh3cOnuCapabilityEntry, hh3cEponMulticastControlEntry=hh3cEponMulticastControlEntry, hh3cOnuSmlkSecondPonRole=hh3cOnuSmlkSecondPonRole, hh3cEponBatchOperationBySlotType=hh3cEponBatchOperationBySlotType, hh3cOnuInCRCErrPkts=hh3cOnuInCRCErrPkts, hh3cOnuSilentEntry=hh3cOnuSilentEntry, hh3cEponMsgTimeOut=hh3cEponMsgTimeOut, hh3cOnuDot1xAccount=hh3cOnuDot1xAccount, hh3cOnuBindMacAddrTable=hh3cOnuBindMacAddrTable, hh3cEponOnuRegistrationErrRecoverTrap=hh3cEponOnuRegistrationErrRecoverTrap, hh3cOltPortAlarmRegExcessEnabled=hh3cOltPortAlarmRegExcessEnabled, hh3cEponOuiValue=hh3cEponOuiValue, hh3cOnuCountEntry=hh3cOnuCountEntry, hh3cOltUsingOnuTable=hh3cOltUsingOnuTable, hh3cOnuDownStreamMaxBurstSize=hh3cOnuDownStreamMaxBurstSize, hh3cOnuIpAddress=hh3cOnuIpAddress, hh3cOnuPortIsolateEnable=hh3cOnuPortIsolateEnable, hh3cOnuHardMajorVersion=hh3cOnuHardMajorVersion, hh3cOltPortAlarmLlidMismatchThreshold=hh3cOltPortAlarmLlidMismatchThreshold, hh3cOltLaserOnTimeMinVal=hh3cOltLaserOnTimeMinVal, hh3cOnuLinkTestVlanTag=hh3cOnuLinkTestVlanTag, hh3cOnuChipSetInfoTable=hh3cOnuChipSetInfoTable, hh3cOnuGEPortNumber=hh3cOnuGEPortNumber, hh3cOnuMacAddrFlag=hh3cOnuMacAddrFlag, hh3cDot3OamThresholdRecoverEvent=hh3cDot3OamThresholdRecoverEvent, hh3cEponOnuUpdateResultTrap=hh3cEponOnuUpdateResultTrap, hh3cOnuLinkTestEntry=hh3cOnuLinkTestEntry, hh3cOnuLinkTestResultSentFrameNum=hh3cOnuLinkTestResultSentFrameNum, hh3cEponOuiTable=hh3cEponOuiTable, hh3cOnuRS485BaudRate=hh3cOnuRS485BaudRate, hh3cOnuPriorityQueueBandwidthMinVal=hh3cOnuPriorityQueueBandwidthMinVal, hh3cOnuPOTSPortNumber=hh3cOnuPOTSPortNumber, hh3cOnuIgmpSnoopingAggReportS=hh3cOnuIgmpSnoopingAggReportS, hh3cOltPortAlarmLlidMismatchEnabled=hh3cOltPortAlarmLlidMismatchEnabled, hh3cOnuSlaBandWidthStepVal=hh3cOnuSlaBandWidthStepVal, hh3cEponMulticastAddressList=hh3cEponMulticastAddressList, hh3cOamVendorSpecificAlarmCode=hh3cOamVendorSpecificAlarmCode, hh3cOnuRS485SessionSummaryEntry=hh3cOnuRS485SessionSummaryEntry, hh3cEponAutoAuthorize=hh3cEponAutoAuthorize, hh3cOnuReset=hh3cOnuReset, hh3cEponOnuTypeManTable=hh3cEponOnuTypeManTable, hh3cOltPortAlarmRegistrationEnabled=hh3cOltPortAlarmRegistrationEnabled, hh3cOnuUpdateByTypeFileName=hh3cOnuUpdateByTypeFileName, hh3cEponErrorLLIDFrameRecoverTrap=hh3cEponErrorLLIDFrameRecoverTrap, hh3cEponLoopBackEnableTrap=hh3cEponLoopBackEnableTrap, hh3cOltPortAlarmRemoteStableEnabled=hh3cOltPortAlarmRemoteStableEnabled, hh3cOnuOpticalPowerReceivedByOlt=hh3cOnuOpticalPowerReceivedByOlt, hh3cOnuPriorityQueueSizeMaxVal=hh3cOnuPriorityQueueSizeMaxVal, hh3cEponMsgLoseNum=hh3cEponMsgLoseNum, hh3cOnuChipSetDesignDate=hh3cOnuChipSetDesignDate, hh3cOnuRS485SessionRowStatus=hh3cOnuRS485SessionRowStatus, hh3cOltPortAlarmLlidMisMaxVal=hh3cOltPortAlarmLlidMisMaxVal, hh3cOltDbaDiscovryFrequencyMinVal=hh3cOltDbaDiscovryFrequencyMinVal, hh3cOnuLinkTestResultMaxDelay=hh3cOnuLinkTestResultMaxDelay, hh3cOnuPacketManEntry=hh3cOnuPacketManEntry, hh3cOnuPCBVersion=hh3cOnuPCBVersion, PYSNMP_MODULE_ID=hh3cEponMibObjects, hh3cOltPortAlarmBerEnabled=hh3cOltPortAlarmBerEnabled, hh3cOnuUpdateFileName=hh3cOnuUpdateFileName, hh3cEponEncryptionKeyErrRecoverTrap=hh3cEponEncryptionKeyErrRecoverTrap, hh3cOamEventLogLocation=hh3cOamEventLogLocation, hh3cOnuDownStreamHighPriorityFirst=hh3cOnuDownStreamHighPriorityFirst, hh3cOltDbaDiscovryFrequencyMaxVal=hh3cOltDbaDiscovryFrequencyMaxVal, hh3cOnuFirmwareUpdateTable=hh3cOnuFirmwareUpdateTable)
(object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, value_range_constraint, constraints_union, single_value_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsUnion', 'SingleValueConstraint', 'ConstraintsIntersection') (hh3c_lsw_slot_index, hh3c_lsw_frame_index) = mibBuilder.importSymbols('HH3C-LSW-DEV-ADM-MIB', 'hh3cLswSlotIndex', 'hh3cLswFrameIndex') (hh3c_epon,) = mibBuilder.importSymbols('HH3C-OID-MIB', 'hh3cEpon') (if_index, if_descr) = mibBuilder.importSymbols('IF-MIB', 'ifIndex', 'ifDescr') (inet_address_type, inet_address) = mibBuilder.importSymbols('INET-ADDRESS-MIB', 'InetAddressType', 'InetAddress') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (integer32, iso, unsigned32, ip_address, counter64, time_ticks, mib_scalar, mib_table, mib_table_row, mib_table_column, mib_identifier, gauge32, counter32, object_identity, bits, module_identity, notification_type) = mibBuilder.importSymbols('SNMPv2-SMI', 'Integer32', 'iso', 'Unsigned32', 'IpAddress', 'Counter64', 'TimeTicks', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'MibIdentifier', 'Gauge32', 'Counter32', 'ObjectIdentity', 'Bits', 'ModuleIdentity', 'NotificationType') (textual_convention, truth_value, mac_address, display_string, row_status, date_and_time) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'TruthValue', 'MacAddress', 'DisplayString', 'RowStatus', 'DateAndTime') hh3c_epon_mib_objects = module_identity((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1)) if mibBuilder.loadTexts: hh3cEponMibObjects.setLastUpdated('200705221008Z') if mibBuilder.loadTexts: hh3cEponMibObjects.setOrganization('Hangzhou H3C Technologies Co., Ltd.') hh3c_epon_sys_man = mib_identifier((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1)) hh3c_epon_auto_authorize = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 1), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cEponAutoAuthorize.setStatus('current') hh3c_epon_monitor_cycle = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 2), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cEponMonitorCycle.setStatus('current') hh3c_epon_msg_time_out = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 3), integer32().clone(600)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cEponMsgTimeOut.setStatus('current') hh3c_epon_msg_lose_num = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 4), integer32().clone(20)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cEponMsgLoseNum.setStatus('current') hh3c_epon_sys_has_epon_board = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 5), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cEponSysHasEPONBoard.setStatus('current') hh3c_epon_monitor_cycle_enable = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 6), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cEponMonitorCycleEnable.setStatus('current') hh3c_epon_olt_software_err_alm_enable = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 7), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cEponOltSoftwareErrAlmEnable.setStatus('current') hh3c_epon_port_loop_back_alm_enable = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 8), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cEponPortLoopBackAlmEnable.setStatus('current') hh3c_epon_monitor_cycle_min_val = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cEponMonitorCycleMinVal.setStatus('current') hh3c_epon_monitor_cycle_max_val = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cEponMonitorCycleMaxVal.setStatus('current') hh3c_epon_msg_time_out_min_val = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 11), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cEponMsgTimeOutMinVal.setStatus('current') hh3c_epon_msg_time_out_max_val = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 12), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cEponMsgTimeOutMaxVal.setStatus('current') hh3c_epon_msg_lose_num_min_val = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 13), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cEponMsgLoseNumMinVal.setStatus('current') hh3c_epon_msg_lose_num_max_val = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 14), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cEponMsgLoseNumMaxVal.setStatus('current') hh3c_epon_sys_scalar_group = mib_identifier((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 15)) hh3c_epon_sys_man_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 16)) if mibBuilder.loadTexts: hh3cEponSysManTable.setStatus('current') hh3c_epon_sys_man_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 16, 1)).setIndexNames((0, 'HH3C-EPON-MIB', 'hh3cEponSlotIndex')) if mibBuilder.loadTexts: hh3cEponSysManEntry.setStatus('current') hh3c_epon_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 16, 1, 1), integer32()) if mibBuilder.loadTexts: hh3cEponSlotIndex.setStatus('current') hh3c_epon_mode_switch = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 16, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('cmode', 1), ('hmode', 2))).clone('cmode')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cEponModeSwitch.setStatus('current') hh3c_epon_automatic_mode = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 16, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2))).clone('enable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cEponAutomaticMode.setStatus('current') hh3c_epon_oam_discovery_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 16, 1, 4), integer32().clone(30)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cEponOamDiscoveryTimeout.setStatus('current') hh3c_epon_encryption_no_reply_time_out = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 16, 1, 5), integer32().clone(30)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cEponEncryptionNoReplyTimeOut.setStatus('current') hh3c_epon_encryption_update_time = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 16, 1, 6), integer32().clone(10)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cEponEncryptionUpdateTime.setStatus('current') hh3c_epon_auto_bind_status = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 16, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2))).clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cEponAutoBindStatus.setStatus('current') hh3c_epon_auto_update_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 17)) if mibBuilder.loadTexts: hh3cEponAutoUpdateTable.setStatus('current') hh3c_epon_auto_update_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 17, 1)).setIndexNames((0, 'HH3C-EPON-MIB', 'hh3cEponSlotIndex')) if mibBuilder.loadTexts: hh3cEponAutoUpdateEntry.setStatus('current') hh3c_epon_auto_update_file_name = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 17, 1, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cEponAutoUpdateFileName.setStatus('current') hh3c_epon_auto_update_sched_status = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 17, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2))).clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cEponAutoUpdateSchedStatus.setStatus('current') hh3c_epon_auto_update_sched_time = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 17, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cEponAutoUpdateSchedTime.setStatus('current') hh3c_epon_auto_update_sched_type = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 17, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('daily', 1), ('weekly', 2), ('comingdate', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cEponAutoUpdateSchedType.setStatus('current') hh3c_epon_auto_update_real_time_status = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 17, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2))).clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cEponAutoUpdateRealTimeStatus.setStatus('current') hh3c_epon_oui_index_next_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 18)) if mibBuilder.loadTexts: hh3cEponOuiIndexNextTable.setStatus('current') hh3c_epon_oui_index_next_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 18, 1)).setIndexNames((0, 'HH3C-EPON-MIB', 'hh3cEponSlotIndex')) if mibBuilder.loadTexts: hh3cEponOuiIndexNextEntry.setStatus('current') hh3c_epon_oui_index_next = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 18, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cEponOuiIndexNext.setStatus('current') hh3c_epon_oui_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 19)) if mibBuilder.loadTexts: hh3cEponOuiTable.setStatus('current') hh3c_epon_oui_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 19, 1)).setIndexNames((0, 'HH3C-EPON-MIB', 'hh3cEponSlotIndex'), (0, 'HH3C-EPON-MIB', 'hh3cEponOuiIndex')) if mibBuilder.loadTexts: hh3cEponOuiEntry.setStatus('current') hh3c_epon_oui_index = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 19, 1, 1), integer32()) if mibBuilder.loadTexts: hh3cEponOuiIndex.setStatus('current') hh3c_epon_oui_value = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 19, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 512))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hh3cEponOuiValue.setStatus('current') hh3c_epon_oam_version = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 19, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hh3cEponOamVersion.setStatus('current') hh3c_epon_oui_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 19, 1, 4), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hh3cEponOuiRowStatus.setStatus('current') hh3c_epon_multicast_control_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 20)) if mibBuilder.loadTexts: hh3cEponMulticastControlTable.setStatus('current') hh3c_epon_multicast_control_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 20, 1)).setIndexNames((0, 'HH3C-EPON-MIB', 'hh3cEponMulticastVlanId')) if mibBuilder.loadTexts: hh3cEponMulticastControlEntry.setStatus('current') hh3c_epon_multicast_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 20, 1, 1), integer32()) if mibBuilder.loadTexts: hh3cEponMulticastVlanId.setStatus('current') hh3c_epon_multicast_address_list = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 20, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hh3cEponMulticastAddressList.setStatus('current') hh3c_epon_multicast_status = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 1, 20, 1, 3), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hh3cEponMulticastStatus.setStatus('current') hh3c_epon_file_name = mib_identifier((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 2)) hh3c_epon_dba_update_file_name = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 2, 1), octet_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cEponDbaUpdateFileName.setStatus('current') hh3c_epon_onu_update_file_name = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 2, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cEponOnuUpdateFileName.setStatus('current') hh3c_epon_olt_man = mib_identifier((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3)) hh3c_olt_sys_man_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 1)) if mibBuilder.loadTexts: hh3cOltSysManTable.setStatus('current') hh3c_olt_sys_man_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hh3cOltSysManEntry.setStatus('current') hh3c_olt_laser_on_time = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 1, 1, 1), integer32().clone(96)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOltLaserOnTime.setStatus('current') hh3c_olt_laser_off_time = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 1, 1, 2), integer32().clone(96)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOltLaserOffTime.setStatus('current') hh3c_olt_multi_copy_brd_cast = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 1, 1, 3), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOltMultiCopyBrdCast.setStatus('current') hh3c_olt_enable_discard_packet = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 1, 1, 4), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOltEnableDiscardPacket.setStatus('current') hh3c_olt_self_test = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('selftest', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOltSelfTest.setStatus('current') hh3c_olt_self_test_result = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('ok', 2), ('fail', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOltSelfTestResult.setStatus('current') hh3c_olt_max_rtt = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 1, 1, 7), unsigned32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOltMaxRtt.setStatus('current') hh3c_olt_info_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 2)) if mibBuilder.loadTexts: hh3cOltInfoTable.setStatus('current') hh3c_olt_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 2, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hh3cOltInfoEntry.setStatus('current') hh3c_olt_firm_major_version = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 2, 1, 1), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOltFirmMajorVersion.setStatus('current') hh3c_olt_firm_minor_version = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 2, 1, 2), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOltFirmMinorVersion.setStatus('current') hh3c_olt_hard_major_version = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 2, 1, 3), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOltHardMajorVersion.setStatus('current') hh3c_olt_hard_minor_version = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 2, 1, 4), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOltHardMinorVersion.setStatus('current') hh3c_olt_agc_lock_time = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 2, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOltAgcLockTime.setStatus('current') hh3c_olt_agc_cdr_time = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 2, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOltAgcCdrTime.setStatus('current') hh3c_olt_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 2, 1, 7), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOltMacAddress.setStatus('current') hh3c_olt_work_mode = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 2, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('open', 2), ('reset', 3), ('closed', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOltWorkMode.setStatus('current') hh3c_olt_optical_power_tx = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 2, 1, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOltOpticalPowerTx.setStatus('current') hh3c_olt_optical_power_rx = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 2, 1, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOltOpticalPowerRx.setStatus('current') hh3c_olt_dba_man_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 3)) if mibBuilder.loadTexts: hh3cOltDbaManTable.setStatus('current') hh3c_olt_dba_man_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 3, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hh3cOltDbaManEntry.setStatus('current') hh3c_olt_dba_enabled_type = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 3, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('internal', 1), ('external', 2))).clone('internal')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOltDbaEnabledType.setStatus('current') hh3c_olt_dba_discovery_length = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 3, 1, 2), integer32().clone(41500)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOltDbaDiscoveryLength.setStatus('current') hh3c_olt_dba_discovry_frequency = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 3, 1, 3), integer32().clone(50)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOltDbaDiscovryFrequency.setStatus('current') hh3c_olt_dba_cycle_length = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 3, 1, 4), integer32().clone(65535)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOltDbaCycleLength.setStatus('current') hh3c_olt_dba_version = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 3, 1, 5), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOltDbaVersion.setStatus('current') hh3c_olt_dba_update = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 3, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('update', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOltDbaUpdate.setStatus('current') hh3c_olt_dba_update_result = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 3, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('ok', 2), ('fail', 3), ('fileNotExist', 4), ('notSetFilename', 5)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOltDbaUpdateResult.setStatus('current') hh3c_olt_port_alarm_threshold_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 4)) if mibBuilder.loadTexts: hh3cOltPortAlarmThresholdTable.setStatus('current') hh3c_olt_port_alarm_threshold_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 4, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hh3cOltPortAlarmThresholdEntry.setStatus('current') hh3c_olt_port_alarm_ber_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 4, 1, 1), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOltPortAlarmBerEnabled.setStatus('current') hh3c_olt_port_alarm_ber_direct = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 4, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('berUplink', 1), ('berDownlink', 2), ('berAll', 3))).clone('berAll')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOltPortAlarmBerDirect.setStatus('current') hh3c_olt_port_alarm_ber_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 4, 1, 3), integer32().clone(10)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOltPortAlarmBerThreshold.setStatus('current') hh3c_olt_port_alarm_fer_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 4, 1, 4), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOltPortAlarmFerEnabled.setStatus('current') hh3c_olt_port_alarm_fer_direct = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 4, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('ferUplink', 1), ('ferDownlink', 2), ('ferAll', 3))).clone('ferAll')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOltPortAlarmFerDirect.setStatus('current') hh3c_olt_port_alarm_fer_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 4, 1, 6), integer32().clone(1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOltPortAlarmFerThreshold.setStatus('current') hh3c_olt_port_alarm_llid_mismatch_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 4, 1, 7), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOltPortAlarmLlidMismatchEnabled.setStatus('current') hh3c_olt_port_alarm_llid_mismatch_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 4, 1, 8), integer32().clone(5000)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOltPortAlarmLlidMismatchThreshold.setStatus('current') hh3c_olt_port_alarm_remote_stable_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 4, 1, 9), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOltPortAlarmRemoteStableEnabled.setStatus('current') hh3c_olt_port_alarm_local_stable_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 4, 1, 10), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOltPortAlarmLocalStableEnabled.setStatus('current') hh3c_olt_port_alarm_registration_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 4, 1, 11), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOltPortAlarmRegistrationEnabled.setStatus('current') hh3c_olt_port_alarm_oam_disconnection_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 4, 1, 12), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOltPortAlarmOamDisconnectionEnabled.setStatus('current') hh3c_olt_port_alarm_encryption_key_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 4, 1, 13), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOltPortAlarmEncryptionKeyEnabled.setStatus('current') hh3c_olt_port_alarm_vendor_specific_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 4, 1, 14), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOltPortAlarmVendorSpecificEnabled.setStatus('current') hh3c_olt_port_alarm_reg_excess_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 4, 1, 15), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOltPortAlarmRegExcessEnabled.setStatus('current') hh3c_olt_port_alarm_dfe_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 4, 1, 16), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOltPortAlarmDFEEnabled.setStatus('current') hh3c_olt_laser_on_time_min_val = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOltLaserOnTimeMinVal.setStatus('current') hh3c_olt_laser_on_time_max_val = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOltLaserOnTimeMaxVal.setStatus('current') hh3c_olt_laser_off_time_min_val = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOltLaserOffTimeMinVal.setStatus('current') hh3c_olt_laser_off_time_max_val = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOltLaserOffTimeMaxVal.setStatus('current') hh3c_olt_dba_discovery_length_min_val = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOltDbaDiscoveryLengthMinVal.setStatus('current') hh3c_olt_dba_discovery_length_max_val = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOltDbaDiscoveryLengthMaxVal.setStatus('current') hh3c_olt_dba_discovry_frequency_min_val = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 11), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOltDbaDiscovryFrequencyMinVal.setStatus('current') hh3c_olt_dba_discovry_frequency_max_val = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 12), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOltDbaDiscovryFrequencyMaxVal.setStatus('current') hh3c_olt_dba_cycle_length_min_val = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 13), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOltDbaCycleLengthMinVal.setStatus('current') hh3c_olt_dba_cycle_length_max_val = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 14), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOltDbaCycleLengthMaxVal.setStatus('current') hh3c_olt_port_alarm_llid_mis_min_val = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 15), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOltPortAlarmLlidMisMinVal.setStatus('current') hh3c_olt_port_alarm_llid_mis_max_val = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 16), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOltPortAlarmLlidMisMaxVal.setStatus('current') hh3c_olt_port_alarm_ber_min_val = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 17), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOltPortAlarmBerMinVal.setStatus('current') hh3c_olt_port_alarm_ber_max_val = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 18), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOltPortAlarmBerMaxVal.setStatus('current') hh3c_olt_port_alarm_fer_min_val = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 19), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOltPortAlarmFerMinVal.setStatus('current') hh3c_olt_port_alarm_fer_max_val = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 20), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOltPortAlarmFerMaxVal.setStatus('current') hh3c_onu_silent_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 21)) if mibBuilder.loadTexts: hh3cOnuSilentTable.setStatus('current') hh3c_onu_silent_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 21, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'HH3C-EPON-MIB', 'hh3cOnuSilentMacAddr')) if mibBuilder.loadTexts: hh3cOnuSilentEntry.setStatus('current') hh3c_onu_silent_mac_addr = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 21, 1, 1), mac_address()) if mibBuilder.loadTexts: hh3cOnuSilentMacAddr.setStatus('current') hh3c_onu_silent_time = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 21, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuSilentTime.setStatus('current') hh3c_olt_using_onu_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 22)) if mibBuilder.loadTexts: hh3cOltUsingOnuTable.setStatus('current') hh3c_olt_using_onu_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 22, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'HH3C-EPON-MIB', 'hh3cOltUsingOnuNum')) if mibBuilder.loadTexts: hh3cOltUsingOnuEntry.setStatus('current') hh3c_olt_using_onu_num = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 22, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 64))) if mibBuilder.loadTexts: hh3cOltUsingOnuNum.setStatus('current') hh3c_olt_using_onu_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 22, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOltUsingOnuIfIndex.setStatus('current') hh3c_olt_using_onu_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 3, 22, 1, 3), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hh3cOltUsingOnuRowStatus.setStatus('current') hh3c_epon_onu_man = mib_identifier((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5)) hh3c_onu_sys_man_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 1)) if mibBuilder.loadTexts: hh3cOnuSysManTable.setStatus('current') hh3c_onu_sys_man_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hh3cOnuSysManEntry.setStatus('current') hh3c_onu_encrypt_man = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('off', 1), ('downlink', 2), ('updownlink', 3))).clone('downlink')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuEncryptMan.setStatus('current') hh3c_onu_re_authorize = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('reAuthorize', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuReAuthorize.setStatus('current') hh3c_onu_multicast_filter_status = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 1, 1, 3), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuMulticastFilterStatus.setStatus('current') hh3c_onu_dba_report_queue_set_number = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 1, 1, 4), integer32().clone(2)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuDbaReportQueueSetNumber.setStatus('current') hh3c_onu_remote_fec_status = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2))).clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuRemoteFecStatus.setStatus('current') hh3c_onu_port_ber_status = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2))).clone('enable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuPortBerStatus.setStatus('current') hh3c_onu_reset = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('reset', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuReset.setStatus('current') hh3c_onu_multicast_control_mode = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('igmpsnooping', 1), ('multicastcontrol', 2))).clone('igmpsnooping')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuMulticastControlMode.setStatus('current') hh3c_onu_access_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 1, 1, 9), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuAccessVlan.setStatus('current') hh3c_onu_encrypt_key = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 1, 1, 10), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuEncryptKey.setStatus('current') hh3c_onu_uni_up_down_trap_status = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 1, 1, 11), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuUniUpDownTrapStatus.setStatus('current') hh3c_onu_fec_status = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 1, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2))).clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuFecStatus.setStatus('current') hh3c_onu_mcast_ctrl_host_aging_time = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 1, 1, 13), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuMcastCtrlHostAgingTime.setStatus('current') hh3c_onu_multicast_fast_leave_enable = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 1, 1, 14), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuMulticastFastLeaveEnable.setStatus('current') hh3c_onu_port_isolate_enable = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 1, 1, 15), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuPortIsolateEnable.setStatus('current') hh3c_onu_link_test_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 2)) if mibBuilder.loadTexts: hh3cOnuLinkTestTable.setStatus('current') hh3c_onu_link_test_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 2, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hh3cOnuLinkTestEntry.setStatus('current') hh3c_onu_link_test_frame_num = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 2, 1, 1), integer32().clone(20)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuLinkTestFrameNum.setStatus('current') hh3c_onu_link_test_frame_size = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(60, 1514)).clone(1000)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuLinkTestFrameSize.setStatus('current') hh3c_onu_link_test_delay = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 2, 1, 3), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuLinkTestDelay.setStatus('current') hh3c_onu_link_test_vlan_tag = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 2, 1, 4), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuLinkTestVlanTag.setStatus('current') hh3c_onu_link_test_vlan_priority = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 2, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 7)).clone(2)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuLinkTestVlanPriority.setStatus('current') hh3c_onu_link_test_vlan_tag_id = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 2, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(1, 4094)).clone(1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuLinkTestVlanTagID.setStatus('current') hh3c_onu_link_test_result_sent_frame_num = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 2, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuLinkTestResultSentFrameNum.setStatus('current') hh3c_onu_link_test_result_ret_frame_num = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 2, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuLinkTestResultRetFrameNum.setStatus('current') hh3c_onu_link_test_result_ret_err_frame_num = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 2, 1, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuLinkTestResultRetErrFrameNum.setStatus('current') hh3c_onu_link_test_result_min_delay = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 2, 1, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuLinkTestResultMinDelay.setStatus('current') hh3c_onu_link_test_result_mean_delay = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 2, 1, 11), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuLinkTestResultMeanDelay.setStatus('current') hh3c_onu_link_test_result_max_delay = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 2, 1, 12), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuLinkTestResultMaxDelay.setStatus('current') hh3c_onu_band_width_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 3)) if mibBuilder.loadTexts: hh3cOnuBandWidthTable.setStatus('current') hh3c_onu_band_width_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 3, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hh3cOnuBandWidthEntry.setStatus('current') hh3c_onu_down_stream_band_width_policy = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 3, 1, 1), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuDownStreamBandWidthPolicy.setStatus('current') hh3c_onu_down_stream_max_band_width = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 3, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 1000000)).clone(1000000)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuDownStreamMaxBandWidth.setStatus('current') hh3c_onu_down_stream_max_burst_size = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 3, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 8388480)).clone(8388480)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuDownStreamMaxBurstSize.setStatus('current') hh3c_onu_down_stream_high_priority_first = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 3, 1, 4), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuDownStreamHighPriorityFirst.setStatus('current') hh3c_onu_down_stream_short_frame_first = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 3, 1, 5), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuDownStreamShortFrameFirst.setStatus('current') hh3c_onu_p2_p_band_width_policy = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 3, 1, 6), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuP2PBandWidthPolicy.setStatus('current') hh3c_onu_p2_p_max_band_width = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 3, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 1000000)).clone(1000000)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuP2PMaxBandWidth.setStatus('current') hh3c_onu_p2_p_max_burst_size = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 3, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 8388480)).clone(8388480)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuP2PMaxBurstSize.setStatus('current') hh3c_onu_p2_p_high_priority_first = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 3, 1, 9), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuP2PHighPriorityFirst.setStatus('current') hh3c_onu_p2_p_short_frame_first = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 3, 1, 10), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuP2PShortFrameFirst.setStatus('current') hh3c_onu_sla_man_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 4)) if mibBuilder.loadTexts: hh3cOnuSlaManTable.setStatus('current') hh3c_onu_sla_man_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 4, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hh3cOnuSlaManEntry.setStatus('current') hh3c_onu_sla_max_band_width = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 4, 1, 1), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuSlaMaxBandWidth.setStatus('current') hh3c_onu_sla_min_band_width = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 4, 1, 2), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuSlaMinBandWidth.setStatus('current') hh3c_onu_sla_band_width_step_val = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 4, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuSlaBandWidthStepVal.setStatus('current') hh3c_onu_sla_delay = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 4, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('low', 1), ('high', 2))).clone('low')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuSlaDelay.setStatus('current') hh3c_onu_sla_fixed_band_width = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 4, 1, 5), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuSlaFixedBandWidth.setStatus('current') hh3c_onu_sla_priority_class = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 4, 1, 6), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuSlaPriorityClass.setStatus('current') hh3c_onu_sla_fixed_packet_size = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 4, 1, 7), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuSlaFixedPacketSize.setStatus('current') hh3c_onu_info_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5)) if mibBuilder.loadTexts: hh3cOnuInfoTable.setStatus('current') hh3c_onu_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hh3cOnuInfoEntry.setStatus('current') hh3c_onu_hard_major_version = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5, 1, 1), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuHardMajorVersion.setStatus('current') hh3c_onu_hard_minor_version = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5, 1, 2), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuHardMinorVersion.setStatus('current') hh3c_onu_software_version = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5, 1, 3), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuSoftwareVersion.setStatus('current') hh3c_onu_uni_mac_type = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('mii', 2), ('gmii', 3), ('tbi', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuUniMacType.setStatus('current') hh3c_onu_laser_on_time = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuLaserOnTime.setStatus('current') hh3c_onu_laser_off_time = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuLaserOffTime.setStatus('current') hh3c_onu_grant_fifo_dep = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5, 1, 7), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(1, 255), value_range_constraint(2147483647, 2147483647)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuGrantFifoDep.setStatus('current') hh3c_onu_work_mode = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('on', 2), ('pending', 3), ('off', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuWorkMode.setStatus('current') hh3c_onu_pcb_version = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5, 1, 9), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuPCBVersion.setStatus('current') hh3c_onu_rtt = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5, 1, 10), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuRtt.setStatus('current') hh3c_onu_eeprom_version = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5, 1, 11), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuEEPROMVersion.setStatus('current') hh3c_onu_reg_type = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5, 1, 12), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuRegType.setStatus('current') hh3c_onu_host_type = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5, 1, 13), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuHostType.setStatus('current') hh3c_onu_distance = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5, 1, 14), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuDistance.setStatus('current') hh3c_onu_llid = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5, 1, 15), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuLlid.setStatus('current') hh3c_onu_vendor_id = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5, 1, 16), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuVendorId.setStatus('current') hh3c_onu_firmware_version = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5, 1, 17), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuFirmwareVersion.setStatus('current') hh3c_onu_optical_power_received_by_olt = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 5, 1, 18), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuOpticalPowerReceivedByOlt.setStatus('current') hh3c_onu_mac_addr_info_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 6)) if mibBuilder.loadTexts: hh3cOnuMacAddrInfoTable.setStatus('current') hh3c_onu_mac_addr_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 6, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'HH3C-EPON-MIB', 'hh3cOnuMacIndex')) if mibBuilder.loadTexts: hh3cOnuMacAddrInfoEntry.setStatus('current') hh3c_onu_mac_index = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 6, 1, 1), integer32()) if mibBuilder.loadTexts: hh3cOnuMacIndex.setStatus('current') hh3c_onu_mac_addr_flag = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 6, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('bound', 1), ('registered', 2), ('run', 3), ('regIncorrect', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuMacAddrFlag.setStatus('current') hh3c_onu_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 6, 1, 3), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuMacAddress.setStatus('current') hh3c_onu_bind_mac_addr_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 7)) if mibBuilder.loadTexts: hh3cOnuBindMacAddrTable.setStatus('current') hh3c_onu_bind_mac_addr_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 7, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hh3cOnuBindMacAddrEntry.setStatus('current') hh3c_onu_bind_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 7, 1, 1), mac_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuBindMacAddress.setStatus('current') hh3c_onu_bind_type = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 7, 1, 2), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuBindType.setStatus('current') hh3c_onu_firmware_update_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 8)) if mibBuilder.loadTexts: hh3cOnuFirmwareUpdateTable.setStatus('current') hh3c_onu_firmware_update_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 8, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hh3cOnuFirmwareUpdateEntry.setStatus('current') hh3c_onu_update = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 8, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('update', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuUpdate.setStatus('current') hh3c_onu_update_result = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 8, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('updating', 1), ('ok', 2), ('fail', 3), ('fileNotExist', 4), ('notSetFilename', 5), ('fileNotMatchONU', 6), ('timeout', 7), ('otherError', 8)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuUpdateResult.setStatus('current') hh3c_onu_update_file_name = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 8, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuUpdateFileName.setStatus('current') hh3c_onu_link_test_frame_num_min_val = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuLinkTestFrameNumMinVal.setStatus('current') hh3c_onu_link_test_frame_num_max_val = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuLinkTestFrameNumMaxVal.setStatus('current') hh3c_onu_sla_max_band_width_min_val = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 11), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuSlaMaxBandWidthMinVal.setStatus('current') hh3c_onu_sla_max_band_width_max_val = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 12), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuSlaMaxBandWidthMaxVal.setStatus('current') hh3c_onu_sla_min_band_width_min_val = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 13), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuSlaMinBandWidthMinVal.setStatus('current') hh3c_onu_sla_min_band_width_max_val = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 14), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuSlaMinBandWidthMaxVal.setStatus('current') hh3c_epon_onu_type_man_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 15)) if mibBuilder.loadTexts: hh3cEponOnuTypeManTable.setStatus('current') hh3c_epon_onu_type_man_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 15, 1)).setIndexNames((0, 'HH3C-EPON-MIB', 'hh3cEponOnuTypeIndex')) if mibBuilder.loadTexts: hh3cEponOnuTypeManEntry.setStatus('current') hh3c_epon_onu_type_index = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 15, 1, 1), integer32()) if mibBuilder.loadTexts: hh3cEponOnuTypeIndex.setStatus('current') hh3c_epon_onu_type_descr = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 15, 1, 2), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cEponOnuTypeDescr.setStatus('current') hh3c_onu_packet_man_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 16)) if mibBuilder.loadTexts: hh3cOnuPacketManTable.setStatus('current') hh3c_onu_packet_man_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 16, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hh3cOnuPacketManEntry.setStatus('current') hh3c_onu_priority_trust = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 16, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('dscp', 1), ('ipprecedence', 2), ('cos', 3))).clone('cos')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuPriorityTrust.setStatus('current') hh3c_onu_queue_scheduler = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 16, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('spq', 1), ('wfq', 2))).clone('spq')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuQueueScheduler.setStatus('current') hh3c_onu_protocol_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 17)) if mibBuilder.loadTexts: hh3cOnuProtocolTable.setStatus('current') hh3c_onu_protocol_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 17, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hh3cOnuProtocolEntry.setStatus('current') hh3c_onu_stp_status = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 17, 1, 1), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuStpStatus.setStatus('current') hh3c_onu_igmp_snooping_status = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 17, 1, 2), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuIgmpSnoopingStatus.setStatus('current') hh3c_onu_dhcpsnooping_option82 = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 17, 1, 3), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuDhcpsnoopingOption82.setStatus('current') hh3c_onu_dhcpsnooping = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 17, 1, 4), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuDhcpsnooping.setStatus('current') hh3c_onu_pppoe = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 17, 1, 5), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuPppoe.setStatus('current') hh3c_onu_igmp_snooping_host_aging_t = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 17, 1, 6), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuIgmpSnoopingHostAgingT.setStatus('current') hh3c_onu_igmp_snooping_max_resp_t = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 17, 1, 7), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuIgmpSnoopingMaxRespT.setStatus('current') hh3c_onu_igmp_snooping_router_aging_t = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 17, 1, 8), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuIgmpSnoopingRouterAgingT.setStatus('current') hh3c_onu_igmp_snooping_agg_report_s = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 17, 1, 9), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuIgmpSnoopingAggReportS.setStatus('current') hh3c_onu_igmp_snooping_agg_leave_s = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 17, 1, 10), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuIgmpSnoopingAggLeaveS.setStatus('current') hh3c_onu_dot1x_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 18)) if mibBuilder.loadTexts: hh3cOnuDot1xTable.setStatus('current') hh3c_onu_dot1x_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 18, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hh3cOnuDot1xEntry.setStatus('current') hh3c_onu_dot1x_account = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 18, 1, 1), octet_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuDot1xAccount.setStatus('current') hh3c_onu_dot1x_password = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 18, 1, 2), octet_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuDot1xPassword.setStatus('current') hh3c_epon_batch_operation_man = mib_identifier((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 6)) hh3c_onu_priority_queue_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 19)) if mibBuilder.loadTexts: hh3cOnuPriorityQueueTable.setStatus('current') hh3c_onu_priority_queue_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 19, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'HH3C-EPON-MIB', 'hh3cOnuQueueDirection'), (0, 'HH3C-EPON-MIB', 'hh3cOnuQueueId')) if mibBuilder.loadTexts: hh3cOnuPriorityQueueEntry.setStatus('current') hh3c_onu_queue_direction = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 19, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('inbound', 1), ('outbound', 2)))) if mibBuilder.loadTexts: hh3cOnuQueueDirection.setStatus('current') hh3c_onu_queue_id = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 19, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))) if mibBuilder.loadTexts: hh3cOnuQueueId.setStatus('current') hh3c_onu_queue_size = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 19, 1, 3), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuQueueSize.setStatus('current') hh3c_onu_count_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 20)) if mibBuilder.loadTexts: hh3cOnuCountTable.setStatus('current') hh3c_onu_count_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 20, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hh3cOnuCountEntry.setStatus('current') hh3c_onu_in_crc_err_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 20, 1, 1), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuInCRCErrPkts.setStatus('current') hh3c_onu_out_dropped_frames = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 20, 1, 2), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuOutDroppedFrames.setStatus('current') hh3c_epon_onu_scalar_group = mib_identifier((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 21)) hh3c_onu_priority_queue_size_min_val = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 21, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuPriorityQueueSizeMinVal.setStatus('current') hh3c_onu_priority_queue_size_max_val = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 21, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuPriorityQueueSizeMaxVal.setStatus('current') hh3c_onu_priority_queue_bandwidth_min_val = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 21, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuPriorityQueueBandwidthMinVal.setStatus('current') hh3c_onu_priority_queue_bandwidth_max_val = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 21, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuPriorityQueueBandwidthMaxVal.setStatus('current') hh3c_onu_priority_queue_burstsize_min_val = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 21, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuPriorityQueueBurstsizeMinVal.setStatus('current') hh3c_onu_priority_queue_burstsize_max_val = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 21, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuPriorityQueueBurstsizeMaxVal.setStatus('current') hh3c_onu_update_by_type_next_index = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 21, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuUpdateByTypeNextIndex.setStatus('current') hh3c_onu_queue_bandwidth_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 22)) if mibBuilder.loadTexts: hh3cOnuQueueBandwidthTable.setStatus('current') hh3c_onu_queue_bandwidth_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 22, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'HH3C-EPON-MIB', 'hh3cOnuQueueDirection'), (0, 'HH3C-EPON-MIB', 'hh3cOnuQueueId')) if mibBuilder.loadTexts: hh3cOnuQueueBandwidthEntry.setStatus('current') hh3c_onu_queue_max_bandwidth = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 22, 1, 1), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuQueueMaxBandwidth.setStatus('current') hh3c_onu_queue_max_burstsize = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 22, 1, 2), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuQueueMaxBurstsize.setStatus('current') hh3c_onu_queue_policy_status = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 22, 1, 3), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuQueuePolicyStatus.setStatus('current') hh3c_onu_ip_address_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 23)) if mibBuilder.loadTexts: hh3cOnuIpAddressTable.setStatus('current') hh3c_onu_ip_address_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 23, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hh3cOnuIpAddressEntry.setStatus('current') hh3c_onu_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 23, 1, 1), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuIpAddress.setStatus('current') hh3c_onu_ip_address_mask = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 23, 1, 2), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuIpAddressMask.setStatus('current') hh3c_onu_ip_address_gateway = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 23, 1, 3), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuIpAddressGateway.setStatus('current') hh3c_onu_dhcpallocate = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 23, 1, 4), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuDhcpallocate.setStatus('current') hh3c_onu_manage_vid = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 23, 1, 5), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuManageVID.setStatus('current') hh3c_onu_manage_vlan_intf_s = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 23, 1, 6), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuManageVlanIntfS.setStatus('current') hh3c_onu_chip_set_info_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 24)) if mibBuilder.loadTexts: hh3cOnuChipSetInfoTable.setStatus('current') hh3c_onu_chip_set_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 24, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hh3cOnuChipSetInfoEntry.setStatus('current') hh3c_onu_chip_set_vendor_id = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 24, 1, 1), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuChipSetVendorId.setStatus('current') hh3c_onu_chip_set_model = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 24, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuChipSetModel.setStatus('current') hh3c_onu_chip_set_revision = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 24, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuChipSetRevision.setStatus('current') hh3c_onu_chip_set_design_date = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 24, 1, 4), date_and_time()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuChipSetDesignDate.setStatus('current') hh3c_onu_capability_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 25)) if mibBuilder.loadTexts: hh3cOnuCapabilityTable.setStatus('current') hh3c_onu_capability_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 25, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hh3cOnuCapabilityEntry.setStatus('current') hh3c_onu_service_supported = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 25, 1, 1), bits().clone(namedValues=named_values(('geinterfacesupport', 0), ('feinterfacesupport', 1), ('voipservicesupport', 2), ('tdmservicesupport', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuServiceSupported.setStatus('current') hh3c_onu_ge_port_number = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 25, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuGEPortNumber.setStatus('current') hh3c_onu_fe_port_number = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 25, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuFEPortNumber.setStatus('current') hh3c_onu_pots_port_number = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 25, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuPOTSPortNumber.setStatus('current') hh3c_onu_e1_ports_number = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 25, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuE1PortsNumber.setStatus('current') hh3c_onu_upstream_queue_number = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 25, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuUpstreamQueueNumber.setStatus('current') hh3c_onu_max_upstream_queue_per_port = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 25, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuMaxUpstreamQueuePerPort.setStatus('current') hh3c_onu_downstream_queue_number = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 25, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuDownstreamQueueNumber.setStatus('current') hh3c_onu_max_downstream_queue_per_port = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 25, 1, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuMaxDownstreamQueuePerPort.setStatus('current') hh3c_onu_battery_backup = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 25, 1, 10), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuBatteryBackup.setStatus('current') hh3c_onu_igsp_fast_leave_supported = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 25, 1, 11), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuIgspFastLeaveSupported.setStatus('current') hh3c_onu_m_ctrl_fast_leave_supported = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 25, 1, 12), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuMCtrlFastLeaveSupported.setStatus('current') hh3c_onu_dba_report_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 26)) if mibBuilder.loadTexts: hh3cOnuDbaReportTable.setStatus('current') hh3c_onu_dba_report_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 26, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'HH3C-EPON-MIB', 'hh3cOnuDbaReportQueueId')) if mibBuilder.loadTexts: hh3cOnuDbaReportEntry.setStatus('current') hh3c_onu_dba_report_queue_id = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 26, 1, 1), integer32()) if mibBuilder.loadTexts: hh3cOnuDbaReportQueueId.setStatus('current') hh3c_onu_dba_report_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 26, 1, 2), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuDbaReportThreshold.setStatus('current') hh3c_onu_dba_report_status = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 26, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2))).clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuDbaReportStatus.setStatus('current') hh3c_onu_cos_to_local_precedence_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 27)) if mibBuilder.loadTexts: hh3cOnuCosToLocalPrecedenceTable.setStatus('current') hh3c_onu_cos_to_local_precedence_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 27, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'HH3C-EPON-MIB', 'hh3cOnuCosToLocalPrecedenceCosIndex')) if mibBuilder.loadTexts: hh3cOnuCosToLocalPrecedenceEntry.setStatus('current') hh3c_onu_cos_to_local_precedence_cos_index = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 27, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuCosToLocalPrecedenceCosIndex.setStatus('current') hh3c_onu_cos_to_local_precedence_value = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 27, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuCosToLocalPrecedenceValue.setStatus('current') hh3c_epon_onu_stp_port_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 28)) if mibBuilder.loadTexts: hh3cEponOnuStpPortTable.setStatus('current') hh3c_epon_onu_stp_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 28, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'HH3C-EPON-MIB', 'hh3cEponStpPortIndex')) if mibBuilder.loadTexts: hh3cEponOnuStpPortEntry.setStatus('current') hh3c_epon_stp_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 28, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 144))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hh3cEponStpPortIndex.setStatus('current') hh3c_epon_stp_port_descr = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 28, 1, 2), octet_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hh3cEponStpPortDescr.setStatus('current') hh3c_epon_stp_port_state = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 28, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('disabled', 1), ('discarding', 2), ('learning', 3), ('forwarding', 4)))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hh3cEponStpPortState.setStatus('current') hh3c_onu_physical_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 29)) if mibBuilder.loadTexts: hh3cOnuPhysicalTable.setStatus('current') hh3c_onu_physical_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 29, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hh3cOnuPhysicalEntry.setStatus('current') hh3c_onu_bridge_mac = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 29, 1, 1), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuBridgeMac.setStatus('current') hh3c_onu_first_pon_mac = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 29, 1, 2), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuFirstPonMac.setStatus('current') hh3c_onu_first_pon_reg_state = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 29, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('notExist', 1), ('absent', 2), ('offline', 3), ('silent', 4), ('down', 5), ('up', 6)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuFirstPonRegState.setStatus('current') hh3c_onu_second_pon_mac = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 29, 1, 4), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuSecondPonMac.setStatus('current') hh3c_onu_second_pon_reg_state = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 29, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('notExist', 1), ('absent', 2), ('offline', 3), ('silent', 4), ('down', 5), ('up', 6)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuSecondPonRegState.setStatus('current') hh3c_onu_smlk_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 30)) if mibBuilder.loadTexts: hh3cOnuSmlkTable.setStatus('current') hh3c_onu_smlk_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 30, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'HH3C-EPON-MIB', 'hh3cOnuSmlkGroupID')) if mibBuilder.loadTexts: hh3cOnuSmlkEntry.setStatus('current') hh3c_onu_smlk_group_id = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 30, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuSmlkGroupID.setStatus('current') hh3c_onu_smlk_first_pon_role = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 30, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('master', 1), ('slave', 2), ('null', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuSmlkFirstPonRole.setStatus('current') hh3c_onu_smlk_first_pon_status = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 30, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('active', 1), ('standby', 2), ('down', 3), ('null', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuSmlkFirstPonStatus.setStatus('current') hh3c_onu_smlk_second_pon_role = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 30, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('master', 1), ('slave', 2), ('null', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuSmlkSecondPonRole.setStatus('current') hh3c_onu_smlk_second_pon_status = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 30, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('active', 1), ('standby', 2), ('down', 3), ('null', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuSmlkSecondPonStatus.setStatus('current') hh3c_onu_rs485_properties_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 31)) if mibBuilder.loadTexts: hh3cOnuRS485PropertiesTable.setStatus('current') hh3c_onu_rs485_properties_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 31, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'HH3C-EPON-MIB', 'hh3cOnuRS485SerialIndex')) if mibBuilder.loadTexts: hh3cOnuRS485PropertiesEntry.setStatus('current') hh3c_onu_rs485_serial_index = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 31, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 64))) if mibBuilder.loadTexts: hh3cOnuRS485SerialIndex.setStatus('current') hh3c_onu_rs485_baud_rate = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 31, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=named_values(('baudRate300', 1), ('baudRate600', 2), ('baudRate1200', 3), ('baudRate2400', 4), ('baudRate4800', 5), ('baudRate9600', 6), ('baudRate19200', 7), ('baudRate38400', 8), ('baudRate57600', 9), ('baudRate115200', 10))).clone('baudRate9600')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuRS485BaudRate.setStatus('current') hh3c_onu_rs485_data_bits = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 31, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('five', 1), ('six', 2), ('seven', 3), ('eight', 4))).clone('eight')).setUnits('bit').setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuRS485DataBits.setStatus('current') hh3c_onu_rs485_parity = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 31, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('none', 1), ('odd', 2), ('even', 3), ('mark', 4), ('space', 5))).clone('none')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuRS485Parity.setStatus('current') hh3c_onu_rs485_stop_bits = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 31, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('one', 1), ('two', 2), ('oneAndHalf', 3))).clone('one')).setUnits('bit').setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuRS485StopBits.setStatus('current') hh3c_onu_rs485_flow_control = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 31, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('none', 1), ('hardware', 2), ('xonOrxoff', 3))).clone('none')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuRS485FlowControl.setStatus('current') hh3c_onu_rs485_tx_octets = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 31, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuRS485TXOctets.setStatus('current') hh3c_onu_rs485_rx_octets = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 31, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuRS485RXOctets.setStatus('current') hh3c_onu_rs485_tx_err_octets = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 31, 1, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuRS485TXErrOctets.setStatus('current') hh3c_onu_rs485_rx_err_octets = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 31, 1, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuRS485RXErrOctets.setStatus('current') hh3c_onu_rs485_reset_statistics = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 31, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('counting', 1), ('clear', 2))).clone('counting')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cOnuRS485ResetStatistics.setStatus('current') hh3c_onu_rs485_session_summary_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 32)) if mibBuilder.loadTexts: hh3cOnuRS485SessionSummaryTable.setStatus('current') hh3c_onu_rs485_session_summary_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 32, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'HH3C-EPON-MIB', 'hh3cOnuRS485SerialIndex')) if mibBuilder.loadTexts: hh3cOnuRS485SessionSummaryEntry.setStatus('current') hh3c_onu_rs485_session_max_num = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 32, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 64))).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuRS485SessionMaxNum.setStatus('current') hh3c_onu_rs485_session_next_index = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 32, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 64))).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuRS485SessionNextIndex.setStatus('current') hh3c_onu_rs485_session_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 33)) if mibBuilder.loadTexts: hh3cOnuRS485SessionTable.setStatus('current') hh3c_onu_rs485_session_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 33, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'HH3C-EPON-MIB', 'hh3cOnuRS485SerialIndex'), (0, 'HH3C-EPON-MIB', 'hh3cOnuRS485SessionIndex')) if mibBuilder.loadTexts: hh3cOnuRS485SessionEntry.setStatus('current') hh3c_onu_rs485_session_index = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 33, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 64))) if mibBuilder.loadTexts: hh3cOnuRS485SessionIndex.setStatus('current') hh3c_onu_rs485_session_type = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 33, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('udp', 1), ('tcpClient', 2), ('tcpServer', 3)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hh3cOnuRS485SessionType.setStatus('current') hh3c_onu_rs485_session_add_type = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 33, 1, 3), inet_address_type()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hh3cOnuRS485SessionAddType.setStatus('current') hh3c_onu_rs485_session_remote_ip = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 33, 1, 4), inet_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hh3cOnuRS485SessionRemoteIP.setStatus('current') hh3c_onu_rs485_session_remote_port = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 33, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(1024, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hh3cOnuRS485SessionRemotePort.setStatus('current') hh3c_onu_rs485_session_local_port = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 33, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(1024, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hh3cOnuRS485SessionLocalPort.setStatus('current') hh3c_onu_rs485_session_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 33, 1, 7), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hh3cOnuRS485SessionRowStatus.setStatus('current') hh3c_onu_rs485_session_err_info_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 34)) if mibBuilder.loadTexts: hh3cOnuRS485SessionErrInfoTable.setStatus('current') hh3c_onu_rs485_session_err_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 34, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'HH3C-EPON-MIB', 'hh3cOnuRS485SerialIndex'), (0, 'HH3C-EPON-MIB', 'hh3cOnuRS485SessionIndex')) if mibBuilder.loadTexts: hh3cOnuRS485SessionErrInfoEntry.setStatus('current') hh3c_onu_rs485_session_err_info = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 5, 34, 1, 1), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cOnuRS485SessionErrInfo.setStatus('current') hh3c_epon_batch_operation_by_slot_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 6, 1)) if mibBuilder.loadTexts: hh3cEponBatchOperationBySlotTable.setStatus('current') hh3c_epon_batch_operation_by_slot_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 6, 1, 1)).setIndexNames((0, 'HH3C-EPON-MIB', 'hh3cEponBatchOperationBySlotIndex')) if mibBuilder.loadTexts: hh3cEponBatchOperationBySlotEntry.setStatus('current') hh3c_epon_batch_operation_by_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 6, 1, 1, 1), integer32()) if mibBuilder.loadTexts: hh3cEponBatchOperationBySlotIndex.setStatus('current') hh3c_epon_batch_operation_by_slot_type = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 6, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 9, 10))).clone(namedValues=named_values(('resetUnknown', 1), ('updateDba', 9), ('updateONU', 10)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cEponBatchOperationBySlotType.setStatus('current') hh3c_epon_batch_operation_by_slot = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 6, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('batOpBySlot', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cEponBatchOperationBySlot.setStatus('current') hh3c_epon_batch_operation_by_slot_result = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 6, 1, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cEponBatchOperationBySlotResult.setStatus('current') hh3c_epon_batch_operation_by_olt_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 6, 2)) if mibBuilder.loadTexts: hh3cEponBatchOperationByOLTTable.setStatus('current') hh3c_epon_batch_operation_by_olt_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 6, 2, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hh3cEponBatchOperationByOLTEntry.setStatus('current') hh3c_epon_batch_operation_by_olt_type = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 6, 2, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 5))).clone(namedValues=named_values(('resetUnknown', 1), ('updateONU', 5)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cEponBatchOperationByOLTType.setStatus('current') hh3c_epon_batch_operation_by_olt = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 6, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('batOpByOlt', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cEponBatchOperationByOLT.setStatus('current') hh3c_epon_batch_operation_by_olt_result = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 6, 2, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cEponBatchOperationByOLTResult.setStatus('current') hh3c_onu_firmware_update_by_type_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 6, 3)) if mibBuilder.loadTexts: hh3cOnuFirmwareUpdateByTypeTable.setStatus('current') hh3c_onu_firmware_update_by_type_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 6, 3, 1)).setIndexNames((0, 'HH3C-EPON-MIB', 'hh3cOnuUpdateByOnuTypeIndex')) if mibBuilder.loadTexts: hh3cOnuFirmwareUpdateByTypeEntry.setStatus('current') hh3c_onu_update_by_onu_type_index = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 6, 3, 1, 1), integer32()) if mibBuilder.loadTexts: hh3cOnuUpdateByOnuTypeIndex.setStatus('current') hh3c_onu_update_by_type_onu_type = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 6, 3, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 15))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hh3cOnuUpdateByTypeOnuType.setStatus('current') hh3c_onu_update_by_type_file_name = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 6, 3, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hh3cOnuUpdateByTypeFileName.setStatus('current') hh3c_onu_update_by_type_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 6, 3, 1, 4), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hh3cOnuUpdateByTypeRowStatus.setStatus('current') hh3c_epon_error_info = mib_identifier((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 7)) hh3c_epon_software_error_code = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 7, 1), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hh3cEponSoftwareErrorCode.setStatus('current') hh3c_oam_vendor_specific_alarm_code = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 7, 2), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hh3cOamVendorSpecificAlarmCode.setStatus('current') hh3c_epon_onu_reg_error_mac_addr = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 7, 3), octet_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hh3cEponOnuRegErrorMacAddr.setStatus('current') hh3c_oam_event_log_type = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 7, 4), unsigned32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hh3cOamEventLogType.setStatus('current') hh3c_oam_event_log_location = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 7, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('local', 1), ('remote', 2)))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hh3cOamEventLogLocation.setStatus('current') hh3c_epon_loopback_port_index = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 7, 6), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hh3cEponLoopbackPortIndex.setStatus('current') hh3c_epon_loopback_port_descr = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 7, 7), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hh3cEponLoopbackPortDescr.setStatus('current') hh3c_olt_port_alarm_llid_mis_frames = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 7, 8), unsigned32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hh3cOltPortAlarmLlidMisFrames.setStatus('current') hh3c_olt_port_alarm_ber = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 7, 9), unsigned32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hh3cOltPortAlarmBer.setStatus('current') hh3c_olt_port_alarm_fer = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 7, 10), unsigned32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hh3cOltPortAlarmFer.setStatus('current') hh3c_epon_onu_reg_silent_mac = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 7, 11), octet_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hh3cEponOnuRegSilentMac.setStatus('current') hh3c_epon_operation_result = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 7, 12), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hh3cEponOperationResult.setStatus('current') hh3c_epon_onu_laser_state = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 7, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('normal', 1), ('laserAlwaysOn', 2), ('signalDegradation', 3), ('endOfLife', 4)))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hh3cEponOnuLaserState.setStatus('current') hh3c_epon_trap = mib_identifier((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8)) hh3c_epon_trap_prefix = mib_identifier((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0)) hh3c_epon_port_alarm_ber_trap = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 1)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HH3C-EPON-MIB', 'hh3cOltPortAlarmBerDirect'), ('HH3C-EPON-MIB', 'hh3cOltPortAlarmBer'), ('HH3C-EPON-MIB', 'hh3cOltPortAlarmBerThreshold')) if mibBuilder.loadTexts: hh3cEponPortAlarmBerTrap.setStatus('current') hh3c_epon_port_alarm_fer_trap = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 2)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HH3C-EPON-MIB', 'hh3cOltPortAlarmFerDirect'), ('HH3C-EPON-MIB', 'hh3cOltPortAlarmFer'), ('HH3C-EPON-MIB', 'hh3cOltPortAlarmFerThreshold')) if mibBuilder.loadTexts: hh3cEponPortAlarmFerTrap.setStatus('current') hh3c_epon_error_llid_frame_trap = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 3)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HH3C-EPON-MIB', 'hh3cOltPortAlarmLlidMisFrames'), ('HH3C-EPON-MIB', 'hh3cOltPortAlarmLlidMismatchThreshold')) if mibBuilder.loadTexts: hh3cEponErrorLLIDFrameTrap.setStatus('current') hh3c_epon_loop_back_enable_trap = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 4)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HH3C-EPON-MIB', 'hh3cEponLoopbackPortIndex'), ('HH3C-EPON-MIB', 'hh3cEponLoopbackPortDescr')) if mibBuilder.loadTexts: hh3cEponLoopBackEnableTrap.setStatus('current') hh3c_epon_onu_registration_err_trap = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 5)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HH3C-EPON-MIB', 'hh3cEponOnuRegErrorMacAddr')) if mibBuilder.loadTexts: hh3cEponOnuRegistrationErrTrap.setStatus('current') hh3c_epon_oam_disconnection_trap = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 6)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr')) if mibBuilder.loadTexts: hh3cEponOamDisconnectionTrap.setStatus('current') hh3c_epon_encryption_key_err_trap = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 7)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr')) if mibBuilder.loadTexts: hh3cEponEncryptionKeyErrTrap.setStatus('current') hh3c_epon_remote_stable_trap = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 8)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr')) if mibBuilder.loadTexts: hh3cEponRemoteStableTrap.setStatus('current') hh3c_epon_local_stable_trap = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 9)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr')) if mibBuilder.loadTexts: hh3cEponLocalStableTrap.setStatus('current') hh3c_epon_oam_vendor_specific_trap = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 10)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HH3C-EPON-MIB', 'hh3cOamVendorSpecificAlarmCode')) if mibBuilder.loadTexts: hh3cEponOamVendorSpecificTrap.setStatus('current') hh3c_epon_software_err_trap = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 11)).setObjects(('HH3C-LSW-DEV-ADM-MIB', 'hh3cLswFrameIndex'), ('HH3C-LSW-DEV-ADM-MIB', 'hh3cLswSlotIndex'), ('HH3C-EPON-MIB', 'hh3cEponSoftwareErrorCode')) if mibBuilder.loadTexts: hh3cEponSoftwareErrTrap.setStatus('current') hh3c_epon_port_alarm_ber_recover_trap = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 12)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HH3C-EPON-MIB', 'hh3cOltPortAlarmBerDirect')) if mibBuilder.loadTexts: hh3cEponPortAlarmBerRecoverTrap.setStatus('current') hh3c_epon_port_alarm_fer_recover_trap = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 13)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HH3C-EPON-MIB', 'hh3cOltPortAlarmFerDirect')) if mibBuilder.loadTexts: hh3cEponPortAlarmFerRecoverTrap.setStatus('current') hh3c_epon_error_llid_frame_recover_trap = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 14)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr')) if mibBuilder.loadTexts: hh3cEponErrorLLIDFrameRecoverTrap.setStatus('current') hh3c_epon_loop_back_enable_recover_trap = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 15)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr')) if mibBuilder.loadTexts: hh3cEponLoopBackEnableRecoverTrap.setStatus('current') hh3c_epon_onu_registration_err_recover_trap = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 16)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HH3C-EPON-MIB', 'hh3cEponOnuRegErrorMacAddr')) if mibBuilder.loadTexts: hh3cEponOnuRegistrationErrRecoverTrap.setStatus('current') hh3c_epon_oam_disconnection_recover_trap = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 17)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr')) if mibBuilder.loadTexts: hh3cEponOamDisconnectionRecoverTrap.setStatus('current') hh3c_epon_encryption_key_err_recover_trap = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 18)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr')) if mibBuilder.loadTexts: hh3cEponEncryptionKeyErrRecoverTrap.setStatus('current') hh3c_epon_remote_stable_recover_trap = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 19)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr')) if mibBuilder.loadTexts: hh3cEponRemoteStableRecoverTrap.setStatus('current') hh3c_epon_local_stable_recover_trap = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 20)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr')) if mibBuilder.loadTexts: hh3cEponLocalStableRecoverTrap.setStatus('current') hh3c_epon_oam_vendor_specific_recover_trap = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 21)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HH3C-EPON-MIB', 'hh3cOamVendorSpecificAlarmCode')) if mibBuilder.loadTexts: hh3cEponOamVendorSpecificRecoverTrap.setStatus('current') hh3c_epon_software_err_recover_trap = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 22)).setObjects(('HH3C-LSW-DEV-ADM-MIB', 'hh3cLswFrameIndex'), ('HH3C-LSW-DEV-ADM-MIB', 'hh3cLswSlotIndex'), ('HH3C-EPON-MIB', 'hh3cEponSoftwareErrorCode')) if mibBuilder.loadTexts: hh3cEponSoftwareErrRecoverTrap.setStatus('current') hh3c_dot3_oam_threshold_recover_event = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 23)).setObjects(('IF-MIB', 'ifIndex'), ('HH3C-EPON-MIB', 'hh3cOamEventLogType'), ('HH3C-EPON-MIB', 'hh3cOamEventLogLocation')) if mibBuilder.loadTexts: hh3cDot3OamThresholdRecoverEvent.setStatus('current') hh3c_dot3_oam_non_threshold_recover_event = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 24)).setObjects(('IF-MIB', 'ifIndex'), ('HH3C-EPON-MIB', 'hh3cOamEventLogType'), ('HH3C-EPON-MIB', 'hh3cOamEventLogLocation')) if mibBuilder.loadTexts: hh3cDot3OamNonThresholdRecoverEvent.setStatus('current') hh3c_epon_onu_reg_excess_trap = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 25)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr')) if mibBuilder.loadTexts: hh3cEponOnuRegExcessTrap.setStatus('current') hh3c_epon_onu_reg_excess_recover_trap = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 26)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr')) if mibBuilder.loadTexts: hh3cEponOnuRegExcessRecoverTrap.setStatus('current') hh3c_epon_onu_power_off_trap = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 27)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr')) if mibBuilder.loadTexts: hh3cEponOnuPowerOffTrap.setStatus('current') hh3c_epon_olt_switchover_trap = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 28)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr')) if mibBuilder.loadTexts: hh3cEponOltSwitchoverTrap.setStatus('current') hh3c_epon_olt_dfe_trap = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 29)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr')) if mibBuilder.loadTexts: hh3cEponOltDFETrap.setStatus('current') hh3c_epon_olt_dfe_recover_trap = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 30)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr')) if mibBuilder.loadTexts: hh3cEponOltDFERecoverTrap.setStatus('current') hh3c_epon_onu_silence_trap = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 31)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HH3C-EPON-MIB', 'hh3cEponOnuRegSilentMac')) if mibBuilder.loadTexts: hh3cEponOnuSilenceTrap.setStatus('current') hh3c_epon_onu_silence_recover_trap = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 32)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HH3C-EPON-MIB', 'hh3cEponOnuRegSilentMac')) if mibBuilder.loadTexts: hh3cEponOnuSilenceRecoverTrap.setStatus('current') hh3c_epon_onu_update_result_trap = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 33)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HH3C-EPON-MIB', 'hh3cOnuBindMacAddress'), ('HH3C-EPON-MIB', 'hh3cOnuUpdateResult'), ('HH3C-EPON-MIB', 'hh3cOnuRegType'), ('HH3C-EPON-MIB', 'hh3cOnuUpdateFileName')) if mibBuilder.loadTexts: hh3cEponOnuUpdateResultTrap.setStatus('current') hh3c_epon_onu_auto_bind_trap = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 34)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HH3C-EPON-MIB', 'hh3cOnuBindMacAddress'), ('HH3C-EPON-MIB', 'hh3cEponOperationResult')) if mibBuilder.loadTexts: hh3cEponOnuAutoBindTrap.setStatus('current') hh3c_epon_onu_port_stp_state_trap = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 35)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HH3C-EPON-MIB', 'hh3cEponStpPortIndex'), ('HH3C-EPON-MIB', 'hh3cEponStpPortDescr'), ('HH3C-EPON-MIB', 'hh3cEponStpPortState')) if mibBuilder.loadTexts: hh3cEponOnuPortStpStateTrap.setStatus('current') hh3c_epon_onu_laser_failed_trap = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 36)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HH3C-EPON-MIB', 'hh3cEponOnuLaserState')) if mibBuilder.loadTexts: hh3cEponOnuLaserFailedTrap.setStatus('current') hh3c_onu_smlk_switchover_trap = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 8, 0, 37)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HH3C-EPON-MIB', 'hh3cOnuSmlkGroupID'), ('HH3C-EPON-MIB', 'hh3cOnuSmlkFirstPonStatus'), ('HH3C-EPON-MIB', 'hh3cOnuSmlkSecondPonStatus')) if mibBuilder.loadTexts: hh3cOnuSmlkSwitchoverTrap.setStatus('current') hh3c_epon_stat = mib_identifier((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 9)) hh3c_epon_stat_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 9, 1)) if mibBuilder.loadTexts: hh3cEponStatTable.setStatus('current') hh3c_epon_stat_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 9, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hh3cEponStatEntry.setStatus('current') hh3c_epon_stat_fer = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 9, 1, 1, 1), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cEponStatFER.setStatus('current') hh3c_epon_stat_ber = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 42, 1, 9, 1, 1, 2), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cEponStatBER.setStatus('current') mibBuilder.exportSymbols('HH3C-EPON-MIB', hh3cOnuFirstPonMac=hh3cOnuFirstPonMac, hh3cEponAutoBindStatus=hh3cEponAutoBindStatus, hh3cEponSoftwareErrTrap=hh3cEponSoftwareErrTrap, hh3cOnuSlaMinBandWidthMaxVal=hh3cOnuSlaMinBandWidthMaxVal, hh3cOltPortAlarmDFEEnabled=hh3cOltPortAlarmDFEEnabled, hh3cEponOltDFETrap=hh3cEponOltDFETrap, hh3cOnuBridgeMac=hh3cOnuBridgeMac, hh3cOltDbaCycleLengthMaxVal=hh3cOltDbaCycleLengthMaxVal, hh3cEponOamVendorSpecificRecoverTrap=hh3cEponOamVendorSpecificRecoverTrap, hh3cEponMibObjects=hh3cEponMibObjects, hh3cEponPortAlarmBerRecoverTrap=hh3cEponPortAlarmBerRecoverTrap, hh3cEponAutoUpdateEntry=hh3cEponAutoUpdateEntry, hh3cOnuSmlkFirstPonStatus=hh3cOnuSmlkFirstPonStatus, hh3cEponErrorInfo=hh3cEponErrorInfo, hh3cEponBatchOperationByOLTEntry=hh3cEponBatchOperationByOLTEntry, hh3cOnuDbaReportQueueId=hh3cOnuDbaReportQueueId, hh3cEponEncryptionKeyErrTrap=hh3cEponEncryptionKeyErrTrap, hh3cEponOnuRegExcessTrap=hh3cEponOnuRegExcessTrap, hh3cOnuSmlkGroupID=hh3cOnuSmlkGroupID, hh3cEponSysScalarGroup=hh3cEponSysScalarGroup, hh3cEponPortAlarmFerTrap=hh3cEponPortAlarmFerTrap, hh3cOnuLinkTestDelay=hh3cOnuLinkTestDelay, hh3cEponBatchOperationByOLTTable=hh3cEponBatchOperationByOLTTable, hh3cOnuBindMacAddress=hh3cOnuBindMacAddress, hh3cOnuLinkTestResultRetFrameNum=hh3cOnuLinkTestResultRetFrameNum, hh3cOnuFirmwareUpdateByTypeEntry=hh3cOnuFirmwareUpdateByTypeEntry, hh3cEponAutoUpdateSchedTime=hh3cEponAutoUpdateSchedTime, hh3cOnuManageVlanIntfS=hh3cOnuManageVlanIntfS, hh3cEponOnuAutoBindTrap=hh3cEponOnuAutoBindTrap, hh3cOnuRegType=hh3cOnuRegType, hh3cOnuProtocolTable=hh3cOnuProtocolTable, hh3cOltFirmMinorVersion=hh3cOltFirmMinorVersion, hh3cEponStatTable=hh3cEponStatTable, hh3cEponMulticastVlanId=hh3cEponMulticastVlanId, hh3cOnuChipSetModel=hh3cOnuChipSetModel, hh3cOnuLinkTestResultMinDelay=hh3cOnuLinkTestResultMinDelay, hh3cOnuAccessVlan=hh3cOnuAccessVlan, hh3cEponStatBER=hh3cEponStatBER, hh3cEponLoopbackPortDescr=hh3cEponLoopbackPortDescr, hh3cOltLaserOffTime=hh3cOltLaserOffTime, hh3cEponPortAlarmFerRecoverTrap=hh3cEponPortAlarmFerRecoverTrap, hh3cOnuChipSetVendorId=hh3cOnuChipSetVendorId, hh3cEponOnuLaserFailedTrap=hh3cEponOnuLaserFailedTrap, hh3cEponMulticastStatus=hh3cEponMulticastStatus, hh3cOnuEncryptKey=hh3cOnuEncryptKey, hh3cOltLaserOnTimeMaxVal=hh3cOltLaserOnTimeMaxVal, hh3cOnuIgspFastLeaveSupported=hh3cOnuIgspFastLeaveSupported, hh3cOnuReAuthorize=hh3cOnuReAuthorize, hh3cOltUsingOnuRowStatus=hh3cOltUsingOnuRowStatus, hh3cEponOnuLaserState=hh3cEponOnuLaserState, hh3cOnuDistance=hh3cOnuDistance, hh3cOnuCountTable=hh3cOnuCountTable, hh3cOltLaserOffTimeMinVal=hh3cOltLaserOffTimeMinVal, hh3cOnuRS485SessionAddType=hh3cOnuRS485SessionAddType, hh3cOnuRS485PropertiesEntry=hh3cOnuRS485PropertiesEntry, hh3cEponOnuRegistrationErrTrap=hh3cEponOnuRegistrationErrTrap, hh3cOltPortAlarmBerMaxVal=hh3cOltPortAlarmBerMaxVal, hh3cEponOamDiscoveryTimeout=hh3cEponOamDiscoveryTimeout, hh3cOnuRS485FlowControl=hh3cOnuRS485FlowControl, hh3cOltUsingOnuIfIndex=hh3cOltUsingOnuIfIndex, hh3cEponErrorLLIDFrameTrap=hh3cEponErrorLLIDFrameTrap, hh3cOnuIgmpSnoopingStatus=hh3cOnuIgmpSnoopingStatus, hh3cEponBatchOperationByOLTResult=hh3cEponBatchOperationByOLTResult, hh3cOnuLinkTestFrameNum=hh3cOnuLinkTestFrameNum, hh3cEponTrapPrefix=hh3cEponTrapPrefix, hh3cEponAutoUpdateSchedStatus=hh3cEponAutoUpdateSchedStatus, hh3cEponOamVersion=hh3cEponOamVersion, hh3cOnuIpAddressEntry=hh3cOnuIpAddressEntry, hh3cOltPortAlarmBer=hh3cOltPortAlarmBer, hh3cOnuRS485SessionErrInfo=hh3cOnuRS485SessionErrInfo, hh3cOnuFecStatus=hh3cOnuFecStatus, hh3cEponStatEntry=hh3cEponStatEntry, hh3cOnuWorkMode=hh3cOnuWorkMode, hh3cOnuRS485DataBits=hh3cOnuRS485DataBits, hh3cOltPortAlarmBerThreshold=hh3cOltPortAlarmBerThreshold, hh3cEponSysHasEPONBoard=hh3cEponSysHasEPONBoard, hh3cOltOpticalPowerTx=hh3cOltOpticalPowerTx, hh3cOnuGrantFifoDep=hh3cOnuGrantFifoDep, hh3cOnuQueueMaxBandwidth=hh3cOnuQueueMaxBandwidth, hh3cDot3OamNonThresholdRecoverEvent=hh3cDot3OamNonThresholdRecoverEvent, hh3cOltSysManEntry=hh3cOltSysManEntry, hh3cOltPortAlarmOamDisconnectionEnabled=hh3cOltPortAlarmOamDisconnectionEnabled, hh3cOltPortAlarmFerMaxVal=hh3cOltPortAlarmFerMaxVal, hh3cOnuDbaReportEntry=hh3cOnuDbaReportEntry, hh3cOnuRS485SessionErrInfoTable=hh3cOnuRS485SessionErrInfoTable, hh3cOltDbaUpdateResult=hh3cOltDbaUpdateResult, hh3cOnuLinkTestTable=hh3cOnuLinkTestTable, hh3cEponSlotIndex=hh3cEponSlotIndex, hh3cOnuE1PortsNumber=hh3cOnuE1PortsNumber, hh3cOnuIgmpSnoopingMaxRespT=hh3cOnuIgmpSnoopingMaxRespT, hh3cOnuUpdateByTypeOnuType=hh3cOnuUpdateByTypeOnuType, hh3cEponMsgLoseNumMinVal=hh3cEponMsgLoseNumMinVal, hh3cOnuMulticastFastLeaveEnable=hh3cOnuMulticastFastLeaveEnable, hh3cOnuSlaPriorityClass=hh3cOnuSlaPriorityClass, hh3cOnuSlaMaxBandWidthMaxVal=hh3cOnuSlaMaxBandWidthMaxVal, hh3cOltDbaCycleLengthMinVal=hh3cOltDbaCycleLengthMinVal, hh3cEponLocalStableRecoverTrap=hh3cEponLocalStableRecoverTrap, hh3cOnuRS485PropertiesTable=hh3cOnuRS485PropertiesTable, hh3cOnuSecondPonRegState=hh3cOnuSecondPonRegState, hh3cOnuDownstreamQueueNumber=hh3cOnuDownstreamQueueNumber, hh3cOnuRS485StopBits=hh3cOnuRS485StopBits, hh3cOnuRS485SessionIndex=hh3cOnuRS485SessionIndex, hh3cOltEnableDiscardPacket=hh3cOltEnableDiscardPacket, hh3cOnuSlaMinBandWidthMinVal=hh3cOnuSlaMinBandWidthMinVal, hh3cOnuManageVID=hh3cOnuManageVID, hh3cEponEncryptionNoReplyTimeOut=hh3cEponEncryptionNoReplyTimeOut, hh3cEponOnuSilenceRecoverTrap=hh3cEponOnuSilenceRecoverTrap, hh3cOnuSoftwareVersion=hh3cOnuSoftwareVersion, hh3cOltPortAlarmLocalStableEnabled=hh3cOltPortAlarmLocalStableEnabled, hh3cEponSoftwareErrorCode=hh3cEponSoftwareErrorCode, hh3cOnuRS485SessionRemotePort=hh3cOnuRS485SessionRemotePort, hh3cOltInfoTable=hh3cOltInfoTable, hh3cOltPortAlarmFerThreshold=hh3cOltPortAlarmFerThreshold, hh3cEponSoftwareErrRecoverTrap=hh3cEponSoftwareErrRecoverTrap, hh3cOltPortAlarmFer=hh3cOltPortAlarmFer, hh3cOltMultiCopyBrdCast=hh3cOltMultiCopyBrdCast, hh3cOnuDownStreamShortFrameFirst=hh3cOnuDownStreamShortFrameFirst, hh3cOltMacAddress=hh3cOltMacAddress, hh3cOnuSilentMacAddr=hh3cOnuSilentMacAddr, hh3cOnuPriorityQueueSizeMinVal=hh3cOnuPriorityQueueSizeMinVal, hh3cOltPortAlarmLlidMisMinVal=hh3cOltPortAlarmLlidMisMinVal, hh3cOnuHostType=hh3cOnuHostType, hh3cOnuMacAddrInfoEntry=hh3cOnuMacAddrInfoEntry, hh3cOltPortAlarmThresholdEntry=hh3cOltPortAlarmThresholdEntry, hh3cEponMsgTimeOutMinVal=hh3cEponMsgTimeOutMinVal, hh3cOnuDbaReportQueueSetNumber=hh3cOnuDbaReportQueueSetNumber, hh3cOltSysManTable=hh3cOltSysManTable, hh3cOltSelfTestResult=hh3cOltSelfTestResult, hh3cOnuP2PMaxBandWidth=hh3cOnuP2PMaxBandWidth, hh3cOnuRS485TXOctets=hh3cOnuRS485TXOctets, hh3cOnuSilentTable=hh3cOnuSilentTable, hh3cEponOamDisconnectionTrap=hh3cEponOamDisconnectionTrap, hh3cOnuDhcpsnoopingOption82=hh3cOnuDhcpsnoopingOption82, hh3cEponAutoUpdateSchedType=hh3cEponAutoUpdateSchedType, hh3cOnuUpdateResult=hh3cOnuUpdateResult, hh3cEponAutoUpdateTable=hh3cEponAutoUpdateTable, hh3cOnuMulticastFilterStatus=hh3cOnuMulticastFilterStatus, hh3cOnuIpAddressGateway=hh3cOnuIpAddressGateway, hh3cOnuPhysicalTable=hh3cOnuPhysicalTable, hh3cOnuFirmwareUpdateEntry=hh3cOnuFirmwareUpdateEntry, hh3cOnuRemoteFecStatus=hh3cOnuRemoteFecStatus, hh3cOnuRS485SerialIndex=hh3cOnuRS485SerialIndex, hh3cEponStpPortDescr=hh3cEponStpPortDescr, hh3cOltLaserOnTime=hh3cOltLaserOnTime, hh3cOnuDownStreamBandWidthPolicy=hh3cOnuDownStreamBandWidthPolicy, hh3cEponOuiIndexNextEntry=hh3cEponOuiIndexNextEntry, hh3cEponMonitorCycle=hh3cEponMonitorCycle, hh3cEponLoopbackPortIndex=hh3cEponLoopbackPortIndex, hh3cOnuPhysicalEntry=hh3cOnuPhysicalEntry, hh3cEponMsgLoseNumMaxVal=hh3cEponMsgLoseNumMaxVal, hh3cOltDbaDiscovryFrequency=hh3cOltDbaDiscovryFrequency, hh3cEponOltDFERecoverTrap=hh3cEponOltDFERecoverTrap, hh3cOltPortAlarmVendorSpecificEnabled=hh3cOltPortAlarmVendorSpecificEnabled, hh3cOnuQueueMaxBurstsize=hh3cOnuQueueMaxBurstsize, hh3cOnuMCtrlFastLeaveSupported=hh3cOnuMCtrlFastLeaveSupported, hh3cOnuPriorityQueueBandwidthMaxVal=hh3cOnuPriorityQueueBandwidthMaxVal, hh3cEponOamDisconnectionRecoverTrap=hh3cEponOamDisconnectionRecoverTrap, hh3cOnuDhcpallocate=hh3cOnuDhcpallocate, hh3cOnuBandWidthTable=hh3cOnuBandWidthTable, hh3cEponOuiIndexNextTable=hh3cEponOuiIndexNextTable, hh3cOnuUpdate=hh3cOnuUpdate, hh3cEponAutoUpdateFileName=hh3cEponAutoUpdateFileName, hh3cOltPortAlarmBerMinVal=hh3cOltPortAlarmBerMinVal, hh3cOnuLaserOnTime=hh3cOnuLaserOnTime, hh3cEponBatchOperationBySlotEntry=hh3cEponBatchOperationBySlotEntry, hh3cOltDbaUpdate=hh3cOltDbaUpdate, hh3cOnuP2PHighPriorityFirst=hh3cOnuP2PHighPriorityFirst, hh3cOnuBatteryBackup=hh3cOnuBatteryBackup, hh3cOnuCosToLocalPrecedenceValue=hh3cOnuCosToLocalPrecedenceValue, hh3cOltPortAlarmFerDirect=hh3cOltPortAlarmFerDirect, hh3cOnuQueueDirection=hh3cOnuQueueDirection, hh3cOnuRS485Parity=hh3cOnuRS485Parity, hh3cOnuQueueSize=hh3cOnuQueueSize, hh3cOnuLlid=hh3cOnuLlid, hh3cOnuDot1xPassword=hh3cOnuDot1xPassword, hh3cEponMulticastControlTable=hh3cEponMulticastControlTable, hh3cOnuRS485SessionType=hh3cOnuRS485SessionType, hh3cOnuLinkTestVlanTagID=hh3cOnuLinkTestVlanTagID, hh3cOnuFEPortNumber=hh3cOnuFEPortNumber, hh3cOnuSlaManEntry=hh3cOnuSlaManEntry, hh3cOltDbaVersion=hh3cOltDbaVersion, hh3cEponBatchOperationBySlotTable=hh3cEponBatchOperationBySlotTable, hh3cOnuMacIndex=hh3cOnuMacIndex, hh3cOnuBindMacAddrEntry=hh3cOnuBindMacAddrEntry, hh3cOnuUpdateByTypeRowStatus=hh3cOnuUpdateByTypeRowStatus, hh3cOnuDhcpsnooping=hh3cOnuDhcpsnooping, hh3cOltDbaDiscoveryLength=hh3cOltDbaDiscoveryLength, hh3cOltPortAlarmBerDirect=hh3cOltPortAlarmBerDirect, hh3cOltHardMinorVersion=hh3cOltHardMinorVersion, hh3cOnuInfoTable=hh3cOnuInfoTable, hh3cOnuQueueBandwidthEntry=hh3cOnuQueueBandwidthEntry, hh3cEponOuiRowStatus=hh3cEponOuiRowStatus, hh3cEponOnuRegSilentMac=hh3cEponOnuRegSilentMac, hh3cEponMonitorCycleEnable=hh3cEponMonitorCycleEnable, hh3cOnuHardMinorVersion=hh3cOnuHardMinorVersion, hh3cEponMonitorCycleMaxVal=hh3cEponMonitorCycleMaxVal, hh3cOnuDbaReportStatus=hh3cOnuDbaReportStatus, hh3cEponBatchOperationMan=hh3cEponBatchOperationMan, hh3cOamEventLogType=hh3cOamEventLogType, hh3cEponSysMan=hh3cEponSysMan, hh3cEponOnuPortStpStateTrap=hh3cEponOnuPortStpStateTrap, hh3cOnuSlaMaxBandWidthMinVal=hh3cOnuSlaMaxBandWidthMinVal, hh3cEponDbaUpdateFileName=hh3cEponDbaUpdateFileName, hh3cOnuUpdateByOnuTypeIndex=hh3cOnuUpdateByOnuTypeIndex, hh3cOnuLinkTestResultRetErrFrameNum=hh3cOnuLinkTestResultRetErrFrameNum, hh3cEponBatchOperationBySlotResult=hh3cEponBatchOperationBySlotResult, hh3cEponModeSwitch=hh3cEponModeSwitch, hh3cOnuUpdateByTypeNextIndex=hh3cOnuUpdateByTypeNextIndex, hh3cOnuSmlkFirstPonRole=hh3cOnuSmlkFirstPonRole, hh3cOnuPacketManTable=hh3cOnuPacketManTable, hh3cEponOnuStpPortEntry=hh3cEponOnuStpPortEntry, hh3cOnuQueueScheduler=hh3cOnuQueueScheduler, hh3cOnuSysManTable=hh3cOnuSysManTable, hh3cEponLocalStableTrap=hh3cEponLocalStableTrap, hh3cOnuMacAddress=hh3cOnuMacAddress, hh3cEponOuiIndexNext=hh3cEponOuiIndexNext, hh3cEponBatchOperationByOLT=hh3cEponBatchOperationByOLT, hh3cOnuUpstreamQueueNumber=hh3cOnuUpstreamQueueNumber, hh3cOltPortAlarmThresholdTable=hh3cOltPortAlarmThresholdTable, hh3cOnuStpStatus=hh3cOnuStpStatus, hh3cOnuRS485SessionErrInfoEntry=hh3cOnuRS485SessionErrInfoEntry, hh3cOnuSlaFixedPacketSize=hh3cOnuSlaFixedPacketSize, hh3cOnuCosToLocalPrecedenceTable=hh3cOnuCosToLocalPrecedenceTable, hh3cEponOnuUpdateFileName=hh3cEponOnuUpdateFileName, hh3cOltFirmMajorVersion=hh3cOltFirmMajorVersion, hh3cOltOpticalPowerRx=hh3cOltOpticalPowerRx, hh3cOnuFirmwareVersion=hh3cOnuFirmwareVersion, hh3cOltPortAlarmLlidMisFrames=hh3cOltPortAlarmLlidMisFrames, hh3cOnuChipSetInfoEntry=hh3cOnuChipSetInfoEntry, hh3cEponOnuMan=hh3cEponOnuMan, hh3cOnuUniUpDownTrapStatus=hh3cOnuUniUpDownTrapStatus, hh3cOnuRS485SessionLocalPort=hh3cOnuRS485SessionLocalPort, hh3cEponTrap=hh3cEponTrap, hh3cOnuRS485SessionTable=hh3cOnuRS485SessionTable, hh3cEponOuiEntry=hh3cEponOuiEntry, hh3cEponOperationResult=hh3cEponOperationResult, hh3cEponOnuSilenceTrap=hh3cEponOnuSilenceTrap, hh3cOltSelfTest=hh3cOltSelfTest, hh3cOnuPortBerStatus=hh3cOnuPortBerStatus, hh3cOnuVendorId=hh3cOnuVendorId, hh3cOnuIgmpSnoopingRouterAgingT=hh3cOnuIgmpSnoopingRouterAgingT, hh3cEponSysManEntry=hh3cEponSysManEntry, hh3cEponRemoteStableRecoverTrap=hh3cEponRemoteStableRecoverTrap, hh3cOnuDbaReportTable=hh3cOnuDbaReportTable, hh3cOltDbaManTable=hh3cOltDbaManTable, hh3cOnuSlaDelay=hh3cOnuSlaDelay, hh3cOnuCapabilityTable=hh3cOnuCapabilityTable, hh3cEponOltMan=hh3cEponOltMan, hh3cOnuLinkTestResultMeanDelay=hh3cOnuLinkTestResultMeanDelay, hh3cEponOnuTypeManEntry=hh3cEponOnuTypeManEntry, hh3cOnuSysManEntry=hh3cOnuSysManEntry, hh3cOnuDot1xTable=hh3cOnuDot1xTable, hh3cOnuLinkTestVlanPriority=hh3cOnuLinkTestVlanPriority, hh3cOnuInfoEntry=hh3cOnuInfoEntry) mibBuilder.exportSymbols('HH3C-EPON-MIB', hh3cOnuDbaReportThreshold=hh3cOnuDbaReportThreshold, hh3cEponOnuRegExcessRecoverTrap=hh3cEponOnuRegExcessRecoverTrap, hh3cEponStpPortState=hh3cEponStpPortState, hh3cOnuMaxDownstreamQueuePerPort=hh3cOnuMaxDownstreamQueuePerPort, hh3cOnuEncryptMan=hh3cOnuEncryptMan, hh3cOltLaserOffTimeMaxVal=hh3cOltLaserOffTimeMaxVal, hh3cOnuCosToLocalPrecedenceCosIndex=hh3cOnuCosToLocalPrecedenceCosIndex, hh3cOnuBindType=hh3cOnuBindType, hh3cOnuLinkTestFrameNumMinVal=hh3cOnuLinkTestFrameNumMinVal, hh3cEponOltSoftwareErrAlmEnable=hh3cEponOltSoftwareErrAlmEnable, hh3cOnuPppoe=hh3cOnuPppoe, hh3cOnuIpAddressTable=hh3cOnuIpAddressTable, hh3cOnuSlaMinBandWidth=hh3cOnuSlaMinBandWidth, hh3cOnuOutDroppedFrames=hh3cOnuOutDroppedFrames, hh3cOltMaxRtt=hh3cOltMaxRtt, hh3cOnuPriorityQueueBurstsizeMinVal=hh3cOnuPriorityQueueBurstsizeMinVal, hh3cEponSysManTable=hh3cEponSysManTable, hh3cOnuFirstPonRegState=hh3cOnuFirstPonRegState, hh3cOnuIgmpSnoopingAggLeaveS=hh3cOnuIgmpSnoopingAggLeaveS, hh3cOnuRS485RXOctets=hh3cOnuRS485RXOctets, hh3cOnuDownStreamMaxBandWidth=hh3cOnuDownStreamMaxBandWidth, hh3cOnuFirmwareUpdateByTypeTable=hh3cOnuFirmwareUpdateByTypeTable, hh3cOnuMulticastControlMode=hh3cOnuMulticastControlMode, hh3cOnuP2PBandWidthPolicy=hh3cOnuP2PBandWidthPolicy, hh3cOnuIpAddressMask=hh3cOnuIpAddressMask, hh3cEponPortLoopBackAlmEnable=hh3cEponPortLoopBackAlmEnable, hh3cOnuPriorityQueueTable=hh3cOnuPriorityQueueTable, hh3cOnuRS485RXErrOctets=hh3cOnuRS485RXErrOctets, hh3cOnuRS485SessionRemoteIP=hh3cOnuRS485SessionRemoteIP, hh3cEponLoopBackEnableRecoverTrap=hh3cEponLoopBackEnableRecoverTrap, hh3cEponOnuTypeIndex=hh3cEponOnuTypeIndex, hh3cOnuQueueId=hh3cOnuQueueId, hh3cOltDbaDiscoveryLengthMinVal=hh3cOltDbaDiscoveryLengthMinVal, hh3cOnuRS485ResetStatistics=hh3cOnuRS485ResetStatistics, hh3cEponOnuPowerOffTrap=hh3cEponOnuPowerOffTrap, hh3cOnuLinkTestFrameNumMaxVal=hh3cOnuLinkTestFrameNumMaxVal, hh3cOnuSlaManTable=hh3cOnuSlaManTable, hh3cOnuChipSetRevision=hh3cOnuChipSetRevision, hh3cEponOamVendorSpecificTrap=hh3cEponOamVendorSpecificTrap, hh3cOnuRS485TXErrOctets=hh3cOnuRS485TXErrOctets, hh3cEponRemoteStableTrap=hh3cEponRemoteStableTrap, hh3cOnuP2PMaxBurstSize=hh3cOnuP2PMaxBurstSize, hh3cOltDbaCycleLength=hh3cOltDbaCycleLength, hh3cOnuRS485SessionNextIndex=hh3cOnuRS485SessionNextIndex, hh3cOnuSlaFixedBandWidth=hh3cOnuSlaFixedBandWidth, hh3cOnuSecondPonMac=hh3cOnuSecondPonMac, hh3cOltDbaDiscoveryLengthMaxVal=hh3cOltDbaDiscoveryLengthMaxVal, hh3cOltAgcCdrTime=hh3cOltAgcCdrTime, hh3cEponOnuStpPortTable=hh3cEponOnuStpPortTable, hh3cOnuMaxUpstreamQueuePerPort=hh3cOnuMaxUpstreamQueuePerPort, hh3cEponMsgTimeOutMaxVal=hh3cEponMsgTimeOutMaxVal, hh3cOnuSmlkSwitchoverTrap=hh3cOnuSmlkSwitchoverTrap, hh3cEponOuiIndex=hh3cEponOuiIndex, hh3cEponBatchOperationBySlotIndex=hh3cEponBatchOperationBySlotIndex, hh3cOltWorkMode=hh3cOltWorkMode, hh3cOltPortAlarmEncryptionKeyEnabled=hh3cOltPortAlarmEncryptionKeyEnabled, hh3cOltUsingOnuNum=hh3cOltUsingOnuNum, hh3cEponOnuScalarGroup=hh3cEponOnuScalarGroup, hh3cEponPortAlarmBerTrap=hh3cEponPortAlarmBerTrap, hh3cOnuQueueBandwidthTable=hh3cOnuQueueBandwidthTable, hh3cOnuPriorityQueueBurstsizeMaxVal=hh3cOnuPriorityQueueBurstsizeMaxVal, hh3cEponBatchOperationByOLTType=hh3cEponBatchOperationByOLTType, hh3cOnuMcastCtrlHostAgingTime=hh3cOnuMcastCtrlHostAgingTime, hh3cOnuDot1xEntry=hh3cOnuDot1xEntry, hh3cOnuEEPROMVersion=hh3cOnuEEPROMVersion, hh3cOnuSilentTime=hh3cOnuSilentTime, hh3cOnuLaserOffTime=hh3cOnuLaserOffTime, hh3cOltHardMajorVersion=hh3cOltHardMajorVersion, hh3cOltInfoEntry=hh3cOltInfoEntry, hh3cEponStatFER=hh3cEponStatFER, hh3cEponAutoUpdateRealTimeStatus=hh3cEponAutoUpdateRealTimeStatus, hh3cOltAgcLockTime=hh3cOltAgcLockTime, hh3cOltDbaEnabledType=hh3cOltDbaEnabledType, hh3cOnuMacAddrInfoTable=hh3cOnuMacAddrInfoTable, hh3cOltDbaManEntry=hh3cOltDbaManEntry, hh3cOnuIgmpSnoopingHostAgingT=hh3cOnuIgmpSnoopingHostAgingT, hh3cOnuPriorityQueueEntry=hh3cOnuPriorityQueueEntry, hh3cOnuServiceSupported=hh3cOnuServiceSupported, hh3cOnuP2PShortFrameFirst=hh3cOnuP2PShortFrameFirst, hh3cEponBatchOperationBySlot=hh3cEponBatchOperationBySlot, hh3cEponAutomaticMode=hh3cEponAutomaticMode, hh3cOnuPriorityTrust=hh3cOnuPriorityTrust, hh3cOnuCosToLocalPrecedenceEntry=hh3cOnuCosToLocalPrecedenceEntry, hh3cEponOltSwitchoverTrap=hh3cEponOltSwitchoverTrap, hh3cOnuProtocolEntry=hh3cOnuProtocolEntry, hh3cOnuSmlkEntry=hh3cOnuSmlkEntry, hh3cEponStpPortIndex=hh3cEponStpPortIndex, hh3cOnuLinkTestFrameSize=hh3cOnuLinkTestFrameSize, hh3cOnuBandWidthEntry=hh3cOnuBandWidthEntry, hh3cOltPortAlarmFerMinVal=hh3cOltPortAlarmFerMinVal, hh3cEponMonitorCycleMinVal=hh3cEponMonitorCycleMinVal, hh3cOnuSmlkSecondPonStatus=hh3cOnuSmlkSecondPonStatus, hh3cOltPortAlarmFerEnabled=hh3cOltPortAlarmFerEnabled, hh3cOnuSmlkTable=hh3cOnuSmlkTable, hh3cOnuRS485SessionSummaryTable=hh3cOnuRS485SessionSummaryTable, hh3cOnuQueuePolicyStatus=hh3cOnuQueuePolicyStatus, hh3cOnuSlaMaxBandWidth=hh3cOnuSlaMaxBandWidth, hh3cOnuRS485SessionMaxNum=hh3cOnuRS485SessionMaxNum, hh3cEponFileName=hh3cEponFileName, hh3cOnuRS485SessionEntry=hh3cOnuRS485SessionEntry, hh3cOnuRtt=hh3cOnuRtt, hh3cOltUsingOnuEntry=hh3cOltUsingOnuEntry, hh3cEponOnuRegErrorMacAddr=hh3cEponOnuRegErrorMacAddr, hh3cEponStat=hh3cEponStat, hh3cEponEncryptionUpdateTime=hh3cEponEncryptionUpdateTime, hh3cEponOnuTypeDescr=hh3cEponOnuTypeDescr, hh3cOnuUniMacType=hh3cOnuUniMacType, hh3cOnuCapabilityEntry=hh3cOnuCapabilityEntry, hh3cEponMulticastControlEntry=hh3cEponMulticastControlEntry, hh3cOnuSmlkSecondPonRole=hh3cOnuSmlkSecondPonRole, hh3cEponBatchOperationBySlotType=hh3cEponBatchOperationBySlotType, hh3cOnuInCRCErrPkts=hh3cOnuInCRCErrPkts, hh3cOnuSilentEntry=hh3cOnuSilentEntry, hh3cEponMsgTimeOut=hh3cEponMsgTimeOut, hh3cOnuDot1xAccount=hh3cOnuDot1xAccount, hh3cOnuBindMacAddrTable=hh3cOnuBindMacAddrTable, hh3cEponOnuRegistrationErrRecoverTrap=hh3cEponOnuRegistrationErrRecoverTrap, hh3cOltPortAlarmRegExcessEnabled=hh3cOltPortAlarmRegExcessEnabled, hh3cEponOuiValue=hh3cEponOuiValue, hh3cOnuCountEntry=hh3cOnuCountEntry, hh3cOltUsingOnuTable=hh3cOltUsingOnuTable, hh3cOnuDownStreamMaxBurstSize=hh3cOnuDownStreamMaxBurstSize, hh3cOnuIpAddress=hh3cOnuIpAddress, hh3cOnuPortIsolateEnable=hh3cOnuPortIsolateEnable, hh3cOnuHardMajorVersion=hh3cOnuHardMajorVersion, hh3cOltPortAlarmLlidMismatchThreshold=hh3cOltPortAlarmLlidMismatchThreshold, hh3cOltLaserOnTimeMinVal=hh3cOltLaserOnTimeMinVal, hh3cOnuLinkTestVlanTag=hh3cOnuLinkTestVlanTag, hh3cOnuChipSetInfoTable=hh3cOnuChipSetInfoTable, hh3cOnuGEPortNumber=hh3cOnuGEPortNumber, hh3cOnuMacAddrFlag=hh3cOnuMacAddrFlag, hh3cDot3OamThresholdRecoverEvent=hh3cDot3OamThresholdRecoverEvent, hh3cEponOnuUpdateResultTrap=hh3cEponOnuUpdateResultTrap, hh3cOnuLinkTestEntry=hh3cOnuLinkTestEntry, hh3cOnuLinkTestResultSentFrameNum=hh3cOnuLinkTestResultSentFrameNum, hh3cEponOuiTable=hh3cEponOuiTable, hh3cOnuRS485BaudRate=hh3cOnuRS485BaudRate, hh3cOnuPriorityQueueBandwidthMinVal=hh3cOnuPriorityQueueBandwidthMinVal, hh3cOnuPOTSPortNumber=hh3cOnuPOTSPortNumber, hh3cOnuIgmpSnoopingAggReportS=hh3cOnuIgmpSnoopingAggReportS, hh3cOltPortAlarmLlidMismatchEnabled=hh3cOltPortAlarmLlidMismatchEnabled, hh3cOnuSlaBandWidthStepVal=hh3cOnuSlaBandWidthStepVal, hh3cEponMulticastAddressList=hh3cEponMulticastAddressList, hh3cOamVendorSpecificAlarmCode=hh3cOamVendorSpecificAlarmCode, hh3cOnuRS485SessionSummaryEntry=hh3cOnuRS485SessionSummaryEntry, hh3cEponAutoAuthorize=hh3cEponAutoAuthorize, hh3cOnuReset=hh3cOnuReset, hh3cEponOnuTypeManTable=hh3cEponOnuTypeManTable, hh3cOltPortAlarmRegistrationEnabled=hh3cOltPortAlarmRegistrationEnabled, hh3cOnuUpdateByTypeFileName=hh3cOnuUpdateByTypeFileName, hh3cEponErrorLLIDFrameRecoverTrap=hh3cEponErrorLLIDFrameRecoverTrap, hh3cEponLoopBackEnableTrap=hh3cEponLoopBackEnableTrap, hh3cOltPortAlarmRemoteStableEnabled=hh3cOltPortAlarmRemoteStableEnabled, hh3cOnuOpticalPowerReceivedByOlt=hh3cOnuOpticalPowerReceivedByOlt, hh3cOnuPriorityQueueSizeMaxVal=hh3cOnuPriorityQueueSizeMaxVal, hh3cEponMsgLoseNum=hh3cEponMsgLoseNum, hh3cOnuChipSetDesignDate=hh3cOnuChipSetDesignDate, hh3cOnuRS485SessionRowStatus=hh3cOnuRS485SessionRowStatus, hh3cOltPortAlarmLlidMisMaxVal=hh3cOltPortAlarmLlidMisMaxVal, hh3cOltDbaDiscovryFrequencyMinVal=hh3cOltDbaDiscovryFrequencyMinVal, hh3cOnuLinkTestResultMaxDelay=hh3cOnuLinkTestResultMaxDelay, hh3cOnuPacketManEntry=hh3cOnuPacketManEntry, hh3cOnuPCBVersion=hh3cOnuPCBVersion, PYSNMP_MODULE_ID=hh3cEponMibObjects, hh3cOltPortAlarmBerEnabled=hh3cOltPortAlarmBerEnabled, hh3cOnuUpdateFileName=hh3cOnuUpdateFileName, hh3cEponEncryptionKeyErrRecoverTrap=hh3cEponEncryptionKeyErrRecoverTrap, hh3cOamEventLogLocation=hh3cOamEventLogLocation, hh3cOnuDownStreamHighPriorityFirst=hh3cOnuDownStreamHighPriorityFirst, hh3cOltDbaDiscovryFrequencyMaxVal=hh3cOltDbaDiscovryFrequencyMaxVal, hh3cOnuFirmwareUpdateTable=hh3cOnuFirmwareUpdateTable)
# # PySNMP MIB module COMMON-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/COMMON-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:26:30 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueRangeConstraint, ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") iso, ModuleIdentity, Unsigned32, MibScalar, MibTable, MibTableRow, MibTableColumn, Integer32, enterprises, Bits, Counter32, Gauge32, Counter64, TimeTicks, IpAddress, ObjectIdentity, MibIdentifier, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "iso", "ModuleIdentity", "Unsigned32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Integer32", "enterprises", "Bits", "Counter32", "Gauge32", "Counter64", "TimeTicks", "IpAddress", "ObjectIdentity", "MibIdentifier", "NotificationType") DisplayString, PhysAddress, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "PhysAddress", "TextualConvention") marconi = MibIdentifier((1, 3, 6, 1, 4, 1, 326)) systems = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2)) external = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20)) dlink = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1)) dlinkcommon = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 1)) golf = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2)) golfproducts = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 1)) golfcommon = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2)) marconi_mgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2)).setLabel("marconi-mgmt") agentConfigInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1)) agentBasicInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 1)) agentRuntimeSwVersion = MibScalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 12))).setMaxAccess("readonly") if mibBuilder.loadTexts: agentRuntimeSwVersion.setStatus('mandatory') if mibBuilder.loadTexts: agentRuntimeSwVersion.setDescription("This is a textual description of the runtime software version and revision. If the version number is one and revision number is zero agentRuntimeSwVersion would be 'Ver. 1.0'") agentPromFwVersion = MibScalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 12))).setMaxAccess("readonly") if mibBuilder.loadTexts: agentPromFwVersion.setStatus('mandatory') if mibBuilder.loadTexts: agentPromFwVersion.setDescription("This is a textual description of the agent PROM firmware version and revision. If the version number is one and revision number is zero agentPromFwVersion would be 'Ver. 1.0'") agentHwRevision = MibScalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: agentHwRevision.setStatus('mandatory') if mibBuilder.loadTexts: agentHwRevision.setDescription('This is a integer number of the hardware revision.') agentMgmtProtocolCapability = MibScalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("snmp-ip", 2), ("snmp-ipx", 3), ("snmp-ip-ipx", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: agentMgmtProtocolCapability.setStatus('mandatory') if mibBuilder.loadTexts: agentMgmtProtocolCapability.setDescription('The network management protocol(s) supported by this agent.') agentMibCapabilityTable = MibTable((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 1, 5), ) if mibBuilder.loadTexts: agentMibCapabilityTable.setStatus('mandatory') if mibBuilder.loadTexts: agentMibCapabilityTable.setDescription('A list of MIB capability entries supported by this agent.') agentMibCapabilityEntry = MibTableRow((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 1, 5, 1), ).setIndexNames((0, "COMMON-MIB", "agentMibCapabilityIndex")) if mibBuilder.loadTexts: agentMibCapabilityEntry.setStatus('mandatory') if mibBuilder.loadTexts: agentMibCapabilityEntry.setDescription('A MIB capability entry contains objects describing a particular MIB supported by this agent.') agentMibCapabilityIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 1, 5, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: agentMibCapabilityIndex.setStatus('mandatory') if mibBuilder.loadTexts: agentMibCapabilityIndex.setDescription('A list of agentMibCapabilityDescr entries.') agentMibCapabilityDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 1, 5, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: agentMibCapabilityDescr.setStatus('mandatory') if mibBuilder.loadTexts: agentMibCapabilityDescr.setDescription('The name of the MIB supported by the agent.') agentMibCapabilityVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 1, 5, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: agentMibCapabilityVersion.setStatus('mandatory') if mibBuilder.loadTexts: agentMibCapabilityVersion.setDescription('The version of the MIB specified in this entry.') agentMibCapabilityType = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 1, 5, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("standard", 2), ("proprietary", 3), ("experiment", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: agentMibCapabilityType.setStatus('mandatory') if mibBuilder.loadTexts: agentMibCapabilityType.setDescription('The type of the MIB specified in this entry.') agentBasicConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 2)) agentSwUpdateMode = MibScalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("network-load", 2), ("out-of-band-load", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: agentSwUpdateMode.setStatus('mandatory') if mibBuilder.loadTexts: agentSwUpdateMode.setDescription('The download media used by the system to download the runtime software.') agentSwUpdateCtrl = MibScalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 2, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: agentSwUpdateCtrl.setStatus('mandatory') if mibBuilder.loadTexts: agentSwUpdateCtrl.setDescription('Current status of configuration software download control. The setting is effective the next time you reset or power on the hub.') agentBootFile = MibScalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 2, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readwrite") if mibBuilder.loadTexts: agentBootFile.setStatus('mandatory') if mibBuilder.loadTexts: agentBootFile.setDescription('The name of the configuration file to be downloaded from the TFTP server when software update is enabled.') agentFirmwareUpdateCtrl = MibScalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 2, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: agentFirmwareUpdateCtrl.setStatus('mandatory') if mibBuilder.loadTexts: agentFirmwareUpdateCtrl.setDescription('Current status of firmware software download control. The setting is effective the next time you reset or power on the hub.') agentFirmwareFile = MibScalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 2, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readwrite") if mibBuilder.loadTexts: agentFirmwareFile.setStatus('mandatory') if mibBuilder.loadTexts: agentFirmwareFile.setDescription('The name of the firmware file to be downloaded from the TFTP server when software update is enabled.') agentSystemReset = MibScalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 2, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("cold-start", 2), ("warm-start", 3), ("no-reset", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: agentSystemReset.setStatus('mandatory') if mibBuilder.loadTexts: agentSystemReset.setDescription('This object indicates the agent system reset state. Setting this object to no-reset(4) has no effect. Setting this object to cold-start(2) or warm-start(3) will reset the agent. The agent always returns no-reset(4) when this object is read.') agentRs232PortConfig = MibScalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 2, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("console", 2), ("out-of-band", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: agentRs232PortConfig.setStatus('mandatory') if mibBuilder.loadTexts: agentRs232PortConfig.setDescription('This object indicates the RS-232C mode while device restart.') agentOutOfBandBaudRateConfig = MibScalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 2, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("baudRate-2400", 2), ("baudRate-9600", 3), ("baudRate-19200", 4), ("baudRate-38400", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: agentOutOfBandBaudRateConfig.setStatus('mandatory') if mibBuilder.loadTexts: agentOutOfBandBaudRateConfig.setDescription('This object indicates the out_of_band baud rate while device restart.') agentIpProtoConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3)) agentIpNumOfIf = MibScalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: agentIpNumOfIf.setStatus('mandatory') if mibBuilder.loadTexts: agentIpNumOfIf.setDescription('The total number of IP interfaces supported by this agent.') agentIpIfTable = MibTable((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 2), ) if mibBuilder.loadTexts: agentIpIfTable.setStatus('mandatory') if mibBuilder.loadTexts: agentIpIfTable.setDescription('A list of IP interface entries supported by the agent.') agentIpIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 2, 1), ).setIndexNames((0, "COMMON-MIB", "agentIpIfIndex")) if mibBuilder.loadTexts: agentIpIfEntry.setStatus('mandatory') if mibBuilder.loadTexts: agentIpIfEntry.setDescription('An agentIPIfEntry contains information about a particular IP interface.') agentIpIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: agentIpIfIndex.setStatus('mandatory') if mibBuilder.loadTexts: agentIpIfIndex.setDescription('This object uniquely identifies the IP interface number in the agentIpIfTable. This value should never greater than agentIpNumOfIf') agentIpIfAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 2, 1, 2), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: agentIpIfAddress.setStatus('mandatory') if mibBuilder.loadTexts: agentIpIfAddress.setDescription('The IP address of the interface.') agentIpIfNetMask = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 2, 1, 3), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: agentIpIfNetMask.setStatus('mandatory') if mibBuilder.loadTexts: agentIpIfNetMask.setDescription('The IP net mask for this interface.') agentIpIfDefaultRouter = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 2, 1, 4), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: agentIpIfDefaultRouter.setStatus('mandatory') if mibBuilder.loadTexts: agentIpIfDefaultRouter.setDescription('The default gateway for this IP interface.') agentIpIfMacAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 2, 1, 5), PhysAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: agentIpIfMacAddr.setStatus('mandatory') if mibBuilder.loadTexts: agentIpIfMacAddr.setDescription('The MAC address of this IP interface. For interfaces which do not have such an address. (e.g., a serial line), this object should contain an octet string of zero length.') agentIpIfType = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 6, 28))).clone(namedValues=NamedValues(("other", 1), ("ethernet-csmacd", 6), ("slip", 28)))).setMaxAccess("readonly") if mibBuilder.loadTexts: agentIpIfType.setStatus('mandatory') if mibBuilder.loadTexts: agentIpIfType.setDescription('The physical layer interface of the IP interface.') agentIpBootServerAddr = MibScalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 3), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: agentIpBootServerAddr.setStatus('mandatory') if mibBuilder.loadTexts: agentIpBootServerAddr.setDescription('The IP Address of Boot Server.') agentIpGetIpFromBootpServer = MibScalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("bootp", 3), ("dhcp", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: agentIpGetIpFromBootpServer.setStatus('mandatory') if mibBuilder.loadTexts: agentIpGetIpFromBootpServer.setDescription('This object indicates whether the agent get its system IP address from Bootp/DHCP server at start up.') agentIpUnauthAddr = MibScalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 5), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: agentIpUnauthAddr.setStatus('mandatory') if mibBuilder.loadTexts: agentIpUnauthAddr.setDescription('The IP address of an unauthorized SNMP packet.') agentIpUnauthComm = MibScalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 20))).setMaxAccess("readonly") if mibBuilder.loadTexts: agentIpUnauthComm.setStatus('mandatory') if mibBuilder.loadTexts: agentIpUnauthComm.setDescription('The community string of an unauthorized SNMP packet.') agentIpLastBootServerAddr = MibScalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 7), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: agentIpLastBootServerAddr.setStatus('mandatory') if mibBuilder.loadTexts: agentIpLastBootServerAddr.setDescription('The last IP address used as Boot server IP address.') agentIpLastIpAddr = MibScalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 8), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: agentIpLastIpAddr.setStatus('mandatory') if mibBuilder.loadTexts: agentIpLastIpAddr.setDescription('The last IP address used as the agent system IP address.') agentIpTrapManagerTable = MibTable((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 9), ) if mibBuilder.loadTexts: agentIpTrapManagerTable.setStatus('mandatory') if mibBuilder.loadTexts: agentIpTrapManagerTable.setDescription('A list of trap manager entries to which to send SNMP traps .') agentIpTrapManagerEntry = MibTableRow((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 9, 1), ).setIndexNames((0, "COMMON-MIB", "agentIpTrapManagerIpAddr")) if mibBuilder.loadTexts: agentIpTrapManagerEntry.setStatus('mandatory') if mibBuilder.loadTexts: agentIpTrapManagerEntry.setDescription('This entry contains the particular trap manager settings.') agentIpTrapManagerIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 9, 1, 1), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: agentIpTrapManagerIpAddr.setStatus('mandatory') if mibBuilder.loadTexts: agentIpTrapManagerIpAddr.setDescription('The IP address to receive SNMP traps from this device.') agentIpTrapManagerComm = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 9, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 20))).setMaxAccess("readwrite") if mibBuilder.loadTexts: agentIpTrapManagerComm.setStatus('mandatory') if mibBuilder.loadTexts: agentIpTrapManagerComm.setDescription('The community string of the SNMP trap packet sent to the trap manager.') agentIpTrapManagerStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 9, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: agentIpTrapManagerStatus.setStatus('mandatory') if mibBuilder.loadTexts: agentIpTrapManagerStatus.setDescription('This object indicates whether or not the trap should be send to this trap manager.') mibBuilder.exportSymbols("COMMON-MIB", agentIpIfNetMask=agentIpIfNetMask, marconi_mgmt=marconi_mgmt, agentIpIfTable=agentIpIfTable, agentMibCapabilityEntry=agentMibCapabilityEntry, systems=systems, golfcommon=golfcommon, agentIpTrapManagerIpAddr=agentIpTrapManagerIpAddr, external=external, agentMibCapabilityIndex=agentMibCapabilityIndex, agentIpGetIpFromBootpServer=agentIpGetIpFromBootpServer, agentConfigInfo=agentConfigInfo, agentBasicInfo=agentBasicInfo, agentIpTrapManagerComm=agentIpTrapManagerComm, agentMibCapabilityType=agentMibCapabilityType, golf=golf, agentMibCapabilityDescr=agentMibCapabilityDescr, agentBootFile=agentBootFile, agentSwUpdateMode=agentSwUpdateMode, agentSystemReset=agentSystemReset, agentIpBootServerAddr=agentIpBootServerAddr, agentIpIfEntry=agentIpIfEntry, agentIpUnauthAddr=agentIpUnauthAddr, agentFirmwareUpdateCtrl=agentFirmwareUpdateCtrl, dlinkcommon=dlinkcommon, agentIpTrapManagerTable=agentIpTrapManagerTable, golfproducts=golfproducts, agentRuntimeSwVersion=agentRuntimeSwVersion, agentIpIfIndex=agentIpIfIndex, agentFirmwareFile=agentFirmwareFile, agentIpUnauthComm=agentIpUnauthComm, agentMgmtProtocolCapability=agentMgmtProtocolCapability, agentMibCapabilityTable=agentMibCapabilityTable, agentIpIfType=agentIpIfType, agentIpNumOfIf=agentIpNumOfIf, agentMibCapabilityVersion=agentMibCapabilityVersion, marconi=marconi, agentIpLastBootServerAddr=agentIpLastBootServerAddr, agentIpIfMacAddr=agentIpIfMacAddr, agentIpProtoConfig=agentIpProtoConfig, agentIpTrapManagerEntry=agentIpTrapManagerEntry, agentIpIfDefaultRouter=agentIpIfDefaultRouter, agentIpTrapManagerStatus=agentIpTrapManagerStatus, agentBasicConfig=agentBasicConfig, agentOutOfBandBaudRateConfig=agentOutOfBandBaudRateConfig, agentHwRevision=agentHwRevision, dlink=dlink, agentIpLastIpAddr=agentIpLastIpAddr, agentIpIfAddress=agentIpIfAddress, agentSwUpdateCtrl=agentSwUpdateCtrl, agentRs232PortConfig=agentRs232PortConfig, agentPromFwVersion=agentPromFwVersion)
(octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_range_constraint, constraints_union, single_value_constraint, constraints_intersection, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'ConstraintsUnion', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (iso, module_identity, unsigned32, mib_scalar, mib_table, mib_table_row, mib_table_column, integer32, enterprises, bits, counter32, gauge32, counter64, time_ticks, ip_address, object_identity, mib_identifier, notification_type) = mibBuilder.importSymbols('SNMPv2-SMI', 'iso', 'ModuleIdentity', 'Unsigned32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Integer32', 'enterprises', 'Bits', 'Counter32', 'Gauge32', 'Counter64', 'TimeTicks', 'IpAddress', 'ObjectIdentity', 'MibIdentifier', 'NotificationType') (display_string, phys_address, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'PhysAddress', 'TextualConvention') marconi = mib_identifier((1, 3, 6, 1, 4, 1, 326)) systems = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2)) external = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2, 20)) dlink = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1)) dlinkcommon = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 1)) golf = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2)) golfproducts = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 1)) golfcommon = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2)) marconi_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2)).setLabel('marconi-mgmt') agent_config_info = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1)) agent_basic_info = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 1)) agent_runtime_sw_version = mib_scalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 1, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 12))).setMaxAccess('readonly') if mibBuilder.loadTexts: agentRuntimeSwVersion.setStatus('mandatory') if mibBuilder.loadTexts: agentRuntimeSwVersion.setDescription("This is a textual description of the runtime software version and revision. If the version number is one and revision number is zero agentRuntimeSwVersion would be 'Ver. 1.0'") agent_prom_fw_version = mib_scalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 12))).setMaxAccess('readonly') if mibBuilder.loadTexts: agentPromFwVersion.setStatus('mandatory') if mibBuilder.loadTexts: agentPromFwVersion.setDescription("This is a textual description of the agent PROM firmware version and revision. If the version number is one and revision number is zero agentPromFwVersion would be 'Ver. 1.0'") agent_hw_revision = mib_scalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: agentHwRevision.setStatus('mandatory') if mibBuilder.loadTexts: agentHwRevision.setDescription('This is a integer number of the hardware revision.') agent_mgmt_protocol_capability = mib_scalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('snmp-ip', 2), ('snmp-ipx', 3), ('snmp-ip-ipx', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: agentMgmtProtocolCapability.setStatus('mandatory') if mibBuilder.loadTexts: agentMgmtProtocolCapability.setDescription('The network management protocol(s) supported by this agent.') agent_mib_capability_table = mib_table((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 1, 5)) if mibBuilder.loadTexts: agentMibCapabilityTable.setStatus('mandatory') if mibBuilder.loadTexts: agentMibCapabilityTable.setDescription('A list of MIB capability entries supported by this agent.') agent_mib_capability_entry = mib_table_row((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 1, 5, 1)).setIndexNames((0, 'COMMON-MIB', 'agentMibCapabilityIndex')) if mibBuilder.loadTexts: agentMibCapabilityEntry.setStatus('mandatory') if mibBuilder.loadTexts: agentMibCapabilityEntry.setDescription('A MIB capability entry contains objects describing a particular MIB supported by this agent.') agent_mib_capability_index = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 1, 5, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: agentMibCapabilityIndex.setStatus('mandatory') if mibBuilder.loadTexts: agentMibCapabilityIndex.setDescription('A list of agentMibCapabilityDescr entries.') agent_mib_capability_descr = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 1, 5, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: agentMibCapabilityDescr.setStatus('mandatory') if mibBuilder.loadTexts: agentMibCapabilityDescr.setDescription('The name of the MIB supported by the agent.') agent_mib_capability_version = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 1, 5, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: agentMibCapabilityVersion.setStatus('mandatory') if mibBuilder.loadTexts: agentMibCapabilityVersion.setDescription('The version of the MIB specified in this entry.') agent_mib_capability_type = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 1, 5, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('standard', 2), ('proprietary', 3), ('experiment', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: agentMibCapabilityType.setStatus('mandatory') if mibBuilder.loadTexts: agentMibCapabilityType.setDescription('The type of the MIB specified in this entry.') agent_basic_config = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 2)) agent_sw_update_mode = mib_scalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 2, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('network-load', 2), ('out-of-band-load', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: agentSwUpdateMode.setStatus('mandatory') if mibBuilder.loadTexts: agentSwUpdateMode.setDescription('The download media used by the system to download the runtime software.') agent_sw_update_ctrl = mib_scalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 2, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: agentSwUpdateCtrl.setStatus('mandatory') if mibBuilder.loadTexts: agentSwUpdateCtrl.setDescription('Current status of configuration software download control. The setting is effective the next time you reset or power on the hub.') agent_boot_file = mib_scalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 2, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readwrite') if mibBuilder.loadTexts: agentBootFile.setStatus('mandatory') if mibBuilder.loadTexts: agentBootFile.setDescription('The name of the configuration file to be downloaded from the TFTP server when software update is enabled.') agent_firmware_update_ctrl = mib_scalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 2, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: agentFirmwareUpdateCtrl.setStatus('mandatory') if mibBuilder.loadTexts: agentFirmwareUpdateCtrl.setDescription('Current status of firmware software download control. The setting is effective the next time you reset or power on the hub.') agent_firmware_file = mib_scalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 2, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readwrite') if mibBuilder.loadTexts: agentFirmwareFile.setStatus('mandatory') if mibBuilder.loadTexts: agentFirmwareFile.setDescription('The name of the firmware file to be downloaded from the TFTP server when software update is enabled.') agent_system_reset = mib_scalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 2, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('cold-start', 2), ('warm-start', 3), ('no-reset', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: agentSystemReset.setStatus('mandatory') if mibBuilder.loadTexts: agentSystemReset.setDescription('This object indicates the agent system reset state. Setting this object to no-reset(4) has no effect. Setting this object to cold-start(2) or warm-start(3) will reset the agent. The agent always returns no-reset(4) when this object is read.') agent_rs232_port_config = mib_scalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 2, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('console', 2), ('out-of-band', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: agentRs232PortConfig.setStatus('mandatory') if mibBuilder.loadTexts: agentRs232PortConfig.setDescription('This object indicates the RS-232C mode while device restart.') agent_out_of_band_baud_rate_config = mib_scalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 2, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('baudRate-2400', 2), ('baudRate-9600', 3), ('baudRate-19200', 4), ('baudRate-38400', 5)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: agentOutOfBandBaudRateConfig.setStatus('mandatory') if mibBuilder.loadTexts: agentOutOfBandBaudRateConfig.setDescription('This object indicates the out_of_band baud rate while device restart.') agent_ip_proto_config = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3)) agent_ip_num_of_if = mib_scalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: agentIpNumOfIf.setStatus('mandatory') if mibBuilder.loadTexts: agentIpNumOfIf.setDescription('The total number of IP interfaces supported by this agent.') agent_ip_if_table = mib_table((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 2)) if mibBuilder.loadTexts: agentIpIfTable.setStatus('mandatory') if mibBuilder.loadTexts: agentIpIfTable.setDescription('A list of IP interface entries supported by the agent.') agent_ip_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 2, 1)).setIndexNames((0, 'COMMON-MIB', 'agentIpIfIndex')) if mibBuilder.loadTexts: agentIpIfEntry.setStatus('mandatory') if mibBuilder.loadTexts: agentIpIfEntry.setDescription('An agentIPIfEntry contains information about a particular IP interface.') agent_ip_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: agentIpIfIndex.setStatus('mandatory') if mibBuilder.loadTexts: agentIpIfIndex.setDescription('This object uniquely identifies the IP interface number in the agentIpIfTable. This value should never greater than agentIpNumOfIf') agent_ip_if_address = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 2, 1, 2), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: agentIpIfAddress.setStatus('mandatory') if mibBuilder.loadTexts: agentIpIfAddress.setDescription('The IP address of the interface.') agent_ip_if_net_mask = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 2, 1, 3), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: agentIpIfNetMask.setStatus('mandatory') if mibBuilder.loadTexts: agentIpIfNetMask.setDescription('The IP net mask for this interface.') agent_ip_if_default_router = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 2, 1, 4), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: agentIpIfDefaultRouter.setStatus('mandatory') if mibBuilder.loadTexts: agentIpIfDefaultRouter.setDescription('The default gateway for this IP interface.') agent_ip_if_mac_addr = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 2, 1, 5), phys_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: agentIpIfMacAddr.setStatus('mandatory') if mibBuilder.loadTexts: agentIpIfMacAddr.setDescription('The MAC address of this IP interface. For interfaces which do not have such an address. (e.g., a serial line), this object should contain an octet string of zero length.') agent_ip_if_type = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 2, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 6, 28))).clone(namedValues=named_values(('other', 1), ('ethernet-csmacd', 6), ('slip', 28)))).setMaxAccess('readonly') if mibBuilder.loadTexts: agentIpIfType.setStatus('mandatory') if mibBuilder.loadTexts: agentIpIfType.setDescription('The physical layer interface of the IP interface.') agent_ip_boot_server_addr = mib_scalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 3), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: agentIpBootServerAddr.setStatus('mandatory') if mibBuilder.loadTexts: agentIpBootServerAddr.setDescription('The IP Address of Boot Server.') agent_ip_get_ip_from_bootp_server = mib_scalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('bootp', 3), ('dhcp', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: agentIpGetIpFromBootpServer.setStatus('mandatory') if mibBuilder.loadTexts: agentIpGetIpFromBootpServer.setDescription('This object indicates whether the agent get its system IP address from Bootp/DHCP server at start up.') agent_ip_unauth_addr = mib_scalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 5), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: agentIpUnauthAddr.setStatus('mandatory') if mibBuilder.loadTexts: agentIpUnauthAddr.setDescription('The IP address of an unauthorized SNMP packet.') agent_ip_unauth_comm = mib_scalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 20))).setMaxAccess('readonly') if mibBuilder.loadTexts: agentIpUnauthComm.setStatus('mandatory') if mibBuilder.loadTexts: agentIpUnauthComm.setDescription('The community string of an unauthorized SNMP packet.') agent_ip_last_boot_server_addr = mib_scalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 7), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: agentIpLastBootServerAddr.setStatus('mandatory') if mibBuilder.loadTexts: agentIpLastBootServerAddr.setDescription('The last IP address used as Boot server IP address.') agent_ip_last_ip_addr = mib_scalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 8), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: agentIpLastIpAddr.setStatus('mandatory') if mibBuilder.loadTexts: agentIpLastIpAddr.setDescription('The last IP address used as the agent system IP address.') agent_ip_trap_manager_table = mib_table((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 9)) if mibBuilder.loadTexts: agentIpTrapManagerTable.setStatus('mandatory') if mibBuilder.loadTexts: agentIpTrapManagerTable.setDescription('A list of trap manager entries to which to send SNMP traps .') agent_ip_trap_manager_entry = mib_table_row((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 9, 1)).setIndexNames((0, 'COMMON-MIB', 'agentIpTrapManagerIpAddr')) if mibBuilder.loadTexts: agentIpTrapManagerEntry.setStatus('mandatory') if mibBuilder.loadTexts: agentIpTrapManagerEntry.setDescription('This entry contains the particular trap manager settings.') agent_ip_trap_manager_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 9, 1, 1), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: agentIpTrapManagerIpAddr.setStatus('mandatory') if mibBuilder.loadTexts: agentIpTrapManagerIpAddr.setDescription('The IP address to receive SNMP traps from this device.') agent_ip_trap_manager_comm = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 9, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 20))).setMaxAccess('readwrite') if mibBuilder.loadTexts: agentIpTrapManagerComm.setStatus('mandatory') if mibBuilder.loadTexts: agentIpTrapManagerComm.setDescription('The community string of the SNMP trap packet sent to the trap manager.') agent_ip_trap_manager_status = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 1, 3, 9, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: agentIpTrapManagerStatus.setStatus('mandatory') if mibBuilder.loadTexts: agentIpTrapManagerStatus.setDescription('This object indicates whether or not the trap should be send to this trap manager.') mibBuilder.exportSymbols('COMMON-MIB', agentIpIfNetMask=agentIpIfNetMask, marconi_mgmt=marconi_mgmt, agentIpIfTable=agentIpIfTable, agentMibCapabilityEntry=agentMibCapabilityEntry, systems=systems, golfcommon=golfcommon, agentIpTrapManagerIpAddr=agentIpTrapManagerIpAddr, external=external, agentMibCapabilityIndex=agentMibCapabilityIndex, agentIpGetIpFromBootpServer=agentIpGetIpFromBootpServer, agentConfigInfo=agentConfigInfo, agentBasicInfo=agentBasicInfo, agentIpTrapManagerComm=agentIpTrapManagerComm, agentMibCapabilityType=agentMibCapabilityType, golf=golf, agentMibCapabilityDescr=agentMibCapabilityDescr, agentBootFile=agentBootFile, agentSwUpdateMode=agentSwUpdateMode, agentSystemReset=agentSystemReset, agentIpBootServerAddr=agentIpBootServerAddr, agentIpIfEntry=agentIpIfEntry, agentIpUnauthAddr=agentIpUnauthAddr, agentFirmwareUpdateCtrl=agentFirmwareUpdateCtrl, dlinkcommon=dlinkcommon, agentIpTrapManagerTable=agentIpTrapManagerTable, golfproducts=golfproducts, agentRuntimeSwVersion=agentRuntimeSwVersion, agentIpIfIndex=agentIpIfIndex, agentFirmwareFile=agentFirmwareFile, agentIpUnauthComm=agentIpUnauthComm, agentMgmtProtocolCapability=agentMgmtProtocolCapability, agentMibCapabilityTable=agentMibCapabilityTable, agentIpIfType=agentIpIfType, agentIpNumOfIf=agentIpNumOfIf, agentMibCapabilityVersion=agentMibCapabilityVersion, marconi=marconi, agentIpLastBootServerAddr=agentIpLastBootServerAddr, agentIpIfMacAddr=agentIpIfMacAddr, agentIpProtoConfig=agentIpProtoConfig, agentIpTrapManagerEntry=agentIpTrapManagerEntry, agentIpIfDefaultRouter=agentIpIfDefaultRouter, agentIpTrapManagerStatus=agentIpTrapManagerStatus, agentBasicConfig=agentBasicConfig, agentOutOfBandBaudRateConfig=agentOutOfBandBaudRateConfig, agentHwRevision=agentHwRevision, dlink=dlink, agentIpLastIpAddr=agentIpLastIpAddr, agentIpIfAddress=agentIpIfAddress, agentSwUpdateCtrl=agentSwUpdateCtrl, agentRs232PortConfig=agentRs232PortConfig, agentPromFwVersion=agentPromFwVersion)
class singleton: def __init__(self, undecoratedClass): self.undecoratedClass = undecoratedClass self.instance = None def __call__(self, *args, **kwargs): print(self.undecoratedClass.closed) if self.undecoratedClass.closed is True: self.instance = None if self.instance is None: self.instance = self.undecoratedClass(*args, **kwargs) self.undecoratedClass.closed = True else: print('instance already exists') return self.instance
class Singleton: def __init__(self, undecoratedClass): self.undecoratedClass = undecoratedClass self.instance = None def __call__(self, *args, **kwargs): print(self.undecoratedClass.closed) if self.undecoratedClass.closed is True: self.instance = None if self.instance is None: self.instance = self.undecoratedClass(*args, **kwargs) self.undecoratedClass.closed = True else: print('instance already exists') return self.instance
# https://app.codesignal.com/interview-practice/task/dYCH8sdnxGf5aGkez/solutions def decodeString(string): final_output = [] for c in string: if c != ']': final_output.append(c) else: s = [] while(final_output[-1] != '['): s.append(final_output.pop()) pop_bracket = final_output.pop() number = [] while final_output and final_output[-1].isnumeric(): number.append(final_output.pop()) final_output.append( int(''.join(reversed(number))) * ''.join(reversed(s))) return ''.join(final_output)
def decode_string(string): final_output = [] for c in string: if c != ']': final_output.append(c) else: s = [] while final_output[-1] != '[': s.append(final_output.pop()) pop_bracket = final_output.pop() number = [] while final_output and final_output[-1].isnumeric(): number.append(final_output.pop()) final_output.append(int(''.join(reversed(number))) * ''.join(reversed(s))) return ''.join(final_output)
def is_valid(r, c, size): if 0 <= r < size and 0 <= c < size: return True return False n = int(input()) matrix = [] for _ in range(n): matrix.append([int(el) for el in input().split()]) all_directions = { "up": (-1, 0), "down": (1, 0), "left": (0, -1), "right": (0, 1), "up_left": (-1, -1), "up_right": (-1, 1), "down_left": (1, -1), "down_right": (1, 1) } all_bombs = list(input().split()) for current_bomb in all_bombs: bomb_coordinates = current_bomb.split(",") bomb_row = int(bomb_coordinates[0]) bomb_col = int(bomb_coordinates[1]) if is_valid(bomb_row, bomb_col, n): bomb = matrix[bomb_row][bomb_col] if bomb > 0: matrix[bomb_row][bomb_col] = 0 for direction in all_directions: next_row = bomb_row + all_directions[direction][0] next_col = bomb_col + all_directions[direction][1] if is_valid(next_row, next_col, n): if matrix[next_row][next_col] > 0: matrix[next_row][next_col] -= bomb active_cells = [] for sublist in matrix: for num in sublist: if num > 0: active_cells.append(num) print(f"Alive cells: {len(active_cells)}") print(f"Sum: {sum(active_cells)}") for sublist in matrix: print(" ".join(str(el) for el in sublist))
def is_valid(r, c, size): if 0 <= r < size and 0 <= c < size: return True return False n = int(input()) matrix = [] for _ in range(n): matrix.append([int(el) for el in input().split()]) all_directions = {'up': (-1, 0), 'down': (1, 0), 'left': (0, -1), 'right': (0, 1), 'up_left': (-1, -1), 'up_right': (-1, 1), 'down_left': (1, -1), 'down_right': (1, 1)} all_bombs = list(input().split()) for current_bomb in all_bombs: bomb_coordinates = current_bomb.split(',') bomb_row = int(bomb_coordinates[0]) bomb_col = int(bomb_coordinates[1]) if is_valid(bomb_row, bomb_col, n): bomb = matrix[bomb_row][bomb_col] if bomb > 0: matrix[bomb_row][bomb_col] = 0 for direction in all_directions: next_row = bomb_row + all_directions[direction][0] next_col = bomb_col + all_directions[direction][1] if is_valid(next_row, next_col, n): if matrix[next_row][next_col] > 0: matrix[next_row][next_col] -= bomb active_cells = [] for sublist in matrix: for num in sublist: if num > 0: active_cells.append(num) print(f'Alive cells: {len(active_cells)}') print(f'Sum: {sum(active_cells)}') for sublist in matrix: print(' '.join((str(el) for el in sublist)))
''' Logging module for Sublime Text plugins. Tries to emulate normal Python logger. by @blopker ''' debug = False class Logger(object): def __init__(self, name): self.name = name def debug(self, *messages): if not debug: return self._out('DEBUG', *messages) def info(self, *messages): self._out('INFO', *messages) def error(self, *messages): self._out('ERROR', *messages) def warning(self, *messages): self._out('WARN', *messages) def _out(self, level, *messages): if not messages: return if len(messages) > 1: message = messages[0] % tuple(messages[1:]) else: message = messages[0] print('{level}:{name}: {message}'.format( level=level, name=self.name, message=message)) def get(name): ''' Get a new named logger. Usually called like: logger.get(__name__).Short and sweet ''' return Logger(name)
""" Logging module for Sublime Text plugins. Tries to emulate normal Python logger. by @blopker """ debug = False class Logger(object): def __init__(self, name): self.name = name def debug(self, *messages): if not debug: return self._out('DEBUG', *messages) def info(self, *messages): self._out('INFO', *messages) def error(self, *messages): self._out('ERROR', *messages) def warning(self, *messages): self._out('WARN', *messages) def _out(self, level, *messages): if not messages: return if len(messages) > 1: message = messages[0] % tuple(messages[1:]) else: message = messages[0] print('{level}:{name}: {message}'.format(level=level, name=self.name, message=message)) def get(name): """ Get a new named logger. Usually called like: logger.get(__name__).Short and sweet """ return logger(name)
# Recursers can create their personal access token at https://www.recurse.com/settings/apps # To use the tool, create your personal access token and replace the fake access token below. PERSONAL_ACCESS_TOKEN = "123456" AUTH_HEADER = {"Authorization": "Bearer {}".format(PERSONAL_ACCESS_TOKEN)}
personal_access_token = '123456' auth_header = {'Authorization': 'Bearer {}'.format(PERSONAL_ACCESS_TOKEN)}
# Variables center_x=50 center_y=50 diameter=10 ellipse(center_x,center_y,diameter,diameter) # Variables allow us to make changes on them # Let's make some changes on the variables diameter=diameter+2 center_x=center_x+diameter ellipse(center_x,center_y,diameter,diameter) diameter=diameter+2 center_x=center_x+diameter ellipse(center_x,center_y,diameter,diameter) diameter=diameter+2 center_x=center_x+diameter ellipse(center_x,center_y,diameter,diameter)
center_x = 50 center_y = 50 diameter = 10 ellipse(center_x, center_y, diameter, diameter) diameter = diameter + 2 center_x = center_x + diameter ellipse(center_x, center_y, diameter, diameter) diameter = diameter + 2 center_x = center_x + diameter ellipse(center_x, center_y, diameter, diameter) diameter = diameter + 2 center_x = center_x + diameter ellipse(center_x, center_y, diameter, diameter)
class Solution: def solve(self, a, b, c): dp = [[[0]*(len(c)+1) for j in range(len(b)+1)] for i in range(len(a)+1)] ans = 0 for i in range(1,len(a)+1): for j in range(1,len(b)+1): for k in range(1,len(c)+1): if a[i-1] == b[j-1] == c[k-1]: dp[i][j][k] = 1 + dp[i-1][j-1][k-1] else: dp[i][j][k] = max(dp[i-1][j][k], dp[i][j-1][k], dp[i][j][k-1]) ans = max(ans, dp[i][j][k]) return ans
class Solution: def solve(self, a, b, c): dp = [[[0] * (len(c) + 1) for j in range(len(b) + 1)] for i in range(len(a) + 1)] ans = 0 for i in range(1, len(a) + 1): for j in range(1, len(b) + 1): for k in range(1, len(c) + 1): if a[i - 1] == b[j - 1] == c[k - 1]: dp[i][j][k] = 1 + dp[i - 1][j - 1][k - 1] else: dp[i][j][k] = max(dp[i - 1][j][k], dp[i][j - 1][k], dp[i][j][k - 1]) ans = max(ans, dp[i][j][k]) return ans
''' Given the head of a singly linked list, reverse the list, and return the reversed list. ''' # Definition for singly-linked list. class ListNode: def __init__(self, val=0, next=None): self.val = val self.next = next class Solution: def reverseList(self, head): cur = head prev = None while cur: temp = cur.next cur.next = prev pre = cur cur = temp return pre def reverseList_recursive(self, head): def reverse(pre, cur): if not cur: return pre temp = cur.next cur.next = pre return reverse(cur, temp) return reverse(None, head)
""" Given the head of a singly linked list, reverse the list, and return the reversed list. """ class Listnode: def __init__(self, val=0, next=None): self.val = val self.next = next class Solution: def reverse_list(self, head): cur = head prev = None while cur: temp = cur.next cur.next = prev pre = cur cur = temp return pre def reverse_list_recursive(self, head): def reverse(pre, cur): if not cur: return pre temp = cur.next cur.next = pre return reverse(cur, temp) return reverse(None, head)
#Upon clicking, saves everything in hdf5 queue. Meant to be click after "Start" has already been pressed def save(arr_in): # HDF5 try: hdf5.queue.put_nowait((frame_time, data_cube_corr)) num_cubes_stored += 1 # executed if above was successful except: pass # logger.log(logging.WARNING, "HDF5:Storage Queue is full!") return()
def save(arr_in): try: hdf5.queue.put_nowait((frame_time, data_cube_corr)) num_cubes_stored += 1 except: pass return ()
# you can write to stdout for debugging purposes, e.g. # print("this is a debug message") def solution(A): # write your code in Python 3.6 N = len(A) if N <= 1: return 0 start_list = [] end_list = [] for i, radius in enumerate(A): left, right = i - radius, i + radius start_list.append(left) end_list.append(right) start_list.sort() end_list.sort() cur_started = 0 idx_stt = 0; idx_end = 0 ans = 0 while idx_stt < N: stt = start_list[idx_stt]; end = end_list[idx_end] if stt <= end: ans += cur_started cur_started += 1 idx_stt += 1 else: cur_started -= 1 idx_end += 1 if ans > 10_000_000: return -1 else: return ans
def solution(A): n = len(A) if N <= 1: return 0 start_list = [] end_list = [] for (i, radius) in enumerate(A): (left, right) = (i - radius, i + radius) start_list.append(left) end_list.append(right) start_list.sort() end_list.sort() cur_started = 0 idx_stt = 0 idx_end = 0 ans = 0 while idx_stt < N: stt = start_list[idx_stt] end = end_list[idx_end] if stt <= end: ans += cur_started cur_started += 1 idx_stt += 1 else: cur_started -= 1 idx_end += 1 if ans > 10000000: return -1 else: return ans
n = int(input()) s = input() def remove(s): actC = 'a' actI = -1 for i in range(len(s)): if i > 0: if ord(s[i])-ord(s[i-1]) == 1 and s[i] > actC: actC = s[i] actI = i if i < len(s)-1: if ord(s[i])-ord(s[i+1]) == 1 and s[i] > actC: actC = s[i] actI = i return actC, actI ans = 0 actIdxToRem = remove(s)[1] while actIdxToRem != -1: s = s[:actIdxToRem]+s[actIdxToRem+1:] ans += 1 actIdxToRem = remove(s)[1] print(ans)
n = int(input()) s = input() def remove(s): act_c = 'a' act_i = -1 for i in range(len(s)): if i > 0: if ord(s[i]) - ord(s[i - 1]) == 1 and s[i] > actC: act_c = s[i] act_i = i if i < len(s) - 1: if ord(s[i]) - ord(s[i + 1]) == 1 and s[i] > actC: act_c = s[i] act_i = i return (actC, actI) ans = 0 act_idx_to_rem = remove(s)[1] while actIdxToRem != -1: s = s[:actIdxToRem] + s[actIdxToRem + 1:] ans += 1 act_idx_to_rem = remove(s)[1] print(ans)
class Sender: def __init__(self): self.subscribers = [] def __call__(self, *args, **kwargs): for subscriber in self.subscribers: subscriber(*args, **kwargs) def __iadd__(self, handler): self.subscribers.append(handler) return self def __isub__(self, handler): self.subscribers.remove(handler) return self
class Sender: def __init__(self): self.subscribers = [] def __call__(self, *args, **kwargs): for subscriber in self.subscribers: subscriber(*args, **kwargs) def __iadd__(self, handler): self.subscribers.append(handler) return self def __isub__(self, handler): self.subscribers.remove(handler) return self
config = { "palette": [255], "loss": "bce_dice", "gamma": 2.0, # focal loss gamma "optimizer": "sgd", "freeze": False, "freeze_at": 24, "dropout_rate": 0.1, "momentum": 0.9, "learning_rate": 0.1, # (216, 320, 1) # (270, 400, 1) # (432, 640, 1) "image_size": (216, 320, 1), "batch_size": 16, "epochs": 200 }
config = {'palette': [255], 'loss': 'bce_dice', 'gamma': 2.0, 'optimizer': 'sgd', 'freeze': False, 'freeze_at': 24, 'dropout_rate': 0.1, 'momentum': 0.9, 'learning_rate': 0.1, 'image_size': (216, 320, 1), 'batch_size': 16, 'epochs': 200}
class InvestmentProperty: REQUIRED_KW_ARGS = [] ##################################### # Required args for instantiation: ##################################### # property (dict): # list_price=float # maintenance_costs_monthly:float # other_costs_monthly:float # property_tax_annual:float # rent_annual:float # land_transfer_tax (dict): # country:string # province:string # city:string # property_economic (dict): # annual_list_price_growth # annual_maintenance_costs_growth_rate=float # annual_other_costs_growth_rate=float # annual_property_tax_growth_rate=float # annual_rent_growth_rate=float # mortgage (dict): # percent_down=float # interest_rate_apr=float # term_years=int # months_prepayment_fee=int # transaction (dict): # holding period=int # legal_fees_purchase=float # legal_fees_sale=float # other_fees_purchase=float # other_fees_sale=float # agent_fees_percent_on_sale=float # Fees reminder: https://zinatikay.com/buying-a-house-in-ontario-prepare-for-these-fees/ def __init__(self, **kwargs): pass
class Investmentproperty: required_kw_args = [] def __init__(self, **kwargs): pass
__author__ = 'Chetan' class Actor(object): def __init__(self): self.isBusy = False def occupied(self): self.isBusy = True print(type(self).__name__ , "is occupied with current movie") def available(self): self.isBusy = False print(type(self).__name__ , "is free for the movie") def getStatus(self): return self.isBusy class Agent(object): def __init__(self): self.principal = None def work(self): self.actor = Actor() if self.actor.getStatus(): self.actor.occupied() else: self.actor.available() if __name__ == '__main__': r = Agent() r.work()
__author__ = 'Chetan' class Actor(object): def __init__(self): self.isBusy = False def occupied(self): self.isBusy = True print(type(self).__name__, 'is occupied with current movie') def available(self): self.isBusy = False print(type(self).__name__, 'is free for the movie') def get_status(self): return self.isBusy class Agent(object): def __init__(self): self.principal = None def work(self): self.actor = actor() if self.actor.getStatus(): self.actor.occupied() else: self.actor.available() if __name__ == '__main__': r = agent() r.work()
class UserListSubclass(list): def __getslice__(self, i, j): return self.__getitem__(slice(i, j)) def __setslice__(self, i, j, seq): return self.__setitem__(slice(i, j), seq) def __delslice__(self, i, j): return self.__delitem__(slice(i, j)) # Subclass this class if you need to overwrite __getitem__ and have it called # when accessing slices. # If you subclass list directly, __getitem__ won't get called when accessing # slices as in mylist[2:4].
class Userlistsubclass(list): def __getslice__(self, i, j): return self.__getitem__(slice(i, j)) def __setslice__(self, i, j, seq): return self.__setitem__(slice(i, j), seq) def __delslice__(self, i, j): return self.__delitem__(slice(i, j))
li = [123, 456, 567, 789] param = 456 if param in li: print(li.index(param)) li = [] if not li: print('[]') else: print('True')
li = [123, 456, 567, 789] param = 456 if param in li: print(li.index(param)) li = [] if not li: print('[]') else: print('True')
# https://leetcode.com/problems/remove-duplicates-from-sorted-array/ # Runtime: 138 ms, faster than 47.61% of Python3 online submissions for Remove Duplicates from Sorted Array. # Memory Usage: 15.6 MB, less than 21.60% of Python3 online submissions for Remove Duplicates from Sorted Array. class Solution: def removeDuplicates(self, nums: list[int]) -> int: k = 0 for i in range(len(nums)): if i < len(nums) - 1 and nums[i] == nums[i + 1]: continue nums[k] = nums[i] k += 1 return k
class Solution: def remove_duplicates(self, nums: list[int]) -> int: k = 0 for i in range(len(nums)): if i < len(nums) - 1 and nums[i] == nums[i + 1]: continue nums[k] = nums[i] k += 1 return k
annual_salary = input("Enter your annual income: ") if len(annual_salary) < 1 : annual_salary = 150000 annual_salary = float(annual_salary) total_cost = 1000000.00 semi_annual_raise = 0.07 portion_down_payment = 0.25 r = 0.04 down_payment = total_cost * portion_down_payment portion_saved = 0 portion_percent = 0.0 portion_range = range(10000) count = 0 while True : portion_saved = portion_range[int(len(portion_range)/2)] portion_percent = portion_saved / 10000 if portion_saved >= 9999 : print("Can't save enough in 36 months to pay the down payment") break count += 1 months = 0 current_savings = 0.0 monthly_salary = annual_salary/12 while months < 36 : current_savings += current_savings*(r/12) current_savings += monthly_salary*portion_percent months += 1 if (months % 6) == 0 : monthly_salary += int(monthly_salary) * semi_annual_raise if (down_payment - 100) < current_savings and current_savings < (down_payment + 100) : print("Saving", portion_saved/100, "% of your monthly salary will amount to", int(current_savings), "in 36 months") print("Found in", count, "bisections") break if current_savings < down_payment : portion_range = range(portion_saved, portion_range[-1] + 1) continue if current_savings > down_payment : portion_range = range(portion_range[0], portion_saved) continue
annual_salary = input('Enter your annual income: ') if len(annual_salary) < 1: annual_salary = 150000 annual_salary = float(annual_salary) total_cost = 1000000.0 semi_annual_raise = 0.07 portion_down_payment = 0.25 r = 0.04 down_payment = total_cost * portion_down_payment portion_saved = 0 portion_percent = 0.0 portion_range = range(10000) count = 0 while True: portion_saved = portion_range[int(len(portion_range) / 2)] portion_percent = portion_saved / 10000 if portion_saved >= 9999: print("Can't save enough in 36 months to pay the down payment") break count += 1 months = 0 current_savings = 0.0 monthly_salary = annual_salary / 12 while months < 36: current_savings += current_savings * (r / 12) current_savings += monthly_salary * portion_percent months += 1 if months % 6 == 0: monthly_salary += int(monthly_salary) * semi_annual_raise if down_payment - 100 < current_savings and current_savings < down_payment + 100: print('Saving', portion_saved / 100, '% of your monthly salary will amount to', int(current_savings), 'in 36 months') print('Found in', count, 'bisections') break if current_savings < down_payment: portion_range = range(portion_saved, portion_range[-1] + 1) continue if current_savings > down_payment: portion_range = range(portion_range[0], portion_saved) continue
class Timer: def __init__(self, time, delegate): self.delegate = delegate self.time = time self.elapsed = 0 self.active = True self.payload = None self.name = "" def step(self, dt): if not self.active: return self.elapsed += dt if self.elapsed >= self.time: self.delegate.on_timer(self, self.elapsed) self.elapsed = 0 self.active = False def reset(self): self.elapsed = 0
class Timer: def __init__(self, time, delegate): self.delegate = delegate self.time = time self.elapsed = 0 self.active = True self.payload = None self.name = '' def step(self, dt): if not self.active: return self.elapsed += dt if self.elapsed >= self.time: self.delegate.on_timer(self, self.elapsed) self.elapsed = 0 self.active = False def reset(self): self.elapsed = 0
class GameState(): def __init__(self): self.board = [ ["bR", "bN", "bB", "bQ", "bK", "bB", "bN", "bR"], ["bp", "bp", "bp", "bp", "bp", "bp", "bp", "bp"], ["--", "--", "--", "--", "--", "--", "--", "--"], ["--", "--", "--", "--", "--", "--", "--", "--"], ["--", "--", "--", "--", "--", "--", "--", "--"], ["--", "--", "--", "--", "--", "--", "--", "--"], ["wp", "wp", "wp", "wp", "wp", "wp", "wp", "wp"], ["wR", "wN", "wB", "wQ", "wK", "wB", "wN", "wR"]] self.moveFunctions = {"p": self.getPawnMoves, "R": self.getRookMoves, "N": self.getKnightMoves, "B": self.getBishopMoves, "Q": self.getQueenMoves, "K": self.getKingMoves} self.moveLog = [] self.whiteToMove = True self.whiteKingLocation = (7, 4) self.blackKingLocation = (0, 4) self.inCheck = False self.pins = [] self.checks = [] self.checkmate = False self.stalemate = False self.enPassantPossible = () self.enPassantPossibleLog = [self.enPassantPossible] self.whiteCastleKingside = True self.whiteCastleQueenside = True self.blackCastleKingside = True self.blackCastleQueenside = True self.castleRightsLog = [CastleRights(self.whiteCastleKingside, self.blackCastleKingside, self.whiteCastleQueenside, self.blackCastleQueenside)] def makeMove(self, move): self.board[move.endRow][move.endCol] = move.pieceMoved self.board[move.startRow][move.startCol] = "--" self.moveLog.append(move) self.whiteToMove = not self.whiteToMove if move.pieceMoved == "wK": self.whiteKingLocation = (move.endRow, move.endCol) elif move.pieceMoved == "bK": self.blackKingLocation = (move.endRow, move.endCol) if move.pieceMoved[1] == "p" and abs(move.startRow - move.endRow) == 2: self.enPassantPossible = ((move.endRow + move.startRow)//2, move.endCol) else: self.enPassantPossible = () if move.enPassant: self.board[move.startRow][move.endCol] = "--" if move.pawnPromotion: promotedPiece = "Q" self.board[move.endRow][move.endCol] = move.pieceMoved[0] + promotedPiece self.updateCastleRights(move) self.castleRightsLog.append(CastleRights(self.whiteCastleKingside, self.blackCastleKingside, self.whiteCastleQueenside, self.blackCastleQueenside)) if move.castle: if move.endCol - move.startCol == 2: self.board[move.endRow][move.endCol - 1] = self.board[move.endRow][move.endCol + 1] self.board[move.endRow][move.endCol + 1] = "--" else: self.board[move.endRow][move.endCol + 1] = self.board[move.endRow][move.endCol - 2] self.board[move.endRow][move.endCol - 2] = "--" self.enPassantPossibleLog.append(self.enPassantPossible) def undoMove(self): if len(self.moveLog) != 0: move = self.moveLog.pop() self.board[move.startRow][move.startCol] = move.pieceMoved self.board[move.endRow][move.endCol] = move.pieceCaptured self.whiteToMove = not self.whiteToMove if move.pieceMoved == "wK": self.whiteKingLocation = (move.startRow, move.startCol) elif move.pieceMoved == "bK": self.blackKingLocation = (move.startRow, move.startCol) if move.enPassant: self.board[move.endRow][move.endCol] = "--" self.board[move.startRow][move.endCol] = move.pieceCaptured self.enPassantPossibleLog.pop() self.enPassantPossible = self.enPassantPossibleLog[-1] self.castleRightsLog.pop() castleRights = self.castleRightsLog[-1] self.whiteCastleKingside = castleRights.wks self.blackCastleKingside = castleRights.bks self.whiteCastleQueenside = castleRights.wqs self.blackCastleQueenside = castleRights.bqs if move.castle: if move.endCol - move.startCol == 2: self.board[move.endRow][move.endCol + 1] = self.board[move.endRow][move.endCol - 1] self.board[move.endRow][move.endCol - 1] = "--" else: self.board[move.endRow][move.endCol - 2] = self.board[move.endRow][move.endCol + 1] self.board[move.endRow][move.endCol + 1] = "--" self.checkmate = False self.stalemate = False def getValidMoves(self): moves = [] self.inCheck, self.pins, self.checks = self.checkForPinsAndChecks() if self.whiteToMove: kingRow = self.whiteKingLocation[0] kingCol = self.whiteKingLocation[1] else: kingRow = self.blackKingLocation[0] kingCol = self.blackKingLocation[1] if self.inCheck: if len(self.checks) == 1: moves = self.getAllPossibleMoves() check = self.checks[0] checkRow = check[0] checkCol = check[1] pieceChecking = self.board[checkRow][checkCol] validSquares = [] if pieceChecking[1] == "N": validSquares = [(checkRow, checkCol)] else: for i in range(1, 8): validSquare = (kingRow + check[2] * i, kingCol + check[3] * i) validSquares.append(validSquare) if validSquare[0] == checkRow and validSquare[1] == checkCol: break for i in range(len(moves)-1, -1, -1): if moves[i].pieceMoved[1] != "K": if not (moves[i].endRow, moves[i].endCol) in validSquares: moves.remove(moves[i]) else: self.getKingMoves(kingRow, kingCol, moves) else: moves = self.getAllPossibleMoves() if len(moves) == 0: if self.inCheck: self.checkmate = True else: self.stalemate = True else: self.checkmate = False self.stalemate = False return moves def getAllPossibleMoves(self): moves = [] for r in range(len(self.board)): for c in range(len(self.board[r])): turn = self.board[r][c][0] if (turn == "w" and self.whiteToMove) or (turn == "b" and not self.whiteToMove): piece = self.board[r][c][1] self.moveFunctions[piece](r, c, moves) return moves def getPawnMoves(self, r, c, moves): piecePinned = False pinDirection = () for i in range(len(self.pins) -1, -1, -1): if self.pins[i][0] == r and self.pins[i][1] == c: piecePinned = True pinDirection = (self.pins[i][2], self.pins[i][3]) self.pins.remove(self.pins[i]) break if self.whiteToMove: moveAmount = -1 startRow = 6 backRow = 0 enemyColor = "b" kingRow, kingCol = self.whiteKingLocation else: moveAmount = 1 startRow = 1 backRow = 7 enemyColor = "w" kingRow, kingCol = self.blackKingLocation pawnPromotion = False if self.board[r + moveAmount][c] == "--": if not piecePinned or pinDirection == (moveAmount, 0): if r + moveAmount == backRow: pawnPromotion = True moves.append(Move((r, c), (r + moveAmount, c), self.board, pawnPromotion = pawnPromotion)) if r == startRow and self.board[r + 2*moveAmount][c] == "--": moves.append(Move((r, c), (r + 2*moveAmount, c), self.board)) if c - 1 >= 0: if not piecePinned or pinDirection == (moveAmount, -1): if self.board[r + moveAmount][c - 1][0] == enemyColor: if r + moveAmount == backRow: pawnPromotion = True moves.append(Move((r, c), (r + moveAmount, c - 1), self.board, pawnPromotion = pawnPromotion)) if (r + moveAmount, c - 1) == self.enPassantPossible: attackingPiece = blockingPiece = False if kingRow == r: if kingCol < c: insideRange = range(kingCol + 1, c - 1) outsideRange = range(c+1, 8) else: insideRange = range(kingCol - 1, c, -1) outsideRange = range(c-2, -1, -1) for i in insideRange: if self.board[r][i] != "--": blockingPiece = True for i in outsideRange: square = self.board[r][i] if square[0] == enemyColor and (square[1] == "R" or square[1] == "Q"): attackingPiece = True elif square != "--": blockingPiece = True if not attackingPiece or blockingPiece: moves.append(Move((r, c), (r + moveAmount, c - 1), self.board, enPassant = True)) if c + 1 <= 7: if not piecePinned or pinDirection == (moveAmount, 1): if self.board[r + moveAmount][c+1][0] == enemyColor: if r + moveAmount == backRow: pawnPromotion = True moves.append(Move((r, c), (r + moveAmount, c + 1), self.board, pawnPromotion = pawnPromotion)) if (r + moveAmount, c+1) == self.enPassantPossible: attackingPiece = blockingPiece = False if kingRow == r: if kingCol < c: insideRange = range(kingCol + 1, c) outsideRange = range(c+2, 8) else: insideRange = range(kingCol - 1, c + 1, -1) outsideRange = range(c-1, -1, -1) for i in insideRange: if self.board[r][i] != "--": blockingPiece = True for i in outsideRange: square = self.board[r][i] if square[0] == enemyColor and (square[1] == "R" or square[1] == "Q"): attackingPiece = True elif square != "--": blockingPiece = True if not attackingPiece or blockingPiece: moves.append(Move((r, c), (r + moveAmount, c + 1), self.board, enPassant = True)) def getRookMoves(self, r, c, moves): piecePinned = False pinDirection = () for i in range(len(self.pins) -1, -1, -1): if self.pins[i][0] == r and self.pins[i][1] == c: piecePinned = True pinDirection = (self.pins[i][2], self.pins[i][3]) if self.board[r][c][1] != "Q": self.pins.remove(self.pins[i]) break directions = ((-1, 0), (0, -1), (1, 0), (0, 1)) enemyColor = "b" if self.whiteToMove else "w" for d in directions: for i in range(1, 8): endRow = r + d[0] * i endCol = c + d[1] * i if 0 <= endRow < 8 and 0 <= endCol < 8: if not piecePinned or pinDirection == d or pinDirection == (-d[0], -d[1]): endPiece = self.board[endRow][endCol] if endPiece == "--": moves.append(Move((r, c), (endRow, endCol), self.board)) elif endPiece[0] == enemyColor: moves.append(Move((r, c), (endRow, endCol), self.board)) break else: break else: break def getKnightMoves(self, r, c, moves): piecePinned = False for i in range(len(self.pins) -1, -1, -1): if self.pins[i][0] == r and self.pins[i][1] == c: piecePinned = True self.pins.remove(self.pins[i]) break knightMoves = ((-2, -1), (-2, 1), (-1, -2), (-1, 2), (1, -2), (1, 2), (2, -1), (2, 1)) allyColor = "w" if self.whiteToMove else "b" for m in knightMoves: endRow = r + m[0] endCol = c + m[1] if 0 <= endRow < 8 and 0 <= endCol < 8: if not piecePinned: endPiece = self.board[endRow][endCol] if endPiece[0] != allyColor: moves.append(Move((r, c), (endRow, endCol), self.board)) def getBishopMoves(self, r, c, moves): piecePinned = False pinDirection = () for i in range(len(self.pins) -1, -1, -1): if self.pins[i][0] == r and self.pins[i][1] == c: piecePinned = True pinDirection = (self.pins[i][2], self.pins[i][3]) self.pins.remove(self.pins[i]) break directions = ((-1, -1), (-1, 1), (1, -1), (1, 1)) enemyColor = "b" if self.whiteToMove else "w" for d in directions: for i in range(1, 8): endRow = r + d[0] * i endCol = c + d[1] * i if 0 <= endRow < 8 and 0 <= endCol < 8: if not piecePinned or pinDirection == d or pinDirection == (-d[0], -d[1]): endPiece = self.board[endRow][endCol] if endPiece == "--": moves.append(Move((r, c), (endRow, endCol), self.board)) elif endPiece[0] == enemyColor: moves.append(Move((r, c), (endRow, endCol), self.board)) break else: break else: break def getQueenMoves(self, r, c, moves): self.getRookMoves(r, c, moves) self.getBishopMoves(r, c, moves) def getKingMoves(self, r, c, moves): rowMoves = (-1, -1, -1, 0, 0, 1, 1, 1) colMoves = (-1, 0, 1, -1, 1, -1, 0, 1) allyColor = "w" if self.whiteToMove else "b" for i in range(8): endRow = r + rowMoves[i] endCol = c + colMoves[i] if 0 <= endRow < 8 and 0 <= endCol < 8: endPiece = self.board[endRow][endCol] if endPiece[0] != allyColor: if allyColor == "w": self.whiteKingLocation = (endRow, endCol) else: self.blackKingLocation = (endRow, endCol) inCheck, pins, checks = self.checkForPinsAndChecks() if not inCheck: moves.append(Move((r, c), (endRow, endCol), self.board)) if allyColor == "w": self.whiteKingLocation = (r, c) else: self.blackKingLocation = (r, c) self.getCastleMoves(r, c, moves, allyColor) def getCastleMoves(self, r, c, moves, allyColor): inCheck = self.squareUnderAttack(r, c, allyColor) if inCheck: return if (self.whiteToMove and self.whiteCastleKingside) or (not self.whiteToMove and self.blackCastleKingside): self.getKingsideCastleMoves(r, c, moves, allyColor) if (self.whiteToMove and self.whiteCastleQueenside) or (not self.whiteToMove and self.blackCastleQueenside): self.getQueensideCastleMoves(r, c, moves, allyColor) def getKingsideCastleMoves(self, r, c, moves, allyColor): if self.board[r][c + 1] == "--" and self.board[r][c + 2] == "--" and \ not self.squareUnderAttack(r, c + 1, allyColor) and not self.squareUnderAttack(r, c + 2, allyColor): moves.append(Move((r, c), (r, c + 2), self.board, castle = True)) def getQueensideCastleMoves(self, r, c, moves, allyColor): if self.board[r][c-1] == "--" and self.board[r][c-2] == "--" and self.board[r][c-3] == "--" and \ not self.squareUnderAttack(r, c - 1, allyColor) and not self.squareUnderAttack(r, c-2, allyColor): moves.append(Move((r, c), (r, c-2), self.board, castle = True)) def squareUnderAttack(self, r, c, allyColor): enemyColor = "w" if allyColor == "b" else "b" directions = ((-1, 0), (0, -1), (1, 0), (0, 1), (-1, -1), (-1, 1), (1, -1), (1, 1)) for j in range(len(directions)): d = directions[j] for i in range(1, 8): endRow = r + d[0] * i endCol = c + d[1] * i if 0 <= endRow < 8 and 0 <= endCol < 8: endPiece = self.board[endRow][endCol] if endPiece[0] == allyColor: break elif endPiece[0] == enemyColor: type = endPiece[1] if (0 <= j <= 3 and type == "R") or \ (4 <= j <= 7 and type == "B") or \ (i == 1 and type == "p" and ((enemyColor == "w" and 6 <= j <= 7) or (enemyColor == "b" and 4 <= j <= 5))) or \ (type == "Q") or (i == 1 and type == "K"): return True else: break else: break knightMoves = ((-2, -1), (-2, 1), (-1, -2), (-1, 2), (1, -2), (1, 2), (2, -1), (2, 1)) for m in knightMoves: endRow = r + m[0] endCol = c + m[1] if 0 <= endRow < 8 and 0 <= endCol < 8: endPiece = self.board[endRow][endCol] if endPiece[0] == enemyColor and endPiece[1] == "N": return True return False def checkForPinsAndChecks(self): pins = [] checks = [] inCheck = False if self.whiteToMove: enemyColor = "b" allyColor = "w" startRow = self.whiteKingLocation[0] startCol = self.whiteKingLocation[1] else: enemyColor = "w" allyColor = "b" startRow = self.blackKingLocation[0] startCol = self.blackKingLocation[1] directions = ((-1, 0), (0, -1), (1, 0), (0, 1), (-1, -1), (-1, 1), (1, -1), (1, 1)) for j in range(len(directions)): d = directions[j] possiblePin = () for i in range(1, 8): endRow = startRow + d[0] * i endCol = startCol + d[1] * i if 0 <= endRow < 8 and 0 <= endCol < 8: endPiece = self.board[endRow][endCol] if endPiece[0] == allyColor and endPiece[1] != "K": if possiblePin == (): possiblePin = (endRow, endCol, d[0], d[1]) else: break elif endPiece[0] == enemyColor: type = endPiece[1] if (0 <= j <= 3 and type == "R") or \ (4 <= j <= 7 and type == "B") or \ (i == 1 and type == "p" and ((enemyColor == "w" and 6 <= j <=7) or (enemyColor == "b" and 4 <= j <= 5))) or \ (type == "Q") or (i == 1 and type == "K"): if possiblePin == (): inCheck = True checks.append((endRow, endCol, d[0], d[1])) break else: pins.append(possiblePin) break else: break else: break knightMoves = ((-2, -1), (-2, 1), (-1, -2), (-1, 2), (1, -2), (1, 2), (2, -1), (2, 1)) for m in knightMoves: endRow = startRow + m[0] endCol = startCol + m[1] if 0 <= endRow < 8 and 0 <= endCol < 8: endPiece = self.board[endRow][endCol] if endPiece[0] == enemyColor and endPiece[1] == "N": inCheck = True checks.append((endRow, endCol, m[0], m[1])) return inCheck, pins, checks def updateCastleRights(self, move): if move.pieceMoved == "wK": self.whiteCastleQueenside = False self.whiteCastleKingside = False elif move.pieceMoved == "bK": self.blackCastleQueenside = False self.blackCastleKingside = False elif move.pieceMoved == "wR": if move.startRow == 7: if move.startCol == 7: self.whiteCastleKingside = False elif move.startCol == 0: self.whiteCastleQueenside = False elif move.pieceMoved == "bR": if move.startRow == 0: if move.startCol == 7: self.blackCastleKingside = False elif move.startCol == 0: self.blackCastleQueenside = False class CastleRights(): def __init__(self, wks, bks, wqs, bqs): self.wks = wks self.bks = bks self.wqs = wqs self.bqs = bqs class Move(): ranksToRows = {"1": 7, "2": 6, "3": 5, "4": 4, "5": 3, "6": 2, "7": 1, "8": 0} rowsToRanks = {v: k for k, v in ranksToRows.items()} filesToCols = {"a": 0, "b": 1, "c": 2, "d": 3, "e": 4, "f": 5, "g": 6, "h": 7} colsToFiles = {v: k for k, v in filesToCols.items()} def __init__(self, startSq, endSq, board, enPassant = False, pawnPromotion = False, castle = False): self.startRow = startSq[0] self.startCol = startSq[1] self.endRow = endSq[0] self.endCol = endSq[1] self.pieceMoved = board[self.startRow][self.startCol] self.pieceCaptured = board[self.endRow][self.endCol] self.enPassant = enPassant self.pawnPromotion = pawnPromotion self.castle = castle if enPassant: self.pieceCaptured = "bp" if self.pieceMoved == "wp" else "wp" self.isCapture = self.pieceCaptured != "--" self.moveID = self.startRow * 1000 + self.startCol * 100 + self.endRow * 10 + self.endCol def __eq__(self, other): if isinstance(other, Move): return self.moveID == other.moveID return False def getChessNotation(self): return self.getRankFile(self.startRow, self.startCol) + self.getRankFile(self.endRow, self.endCol) def getRankFile(self, r, c): return self.colsToFiles[c] + self.rowsToRanks[r] def __str__(self): if self.castle: return "O-O" if self.endCol == 6 else "O-O-O" endSquare = self.getRankFile(self.endRow, self.endCol) if self.pieceMoved[1] == "p": if self.isCapture: return self.colsToFiles[self.startCol] + "x" + endSquare else: return endSquare moveString = self.pieceMoved[1] if self.isCapture: moveString += "x" return moveString + endSquare
class Gamestate: def __init__(self): self.board = [['bR', 'bN', 'bB', 'bQ', 'bK', 'bB', 'bN', 'bR'], ['bp', 'bp', 'bp', 'bp', 'bp', 'bp', 'bp', 'bp'], ['--', '--', '--', '--', '--', '--', '--', '--'], ['--', '--', '--', '--', '--', '--', '--', '--'], ['--', '--', '--', '--', '--', '--', '--', '--'], ['--', '--', '--', '--', '--', '--', '--', '--'], ['wp', 'wp', 'wp', 'wp', 'wp', 'wp', 'wp', 'wp'], ['wR', 'wN', 'wB', 'wQ', 'wK', 'wB', 'wN', 'wR']] self.moveFunctions = {'p': self.getPawnMoves, 'R': self.getRookMoves, 'N': self.getKnightMoves, 'B': self.getBishopMoves, 'Q': self.getQueenMoves, 'K': self.getKingMoves} self.moveLog = [] self.whiteToMove = True self.whiteKingLocation = (7, 4) self.blackKingLocation = (0, 4) self.inCheck = False self.pins = [] self.checks = [] self.checkmate = False self.stalemate = False self.enPassantPossible = () self.enPassantPossibleLog = [self.enPassantPossible] self.whiteCastleKingside = True self.whiteCastleQueenside = True self.blackCastleKingside = True self.blackCastleQueenside = True self.castleRightsLog = [castle_rights(self.whiteCastleKingside, self.blackCastleKingside, self.whiteCastleQueenside, self.blackCastleQueenside)] def make_move(self, move): self.board[move.endRow][move.endCol] = move.pieceMoved self.board[move.startRow][move.startCol] = '--' self.moveLog.append(move) self.whiteToMove = not self.whiteToMove if move.pieceMoved == 'wK': self.whiteKingLocation = (move.endRow, move.endCol) elif move.pieceMoved == 'bK': self.blackKingLocation = (move.endRow, move.endCol) if move.pieceMoved[1] == 'p' and abs(move.startRow - move.endRow) == 2: self.enPassantPossible = ((move.endRow + move.startRow) // 2, move.endCol) else: self.enPassantPossible = () if move.enPassant: self.board[move.startRow][move.endCol] = '--' if move.pawnPromotion: promoted_piece = 'Q' self.board[move.endRow][move.endCol] = move.pieceMoved[0] + promotedPiece self.updateCastleRights(move) self.castleRightsLog.append(castle_rights(self.whiteCastleKingside, self.blackCastleKingside, self.whiteCastleQueenside, self.blackCastleQueenside)) if move.castle: if move.endCol - move.startCol == 2: self.board[move.endRow][move.endCol - 1] = self.board[move.endRow][move.endCol + 1] self.board[move.endRow][move.endCol + 1] = '--' else: self.board[move.endRow][move.endCol + 1] = self.board[move.endRow][move.endCol - 2] self.board[move.endRow][move.endCol - 2] = '--' self.enPassantPossibleLog.append(self.enPassantPossible) def undo_move(self): if len(self.moveLog) != 0: move = self.moveLog.pop() self.board[move.startRow][move.startCol] = move.pieceMoved self.board[move.endRow][move.endCol] = move.pieceCaptured self.whiteToMove = not self.whiteToMove if move.pieceMoved == 'wK': self.whiteKingLocation = (move.startRow, move.startCol) elif move.pieceMoved == 'bK': self.blackKingLocation = (move.startRow, move.startCol) if move.enPassant: self.board[move.endRow][move.endCol] = '--' self.board[move.startRow][move.endCol] = move.pieceCaptured self.enPassantPossibleLog.pop() self.enPassantPossible = self.enPassantPossibleLog[-1] self.castleRightsLog.pop() castle_rights = self.castleRightsLog[-1] self.whiteCastleKingside = castleRights.wks self.blackCastleKingside = castleRights.bks self.whiteCastleQueenside = castleRights.wqs self.blackCastleQueenside = castleRights.bqs if move.castle: if move.endCol - move.startCol == 2: self.board[move.endRow][move.endCol + 1] = self.board[move.endRow][move.endCol - 1] self.board[move.endRow][move.endCol - 1] = '--' else: self.board[move.endRow][move.endCol - 2] = self.board[move.endRow][move.endCol + 1] self.board[move.endRow][move.endCol + 1] = '--' self.checkmate = False self.stalemate = False def get_valid_moves(self): moves = [] (self.inCheck, self.pins, self.checks) = self.checkForPinsAndChecks() if self.whiteToMove: king_row = self.whiteKingLocation[0] king_col = self.whiteKingLocation[1] else: king_row = self.blackKingLocation[0] king_col = self.blackKingLocation[1] if self.inCheck: if len(self.checks) == 1: moves = self.getAllPossibleMoves() check = self.checks[0] check_row = check[0] check_col = check[1] piece_checking = self.board[checkRow][checkCol] valid_squares = [] if pieceChecking[1] == 'N': valid_squares = [(checkRow, checkCol)] else: for i in range(1, 8): valid_square = (kingRow + check[2] * i, kingCol + check[3] * i) validSquares.append(validSquare) if validSquare[0] == checkRow and validSquare[1] == checkCol: break for i in range(len(moves) - 1, -1, -1): if moves[i].pieceMoved[1] != 'K': if not (moves[i].endRow, moves[i].endCol) in validSquares: moves.remove(moves[i]) else: self.getKingMoves(kingRow, kingCol, moves) else: moves = self.getAllPossibleMoves() if len(moves) == 0: if self.inCheck: self.checkmate = True else: self.stalemate = True else: self.checkmate = False self.stalemate = False return moves def get_all_possible_moves(self): moves = [] for r in range(len(self.board)): for c in range(len(self.board[r])): turn = self.board[r][c][0] if turn == 'w' and self.whiteToMove or (turn == 'b' and (not self.whiteToMove)): piece = self.board[r][c][1] self.moveFunctions[piece](r, c, moves) return moves def get_pawn_moves(self, r, c, moves): piece_pinned = False pin_direction = () for i in range(len(self.pins) - 1, -1, -1): if self.pins[i][0] == r and self.pins[i][1] == c: piece_pinned = True pin_direction = (self.pins[i][2], self.pins[i][3]) self.pins.remove(self.pins[i]) break if self.whiteToMove: move_amount = -1 start_row = 6 back_row = 0 enemy_color = 'b' (king_row, king_col) = self.whiteKingLocation else: move_amount = 1 start_row = 1 back_row = 7 enemy_color = 'w' (king_row, king_col) = self.blackKingLocation pawn_promotion = False if self.board[r + moveAmount][c] == '--': if not piecePinned or pinDirection == (moveAmount, 0): if r + moveAmount == backRow: pawn_promotion = True moves.append(move((r, c), (r + moveAmount, c), self.board, pawnPromotion=pawnPromotion)) if r == startRow and self.board[r + 2 * moveAmount][c] == '--': moves.append(move((r, c), (r + 2 * moveAmount, c), self.board)) if c - 1 >= 0: if not piecePinned or pinDirection == (moveAmount, -1): if self.board[r + moveAmount][c - 1][0] == enemyColor: if r + moveAmount == backRow: pawn_promotion = True moves.append(move((r, c), (r + moveAmount, c - 1), self.board, pawnPromotion=pawnPromotion)) if (r + moveAmount, c - 1) == self.enPassantPossible: attacking_piece = blocking_piece = False if kingRow == r: if kingCol < c: inside_range = range(kingCol + 1, c - 1) outside_range = range(c + 1, 8) else: inside_range = range(kingCol - 1, c, -1) outside_range = range(c - 2, -1, -1) for i in insideRange: if self.board[r][i] != '--': blocking_piece = True for i in outsideRange: square = self.board[r][i] if square[0] == enemyColor and (square[1] == 'R' or square[1] == 'Q'): attacking_piece = True elif square != '--': blocking_piece = True if not attackingPiece or blockingPiece: moves.append(move((r, c), (r + moveAmount, c - 1), self.board, enPassant=True)) if c + 1 <= 7: if not piecePinned or pinDirection == (moveAmount, 1): if self.board[r + moveAmount][c + 1][0] == enemyColor: if r + moveAmount == backRow: pawn_promotion = True moves.append(move((r, c), (r + moveAmount, c + 1), self.board, pawnPromotion=pawnPromotion)) if (r + moveAmount, c + 1) == self.enPassantPossible: attacking_piece = blocking_piece = False if kingRow == r: if kingCol < c: inside_range = range(kingCol + 1, c) outside_range = range(c + 2, 8) else: inside_range = range(kingCol - 1, c + 1, -1) outside_range = range(c - 1, -1, -1) for i in insideRange: if self.board[r][i] != '--': blocking_piece = True for i in outsideRange: square = self.board[r][i] if square[0] == enemyColor and (square[1] == 'R' or square[1] == 'Q'): attacking_piece = True elif square != '--': blocking_piece = True if not attackingPiece or blockingPiece: moves.append(move((r, c), (r + moveAmount, c + 1), self.board, enPassant=True)) def get_rook_moves(self, r, c, moves): piece_pinned = False pin_direction = () for i in range(len(self.pins) - 1, -1, -1): if self.pins[i][0] == r and self.pins[i][1] == c: piece_pinned = True pin_direction = (self.pins[i][2], self.pins[i][3]) if self.board[r][c][1] != 'Q': self.pins.remove(self.pins[i]) break directions = ((-1, 0), (0, -1), (1, 0), (0, 1)) enemy_color = 'b' if self.whiteToMove else 'w' for d in directions: for i in range(1, 8): end_row = r + d[0] * i end_col = c + d[1] * i if 0 <= endRow < 8 and 0 <= endCol < 8: if not piecePinned or pinDirection == d or pinDirection == (-d[0], -d[1]): end_piece = self.board[endRow][endCol] if endPiece == '--': moves.append(move((r, c), (endRow, endCol), self.board)) elif endPiece[0] == enemyColor: moves.append(move((r, c), (endRow, endCol), self.board)) break else: break else: break def get_knight_moves(self, r, c, moves): piece_pinned = False for i in range(len(self.pins) - 1, -1, -1): if self.pins[i][0] == r and self.pins[i][1] == c: piece_pinned = True self.pins.remove(self.pins[i]) break knight_moves = ((-2, -1), (-2, 1), (-1, -2), (-1, 2), (1, -2), (1, 2), (2, -1), (2, 1)) ally_color = 'w' if self.whiteToMove else 'b' for m in knightMoves: end_row = r + m[0] end_col = c + m[1] if 0 <= endRow < 8 and 0 <= endCol < 8: if not piecePinned: end_piece = self.board[endRow][endCol] if endPiece[0] != allyColor: moves.append(move((r, c), (endRow, endCol), self.board)) def get_bishop_moves(self, r, c, moves): piece_pinned = False pin_direction = () for i in range(len(self.pins) - 1, -1, -1): if self.pins[i][0] == r and self.pins[i][1] == c: piece_pinned = True pin_direction = (self.pins[i][2], self.pins[i][3]) self.pins.remove(self.pins[i]) break directions = ((-1, -1), (-1, 1), (1, -1), (1, 1)) enemy_color = 'b' if self.whiteToMove else 'w' for d in directions: for i in range(1, 8): end_row = r + d[0] * i end_col = c + d[1] * i if 0 <= endRow < 8 and 0 <= endCol < 8: if not piecePinned or pinDirection == d or pinDirection == (-d[0], -d[1]): end_piece = self.board[endRow][endCol] if endPiece == '--': moves.append(move((r, c), (endRow, endCol), self.board)) elif endPiece[0] == enemyColor: moves.append(move((r, c), (endRow, endCol), self.board)) break else: break else: break def get_queen_moves(self, r, c, moves): self.getRookMoves(r, c, moves) self.getBishopMoves(r, c, moves) def get_king_moves(self, r, c, moves): row_moves = (-1, -1, -1, 0, 0, 1, 1, 1) col_moves = (-1, 0, 1, -1, 1, -1, 0, 1) ally_color = 'w' if self.whiteToMove else 'b' for i in range(8): end_row = r + rowMoves[i] end_col = c + colMoves[i] if 0 <= endRow < 8 and 0 <= endCol < 8: end_piece = self.board[endRow][endCol] if endPiece[0] != allyColor: if allyColor == 'w': self.whiteKingLocation = (endRow, endCol) else: self.blackKingLocation = (endRow, endCol) (in_check, pins, checks) = self.checkForPinsAndChecks() if not inCheck: moves.append(move((r, c), (endRow, endCol), self.board)) if allyColor == 'w': self.whiteKingLocation = (r, c) else: self.blackKingLocation = (r, c) self.getCastleMoves(r, c, moves, allyColor) def get_castle_moves(self, r, c, moves, allyColor): in_check = self.squareUnderAttack(r, c, allyColor) if inCheck: return if self.whiteToMove and self.whiteCastleKingside or (not self.whiteToMove and self.blackCastleKingside): self.getKingsideCastleMoves(r, c, moves, allyColor) if self.whiteToMove and self.whiteCastleQueenside or (not self.whiteToMove and self.blackCastleQueenside): self.getQueensideCastleMoves(r, c, moves, allyColor) def get_kingside_castle_moves(self, r, c, moves, allyColor): if self.board[r][c + 1] == '--' and self.board[r][c + 2] == '--' and (not self.squareUnderAttack(r, c + 1, allyColor)) and (not self.squareUnderAttack(r, c + 2, allyColor)): moves.append(move((r, c), (r, c + 2), self.board, castle=True)) def get_queenside_castle_moves(self, r, c, moves, allyColor): if self.board[r][c - 1] == '--' and self.board[r][c - 2] == '--' and (self.board[r][c - 3] == '--') and (not self.squareUnderAttack(r, c - 1, allyColor)) and (not self.squareUnderAttack(r, c - 2, allyColor)): moves.append(move((r, c), (r, c - 2), self.board, castle=True)) def square_under_attack(self, r, c, allyColor): enemy_color = 'w' if allyColor == 'b' else 'b' directions = ((-1, 0), (0, -1), (1, 0), (0, 1), (-1, -1), (-1, 1), (1, -1), (1, 1)) for j in range(len(directions)): d = directions[j] for i in range(1, 8): end_row = r + d[0] * i end_col = c + d[1] * i if 0 <= endRow < 8 and 0 <= endCol < 8: end_piece = self.board[endRow][endCol] if endPiece[0] == allyColor: break elif endPiece[0] == enemyColor: type = endPiece[1] if 0 <= j <= 3 and type == 'R' or (4 <= j <= 7 and type == 'B') or (i == 1 and type == 'p' and (enemyColor == 'w' and 6 <= j <= 7 or (enemyColor == 'b' and 4 <= j <= 5))) or (type == 'Q') or (i == 1 and type == 'K'): return True else: break else: break knight_moves = ((-2, -1), (-2, 1), (-1, -2), (-1, 2), (1, -2), (1, 2), (2, -1), (2, 1)) for m in knightMoves: end_row = r + m[0] end_col = c + m[1] if 0 <= endRow < 8 and 0 <= endCol < 8: end_piece = self.board[endRow][endCol] if endPiece[0] == enemyColor and endPiece[1] == 'N': return True return False def check_for_pins_and_checks(self): pins = [] checks = [] in_check = False if self.whiteToMove: enemy_color = 'b' ally_color = 'w' start_row = self.whiteKingLocation[0] start_col = self.whiteKingLocation[1] else: enemy_color = 'w' ally_color = 'b' start_row = self.blackKingLocation[0] start_col = self.blackKingLocation[1] directions = ((-1, 0), (0, -1), (1, 0), (0, 1), (-1, -1), (-1, 1), (1, -1), (1, 1)) for j in range(len(directions)): d = directions[j] possible_pin = () for i in range(1, 8): end_row = startRow + d[0] * i end_col = startCol + d[1] * i if 0 <= endRow < 8 and 0 <= endCol < 8: end_piece = self.board[endRow][endCol] if endPiece[0] == allyColor and endPiece[1] != 'K': if possiblePin == (): possible_pin = (endRow, endCol, d[0], d[1]) else: break elif endPiece[0] == enemyColor: type = endPiece[1] if 0 <= j <= 3 and type == 'R' or (4 <= j <= 7 and type == 'B') or (i == 1 and type == 'p' and (enemyColor == 'w' and 6 <= j <= 7 or (enemyColor == 'b' and 4 <= j <= 5))) or (type == 'Q') or (i == 1 and type == 'K'): if possiblePin == (): in_check = True checks.append((endRow, endCol, d[0], d[1])) break else: pins.append(possiblePin) break else: break else: break knight_moves = ((-2, -1), (-2, 1), (-1, -2), (-1, 2), (1, -2), (1, 2), (2, -1), (2, 1)) for m in knightMoves: end_row = startRow + m[0] end_col = startCol + m[1] if 0 <= endRow < 8 and 0 <= endCol < 8: end_piece = self.board[endRow][endCol] if endPiece[0] == enemyColor and endPiece[1] == 'N': in_check = True checks.append((endRow, endCol, m[0], m[1])) return (inCheck, pins, checks) def update_castle_rights(self, move): if move.pieceMoved == 'wK': self.whiteCastleQueenside = False self.whiteCastleKingside = False elif move.pieceMoved == 'bK': self.blackCastleQueenside = False self.blackCastleKingside = False elif move.pieceMoved == 'wR': if move.startRow == 7: if move.startCol == 7: self.whiteCastleKingside = False elif move.startCol == 0: self.whiteCastleQueenside = False elif move.pieceMoved == 'bR': if move.startRow == 0: if move.startCol == 7: self.blackCastleKingside = False elif move.startCol == 0: self.blackCastleQueenside = False class Castlerights: def __init__(self, wks, bks, wqs, bqs): self.wks = wks self.bks = bks self.wqs = wqs self.bqs = bqs class Move: ranks_to_rows = {'1': 7, '2': 6, '3': 5, '4': 4, '5': 3, '6': 2, '7': 1, '8': 0} rows_to_ranks = {v: k for (k, v) in ranksToRows.items()} files_to_cols = {'a': 0, 'b': 1, 'c': 2, 'd': 3, 'e': 4, 'f': 5, 'g': 6, 'h': 7} cols_to_files = {v: k for (k, v) in filesToCols.items()} def __init__(self, startSq, endSq, board, enPassant=False, pawnPromotion=False, castle=False): self.startRow = startSq[0] self.startCol = startSq[1] self.endRow = endSq[0] self.endCol = endSq[1] self.pieceMoved = board[self.startRow][self.startCol] self.pieceCaptured = board[self.endRow][self.endCol] self.enPassant = enPassant self.pawnPromotion = pawnPromotion self.castle = castle if enPassant: self.pieceCaptured = 'bp' if self.pieceMoved == 'wp' else 'wp' self.isCapture = self.pieceCaptured != '--' self.moveID = self.startRow * 1000 + self.startCol * 100 + self.endRow * 10 + self.endCol def __eq__(self, other): if isinstance(other, Move): return self.moveID == other.moveID return False def get_chess_notation(self): return self.getRankFile(self.startRow, self.startCol) + self.getRankFile(self.endRow, self.endCol) def get_rank_file(self, r, c): return self.colsToFiles[c] + self.rowsToRanks[r] def __str__(self): if self.castle: return 'O-O' if self.endCol == 6 else 'O-O-O' end_square = self.getRankFile(self.endRow, self.endCol) if self.pieceMoved[1] == 'p': if self.isCapture: return self.colsToFiles[self.startCol] + 'x' + endSquare else: return endSquare move_string = self.pieceMoved[1] if self.isCapture: move_string += 'x' return moveString + endSquare