content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
''' Descripttion: version: Author: HuSharp Date: 2021-02-21 22:59:41 LastEditors: HuSharp LastEditTime: 2021-02-21 23:12:36 @Email: 8211180515@csu.edu.cn ''' def countdown_1(k): if k > 0: yield k for i in countdown_1(k-1): yield i def countdown(k): if k > 0: yield k yield from countdown(k-1) else: yield 'Blast off'
""" Descripttion: version: Author: HuSharp Date: 2021-02-21 22:59:41 LastEditors: HuSharp LastEditTime: 2021-02-21 23:12:36 @Email: 8211180515@csu.edu.cn """ def countdown_1(k): if k > 0: yield k for i in countdown_1(k - 1): yield i def countdown(k): if k > 0: yield k yield from countdown(k - 1) else: yield 'Blast off'
# Definition for a binary tree node # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: # @param root, a tree node # @return a list of lists of integers def levelOrderBottom(self, root): x = self.solve(root) return list(reversed(x)) def solve(self, root): if root is None: return [] l = self.solve(root.left) r = self.solve(root.right) m = [ (l[i] if i < len(l) else []) + (r[i] if i < len(r) else []) for i in xrange(max(len(l), len(r)))] return [[root.val]] + m
class Solution: def level_order_bottom(self, root): x = self.solve(root) return list(reversed(x)) def solve(self, root): if root is None: return [] l = self.solve(root.left) r = self.solve(root.right) m = [(l[i] if i < len(l) else []) + (r[i] if i < len(r) else []) for i in xrange(max(len(l), len(r)))] return [[root.val]] + m
# THIS FILE IS AUTO-GENERATED. PLEASE DO NOT MODIFY# version file for ldap3 # generated on 2018-08-01 17:55:24.174707 # on system uname_result(system='Windows', node='ELITE10GC', release='10', version='10.0.17134', machine='AMD64', processor='Intel64 Family 6 Model 58 Stepping 9, GenuineIntel') # with Python 3.7.0 - ('v3.7.0:1bf9cc5093', 'Jun 27 2018 04:59:51') - MSC v.1914 64 bit (AMD64) # __version__ = '2.5.1' __author__ = 'Giovanni Cannata' __email__ = 'cannatag@gmail.com' __url__ = 'https://github.com/cannatag/ldap3' __description__ = 'A strictly RFC 4510 conforming LDAP V3 pure Python client library' __status__ = '5 - Production/Stable' __license__ = 'LGPL v3'
__version__ = '2.5.1' __author__ = 'Giovanni Cannata' __email__ = 'cannatag@gmail.com' __url__ = 'https://github.com/cannatag/ldap3' __description__ = 'A strictly RFC 4510 conforming LDAP V3 pure Python client library' __status__ = '5 - Production/Stable' __license__ = 'LGPL v3'
even = [2, 4, 6, 8] odd = [1, 3, 5, 7, 9] print(min(even)) print(max(even)) print(min(odd)) print(max(odd)) print() print(len(even)) print(len(odd)) print() # to count how many times s is repeated in the word print("mississippi".count("s")) #4 print("mississippi".count("issi")) #1 even.extend(odd) print(even) another_even = even print(another_even) even.sort() print(even) even.sort(reverse=True) print(even) print(another_even) # mutated the list by sorting it first # https://docs.python.org/3.8/library/functions.html#any
even = [2, 4, 6, 8] odd = [1, 3, 5, 7, 9] print(min(even)) print(max(even)) print(min(odd)) print(max(odd)) print() print(len(even)) print(len(odd)) print() print('mississippi'.count('s')) print('mississippi'.count('issi')) even.extend(odd) print(even) another_even = even print(another_even) even.sort() print(even) even.sort(reverse=True) print(even) print(another_even)
class Solution: def prefixesDivBy5(self, A: List[int]) -> List[bool]: val = 0 res = [None] * len(A) for i, v in enumerate(A): val = ((val << 1) + v) % 5 res[i] = (val == 0) return res
class Solution: def prefixes_div_by5(self, A: List[int]) -> List[bool]: val = 0 res = [None] * len(A) for (i, v) in enumerate(A): val = ((val << 1) + v) % 5 res[i] = val == 0 return res
t=int(input()) for i in range(t): s=input() if s[:int(len(s)/2)]==s[int(len(s)/2):]: print("YES") else: print("NO")
t = int(input()) for i in range(t): s = input() if s[:int(len(s) / 2)] == s[int(len(s) / 2):]: print('YES') else: print('NO')
__all__ = [ 'feature_audio_opus', \ 'feature_audio_opus_conf' ]
__all__ = ['feature_audio_opus', 'feature_audio_opus_conf']
class ExecutionStep(object): def run(self, db): raise NotImplementedError('Method run(self, db) is not implemented.') def explain(self): raise NotImplementedError('Method explain(self) is not implemented.')
class Executionstep(object): def run(self, db): raise not_implemented_error('Method run(self, db) is not implemented.') def explain(self): raise not_implemented_error('Method explain(self) is not implemented.')
class A(object): def __init__(self): print("init") def __call__(self): print("call ") a = A() #imprime init A() #imprime call #https://pt.stackoverflow.com/q/109813/101
class A(object): def __init__(self): print('init') def __call__(self): print('call ') a = a() a()
def check_for_subfolders(folder_id, service): new_sub_patterns = {} folders = service.files().list(q="mimeType='application/vnd.google-apps.folder' and parents in '"+folder_id+"' and trashed = false",fields="nextPageToken, files(id, name)",pageSize=400).execute() all_folders = folders.get('files', []) all_files = check_for_files(folder_id, service=service) n_files = len(all_files) n_folders = len(all_folders) old_folder_tree = folder_tree if n_folders != 0: for i, folder in enumerate(all_folders): folder_name = folder['name'] subfolder_pattern = old_folder_tree + '/' + folder_name new_pattern = subfolder_pattern new_sub_patterns[subfolder_pattern] = folder['id'] print('New Pattern:', new_pattern) all_files = check_for_files(folder['id'], service=service) n_files = len(all_files) new_folder_tree = new_pattern if n_files != 0: for file in all_files: file_name = file['name'] new_file_tree_pattern = subfolder_pattern + "/" + file_name new_sub_patterns[new_file_tree_pattern] = file['id'] print("Files added :", file_name) else: print('No Files Found') else: all_files = check_for_files(folder_id) n_files = len(all_files) if n_files != 0: for file in all_files: file_name = file['name'] subfolders[folder_tree + '/'+file_name] = file['id'] new_file_tree_pattern = subfolder_pattern + "/" + file_name new_sub_patterns[new_file_tree_pattern] = file['id'] print("Files added :", file_name) return new_sub_patterns def check_for_files(folder_id, service): other_files = service.files().list(q="mimeType!='application/vnd.google-apps.folder' and parents in '"+folder_id+"' and trashed = false",fields="nextPageToken, files(id, name)",pageSize=400).execute() all_other_files = other_files.get('files', []) return all_other_files def get_folder_tree(folder_ids, service, folder_tree): sub_folders = check_for_subfolders(folder_ids, service) for i, sub_folder_id in enumerate(sub_folders.values()): folder_tree = list(sub_folders.keys())[i] print('Current Folder Tree : ', folder_tree) folder_ids.update(sub_folders) print('****************************************Recursive Search Begins**********************************************') try: get_folder_tree(sub_folder_id, service=service, folder_tree=folder_tree) except: print('---------------------------------No furtherance----------------------------------------------') return folder_ids
def check_for_subfolders(folder_id, service): new_sub_patterns = {} folders = service.files().list(q="mimeType='application/vnd.google-apps.folder' and parents in '" + folder_id + "' and trashed = false", fields='nextPageToken, files(id, name)', pageSize=400).execute() all_folders = folders.get('files', []) all_files = check_for_files(folder_id, service=service) n_files = len(all_files) n_folders = len(all_folders) old_folder_tree = folder_tree if n_folders != 0: for (i, folder) in enumerate(all_folders): folder_name = folder['name'] subfolder_pattern = old_folder_tree + '/' + folder_name new_pattern = subfolder_pattern new_sub_patterns[subfolder_pattern] = folder['id'] print('New Pattern:', new_pattern) all_files = check_for_files(folder['id'], service=service) n_files = len(all_files) new_folder_tree = new_pattern if n_files != 0: for file in all_files: file_name = file['name'] new_file_tree_pattern = subfolder_pattern + '/' + file_name new_sub_patterns[new_file_tree_pattern] = file['id'] print('Files added :', file_name) else: print('No Files Found') else: all_files = check_for_files(folder_id) n_files = len(all_files) if n_files != 0: for file in all_files: file_name = file['name'] subfolders[folder_tree + '/' + file_name] = file['id'] new_file_tree_pattern = subfolder_pattern + '/' + file_name new_sub_patterns[new_file_tree_pattern] = file['id'] print('Files added :', file_name) return new_sub_patterns def check_for_files(folder_id, service): other_files = service.files().list(q="mimeType!='application/vnd.google-apps.folder' and parents in '" + folder_id + "' and trashed = false", fields='nextPageToken, files(id, name)', pageSize=400).execute() all_other_files = other_files.get('files', []) return all_other_files def get_folder_tree(folder_ids, service, folder_tree): sub_folders = check_for_subfolders(folder_ids, service) for (i, sub_folder_id) in enumerate(sub_folders.values()): folder_tree = list(sub_folders.keys())[i] print('Current Folder Tree : ', folder_tree) folder_ids.update(sub_folders) print('****************************************Recursive Search Begins**********************************************') try: get_folder_tree(sub_folder_id, service=service, folder_tree=folder_tree) except: print('---------------------------------No furtherance----------------------------------------------') return folder_ids
''' Double Ended Queue or deque is the extended version of Queue because in deque you can add and remove form both first and last position of the Queue. ''' def Deque(): def __init__(self): self._deque = [] def add_first(self,e): 'Add the item in first position.' self._deque.insert(0,e) def add_last(self,e): 'Add the item in last position.' self._deque.append(e) def delete_first(self): 'Remove item from the first position.' self._deque.pop(0) def delete_last(self): 'Remove item from the last position.' self._deque.pop() def first(self): 'Return the first item' return self._deque[0] def last(self): 'Return the last item' return self._deque[-1] def __len__(self): 'Return the length of deque' return len(self._deque) def is_empty(self): 'Check deque is empty or not' if len(self._deque) == 0: print('Deque is empty') else: print('Deque is not empty')
""" Double Ended Queue or deque is the extended version of Queue because in deque you can add and remove form both first and last position of the Queue. """ def deque(): def __init__(self): self._deque = [] def add_first(self, e): """Add the item in first position.""" self._deque.insert(0, e) def add_last(self, e): """Add the item in last position.""" self._deque.append(e) def delete_first(self): """Remove item from the first position.""" self._deque.pop(0) def delete_last(self): """Remove item from the last position.""" self._deque.pop() def first(self): """Return the first item""" return self._deque[0] def last(self): """Return the last item""" return self._deque[-1] def __len__(self): """Return the length of deque""" return len(self._deque) def is_empty(self): """Check deque is empty or not""" if len(self._deque) == 0: print('Deque is empty') else: print('Deque is not empty')
class Error : def __init__(self,name,details,position): self.name = name self.details = details self.position = position def __str__(self): return f'Error : {self.name} -> {self.details} | line :{self.position.line} col : {self.position.col}' class IllegalCharError(Error): def __init__(self,details,position): super().__init__('IllegalCharError',details,position) class InvalidSyntaxError(Error): def __init__(self, details, position): super().__init__('InvalidSyntaxError', details, position) class RunTimeError(Error): def __init__(self, details, position,context): super().__init__('RunTimeError', details, position) self.context = context def __str__(self): return self.traceBack() + '\n' + f'Error : {self.name} -> {self.details} | line :{self.position.line} col : {self.position.col}' def traceBack(self): result = '' position = self.position context = self.context while context : result = f'line {position.line} in {context.name}' + result position = context.parentEntryPosition context = context.parent return result
class Error: def __init__(self, name, details, position): self.name = name self.details = details self.position = position def __str__(self): return f'Error : {self.name} -> {self.details} | line :{self.position.line} col : {self.position.col}' class Illegalcharerror(Error): def __init__(self, details, position): super().__init__('IllegalCharError', details, position) class Invalidsyntaxerror(Error): def __init__(self, details, position): super().__init__('InvalidSyntaxError', details, position) class Runtimeerror(Error): def __init__(self, details, position, context): super().__init__('RunTimeError', details, position) self.context = context def __str__(self): return self.traceBack() + '\n' + f'Error : {self.name} -> {self.details} | line :{self.position.line} col : {self.position.col}' def trace_back(self): result = '' position = self.position context = self.context while context: result = f'line {position.line} in {context.name}' + result position = context.parentEntryPosition context = context.parent return result
#!/usr/bin/env python # Copyright 2016 Zara Zaimeche # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # A common colours file. There's no good reason for this to be a thing, # since there are common libraries for this, but I wanted to make a bad # pun. WHITE = (255, 255, 255) CYAN = (0, 255, 255) MAGENTA = (255, 0, 255) BLACK = (0, 0, 0) ORANGE = (255, 175, 0) BRIGHTRED = (255, 0, 0) RED = (155, 0, 0) PALEGREEN = (150, 255, 150) BRIGHTGREEN = (0, 255, 0) GREEN = (0, 155, 0) BRIGHTBLUE = (0, 0, 255) BLUE = (0, 0, 155) PALEYELLOW = (255, 255, 150) BRIGHTYELLOW = (255, 255, 0) YELLOW = (155, 155, 0) DARKGREY = (50, 50, 50) # for '50' shades of grey
white = (255, 255, 255) cyan = (0, 255, 255) magenta = (255, 0, 255) black = (0, 0, 0) orange = (255, 175, 0) brightred = (255, 0, 0) red = (155, 0, 0) palegreen = (150, 255, 150) brightgreen = (0, 255, 0) green = (0, 155, 0) brightblue = (0, 0, 255) blue = (0, 0, 155) paleyellow = (255, 255, 150) brightyellow = (255, 255, 0) yellow = (155, 155, 0) darkgrey = (50, 50, 50)
graph = { '5' : ['3','7'], '3' : ['2', '4'], '7' : ['8'], '2' : [], '4' : ['8'], '8' : [] } visited = set() def dfs(visited, graph, node): if node not in visited: print (node) visited.add(node) for neighbour in graph[node]: dfs(visited, graph, neighbour) # Driver Code print("Depth-First Search:-") dfs(visited, graph, '5')
graph = {'5': ['3', '7'], '3': ['2', '4'], '7': ['8'], '2': [], '4': ['8'], '8': []} visited = set() def dfs(visited, graph, node): if node not in visited: print(node) visited.add(node) for neighbour in graph[node]: dfs(visited, graph, neighbour) print('Depth-First Search:-') dfs(visited, graph, '5')
#!/usr/bin/env python3 def part1(filename): with open(filename) as f: line = f.readline() floor = 0 for c in line: if c == '(': floor += 1 elif c == ')': floor -= 1 print(floor) def part2(filename): with open(filename) as f: line = f.readline() floor = 0 i = None for (i, c) in enumerate(line, 1): if c == '(': floor += 1 elif c == ')': floor -= 1 if floor == -1: break print(i) if __name__ == '__main__': part1('day01input.txt') part2('day01input.txt')
def part1(filename): with open(filename) as f: line = f.readline() floor = 0 for c in line: if c == '(': floor += 1 elif c == ')': floor -= 1 print(floor) def part2(filename): with open(filename) as f: line = f.readline() floor = 0 i = None for (i, c) in enumerate(line, 1): if c == '(': floor += 1 elif c == ')': floor -= 1 if floor == -1: break print(i) if __name__ == '__main__': part1('day01input.txt') part2('day01input.txt')
alist = ['bob', 'alice', 'tom', 'jerry'] # for i in range(len(alist)): # print(i, alist[i]) print(list(enumerate(alist))) for data in enumerate(alist): print(data) for i, name in enumerate(alist): print(i, name)
alist = ['bob', 'alice', 'tom', 'jerry'] print(list(enumerate(alist))) for data in enumerate(alist): print(data) for (i, name) in enumerate(alist): print(i, name)
test = { 'name': 'q2', 'points': 6, 'suites': [ { 'cases': [ {'code': ">>> model.get_layer(index=0).output_shape[1] \n" '300', 'hidden': False, 'locked': False}, {'code': ">>> model.get_layer(index=1).output_shape[1] \n" '200', 'hidden': False, 'locked': False}, {'code': ">>> model.get_layer(index=2).output_shape[1] \n" '100', 'hidden': False, 'locked': False}, {'code': ">>> model.get_layer(index=3).output_shape[1] \n" '10', 'hidden': False, 'locked': False}, {'code': ">>> model.get_layer(index=3).get_config()['activation'] \n" '\'softmax\'', 'hidden': False, 'locked': False}, {'code': ">>> model.get_layer(index=1).get_config()['activation'] \n" '\'relu\'', 'hidden': False, 'locked': False}, ], 'scored': True, 'setup': '', 'teardown': '', 'type': 'doctest'}]}
test = {'name': 'q2', 'points': 6, 'suites': [{'cases': [{'code': '>>> model.get_layer(index=0).output_shape[1] \n300', 'hidden': False, 'locked': False}, {'code': '>>> model.get_layer(index=1).output_shape[1] \n200', 'hidden': False, 'locked': False}, {'code': '>>> model.get_layer(index=2).output_shape[1] \n100', 'hidden': False, 'locked': False}, {'code': '>>> model.get_layer(index=3).output_shape[1] \n10', 'hidden': False, 'locked': False}, {'code': ">>> model.get_layer(index=3).get_config()['activation'] \n'softmax'", 'hidden': False, 'locked': False}, {'code': ">>> model.get_layer(index=1).get_config()['activation'] \n'relu'", 'hidden': False, 'locked': False}], 'scored': True, 'setup': '', 'teardown': '', 'type': 'doctest'}]}
def linear_search_with_sentinel(arr, key): i = 0 arr.append(key) while arr[i] != key: i += 1 if i == len(arr) - 1: return -1 return i
def linear_search_with_sentinel(arr, key): i = 0 arr.append(key) while arr[i] != key: i += 1 if i == len(arr) - 1: return -1 return i
# No.1/2019-06-10/68 ms/13.3 MB class Solution: def generateParenthesis(self, n: int) -> List[str]: l=['()'] if n==0: return [] for i in range(1,n): newl=[] for string in l: for index in range(len(string)//2+1): temp=string[:index]+'()'+string[index:] if temp not in newl: newl.append(temp) l=newl return l
class Solution: def generate_parenthesis(self, n: int) -> List[str]: l = ['()'] if n == 0: return [] for i in range(1, n): newl = [] for string in l: for index in range(len(string) // 2 + 1): temp = string[:index] + '()' + string[index:] if temp not in newl: newl.append(temp) l = newl return l
#function start def sumtriangle(n): if n == 1: return 1 else: return n+(sumtriangle(n-1)) #recursive function #function end n = int(input("Enter number :")) while (n!= -1): #loop start print(sumtriangle(n)) n = int(input("Enter number :")) print("Finished")
def sumtriangle(n): if n == 1: return 1 else: return n + sumtriangle(n - 1) n = int(input('Enter number :')) while n != -1: print(sumtriangle(n)) n = int(input('Enter number :')) print('Finished')
def generator(num): if num < 0: yield 'negativo' else: yield 'positivo'
def generator(num): if num < 0: yield 'negativo' else: yield 'positivo'
# AUTOGENERATED BY NBDEV! DO NOT EDIT! __all__ = ["index", "modules", "custom_doc_links", "git_url"] index = {"color2num": "00_utils.ipynb", "colorize": "00_utils.ipynb", "calc_logstd_anneal": "00_utils.ipynb", "save_frames_as_gif": "00_utils.ipynb", "conv2d_output_size": "00_utils.ipynb", "num2tuple": "00_utils.ipynb", "conv2d_output_shape": "00_utils.ipynb", "convtransp2d_output_shape": "00_utils.ipynb", "Saver": "00_utils.ipynb", "printdict": "00_utils.ipynb", "PolicyGradientRLDataset": "01_datasets.ipynb", "QPolicyGradientRLDataset": "01_datasets.ipynb", "PGBuffer": "02_buffers.ipynb", "ReplayBuffer": "02_buffers.ipynb", "MLP": "03_neuralnets.ipynb", "CNN": "03_neuralnets.ipynb", "Actor": "03_neuralnets.ipynb", "CategoricalPolicy": "03_neuralnets.ipynb", "GaussianPolicy": "03_neuralnets.ipynb", "ActorCritic": "03_neuralnets.ipynb", "MLPQActor": "03_neuralnets.ipynb", "MLPQFunction": "03_neuralnets.ipynb", "actor_critic_value_loss": "04_losses.ipynb", "reinforce_policy_loss": "04_losses.ipynb", "a2c_policy_loss": "04_losses.ipynb", "ppo_clip_policy_loss": "04_losses.ipynb", "ddpg_policy_loss": "04_losses.ipynb", "ddpg_qfunc_loss": "04_losses.ipynb", "td3_policy_loss": "04_losses.ipynb", "td3_qfunc_loss": "04_losses.ipynb", "sac_policy_loss": "04_losses.ipynb", "sac_qfunc_loss": "04_losses.ipynb", "ToTorchWrapper": "05_env_wrappers.ipynb", "StateNormalizeWrapper": "05_env_wrappers.ipynb", "RewardScalerWrapper": "05_env_wrappers.ipynb", "BestPracticesWrapper": "05_env_wrappers.ipynb", "polgrad_interaction_loop": "06_loops.ipynb", "PPO": "07_algorithms.ipynb"} modules = ["utils.py", "datasets.py", "buffers.py", "neuralnets.py", "losses.py", "env_wrappers.py", "loops.py", "algorithms.py"] doc_url = "https://jfpettit.github.io/rl_bolts/rl_bolts/" git_url = "https://github.com/jfpettit/rl_bolts/tree/master/" def custom_doc_links(name): return None
__all__ = ['index', 'modules', 'custom_doc_links', 'git_url'] index = {'color2num': '00_utils.ipynb', 'colorize': '00_utils.ipynb', 'calc_logstd_anneal': '00_utils.ipynb', 'save_frames_as_gif': '00_utils.ipynb', 'conv2d_output_size': '00_utils.ipynb', 'num2tuple': '00_utils.ipynb', 'conv2d_output_shape': '00_utils.ipynb', 'convtransp2d_output_shape': '00_utils.ipynb', 'Saver': '00_utils.ipynb', 'printdict': '00_utils.ipynb', 'PolicyGradientRLDataset': '01_datasets.ipynb', 'QPolicyGradientRLDataset': '01_datasets.ipynb', 'PGBuffer': '02_buffers.ipynb', 'ReplayBuffer': '02_buffers.ipynb', 'MLP': '03_neuralnets.ipynb', 'CNN': '03_neuralnets.ipynb', 'Actor': '03_neuralnets.ipynb', 'CategoricalPolicy': '03_neuralnets.ipynb', 'GaussianPolicy': '03_neuralnets.ipynb', 'ActorCritic': '03_neuralnets.ipynb', 'MLPQActor': '03_neuralnets.ipynb', 'MLPQFunction': '03_neuralnets.ipynb', 'actor_critic_value_loss': '04_losses.ipynb', 'reinforce_policy_loss': '04_losses.ipynb', 'a2c_policy_loss': '04_losses.ipynb', 'ppo_clip_policy_loss': '04_losses.ipynb', 'ddpg_policy_loss': '04_losses.ipynb', 'ddpg_qfunc_loss': '04_losses.ipynb', 'td3_policy_loss': '04_losses.ipynb', 'td3_qfunc_loss': '04_losses.ipynb', 'sac_policy_loss': '04_losses.ipynb', 'sac_qfunc_loss': '04_losses.ipynb', 'ToTorchWrapper': '05_env_wrappers.ipynb', 'StateNormalizeWrapper': '05_env_wrappers.ipynb', 'RewardScalerWrapper': '05_env_wrappers.ipynb', 'BestPracticesWrapper': '05_env_wrappers.ipynb', 'polgrad_interaction_loop': '06_loops.ipynb', 'PPO': '07_algorithms.ipynb'} modules = ['utils.py', 'datasets.py', 'buffers.py', 'neuralnets.py', 'losses.py', 'env_wrappers.py', 'loops.py', 'algorithms.py'] doc_url = 'https://jfpettit.github.io/rl_bolts/rl_bolts/' git_url = 'https://github.com/jfpettit/rl_bolts/tree/master/' def custom_doc_links(name): return None
def sumofdigits(number): sum = 0 modulus = 0 while number!=0 : modulus = number%10 sum+=modulus number/=10 return sum print(sumofdigits(123))
def sumofdigits(number): sum = 0 modulus = 0 while number != 0: modulus = number % 10 sum += modulus number /= 10 return sum print(sumofdigits(123))
class Solution: def generate(self, numRows: int) -> List[List[int]]: ans = [] for i in range(1, numRows+1): level = [1] * i if ans: for j in range(1, i-1): level[j] = ans[-1][j-1] + ans[-1][j] ans.append(level) return ans
class Solution: def generate(self, numRows: int) -> List[List[int]]: ans = [] for i in range(1, numRows + 1): level = [1] * i if ans: for j in range(1, i - 1): level[j] = ans[-1][j - 1] + ans[-1][j] ans.append(level) return ans
def module_fuel(mass, full_mass=True): '''Calculate the amount of fuel for each part. With full mass also calculate the amount of fuel for the fuel. ''' fuel_mass = (mass // 3) - 2 total = 0 if fuel_mass <= 0: return total elif full_mass: total = fuel_mass + module_fuel(fuel_mass) else: total = fuel_mass return total def calculate_fuel(full_mass=True): '''Read the file and calculate the fuel of each part. ''' with open('input101.txt') as f: parts = f.readlines() test = [module_fuel(int(part.strip()), full_mass) for part in parts] return sum(test) if __name__ == '__main__': ''' To get the amount of fuel required without adding the mass of the fuel pass `full_mass` as False. ''' solution = calculate_fuel() print(f'The amount of fuel required is {solution}')
def module_fuel(mass, full_mass=True): """Calculate the amount of fuel for each part. With full mass also calculate the amount of fuel for the fuel. """ fuel_mass = mass // 3 - 2 total = 0 if fuel_mass <= 0: return total elif full_mass: total = fuel_mass + module_fuel(fuel_mass) else: total = fuel_mass return total def calculate_fuel(full_mass=True): """Read the file and calculate the fuel of each part. """ with open('input101.txt') as f: parts = f.readlines() test = [module_fuel(int(part.strip()), full_mass) for part in parts] return sum(test) if __name__ == '__main__': ' To get the amount of fuel required without adding the mass of the fuel\n pass `full_mass` as False.\n ' solution = calculate_fuel() print(f'The amount of fuel required is {solution}')
def recursive_power(x, y): if y == 0: return 1 if y >= 1: return x * recursive_power(x, y - 1) print(recursive_power(2, 10)) print(recursive_power(10, 100))
def recursive_power(x, y): if y == 0: return 1 if y >= 1: return x * recursive_power(x, y - 1) print(recursive_power(2, 10)) print(recursive_power(10, 100))
primary_duties=[ 'agree', 'agrees', 'duty', 'you will', 'must', 'has to', 'is required', 'requires', 'warrant', 'warrants', 'you shall', 'obligated', 'is liable', 'is responsible for', 'responsibility', 'obligation', 'obligations', 'may not', 'must not', 'not permitted', 'shall not', 'shall NOT', 'will not', 'not eligible', 'nor shall you', 'accept', 'accepts' ] duty_helpers=[ 'shall', 'is to', 'to be', 'acknowledge', 'acknowledges', 'accept', 'accepts', 'understands', 'expectation' ] secondary_duties=[ 'penalty', 'fee', 'pay', 'due', 'responsibility', 'duties', 'responsible', 'expense', 'charge', 'charged', 'prohibited', 'permitted only', 'obligation', 'responsibility', 'resign', 'terminate', 'notified', 'made', 'costs', 'accompanied by', 'reimbursed', 'day', 'days', 'month', 'monts', 'week', 'weeks', 'indemnify', 'do', 'perform', 'assist', 'devote', 'hold', 'disclosed', 'provide', 'reimburse', 'salary' ] primary_rights=[ 'right', 'entitled', 'entitle' ] right_helpers=[ 'shall', 'will', 'is to', 'to be', 'acknowledge', 'acknowledges', 'accept', 'accepts' ] secondary_rights=[ 'paid', 'right', 'pay you', 'eligible', 'benefits', 'reimburse', 'receive', 'grant', 'issued', 'vest', 'reimbursable' 'bonus' ]
primary_duties = ['agree', 'agrees', 'duty', 'you will', 'must', 'has to', 'is required', 'requires', 'warrant', 'warrants', 'you shall', 'obligated', 'is liable', 'is responsible for', 'responsibility', 'obligation', 'obligations', 'may not', 'must not', 'not permitted', 'shall not', 'shall NOT', 'will not', 'not eligible', 'nor shall you', 'accept', 'accepts'] duty_helpers = ['shall', 'is to', 'to be', 'acknowledge', 'acknowledges', 'accept', 'accepts', 'understands', 'expectation'] secondary_duties = ['penalty', 'fee', 'pay', 'due', 'responsibility', 'duties', 'responsible', 'expense', 'charge', 'charged', 'prohibited', 'permitted only', 'obligation', 'responsibility', 'resign', 'terminate', 'notified', 'made', 'costs', 'accompanied by', 'reimbursed', 'day', 'days', 'month', 'monts', 'week', 'weeks', 'indemnify', 'do', 'perform', 'assist', 'devote', 'hold', 'disclosed', 'provide', 'reimburse', 'salary'] primary_rights = ['right', 'entitled', 'entitle'] right_helpers = ['shall', 'will', 'is to', 'to be', 'acknowledge', 'acknowledges', 'accept', 'accepts'] secondary_rights = ['paid', 'right', 'pay you', 'eligible', 'benefits', 'reimburse', 'receive', 'grant', 'issued', 'vest', 'reimbursablebonus']
class DungeonTile: def __init__(self, canvas_tile, is_obstacle): self.canvas_tile = canvas_tile self.is_obstacle = is_obstacle
class Dungeontile: def __init__(self, canvas_tile, is_obstacle): self.canvas_tile = canvas_tile self.is_obstacle = is_obstacle
######## # Copyright (c) 2018 Cloudify Platform Ltd. All rights reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############ class DeploymentModificationState(object): STARTED = 'started' FINISHED = 'finished' ROLLEDBACK = 'rolledback' STATES = [STARTED, FINISHED, ROLLEDBACK] END_STATES = [FINISHED, ROLLEDBACK] class SnapshotState(object): CREATED = 'created' FAILED = 'failed' CREATING = 'creating' UPLOADED = 'uploaded' STATES = [CREATED, FAILED, CREATING, UPLOADED] END_STATES = [CREATED, FAILED, UPLOADED] class ExecutionState(object): TERMINATED = 'terminated' FAILED = 'failed' CANCELLED = 'cancelled' PENDING = 'pending' STARTED = 'started' CANCELLING = 'cancelling' FORCE_CANCELLING = 'force_cancelling' KILL_CANCELLING = 'kill_cancelling' QUEUED = 'queued' SCHEDULED = 'scheduled' STATES = [TERMINATED, FAILED, CANCELLED, PENDING, STARTED, CANCELLING, FORCE_CANCELLING, KILL_CANCELLING, QUEUED, SCHEDULED] WAITING_STATES = [SCHEDULED, QUEUED] QUEUED_STATE = [QUEUED] END_STATES = [TERMINATED, FAILED, CANCELLED] # needs to be separate because python3 doesn't allow `if` in listcomps # using names from class scope ExecutionState.ACTIVE_STATES = [ state for state in ExecutionState.STATES if state not in ExecutionState.END_STATES and state not in ExecutionState.WAITING_STATES ] class VisibilityState(object): PRIVATE = 'private' TENANT = 'tenant' GLOBAL = 'global' STATES = [PRIVATE, TENANT, GLOBAL] class AgentState(object): CREATING = 'creating' CREATED = 'created' CONFIGURING = 'configuring' CONFIGURED = 'configured' STARTING = 'starting' STARTED = 'started' STOPPING = 'stopping' STOPPED = 'stopped' DELETING = 'deleting' DELETED = 'deleted' RESTARTING = 'restarting' RESTARTED = 'restarted' RESTORED = 'restored' UPGRADING = 'upgrading' UPGRADED = 'upgraded' NONRESPONSIVE = 'nonresponsive' FAILED = 'failed' STATES = [CREATING, CREATED, CONFIGURING, CONFIGURED, STARTING, STARTED, STOPPING, STOPPED, DELETING, DELETED, RESTARTING, RESTARTED, UPGRADING, UPGRADED, FAILED, NONRESPONSIVE, RESTORED] class PluginInstallationState(object): PENDING = 'pending-install' INSTALLING = 'installing' INSTALLED = 'installed' ERROR = 'error' PENDING_UNINSTALL = 'pending-uninstall' UNINSTALLING = 'uninstalling' UNINSTALLED = 'uninstalled' class BlueprintUploadState(object): PENDING = 'pending' VALIDATING = 'validating' UPLOADING = 'uploading' EXTRACTING = 'extracting' PARSING = 'parsing' UPLOADED = 'uploaded' FAILED_UPLOADING = 'failed_uploading' FAILED_EXTRACTING = 'failed_extracting' FAILED_PARSING = 'failed_parsing' FAILED_EXTRACTING_TO_FILE_SERVER = 'failed_extracting_to_file_server' INVALID = 'invalid' FAILED_STATES = [FAILED_UPLOADING, FAILED_EXTRACTING, FAILED_PARSING, FAILED_EXTRACTING_TO_FILE_SERVER, INVALID] END_STATES = FAILED_STATES + [UPLOADED] STATES = END_STATES + [PENDING, UPLOADING, EXTRACTING, PARSING]
class Deploymentmodificationstate(object): started = 'started' finished = 'finished' rolledback = 'rolledback' states = [STARTED, FINISHED, ROLLEDBACK] end_states = [FINISHED, ROLLEDBACK] class Snapshotstate(object): created = 'created' failed = 'failed' creating = 'creating' uploaded = 'uploaded' states = [CREATED, FAILED, CREATING, UPLOADED] end_states = [CREATED, FAILED, UPLOADED] class Executionstate(object): terminated = 'terminated' failed = 'failed' cancelled = 'cancelled' pending = 'pending' started = 'started' cancelling = 'cancelling' force_cancelling = 'force_cancelling' kill_cancelling = 'kill_cancelling' queued = 'queued' scheduled = 'scheduled' states = [TERMINATED, FAILED, CANCELLED, PENDING, STARTED, CANCELLING, FORCE_CANCELLING, KILL_CANCELLING, QUEUED, SCHEDULED] waiting_states = [SCHEDULED, QUEUED] queued_state = [QUEUED] end_states = [TERMINATED, FAILED, CANCELLED] ExecutionState.ACTIVE_STATES = [state for state in ExecutionState.STATES if state not in ExecutionState.END_STATES and state not in ExecutionState.WAITING_STATES] class Visibilitystate(object): private = 'private' tenant = 'tenant' global = 'global' states = [PRIVATE, TENANT, GLOBAL] class Agentstate(object): creating = 'creating' created = 'created' configuring = 'configuring' configured = 'configured' starting = 'starting' started = 'started' stopping = 'stopping' stopped = 'stopped' deleting = 'deleting' deleted = 'deleted' restarting = 'restarting' restarted = 'restarted' restored = 'restored' upgrading = 'upgrading' upgraded = 'upgraded' nonresponsive = 'nonresponsive' failed = 'failed' states = [CREATING, CREATED, CONFIGURING, CONFIGURED, STARTING, STARTED, STOPPING, STOPPED, DELETING, DELETED, RESTARTING, RESTARTED, UPGRADING, UPGRADED, FAILED, NONRESPONSIVE, RESTORED] class Plugininstallationstate(object): pending = 'pending-install' installing = 'installing' installed = 'installed' error = 'error' pending_uninstall = 'pending-uninstall' uninstalling = 'uninstalling' uninstalled = 'uninstalled' class Blueprintuploadstate(object): pending = 'pending' validating = 'validating' uploading = 'uploading' extracting = 'extracting' parsing = 'parsing' uploaded = 'uploaded' failed_uploading = 'failed_uploading' failed_extracting = 'failed_extracting' failed_parsing = 'failed_parsing' failed_extracting_to_file_server = 'failed_extracting_to_file_server' invalid = 'invalid' failed_states = [FAILED_UPLOADING, FAILED_EXTRACTING, FAILED_PARSING, FAILED_EXTRACTING_TO_FILE_SERVER, INVALID] end_states = FAILED_STATES + [UPLOADED] states = END_STATES + [PENDING, UPLOADING, EXTRACTING, PARSING]
class loss(object): def __init__(self): self.last_input = None self.grads = {} self.grads_cuda = {} def loss(self, x, labels): raise NotImplementedError def grad(self, x, labels): raise NotImplementedError def loss_cuda(self, x, labels): raise NotImplementedError def grad_cuda(self, x, labels): raise NotImplementedError
class Loss(object): def __init__(self): self.last_input = None self.grads = {} self.grads_cuda = {} def loss(self, x, labels): raise NotImplementedError def grad(self, x, labels): raise NotImplementedError def loss_cuda(self, x, labels): raise NotImplementedError def grad_cuda(self, x, labels): raise NotImplementedError
''' Visualizing USA Medal Counts by Edition: Line Plot Your job in this exercise is to visualize the medal counts by 'Edition' for the USA. The DataFrame has been pre-loaded for you as medals. INSTRUCTIONS 100XP Create a DataFrame usa with data only for the USA. Group usa such that ['Edition', 'Medal'] is the index. Aggregate the count over 'Athlete'. Use .unstack() with level='Medal' to reshape the DataFrame usa_medals_by_year. Construct a line plot from the final DataFrame usa_medals_by_year. This has been done for you, so hit 'Submit Answer' to see the plot! ''' # Create the DataFrame: usa usa = medals[medals.NOC == 'USA'] # Group usa by ['Edition', 'Medal'] and aggregate over 'Athlete' usa_medals_by_year = usa.groupby(['Edition', 'Medal'])['Athlete'].count() # Reshape usa_medals_by_year by unstacking usa_medals_by_year = usa_medals_by_year.unstack(level='Medal') # Plot the DataFrame usa_medals_by_year usa_medals_by_year.plot() plt.show()
""" Visualizing USA Medal Counts by Edition: Line Plot Your job in this exercise is to visualize the medal counts by 'Edition' for the USA. The DataFrame has been pre-loaded for you as medals. INSTRUCTIONS 100XP Create a DataFrame usa with data only for the USA. Group usa such that ['Edition', 'Medal'] is the index. Aggregate the count over 'Athlete'. Use .unstack() with level='Medal' to reshape the DataFrame usa_medals_by_year. Construct a line plot from the final DataFrame usa_medals_by_year. This has been done for you, so hit 'Submit Answer' to see the plot! """ usa = medals[medals.NOC == 'USA'] usa_medals_by_year = usa.groupby(['Edition', 'Medal'])['Athlete'].count() usa_medals_by_year = usa_medals_by_year.unstack(level='Medal') usa_medals_by_year.plot() plt.show()
class ArrayList: DEFAULT_CAPACITY = 64 def __init__(self, physicalSize: int = 0): self.data = None self.logicalSize = 0 self.physicalSize = self.DEFAULT_CAPACITY if physicalSize > 1: self.physicalSize = physicalSize self.data = [0] * self.physicalSize def size(self) -> int: return self.logicalSize def isEmpty(self) -> bool: return self.logicalSize == 0 def get(self, index: int) -> int: if index < 0 or index >= self.logicalSize: raise RuntimeError("[PANIC - IndexOutOfBounds]") return self.data[index] def set(self, index: int, element: object) -> None: if index < 0 or index >= self.logicalSize: raise RuntimeError("[PANIC - IndexOutOfBounds]") self.data[index] = element def insert(self, index: int, element: object) -> None: if index < 0 or index > self.logicalSize: raise RuntimeError("[PANIC - IndexOutOfBounds]") if self.logicalSize == self.physicalSize: newCapacity = self.DEFAULT_CAPACITY if self.physicalSize >= self.DEFAULT_CAPACITY: newCapacity = self.physicalSize + (self.physicalSize >> 1) temp = [0] * newCapacity for i in range(self.logicalSize): temp[i] = self.data[i] self.data = temp self.physicalSize = newCapacity for i in range(self.logicalSize, index, -1): self.data[i] = self.data[i - 1] self.data[index] = element self.logicalSize += 1 def remove(self, index: int) -> None: if index < 0 or index >= self.logicalSize: raise RuntimeError("[PANIC - IndexOutOfBounds]") for i in range(index + 1, self.logicalSize): self.data[i - 1] = self.data[i] self.logicalSize -= 1 self.data[self.logicalSize] = None def front(self) -> int: return self.get(0) def back(self) -> int: return self.get(self.logicalSize - 1) def prepend(self, element: object) -> None: self.insert(0, element) def append(self, element: object) -> None: self.insert(self.logicalSize, element) def poll(self) -> None: self.remove(0) def eject(self) -> None: self.remove(self.logicalSize - 1) def capacity(self) -> int: return self.physicalSize def shrink(self) -> None: temp = [0] * self.logicalSize for i in range(self.logicalSize): temp[i] = self.data[i] self.data = temp self.physicalSize = self.logicalSize
class Arraylist: default_capacity = 64 def __init__(self, physicalSize: int=0): self.data = None self.logicalSize = 0 self.physicalSize = self.DEFAULT_CAPACITY if physicalSize > 1: self.physicalSize = physicalSize self.data = [0] * self.physicalSize def size(self) -> int: return self.logicalSize def is_empty(self) -> bool: return self.logicalSize == 0 def get(self, index: int) -> int: if index < 0 or index >= self.logicalSize: raise runtime_error('[PANIC - IndexOutOfBounds]') return self.data[index] def set(self, index: int, element: object) -> None: if index < 0 or index >= self.logicalSize: raise runtime_error('[PANIC - IndexOutOfBounds]') self.data[index] = element def insert(self, index: int, element: object) -> None: if index < 0 or index > self.logicalSize: raise runtime_error('[PANIC - IndexOutOfBounds]') if self.logicalSize == self.physicalSize: new_capacity = self.DEFAULT_CAPACITY if self.physicalSize >= self.DEFAULT_CAPACITY: new_capacity = self.physicalSize + (self.physicalSize >> 1) temp = [0] * newCapacity for i in range(self.logicalSize): temp[i] = self.data[i] self.data = temp self.physicalSize = newCapacity for i in range(self.logicalSize, index, -1): self.data[i] = self.data[i - 1] self.data[index] = element self.logicalSize += 1 def remove(self, index: int) -> None: if index < 0 or index >= self.logicalSize: raise runtime_error('[PANIC - IndexOutOfBounds]') for i in range(index + 1, self.logicalSize): self.data[i - 1] = self.data[i] self.logicalSize -= 1 self.data[self.logicalSize] = None def front(self) -> int: return self.get(0) def back(self) -> int: return self.get(self.logicalSize - 1) def prepend(self, element: object) -> None: self.insert(0, element) def append(self, element: object) -> None: self.insert(self.logicalSize, element) def poll(self) -> None: self.remove(0) def eject(self) -> None: self.remove(self.logicalSize - 1) def capacity(self) -> int: return self.physicalSize def shrink(self) -> None: temp = [0] * self.logicalSize for i in range(self.logicalSize): temp[i] = self.data[i] self.data = temp self.physicalSize = self.logicalSize
# Function for nth Fibonacci number def Fibonacci(n): # First Fibonacci number is 0 if n == 0: return 0 # Second Fibonacci number is 1 elif n == 1: return 1 else: return Fibonacci(n - 1) + Fibonacci(n - 2) k = input("Enter a Number. Do not enter any string or symbol") try: if int(k) >= 0: for i in range(int(k)): print(Fibonacci(i)) else: print("its a negative number") except: print("Hey stupid enter only number")
def fibonacci(n): if n == 0: return 0 elif n == 1: return 1 else: return fibonacci(n - 1) + fibonacci(n - 2) k = input('Enter a Number. Do not enter any string or symbol') try: if int(k) >= 0: for i in range(int(k)): print(fibonacci(i)) else: print('its a negative number') except: print('Hey stupid enter only number')
def checkpalindromic(num): i = 1 newNum = num while i <= 50: newNum = newNum + int(str(newNum)[::-1]) i = i + 1 if str(newNum) == str(newNum)[::-1]: return True return False ans = 0 for i in range(1,10000): if not checkpalindromic(i): ans += 1 print(ans)
def checkpalindromic(num): i = 1 new_num = num while i <= 50: new_num = newNum + int(str(newNum)[::-1]) i = i + 1 if str(newNum) == str(newNum)[::-1]: return True return False ans = 0 for i in range(1, 10000): if not checkpalindromic(i): ans += 1 print(ans)
with open('mar27') as f: content = f.readlines() for line in content: split = line.split(' ') if split[0] == 'Episode:': print("("+str(int(split[1])) + "," + split[3].split("\n")[0] + ")")
with open('mar27') as f: content = f.readlines() for line in content: split = line.split(' ') if split[0] == 'Episode:': print('(' + str(int(split[1])) + ',' + split[3].split('\n')[0] + ')')
mystring="hello world" #Print Complete string print(mystring) print(mystring[::]) #indexing of string print(mystring[0]) print(mystring[4]) #slicing print(mystring[1:7]) print(mystring[0:10:2]) # Methods print(mystring.upper()) print(mystring.split()) #formatting print("hello world {},".format("Loki")) print("hello world {}, {}, {}".format("Loki", "INSERTING", "NEWFORMATTING")) print("hello world {1}, {2}, {0}".format("By Loki", "INSERTING", "NEWFORMATTING"))
mystring = 'hello world' print(mystring) print(mystring[:]) print(mystring[0]) print(mystring[4]) print(mystring[1:7]) print(mystring[0:10:2]) print(mystring.upper()) print(mystring.split()) print('hello world {},'.format('Loki')) print('hello world {}, {}, {}'.format('Loki', 'INSERTING', 'NEWFORMATTING')) print('hello world {1}, {2}, {0}'.format('By Loki', 'INSERTING', 'NEWFORMATTING'))
## Advent of Code 2018: Day 8 ## https://adventofcode.com/2018/day/8 ## Jesse Williams ## Answers: [Part 1]: 36566, [Part 2]: 30548 class Node(object): def __init__(self, chs, mds): self.header = (chs, mds) # number of child nodes and metadata entries as specified in the node header self.childNodes = [] # list of all child nodes (instances of Node class) self.metadataList = [] # list of metadata entries (ints) def getMetadataSum(self): # Returns the sum of all metadata in this node and all child nodes. Sum = 0 for node in self.childNodes: Sum += node.getMetadataSum() Sum += sum(self.metadataList) return Sum def getNodeValue(self): value = 0 children = self.header[0] if children == 0: # no child nodes return sum(self.metadataList) else: for mdEntry in self.metadataList: if (0 < mdEntry <= children): # (if mdEntry > children or mdEntry == 0, nothing is added to the value) value += self.childNodes[mdEntry-1].getNodeValue() return value def readNode(tree, ptr, n): newNodes = [] for _ in range(n): (children, metadata) = (tree[ptr], tree[ptr+1]) newNode = Node(children, metadata) ptr += 2 newChildNodes, ptr = readNode(tree, ptr, children) # if there were no children, loop inside this function will pass newNode.childNodes += newChildNodes # At the end of each iteration (after we return from any recursion), read the metadata at the end of the node. newNode.metadataList = tree[ptr : ptr+metadata] ptr += metadata newNodes.append(newNode) return newNodes, ptr if __name__ == "__main__": with open('day8_input.txt') as f: treeStr = f.read() tree = [int(s) for s in treeStr.split()] # Start the recursive chain with the pointer at 0 and the number of children at 1 (the root node). # The main call to this function will return the root node object with all other child nodes nested inside. rootNode = readNode(tree, 0, 1)[0][0] ## Part 1 print('\nThe sum of all metadata entries in the tree is {}.'.format(rootNode.getMetadataSum())) ## Part 2 print('\nThe "value" of the root node is {}.'.format(rootNode.getNodeValue()))
class Node(object): def __init__(self, chs, mds): self.header = (chs, mds) self.childNodes = [] self.metadataList = [] def get_metadata_sum(self): sum = 0 for node in self.childNodes: sum += node.getMetadataSum() sum += sum(self.metadataList) return Sum def get_node_value(self): value = 0 children = self.header[0] if children == 0: return sum(self.metadataList) else: for md_entry in self.metadataList: if 0 < mdEntry <= children: value += self.childNodes[mdEntry - 1].getNodeValue() return value def read_node(tree, ptr, n): new_nodes = [] for _ in range(n): (children, metadata) = (tree[ptr], tree[ptr + 1]) new_node = node(children, metadata) ptr += 2 (new_child_nodes, ptr) = read_node(tree, ptr, children) newNode.childNodes += newChildNodes newNode.metadataList = tree[ptr:ptr + metadata] ptr += metadata newNodes.append(newNode) return (newNodes, ptr) if __name__ == '__main__': with open('day8_input.txt') as f: tree_str = f.read() tree = [int(s) for s in treeStr.split()] root_node = read_node(tree, 0, 1)[0][0] print('\nThe sum of all metadata entries in the tree is {}.'.format(rootNode.getMetadataSum())) print('\nThe "value" of the root node is {}.'.format(rootNode.getNodeValue()))
'A somewhat inefficient (because of string.index) cypher' plaintext = 'meet me at the usual place' fromLetters = 'abcdefghijklmnopqrstuv0123456789 ' toLetters = '6n4pde3fs 2c1ivjr05lq8utbgam7hk9o' for plaintext_char in plaintext: from_letters_index: int = fromLetters.index(plaintext_char) encrypted_letter: str = toLetters[from_letters_index] print(f'{plaintext_char} -> {encrypted_letter}') print() cyphertext = '1ddlo1do6lolfdoq5q6cojc64d' for cyphertext_char in cyphertext: to_letters_index: int = toLetters.index(cyphertext_char) decrypted_letter: str = fromLetters[to_letters_index] print(decrypted_letter, end='')
"""A somewhat inefficient (because of string.index) cypher""" plaintext = 'meet me at the usual place' from_letters = 'abcdefghijklmnopqrstuv0123456789 ' to_letters = '6n4pde3fs 2c1ivjr05lq8utbgam7hk9o' for plaintext_char in plaintext: from_letters_index: int = fromLetters.index(plaintext_char) encrypted_letter: str = toLetters[from_letters_index] print(f'{plaintext_char} -> {encrypted_letter}') print() cyphertext = '1ddlo1do6lolfdoq5q6cojc64d' for cyphertext_char in cyphertext: to_letters_index: int = toLetters.index(cyphertext_char) decrypted_letter: str = fromLetters[to_letters_index] print(decrypted_letter, end='')
def common_ground(s1,s2): words = s2.split() return ' '.join(sorted((a for a in set(s1.split()) if a in words), key=lambda b: words.index(b))) or 'death'
def common_ground(s1, s2): words = s2.split() return ' '.join(sorted((a for a in set(s1.split()) if a in words), key=lambda b: words.index(b))) or 'death'
#contador = 0 #print("2 elevado a la" + str(contador) + " es igual a: " + str(2**contador)) contador = 1 print("2 elevado a la" + str(contador) + " es igual a: " + str(2**contador))
contador = 1 print('2 elevado a la' + str(contador) + ' es igual a: ' + str(2 ** contador))
# Building a stack using python list class Stack: def __init__(self): self.items = [] def is_empty(self): return self.items == [] def push(self, item): self.items.append(item) def pop(self): if self.is_empty() == True: return None else: return self.items.pop() def top_stack(self): if not self.is_empty(): return self.items[-1] # Testing MyStack = Stack() MyStack.push("Web Page 1") MyStack.push("Web Page 2") MyStack.push("Web Page 3") print (MyStack.items) print(MyStack.top_stack()) MyStack.pop() MyStack.pop() print(MyStack.pop())
class Stack: def __init__(self): self.items = [] def is_empty(self): return self.items == [] def push(self, item): self.items.append(item) def pop(self): if self.is_empty() == True: return None else: return self.items.pop() def top_stack(self): if not self.is_empty(): return self.items[-1] my_stack = stack() MyStack.push('Web Page 1') MyStack.push('Web Page 2') MyStack.push('Web Page 3') print(MyStack.items) print(MyStack.top_stack()) MyStack.pop() MyStack.pop() print(MyStack.pop())
def maxArea(height) -> int: res=0 length=len(height) for x in range(length): if height[x]==0: continue prev_y=0 for y in range(length-1,x,-1): if (height[y]<=prev_y): continue prev_y=height[y] area=min(height[x],height[y])*(y-x) if (res<area): res=area return res print(maxArea([2,3,4,5,18,17,6]))
def max_area(height) -> int: res = 0 length = len(height) for x in range(length): if height[x] == 0: continue prev_y = 0 for y in range(length - 1, x, -1): if height[y] <= prev_y: continue prev_y = height[y] area = min(height[x], height[y]) * (y - x) if res < area: res = area return res print(max_area([2, 3, 4, 5, 18, 17, 6]))
class Solution: def checkIfExist(self, arr: List[int]) -> bool: m = {} for n in arr: if n in m: m[n] += 1 else: m[n] = 1 for n in arr: if n * 2 in m and n is not 0: return True elif n is 0 and m[n] == 2: return True return False
class Solution: def check_if_exist(self, arr: List[int]) -> bool: m = {} for n in arr: if n in m: m[n] += 1 else: m[n] = 1 for n in arr: if n * 2 in m and n is not 0: return True elif n is 0 and m[n] == 2: return True return False
class Parent: def __init__(self, last_name, eye_color): self.last_name = last_name self.eye_color = eye_color def show_info(self): print("Last name - "+self.last_name) print("Eye color - "+self.eye_color) class Child(Parent): def __init__(self, last_name, eye_color, number_toys): Parent.__init__(self, last_name, eye_color) self.number_toys = number_toys def show_info(self): print("Last name - " + self.last_name) print("Eye color - " + self.eye_color) print("Number of toys - " + str(self.number_toys)) billy = Parent("Rocket", "blue") # print(billy.last_name) sophie = Child("Flowers", "green", 5) # print(sophie.last_name) billy.show_info() sophie.show_info()
class Parent: def __init__(self, last_name, eye_color): self.last_name = last_name self.eye_color = eye_color def show_info(self): print('Last name - ' + self.last_name) print('Eye color - ' + self.eye_color) class Child(Parent): def __init__(self, last_name, eye_color, number_toys): Parent.__init__(self, last_name, eye_color) self.number_toys = number_toys def show_info(self): print('Last name - ' + self.last_name) print('Eye color - ' + self.eye_color) print('Number of toys - ' + str(self.number_toys)) billy = parent('Rocket', 'blue') sophie = child('Flowers', 'green', 5) billy.show_info() sophie.show_info()
# # PySNMP MIB module HUAWEI-PWE3-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HUAWEI-PWE3-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:34:00 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") ValueRangeConstraint, ValueSizeConstraint, ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection") hwDatacomm, = mibBuilder.importSymbols("HUAWEI-MIB", "hwDatacomm") HWL2VpnVcEncapsType, HWEnableValue, HWL2VpnStateChangeReason = mibBuilder.importSymbols("HUAWEI-VPLS-EXT-MIB", "HWL2VpnVcEncapsType", "HWEnableValue", "HWL2VpnStateChangeReason") ifName, InterfaceIndexOrZero = mibBuilder.importSymbols("IF-MIB", "ifName", "InterfaceIndexOrZero") InetAddressType, = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddressType") EnabledStatus, = mibBuilder.importSymbols("P-BRIDGE-MIB", "EnabledStatus") NotificationGroup, ObjectGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ObjectGroup", "ModuleCompliance") sysUpTime, = mibBuilder.importSymbols("SNMPv2-MIB", "sysUpTime") Counter32, Counter64, IpAddress, iso, ModuleIdentity, NotificationType, Gauge32, Integer32, ObjectIdentity, MibIdentifier, Unsigned32, Bits, Bits, TimeTicks, MibScalar, MibTable, MibTableRow, MibTableColumn = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "Counter64", "IpAddress", "iso", "ModuleIdentity", "NotificationType", "Gauge32", "Integer32", "ObjectIdentity", "MibIdentifier", "Unsigned32", "Bits", "Bits", "TimeTicks", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn") TextualConvention, RowStatus, DisplayString, TruthValue = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "RowStatus", "DisplayString", "TruthValue") hwL2VpnPwe3 = ModuleIdentity((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4)) if mibBuilder.loadTexts: hwL2VpnPwe3.setLastUpdated('200704120900Z') if mibBuilder.loadTexts: hwL2VpnPwe3.setOrganization('Huawei Technologies Co., Ltd.') class HWLdpPwStateChangeReason(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6)) namedValues = NamedValues(("ldpSessionDown", 1), ("interfaceDown", 2), ("tunnelDown", 3), ("receivedNoMapping", 4), ("paraUnMatched", 5), ("notifiNotForward", 6)) hwL2Vpn = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119)) hwPwe3MIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1)) hwPwe3Objects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1)) hwPWVcTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1), ) if mibBuilder.loadTexts: hwPWVcTable.setStatus('current') hwPWVcEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1), ).setIndexNames((0, "HUAWEI-PWE3-MIB", "hwPWVcID"), (0, "HUAWEI-PWE3-MIB", "hwPWVcType")) if mibBuilder.loadTexts: hwPWVcEntry.setStatus('current') hwPWVcID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 1), Unsigned32()) if mibBuilder.loadTexts: hwPWVcID.setStatus('current') hwPWVcType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 2), HWL2VpnVcEncapsType()) if mibBuilder.loadTexts: hwPWVcType.setStatus('current') hwPWVcPeerAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 3), InetAddressType().clone('ipv4')).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcPeerAddrType.setStatus('current') hwPWVcPeerAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 4), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcPeerAddr.setStatus('current') hwPWVcStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("plugout", 3), ("backup", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcStatus.setStatus('current') hwPWVcInboundLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 6), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcInboundLabel.setStatus('current') hwPWVcOutboundLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 7), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcOutboundLabel.setStatus('current') hwPWVcSwitchSign = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("staticTostatic", 1), ("ldpTostatic", 2), ("ldpToldp", 3), ("upe", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcSwitchSign.setStatus('current') hwPWVcSwitchID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 9), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcSwitchID.setStatus('current') hwPWVcSwitchPeerAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 10), InetAddressType().clone('ipv4')).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcSwitchPeerAddrType.setStatus('current') hwPWVcSwitchPeerAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 11), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcSwitchPeerAddr.setStatus('current') hwPWVcSwitchInboundLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 12), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcSwitchInboundLabel.setStatus('current') hwPWVcSwitchOutboundLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 13), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcSwitchOutboundLabel.setStatus('current') hwPWVcGroupID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 14), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcGroupID.setStatus('current') hwPWVcIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 15), InterfaceIndexOrZero()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcIfIndex.setStatus('current') hwPWVcAcStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("plugout", 3), ("notify", 4), ("notifyDown", 5), ("downNotify", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcAcStatus.setStatus('current') hwPWVcACOAMStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("up", 1), ("down", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcACOAMStatus.setStatus('current') hwPWVcMtu = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(46, 9600), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcMtu.setStatus('current') hwPWVcCtrlWord = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 19), HWEnableValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcCtrlWord.setStatus('current') hwPWVcVCCV = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 20), Bits().clone(namedValues=NamedValues(("ccCw", 0), ("ccAlert", 1), ("ccLabel", 2), ("cvIcmpping", 3), ("cvLspping", 4), ("cvBfd", 5), ("ccTtl", 6)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcVCCV.setStatus('current') hwPWVcBandWidth = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 21), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 32000000))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcBandWidth.setStatus('current') hwPWVcMaxAtmCells = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 22), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 28))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcMaxAtmCells.setStatus('current') hwPWVcTnlPolicyName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 23), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 39))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcTnlPolicyName.setStatus('current') hwPWVcQoSBehaviorIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 24), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcQoSBehaviorIndex.setStatus('current') hwPWVcExplicitPathName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 25), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcExplicitPathName.setStatus('current') hwPWVcTemplateName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 26), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 19))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcTemplateName.setStatus('current') hwPWVcSecondary = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 27), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcSecondary.setStatus('current') hwPWVcUpTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 28), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcUpTime.setStatus('current') hwPWOAMSync = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 29), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWOAMSync.setStatus('current') hwPWVCForBfdIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 30), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVCForBfdIndex.setStatus('current') hwPWVcDelayTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 31), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcDelayTime.setStatus('current') hwPWVcReroutePolicy = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 32), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("delay", 1), ("immediately", 2), ("never", 3), ("none", 4), ("err", 5), ("invalid", 6), ("immediatelySwitch", 7)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcReroutePolicy.setStatus('current') hwPWVcResumeTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 33), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcResumeTime.setStatus('current') hwPWVcRerouteReason = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 34), HWL2VpnStateChangeReason()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcRerouteReason.setStatus('current') hwPWVcLastRerouteTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 35), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcLastRerouteTime.setStatus('current') hwPWVcManualSetFault = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 36), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcManualSetFault.setStatus('current') hwPWVcActive = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 37), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcActive.setStatus('current') hwPWVcVrIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 38), InterfaceIndexOrZero()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcVrIfIndex.setStatus('current') hwPWVcVrID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 39), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcVrID.setStatus('current') hwPWBFDDetectMultiplier = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 40), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(3, 50), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWBFDDetectMultiplier.setStatus('current') hwPWBFDMinReceiveInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 41), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(3, 1000), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWBFDMinReceiveInterval.setStatus('current') hwPWBFDMinTransmitInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 42), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(3, 1000), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWBFDMinTransmitInterval.setStatus('current') hwPWDynamicBFDDetect = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 43), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWDynamicBFDDetect.setStatus('current') hwPWBFDRemoteVcID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 44), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWBFDRemoteVcID.setStatus('current') hwPWEthOamType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 45), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("ethOam1ag", 1), ("ethOam3ah", 2), ("noEthOamCfg", 3)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWEthOamType.setStatus('current') hwPWCfmMaIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 46), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 4095), ValueRangeConstraint(4294967295, 4294967295), ))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWCfmMaIndex.setStatus('current') hwPWVcUpStartTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 47), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 63))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcUpStartTime.setStatus('current') hwPWVcUpSumTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 48), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcUpSumTime.setStatus('current') hwPWVcIfName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 49), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 63))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcIfName.setStatus('current') hwPWVcRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 51), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcRowStatus.setStatus('current') hwPWVcAtmPackOvertime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 52), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(100, 50000), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcAtmPackOvertime.setStatus('current') hwPWVcPwJitterBufferDepth = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 53), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 64))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcPwJitterBufferDepth.setStatus('current') hwPWVcPwTdmEncapsulationNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 54), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 40))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcPwTdmEncapsulationNum.setStatus('current') hwPWVcPwIdleCode = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 55), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 255), ValueRangeConstraint(65535, 65535), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcPwIdleCode.setStatus('current') hwPWVcPwRtpHeader = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 56), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcPwRtpHeader.setStatus('current') hwPWVcSwitchTnlPolicyName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 57), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 39))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcSwitchTnlPolicyName.setStatus('current') hwPWVcCfmMdIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 58), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 4095), ValueRangeConstraint(4294967295, 4294967295), ))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcCfmMdIndex.setStatus('current') hwPWVcCfmMaName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 59), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 43))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcCfmMaName.setStatus('current') hwPWVcCfmMdName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 60), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 43))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcCfmMdName.setStatus('current') hwPWVcRawOrTagged = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 61), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("raw", 1), ("tagged", 2), ("rawTagNotConfiged", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcRawOrTagged.setStatus('current') hwPWVcInterworkingType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 62), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("ipInterWorking", 1), ("ipLayer2", 2), ("ipUnknown", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcInterworkingType.setStatus('current') hwPWVcCir = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 63), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcCir.setStatus('current') hwPWVcPir = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 64), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcPir.setStatus('current') hwPWVcQosProfile = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 65), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcQosProfile.setStatus('current') hwPWVcSwitchCir = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 66), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcSwitchCir.setStatus('current') hwPWVcSwitchPir = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 67), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcSwitchPir.setStatus('current') hwPWVcSwitchQosProfile = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 68), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcSwitchQosProfile.setStatus('current') hwPWVcTrigger = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 69), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcTrigger.setStatus('current') hwPWVcEnableACOAM = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 70), EnabledStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcEnableACOAM.setStatus('current') hwPWVcSwitchVrIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 71), InterfaceIndexOrZero()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcSwitchVrIfIndex.setStatus('current') hwPWVcSwitchVrID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 72), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWVcSwitchVrID.setStatus('current') hwPWVcQosParaFromPWT = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 73), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("cliOrMib", 1), ("pwTemplate", 2), ("unknown", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcQosParaFromPWT.setStatus('current') hwPWVcBfdParaFromPWT = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 74), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("cliOrMib", 1), ("pwTemplate", 2), ("unknown", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcBfdParaFromPWT.setStatus('current') hwPwVcNegotiateMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 75), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("slaveOrMaster", 1), ("independent", 2), ("unknown", 3), ("frr", 4)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPwVcNegotiateMode.setStatus('current') hwPwVcIsBypass = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 76), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPwVcIsBypass.setStatus('current') hwPwVcIsAdmin = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 77), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPwVcIsAdmin.setStatus('current') hwPwVcAdminPwIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 78), InterfaceIndexOrZero()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPwVcAdminPwIfIndex.setStatus('current') hwPwVcAdminPwLinkStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 79), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("unknown", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPwVcAdminPwLinkStatus.setStatus('current') hwPwVcSwitchAdminPwIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 80), InterfaceIndexOrZero()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPwVcSwitchAdminPwIfIndex.setStatus('current') hwPwVcSwitchAdminPwLinkStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 81), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("unknown", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPwVcSwitchAdminPwLinkStatus.setStatus('current') hwPwVcSwitchBackupAdminPwIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 82), InterfaceIndexOrZero()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPwVcSwitchBackupAdminPwIfIndex.setStatus('current') hwPwVcSwitchBackupAdminPwLinkStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 83), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("unknown", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPwVcSwitchBackupAdminPwLinkStatus.setStatus('current') hwPwVcSwitchBackupVcId = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 84), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPwVcSwitchBackupVcId.setStatus('current') hwPwVcSwitchBackupVcPeerAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 85), InetAddressType()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPwVcSwitchBackupVcPeerAddrType.setStatus('current') hwPwVcSwitchBackupVcPeerAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 86), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPwVcSwitchBackupVcPeerAddr.setStatus('current') hwPwVcSwitchBackupVcReceiveLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 87), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPwVcSwitchBackupVcReceiveLabel.setStatus('current') hwPwVcSwitchBackupVcSendLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 88), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPwVcSwitchBackupVcSendLabel.setStatus('current') hwPwVcSwitchBackupVcTnlPolicyName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 89), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 19))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPwVcSwitchBackupVcTnlPolicyName.setStatus('current') hwPwVcSwitchBackupVcCir = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 90), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPwVcSwitchBackupVcCir.setStatus('current') hwPwVcSwitchBackupVcPir = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 91), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPwVcSwitchBackupVcPir.setStatus('current') hwPwVcSwitchBackupVcQosProfile = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 92), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPwVcSwitchBackupVcQosProfile.setStatus('current') hwPwVcSlaveMasterMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 93), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("slave", 1), ("master", 2), ("unknown", 3), ("bypass", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPwVcSlaveMasterMode.setStatus('current') hwPwVcSwitchVcSlaveMasterMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 94), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("slave", 1), ("master", 2), ("unknown", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPwVcSwitchVcSlaveMasterMode.setStatus('current') hwPwVcSwitchBackupVcSlaveMasterMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 95), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("slave", 1), ("master", 2), ("unknown", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPwVcSwitchBackupVcSlaveMasterMode.setStatus('current') hwPwVcSwitchVcActive = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 96), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPwVcSwitchVcActive.setStatus('current') hwPwVcSwitchBackupVcActive = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 97), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPwVcSwitchBackupVcActive.setStatus('current') hwPwVcSwitchCwTrans = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 98), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPwVcSwitchCwTrans.setStatus('current') hwPwVcSwitchVcServiceName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 99), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 100))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPwVcSwitchVcServiceName.setStatus('current') hwPwVcSwitchBackupVcServiceName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 100), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 100))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPwVcSwitchBackupVcServiceName.setStatus('current') hwPWVcTnlTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 2), ) if mibBuilder.loadTexts: hwPWVcTnlTable.setStatus('current') hwPWVcTnlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 2, 1), ).setIndexNames((0, "HUAWEI-PWE3-MIB", "hwPWVcID"), (0, "HUAWEI-PWE3-MIB", "hwPWVcType"), (0, "HUAWEI-PWE3-MIB", "hwPWVcTnlIndex")) if mibBuilder.loadTexts: hwPWVcTnlEntry.setStatus('current') hwPWVcTnlIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 2, 1, 1), Unsigned32()) if mibBuilder.loadTexts: hwPWVcTnlIndex.setStatus('current') hwPWVcTnlType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("lsp", 1), ("gre", 2), ("ipsec", 3), ("crLsp", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcTnlType.setStatus('current') hwPWTnlForBfdIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 2, 1, 3), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWTnlForBfdIndex.setStatus('current') hwPWVcStatisticsTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 3), ) if mibBuilder.loadTexts: hwPWVcStatisticsTable.setStatus('current') hwPWVcStatisticsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 3, 1), ).setIndexNames((0, "HUAWEI-PWE3-MIB", "hwPWVcID"), (0, "HUAWEI-PWE3-MIB", "hwPWVcType")) if mibBuilder.loadTexts: hwPWVcStatisticsEntry.setStatus('current') hwPWVcStatisticsRcvPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 3, 1, 1), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcStatisticsRcvPkts.setStatus('current') hwPWVcStatisticsRcvBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 3, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcStatisticsRcvBytes.setStatus('current') hwPWVcStatisticsSndPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 3, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcStatisticsSndPkts.setStatus('current') hwPWVcStatisticsSndBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 3, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcStatisticsSndBytes.setStatus('current') hwPWRemoteVcTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4), ) if mibBuilder.loadTexts: hwPWRemoteVcTable.setStatus('current') hwPWRemoteVcEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1), ).setIndexNames((0, "HUAWEI-PWE3-MIB", "hwPWVcID"), (0, "HUAWEI-PWE3-MIB", "hwPWVcType")) if mibBuilder.loadTexts: hwPWRemoteVcEntry.setStatus('current') hwPWRemoteVcID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 1), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWRemoteVcID.setStatus('current') hwPWRemoteVcType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 2), HWL2VpnVcEncapsType()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWRemoteVcType.setStatus('current') hwPWRemoteVcStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("plugout", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWRemoteVcStatus.setStatus('current') hwPWRemoteVcGroupID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWRemoteVcGroupID.setStatus('current') hwPWRemoteVcMtu = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 5), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(46, 9600), ))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWRemoteVcMtu.setStatus('current') hwPWRemoteVcCtrlword = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 6), HWEnableValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWRemoteVcCtrlword.setStatus('current') hwPWRemoteVcMaxAtmCells = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWRemoteVcMaxAtmCells.setStatus('current') hwPWRemoteVcNotif = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 8), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWRemoteVcNotif.setStatus('current') hwPWVcSwitchNotifEnable = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 5), HWEnableValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwPWVcSwitchNotifEnable.setStatus('current') hwPWVcUpDownNotifEnable = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 6), HWEnableValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwPWVcUpDownNotifEnable.setStatus('current') hwPWVcDeletedNotifEnable = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 7), HWEnableValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwPWVcDeletedNotifEnable.setStatus('current') hwPWVcStateChangeReason = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 8), HWL2VpnStateChangeReason()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwPWVcStateChangeReason.setStatus('current') hwPWVcSwitchRmtID = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 9), Unsigned32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwPWVcSwitchRmtID.setStatus('current') hwLdpPWStateChangeReason = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 10), HWLdpPwStateChangeReason()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwLdpPWStateChangeReason.setStatus('current') hwPWVcTDMPerfCurrentTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11), ) if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentTable.setStatus('current') hwPWVcTDMPerfCurrentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1), ).setIndexNames((0, "HUAWEI-PWE3-MIB", "hwPWVcID"), (0, "HUAWEI-PWE3-MIB", "hwPWVcType")) if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentEntry.setStatus('current') hwPWVcTDMPerfCurrentMissingPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 1), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentMissingPkts.setStatus('current') hwPWVcTDMPerfCurrentJtrBfrOverruns = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 2), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentJtrBfrOverruns.setStatus('current') hwPWVcTDMPerfCurrentJtrBfrUnderruns = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 3), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentJtrBfrUnderruns.setStatus('current') hwPWVcTDMPerfCurrentMisOrderDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentMisOrderDropped.setStatus('current') hwPWVcTDMPerfCurrentMalformedPkt = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 5), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentMalformedPkt.setStatus('current') hwPWVcTDMPerfCurrentESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 6), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentESs.setStatus('current') hwPWVcTDMPerfCurrentSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 7), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentSESs.setStatus('current') hwPWVcTDMPerfCurrentUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 8), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentUASs.setStatus('current') hwPwe3MIBTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2)) hwPWVcSwitchWtoP = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 1)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcCtrlWord"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchRmtID"), ("HUAWEI-PWE3-MIB", "hwPWVcStateChangeReason"), ("HUAWEI-PWE3-MIB", "hwPWVcIfName")) if mibBuilder.loadTexts: hwPWVcSwitchWtoP.setStatus('current') hwPWVcSwitchPtoW = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 2)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcCtrlWord"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchRmtID"), ("HUAWEI-PWE3-MIB", "hwPWVcStateChangeReason"), ("HUAWEI-PWE3-MIB", "hwPWVcIfName")) if mibBuilder.loadTexts: hwPWVcSwitchPtoW.setStatus('current') hwPWVcDown = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 3)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcPeerAddr"), ("HUAWEI-PWE3-MIB", "hwPWVcIfIndex"), ("HUAWEI-PWE3-MIB", "hwPWVcInboundLabel"), ("HUAWEI-PWE3-MIB", "hwPWVcOutboundLabel"), ("HUAWEI-PWE3-MIB", "hwPWVcSecondary"), ("HUAWEI-PWE3-MIB", "hwPWVcStateChangeReason"), ("SNMPv2-MIB", "sysUpTime"), ("HUAWEI-PWE3-MIB", "hwPWVcIfName"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchID"), ("HUAWEI-PWE3-MIB", "hwPWVcTnlPolicyName")) if mibBuilder.loadTexts: hwPWVcDown.setStatus('current') hwPWVcUp = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 4)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcPeerAddr"), ("HUAWEI-PWE3-MIB", "hwPWVcIfIndex"), ("HUAWEI-PWE3-MIB", "hwPWVcInboundLabel"), ("HUAWEI-PWE3-MIB", "hwPWVcOutboundLabel"), ("HUAWEI-PWE3-MIB", "hwPWVcSecondary"), ("HUAWEI-PWE3-MIB", "hwPWVcStateChangeReason"), ("SNMPv2-MIB", "sysUpTime"), ("HUAWEI-PWE3-MIB", "hwPWVcIfName"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchID"), ("HUAWEI-PWE3-MIB", "hwPWVcTnlPolicyName")) if mibBuilder.loadTexts: hwPWVcUp.setStatus('current') hwPWVcDeleted = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 5)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcPeerAddr"), ("HUAWEI-PWE3-MIB", "hwPWVcIfIndex"), ("HUAWEI-PWE3-MIB", "hwPWVcInboundLabel"), ("HUAWEI-PWE3-MIB", "hwPWVcOutboundLabel"), ("HUAWEI-PWE3-MIB", "hwPWVcSecondary"), ("HUAWEI-PWE3-MIB", "hwPWVcIfName"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchID")) if mibBuilder.loadTexts: hwPWVcDeleted.setStatus('current') hwPWVcBackup = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 6)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcPeerAddr"), ("HUAWEI-PWE3-MIB", "hwPWVcIfIndex"), ("HUAWEI-PWE3-MIB", "hwPWVcInboundLabel"), ("HUAWEI-PWE3-MIB", "hwPWVcOutboundLabel"), ("HUAWEI-PWE3-MIB", "hwPWVcSecondary"), ("HUAWEI-PWE3-MIB", "hwPWVcStateChangeReason"), ("SNMPv2-MIB", "sysUpTime"), ("HUAWEI-PWE3-MIB", "hwPWVcIfName"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchID")) if mibBuilder.loadTexts: hwPWVcBackup.setStatus('current') hwLdpPWVcDown = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 7)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcPeerAddr"), ("HUAWEI-PWE3-MIB", "hwLdpPWStateChangeReason")) if mibBuilder.loadTexts: hwLdpPWVcDown.setStatus('current') hwLdpPWVcUp = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 8)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcPeerAddr"), ("HUAWEI-PWE3-MIB", "hwLdpPWStateChangeReason")) if mibBuilder.loadTexts: hwLdpPWVcUp.setStatus('current') hwSvcObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3)) hwSvcTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1), ) if mibBuilder.loadTexts: hwSvcTable.setStatus('current') hwSvcEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1), ).setIndexNames((0, "HUAWEI-PWE3-MIB", "hwSvcIfIndex")) if mibBuilder.loadTexts: hwSvcEntry.setStatus('current') hwSvcIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 1), InterfaceIndexOrZero()) if mibBuilder.loadTexts: hwSvcIfIndex.setStatus('current') hwSvcID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 2), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcID.setStatus('current') hwSvcType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 3), HWL2VpnVcEncapsType()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcType.setStatus('current') hwSvcPeerAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 4), InetAddressType().clone('ipv4')).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcPeerAddrType.setStatus('current') hwSvcPeerAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 5), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcPeerAddr.setStatus('current') hwSvcStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("plugout", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcStatus.setStatus('current') hwSvcInboundLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 7), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcInboundLabel.setStatus('current') hwSvcOutboundLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 8), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcOutboundLabel.setStatus('current') hwSvcGroupID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 9), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcGroupID.setStatus('current') hwSvcAcStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("plugout", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcAcStatus.setStatus('current') hwSvcACOAMStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("up", 1), ("down", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcACOAMStatus.setStatus('current') hwSvcMtu = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(46, 9600), ))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcMtu.setStatus('current') hwSvcCtrlWord = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 13), HWEnableValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcCtrlWord.setStatus('current') hwSvcVCCV = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 14), Bits().clone(namedValues=NamedValues(("ccCw", 0), ("ccAlert", 1), ("ccLabel", 2), ("cvIcmpping", 3), ("cvLspping", 4), ("cvBfd", 5)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcVCCV.setStatus('current') hwSvcBandWidth = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 15), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 32000000))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcBandWidth.setStatus('current') hwSvcMaxAtmCells = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 16), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 28))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcMaxAtmCells.setStatus('current') hwSvcTnlPolicyName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 17), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 39))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcTnlPolicyName.setStatus('current') hwSvcQoSBehaviorIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 18), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcQoSBehaviorIndex.setStatus('current') hwSvcPWTemplateName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 19), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 19))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcPWTemplateName.setStatus('current') hwSvcUpTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 20), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcUpTime.setStatus('current') hwSvcOAMSync = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 21), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcOAMSync.setStatus('current') hwSvcForBfdIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 22), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcForBfdIndex.setStatus('current') hwSvcSecondary = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 23), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcSecondary.setStatus('current') hwSvcDelayTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 24), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcDelayTime.setStatus('current') hwSvcReroutePolicy = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 25), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("delay", 1), ("immediately", 2), ("never", 3), ("none", 4), ("err", 5), ("invalid", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcReroutePolicy.setStatus('current') hwSvcResumeTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 26), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcResumeTime.setStatus('current') hwSvcRerouteReason = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 27), HWL2VpnStateChangeReason()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcRerouteReason.setStatus('current') hwSvcLastRerouteTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 28), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcLastRerouteTime.setStatus('current') hwSvcManualSetFault = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 29), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcManualSetFault.setStatus('current') hwSvcActive = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 30), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcActive.setStatus('current') hwSvcUpStartTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 31), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 63))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcUpStartTime.setStatus('current') hwSvcUpSumTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 32), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcUpSumTime.setStatus('current') hwSvcAtmPackOvertime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 33), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(100, 50000), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcAtmPackOvertime.setStatus('current') hwSvcPwJitterBufferDepth = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 34), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 64))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcPwJitterBufferDepth.setStatus('current') hwSvcPwTdmEncapsulationNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 35), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 40))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcPwTdmEncapsulationNum.setStatus('current') hwSvcPwIdleCode = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 36), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 255), ValueRangeConstraint(65535, 65535), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcPwIdleCode.setStatus('current') hwSvcPwRtpHeader = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 37), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcPwRtpHeader.setStatus('current') hwSvcRawOrTagged = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 38), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("raw", 1), ("tagged", 2), ("rawTagNotConfiged", 3)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcRawOrTagged.setStatus('current') hwSvcInterworkingType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 39), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("ipInterWorking", 1), ("ipLayer2", 2), ("ipUnknown", 3)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcInterworkingType.setStatus('current') hwSvcCir = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 40), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcCir.setStatus('current') hwSvcPir = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 41), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcPir.setStatus('current') hwSvcQosProfile = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 42), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcQosProfile.setStatus('current') hwSvcRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 51), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwSvcRowStatus.setStatus('current') hwSvcTnlTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 2), ) if mibBuilder.loadTexts: hwSvcTnlTable.setStatus('current') hwSvcTnlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 2, 1), ).setIndexNames((0, "HUAWEI-PWE3-MIB", "hwSvcIfIndex"), (0, "HUAWEI-PWE3-MIB", "hwSvcTnlIndex")) if mibBuilder.loadTexts: hwSvcTnlEntry.setStatus('current') hwSvcTnlIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 2, 1, 1), Unsigned32()) if mibBuilder.loadTexts: hwSvcTnlIndex.setStatus('current') hwSvcTnlType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("lsp", 1), ("gre", 2), ("ipsec", 3), ("crLsp", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcTnlType.setStatus('current') hwSvcTnlForBfdIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 2, 1, 3), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcTnlForBfdIndex.setStatus('current') hwSvcStatisticsTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 3), ) if mibBuilder.loadTexts: hwSvcStatisticsTable.setStatus('current') hwSvcStatisticsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 3, 1), ).setIndexNames((0, "HUAWEI-PWE3-MIB", "hwSvcIfIndex")) if mibBuilder.loadTexts: hwSvcStatisticsEntry.setStatus('current') hwSvcStatisticsRcvPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 3, 1, 1), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcStatisticsRcvPkts.setStatus('current') hwSvcStatisticsRcvBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 3, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcStatisticsRcvBytes.setStatus('current') hwSvcStatisticsSndPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 3, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcStatisticsSndPkts.setStatus('current') hwSvcStatisticsSndBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 3, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwSvcStatisticsSndBytes.setStatus('current') hwSvcSwitchNotifEnable = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 4), HWEnableValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwSvcSwitchNotifEnable.setStatus('current') hwSvcUpDownNotifEnable = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 5), HWEnableValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwSvcUpDownNotifEnable.setStatus('current') hwSvcDeletedNotifEnable = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 6), HWEnableValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwSvcDeletedNotifEnable.setStatus('current') hwSvcStateChangeReason = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 7), HWL2VpnStateChangeReason()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwSvcStateChangeReason.setStatus('current') hwL2vpnSvcMIBTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 4)) hwSvcSwitchWtoP = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 4, 1)).setObjects(("HUAWEI-PWE3-MIB", "hwSvcID"), ("HUAWEI-PWE3-MIB", "hwSvcType"), ("HUAWEI-PWE3-MIB", "hwSvcCtrlWord"), ("HUAWEI-PWE3-MIB", "hwSvcStateChangeReason"), ("IF-MIB", "ifName")) if mibBuilder.loadTexts: hwSvcSwitchWtoP.setStatus('current') hwSvcSwitchPtoW = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 4, 2)).setObjects(("HUAWEI-PWE3-MIB", "hwSvcID"), ("HUAWEI-PWE3-MIB", "hwSvcType"), ("HUAWEI-PWE3-MIB", "hwSvcCtrlWord"), ("HUAWEI-PWE3-MIB", "hwSvcStateChangeReason"), ("IF-MIB", "ifName")) if mibBuilder.loadTexts: hwSvcSwitchPtoW.setStatus('current') hwSvcDown = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 4, 3)).setObjects(("HUAWEI-PWE3-MIB", "hwSvcID"), ("HUAWEI-PWE3-MIB", "hwSvcType"), ("HUAWEI-PWE3-MIB", "hwSvcPeerAddr"), ("HUAWEI-PWE3-MIB", "hwSvcInboundLabel"), ("HUAWEI-PWE3-MIB", "hwSvcOutboundLabel"), ("HUAWEI-PWE3-MIB", "hwSvcStateChangeReason"), ("IF-MIB", "ifName"), ("HUAWEI-PWE3-MIB", "hwSvcTnlPolicyName")) if mibBuilder.loadTexts: hwSvcDown.setStatus('current') hwSvcUp = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 4, 4)).setObjects(("HUAWEI-PWE3-MIB", "hwSvcID"), ("HUAWEI-PWE3-MIB", "hwSvcType"), ("HUAWEI-PWE3-MIB", "hwSvcPeerAddr"), ("HUAWEI-PWE3-MIB", "hwSvcInboundLabel"), ("HUAWEI-PWE3-MIB", "hwSvcOutboundLabel"), ("HUAWEI-PWE3-MIB", "hwSvcStateChangeReason"), ("IF-MIB", "ifName"), ("HUAWEI-PWE3-MIB", "hwSvcTnlPolicyName")) if mibBuilder.loadTexts: hwSvcUp.setStatus('current') hwSvcDeleted = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 4, 5)).setObjects(("HUAWEI-PWE3-MIB", "hwSvcID"), ("HUAWEI-PWE3-MIB", "hwSvcType"), ("HUAWEI-PWE3-MIB", "hwSvcPeerAddr"), ("HUAWEI-PWE3-MIB", "hwSvcInboundLabel"), ("HUAWEI-PWE3-MIB", "hwSvcOutboundLabel")) if mibBuilder.loadTexts: hwSvcDeleted.setStatus('current') hwPWTemplateTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5), ) if mibBuilder.loadTexts: hwPWTemplateTable.setStatus('current') hwPWTemplateEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1), ).setIndexNames((0, "HUAWEI-PWE3-MIB", "hwPWTemplateName")) if mibBuilder.loadTexts: hwPWTemplateEntry.setStatus('current') hwPWTemplateName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 19))) if mibBuilder.loadTexts: hwPWTemplateName.setStatus('current') hwPWTemplatePeerAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 2), InetAddressType().clone('ipv4')).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplatePeerAddrType.setStatus('current') hwPWTemplatePeerAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 3), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplatePeerAddr.setStatus('current') hwPWTemplateCtrlword = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 4), HWEnableValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplateCtrlword.setStatus('current') hwPWTemplateVCCV = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 5), Bits().clone(namedValues=NamedValues(("ccCw", 0), ("ccAlert", 1), ("ccLabel", 2), ("cvIcmpping", 3), ("cvLspping", 4), ("cvBfd", 5), ("ccTtl", 6)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplateVCCV.setStatus('current') hwPWTemplateFrag = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 6), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplateFrag.setStatus('current') hwPWTemplateBandwidth = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32000000))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWTemplateBandwidth.setStatus('current') hwPWTemplateTnlPolicyName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 8), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 39))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplateTnlPolicyName.setStatus('current') hwPWTemplateQoSBehaviorIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 9), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplateQoSBehaviorIndex.setStatus('current') hwPWTemplateExplicitPathName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 10), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplateExplicitPathName.setStatus('current') hwPWTemplateBFDDetectMultiplier = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 11), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(3, 50), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplateBFDDetectMultiplier.setStatus('current') hwPWTemplateBFDMinReceiveInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 12), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(3, 1000), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplateBFDMinReceiveInterval.setStatus('current') hwPWTemplateBFDMinTransmitInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 13), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(3, 1000), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplateBFDMinTransmitInterval.setStatus('current') hwPWTemplateDynamicBFDDetect = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 14), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplateDynamicBFDDetect.setStatus('current') hwPWTemplateMaxAtmCells = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 15), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 28))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplateMaxAtmCells.setStatus('current') hwPWTemplateAtmPackOvertime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 16), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(100, 50000), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplateAtmPackOvertime.setStatus('current') hwPWTemplatePwJitterBufferDepth = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 17), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 64))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplatePwJitterBufferDepth.setStatus('current') hwPWTemplatePwTdmEncapsulationNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 18), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 40))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplatePwTdmEncapsulationNum.setStatus('current') hwPWTemplatePwIdleCode = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 19), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 255), ValueRangeConstraint(65535, 65535), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplatePwIdleCode.setStatus('current') hwPWTemplatePwRtpHeader = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 20), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplatePwRtpHeader.setStatus('current') hwPWTemplatePwCCSeqEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 21), HWEnableValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplatePwCCSeqEnable.setStatus('current') hwPWTemplateCir = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 22), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplateCir.setStatus('current') hwPWTemplatePir = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 23), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplatePir.setStatus('current') hwPWTemplateQosProfile = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 24), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplateQosProfile.setStatus('current') hwPWTemplateFlowLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 25), EnabledStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplateFlowLabel.setStatus('current') hwPWTemplateRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 51), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPWTemplateRowStatus.setStatus('current') hwPWTemplateMIBTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 6)) hwPWTemplateCannotDeleted = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 6, 1)).setObjects(("HUAWEI-PWE3-MIB", "hwPWTemplateName")) if mibBuilder.loadTexts: hwPWTemplateCannotDeleted.setStatus('current') hwPWTableObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7)) hwPWTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7, 1), ) if mibBuilder.loadTexts: hwPWTable.setStatus('current') hwPWEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7, 1, 1), ).setIndexNames((0, "HUAWEI-PWE3-MIB", "hwPWId"), (0, "HUAWEI-PWE3-MIB", "hwPWType"), (0, "HUAWEI-PWE3-MIB", "hwPWPeerIp")) if mibBuilder.loadTexts: hwPWEntry.setStatus('current') hwPWId = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7, 1, 1, 1), Unsigned32()) if mibBuilder.loadTexts: hwPWId.setStatus('current') hwPWType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7, 1, 1, 2), HWL2VpnVcEncapsType()) if mibBuilder.loadTexts: hwPWType.setStatus('current') hwPWPeerIp = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7, 1, 1, 3), IpAddress()) if mibBuilder.loadTexts: hwPWPeerIp.setStatus('current') hwPWInterfaceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7, 1, 1, 4), InterfaceIndexOrZero()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPWInterfaceIndex.setStatus('current') hwPwe3MIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3)) hwPwe3MIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 1)) hwPwe3MIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 1, 1)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcGroup"), ("HUAWEI-PWE3-MIB", "hwPWVcTnlGroup"), ("HUAWEI-PWE3-MIB", "hwPWVcStatisticsGroup"), ("HUAWEI-PWE3-MIB", "hwPWRemoteVcGroup"), ("HUAWEI-PWE3-MIB", "hwPWTemplateGroup"), ("HUAWEI-PWE3-MIB", "hwPWNotificationControlGroup"), ("HUAWEI-PWE3-MIB", "hwPWVcStateChangeReasonGroup"), ("HUAWEI-PWE3-MIB", "hwPWVcNotificationGroup"), ("HUAWEI-PWE3-MIB", "hwPWTableGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwPwe3MIBCompliance = hwPwe3MIBCompliance.setStatus('current') hwPwe3MIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2)) hwPWVcGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 1)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcPeerAddrType"), ("HUAWEI-PWE3-MIB", "hwPWVcPeerAddr"), ("HUAWEI-PWE3-MIB", "hwPWVcStatus"), ("HUAWEI-PWE3-MIB", "hwPWVcInboundLabel"), ("HUAWEI-PWE3-MIB", "hwPWVcOutboundLabel"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchSign"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchID"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchPeerAddrType"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchPeerAddr"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchInboundLabel"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchOutboundLabel"), ("HUAWEI-PWE3-MIB", "hwPWVcGroupID"), ("HUAWEI-PWE3-MIB", "hwPWVcIfIndex"), ("HUAWEI-PWE3-MIB", "hwPWVcAcStatus"), ("HUAWEI-PWE3-MIB", "hwPWVcACOAMStatus"), ("HUAWEI-PWE3-MIB", "hwPWVcMtu"), ("HUAWEI-PWE3-MIB", "hwPWVcCtrlWord"), ("HUAWEI-PWE3-MIB", "hwPWVcVCCV"), ("HUAWEI-PWE3-MIB", "hwPWVcBandWidth"), ("HUAWEI-PWE3-MIB", "hwPWVcMaxAtmCells"), ("HUAWEI-PWE3-MIB", "hwPWVcTnlPolicyName"), ("HUAWEI-PWE3-MIB", "hwPWVcQoSBehaviorIndex"), ("HUAWEI-PWE3-MIB", "hwPWVcExplicitPathName"), ("HUAWEI-PWE3-MIB", "hwPWVcTemplateName"), ("HUAWEI-PWE3-MIB", "hwPWVcSecondary"), ("HUAWEI-PWE3-MIB", "hwPWVcUpTime"), ("HUAWEI-PWE3-MIB", "hwPWOAMSync"), ("HUAWEI-PWE3-MIB", "hwPWVCForBfdIndex"), ("HUAWEI-PWE3-MIB", "hwPWVcDelayTime"), ("HUAWEI-PWE3-MIB", "hwPWVcReroutePolicy"), ("HUAWEI-PWE3-MIB", "hwPWVcResumeTime"), ("HUAWEI-PWE3-MIB", "hwPWVcRerouteReason"), ("HUAWEI-PWE3-MIB", "hwPWVcLastRerouteTime"), ("HUAWEI-PWE3-MIB", "hwPWVcManualSetFault"), ("HUAWEI-PWE3-MIB", "hwPWVcActive"), ("HUAWEI-PWE3-MIB", "hwPWVcVrIfIndex"), ("HUAWEI-PWE3-MIB", "hwPWVcVrID"), ("HUAWEI-PWE3-MIB", "hwPWBFDDetectMultiplier"), ("HUAWEI-PWE3-MIB", "hwPWBFDMinReceiveInterval"), ("HUAWEI-PWE3-MIB", "hwPWBFDMinTransmitInterval"), ("HUAWEI-PWE3-MIB", "hwPWDynamicBFDDetect"), ("HUAWEI-PWE3-MIB", "hwPWBFDRemoteVcID"), ("HUAWEI-PWE3-MIB", "hwPWEthOamType"), ("HUAWEI-PWE3-MIB", "hwPWCfmMaIndex"), ("HUAWEI-PWE3-MIB", "hwPWVcUpStartTime"), ("HUAWEI-PWE3-MIB", "hwPWVcUpSumTime"), ("HUAWEI-PWE3-MIB", "hwPWVcIfName"), ("HUAWEI-PWE3-MIB", "hwPWVcRowStatus"), ("HUAWEI-PWE3-MIB", "hwPWVcAtmPackOvertime"), ("HUAWEI-PWE3-MIB", "hwPWVcPwJitterBufferDepth"), ("HUAWEI-PWE3-MIB", "hwPWVcPwTdmEncapsulationNum"), ("HUAWEI-PWE3-MIB", "hwPWVcPwIdleCode"), ("HUAWEI-PWE3-MIB", "hwPWVcPwRtpHeader"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchTnlPolicyName"), ("HUAWEI-PWE3-MIB", "hwPWVcCfmMdIndex"), ("HUAWEI-PWE3-MIB", "hwPWVcCfmMaName"), ("HUAWEI-PWE3-MIB", "hwPWVcCfmMdName"), ("HUAWEI-PWE3-MIB", "hwPWVcRawOrTagged"), ("HUAWEI-PWE3-MIB", "hwPWVcInterworkingType"), ("HUAWEI-PWE3-MIB", "hwPWVcCir"), ("HUAWEI-PWE3-MIB", "hwPWVcPir"), ("HUAWEI-PWE3-MIB", "hwPWVcQosProfile"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchCir"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchPir"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchQosProfile"), ("HUAWEI-PWE3-MIB", "hwPWVcTrigger"), ("HUAWEI-PWE3-MIB", "hwPWVcEnableACOAM"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchVrIfIndex"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchVrID"), ("HUAWEI-PWE3-MIB", "hwPWVcQosParaFromPWT"), ("HUAWEI-PWE3-MIB", "hwPWVcBfdParaFromPWT"), ("HUAWEI-PWE3-MIB", "hwPwVcNegotiateMode"), ("HUAWEI-PWE3-MIB", "hwPwVcIsBypass"), ("HUAWEI-PWE3-MIB", "hwPwVcIsAdmin"), ("HUAWEI-PWE3-MIB", "hwPwVcAdminPwIfIndex"), ("HUAWEI-PWE3-MIB", "hwPwVcAdminPwLinkStatus"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchAdminPwIfIndex"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchAdminPwLinkStatus"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupAdminPwIfIndex"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupAdminPwLinkStatus"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupVcId"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupVcPeerAddrType"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupVcPeerAddr"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupVcReceiveLabel"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupVcSendLabel"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupVcTnlPolicyName"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupVcCir"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupVcPir"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupVcQosProfile"), ("HUAWEI-PWE3-MIB", "hwPwVcSlaveMasterMode"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchVcSlaveMasterMode"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupVcSlaveMasterMode"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchVcActive"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupVcActive"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchCwTrans"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchVcServiceName"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupVcServiceName")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwPWVcGroup = hwPWVcGroup.setStatus('current') hwPWVcTnlGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 2)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcTnlType"), ("HUAWEI-PWE3-MIB", "hwPWTnlForBfdIndex")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwPWVcTnlGroup = hwPWVcTnlGroup.setStatus('current') hwPWVcStatisticsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 3)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcStatisticsRcvPkts"), ("HUAWEI-PWE3-MIB", "hwPWVcStatisticsRcvBytes"), ("HUAWEI-PWE3-MIB", "hwPWVcStatisticsSndPkts"), ("HUAWEI-PWE3-MIB", "hwPWVcStatisticsSndBytes")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwPWVcStatisticsGroup = hwPWVcStatisticsGroup.setStatus('current') hwPWRemoteVcGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 4)).setObjects(("HUAWEI-PWE3-MIB", "hwPWRemoteVcID"), ("HUAWEI-PWE3-MIB", "hwPWRemoteVcType"), ("HUAWEI-PWE3-MIB", "hwPWRemoteVcStatus"), ("HUAWEI-PWE3-MIB", "hwPWRemoteVcGroupID"), ("HUAWEI-PWE3-MIB", "hwPWRemoteVcMtu"), ("HUAWEI-PWE3-MIB", "hwPWRemoteVcCtrlword"), ("HUAWEI-PWE3-MIB", "hwPWRemoteVcMaxAtmCells"), ("HUAWEI-PWE3-MIB", "hwPWRemoteVcNotif")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwPWRemoteVcGroup = hwPWRemoteVcGroup.setStatus('current') hwPWTemplateGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 5)).setObjects(("HUAWEI-PWE3-MIB", "hwPWTemplatePeerAddrType"), ("HUAWEI-PWE3-MIB", "hwPWTemplatePeerAddr"), ("HUAWEI-PWE3-MIB", "hwPWTemplateCtrlword"), ("HUAWEI-PWE3-MIB", "hwPWTemplateVCCV"), ("HUAWEI-PWE3-MIB", "hwPWTemplateFrag"), ("HUAWEI-PWE3-MIB", "hwPWTemplateBandwidth"), ("HUAWEI-PWE3-MIB", "hwPWTemplateTnlPolicyName"), ("HUAWEI-PWE3-MIB", "hwPWTemplateQoSBehaviorIndex"), ("HUAWEI-PWE3-MIB", "hwPWTemplateExplicitPathName"), ("HUAWEI-PWE3-MIB", "hwPWTemplateBFDDetectMultiplier"), ("HUAWEI-PWE3-MIB", "hwPWTemplateBFDMinReceiveInterval"), ("HUAWEI-PWE3-MIB", "hwPWTemplateBFDMinTransmitInterval"), ("HUAWEI-PWE3-MIB", "hwPWTemplateDynamicBFDDetect"), ("HUAWEI-PWE3-MIB", "hwPWTemplateMaxAtmCells"), ("HUAWEI-PWE3-MIB", "hwPWTemplateAtmPackOvertime"), ("HUAWEI-PWE3-MIB", "hwPWTemplatePwJitterBufferDepth"), ("HUAWEI-PWE3-MIB", "hwPWTemplatePwTdmEncapsulationNum"), ("HUAWEI-PWE3-MIB", "hwPWTemplatePwIdleCode"), ("HUAWEI-PWE3-MIB", "hwPWTemplatePwRtpHeader"), ("HUAWEI-PWE3-MIB", "hwPWTemplatePwCCSeqEnable"), ("HUAWEI-PWE3-MIB", "hwPWTemplateCir"), ("HUAWEI-PWE3-MIB", "hwPWTemplatePir"), ("HUAWEI-PWE3-MIB", "hwPWTemplateQosProfile"), ("HUAWEI-PWE3-MIB", "hwPWTemplateFlowLabel"), ("HUAWEI-PWE3-MIB", "hwPWTemplateRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwPWTemplateGroup = hwPWTemplateGroup.setStatus('current') hwPWNotificationControlGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 6)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcSwitchNotifEnable"), ("HUAWEI-PWE3-MIB", "hwPWVcUpDownNotifEnable"), ("HUAWEI-PWE3-MIB", "hwPWVcDeletedNotifEnable")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwPWNotificationControlGroup = hwPWNotificationControlGroup.setStatus('current') hwPWVcStateChangeReasonGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 7)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcStateChangeReason"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchRmtID")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwPWVcStateChangeReasonGroup = hwPWVcStateChangeReasonGroup.setStatus('current') hwPWVcNotificationGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 8)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcSwitchWtoP"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchPtoW"), ("HUAWEI-PWE3-MIB", "hwPWVcDown"), ("HUAWEI-PWE3-MIB", "hwPWVcUp"), ("HUAWEI-PWE3-MIB", "hwPWVcDeleted"), ("HUAWEI-PWE3-MIB", "hwPWVcBackup"), ("HUAWEI-PWE3-MIB", "hwLdpPWVcDown"), ("HUAWEI-PWE3-MIB", "hwLdpPWVcUp")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwPWVcNotificationGroup = hwPWVcNotificationGroup.setStatus('current') hwLdpPWStateChangeReasonGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 9)).setObjects(("HUAWEI-PWE3-MIB", "hwLdpPWStateChangeReason")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwLdpPWStateChangeReasonGroup = hwLdpPWStateChangeReasonGroup.setStatus('current') hwPWVcTDMPerfCurrentGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 10)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcTDMPerfCurrentMissingPkts"), ("HUAWEI-PWE3-MIB", "hwPWVcTDMPerfCurrentJtrBfrOverruns"), ("HUAWEI-PWE3-MIB", "hwPWVcTDMPerfCurrentJtrBfrUnderruns"), ("HUAWEI-PWE3-MIB", "hwPWVcTDMPerfCurrentMisOrderDropped"), ("HUAWEI-PWE3-MIB", "hwPWVcTDMPerfCurrentMalformedPkt"), ("HUAWEI-PWE3-MIB", "hwPWVcTDMPerfCurrentESs"), ("HUAWEI-PWE3-MIB", "hwPWVcTDMPerfCurrentSESs"), ("HUAWEI-PWE3-MIB", "hwPWVcTDMPerfCurrentUASs")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwPWVcTDMPerfCurrentGroup = hwPWVcTDMPerfCurrentGroup.setStatus('current') hwL2vpnSvcMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3)) hwSvcGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3, 1)).setObjects(("HUAWEI-PWE3-MIB", "hwSvcID"), ("HUAWEI-PWE3-MIB", "hwSvcType"), ("HUAWEI-PWE3-MIB", "hwSvcPeerAddrType"), ("HUAWEI-PWE3-MIB", "hwSvcPeerAddr"), ("HUAWEI-PWE3-MIB", "hwSvcStatus"), ("HUAWEI-PWE3-MIB", "hwSvcInboundLabel"), ("HUAWEI-PWE3-MIB", "hwSvcOutboundLabel"), ("HUAWEI-PWE3-MIB", "hwSvcGroupID"), ("HUAWEI-PWE3-MIB", "hwSvcAcStatus"), ("HUAWEI-PWE3-MIB", "hwSvcACOAMStatus"), ("HUAWEI-PWE3-MIB", "hwSvcMtu"), ("HUAWEI-PWE3-MIB", "hwSvcCtrlWord"), ("HUAWEI-PWE3-MIB", "hwSvcVCCV"), ("HUAWEI-PWE3-MIB", "hwSvcBandWidth"), ("HUAWEI-PWE3-MIB", "hwSvcMaxAtmCells"), ("HUAWEI-PWE3-MIB", "hwSvcTnlPolicyName"), ("HUAWEI-PWE3-MIB", "hwSvcQoSBehaviorIndex"), ("HUAWEI-PWE3-MIB", "hwSvcPWTemplateName"), ("HUAWEI-PWE3-MIB", "hwSvcUpTime"), ("HUAWEI-PWE3-MIB", "hwSvcOAMSync"), ("HUAWEI-PWE3-MIB", "hwSvcForBfdIndex"), ("HUAWEI-PWE3-MIB", "hwSvcSecondary"), ("HUAWEI-PWE3-MIB", "hwSvcDelayTime"), ("HUAWEI-PWE3-MIB", "hwSvcReroutePolicy"), ("HUAWEI-PWE3-MIB", "hwSvcResumeTime"), ("HUAWEI-PWE3-MIB", "hwSvcRerouteReason"), ("HUAWEI-PWE3-MIB", "hwSvcLastRerouteTime"), ("HUAWEI-PWE3-MIB", "hwSvcManualSetFault"), ("HUAWEI-PWE3-MIB", "hwSvcActive"), ("HUAWEI-PWE3-MIB", "hwSvcUpStartTime"), ("HUAWEI-PWE3-MIB", "hwSvcUpSumTime"), ("HUAWEI-PWE3-MIB", "hwSvcAtmPackOvertime"), ("HUAWEI-PWE3-MIB", "hwSvcPwJitterBufferDepth"), ("HUAWEI-PWE3-MIB", "hwSvcPwTdmEncapsulationNum"), ("HUAWEI-PWE3-MIB", "hwSvcPwIdleCode"), ("HUAWEI-PWE3-MIB", "hwSvcPwRtpHeader"), ("HUAWEI-PWE3-MIB", "hwSvcRawOrTagged"), ("HUAWEI-PWE3-MIB", "hwSvcInterworkingType"), ("HUAWEI-PWE3-MIB", "hwSvcCir"), ("HUAWEI-PWE3-MIB", "hwSvcPir"), ("HUAWEI-PWE3-MIB", "hwSvcQosProfile"), ("HUAWEI-PWE3-MIB", "hwSvcRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwSvcGroup = hwSvcGroup.setStatus('current') hwSvcTnlGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3, 2)).setObjects(("HUAWEI-PWE3-MIB", "hwSvcTnlType"), ("HUAWEI-PWE3-MIB", "hwSvcTnlForBfdIndex")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwSvcTnlGroup = hwSvcTnlGroup.setStatus('current') hwSvcStatisticsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3, 3)).setObjects(("HUAWEI-PWE3-MIB", "hwSvcStatisticsRcvPkts"), ("HUAWEI-PWE3-MIB", "hwSvcStatisticsRcvBytes"), ("HUAWEI-PWE3-MIB", "hwSvcStatisticsSndPkts"), ("HUAWEI-PWE3-MIB", "hwSvcStatisticsSndBytes")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwSvcStatisticsGroup = hwSvcStatisticsGroup.setStatus('current') hwSvcNotificationControlGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3, 4)).setObjects(("HUAWEI-PWE3-MIB", "hwSvcSwitchNotifEnable"), ("HUAWEI-PWE3-MIB", "hwSvcUpDownNotifEnable"), ("HUAWEI-PWE3-MIB", "hwSvcDeletedNotifEnable")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwSvcNotificationControlGroup = hwSvcNotificationControlGroup.setStatus('current') hwSvcStateChangeReasonGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3, 5)).setObjects(("HUAWEI-PWE3-MIB", "hwSvcStateChangeReason")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwSvcStateChangeReasonGroup = hwSvcStateChangeReasonGroup.setStatus('current') hwSvcNotificationGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3, 6)).setObjects(("HUAWEI-PWE3-MIB", "hwSvcSwitchWtoP"), ("HUAWEI-PWE3-MIB", "hwSvcSwitchPtoW"), ("HUAWEI-PWE3-MIB", "hwSvcDown"), ("HUAWEI-PWE3-MIB", "hwSvcUp"), ("HUAWEI-PWE3-MIB", "hwSvcDeleted")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwSvcNotificationGroup = hwSvcNotificationGroup.setStatus('current') hwL2vpnPWTableMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 4)) hwPWTableGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 4, 1)).setObjects(("HUAWEI-PWE3-MIB", "hwPWInterfaceIndex")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwPWTableGroup = hwPWTableGroup.setStatus('current') mibBuilder.exportSymbols("HUAWEI-PWE3-MIB", hwPWVcAcStatus=hwPWVcAcStatus, hwPWVcPwRtpHeader=hwPWVcPwRtpHeader, hwPWVcManualSetFault=hwPWVcManualSetFault, hwPWVcSwitchPeerAddr=hwPWVcSwitchPeerAddr, hwPWVcOutboundLabel=hwPWVcOutboundLabel, hwPWVcUpTime=hwPWVcUpTime, hwPWBFDRemoteVcID=hwPWBFDRemoteVcID, hwPWVcTnlIndex=hwPWVcTnlIndex, hwPwVcAdminPwLinkStatus=hwPwVcAdminPwLinkStatus, hwPWVcDown=hwPWVcDown, hwSvcSecondary=hwSvcSecondary, hwSvcTnlIndex=hwSvcTnlIndex, hwPWVcGroupID=hwPWVcGroupID, hwPwVcSwitchAdminPwLinkStatus=hwPwVcSwitchAdminPwLinkStatus, hwSvcReroutePolicy=hwSvcReroutePolicy, hwSvcACOAMStatus=hwSvcACOAMStatus, hwL2VpnPwe3=hwL2VpnPwe3, hwPWVcUpDownNotifEnable=hwPWVcUpDownNotifEnable, hwPWTableGroup=hwPWTableGroup, hwSvcStatisticsTable=hwSvcStatisticsTable, hwPWVcDeletedNotifEnable=hwPWVcDeletedNotifEnable, hwPWVcIfName=hwPWVcIfName, hwPWVcACOAMStatus=hwPWVcACOAMStatus, hwPWTemplatePir=hwPWTemplatePir, hwPWVcLastRerouteTime=hwPWVcLastRerouteTime, hwPwVcNegotiateMode=hwPwVcNegotiateMode, hwPWVcTnlPolicyName=hwPWVcTnlPolicyName, hwPWVcQosParaFromPWT=hwPWVcQosParaFromPWT, hwPwVcSwitchBackupVcQosProfile=hwPwVcSwitchBackupVcQosProfile, hwSvcMaxAtmCells=hwSvcMaxAtmCells, hwSvcVCCV=hwSvcVCCV, hwPWVcBandWidth=hwPWVcBandWidth, hwPWVcSwitchQosProfile=hwPWVcSwitchQosProfile, hwPWVcEntry=hwPWVcEntry, hwSvcStateChangeReasonGroup=hwSvcStateChangeReasonGroup, hwSvcManualSetFault=hwSvcManualSetFault, hwPwe3MIBCompliances=hwPwe3MIBCompliances, hwSvcStatisticsGroup=hwSvcStatisticsGroup, hwSvcUpTime=hwSvcUpTime, hwPWVcType=hwPWVcType, hwPWVcBfdParaFromPWT=hwPWVcBfdParaFromPWT, hwPWVcTDMPerfCurrentMisOrderDropped=hwPWVcTDMPerfCurrentMisOrderDropped, hwSvcDeleted=hwSvcDeleted, hwPWVcTDMPerfCurrentJtrBfrUnderruns=hwPWVcTDMPerfCurrentJtrBfrUnderruns, hwSvcStatisticsSndPkts=hwSvcStatisticsSndPkts, hwSvcSwitchPtoW=hwSvcSwitchPtoW, hwPWVcGroup=hwPWVcGroup, hwPWVcTrigger=hwPWVcTrigger, hwPwe3MIBConformance=hwPwe3MIBConformance, hwSvcMtu=hwSvcMtu, hwPwVcSwitchBackupVcServiceName=hwPwVcSwitchBackupVcServiceName, hwPwVcSwitchBackupAdminPwLinkStatus=hwPwVcSwitchBackupAdminPwLinkStatus, hwPWVcSwitchID=hwPWVcSwitchID, hwPWOAMSync=hwPWOAMSync, hwPwVcSwitchBackupAdminPwIfIndex=hwPwVcSwitchBackupAdminPwIfIndex, hwPWInterfaceIndex=hwPWInterfaceIndex, hwPWEntry=hwPWEntry, hwPWPeerIp=hwPWPeerIp, hwPWVcCtrlWord=hwPWVcCtrlWord, hwPwVcSwitchBackupVcActive=hwPwVcSwitchBackupVcActive, hwPWTemplateCir=hwPWTemplateCir, hwSvcInterworkingType=hwSvcInterworkingType, hwPWVcPwJitterBufferDepth=hwPWVcPwJitterBufferDepth, hwPWVcSwitchPtoW=hwPWVcSwitchPtoW, hwSvcQoSBehaviorIndex=hwSvcQoSBehaviorIndex, hwPWVcSwitchTnlPolicyName=hwPWVcSwitchTnlPolicyName, hwPWVcTnlTable=hwPWVcTnlTable, hwPWTemplateFlowLabel=hwPWTemplateFlowLabel, hwPWVcPeerAddrType=hwPWVcPeerAddrType, hwPwVcAdminPwIfIndex=hwPwVcAdminPwIfIndex, hwPWVcStatisticsSndPkts=hwPWVcStatisticsSndPkts, hwPwVcSlaveMasterMode=hwPwVcSlaveMasterMode, hwPWTemplateEntry=hwPWTemplateEntry, hwLdpPWVcUp=hwLdpPWVcUp, hwPWTemplateMIBTraps=hwPWTemplateMIBTraps, hwPWVcTDMPerfCurrentUASs=hwPWVcTDMPerfCurrentUASs, hwPwVcSwitchVcServiceName=hwPwVcSwitchVcServiceName, hwPWTemplateQoSBehaviorIndex=hwPWTemplateQoSBehaviorIndex, hwPWRemoteVcGroup=hwPWRemoteVcGroup, hwPWVcPwIdleCode=hwPWVcPwIdleCode, hwPWVcInboundLabel=hwPWVcInboundLabel, hwPWVcQoSBehaviorIndex=hwPWVcQoSBehaviorIndex, hwPWTemplateExplicitPathName=hwPWTemplateExplicitPathName, hwPWVcStatisticsRcvPkts=hwPWVcStatisticsRcvPkts, hwPWRemoteVcCtrlword=hwPWRemoteVcCtrlword, hwPWVcCfmMdIndex=hwPWVcCfmMdIndex, hwSvcOutboundLabel=hwSvcOutboundLabel, hwPWVcAtmPackOvertime=hwPWVcAtmPackOvertime, hwSvcIfIndex=hwSvcIfIndex, hwPWVcTnlEntry=hwPWVcTnlEntry, hwSvcAcStatus=hwSvcAcStatus, hwSvcCtrlWord=hwSvcCtrlWord, hwPWVcEnableACOAM=hwPWVcEnableACOAM, hwSvcDown=hwSvcDown, hwPWTemplatePeerAddr=hwPWTemplatePeerAddr, hwPWTemplateRowStatus=hwPWTemplateRowStatus, hwSvcSwitchNotifEnable=hwSvcSwitchNotifEnable, hwPwVcSwitchBackupVcCir=hwPwVcSwitchBackupVcCir, hwSvcCir=hwSvcCir, hwSvcID=hwSvcID, hwPWVcSwitchOutboundLabel=hwPWVcSwitchOutboundLabel, hwPWVcSwitchVrIfIndex=hwPWVcSwitchVrIfIndex, hwPwVcSwitchBackupVcPeerAddr=hwPwVcSwitchBackupVcPeerAddr, hwPWVcNotificationGroup=hwPWVcNotificationGroup, hwPWVcID=hwPWVcID, hwPWRemoteVcNotif=hwPWRemoteVcNotif, hwPWTable=hwPWTable, hwSvcPwIdleCode=hwSvcPwIdleCode, hwPWVcDelayTime=hwPWVcDelayTime, hwSvcTnlForBfdIndex=hwSvcTnlForBfdIndex, hwPWVcRerouteReason=hwPWVcRerouteReason, hwPWVcReroutePolicy=hwPWVcReroutePolicy, hwPWVcSecondary=hwPWVcSecondary, hwPWVcTDMPerfCurrentMissingPkts=hwPWVcTDMPerfCurrentMissingPkts, hwPWVcDeleted=hwPWVcDeleted, hwPWVcStateChangeReasonGroup=hwPWVcStateChangeReasonGroup, hwPWVcPwTdmEncapsulationNum=hwPWVcPwTdmEncapsulationNum, hwSvcResumeTime=hwSvcResumeTime, hwSvcLastRerouteTime=hwSvcLastRerouteTime, hwL2vpnSvcMIBTraps=hwL2vpnSvcMIBTraps, hwPWTemplatePwTdmEncapsulationNum=hwPWTemplatePwTdmEncapsulationNum, hwPWVcUpSumTime=hwPWVcUpSumTime, hwPWVcTemplateName=hwPWVcTemplateName, hwSvcStatus=hwSvcStatus, hwSvcStatisticsRcvBytes=hwSvcStatisticsRcvBytes, hwPWTemplateBFDMinTransmitInterval=hwPWTemplateBFDMinTransmitInterval, hwLdpPWVcDown=hwLdpPWVcDown, hwPWType=hwPWType, hwPwe3MIBTraps=hwPwe3MIBTraps, hwSvcUpDownNotifEnable=hwSvcUpDownNotifEnable, hwPWTemplateTable=hwPWTemplateTable, hwPWVcMtu=hwPWVcMtu, hwPWCfmMaIndex=hwPWCfmMaIndex, hwPWVcQosProfile=hwPWVcQosProfile, hwSvcStatisticsEntry=hwSvcStatisticsEntry, hwPwVcIsBypass=hwPwVcIsBypass, hwPWTemplatePeerAddrType=hwPWTemplatePeerAddrType, hwPWRemoteVcMtu=hwPWRemoteVcMtu, hwSvcGroup=hwSvcGroup, hwSvcDelayTime=hwSvcDelayTime, hwPwe3MIBGroups=hwPwe3MIBGroups, hwSvcObjects=hwSvcObjects, hwPwe3MIBObjects=hwPwe3MIBObjects, hwPWVcIfIndex=hwPWVcIfIndex, hwPWVcTDMPerfCurrentSESs=hwPWVcTDMPerfCurrentSESs, hwPwVcSwitchBackupVcTnlPolicyName=hwPwVcSwitchBackupVcTnlPolicyName, hwL2vpnSvcMIBGroups=hwL2vpnSvcMIBGroups, hwPWVcTDMPerfCurrentJtrBfrOverruns=hwPWVcTDMPerfCurrentJtrBfrOverruns, hwPWVCForBfdIndex=hwPWVCForBfdIndex, hwSvcPwJitterBufferDepth=hwSvcPwJitterBufferDepth, hwPWVcStatisticsEntry=hwPWVcStatisticsEntry, hwPWVcStatisticsSndBytes=hwPWVcStatisticsSndBytes, hwPWVcTnlType=hwPWVcTnlType, hwPWVcPeerAddr=hwPWVcPeerAddr, hwPWTemplateBandwidth=hwPWTemplateBandwidth, hwPWVcTDMPerfCurrentGroup=hwPWVcTDMPerfCurrentGroup, hwPWVcSwitchVrID=hwPWVcSwitchVrID, hwPWVcSwitchInboundLabel=hwPWVcSwitchInboundLabel, hwPWVcUp=hwPWVcUp, hwPWVcPir=hwPWVcPir, hwPWId=hwPWId, hwPWVcSwitchWtoP=hwPWVcSwitchWtoP, hwSvcQosProfile=hwSvcQosProfile, hwPwe3Objects=hwPwe3Objects, hwPWBFDMinReceiveInterval=hwPWBFDMinReceiveInterval, hwPwVcIsAdmin=hwPwVcIsAdmin, hwPWNotificationControlGroup=hwPWNotificationControlGroup, hwPWVcVCCV=hwPWVcVCCV, hwSvcNotificationGroup=hwSvcNotificationGroup, hwPWVcTDMPerfCurrentESs=hwPWVcTDMPerfCurrentESs, hwSvcTnlGroup=hwSvcTnlGroup, hwPWVcCfmMdName=hwPWVcCfmMdName, hwSvcForBfdIndex=hwSvcForBfdIndex, hwPWRemoteVcType=hwPWRemoteVcType, hwPWTemplateGroup=hwPWTemplateGroup, hwPWVcStatus=hwPWVcStatus, hwPWRemoteVcMaxAtmCells=hwPWRemoteVcMaxAtmCells, hwSvcActive=hwSvcActive, hwSvcUpStartTime=hwSvcUpStartTime, hwPWVcSwitchCir=hwPWVcSwitchCir, hwPWTemplatePwJitterBufferDepth=hwPWTemplatePwJitterBufferDepth, hwPwVcSwitchBackupVcSendLabel=hwPwVcSwitchBackupVcSendLabel, hwPWVcTDMPerfCurrentTable=hwPWVcTDMPerfCurrentTable, hwPWTemplateVCCV=hwPWTemplateVCCV, hwPWTemplateDynamicBFDDetect=hwPWTemplateDynamicBFDDetect, hwPWTemplateName=hwPWTemplateName, hwPWTemplateBFDMinReceiveInterval=hwPWTemplateBFDMinReceiveInterval, hwPwe3MIBCompliance=hwPwe3MIBCompliance, hwPWVcStatisticsGroup=hwPWVcStatisticsGroup, hwPWVcCir=hwPWVcCir, hwSvcSwitchWtoP=hwSvcSwitchWtoP, hwPWRemoteVcEntry=hwPWRemoteVcEntry, hwSvcStateChangeReason=hwSvcStateChangeReason, hwPWTemplateMaxAtmCells=hwPWTemplateMaxAtmCells, hwPwVcSwitchVcActive=hwPwVcSwitchVcActive, hwSvcPeerAddr=hwSvcPeerAddr, hwPwVcSwitchBackupVcPir=hwPwVcSwitchBackupVcPir, hwPWVcActive=hwPWVcActive, hwPWRemoteVcGroupID=hwPWRemoteVcGroupID, hwPWVcStatisticsRcvBytes=hwPWVcStatisticsRcvBytes, hwPWVcResumeTime=hwPWVcResumeTime, hwSvcTable=hwSvcTable, hwPWRemoteVcStatus=hwPWRemoteVcStatus, hwPWVcBackup=hwPWVcBackup, hwPWTemplateCtrlword=hwPWTemplateCtrlword, hwPWVcInterworkingType=hwPWVcInterworkingType, hwL2Vpn=hwL2Vpn, hwPWVcTable=hwPWVcTable, hwSvcBandWidth=hwSvcBandWidth, hwPWVcVrIfIndex=hwPWVcVrIfIndex, hwSvcStatisticsRcvPkts=hwSvcStatisticsRcvPkts, hwPWTemplateBFDDetectMultiplier=hwPWTemplateBFDDetectMultiplier, hwLdpPWStateChangeReasonGroup=hwLdpPWStateChangeReasonGroup, hwL2vpnPWTableMIBGroups=hwL2vpnPWTableMIBGroups, hwSvcTnlTable=hwSvcTnlTable, hwPWVcTnlGroup=hwPWVcTnlGroup, hwPWVcUpStartTime=hwPWVcUpStartTime, hwSvcPwTdmEncapsulationNum=hwSvcPwTdmEncapsulationNum, hwPwVcSwitchAdminPwIfIndex=hwPwVcSwitchAdminPwIfIndex, hwPwVcSwitchBackupVcSlaveMasterMode=hwPwVcSwitchBackupVcSlaveMasterMode, HWLdpPwStateChangeReason=HWLdpPwStateChangeReason, hwSvcPwRtpHeader=hwSvcPwRtpHeader, hwPWRemoteVcID=hwPWRemoteVcID, hwSvcTnlEntry=hwSvcTnlEntry, hwPWVcStatisticsTable=hwPWVcStatisticsTable, hwPwVcSwitchBackupVcPeerAddrType=hwPwVcSwitchBackupVcPeerAddrType, hwPWVcTDMPerfCurrentMalformedPkt=hwPWVcTDMPerfCurrentMalformedPkt, hwSvcTnlPolicyName=hwSvcTnlPolicyName, hwSvcUp=hwSvcUp, hwSvcAtmPackOvertime=hwSvcAtmPackOvertime, hwSvcPeerAddrType=hwSvcPeerAddrType, hwSvcPWTemplateName=hwSvcPWTemplateName, hwPWBFDMinTransmitInterval=hwPWBFDMinTransmitInterval, hwPWVcMaxAtmCells=hwPWVcMaxAtmCells, hwSvcRowStatus=hwSvcRowStatus, hwSvcStatisticsSndBytes=hwSvcStatisticsSndBytes, hwPWVcSwitchPeerAddrType=hwPWVcSwitchPeerAddrType, hwSvcType=hwSvcType, hwSvcUpSumTime=hwSvcUpSumTime, hwPWRemoteVcTable=hwPWRemoteVcTable, hwPWVcStateChangeReason=hwPWVcStateChangeReason, hwPwVcSwitchVcSlaveMasterMode=hwPwVcSwitchVcSlaveMasterMode, hwPWVcSwitchSign=hwPWVcSwitchSign, hwSvcEntry=hwSvcEntry, PYSNMP_MODULE_ID=hwL2VpnPwe3, hwPWTnlForBfdIndex=hwPWTnlForBfdIndex, hwSvcInboundLabel=hwSvcInboundLabel, hwSvcRerouteReason=hwSvcRerouteReason, hwSvcTnlType=hwSvcTnlType, hwPWVcCfmMaName=hwPWVcCfmMaName, hwPWTemplateAtmPackOvertime=hwPWTemplateAtmPackOvertime, hwPWVcSwitchPir=hwPWVcSwitchPir, hwPWTemplateQosProfile=hwPWTemplateQosProfile, hwSvcDeletedNotifEnable=hwSvcDeletedNotifEnable) mibBuilder.exportSymbols("HUAWEI-PWE3-MIB", hwPWTemplateFrag=hwPWTemplateFrag, hwPwVcSwitchBackupVcId=hwPwVcSwitchBackupVcId, hwPWEthOamType=hwPWEthOamType, hwPWVcSwitchRmtID=hwPWVcSwitchRmtID, hwSvcOAMSync=hwSvcOAMSync, hwPwVcSwitchCwTrans=hwPwVcSwitchCwTrans, hwPWBFDDetectMultiplier=hwPWBFDDetectMultiplier, hwSvcPir=hwSvcPir, hwPWTableObjects=hwPWTableObjects, hwPwVcSwitchBackupVcReceiveLabel=hwPwVcSwitchBackupVcReceiveLabel, hwSvcRawOrTagged=hwSvcRawOrTagged, hwPWTemplatePwRtpHeader=hwPWTemplatePwRtpHeader, hwPWTemplatePwCCSeqEnable=hwPWTemplatePwCCSeqEnable, hwPWVcRawOrTagged=hwPWVcRawOrTagged, hwLdpPWStateChangeReason=hwLdpPWStateChangeReason, hwPWVcVrID=hwPWVcVrID, hwPWTemplateTnlPolicyName=hwPWTemplateTnlPolicyName, hwPWTemplatePwIdleCode=hwPWTemplatePwIdleCode, hwPWTemplateCannotDeleted=hwPWTemplateCannotDeleted, hwSvcNotificationControlGroup=hwSvcNotificationControlGroup, hwSvcGroupID=hwSvcGroupID, hwPWVcSwitchNotifEnable=hwPWVcSwitchNotifEnable, hwPWVcRowStatus=hwPWVcRowStatus, hwPWVcTDMPerfCurrentEntry=hwPWVcTDMPerfCurrentEntry, hwPWVcExplicitPathName=hwPWVcExplicitPathName, hwPWDynamicBFDDetect=hwPWDynamicBFDDetect)
(object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_range_constraint, value_size_constraint, constraints_union, single_value_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'ValueSizeConstraint', 'ConstraintsUnion', 'SingleValueConstraint', 'ConstraintsIntersection') (hw_datacomm,) = mibBuilder.importSymbols('HUAWEI-MIB', 'hwDatacomm') (hwl2_vpn_vc_encaps_type, hw_enable_value, hwl2_vpn_state_change_reason) = mibBuilder.importSymbols('HUAWEI-VPLS-EXT-MIB', 'HWL2VpnVcEncapsType', 'HWEnableValue', 'HWL2VpnStateChangeReason') (if_name, interface_index_or_zero) = mibBuilder.importSymbols('IF-MIB', 'ifName', 'InterfaceIndexOrZero') (inet_address_type,) = mibBuilder.importSymbols('INET-ADDRESS-MIB', 'InetAddressType') (enabled_status,) = mibBuilder.importSymbols('P-BRIDGE-MIB', 'EnabledStatus') (notification_group, object_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ObjectGroup', 'ModuleCompliance') (sys_up_time,) = mibBuilder.importSymbols('SNMPv2-MIB', 'sysUpTime') (counter32, counter64, ip_address, iso, module_identity, notification_type, gauge32, integer32, object_identity, mib_identifier, unsigned32, bits, bits, time_ticks, mib_scalar, mib_table, mib_table_row, mib_table_column) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter32', 'Counter64', 'IpAddress', 'iso', 'ModuleIdentity', 'NotificationType', 'Gauge32', 'Integer32', 'ObjectIdentity', 'MibIdentifier', 'Unsigned32', 'Bits', 'Bits', 'TimeTicks', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn') (textual_convention, row_status, display_string, truth_value) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'RowStatus', 'DisplayString', 'TruthValue') hw_l2_vpn_pwe3 = module_identity((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4)) if mibBuilder.loadTexts: hwL2VpnPwe3.setLastUpdated('200704120900Z') if mibBuilder.loadTexts: hwL2VpnPwe3.setOrganization('Huawei Technologies Co., Ltd.') class Hwldppwstatechangereason(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6)) named_values = named_values(('ldpSessionDown', 1), ('interfaceDown', 2), ('tunnelDown', 3), ('receivedNoMapping', 4), ('paraUnMatched', 5), ('notifiNotForward', 6)) hw_l2_vpn = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119)) hw_pwe3_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1)) hw_pwe3_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1)) hw_pw_vc_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1)) if mibBuilder.loadTexts: hwPWVcTable.setStatus('current') hw_pw_vc_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1)).setIndexNames((0, 'HUAWEI-PWE3-MIB', 'hwPWVcID'), (0, 'HUAWEI-PWE3-MIB', 'hwPWVcType')) if mibBuilder.loadTexts: hwPWVcEntry.setStatus('current') hw_pw_vc_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 1), unsigned32()) if mibBuilder.loadTexts: hwPWVcID.setStatus('current') hw_pw_vc_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 2), hwl2_vpn_vc_encaps_type()) if mibBuilder.loadTexts: hwPWVcType.setStatus('current') hw_pw_vc_peer_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 3), inet_address_type().clone('ipv4')).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcPeerAddrType.setStatus('current') hw_pw_vc_peer_addr = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 4), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcPeerAddr.setStatus('current') hw_pw_vc_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('up', 1), ('down', 2), ('plugout', 3), ('backup', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcStatus.setStatus('current') hw_pw_vc_inbound_label = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 6), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcInboundLabel.setStatus('current') hw_pw_vc_outbound_label = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 7), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcOutboundLabel.setStatus('current') hw_pw_vc_switch_sign = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('staticTostatic', 1), ('ldpTostatic', 2), ('ldpToldp', 3), ('upe', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcSwitchSign.setStatus('current') hw_pw_vc_switch_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 9), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcSwitchID.setStatus('current') hw_pw_vc_switch_peer_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 10), inet_address_type().clone('ipv4')).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcSwitchPeerAddrType.setStatus('current') hw_pw_vc_switch_peer_addr = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 11), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcSwitchPeerAddr.setStatus('current') hw_pw_vc_switch_inbound_label = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 12), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcSwitchInboundLabel.setStatus('current') hw_pw_vc_switch_outbound_label = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 13), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcSwitchOutboundLabel.setStatus('current') hw_pw_vc_group_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 14), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcGroupID.setStatus('current') hw_pw_vc_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 15), interface_index_or_zero()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcIfIndex.setStatus('current') hw_pw_vc_ac_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 16), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('up', 1), ('down', 2), ('plugout', 3), ('notify', 4), ('notifyDown', 5), ('downNotify', 6)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcAcStatus.setStatus('current') hw_pw_vc_acoam_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('up', 1), ('down', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcACOAMStatus.setStatus('current') hw_pw_vc_mtu = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 18), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(46, 9600)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcMtu.setStatus('current') hw_pw_vc_ctrl_word = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 19), hw_enable_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcCtrlWord.setStatus('current') hw_pw_vc_vccv = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 20), bits().clone(namedValues=named_values(('ccCw', 0), ('ccAlert', 1), ('ccLabel', 2), ('cvIcmpping', 3), ('cvLspping', 4), ('cvBfd', 5), ('ccTtl', 6)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcVCCV.setStatus('current') hw_pw_vc_band_width = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 21), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 32000000))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcBandWidth.setStatus('current') hw_pw_vc_max_atm_cells = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 22), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 28))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcMaxAtmCells.setStatus('current') hw_pw_vc_tnl_policy_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 23), octet_string().subtype(subtypeSpec=value_size_constraint(0, 39))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcTnlPolicyName.setStatus('current') hw_pw_vc_qo_s_behavior_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 24), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcQoSBehaviorIndex.setStatus('current') hw_pw_vc_explicit_path_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 25), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcExplicitPathName.setStatus('current') hw_pw_vc_template_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 26), octet_string().subtype(subtypeSpec=value_size_constraint(0, 19))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcTemplateName.setStatus('current') hw_pw_vc_secondary = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 27), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcSecondary.setStatus('current') hw_pw_vc_up_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 28), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcUpTime.setStatus('current') hw_pwoam_sync = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 29), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWOAMSync.setStatus('current') hw_pwvc_for_bfd_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 30), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVCForBfdIndex.setStatus('current') hw_pw_vc_delay_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 31), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcDelayTime.setStatus('current') hw_pw_vc_reroute_policy = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 32), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('delay', 1), ('immediately', 2), ('never', 3), ('none', 4), ('err', 5), ('invalid', 6), ('immediatelySwitch', 7)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcReroutePolicy.setStatus('current') hw_pw_vc_resume_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 33), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcResumeTime.setStatus('current') hw_pw_vc_reroute_reason = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 34), hwl2_vpn_state_change_reason()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcRerouteReason.setStatus('current') hw_pw_vc_last_reroute_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 35), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcLastRerouteTime.setStatus('current') hw_pw_vc_manual_set_fault = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 36), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcManualSetFault.setStatus('current') hw_pw_vc_active = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 37), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcActive.setStatus('current') hw_pw_vc_vr_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 38), interface_index_or_zero()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcVrIfIndex.setStatus('current') hw_pw_vc_vr_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 39), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcVrID.setStatus('current') hw_pwbfd_detect_multiplier = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 40), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(3, 50)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWBFDDetectMultiplier.setStatus('current') hw_pwbfd_min_receive_interval = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 41), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(3, 1000)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWBFDMinReceiveInterval.setStatus('current') hw_pwbfd_min_transmit_interval = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 42), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(3, 1000)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWBFDMinTransmitInterval.setStatus('current') hw_pw_dynamic_bfd_detect = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 43), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWDynamicBFDDetect.setStatus('current') hw_pwbfd_remote_vc_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 44), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWBFDRemoteVcID.setStatus('current') hw_pw_eth_oam_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 45), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('ethOam1ag', 1), ('ethOam3ah', 2), ('noEthOamCfg', 3)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWEthOamType.setStatus('current') hw_pw_cfm_ma_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 46), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 4095), value_range_constraint(4294967295, 4294967295)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWCfmMaIndex.setStatus('current') hw_pw_vc_up_start_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 47), display_string().subtype(subtypeSpec=value_size_constraint(0, 63))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcUpStartTime.setStatus('current') hw_pw_vc_up_sum_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 48), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcUpSumTime.setStatus('current') hw_pw_vc_if_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 49), display_string().subtype(subtypeSpec=value_size_constraint(0, 63))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcIfName.setStatus('current') hw_pw_vc_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 51), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcRowStatus.setStatus('current') hw_pw_vc_atm_pack_overtime = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 52), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(100, 50000)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcAtmPackOvertime.setStatus('current') hw_pw_vc_pw_jitter_buffer_depth = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 53), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 64))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcPwJitterBufferDepth.setStatus('current') hw_pw_vc_pw_tdm_encapsulation_num = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 54), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 40))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcPwTdmEncapsulationNum.setStatus('current') hw_pw_vc_pw_idle_code = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 55), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 255), value_range_constraint(65535, 65535)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcPwIdleCode.setStatus('current') hw_pw_vc_pw_rtp_header = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 56), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcPwRtpHeader.setStatus('current') hw_pw_vc_switch_tnl_policy_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 57), octet_string().subtype(subtypeSpec=value_size_constraint(0, 39))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcSwitchTnlPolicyName.setStatus('current') hw_pw_vc_cfm_md_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 58), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 4095), value_range_constraint(4294967295, 4294967295)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcCfmMdIndex.setStatus('current') hw_pw_vc_cfm_ma_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 59), octet_string().subtype(subtypeSpec=value_size_constraint(0, 43))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcCfmMaName.setStatus('current') hw_pw_vc_cfm_md_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 60), octet_string().subtype(subtypeSpec=value_size_constraint(0, 43))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcCfmMdName.setStatus('current') hw_pw_vc_raw_or_tagged = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 61), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('raw', 1), ('tagged', 2), ('rawTagNotConfiged', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcRawOrTagged.setStatus('current') hw_pw_vc_interworking_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 62), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('ipInterWorking', 1), ('ipLayer2', 2), ('ipUnknown', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcInterworkingType.setStatus('current') hw_pw_vc_cir = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 63), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcCir.setStatus('current') hw_pw_vc_pir = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 64), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcPir.setStatus('current') hw_pw_vc_qos_profile = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 65), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcQosProfile.setStatus('current') hw_pw_vc_switch_cir = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 66), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcSwitchCir.setStatus('current') hw_pw_vc_switch_pir = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 67), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcSwitchPir.setStatus('current') hw_pw_vc_switch_qos_profile = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 68), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcSwitchQosProfile.setStatus('current') hw_pw_vc_trigger = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 69), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcTrigger.setStatus('current') hw_pw_vc_enable_acoam = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 70), enabled_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcEnableACOAM.setStatus('current') hw_pw_vc_switch_vr_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 71), interface_index_or_zero()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcSwitchVrIfIndex.setStatus('current') hw_pw_vc_switch_vr_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 72), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWVcSwitchVrID.setStatus('current') hw_pw_vc_qos_para_from_pwt = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 73), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('cliOrMib', 1), ('pwTemplate', 2), ('unknown', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcQosParaFromPWT.setStatus('current') hw_pw_vc_bfd_para_from_pwt = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 74), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('cliOrMib', 1), ('pwTemplate', 2), ('unknown', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcBfdParaFromPWT.setStatus('current') hw_pw_vc_negotiate_mode = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 75), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('slaveOrMaster', 1), ('independent', 2), ('unknown', 3), ('frr', 4)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPwVcNegotiateMode.setStatus('current') hw_pw_vc_is_bypass = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 76), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPwVcIsBypass.setStatus('current') hw_pw_vc_is_admin = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 77), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPwVcIsAdmin.setStatus('current') hw_pw_vc_admin_pw_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 78), interface_index_or_zero()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPwVcAdminPwIfIndex.setStatus('current') hw_pw_vc_admin_pw_link_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 79), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('up', 1), ('down', 2), ('unknown', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPwVcAdminPwLinkStatus.setStatus('current') hw_pw_vc_switch_admin_pw_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 80), interface_index_or_zero()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPwVcSwitchAdminPwIfIndex.setStatus('current') hw_pw_vc_switch_admin_pw_link_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 81), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('up', 1), ('down', 2), ('unknown', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPwVcSwitchAdminPwLinkStatus.setStatus('current') hw_pw_vc_switch_backup_admin_pw_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 82), interface_index_or_zero()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPwVcSwitchBackupAdminPwIfIndex.setStatus('current') hw_pw_vc_switch_backup_admin_pw_link_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 83), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('up', 1), ('down', 2), ('unknown', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPwVcSwitchBackupAdminPwLinkStatus.setStatus('current') hw_pw_vc_switch_backup_vc_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 84), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcId.setStatus('current') hw_pw_vc_switch_backup_vc_peer_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 85), inet_address_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcPeerAddrType.setStatus('current') hw_pw_vc_switch_backup_vc_peer_addr = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 86), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcPeerAddr.setStatus('current') hw_pw_vc_switch_backup_vc_receive_label = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 87), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcReceiveLabel.setStatus('current') hw_pw_vc_switch_backup_vc_send_label = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 88), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcSendLabel.setStatus('current') hw_pw_vc_switch_backup_vc_tnl_policy_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 89), octet_string().subtype(subtypeSpec=value_size_constraint(0, 19))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcTnlPolicyName.setStatus('current') hw_pw_vc_switch_backup_vc_cir = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 90), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcCir.setStatus('current') hw_pw_vc_switch_backup_vc_pir = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 91), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcPir.setStatus('current') hw_pw_vc_switch_backup_vc_qos_profile = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 92), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcQosProfile.setStatus('current') hw_pw_vc_slave_master_mode = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 93), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('slave', 1), ('master', 2), ('unknown', 3), ('bypass', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPwVcSlaveMasterMode.setStatus('current') hw_pw_vc_switch_vc_slave_master_mode = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 94), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('slave', 1), ('master', 2), ('unknown', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPwVcSwitchVcSlaveMasterMode.setStatus('current') hw_pw_vc_switch_backup_vc_slave_master_mode = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 95), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('slave', 1), ('master', 2), ('unknown', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcSlaveMasterMode.setStatus('current') hw_pw_vc_switch_vc_active = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 96), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPwVcSwitchVcActive.setStatus('current') hw_pw_vc_switch_backup_vc_active = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 97), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcActive.setStatus('current') hw_pw_vc_switch_cw_trans = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 98), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPwVcSwitchCwTrans.setStatus('current') hw_pw_vc_switch_vc_service_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 99), octet_string().subtype(subtypeSpec=value_size_constraint(0, 100))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPwVcSwitchVcServiceName.setStatus('current') hw_pw_vc_switch_backup_vc_service_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 100), octet_string().subtype(subtypeSpec=value_size_constraint(0, 100))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPwVcSwitchBackupVcServiceName.setStatus('current') hw_pw_vc_tnl_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 2)) if mibBuilder.loadTexts: hwPWVcTnlTable.setStatus('current') hw_pw_vc_tnl_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 2, 1)).setIndexNames((0, 'HUAWEI-PWE3-MIB', 'hwPWVcID'), (0, 'HUAWEI-PWE3-MIB', 'hwPWVcType'), (0, 'HUAWEI-PWE3-MIB', 'hwPWVcTnlIndex')) if mibBuilder.loadTexts: hwPWVcTnlEntry.setStatus('current') hw_pw_vc_tnl_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 2, 1, 1), unsigned32()) if mibBuilder.loadTexts: hwPWVcTnlIndex.setStatus('current') hw_pw_vc_tnl_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('lsp', 1), ('gre', 2), ('ipsec', 3), ('crLsp', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcTnlType.setStatus('current') hw_pw_tnl_for_bfd_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 2, 1, 3), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWTnlForBfdIndex.setStatus('current') hw_pw_vc_statistics_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 3)) if mibBuilder.loadTexts: hwPWVcStatisticsTable.setStatus('current') hw_pw_vc_statistics_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 3, 1)).setIndexNames((0, 'HUAWEI-PWE3-MIB', 'hwPWVcID'), (0, 'HUAWEI-PWE3-MIB', 'hwPWVcType')) if mibBuilder.loadTexts: hwPWVcStatisticsEntry.setStatus('current') hw_pw_vc_statistics_rcv_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 3, 1, 1), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcStatisticsRcvPkts.setStatus('current') hw_pw_vc_statistics_rcv_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 3, 1, 2), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcStatisticsRcvBytes.setStatus('current') hw_pw_vc_statistics_snd_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 3, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcStatisticsSndPkts.setStatus('current') hw_pw_vc_statistics_snd_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 3, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcStatisticsSndBytes.setStatus('current') hw_pw_remote_vc_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4)) if mibBuilder.loadTexts: hwPWRemoteVcTable.setStatus('current') hw_pw_remote_vc_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1)).setIndexNames((0, 'HUAWEI-PWE3-MIB', 'hwPWVcID'), (0, 'HUAWEI-PWE3-MIB', 'hwPWVcType')) if mibBuilder.loadTexts: hwPWRemoteVcEntry.setStatus('current') hw_pw_remote_vc_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 1), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWRemoteVcID.setStatus('current') hw_pw_remote_vc_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 2), hwl2_vpn_vc_encaps_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWRemoteVcType.setStatus('current') hw_pw_remote_vc_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('up', 1), ('down', 2), ('plugout', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWRemoteVcStatus.setStatus('current') hw_pw_remote_vc_group_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 4), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWRemoteVcGroupID.setStatus('current') hw_pw_remote_vc_mtu = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 5), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(46, 9600)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWRemoteVcMtu.setStatus('current') hw_pw_remote_vc_ctrlword = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 6), hw_enable_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWRemoteVcCtrlword.setStatus('current') hw_pw_remote_vc_max_atm_cells = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 7), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWRemoteVcMaxAtmCells.setStatus('current') hw_pw_remote_vc_notif = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 8), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWRemoteVcNotif.setStatus('current') hw_pw_vc_switch_notif_enable = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 5), hw_enable_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwPWVcSwitchNotifEnable.setStatus('current') hw_pw_vc_up_down_notif_enable = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 6), hw_enable_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwPWVcUpDownNotifEnable.setStatus('current') hw_pw_vc_deleted_notif_enable = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 7), hw_enable_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwPWVcDeletedNotifEnable.setStatus('current') hw_pw_vc_state_change_reason = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 8), hwl2_vpn_state_change_reason()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwPWVcStateChangeReason.setStatus('current') hw_pw_vc_switch_rmt_id = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 9), unsigned32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwPWVcSwitchRmtID.setStatus('current') hw_ldp_pw_state_change_reason = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 10), hw_ldp_pw_state_change_reason()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwLdpPWStateChangeReason.setStatus('current') hw_pw_vc_tdm_perf_current_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11)) if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentTable.setStatus('current') hw_pw_vc_tdm_perf_current_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1)).setIndexNames((0, 'HUAWEI-PWE3-MIB', 'hwPWVcID'), (0, 'HUAWEI-PWE3-MIB', 'hwPWVcType')) if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentEntry.setStatus('current') hw_pw_vc_tdm_perf_current_missing_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 1), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentMissingPkts.setStatus('current') hw_pw_vc_tdm_perf_current_jtr_bfr_overruns = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 2), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentJtrBfrOverruns.setStatus('current') hw_pw_vc_tdm_perf_current_jtr_bfr_underruns = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 3), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentJtrBfrUnderruns.setStatus('current') hw_pw_vc_tdm_perf_current_mis_order_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 4), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentMisOrderDropped.setStatus('current') hw_pw_vc_tdm_perf_current_malformed_pkt = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 5), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentMalformedPkt.setStatus('current') hw_pw_vc_tdm_perf_current_e_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 6), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentESs.setStatus('current') hw_pw_vc_tdm_perf_current_se_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 7), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentSESs.setStatus('current') hw_pw_vc_tdm_perf_current_ua_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 8), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentUASs.setStatus('current') hw_pwe3_mib_traps = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2)) hw_pw_vc_switch_wto_p = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 1)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcCtrlWord'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchRmtID'), ('HUAWEI-PWE3-MIB', 'hwPWVcStateChangeReason'), ('HUAWEI-PWE3-MIB', 'hwPWVcIfName')) if mibBuilder.loadTexts: hwPWVcSwitchWtoP.setStatus('current') hw_pw_vc_switch_pto_w = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 2)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcCtrlWord'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchRmtID'), ('HUAWEI-PWE3-MIB', 'hwPWVcStateChangeReason'), ('HUAWEI-PWE3-MIB', 'hwPWVcIfName')) if mibBuilder.loadTexts: hwPWVcSwitchPtoW.setStatus('current') hw_pw_vc_down = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 3)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwPWVcIfIndex'), ('HUAWEI-PWE3-MIB', 'hwPWVcInboundLabel'), ('HUAWEI-PWE3-MIB', 'hwPWVcOutboundLabel'), ('HUAWEI-PWE3-MIB', 'hwPWVcSecondary'), ('HUAWEI-PWE3-MIB', 'hwPWVcStateChangeReason'), ('SNMPv2-MIB', 'sysUpTime'), ('HUAWEI-PWE3-MIB', 'hwPWVcIfName'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchID'), ('HUAWEI-PWE3-MIB', 'hwPWVcTnlPolicyName')) if mibBuilder.loadTexts: hwPWVcDown.setStatus('current') hw_pw_vc_up = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 4)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwPWVcIfIndex'), ('HUAWEI-PWE3-MIB', 'hwPWVcInboundLabel'), ('HUAWEI-PWE3-MIB', 'hwPWVcOutboundLabel'), ('HUAWEI-PWE3-MIB', 'hwPWVcSecondary'), ('HUAWEI-PWE3-MIB', 'hwPWVcStateChangeReason'), ('SNMPv2-MIB', 'sysUpTime'), ('HUAWEI-PWE3-MIB', 'hwPWVcIfName'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchID'), ('HUAWEI-PWE3-MIB', 'hwPWVcTnlPolicyName')) if mibBuilder.loadTexts: hwPWVcUp.setStatus('current') hw_pw_vc_deleted = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 5)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwPWVcIfIndex'), ('HUAWEI-PWE3-MIB', 'hwPWVcInboundLabel'), ('HUAWEI-PWE3-MIB', 'hwPWVcOutboundLabel'), ('HUAWEI-PWE3-MIB', 'hwPWVcSecondary'), ('HUAWEI-PWE3-MIB', 'hwPWVcIfName'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchID')) if mibBuilder.loadTexts: hwPWVcDeleted.setStatus('current') hw_pw_vc_backup = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 6)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwPWVcIfIndex'), ('HUAWEI-PWE3-MIB', 'hwPWVcInboundLabel'), ('HUAWEI-PWE3-MIB', 'hwPWVcOutboundLabel'), ('HUAWEI-PWE3-MIB', 'hwPWVcSecondary'), ('HUAWEI-PWE3-MIB', 'hwPWVcStateChangeReason'), ('SNMPv2-MIB', 'sysUpTime'), ('HUAWEI-PWE3-MIB', 'hwPWVcIfName'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchID')) if mibBuilder.loadTexts: hwPWVcBackup.setStatus('current') hw_ldp_pw_vc_down = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 7)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwLdpPWStateChangeReason')) if mibBuilder.loadTexts: hwLdpPWVcDown.setStatus('current') hw_ldp_pw_vc_up = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 8)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwLdpPWStateChangeReason')) if mibBuilder.loadTexts: hwLdpPWVcUp.setStatus('current') hw_svc_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3)) hw_svc_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1)) if mibBuilder.loadTexts: hwSvcTable.setStatus('current') hw_svc_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1)).setIndexNames((0, 'HUAWEI-PWE3-MIB', 'hwSvcIfIndex')) if mibBuilder.loadTexts: hwSvcEntry.setStatus('current') hw_svc_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 1), interface_index_or_zero()) if mibBuilder.loadTexts: hwSvcIfIndex.setStatus('current') hw_svc_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 2), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcID.setStatus('current') hw_svc_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 3), hwl2_vpn_vc_encaps_type()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcType.setStatus('current') hw_svc_peer_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 4), inet_address_type().clone('ipv4')).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcPeerAddrType.setStatus('current') hw_svc_peer_addr = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 5), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcPeerAddr.setStatus('current') hw_svc_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('up', 1), ('down', 2), ('plugout', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcStatus.setStatus('current') hw_svc_inbound_label = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 7), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcInboundLabel.setStatus('current') hw_svc_outbound_label = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 8), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcOutboundLabel.setStatus('current') hw_svc_group_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 9), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcGroupID.setStatus('current') hw_svc_ac_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('up', 1), ('down', 2), ('plugout', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcAcStatus.setStatus('current') hw_svc_acoam_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('up', 1), ('down', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcACOAMStatus.setStatus('current') hw_svc_mtu = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 12), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(46, 9600)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcMtu.setStatus('current') hw_svc_ctrl_word = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 13), hw_enable_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcCtrlWord.setStatus('current') hw_svc_vccv = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 14), bits().clone(namedValues=named_values(('ccCw', 0), ('ccAlert', 1), ('ccLabel', 2), ('cvIcmpping', 3), ('cvLspping', 4), ('cvBfd', 5)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcVCCV.setStatus('current') hw_svc_band_width = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 15), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 32000000))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcBandWidth.setStatus('current') hw_svc_max_atm_cells = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 16), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 28))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcMaxAtmCells.setStatus('current') hw_svc_tnl_policy_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 17), octet_string().subtype(subtypeSpec=value_size_constraint(0, 39))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcTnlPolicyName.setStatus('current') hw_svc_qo_s_behavior_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 18), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcQoSBehaviorIndex.setStatus('current') hw_svc_pw_template_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 19), octet_string().subtype(subtypeSpec=value_size_constraint(0, 19))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcPWTemplateName.setStatus('current') hw_svc_up_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 20), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcUpTime.setStatus('current') hw_svc_oam_sync = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 21), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcOAMSync.setStatus('current') hw_svc_for_bfd_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 22), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcForBfdIndex.setStatus('current') hw_svc_secondary = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 23), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcSecondary.setStatus('current') hw_svc_delay_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 24), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcDelayTime.setStatus('current') hw_svc_reroute_policy = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 25), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('delay', 1), ('immediately', 2), ('never', 3), ('none', 4), ('err', 5), ('invalid', 6)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcReroutePolicy.setStatus('current') hw_svc_resume_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 26), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcResumeTime.setStatus('current') hw_svc_reroute_reason = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 27), hwl2_vpn_state_change_reason()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcRerouteReason.setStatus('current') hw_svc_last_reroute_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 28), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcLastRerouteTime.setStatus('current') hw_svc_manual_set_fault = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 29), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcManualSetFault.setStatus('current') hw_svc_active = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 30), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcActive.setStatus('current') hw_svc_up_start_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 31), display_string().subtype(subtypeSpec=value_size_constraint(0, 63))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcUpStartTime.setStatus('current') hw_svc_up_sum_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 32), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcUpSumTime.setStatus('current') hw_svc_atm_pack_overtime = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 33), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(100, 50000)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcAtmPackOvertime.setStatus('current') hw_svc_pw_jitter_buffer_depth = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 34), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 64))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcPwJitterBufferDepth.setStatus('current') hw_svc_pw_tdm_encapsulation_num = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 35), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 40))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcPwTdmEncapsulationNum.setStatus('current') hw_svc_pw_idle_code = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 36), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 255), value_range_constraint(65535, 65535)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcPwIdleCode.setStatus('current') hw_svc_pw_rtp_header = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 37), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcPwRtpHeader.setStatus('current') hw_svc_raw_or_tagged = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 38), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('raw', 1), ('tagged', 2), ('rawTagNotConfiged', 3)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcRawOrTagged.setStatus('current') hw_svc_interworking_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 39), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('ipInterWorking', 1), ('ipLayer2', 2), ('ipUnknown', 3)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcInterworkingType.setStatus('current') hw_svc_cir = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 40), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcCir.setStatus('current') hw_svc_pir = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 41), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcPir.setStatus('current') hw_svc_qos_profile = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 42), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcQosProfile.setStatus('current') hw_svc_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 51), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwSvcRowStatus.setStatus('current') hw_svc_tnl_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 2)) if mibBuilder.loadTexts: hwSvcTnlTable.setStatus('current') hw_svc_tnl_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 2, 1)).setIndexNames((0, 'HUAWEI-PWE3-MIB', 'hwSvcIfIndex'), (0, 'HUAWEI-PWE3-MIB', 'hwSvcTnlIndex')) if mibBuilder.loadTexts: hwSvcTnlEntry.setStatus('current') hw_svc_tnl_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 2, 1, 1), unsigned32()) if mibBuilder.loadTexts: hwSvcTnlIndex.setStatus('current') hw_svc_tnl_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('lsp', 1), ('gre', 2), ('ipsec', 3), ('crLsp', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcTnlType.setStatus('current') hw_svc_tnl_for_bfd_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 2, 1, 3), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcTnlForBfdIndex.setStatus('current') hw_svc_statistics_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 3)) if mibBuilder.loadTexts: hwSvcStatisticsTable.setStatus('current') hw_svc_statistics_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 3, 1)).setIndexNames((0, 'HUAWEI-PWE3-MIB', 'hwSvcIfIndex')) if mibBuilder.loadTexts: hwSvcStatisticsEntry.setStatus('current') hw_svc_statistics_rcv_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 3, 1, 1), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcStatisticsRcvPkts.setStatus('current') hw_svc_statistics_rcv_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 3, 1, 2), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcStatisticsRcvBytes.setStatus('current') hw_svc_statistics_snd_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 3, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcStatisticsSndPkts.setStatus('current') hw_svc_statistics_snd_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 3, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwSvcStatisticsSndBytes.setStatus('current') hw_svc_switch_notif_enable = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 4), hw_enable_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwSvcSwitchNotifEnable.setStatus('current') hw_svc_up_down_notif_enable = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 5), hw_enable_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwSvcUpDownNotifEnable.setStatus('current') hw_svc_deleted_notif_enable = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 6), hw_enable_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwSvcDeletedNotifEnable.setStatus('current') hw_svc_state_change_reason = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 7), hwl2_vpn_state_change_reason()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwSvcStateChangeReason.setStatus('current') hw_l2vpn_svc_mib_traps = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 4)) hw_svc_switch_wto_p = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 4, 1)).setObjects(('HUAWEI-PWE3-MIB', 'hwSvcID'), ('HUAWEI-PWE3-MIB', 'hwSvcType'), ('HUAWEI-PWE3-MIB', 'hwSvcCtrlWord'), ('HUAWEI-PWE3-MIB', 'hwSvcStateChangeReason'), ('IF-MIB', 'ifName')) if mibBuilder.loadTexts: hwSvcSwitchWtoP.setStatus('current') hw_svc_switch_pto_w = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 4, 2)).setObjects(('HUAWEI-PWE3-MIB', 'hwSvcID'), ('HUAWEI-PWE3-MIB', 'hwSvcType'), ('HUAWEI-PWE3-MIB', 'hwSvcCtrlWord'), ('HUAWEI-PWE3-MIB', 'hwSvcStateChangeReason'), ('IF-MIB', 'ifName')) if mibBuilder.loadTexts: hwSvcSwitchPtoW.setStatus('current') hw_svc_down = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 4, 3)).setObjects(('HUAWEI-PWE3-MIB', 'hwSvcID'), ('HUAWEI-PWE3-MIB', 'hwSvcType'), ('HUAWEI-PWE3-MIB', 'hwSvcPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwSvcInboundLabel'), ('HUAWEI-PWE3-MIB', 'hwSvcOutboundLabel'), ('HUAWEI-PWE3-MIB', 'hwSvcStateChangeReason'), ('IF-MIB', 'ifName'), ('HUAWEI-PWE3-MIB', 'hwSvcTnlPolicyName')) if mibBuilder.loadTexts: hwSvcDown.setStatus('current') hw_svc_up = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 4, 4)).setObjects(('HUAWEI-PWE3-MIB', 'hwSvcID'), ('HUAWEI-PWE3-MIB', 'hwSvcType'), ('HUAWEI-PWE3-MIB', 'hwSvcPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwSvcInboundLabel'), ('HUAWEI-PWE3-MIB', 'hwSvcOutboundLabel'), ('HUAWEI-PWE3-MIB', 'hwSvcStateChangeReason'), ('IF-MIB', 'ifName'), ('HUAWEI-PWE3-MIB', 'hwSvcTnlPolicyName')) if mibBuilder.loadTexts: hwSvcUp.setStatus('current') hw_svc_deleted = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 4, 5)).setObjects(('HUAWEI-PWE3-MIB', 'hwSvcID'), ('HUAWEI-PWE3-MIB', 'hwSvcType'), ('HUAWEI-PWE3-MIB', 'hwSvcPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwSvcInboundLabel'), ('HUAWEI-PWE3-MIB', 'hwSvcOutboundLabel')) if mibBuilder.loadTexts: hwSvcDeleted.setStatus('current') hw_pw_template_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5)) if mibBuilder.loadTexts: hwPWTemplateTable.setStatus('current') hw_pw_template_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1)).setIndexNames((0, 'HUAWEI-PWE3-MIB', 'hwPWTemplateName')) if mibBuilder.loadTexts: hwPWTemplateEntry.setStatus('current') hw_pw_template_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 1), octet_string().subtype(subtypeSpec=value_size_constraint(0, 19))) if mibBuilder.loadTexts: hwPWTemplateName.setStatus('current') hw_pw_template_peer_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 2), inet_address_type().clone('ipv4')).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplatePeerAddrType.setStatus('current') hw_pw_template_peer_addr = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 3), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplatePeerAddr.setStatus('current') hw_pw_template_ctrlword = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 4), hw_enable_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplateCtrlword.setStatus('current') hw_pw_template_vccv = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 5), bits().clone(namedValues=named_values(('ccCw', 0), ('ccAlert', 1), ('ccLabel', 2), ('cvIcmpping', 3), ('cvLspping', 4), ('cvBfd', 5), ('ccTtl', 6)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplateVCCV.setStatus('current') hw_pw_template_frag = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 6), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplateFrag.setStatus('current') hw_pw_template_bandwidth = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 32000000))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWTemplateBandwidth.setStatus('current') hw_pw_template_tnl_policy_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 8), octet_string().subtype(subtypeSpec=value_size_constraint(0, 39))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplateTnlPolicyName.setStatus('current') hw_pw_template_qo_s_behavior_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 9), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplateQoSBehaviorIndex.setStatus('current') hw_pw_template_explicit_path_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 10), octet_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplateExplicitPathName.setStatus('current') hw_pw_template_bfd_detect_multiplier = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 11), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(3, 50)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplateBFDDetectMultiplier.setStatus('current') hw_pw_template_bfd_min_receive_interval = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 12), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(3, 1000)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplateBFDMinReceiveInterval.setStatus('current') hw_pw_template_bfd_min_transmit_interval = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 13), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(3, 1000)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplateBFDMinTransmitInterval.setStatus('current') hw_pw_template_dynamic_bfd_detect = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 14), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplateDynamicBFDDetect.setStatus('current') hw_pw_template_max_atm_cells = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 15), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 28))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplateMaxAtmCells.setStatus('current') hw_pw_template_atm_pack_overtime = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 16), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(100, 50000)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplateAtmPackOvertime.setStatus('current') hw_pw_template_pw_jitter_buffer_depth = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 17), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 64))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplatePwJitterBufferDepth.setStatus('current') hw_pw_template_pw_tdm_encapsulation_num = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 18), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 40))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplatePwTdmEncapsulationNum.setStatus('current') hw_pw_template_pw_idle_code = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 19), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 255), value_range_constraint(65535, 65535)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplatePwIdleCode.setStatus('current') hw_pw_template_pw_rtp_header = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 20), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplatePwRtpHeader.setStatus('current') hw_pw_template_pw_cc_seq_enable = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 21), hw_enable_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplatePwCCSeqEnable.setStatus('current') hw_pw_template_cir = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 22), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplateCir.setStatus('current') hw_pw_template_pir = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 23), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplatePir.setStatus('current') hw_pw_template_qos_profile = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 24), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplateQosProfile.setStatus('current') hw_pw_template_flow_label = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 25), enabled_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplateFlowLabel.setStatus('current') hw_pw_template_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 51), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPWTemplateRowStatus.setStatus('current') hw_pw_template_mib_traps = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 6)) hw_pw_template_cannot_deleted = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 6, 1)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWTemplateName')) if mibBuilder.loadTexts: hwPWTemplateCannotDeleted.setStatus('current') hw_pw_table_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7)) hw_pw_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7, 1)) if mibBuilder.loadTexts: hwPWTable.setStatus('current') hw_pw_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7, 1, 1)).setIndexNames((0, 'HUAWEI-PWE3-MIB', 'hwPWId'), (0, 'HUAWEI-PWE3-MIB', 'hwPWType'), (0, 'HUAWEI-PWE3-MIB', 'hwPWPeerIp')) if mibBuilder.loadTexts: hwPWEntry.setStatus('current') hw_pw_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7, 1, 1, 1), unsigned32()) if mibBuilder.loadTexts: hwPWId.setStatus('current') hw_pw_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7, 1, 1, 2), hwl2_vpn_vc_encaps_type()) if mibBuilder.loadTexts: hwPWType.setStatus('current') hw_pw_peer_ip = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7, 1, 1, 3), ip_address()) if mibBuilder.loadTexts: hwPWPeerIp.setStatus('current') hw_pw_interface_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7, 1, 1, 4), interface_index_or_zero()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPWInterfaceIndex.setStatus('current') hw_pwe3_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3)) hw_pwe3_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 1)) hw_pwe3_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 1, 1)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcGroup'), ('HUAWEI-PWE3-MIB', 'hwPWVcTnlGroup'), ('HUAWEI-PWE3-MIB', 'hwPWVcStatisticsGroup'), ('HUAWEI-PWE3-MIB', 'hwPWRemoteVcGroup'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateGroup'), ('HUAWEI-PWE3-MIB', 'hwPWNotificationControlGroup'), ('HUAWEI-PWE3-MIB', 'hwPWVcStateChangeReasonGroup'), ('HUAWEI-PWE3-MIB', 'hwPWVcNotificationGroup'), ('HUAWEI-PWE3-MIB', 'hwPWTableGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_pwe3_mib_compliance = hwPwe3MIBCompliance.setStatus('current') hw_pwe3_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2)) hw_pw_vc_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 1)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcPeerAddrType'), ('HUAWEI-PWE3-MIB', 'hwPWVcPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwPWVcStatus'), ('HUAWEI-PWE3-MIB', 'hwPWVcInboundLabel'), ('HUAWEI-PWE3-MIB', 'hwPWVcOutboundLabel'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchSign'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchID'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchPeerAddrType'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchInboundLabel'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchOutboundLabel'), ('HUAWEI-PWE3-MIB', 'hwPWVcGroupID'), ('HUAWEI-PWE3-MIB', 'hwPWVcIfIndex'), ('HUAWEI-PWE3-MIB', 'hwPWVcAcStatus'), ('HUAWEI-PWE3-MIB', 'hwPWVcACOAMStatus'), ('HUAWEI-PWE3-MIB', 'hwPWVcMtu'), ('HUAWEI-PWE3-MIB', 'hwPWVcCtrlWord'), ('HUAWEI-PWE3-MIB', 'hwPWVcVCCV'), ('HUAWEI-PWE3-MIB', 'hwPWVcBandWidth'), ('HUAWEI-PWE3-MIB', 'hwPWVcMaxAtmCells'), ('HUAWEI-PWE3-MIB', 'hwPWVcTnlPolicyName'), ('HUAWEI-PWE3-MIB', 'hwPWVcQoSBehaviorIndex'), ('HUAWEI-PWE3-MIB', 'hwPWVcExplicitPathName'), ('HUAWEI-PWE3-MIB', 'hwPWVcTemplateName'), ('HUAWEI-PWE3-MIB', 'hwPWVcSecondary'), ('HUAWEI-PWE3-MIB', 'hwPWVcUpTime'), ('HUAWEI-PWE3-MIB', 'hwPWOAMSync'), ('HUAWEI-PWE3-MIB', 'hwPWVCForBfdIndex'), ('HUAWEI-PWE3-MIB', 'hwPWVcDelayTime'), ('HUAWEI-PWE3-MIB', 'hwPWVcReroutePolicy'), ('HUAWEI-PWE3-MIB', 'hwPWVcResumeTime'), ('HUAWEI-PWE3-MIB', 'hwPWVcRerouteReason'), ('HUAWEI-PWE3-MIB', 'hwPWVcLastRerouteTime'), ('HUAWEI-PWE3-MIB', 'hwPWVcManualSetFault'), ('HUAWEI-PWE3-MIB', 'hwPWVcActive'), ('HUAWEI-PWE3-MIB', 'hwPWVcVrIfIndex'), ('HUAWEI-PWE3-MIB', 'hwPWVcVrID'), ('HUAWEI-PWE3-MIB', 'hwPWBFDDetectMultiplier'), ('HUAWEI-PWE3-MIB', 'hwPWBFDMinReceiveInterval'), ('HUAWEI-PWE3-MIB', 'hwPWBFDMinTransmitInterval'), ('HUAWEI-PWE3-MIB', 'hwPWDynamicBFDDetect'), ('HUAWEI-PWE3-MIB', 'hwPWBFDRemoteVcID'), ('HUAWEI-PWE3-MIB', 'hwPWEthOamType'), ('HUAWEI-PWE3-MIB', 'hwPWCfmMaIndex'), ('HUAWEI-PWE3-MIB', 'hwPWVcUpStartTime'), ('HUAWEI-PWE3-MIB', 'hwPWVcUpSumTime'), ('HUAWEI-PWE3-MIB', 'hwPWVcIfName'), ('HUAWEI-PWE3-MIB', 'hwPWVcRowStatus'), ('HUAWEI-PWE3-MIB', 'hwPWVcAtmPackOvertime'), ('HUAWEI-PWE3-MIB', 'hwPWVcPwJitterBufferDepth'), ('HUAWEI-PWE3-MIB', 'hwPWVcPwTdmEncapsulationNum'), ('HUAWEI-PWE3-MIB', 'hwPWVcPwIdleCode'), ('HUAWEI-PWE3-MIB', 'hwPWVcPwRtpHeader'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchTnlPolicyName'), ('HUAWEI-PWE3-MIB', 'hwPWVcCfmMdIndex'), ('HUAWEI-PWE3-MIB', 'hwPWVcCfmMaName'), ('HUAWEI-PWE3-MIB', 'hwPWVcCfmMdName'), ('HUAWEI-PWE3-MIB', 'hwPWVcRawOrTagged'), ('HUAWEI-PWE3-MIB', 'hwPWVcInterworkingType'), ('HUAWEI-PWE3-MIB', 'hwPWVcCir'), ('HUAWEI-PWE3-MIB', 'hwPWVcPir'), ('HUAWEI-PWE3-MIB', 'hwPWVcQosProfile'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchCir'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchPir'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchQosProfile'), ('HUAWEI-PWE3-MIB', 'hwPWVcTrigger'), ('HUAWEI-PWE3-MIB', 'hwPWVcEnableACOAM'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchVrIfIndex'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchVrID'), ('HUAWEI-PWE3-MIB', 'hwPWVcQosParaFromPWT'), ('HUAWEI-PWE3-MIB', 'hwPWVcBfdParaFromPWT'), ('HUAWEI-PWE3-MIB', 'hwPwVcNegotiateMode'), ('HUAWEI-PWE3-MIB', 'hwPwVcIsBypass'), ('HUAWEI-PWE3-MIB', 'hwPwVcIsAdmin'), ('HUAWEI-PWE3-MIB', 'hwPwVcAdminPwIfIndex'), ('HUAWEI-PWE3-MIB', 'hwPwVcAdminPwLinkStatus'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchAdminPwIfIndex'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchAdminPwLinkStatus'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupAdminPwIfIndex'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupAdminPwLinkStatus'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupVcId'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupVcPeerAddrType'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupVcPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupVcReceiveLabel'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupVcSendLabel'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupVcTnlPolicyName'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupVcCir'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupVcPir'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupVcQosProfile'), ('HUAWEI-PWE3-MIB', 'hwPwVcSlaveMasterMode'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchVcSlaveMasterMode'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupVcSlaveMasterMode'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchVcActive'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupVcActive'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchCwTrans'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchVcServiceName'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupVcServiceName')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_pw_vc_group = hwPWVcGroup.setStatus('current') hw_pw_vc_tnl_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 2)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcTnlType'), ('HUAWEI-PWE3-MIB', 'hwPWTnlForBfdIndex')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_pw_vc_tnl_group = hwPWVcTnlGroup.setStatus('current') hw_pw_vc_statistics_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 3)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcStatisticsRcvPkts'), ('HUAWEI-PWE3-MIB', 'hwPWVcStatisticsRcvBytes'), ('HUAWEI-PWE3-MIB', 'hwPWVcStatisticsSndPkts'), ('HUAWEI-PWE3-MIB', 'hwPWVcStatisticsSndBytes')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_pw_vc_statistics_group = hwPWVcStatisticsGroup.setStatus('current') hw_pw_remote_vc_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 4)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWRemoteVcID'), ('HUAWEI-PWE3-MIB', 'hwPWRemoteVcType'), ('HUAWEI-PWE3-MIB', 'hwPWRemoteVcStatus'), ('HUAWEI-PWE3-MIB', 'hwPWRemoteVcGroupID'), ('HUAWEI-PWE3-MIB', 'hwPWRemoteVcMtu'), ('HUAWEI-PWE3-MIB', 'hwPWRemoteVcCtrlword'), ('HUAWEI-PWE3-MIB', 'hwPWRemoteVcMaxAtmCells'), ('HUAWEI-PWE3-MIB', 'hwPWRemoteVcNotif')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_pw_remote_vc_group = hwPWRemoteVcGroup.setStatus('current') hw_pw_template_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 5)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWTemplatePeerAddrType'), ('HUAWEI-PWE3-MIB', 'hwPWTemplatePeerAddr'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateCtrlword'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateVCCV'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateFrag'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateBandwidth'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateTnlPolicyName'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateQoSBehaviorIndex'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateExplicitPathName'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateBFDDetectMultiplier'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateBFDMinReceiveInterval'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateBFDMinTransmitInterval'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateDynamicBFDDetect'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateMaxAtmCells'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateAtmPackOvertime'), ('HUAWEI-PWE3-MIB', 'hwPWTemplatePwJitterBufferDepth'), ('HUAWEI-PWE3-MIB', 'hwPWTemplatePwTdmEncapsulationNum'), ('HUAWEI-PWE3-MIB', 'hwPWTemplatePwIdleCode'), ('HUAWEI-PWE3-MIB', 'hwPWTemplatePwRtpHeader'), ('HUAWEI-PWE3-MIB', 'hwPWTemplatePwCCSeqEnable'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateCir'), ('HUAWEI-PWE3-MIB', 'hwPWTemplatePir'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateQosProfile'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateFlowLabel'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_pw_template_group = hwPWTemplateGroup.setStatus('current') hw_pw_notification_control_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 6)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcSwitchNotifEnable'), ('HUAWEI-PWE3-MIB', 'hwPWVcUpDownNotifEnable'), ('HUAWEI-PWE3-MIB', 'hwPWVcDeletedNotifEnable')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_pw_notification_control_group = hwPWNotificationControlGroup.setStatus('current') hw_pw_vc_state_change_reason_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 7)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcStateChangeReason'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchRmtID')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_pw_vc_state_change_reason_group = hwPWVcStateChangeReasonGroup.setStatus('current') hw_pw_vc_notification_group = notification_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 8)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcSwitchWtoP'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchPtoW'), ('HUAWEI-PWE3-MIB', 'hwPWVcDown'), ('HUAWEI-PWE3-MIB', 'hwPWVcUp'), ('HUAWEI-PWE3-MIB', 'hwPWVcDeleted'), ('HUAWEI-PWE3-MIB', 'hwPWVcBackup'), ('HUAWEI-PWE3-MIB', 'hwLdpPWVcDown'), ('HUAWEI-PWE3-MIB', 'hwLdpPWVcUp')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_pw_vc_notification_group = hwPWVcNotificationGroup.setStatus('current') hw_ldp_pw_state_change_reason_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 9)).setObjects(('HUAWEI-PWE3-MIB', 'hwLdpPWStateChangeReason')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_ldp_pw_state_change_reason_group = hwLdpPWStateChangeReasonGroup.setStatus('current') hw_pw_vc_tdm_perf_current_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 10)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcTDMPerfCurrentMissingPkts'), ('HUAWEI-PWE3-MIB', 'hwPWVcTDMPerfCurrentJtrBfrOverruns'), ('HUAWEI-PWE3-MIB', 'hwPWVcTDMPerfCurrentJtrBfrUnderruns'), ('HUAWEI-PWE3-MIB', 'hwPWVcTDMPerfCurrentMisOrderDropped'), ('HUAWEI-PWE3-MIB', 'hwPWVcTDMPerfCurrentMalformedPkt'), ('HUAWEI-PWE3-MIB', 'hwPWVcTDMPerfCurrentESs'), ('HUAWEI-PWE3-MIB', 'hwPWVcTDMPerfCurrentSESs'), ('HUAWEI-PWE3-MIB', 'hwPWVcTDMPerfCurrentUASs')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_pw_vc_tdm_perf_current_group = hwPWVcTDMPerfCurrentGroup.setStatus('current') hw_l2vpn_svc_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3)) hw_svc_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3, 1)).setObjects(('HUAWEI-PWE3-MIB', 'hwSvcID'), ('HUAWEI-PWE3-MIB', 'hwSvcType'), ('HUAWEI-PWE3-MIB', 'hwSvcPeerAddrType'), ('HUAWEI-PWE3-MIB', 'hwSvcPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwSvcStatus'), ('HUAWEI-PWE3-MIB', 'hwSvcInboundLabel'), ('HUAWEI-PWE3-MIB', 'hwSvcOutboundLabel'), ('HUAWEI-PWE3-MIB', 'hwSvcGroupID'), ('HUAWEI-PWE3-MIB', 'hwSvcAcStatus'), ('HUAWEI-PWE3-MIB', 'hwSvcACOAMStatus'), ('HUAWEI-PWE3-MIB', 'hwSvcMtu'), ('HUAWEI-PWE3-MIB', 'hwSvcCtrlWord'), ('HUAWEI-PWE3-MIB', 'hwSvcVCCV'), ('HUAWEI-PWE3-MIB', 'hwSvcBandWidth'), ('HUAWEI-PWE3-MIB', 'hwSvcMaxAtmCells'), ('HUAWEI-PWE3-MIB', 'hwSvcTnlPolicyName'), ('HUAWEI-PWE3-MIB', 'hwSvcQoSBehaviorIndex'), ('HUAWEI-PWE3-MIB', 'hwSvcPWTemplateName'), ('HUAWEI-PWE3-MIB', 'hwSvcUpTime'), ('HUAWEI-PWE3-MIB', 'hwSvcOAMSync'), ('HUAWEI-PWE3-MIB', 'hwSvcForBfdIndex'), ('HUAWEI-PWE3-MIB', 'hwSvcSecondary'), ('HUAWEI-PWE3-MIB', 'hwSvcDelayTime'), ('HUAWEI-PWE3-MIB', 'hwSvcReroutePolicy'), ('HUAWEI-PWE3-MIB', 'hwSvcResumeTime'), ('HUAWEI-PWE3-MIB', 'hwSvcRerouteReason'), ('HUAWEI-PWE3-MIB', 'hwSvcLastRerouteTime'), ('HUAWEI-PWE3-MIB', 'hwSvcManualSetFault'), ('HUAWEI-PWE3-MIB', 'hwSvcActive'), ('HUAWEI-PWE3-MIB', 'hwSvcUpStartTime'), ('HUAWEI-PWE3-MIB', 'hwSvcUpSumTime'), ('HUAWEI-PWE3-MIB', 'hwSvcAtmPackOvertime'), ('HUAWEI-PWE3-MIB', 'hwSvcPwJitterBufferDepth'), ('HUAWEI-PWE3-MIB', 'hwSvcPwTdmEncapsulationNum'), ('HUAWEI-PWE3-MIB', 'hwSvcPwIdleCode'), ('HUAWEI-PWE3-MIB', 'hwSvcPwRtpHeader'), ('HUAWEI-PWE3-MIB', 'hwSvcRawOrTagged'), ('HUAWEI-PWE3-MIB', 'hwSvcInterworkingType'), ('HUAWEI-PWE3-MIB', 'hwSvcCir'), ('HUAWEI-PWE3-MIB', 'hwSvcPir'), ('HUAWEI-PWE3-MIB', 'hwSvcQosProfile'), ('HUAWEI-PWE3-MIB', 'hwSvcRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_svc_group = hwSvcGroup.setStatus('current') hw_svc_tnl_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3, 2)).setObjects(('HUAWEI-PWE3-MIB', 'hwSvcTnlType'), ('HUAWEI-PWE3-MIB', 'hwSvcTnlForBfdIndex')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_svc_tnl_group = hwSvcTnlGroup.setStatus('current') hw_svc_statistics_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3, 3)).setObjects(('HUAWEI-PWE3-MIB', 'hwSvcStatisticsRcvPkts'), ('HUAWEI-PWE3-MIB', 'hwSvcStatisticsRcvBytes'), ('HUAWEI-PWE3-MIB', 'hwSvcStatisticsSndPkts'), ('HUAWEI-PWE3-MIB', 'hwSvcStatisticsSndBytes')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_svc_statistics_group = hwSvcStatisticsGroup.setStatus('current') hw_svc_notification_control_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3, 4)).setObjects(('HUAWEI-PWE3-MIB', 'hwSvcSwitchNotifEnable'), ('HUAWEI-PWE3-MIB', 'hwSvcUpDownNotifEnable'), ('HUAWEI-PWE3-MIB', 'hwSvcDeletedNotifEnable')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_svc_notification_control_group = hwSvcNotificationControlGroup.setStatus('current') hw_svc_state_change_reason_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3, 5)).setObjects(('HUAWEI-PWE3-MIB', 'hwSvcStateChangeReason')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_svc_state_change_reason_group = hwSvcStateChangeReasonGroup.setStatus('current') hw_svc_notification_group = notification_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3, 6)).setObjects(('HUAWEI-PWE3-MIB', 'hwSvcSwitchWtoP'), ('HUAWEI-PWE3-MIB', 'hwSvcSwitchPtoW'), ('HUAWEI-PWE3-MIB', 'hwSvcDown'), ('HUAWEI-PWE3-MIB', 'hwSvcUp'), ('HUAWEI-PWE3-MIB', 'hwSvcDeleted')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_svc_notification_group = hwSvcNotificationGroup.setStatus('current') hw_l2vpn_pw_table_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 4)) hw_pw_table_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 4, 1)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWInterfaceIndex')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_pw_table_group = hwPWTableGroup.setStatus('current') mibBuilder.exportSymbols('HUAWEI-PWE3-MIB', hwPWVcAcStatus=hwPWVcAcStatus, hwPWVcPwRtpHeader=hwPWVcPwRtpHeader, hwPWVcManualSetFault=hwPWVcManualSetFault, hwPWVcSwitchPeerAddr=hwPWVcSwitchPeerAddr, hwPWVcOutboundLabel=hwPWVcOutboundLabel, hwPWVcUpTime=hwPWVcUpTime, hwPWBFDRemoteVcID=hwPWBFDRemoteVcID, hwPWVcTnlIndex=hwPWVcTnlIndex, hwPwVcAdminPwLinkStatus=hwPwVcAdminPwLinkStatus, hwPWVcDown=hwPWVcDown, hwSvcSecondary=hwSvcSecondary, hwSvcTnlIndex=hwSvcTnlIndex, hwPWVcGroupID=hwPWVcGroupID, hwPwVcSwitchAdminPwLinkStatus=hwPwVcSwitchAdminPwLinkStatus, hwSvcReroutePolicy=hwSvcReroutePolicy, hwSvcACOAMStatus=hwSvcACOAMStatus, hwL2VpnPwe3=hwL2VpnPwe3, hwPWVcUpDownNotifEnable=hwPWVcUpDownNotifEnable, hwPWTableGroup=hwPWTableGroup, hwSvcStatisticsTable=hwSvcStatisticsTable, hwPWVcDeletedNotifEnable=hwPWVcDeletedNotifEnable, hwPWVcIfName=hwPWVcIfName, hwPWVcACOAMStatus=hwPWVcACOAMStatus, hwPWTemplatePir=hwPWTemplatePir, hwPWVcLastRerouteTime=hwPWVcLastRerouteTime, hwPwVcNegotiateMode=hwPwVcNegotiateMode, hwPWVcTnlPolicyName=hwPWVcTnlPolicyName, hwPWVcQosParaFromPWT=hwPWVcQosParaFromPWT, hwPwVcSwitchBackupVcQosProfile=hwPwVcSwitchBackupVcQosProfile, hwSvcMaxAtmCells=hwSvcMaxAtmCells, hwSvcVCCV=hwSvcVCCV, hwPWVcBandWidth=hwPWVcBandWidth, hwPWVcSwitchQosProfile=hwPWVcSwitchQosProfile, hwPWVcEntry=hwPWVcEntry, hwSvcStateChangeReasonGroup=hwSvcStateChangeReasonGroup, hwSvcManualSetFault=hwSvcManualSetFault, hwPwe3MIBCompliances=hwPwe3MIBCompliances, hwSvcStatisticsGroup=hwSvcStatisticsGroup, hwSvcUpTime=hwSvcUpTime, hwPWVcType=hwPWVcType, hwPWVcBfdParaFromPWT=hwPWVcBfdParaFromPWT, hwPWVcTDMPerfCurrentMisOrderDropped=hwPWVcTDMPerfCurrentMisOrderDropped, hwSvcDeleted=hwSvcDeleted, hwPWVcTDMPerfCurrentJtrBfrUnderruns=hwPWVcTDMPerfCurrentJtrBfrUnderruns, hwSvcStatisticsSndPkts=hwSvcStatisticsSndPkts, hwSvcSwitchPtoW=hwSvcSwitchPtoW, hwPWVcGroup=hwPWVcGroup, hwPWVcTrigger=hwPWVcTrigger, hwPwe3MIBConformance=hwPwe3MIBConformance, hwSvcMtu=hwSvcMtu, hwPwVcSwitchBackupVcServiceName=hwPwVcSwitchBackupVcServiceName, hwPwVcSwitchBackupAdminPwLinkStatus=hwPwVcSwitchBackupAdminPwLinkStatus, hwPWVcSwitchID=hwPWVcSwitchID, hwPWOAMSync=hwPWOAMSync, hwPwVcSwitchBackupAdminPwIfIndex=hwPwVcSwitchBackupAdminPwIfIndex, hwPWInterfaceIndex=hwPWInterfaceIndex, hwPWEntry=hwPWEntry, hwPWPeerIp=hwPWPeerIp, hwPWVcCtrlWord=hwPWVcCtrlWord, hwPwVcSwitchBackupVcActive=hwPwVcSwitchBackupVcActive, hwPWTemplateCir=hwPWTemplateCir, hwSvcInterworkingType=hwSvcInterworkingType, hwPWVcPwJitterBufferDepth=hwPWVcPwJitterBufferDepth, hwPWVcSwitchPtoW=hwPWVcSwitchPtoW, hwSvcQoSBehaviorIndex=hwSvcQoSBehaviorIndex, hwPWVcSwitchTnlPolicyName=hwPWVcSwitchTnlPolicyName, hwPWVcTnlTable=hwPWVcTnlTable, hwPWTemplateFlowLabel=hwPWTemplateFlowLabel, hwPWVcPeerAddrType=hwPWVcPeerAddrType, hwPwVcAdminPwIfIndex=hwPwVcAdminPwIfIndex, hwPWVcStatisticsSndPkts=hwPWVcStatisticsSndPkts, hwPwVcSlaveMasterMode=hwPwVcSlaveMasterMode, hwPWTemplateEntry=hwPWTemplateEntry, hwLdpPWVcUp=hwLdpPWVcUp, hwPWTemplateMIBTraps=hwPWTemplateMIBTraps, hwPWVcTDMPerfCurrentUASs=hwPWVcTDMPerfCurrentUASs, hwPwVcSwitchVcServiceName=hwPwVcSwitchVcServiceName, hwPWTemplateQoSBehaviorIndex=hwPWTemplateQoSBehaviorIndex, hwPWRemoteVcGroup=hwPWRemoteVcGroup, hwPWVcPwIdleCode=hwPWVcPwIdleCode, hwPWVcInboundLabel=hwPWVcInboundLabel, hwPWVcQoSBehaviorIndex=hwPWVcQoSBehaviorIndex, hwPWTemplateExplicitPathName=hwPWTemplateExplicitPathName, hwPWVcStatisticsRcvPkts=hwPWVcStatisticsRcvPkts, hwPWRemoteVcCtrlword=hwPWRemoteVcCtrlword, hwPWVcCfmMdIndex=hwPWVcCfmMdIndex, hwSvcOutboundLabel=hwSvcOutboundLabel, hwPWVcAtmPackOvertime=hwPWVcAtmPackOvertime, hwSvcIfIndex=hwSvcIfIndex, hwPWVcTnlEntry=hwPWVcTnlEntry, hwSvcAcStatus=hwSvcAcStatus, hwSvcCtrlWord=hwSvcCtrlWord, hwPWVcEnableACOAM=hwPWVcEnableACOAM, hwSvcDown=hwSvcDown, hwPWTemplatePeerAddr=hwPWTemplatePeerAddr, hwPWTemplateRowStatus=hwPWTemplateRowStatus, hwSvcSwitchNotifEnable=hwSvcSwitchNotifEnable, hwPwVcSwitchBackupVcCir=hwPwVcSwitchBackupVcCir, hwSvcCir=hwSvcCir, hwSvcID=hwSvcID, hwPWVcSwitchOutboundLabel=hwPWVcSwitchOutboundLabel, hwPWVcSwitchVrIfIndex=hwPWVcSwitchVrIfIndex, hwPwVcSwitchBackupVcPeerAddr=hwPwVcSwitchBackupVcPeerAddr, hwPWVcNotificationGroup=hwPWVcNotificationGroup, hwPWVcID=hwPWVcID, hwPWRemoteVcNotif=hwPWRemoteVcNotif, hwPWTable=hwPWTable, hwSvcPwIdleCode=hwSvcPwIdleCode, hwPWVcDelayTime=hwPWVcDelayTime, hwSvcTnlForBfdIndex=hwSvcTnlForBfdIndex, hwPWVcRerouteReason=hwPWVcRerouteReason, hwPWVcReroutePolicy=hwPWVcReroutePolicy, hwPWVcSecondary=hwPWVcSecondary, hwPWVcTDMPerfCurrentMissingPkts=hwPWVcTDMPerfCurrentMissingPkts, hwPWVcDeleted=hwPWVcDeleted, hwPWVcStateChangeReasonGroup=hwPWVcStateChangeReasonGroup, hwPWVcPwTdmEncapsulationNum=hwPWVcPwTdmEncapsulationNum, hwSvcResumeTime=hwSvcResumeTime, hwSvcLastRerouteTime=hwSvcLastRerouteTime, hwL2vpnSvcMIBTraps=hwL2vpnSvcMIBTraps, hwPWTemplatePwTdmEncapsulationNum=hwPWTemplatePwTdmEncapsulationNum, hwPWVcUpSumTime=hwPWVcUpSumTime, hwPWVcTemplateName=hwPWVcTemplateName, hwSvcStatus=hwSvcStatus, hwSvcStatisticsRcvBytes=hwSvcStatisticsRcvBytes, hwPWTemplateBFDMinTransmitInterval=hwPWTemplateBFDMinTransmitInterval, hwLdpPWVcDown=hwLdpPWVcDown, hwPWType=hwPWType, hwPwe3MIBTraps=hwPwe3MIBTraps, hwSvcUpDownNotifEnable=hwSvcUpDownNotifEnable, hwPWTemplateTable=hwPWTemplateTable, hwPWVcMtu=hwPWVcMtu, hwPWCfmMaIndex=hwPWCfmMaIndex, hwPWVcQosProfile=hwPWVcQosProfile, hwSvcStatisticsEntry=hwSvcStatisticsEntry, hwPwVcIsBypass=hwPwVcIsBypass, hwPWTemplatePeerAddrType=hwPWTemplatePeerAddrType, hwPWRemoteVcMtu=hwPWRemoteVcMtu, hwSvcGroup=hwSvcGroup, hwSvcDelayTime=hwSvcDelayTime, hwPwe3MIBGroups=hwPwe3MIBGroups, hwSvcObjects=hwSvcObjects, hwPwe3MIBObjects=hwPwe3MIBObjects, hwPWVcIfIndex=hwPWVcIfIndex, hwPWVcTDMPerfCurrentSESs=hwPWVcTDMPerfCurrentSESs, hwPwVcSwitchBackupVcTnlPolicyName=hwPwVcSwitchBackupVcTnlPolicyName, hwL2vpnSvcMIBGroups=hwL2vpnSvcMIBGroups, hwPWVcTDMPerfCurrentJtrBfrOverruns=hwPWVcTDMPerfCurrentJtrBfrOverruns, hwPWVCForBfdIndex=hwPWVCForBfdIndex, hwSvcPwJitterBufferDepth=hwSvcPwJitterBufferDepth, hwPWVcStatisticsEntry=hwPWVcStatisticsEntry, hwPWVcStatisticsSndBytes=hwPWVcStatisticsSndBytes, hwPWVcTnlType=hwPWVcTnlType, hwPWVcPeerAddr=hwPWVcPeerAddr, hwPWTemplateBandwidth=hwPWTemplateBandwidth, hwPWVcTDMPerfCurrentGroup=hwPWVcTDMPerfCurrentGroup, hwPWVcSwitchVrID=hwPWVcSwitchVrID, hwPWVcSwitchInboundLabel=hwPWVcSwitchInboundLabel, hwPWVcUp=hwPWVcUp, hwPWVcPir=hwPWVcPir, hwPWId=hwPWId, hwPWVcSwitchWtoP=hwPWVcSwitchWtoP, hwSvcQosProfile=hwSvcQosProfile, hwPwe3Objects=hwPwe3Objects, hwPWBFDMinReceiveInterval=hwPWBFDMinReceiveInterval, hwPwVcIsAdmin=hwPwVcIsAdmin, hwPWNotificationControlGroup=hwPWNotificationControlGroup, hwPWVcVCCV=hwPWVcVCCV, hwSvcNotificationGroup=hwSvcNotificationGroup, hwPWVcTDMPerfCurrentESs=hwPWVcTDMPerfCurrentESs, hwSvcTnlGroup=hwSvcTnlGroup, hwPWVcCfmMdName=hwPWVcCfmMdName, hwSvcForBfdIndex=hwSvcForBfdIndex, hwPWRemoteVcType=hwPWRemoteVcType, hwPWTemplateGroup=hwPWTemplateGroup, hwPWVcStatus=hwPWVcStatus, hwPWRemoteVcMaxAtmCells=hwPWRemoteVcMaxAtmCells, hwSvcActive=hwSvcActive, hwSvcUpStartTime=hwSvcUpStartTime, hwPWVcSwitchCir=hwPWVcSwitchCir, hwPWTemplatePwJitterBufferDepth=hwPWTemplatePwJitterBufferDepth, hwPwVcSwitchBackupVcSendLabel=hwPwVcSwitchBackupVcSendLabel, hwPWVcTDMPerfCurrentTable=hwPWVcTDMPerfCurrentTable, hwPWTemplateVCCV=hwPWTemplateVCCV, hwPWTemplateDynamicBFDDetect=hwPWTemplateDynamicBFDDetect, hwPWTemplateName=hwPWTemplateName, hwPWTemplateBFDMinReceiveInterval=hwPWTemplateBFDMinReceiveInterval, hwPwe3MIBCompliance=hwPwe3MIBCompliance, hwPWVcStatisticsGroup=hwPWVcStatisticsGroup, hwPWVcCir=hwPWVcCir, hwSvcSwitchWtoP=hwSvcSwitchWtoP, hwPWRemoteVcEntry=hwPWRemoteVcEntry, hwSvcStateChangeReason=hwSvcStateChangeReason, hwPWTemplateMaxAtmCells=hwPWTemplateMaxAtmCells, hwPwVcSwitchVcActive=hwPwVcSwitchVcActive, hwSvcPeerAddr=hwSvcPeerAddr, hwPwVcSwitchBackupVcPir=hwPwVcSwitchBackupVcPir, hwPWVcActive=hwPWVcActive, hwPWRemoteVcGroupID=hwPWRemoteVcGroupID, hwPWVcStatisticsRcvBytes=hwPWVcStatisticsRcvBytes, hwPWVcResumeTime=hwPWVcResumeTime, hwSvcTable=hwSvcTable, hwPWRemoteVcStatus=hwPWRemoteVcStatus, hwPWVcBackup=hwPWVcBackup, hwPWTemplateCtrlword=hwPWTemplateCtrlword, hwPWVcInterworkingType=hwPWVcInterworkingType, hwL2Vpn=hwL2Vpn, hwPWVcTable=hwPWVcTable, hwSvcBandWidth=hwSvcBandWidth, hwPWVcVrIfIndex=hwPWVcVrIfIndex, hwSvcStatisticsRcvPkts=hwSvcStatisticsRcvPkts, hwPWTemplateBFDDetectMultiplier=hwPWTemplateBFDDetectMultiplier, hwLdpPWStateChangeReasonGroup=hwLdpPWStateChangeReasonGroup, hwL2vpnPWTableMIBGroups=hwL2vpnPWTableMIBGroups, hwSvcTnlTable=hwSvcTnlTable, hwPWVcTnlGroup=hwPWVcTnlGroup, hwPWVcUpStartTime=hwPWVcUpStartTime, hwSvcPwTdmEncapsulationNum=hwSvcPwTdmEncapsulationNum, hwPwVcSwitchAdminPwIfIndex=hwPwVcSwitchAdminPwIfIndex, hwPwVcSwitchBackupVcSlaveMasterMode=hwPwVcSwitchBackupVcSlaveMasterMode, HWLdpPwStateChangeReason=HWLdpPwStateChangeReason, hwSvcPwRtpHeader=hwSvcPwRtpHeader, hwPWRemoteVcID=hwPWRemoteVcID, hwSvcTnlEntry=hwSvcTnlEntry, hwPWVcStatisticsTable=hwPWVcStatisticsTable, hwPwVcSwitchBackupVcPeerAddrType=hwPwVcSwitchBackupVcPeerAddrType, hwPWVcTDMPerfCurrentMalformedPkt=hwPWVcTDMPerfCurrentMalformedPkt, hwSvcTnlPolicyName=hwSvcTnlPolicyName, hwSvcUp=hwSvcUp, hwSvcAtmPackOvertime=hwSvcAtmPackOvertime, hwSvcPeerAddrType=hwSvcPeerAddrType, hwSvcPWTemplateName=hwSvcPWTemplateName, hwPWBFDMinTransmitInterval=hwPWBFDMinTransmitInterval, hwPWVcMaxAtmCells=hwPWVcMaxAtmCells, hwSvcRowStatus=hwSvcRowStatus, hwSvcStatisticsSndBytes=hwSvcStatisticsSndBytes, hwPWVcSwitchPeerAddrType=hwPWVcSwitchPeerAddrType, hwSvcType=hwSvcType, hwSvcUpSumTime=hwSvcUpSumTime, hwPWRemoteVcTable=hwPWRemoteVcTable, hwPWVcStateChangeReason=hwPWVcStateChangeReason, hwPwVcSwitchVcSlaveMasterMode=hwPwVcSwitchVcSlaveMasterMode, hwPWVcSwitchSign=hwPWVcSwitchSign, hwSvcEntry=hwSvcEntry, PYSNMP_MODULE_ID=hwL2VpnPwe3, hwPWTnlForBfdIndex=hwPWTnlForBfdIndex, hwSvcInboundLabel=hwSvcInboundLabel, hwSvcRerouteReason=hwSvcRerouteReason, hwSvcTnlType=hwSvcTnlType, hwPWVcCfmMaName=hwPWVcCfmMaName, hwPWTemplateAtmPackOvertime=hwPWTemplateAtmPackOvertime, hwPWVcSwitchPir=hwPWVcSwitchPir, hwPWTemplateQosProfile=hwPWTemplateQosProfile, hwSvcDeletedNotifEnable=hwSvcDeletedNotifEnable) mibBuilder.exportSymbols('HUAWEI-PWE3-MIB', hwPWTemplateFrag=hwPWTemplateFrag, hwPwVcSwitchBackupVcId=hwPwVcSwitchBackupVcId, hwPWEthOamType=hwPWEthOamType, hwPWVcSwitchRmtID=hwPWVcSwitchRmtID, hwSvcOAMSync=hwSvcOAMSync, hwPwVcSwitchCwTrans=hwPwVcSwitchCwTrans, hwPWBFDDetectMultiplier=hwPWBFDDetectMultiplier, hwSvcPir=hwSvcPir, hwPWTableObjects=hwPWTableObjects, hwPwVcSwitchBackupVcReceiveLabel=hwPwVcSwitchBackupVcReceiveLabel, hwSvcRawOrTagged=hwSvcRawOrTagged, hwPWTemplatePwRtpHeader=hwPWTemplatePwRtpHeader, hwPWTemplatePwCCSeqEnable=hwPWTemplatePwCCSeqEnable, hwPWVcRawOrTagged=hwPWVcRawOrTagged, hwLdpPWStateChangeReason=hwLdpPWStateChangeReason, hwPWVcVrID=hwPWVcVrID, hwPWTemplateTnlPolicyName=hwPWTemplateTnlPolicyName, hwPWTemplatePwIdleCode=hwPWTemplatePwIdleCode, hwPWTemplateCannotDeleted=hwPWTemplateCannotDeleted, hwSvcNotificationControlGroup=hwSvcNotificationControlGroup, hwSvcGroupID=hwSvcGroupID, hwPWVcSwitchNotifEnable=hwPWVcSwitchNotifEnable, hwPWVcRowStatus=hwPWVcRowStatus, hwPWVcTDMPerfCurrentEntry=hwPWVcTDMPerfCurrentEntry, hwPWVcExplicitPathName=hwPWVcExplicitPathName, hwPWDynamicBFDDetect=hwPWDynamicBFDDetect)
# Autogenerated config.py # # NOTE: config.py is intended for advanced users who are comfortable # with manually migrating the config file on qutebrowser upgrades. If # you prefer, you can also configure qutebrowser using the # :set/:bind/:config-* commands without having to write a config.py # file. # # Documentation: # qute://help/configuring.html # qute://help/settings.html # Change the argument to True to still load settings configured via autoconfig.yml config.load_autoconfig(False) # Always restore open sites when qutebrowser is reopened. Without this # option set, `:wq` (`:quit --save`) needs to be used to save open tabs # (and restore them), while quitting qutebrowser in any other way will # not save/restore the session. By default, this will save to the # session which was last loaded. This behavior can be customized via the # `session.default_name` setting. # Type: Bool c.auto_save.session = True # Which cookies to accept. With QtWebEngine, this setting also controls # other features with tracking capabilities similar to those of cookies; # including IndexedDB, DOM storage, filesystem API, service workers, and # AppCache. Note that with QtWebKit, only `all` and `never` are # supported as per-domain values. Setting `no-3rdparty` or `no- # unknown-3rdparty` per-domain on QtWebKit will have the same effect as # `all`. If this setting is used with URL patterns, the pattern gets # applied to the origin/first party URL of the page making the request, # not the request URL. With QtWebEngine 5.15.0+, paths will be stripped # from URLs, so URL patterns using paths will not match. With # QtWebEngine 5.15.2+, subdomains are additionally stripped as well, so # you will typically need to set this setting for `example.com` when the # cookie is set on `somesubdomain.example.com` for it to work properly. # To debug issues with this setting, start qutebrowser with `--debug # --logfilter network --debug-flag log-cookies` which will show all # cookies being set. # Type: String # Valid values: # - all: Accept all cookies. # - no-3rdparty: Accept cookies from the same origin only. This is known to break some sites, such as GMail. # - no-unknown-3rdparty: Accept cookies from the same origin only, unless a cookie is already set for the domain. On QtWebEngine, this is the same as no-3rdparty. # - never: Don't accept cookies at all. config.set('content.cookies.accept', 'all', 'chrome-devtools://*') # Which cookies to accept. With QtWebEngine, this setting also controls # other features with tracking capabilities similar to those of cookies; # including IndexedDB, DOM storage, filesystem API, service workers, and # AppCache. Note that with QtWebKit, only `all` and `never` are # supported as per-domain values. Setting `no-3rdparty` or `no- # unknown-3rdparty` per-domain on QtWebKit will have the same effect as # `all`. If this setting is used with URL patterns, the pattern gets # applied to the origin/first party URL of the page making the request, # not the request URL. With QtWebEngine 5.15.0+, paths will be stripped # from URLs, so URL patterns using paths will not match. With # QtWebEngine 5.15.2+, subdomains are additionally stripped as well, so # you will typically need to set this setting for `example.com` when the # cookie is set on `somesubdomain.example.com` for it to work properly. # To debug issues with this setting, start qutebrowser with `--debug # --logfilter network --debug-flag log-cookies` which will show all # cookies being set. # Type: String # Valid values: # - all: Accept all cookies. # - no-3rdparty: Accept cookies from the same origin only. This is known to break some sites, such as GMail. # - no-unknown-3rdparty: Accept cookies from the same origin only, unless a cookie is already set for the domain. On QtWebEngine, this is the same as no-3rdparty. # - never: Don't accept cookies at all. config.set('content.cookies.accept', 'all', 'devtools://*') # Allow websites to request geolocations. # Type: BoolAsk # Valid values: # - true # - false # - ask config.set('content.geolocation', False, 'https://www.google.com.ar') # Allow websites to request geolocations. # Type: BoolAsk # Valid values: # - true # - false # - ask # Value to send in the `Accept-Language` header. Note that the value # read from JavaScript is always the global value. # Type: String config.set('content.headers.accept_language', '', 'https://matchmaker.krunker.io/*') # User agent to send. The following placeholders are defined: * # `{os_info}`: Something like "X11; Linux x86_64". * `{webkit_version}`: # The underlying WebKit version (set to a fixed value with # QtWebEngine). * `{qt_key}`: "Qt" for QtWebKit, "QtWebEngine" for # QtWebEngine. * `{qt_version}`: The underlying Qt version. * # `{upstream_browser_key}`: "Version" for QtWebKit, "Chrome" for # QtWebEngine. * `{upstream_browser_version}`: The corresponding # Safari/Chrome version. * `{qutebrowser_version}`: The currently # running qutebrowser version. The default value is equal to the # unchanged user agent of QtWebKit/QtWebEngine. Note that the value # read from JavaScript is always the global value. With QtWebEngine # between 5.12 and 5.14 (inclusive), changing the value exposed to # JavaScript requires a restart. # Type: FormatString config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}) AppleWebKit/{webkit_version} (KHTML, like Gecko) {upstream_browser_key}/{upstream_browser_version} Safari/{webkit_version}', 'https://web.whatsapp.com/') # User agent to send. The following placeholders are defined: * # `{os_info}`: Something like "X11; Linux x86_64". * `{webkit_version}`: # The underlying WebKit version (set to a fixed value with # QtWebEngine). * `{qt_key}`: "Qt" for QtWebKit, "QtWebEngine" for # QtWebEngine. * `{qt_version}`: The underlying Qt version. * # `{upstream_browser_key}`: "Version" for QtWebKit, "Chrome" for # QtWebEngine. * `{upstream_browser_version}`: The corresponding # Safari/Chrome version. * `{qutebrowser_version}`: The currently # running qutebrowser version. The default value is equal to the # unchanged user agent of QtWebKit/QtWebEngine. Note that the value # read from JavaScript is always the global value. With QtWebEngine # between 5.12 and 5.14 (inclusive), changing the value exposed to # JavaScript requires a restart. # Type: FormatString config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}) AppleWebKit/{webkit_version} (KHTML, like Gecko) {upstream_browser_key}/{upstream_browser_version} Safari/{webkit_version} Edg/{upstream_browser_version}', 'https://accounts.google.com/*') # User agent to send. The following placeholders are defined: * # `{os_info}`: Something like "X11; Linux x86_64". * `{webkit_version}`: # The underlying WebKit version (set to a fixed value with # QtWebEngine). * `{qt_key}`: "Qt" for QtWebKit, "QtWebEngine" for # QtWebEngine. * `{qt_version}`: The underlying Qt version. * # `{upstream_browser_key}`: "Version" for QtWebKit, "Chrome" for # QtWebEngine. * `{upstream_browser_version}`: The corresponding # Safari/Chrome version. * `{qutebrowser_version}`: The currently # running qutebrowser version. The default value is equal to the # unchanged user agent of QtWebKit/QtWebEngine. Note that the value # read from JavaScript is always the global value. With QtWebEngine # between 5.12 and 5.14 (inclusive), changing the value exposed to # JavaScript requires a restart. # Type: FormatString config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99 Safari/537.36', 'https://*.slack.com/*') # Load images automatically in web pages. # Type: Bool config.set('content.images', True, 'chrome-devtools://*') # Load images automatically in web pages. # Type: Bool config.set('content.images', True, 'devtools://*') # Enable JavaScript. # Type: Bool config.set('content.javascript.enabled', True, 'chrome-devtools://*') # Enable JavaScript. # Type: Bool config.set('content.javascript.enabled', True, 'devtools://*') # Enable JavaScript. # Type: Bool config.set('content.javascript.enabled', True, 'chrome://*/*') # Enable JavaScript. # Type: Bool config.set('content.javascript.enabled', True, 'qute://*/*') # Allow websites to record audio. # Type: BoolAsk # Valid values: # - true # - false # - ask config.set('content.media.audio_capture', True, 'https://discord.com') # Allow websites to record audio and video. # Type: BoolAsk # Valid values: # - true # - false # - ask config.set('content.media.audio_video_capture', True, 'https://hangouts.google.com') # Allow websites to show notifications. # Type: BoolAsk # Valid values: # - true # - false # - ask config.set('content.notifications.enabled', False, 'https://www.facebook.com') # Allow websites to show notifications. # Type: BoolAsk # Valid values: # - true # - false # - ask config.set('content.notifications.enabled', False, 'https://www.netflix.com') # Allow websites to show notifications. # Type: BoolAsk # Valid values: # - true # - false # - ask config.set('content.notifications.enabled', False, 'https://www.nokia.com') # Allow websites to show notifications. # Type: BoolAsk # Valid values: # - true # - false # - ask config.set('content.notifications.enabled', False, 'https://www.reddit.com') # Allow websites to show notifications. # Type: BoolAsk # Valid values: # - true # - false # - ask config.set('content.notifications.enabled', False, 'https://www.samsung.com') # Allow websites to show notifications. # Type: BoolAsk # Valid values: # - true # - false # - ask config.set('content.notifications.enabled', False, 'https://www.youtube.com') # Allow websites to register protocol handlers via # `navigator.registerProtocolHandler`. # Type: BoolAsk # Valid values: # - true # - false # - ask config.set('content.register_protocol_handler', False, 'https://mail.google.com?extsrc=mailto&url=%25s') # Duration (in milliseconds) to wait before removing finished downloads. # If set to -1, downloads are never removed. # Type: Int c.downloads.remove_finished = 4000 # When to show the statusbar. # Type: String # Valid values: # - always: Always show the statusbar. # - never: Always hide the statusbar. # - in-mode: Show the statusbar when in modes other than normal mode. c.statusbar.show = 'in-mode' # How to behave when the last tab is closed. If the # `tabs.tabs_are_windows` setting is set, this is ignored and the # behavior is always identical to the `close` value. # Type: String # Valid values: # - ignore: Don't do anything. # - blank: Load a blank page. # - startpage: Load the start page. # - default-page: Load the default page. # - close: Close the window. c.tabs.last_close = 'startpage' # When to show the tab bar. # Type: String # Valid values: # - always: Always show the tab bar. # - never: Always hide the tab bar. # - multiple: Hide the tab bar if only one tab is open. # - switching: Show the tab bar when switching tabs. c.tabs.show = 'never' # Open a new window for every tab. # Type: Bool c.tabs.tabs_are_windows = True # Search engines which can be used via the address bar. Maps a search # engine name (such as `DEFAULT`, or `ddg`) to a URL with a `{}` # placeholder. The placeholder will be replaced by the search term, use # `{{` and `}}` for literal `{`/`}` braces. The following further # placeholds are defined to configure how special characters in the # search terms are replaced by safe characters (called 'quoting'): * # `{}` and `{semiquoted}` quote everything except slashes; this is the # most sensible choice for almost all search engines (for the search # term `slash/and&amp` this placeholder expands to `slash/and%26amp`). # * `{quoted}` quotes all characters (for `slash/and&amp` this # placeholder expands to `slash%2Fand%26amp`). * `{unquoted}` quotes # nothing (for `slash/and&amp` this placeholder expands to # `slash/and&amp`). * `{0}` means the same as `{}`, but can be used # multiple times. The search engine named `DEFAULT` is used when # `url.auto_search` is turned on and something else than a URL was # entered to be opened. Other search engines can be used by prepending # the search engine name to the search term, e.g. `:open google # qutebrowser`. # Type: Dict c.url.searchengines = {'DEFAULT': 'https://www.google.com/search?q={}', 'am': 'https://www.amazon.co.in/s?k={}', 'aw': 'https://wiki.archlinux.org/?search={}', 'g': 'https://www.google.com/search?q={}', 're': 'https://www.reddit.com/r/{}', 'wiki': 'https://en.wikipedia.org/wiki/{}', 'yt': 'https://www.youtube.com/results?search_query={}'} # Page(s) to open at the start. # Type: List of FuzzyUrl, or FuzzyUrl c.url.start_pages = '/home/nml/.config/qutebrowser/startpage/index.html' # Default font families to use. Whenever "default_family" is used in a # font setting, it's replaced with the fonts listed here. If set to an # empty value, a system-specific monospace default is used. # Type: List of Font, or Font c.fonts.default_family = 'Inter' # Default font size to use. Whenever "default_size" is used in a font # setting, it's replaced with the size listed here. Valid values are # either a float value with a "pt" suffix, or an integer value with a # "px" suffix. # Type: String c.fonts.default_size = '16px' # Font used in the completion widget. # Type: Font c.fonts.completion.entry = '12pt "Inter"' # Font used in the completion categories. # Type: Font c.fonts.completion.category = '12pt "Inter"' # Font used for the context menu. If set to null, the Qt default is # used. # Type: Font c.fonts.contextmenu = '12pt "Inter"' # Font used for the debugging console. # Type: Font c.fonts.debug_console = '12pt "Inter"' # Font used for the downloadbar. # Type: Font c.fonts.downloads = '12pt "Inter"' # Font used for the hints. # Type: Font c.fonts.hints = '12pt "Inter"' # Font used in the keyhint widget. # Type: Font c.fonts.keyhint = '12pt "Inter"' # Font used for info messages. # Type: Font c.fonts.messages.info = '12pt "Inter"' # Font used for prompts. # Type: Font c.fonts.prompts = '12pt "Inter"' # Font used in the statusbar. # Type: Font c.fonts.statusbar = '12pt "Inter"' # Font family for standard fonts. # Type: FontFamily c.fonts.web.family.standard = 'Inter' # Font family for sans-serif fonts. # Type: FontFamily c.fonts.web.family.sans_serif = 'Inter' config.source('gruvbox.py') # Bindings for normal mode config.bind(',M', 'hint links spawn mpv {hint-url}') config.bind(',m', 'spawn mpv {url}')
config.load_autoconfig(False) c.auto_save.session = True config.set('content.cookies.accept', 'all', 'chrome-devtools://*') config.set('content.cookies.accept', 'all', 'devtools://*') config.set('content.geolocation', False, 'https://www.google.com.ar') config.set('content.headers.accept_language', '', 'https://matchmaker.krunker.io/*') config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}) AppleWebKit/{webkit_version} (KHTML, like Gecko) {upstream_browser_key}/{upstream_browser_version} Safari/{webkit_version}', 'https://web.whatsapp.com/') config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}) AppleWebKit/{webkit_version} (KHTML, like Gecko) {upstream_browser_key}/{upstream_browser_version} Safari/{webkit_version} Edg/{upstream_browser_version}', 'https://accounts.google.com/*') config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99 Safari/537.36', 'https://*.slack.com/*') config.set('content.images', True, 'chrome-devtools://*') config.set('content.images', True, 'devtools://*') config.set('content.javascript.enabled', True, 'chrome-devtools://*') config.set('content.javascript.enabled', True, 'devtools://*') config.set('content.javascript.enabled', True, 'chrome://*/*') config.set('content.javascript.enabled', True, 'qute://*/*') config.set('content.media.audio_capture', True, 'https://discord.com') config.set('content.media.audio_video_capture', True, 'https://hangouts.google.com') config.set('content.notifications.enabled', False, 'https://www.facebook.com') config.set('content.notifications.enabled', False, 'https://www.netflix.com') config.set('content.notifications.enabled', False, 'https://www.nokia.com') config.set('content.notifications.enabled', False, 'https://www.reddit.com') config.set('content.notifications.enabled', False, 'https://www.samsung.com') config.set('content.notifications.enabled', False, 'https://www.youtube.com') config.set('content.register_protocol_handler', False, 'https://mail.google.com?extsrc=mailto&url=%25s') c.downloads.remove_finished = 4000 c.statusbar.show = 'in-mode' c.tabs.last_close = 'startpage' c.tabs.show = 'never' c.tabs.tabs_are_windows = True c.url.searchengines = {'DEFAULT': 'https://www.google.com/search?q={}', 'am': 'https://www.amazon.co.in/s?k={}', 'aw': 'https://wiki.archlinux.org/?search={}', 'g': 'https://www.google.com/search?q={}', 're': 'https://www.reddit.com/r/{}', 'wiki': 'https://en.wikipedia.org/wiki/{}', 'yt': 'https://www.youtube.com/results?search_query={}'} c.url.start_pages = '/home/nml/.config/qutebrowser/startpage/index.html' c.fonts.default_family = 'Inter' c.fonts.default_size = '16px' c.fonts.completion.entry = '12pt "Inter"' c.fonts.completion.category = '12pt "Inter"' c.fonts.contextmenu = '12pt "Inter"' c.fonts.debug_console = '12pt "Inter"' c.fonts.downloads = '12pt "Inter"' c.fonts.hints = '12pt "Inter"' c.fonts.keyhint = '12pt "Inter"' c.fonts.messages.info = '12pt "Inter"' c.fonts.prompts = '12pt "Inter"' c.fonts.statusbar = '12pt "Inter"' c.fonts.web.family.standard = 'Inter' c.fonts.web.family.sans_serif = 'Inter' config.source('gruvbox.py') config.bind(',M', 'hint links spawn mpv {hint-url}') config.bind(',m', 'spawn mpv {url}')
'''from flask import Flask from threading import Thread app = Flask('') @app.route('/') def main(): return print("Your bot is alive!") def run(): app.run(host="0.0.0.0", port=8080) 4692 def keep_alive(): server = Thread(target=run) server.start()''' '''from flask import Flask from threading import Thread app = Flask('') @app.route('/') def home(): return "I'm alive" def run(): app.run(host='0.0.0.0',port=4692) #4692 #1151 def keep_alive(): t = Thread(target=run) t.start()'''
"""from flask import Flask from threading import Thread app = Flask('') @app.route('/') def main(): return print("Your bot is alive!") def run(): app.run(host="0.0.0.0", port=8080) 4692 def keep_alive(): server = Thread(target=run) server.start()""" 'from flask import Flask\nfrom threading import Thread\n\napp = Flask(\'\')\n\n@app.route(\'/\')\ndef home():\n return "I\'m alive"\n\ndef run():\n app.run(host=\'0.0.0.0\',port=4692) #4692 #1151\n\ndef keep_alive():\n t = Thread(target=run)\n t.start()'
# # PySNMP MIB module CYCLADES-ACS-ADM-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CYCLADES-ACS-ADM-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 18:18:44 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, SingleValueConstraint, ConstraintsUnion, ValueSizeConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "SingleValueConstraint", "ConstraintsUnion", "ValueSizeConstraint", "ValueRangeConstraint") cyACSMgmt, = mibBuilder.importSymbols("CYCLADES-ACS-MIB", "cyACSMgmt") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Gauge32, IpAddress, TimeTicks, MibScalar, MibTable, MibTableRow, MibTableColumn, iso, ModuleIdentity, Integer32, Counter32, ObjectIdentity, NotificationType, Counter64, Unsigned32, MibIdentifier, Bits = mibBuilder.importSymbols("SNMPv2-SMI", "Gauge32", "IpAddress", "TimeTicks", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "iso", "ModuleIdentity", "Integer32", "Counter32", "ObjectIdentity", "NotificationType", "Counter64", "Unsigned32", "MibIdentifier", "Bits") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") cyACSAdm = ModuleIdentity((1, 3, 6, 1, 4, 1, 2925, 4, 4)) cyACSAdm.setRevisions(('2005-08-29 00:00', '2002-09-20 00:00',)) if mibBuilder.loadTexts: cyACSAdm.setLastUpdated('200508290000Z') if mibBuilder.loadTexts: cyACSAdm.setOrganization('Cyclades Corporation') cyACSSave = MibScalar((1, 3, 6, 1, 4, 1, 2925, 4, 4, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("nosave", 0), ("save", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cyACSSave.setStatus('current') cyACSSerialHUP = MibScalar((1, 3, 6, 1, 4, 1, 2925, 4, 4, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("norestartportslave", 0), ("restartportslave", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cyACSSerialHUP.setStatus('current') mibBuilder.exportSymbols("CYCLADES-ACS-ADM-MIB", cyACSSerialHUP=cyACSSerialHUP, PYSNMP_MODULE_ID=cyACSAdm, cyACSAdm=cyACSAdm, cyACSSave=cyACSSave)
(integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_intersection, single_value_constraint, constraints_union, value_size_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'SingleValueConstraint', 'ConstraintsUnion', 'ValueSizeConstraint', 'ValueRangeConstraint') (cy_acs_mgmt,) = mibBuilder.importSymbols('CYCLADES-ACS-MIB', 'cyACSMgmt') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (gauge32, ip_address, time_ticks, mib_scalar, mib_table, mib_table_row, mib_table_column, iso, module_identity, integer32, counter32, object_identity, notification_type, counter64, unsigned32, mib_identifier, bits) = mibBuilder.importSymbols('SNMPv2-SMI', 'Gauge32', 'IpAddress', 'TimeTicks', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'iso', 'ModuleIdentity', 'Integer32', 'Counter32', 'ObjectIdentity', 'NotificationType', 'Counter64', 'Unsigned32', 'MibIdentifier', 'Bits') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') cy_acs_adm = module_identity((1, 3, 6, 1, 4, 1, 2925, 4, 4)) cyACSAdm.setRevisions(('2005-08-29 00:00', '2002-09-20 00:00')) if mibBuilder.loadTexts: cyACSAdm.setLastUpdated('200508290000Z') if mibBuilder.loadTexts: cyACSAdm.setOrganization('Cyclades Corporation') cy_acs_save = mib_scalar((1, 3, 6, 1, 4, 1, 2925, 4, 4, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('nosave', 0), ('save', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cyACSSave.setStatus('current') cy_acs_serial_hup = mib_scalar((1, 3, 6, 1, 4, 1, 2925, 4, 4, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('norestartportslave', 0), ('restartportslave', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cyACSSerialHUP.setStatus('current') mibBuilder.exportSymbols('CYCLADES-ACS-ADM-MIB', cyACSSerialHUP=cyACSSerialHUP, PYSNMP_MODULE_ID=cyACSAdm, cyACSAdm=cyACSAdm, cyACSSave=cyACSSave)
US_CENSUS = {'age': {'18-24': 0.1304, '25-44': 0.3505, '45-64': 0.3478, '65+': 0.1713}, # Age from 2010 US Census https://www.census.gov/prod/cen2010/briefs/c2010br-03.pdf 'education': {'Completed graduate school': 0.1204, 'Graduated from college': 0.2128, 'Some college, no degree': 0.2777, 'Graduated from high school': 0.2832, 'Less than high school': 0.1060}, # Education from 2019 ACS https://www.census.gov/data/tables/2019/demo/educational-attainment/cps-detailed-tables.html 'gender': {'Female': 0.507, 'Male': 0.487, 'Other': 0.006}, # Male-Female from 2010 US Census https://www.census.gov/prod/cen2010/briefs/c2010br-03.pdf, other from https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5227946/ 'income': {'Under $15,000': 0.1020, 'Between $15,000 and $49,999': 0.2970, 'Between $50,000 and $74,999': 0.1720, 'Between $75,000 and $99,999': 0.1250, 'Between $100,000 and $150,000': 0.1490, 'Over $150,000': 0.1550}, # Income from 2019 ACS (p34) https://www.census.gov/content/dam/Census/library/publications/2019/demo/p60-266.pdf 'race': {'White or Caucasian': 0.6340, 'Asian or Asian American': 0.0590, 'Black or African American': 0.1340, 'Hispanic or Latino': 0.1530, 'Other': 0.02}, # Race from 2019 Census estimates https://en.wikipedia.org/wiki/Race_and_ethnicity_in_the_United_States#Racial_categories 'urban_rural': {'Suburban': 0.5500, 'Urban': 0.3100, 'Rural': 0.1400}, # Urban-Rural from 2018 Pew https://www.pewsocialtrends.org/2018/05/22/demographic-and-economic-trends-in-urban-suburban-and-rural-communities/ # Regions follow a custom definition, see `US_REGIONS_MAP` 'region': {'Midwest': 0.2149, 'Mountains': 0.0539, 'Northeast': 0.1604, 'Pacific': 0.1602, 'South': 0.2180, 'Southwest': 0.0531, 'Southeast': 0.1398}, # Regions from 2019 Census estimates https://en.wikipedia.org/wiki/List_of_states_and_territories_of_the_United_States_by_population 'vote2016': {'Hillary Clinton': 0.482, 'Donald Trump': 0.461, 'Other': 0.057}, # 2016 US election popular vote as recorded by Wikipedia https://en.wikipedia.org/wiki/2016_United_States_presidential_election 'vote2020': {'Joe Biden': 0.513, 'Donald Trump': 0.469, 'Other': 0.018}, # 2020 US election popular vote as recorded by Wikipedia https://en.wikipedia.org/wiki/2020_United_States_presidential_election 'left_right': {'Liberal': 0.35, # Sienna College / NYT poll <https://int.nyt.com/data/documenttools/nyt-siena-poll-methodology-june-2020/f6f533b4d07f4cbe/full.pdf> 'Moderate': 0.26, 'Conservative': 0.30}, 'gss_bible': {'Word of God': 0.31, 'Inspired word': 0.473, 'Book of fables': 0.217}, # From GSS 2018 https://gssdataexplorer.norc.org/variables/364/vshow 'gss_trust': {'Can trust': 0.331, 'Can\'t be too careful': 0.669 }, # From GSS 2018 https://gssdataexplorer.norc.org/variables/441/vshow 'gss_spanking': {'Agree': 0.677, 'Disagree': 0.323}} # From GSS 2018 https://gssdataexplorer.norc.org/trends/Gender%20&%20Marriage?measure=spanking US_CA_CENSUS = {'age': {'18-24': 0.136, '25-44': 0.434, '45-64': 0.282, '65+': 0.147}, # Age 2018 US Census https://www.infoplease.com/us/census/california/demographic-statistics 'education': {'Completed graduate school': 0.13, 'Graduated from college': 0.218, 'Some college, no degree': 0.285, 'Graduated from high school': 0.206, 'Less than high school': 0.16}, # Education from https://www.statista.com/statistics/306963/educational-attainment-california 'gender': {'Female': 0.499, 'Male': 0.495, 'Other': 0.006}, # Male-Female from 2018 US Census, other from https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5227946/ 'income': {'Under $15,000': 0.106, 'Between $15,000 and $49,999': 0.2955, 'Between $50,000 and $74,999': 0.1652, 'Between $75,000 and $99,999': 0.1210, 'Between $100,000 and $150,000': 0.1523, 'Over $150,000': 0.1597}, # Income from https://statisticalatlas.com/state/California/Household-Income 'race': {'White or Caucasian': 0.3664, 'Asian or Asian American': 0.1452, 'Black or African American': 0.0551, 'Hispanic or Latino': 0.3929, 'Other': 0.0404}, # Race from 2018 Census estimates https://en.wikipedia.org/wiki/File:Ethic_California_Organized_Pie.png 'vote2016': {'Hillary Clinton': 0.6173, 'Donald Trump': 0.3162, 'Other': 0.0665}} # 2016 US election popular vote as recorded by Wikipedia https://en.wikipedia.org/wiki/2016_United_States_presidential_election_in_California US_TX_CENSUS = {'age': {'18-24': 0.109, '25-44': 0.389, '45-64': 0.325, '65+': 0.177}, # Age from 2019 US Census https://www.statista.com/statistics/912205/texas-population-share-age-group/ # 72.7% over 18 per https://en.wikipedia.org/wiki/Demographics_of_Texas 'education': {'Completed graduate school': 0.108, 'Graduated from college': 0.2, 'Some college, no degree': 0.287, 'Graduated from high school': 0.252, 'Less than high school': 0.154}, # Education from https://www.statista.com/statistics/306995/educational-attainment-texas/ 'gender': {'Female': 0.499, 'Male': 0.495, 'Other': 0.006}, # Male-Female from https://www.census.gov/quickfacts/TX, other from https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5227946/ 'income': {'Under $15,000': 0.1186, 'Between $15,000 and $49,999': 0.3524, 'Between $50,000 and $74,999': 0.1652, 'Between $75,000 and $99,999': 0.119, 'Between $100,000 and $150,000': 0.1342, 'Over $150,000': 0.1106}, # Income from https://statisticalatlas.com/state/Texas/Household-Income 'race': {'White or Caucasian': 0.4140, 'Asian or Asian American': 0.0493, 'Black or African American': 0.1188, 'Hispanic or Latino': 0.3961, 'Other': 0.0218}, # Race from 2018 Census estimates https://en.wikipedia.org/wiki/Demographics_of_Texas 'vote2016': {'Hillary Clinton': 0.4324, 'Donald Trump': 0.5223, 'Other': 0.0453}} # 2016 US election popular vote as recorded by Wikipedia https://en.wikipedia.org/wiki/2016_United_States_presidential_election_in_Texas US_REGIONS_MAP = {'Midwest': ['Illinois', 'Indiana', 'Iowa', 'Michigan', 'Minnesota', 'Ohio', 'Pennsylvania', 'Wisconsin'], 'Mountains': ['Alaska', 'Idaho', 'Kansas', 'Montana', 'Nebraska', 'North Dakota', 'South Dakota', 'Utah', 'Wyoming', 'Oklahoma'], 'Northeast': ['Connecticut', 'Delaware', 'District of Columbia (DC)', 'Maine', 'Maryland', 'Massachusetts', 'New Hampshire', 'New Jersey', 'New York', 'Rhode Island', 'Vermont'], 'Pacific': ['California', 'Hawaii', 'Oregon', 'Washington', 'Guam', 'Puerto Rico', 'Virgin Islands'], 'South': ['Missouri', 'Tennessee', 'Alabama', 'Arkansas', 'Kentucky', 'Louisiana', 'Mississippi', 'Texas', 'Virginia', 'West Virginia'], 'Southwest': ['Arizona', 'Colorado', 'Nevada', 'New Mexico'], 'Southeast': ['Florida', 'Georgia', 'North Carolina', 'South Carolina']}
us_census = {'age': {'18-24': 0.1304, '25-44': 0.3505, '45-64': 0.3478, '65+': 0.1713}, 'education': {'Completed graduate school': 0.1204, 'Graduated from college': 0.2128, 'Some college, no degree': 0.2777, 'Graduated from high school': 0.2832, 'Less than high school': 0.106}, 'gender': {'Female': 0.507, 'Male': 0.487, 'Other': 0.006}, 'income': {'Under $15,000': 0.102, 'Between $15,000 and $49,999': 0.297, 'Between $50,000 and $74,999': 0.172, 'Between $75,000 and $99,999': 0.125, 'Between $100,000 and $150,000': 0.149, 'Over $150,000': 0.155}, 'race': {'White or Caucasian': 0.634, 'Asian or Asian American': 0.059, 'Black or African American': 0.134, 'Hispanic or Latino': 0.153, 'Other': 0.02}, 'urban_rural': {'Suburban': 0.55, 'Urban': 0.31, 'Rural': 0.14}, 'region': {'Midwest': 0.2149, 'Mountains': 0.0539, 'Northeast': 0.1604, 'Pacific': 0.1602, 'South': 0.218, 'Southwest': 0.0531, 'Southeast': 0.1398}, 'vote2016': {'Hillary Clinton': 0.482, 'Donald Trump': 0.461, 'Other': 0.057}, 'vote2020': {'Joe Biden': 0.513, 'Donald Trump': 0.469, 'Other': 0.018}, 'left_right': {'Liberal': 0.35, 'Moderate': 0.26, 'Conservative': 0.3}, 'gss_bible': {'Word of God': 0.31, 'Inspired word': 0.473, 'Book of fables': 0.217}, 'gss_trust': {'Can trust': 0.331, "Can't be too careful": 0.669}, 'gss_spanking': {'Agree': 0.677, 'Disagree': 0.323}} us_ca_census = {'age': {'18-24': 0.136, '25-44': 0.434, '45-64': 0.282, '65+': 0.147}, 'education': {'Completed graduate school': 0.13, 'Graduated from college': 0.218, 'Some college, no degree': 0.285, 'Graduated from high school': 0.206, 'Less than high school': 0.16}, 'gender': {'Female': 0.499, 'Male': 0.495, 'Other': 0.006}, 'income': {'Under $15,000': 0.106, 'Between $15,000 and $49,999': 0.2955, 'Between $50,000 and $74,999': 0.1652, 'Between $75,000 and $99,999': 0.121, 'Between $100,000 and $150,000': 0.1523, 'Over $150,000': 0.1597}, 'race': {'White or Caucasian': 0.3664, 'Asian or Asian American': 0.1452, 'Black or African American': 0.0551, 'Hispanic or Latino': 0.3929, 'Other': 0.0404}, 'vote2016': {'Hillary Clinton': 0.6173, 'Donald Trump': 0.3162, 'Other': 0.0665}} us_tx_census = {'age': {'18-24': 0.109, '25-44': 0.389, '45-64': 0.325, '65+': 0.177}, 'education': {'Completed graduate school': 0.108, 'Graduated from college': 0.2, 'Some college, no degree': 0.287, 'Graduated from high school': 0.252, 'Less than high school': 0.154}, 'gender': {'Female': 0.499, 'Male': 0.495, 'Other': 0.006}, 'income': {'Under $15,000': 0.1186, 'Between $15,000 and $49,999': 0.3524, 'Between $50,000 and $74,999': 0.1652, 'Between $75,000 and $99,999': 0.119, 'Between $100,000 and $150,000': 0.1342, 'Over $150,000': 0.1106}, 'race': {'White or Caucasian': 0.414, 'Asian or Asian American': 0.0493, 'Black or African American': 0.1188, 'Hispanic or Latino': 0.3961, 'Other': 0.0218}, 'vote2016': {'Hillary Clinton': 0.4324, 'Donald Trump': 0.5223, 'Other': 0.0453}} us_regions_map = {'Midwest': ['Illinois', 'Indiana', 'Iowa', 'Michigan', 'Minnesota', 'Ohio', 'Pennsylvania', 'Wisconsin'], 'Mountains': ['Alaska', 'Idaho', 'Kansas', 'Montana', 'Nebraska', 'North Dakota', 'South Dakota', 'Utah', 'Wyoming', 'Oklahoma'], 'Northeast': ['Connecticut', 'Delaware', 'District of Columbia (DC)', 'Maine', 'Maryland', 'Massachusetts', 'New Hampshire', 'New Jersey', 'New York', 'Rhode Island', 'Vermont'], 'Pacific': ['California', 'Hawaii', 'Oregon', 'Washington', 'Guam', 'Puerto Rico', 'Virgin Islands'], 'South': ['Missouri', 'Tennessee', 'Alabama', 'Arkansas', 'Kentucky', 'Louisiana', 'Mississippi', 'Texas', 'Virginia', 'West Virginia'], 'Southwest': ['Arizona', 'Colorado', 'Nevada', 'New Mexico'], 'Southeast': ['Florida', 'Georgia', 'North Carolina', 'South Carolina']}
def get_range (string): return_set = set() for x in string.split(','): x = x.strip() if '-' not in x and x.isnumeric(): return_set.add(int(x)) elif x.count('-')==1: from_here, to_here = x.split('-')[0].strip(), x.split('-')[1].strip() if from_here.isnumeric() and to_here.isnumeric() and int(from_here)<int(to_here): for y in range(int(from_here),int(to_here)+1): return_set.add(y) return return_set def search (location='',entry_list=None,less_than=None): minimum = 0 maximum = len(entry_list) if less_than is None: less_than = lambda x,y:x<y while True: position = int((minimum+maximum)/2) if position == minimum or position == maximum: break elif entry_list[position] == location: break elif 0<position<len(entry_list)-1: if less_than(entry_list[position-1], location) and less_than(location, entry_list[position+1]): break elif less_than(location,entry_list[position]): maximum = position else: minimum = position else: break return position class Select: def __init__ (self,entryset=None,sort_function=None): if entryset: self.entries = entryset self.to_delete = set() self.purged = set() if sort_function is None: sort_function = lambda x:x self.sort_function = sort_function def load (self,entryset): self.entries = entryset if isinstance(self.entries,list): self.entries = set(self.entries) def show (self,showlist,start=0): for counter, x in enumerate(showlist): print(counter+start,':',x) def scroll_through (self,entry_list): def less_than (x,y): if x == y: return False elif sorted([x,y],key = lambda x:self.sort_function(x))[0] == x: return True return False if entry_list: scroll_list = sorted(entry_list,key=lambda x:self.sort_function(x)) else: scroll_list = [] starting = 0 showing = 20 go_on = True while go_on: sort = False last = '' relocate = False print() self.show (scroll_list [starting:min([starting+showing,len(scroll_list)])],start=starting) while True: inp = input('\n\n[ < > ] D(elete); U(ndelete); C(hange); Q(uit); \nR(eform); I(nvert); c(L)ear); A(dd)\n Add (M)any; S(sort); (F)ind \n') if inp in ['[',']','<','>','D','C','Q','U','R','I','A','F','S','L','M']: break if inp == '[': starting = 0 elif inp == ']': staring = len(scroll_list) elif inp == '<': starting -= showing elif inp == '>': starting += showing elif inp == 'C': new = input('SHOW HOW MANY> ?') if new.isnumeric(): new = int(new) if 0 < new < 101: showing = new elif inp == 'Q': go_on = False elif inp in ['D','U']: to_delete = input('?') for x in get_range(to_delete): if 0 <= x < len(scroll_list): if inp == 'D': scroll_list [x] = '_'+scroll_list[x] elif inp == 'U' and scroll_list [x].startswith('_'): scroll_list [x] = scroll_list [x][1:] elif inp == 'R': new_list = [] for x in scroll_list: if not x.startswith ('_'): new_list.append(x) else: self.purged.add(x[1:]) scroll_list = new_list elif inp in ['I']: for x in range(len(scroll_list)): if scroll_list[x].startswith('_'): scroll_list[x] = scroll_list[x][1:] else: scroll_list [x] = '_' + scroll_list[x] elif inp == 'L': for x in range(len(scroll_list)): if scroll_list[x].startswith('_'): scroll_list[x] = scroll_list[x][1:] elif inp == 'A': new = input('ADD> ?') scroll_list.append(new.strip()) sort = True last = new.strip() relocate = True position = search(new.strip(),entry_list=scroll_list,less_than=less_than) elif inp == 'M': new = input('ADD> W1,W2,W3... ?') for x in new.split(','): scroll_list.append(x.strip()) last = x.strip() relocate = True sort = True elif inp == 'S': sort = True elif inp == 'F': last = (input('FIND> ?')) relocate = True if sort: scroll_list = sorted(scroll_list,key=lambda x:self.sort_function(x)) if relocate and last: position = search(last,entry_list=scroll_list,less_than=less_than) starting = position - int(showing/2) if starting < 0: starting = 0 elif starting > len(entry_list)-1: starting = len(entry_list)-1 self.entries = set(scroll_list) return [x for x in scroll_list if not x.startswith('_')] def finish (self): return self.entries if __name__ == '__main__': sel = Select(sort_function=lambda x:int(x)) sel.scroll_through({str(x) for x in range(100000)})
def get_range(string): return_set = set() for x in string.split(','): x = x.strip() if '-' not in x and x.isnumeric(): return_set.add(int(x)) elif x.count('-') == 1: (from_here, to_here) = (x.split('-')[0].strip(), x.split('-')[1].strip()) if from_here.isnumeric() and to_here.isnumeric() and (int(from_here) < int(to_here)): for y in range(int(from_here), int(to_here) + 1): return_set.add(y) return return_set def search(location='', entry_list=None, less_than=None): minimum = 0 maximum = len(entry_list) if less_than is None: less_than = lambda x, y: x < y while True: position = int((minimum + maximum) / 2) if position == minimum or position == maximum: break elif entry_list[position] == location: break elif 0 < position < len(entry_list) - 1: if less_than(entry_list[position - 1], location) and less_than(location, entry_list[position + 1]): break elif less_than(location, entry_list[position]): maximum = position else: minimum = position else: break return position class Select: def __init__(self, entryset=None, sort_function=None): if entryset: self.entries = entryset self.to_delete = set() self.purged = set() if sort_function is None: sort_function = lambda x: x self.sort_function = sort_function def load(self, entryset): self.entries = entryset if isinstance(self.entries, list): self.entries = set(self.entries) def show(self, showlist, start=0): for (counter, x) in enumerate(showlist): print(counter + start, ':', x) def scroll_through(self, entry_list): def less_than(x, y): if x == y: return False elif sorted([x, y], key=lambda x: self.sort_function(x))[0] == x: return True return False if entry_list: scroll_list = sorted(entry_list, key=lambda x: self.sort_function(x)) else: scroll_list = [] starting = 0 showing = 20 go_on = True while go_on: sort = False last = '' relocate = False print() self.show(scroll_list[starting:min([starting + showing, len(scroll_list)])], start=starting) while True: inp = input('\n\n[ < > ] D(elete); U(ndelete); C(hange); Q(uit); \nR(eform); I(nvert); c(L)ear); A(dd)\n Add (M)any; S(sort); (F)ind \n') if inp in ['[', ']', '<', '>', 'D', 'C', 'Q', 'U', 'R', 'I', 'A', 'F', 'S', 'L', 'M']: break if inp == '[': starting = 0 elif inp == ']': staring = len(scroll_list) elif inp == '<': starting -= showing elif inp == '>': starting += showing elif inp == 'C': new = input('SHOW HOW MANY> ?') if new.isnumeric(): new = int(new) if 0 < new < 101: showing = new elif inp == 'Q': go_on = False elif inp in ['D', 'U']: to_delete = input('?') for x in get_range(to_delete): if 0 <= x < len(scroll_list): if inp == 'D': scroll_list[x] = '_' + scroll_list[x] elif inp == 'U' and scroll_list[x].startswith('_'): scroll_list[x] = scroll_list[x][1:] elif inp == 'R': new_list = [] for x in scroll_list: if not x.startswith('_'): new_list.append(x) else: self.purged.add(x[1:]) scroll_list = new_list elif inp in ['I']: for x in range(len(scroll_list)): if scroll_list[x].startswith('_'): scroll_list[x] = scroll_list[x][1:] else: scroll_list[x] = '_' + scroll_list[x] elif inp == 'L': for x in range(len(scroll_list)): if scroll_list[x].startswith('_'): scroll_list[x] = scroll_list[x][1:] elif inp == 'A': new = input('ADD> ?') scroll_list.append(new.strip()) sort = True last = new.strip() relocate = True position = search(new.strip(), entry_list=scroll_list, less_than=less_than) elif inp == 'M': new = input('ADD> W1,W2,W3... ?') for x in new.split(','): scroll_list.append(x.strip()) last = x.strip() relocate = True sort = True elif inp == 'S': sort = True elif inp == 'F': last = input('FIND> ?') relocate = True if sort: scroll_list = sorted(scroll_list, key=lambda x: self.sort_function(x)) if relocate and last: position = search(last, entry_list=scroll_list, less_than=less_than) starting = position - int(showing / 2) if starting < 0: starting = 0 elif starting > len(entry_list) - 1: starting = len(entry_list) - 1 self.entries = set(scroll_list) return [x for x in scroll_list if not x.startswith('_')] def finish(self): return self.entries if __name__ == '__main__': sel = select(sort_function=lambda x: int(x)) sel.scroll_through({str(x) for x in range(100000)})
# Implementation of SequentialSearch in python # Python3 code to sequentially search key in arr[]. # If key is present then return its position, # otherwise return -1 # If return value -1 then print "Not Found!" # else print position at which element found def Sequential_Search(dlist, item): pos = 0 found = False while pos < len(dlist) and not found: if dlist[pos] == item: # check if element at current position in list matches entered key found = True else: pos += 1 if found: return pos else: return -1 # Driver Code list = input("Enter list elements (space seperated): ").split() list = [int(i) for i in list] key = int(input("Enter key to search: ")) res = Sequential_Search(list, key) if res >= 0: print(f"Found element at position: {res}") else: print("Not found!")
def sequential__search(dlist, item): pos = 0 found = False while pos < len(dlist) and (not found): if dlist[pos] == item: found = True else: pos += 1 if found: return pos else: return -1 list = input('Enter list elements (space seperated): ').split() list = [int(i) for i in list] key = int(input('Enter key to search: ')) res = sequential__search(list, key) if res >= 0: print(f'Found element at position: {res}') else: print('Not found!')
user_name = "user" password = "pass" url= "ip address" project_scope_name = "username" domain_id = "defa"
user_name = 'user' password = 'pass' url = 'ip address' project_scope_name = 'username' domain_id = 'defa'
CURRENCY_LIST_ACRONYM = [ ('AUD','Australia Dollar'), ('GBP','Great Britain Pound'), ('EUR','Euro'), ('JPY','Japan Yen'), ('CHF','Switzerland Franc'), ('USD','USA Dollar'), ('AFN','Afghanistan Afghani'), ('ALL','Albania Lek'), ('DZD','Algeria Dinar'), ('AOA','Angola Kwanza'), ('ARS','Argentina Peso'), ('AMD','Armenia Dram'), ('AWG','Aruba Florin'), ('AUD','Australia Dollar'), ('ATS','Austria Schilling'), ('BEF','Belgium Franc'), ('AZN','Azerbaijan New Manat'), ('BSD','Bahamas Dollar'), ('BHD','Bahrain Dinar'), ('BDT','Bangladesh Taka'), ('BBD','Barbados Dollar'), ('BYR','Belarus Ruble'), ('BZD','Belize Dollar'), ('BMD','Bermuda Dollar'), ('BTN','Bhutan Ngultrum'), ('BOB','Bolivia Boliviano'), ('BAM','Bosnia Mark'), ('BWP','Botswana Pula'), ('BRL','Brazil Real'), ('GBP','Great Britain Pound'), ('BND','Brunei Dollar'), ('BGN','Bulgaria Lev'), ('BIF','Burundi Franc'), ('XOF','CFA Franc BCEAO'), ('XAF','CFA Franc BEAC'), ('XPF','CFP Franc'), ('KHR','Cambodia Riel'), ('CAD','Canada Dollar'), ('CVE','Cape Verde Escudo'), ('KYD','Cayman Islands Dollar'), ('CLP','Chili Peso'), ('CNY','China Yuan/Renminbi'), ('COP','Colombia Peso'), ('KMF','Comoros Franc'), ('CDF','Congo Franc'), ('CRC','Costa Rica Colon'), ('HRK','Croatia Kuna'), ('CUC','Cuba Convertible Peso'), ('CUP','Cuba Peso'), ('CYP','Cyprus Pound'), ('CZK','Czech Koruna'), ('DKK','Denmark Krone'), ('DJF','Djibouti Franc'), ('DOP','Dominican Republich Peso'), ('XCD','East Caribbean Dollar'), ('EGP','Egypt Pound'), ('SVC','El Salvador Colon'), ('EEK','Estonia Kroon'), ('ETB','Ethiopia Birr'), ('EUR','Euro'), ('FKP','Falkland Islands Pound'), ('FIM','Finland Markka'), ('FJD','Fiji Dollar'), ('GMD','Gambia Dalasi'), ('GEL','Georgia Lari'), ('DMK','Germany Mark'), ('GHS','Ghana New Cedi'), ('GIP','Gibraltar Pound'), ('GRD','Greece Drachma'), ('GTQ','Guatemala Quetzal'), ('GNF','Guinea Franc'), ('GYD','Guyana Dollar'), ('HTG','Haiti Gourde'), ('HNL','Honduras Lempira'), ('HKD','Hong Kong Dollar'), ('HUF','Hungary Forint'), ('ISK','Iceland Krona'), ('INR','India Rupee'), ('IDR','Indonesia Rupiah'), ('IRR','Iran Rial'), ('IQD','Iraq Dinar'), ('IED','Ireland Pound'), ('ILS','Israel New Shekel'), ('ITL','Italy Lira'), ('JMD','Jamaica Dollar'), ('JPY','Japan Yen'), ('JOD','Jordan Dinar'), ('KZT','Kazakhstan Tenge'), ('KES','Kenya Shilling'), ('KWD','Kuwait Dinar'), ('KGS','Kyrgyzstan Som'), ('LAK','Laos Kip'), ('LVL','Latvia Lats'), ('LBP','Lebanon Pound'), ('LSL','Lesotho Loti'), ('LRD','Liberia Dollar'), ('LYD','Libya Dinar'), ('LTL','Lithuania Litas'), ('LUF','Luxembourg Franc'), ('MOP','Macau Pataca'), ('MKD','Macedonia Denar'), ('MGA','Malagasy Ariary'), ('MWK','Malawi Kwacha'), ('MYR','Malaysia Ringgit'), ('MVR','Maldives Rufiyaa'), ('MTL','Malta Lira'), ('MRO','Mauritania Ouguiya'), ('MUR','Mauritius Rupee'), ('MXN','Mexico Peso'), ('MDL','Moldova Leu'), ('MNT','Mongolia Tugrik'), ('MAD','Morocco Dirham'), ('MZN','Mozambique New Metical'), ('MMK','Myanmar Kyat'), ('ANG','NL Antilles Guilder'), ('NAD','Namibia Dollar'), ('NPR','Nepal Rupee'), ('NLG','Netherlands Guilder'), ('NZD','New Zealand Dollar'), ('NIO','Nicaragua Cordoba Oro'), ('NGN','Nigeria Naira'), ('KPW','North Korea Won'), ('NOK','Norway Kroner'), ('OMR','Oman Rial'), ('PKR','Pakistan Rupee'), ('PAB','Panama Balboa'), ('PGK','Papua New Guinea Kina'), ('PYG','Paraguay Guarani'), ('PEN','Peru Nuevo Sol'), ('PHP','Philippines Peso'), ('PLN','Poland Zloty'), ('PTE','Portugal Escudo'), ('QAR','Qatar Rial'), ('RON','Romania New Lei'), ('RUB','Russia Rouble'), ('RWF','Rwanda Franc'), ('WST','Samoa Tala'), ('STD','Sao Tome/Principe Dobra'), ('SAR','Saudi Arabia Riyal'), ('RSD','Serbia Dinar'), ('SCR','Seychelles Rupee'), ('SLL','Sierra Leone Leone'), ('SGD','Singapore Dollar'), ('SKK','Slovakia Koruna'), ('SIT','Slovenia Tolar'), ('SBD','Solomon Islands Dollar'), ('SOS','Somali Shilling'), ('ZAR','South Africa Rand'), ('KRW','South Korea Won'), ('ESP','Spain Peseta'), ('LKR','Sri Lanka Rupee'), ('SHP','St Helena Pound'), ('SDG','Sudan Pound'), ('SRD','Suriname Dollar'), ('SZL','Swaziland Lilangeni'), ('SEK','Sweden Krona'), ('CHF','Switzerland Franc'), ('SYP','Syria Pound'), ('TWD','Taiwan Dollar'), ('TZS','Tanzania Shilling'), ('THB','Thailand Baht'), ('TOP','Tonga Pa\'anga'), ('TTD','Trinidad/Tobago Dollar'), ('TND','Tunisia Dinar'), ('TRY','Turkish New Lira'), ('TMM','Turkmenistan Manat'), ('USD','USA Dollar'), ('UGX','Uganda Shilling'), ('UAH','Ukraine Hryvnia'), ('UYU','Uruguay Peso'), ('AED','United Arab Emirates Dirham'), ('VUV','Vanuatu Vatu'), ('VEB','Venezuela Bolivar'), ('VND','Vietnam Dong'), ('YER','Yemen Rial'), ('ZMK','Zambia Kwacha'), ('ZWD','Zimbabwe Dollar') ]
currency_list_acronym = [('AUD', 'Australia Dollar'), ('GBP', 'Great Britain Pound'), ('EUR', 'Euro'), ('JPY', 'Japan Yen'), ('CHF', 'Switzerland Franc'), ('USD', 'USA Dollar'), ('AFN', 'Afghanistan Afghani'), ('ALL', 'Albania Lek'), ('DZD', 'Algeria Dinar'), ('AOA', 'Angola Kwanza'), ('ARS', 'Argentina Peso'), ('AMD', 'Armenia Dram'), ('AWG', 'Aruba Florin'), ('AUD', 'Australia Dollar'), ('ATS', 'Austria Schilling'), ('BEF', 'Belgium Franc'), ('AZN', 'Azerbaijan New Manat'), ('BSD', 'Bahamas Dollar'), ('BHD', 'Bahrain Dinar'), ('BDT', 'Bangladesh Taka'), ('BBD', 'Barbados Dollar'), ('BYR', 'Belarus Ruble'), ('BZD', 'Belize Dollar'), ('BMD', 'Bermuda Dollar'), ('BTN', 'Bhutan Ngultrum'), ('BOB', 'Bolivia Boliviano'), ('BAM', 'Bosnia Mark'), ('BWP', 'Botswana Pula'), ('BRL', 'Brazil Real'), ('GBP', 'Great Britain Pound'), ('BND', 'Brunei Dollar'), ('BGN', 'Bulgaria Lev'), ('BIF', 'Burundi Franc'), ('XOF', 'CFA Franc BCEAO'), ('XAF', 'CFA Franc BEAC'), ('XPF', 'CFP Franc'), ('KHR', 'Cambodia Riel'), ('CAD', 'Canada Dollar'), ('CVE', 'Cape Verde Escudo'), ('KYD', 'Cayman Islands Dollar'), ('CLP', 'Chili Peso'), ('CNY', 'China Yuan/Renminbi'), ('COP', 'Colombia Peso'), ('KMF', 'Comoros Franc'), ('CDF', 'Congo Franc'), ('CRC', 'Costa Rica Colon'), ('HRK', 'Croatia Kuna'), ('CUC', 'Cuba Convertible Peso'), ('CUP', 'Cuba Peso'), ('CYP', 'Cyprus Pound'), ('CZK', 'Czech Koruna'), ('DKK', 'Denmark Krone'), ('DJF', 'Djibouti Franc'), ('DOP', 'Dominican Republich Peso'), ('XCD', 'East Caribbean Dollar'), ('EGP', 'Egypt Pound'), ('SVC', 'El Salvador Colon'), ('EEK', 'Estonia Kroon'), ('ETB', 'Ethiopia Birr'), ('EUR', 'Euro'), ('FKP', 'Falkland Islands Pound'), ('FIM', 'Finland Markka'), ('FJD', 'Fiji Dollar'), ('GMD', 'Gambia Dalasi'), ('GEL', 'Georgia Lari'), ('DMK', 'Germany Mark'), ('GHS', 'Ghana New Cedi'), ('GIP', 'Gibraltar Pound'), ('GRD', 'Greece Drachma'), ('GTQ', 'Guatemala Quetzal'), ('GNF', 'Guinea Franc'), ('GYD', 'Guyana Dollar'), ('HTG', 'Haiti Gourde'), ('HNL', 'Honduras Lempira'), ('HKD', 'Hong Kong Dollar'), ('HUF', 'Hungary Forint'), ('ISK', 'Iceland Krona'), ('INR', 'India Rupee'), ('IDR', 'Indonesia Rupiah'), ('IRR', 'Iran Rial'), ('IQD', 'Iraq Dinar'), ('IED', 'Ireland Pound'), ('ILS', 'Israel New Shekel'), ('ITL', 'Italy Lira'), ('JMD', 'Jamaica Dollar'), ('JPY', 'Japan Yen'), ('JOD', 'Jordan Dinar'), ('KZT', 'Kazakhstan Tenge'), ('KES', 'Kenya Shilling'), ('KWD', 'Kuwait Dinar'), ('KGS', 'Kyrgyzstan Som'), ('LAK', 'Laos Kip'), ('LVL', 'Latvia Lats'), ('LBP', 'Lebanon Pound'), ('LSL', 'Lesotho Loti'), ('LRD', 'Liberia Dollar'), ('LYD', 'Libya Dinar'), ('LTL', 'Lithuania Litas'), ('LUF', 'Luxembourg Franc'), ('MOP', 'Macau Pataca'), ('MKD', 'Macedonia Denar'), ('MGA', 'Malagasy Ariary'), ('MWK', 'Malawi Kwacha'), ('MYR', 'Malaysia Ringgit'), ('MVR', 'Maldives Rufiyaa'), ('MTL', 'Malta Lira'), ('MRO', 'Mauritania Ouguiya'), ('MUR', 'Mauritius Rupee'), ('MXN', 'Mexico Peso'), ('MDL', 'Moldova Leu'), ('MNT', 'Mongolia Tugrik'), ('MAD', 'Morocco Dirham'), ('MZN', 'Mozambique New Metical'), ('MMK', 'Myanmar Kyat'), ('ANG', 'NL Antilles Guilder'), ('NAD', 'Namibia Dollar'), ('NPR', 'Nepal Rupee'), ('NLG', 'Netherlands Guilder'), ('NZD', 'New Zealand Dollar'), ('NIO', 'Nicaragua Cordoba Oro'), ('NGN', 'Nigeria Naira'), ('KPW', 'North Korea Won'), ('NOK', 'Norway Kroner'), ('OMR', 'Oman Rial'), ('PKR', 'Pakistan Rupee'), ('PAB', 'Panama Balboa'), ('PGK', 'Papua New Guinea Kina'), ('PYG', 'Paraguay Guarani'), ('PEN', 'Peru Nuevo Sol'), ('PHP', 'Philippines Peso'), ('PLN', 'Poland Zloty'), ('PTE', 'Portugal Escudo'), ('QAR', 'Qatar Rial'), ('RON', 'Romania New Lei'), ('RUB', 'Russia Rouble'), ('RWF', 'Rwanda Franc'), ('WST', 'Samoa Tala'), ('STD', 'Sao Tome/Principe Dobra'), ('SAR', 'Saudi Arabia Riyal'), ('RSD', 'Serbia Dinar'), ('SCR', 'Seychelles Rupee'), ('SLL', 'Sierra Leone Leone'), ('SGD', 'Singapore Dollar'), ('SKK', 'Slovakia Koruna'), ('SIT', 'Slovenia Tolar'), ('SBD', 'Solomon Islands Dollar'), ('SOS', 'Somali Shilling'), ('ZAR', 'South Africa Rand'), ('KRW', 'South Korea Won'), ('ESP', 'Spain Peseta'), ('LKR', 'Sri Lanka Rupee'), ('SHP', 'St Helena Pound'), ('SDG', 'Sudan Pound'), ('SRD', 'Suriname Dollar'), ('SZL', 'Swaziland Lilangeni'), ('SEK', 'Sweden Krona'), ('CHF', 'Switzerland Franc'), ('SYP', 'Syria Pound'), ('TWD', 'Taiwan Dollar'), ('TZS', 'Tanzania Shilling'), ('THB', 'Thailand Baht'), ('TOP', "Tonga Pa'anga"), ('TTD', 'Trinidad/Tobago Dollar'), ('TND', 'Tunisia Dinar'), ('TRY', 'Turkish New Lira'), ('TMM', 'Turkmenistan Manat'), ('USD', 'USA Dollar'), ('UGX', 'Uganda Shilling'), ('UAH', 'Ukraine Hryvnia'), ('UYU', 'Uruguay Peso'), ('AED', 'United Arab Emirates Dirham'), ('VUV', 'Vanuatu Vatu'), ('VEB', 'Venezuela Bolivar'), ('VND', 'Vietnam Dong'), ('YER', 'Yemen Rial'), ('ZMK', 'Zambia Kwacha'), ('ZWD', 'Zimbabwe Dollar')]
#!/usr/bin/python # -*- coding: utf-8 -*- if __name__=='__main__': print("Hello every body, I am Thomas.Li. I will be study hard for algorithms excercise")
if __name__ == '__main__': print('Hello every body, I am Thomas.Li. I will be study hard for algorithms excercise')
class CIDR(object): def __init__(self, base, size=None): try: base, _size = base.split('/') except ValueError: pass else: if size is None: size = _size self.size = 2 ** (32 - int(size)) self._mask = ~(self.size - 1) self._base = self.ip2dec(base) & self._mask self.base = self.dec2ip(self._base) self.block = int(size) self.mask = self.dec2ip(self._mask) @property def last(self): return self.dec2ip(self._base + self.size - 1) def __len__(self): return self.size def __str__(self): return "{0}/{1}".format( self.base, self.block, ) def __contains__(self, ip): return self.ip2dec(ip) & self._mask == self._base @staticmethod def ip2dec(ip): return sum([int(q) << i * 8 for i, q in enumerate(reversed(ip.split(".")))]) @staticmethod def dec2ip(ip): return '.'.join([str((ip >> 8 * i) & 255) for i in range(3, -1, -1)]) class CIDRIterator(object): def __init__(self, base, size): self.current = base self.final = base + size def __iter__(self): return self def next(self): c = self.current self.current += 1 if self.current > self.final: raise StopIteration return CIDR.dec2ip(c) def __iter__(self): return self.CIDRIterator(self._base, self.size)
class Cidr(object): def __init__(self, base, size=None): try: (base, _size) = base.split('/') except ValueError: pass else: if size is None: size = _size self.size = 2 ** (32 - int(size)) self._mask = ~(self.size - 1) self._base = self.ip2dec(base) & self._mask self.base = self.dec2ip(self._base) self.block = int(size) self.mask = self.dec2ip(self._mask) @property def last(self): return self.dec2ip(self._base + self.size - 1) def __len__(self): return self.size def __str__(self): return '{0}/{1}'.format(self.base, self.block) def __contains__(self, ip): return self.ip2dec(ip) & self._mask == self._base @staticmethod def ip2dec(ip): return sum([int(q) << i * 8 for (i, q) in enumerate(reversed(ip.split('.')))]) @staticmethod def dec2ip(ip): return '.'.join([str(ip >> 8 * i & 255) for i in range(3, -1, -1)]) class Cidriterator(object): def __init__(self, base, size): self.current = base self.final = base + size def __iter__(self): return self def next(self): c = self.current self.current += 1 if self.current > self.final: raise StopIteration return CIDR.dec2ip(c) def __iter__(self): return self.CIDRIterator(self._base, self.size)
USERS = "users" COMMUNITIES = 'communities' TEAMS = 'teams' METRICS = 'metrics' ACTIONS = 'actions'
users = 'users' communities = 'communities' teams = 'teams' metrics = 'metrics' actions = 'actions'
''' Created on 28-mei-2016 @author: vincent Static configuration, updated and generated by autoconf ''' VERSION = "0.1.0"
""" Created on 28-mei-2016 @author: vincent Static configuration, updated and generated by autoconf """ version = '0.1.0'
# -*- coding: utf-8 -*- # SiteProfileNotAvailable compatibility class SiteProfileNotAvailable(Exception): pass
class Siteprofilenotavailable(Exception): pass
class Queen: def __init__(self, row: int, column: int): if row not in range(0, 8) or column not in range(0, 8): raise ValueError("Must be between 0 and 7") self.i = row self.j = column def can_attack(self, another_queen: 'Queen') -> bool: if self.i == another_queen.i and self.j == another_queen.j: raise ValueError(f"Cannot be the same initial position [{self.i},{self.j}]") # same row, column or diff return self.i == another_queen.i or self.j == another_queen.j \ or abs(another_queen.i - self.i) == abs(another_queen.j - self.j)
class Queen: def __init__(self, row: int, column: int): if row not in range(0, 8) or column not in range(0, 8): raise value_error('Must be between 0 and 7') self.i = row self.j = column def can_attack(self, another_queen: 'Queen') -> bool: if self.i == another_queen.i and self.j == another_queen.j: raise value_error(f'Cannot be the same initial position [{self.i},{self.j}]') return self.i == another_queen.i or self.j == another_queen.j or abs(another_queen.i - self.i) == abs(another_queen.j - self.j)
def append_suppliers_list(): suppliers = [] counter = 1 supply = "" while supply != "stop": supply = input(f'Enter first name and last name of suppliers {counter} \n') suppliers.append(supply) counter += 1 suppliers.pop() return suppliers append_suppliers_list()
def append_suppliers_list(): suppliers = [] counter = 1 supply = '' while supply != 'stop': supply = input(f'Enter first name and last name of suppliers {counter} \n') suppliers.append(supply) counter += 1 suppliers.pop() return suppliers append_suppliers_list()
def test(a,b,c): a =1 b =2 c =3 return [1,2,3] a = test(1,2,3) print(a,test)
def test(a, b, c): a = 1 b = 2 c = 3 return [1, 2, 3] a = test(1, 2, 3) print(a, test)
class BaseData: def __init__(self): self.root_dir = None self.gray = None self.div_Lint = None self.filenames = None self.L = None self.Lint = None self.mask = None self.M = None self.N = None def _load_mask(self): raise NotImplementedError def _load_M(self): raise NotImplementedError def _load_N(self): raise NotImplementedError def _to_gray(self): raise NotImplementedError def _div_Lint(self): raise NotImplementedError
class Basedata: def __init__(self): self.root_dir = None self.gray = None self.div_Lint = None self.filenames = None self.L = None self.Lint = None self.mask = None self.M = None self.N = None def _load_mask(self): raise NotImplementedError def _load_m(self): raise NotImplementedError def _load_n(self): raise NotImplementedError def _to_gray(self): raise NotImplementedError def _div__lint(self): raise NotImplementedError
def decimal_to_binary(decimal_integer): return bin(decimal_integer).replace("0b", "") def solution(binary_integer): count = 0 max_count = 0 for element in binary_integer: if element == "1": count += 1 if max_count < count: max_count = count else: count = 0 return max_count if __name__ == '__main__': n = int(input()) binary_n = decimal_to_binary(n) print(solution(binary_n))
def decimal_to_binary(decimal_integer): return bin(decimal_integer).replace('0b', '') def solution(binary_integer): count = 0 max_count = 0 for element in binary_integer: if element == '1': count += 1 if max_count < count: max_count = count else: count = 0 return max_count if __name__ == '__main__': n = int(input()) binary_n = decimal_to_binary(n) print(solution(binary_n))
rows= int(input("Enter the number of rows: ")) cols= int(input("Enter the number of columns: ")) matrixA=[] print("Enter the entries rowwise for matrix A: ") for i in range(rows): a=[] for j in range(cols): a.append(int(input())) matrixA.append(a) matrixB=[] print("Enter the entries rowwise for matrix B: ") for i in range(rows): b=[] for j in range(cols): b.append(int(input())) matrixB.append(b) matrixResultant=[[ 0 for i in range(rows) ] for j in range(cols)] for i in range(rows): for j in range(cols): matrixResultant[i][j]=matrixA[i][j]+matrixB[i][j] for r in matrixResultant: print (r)
rows = int(input('Enter the number of rows: ')) cols = int(input('Enter the number of columns: ')) matrix_a = [] print('Enter the entries rowwise for matrix A: ') for i in range(rows): a = [] for j in range(cols): a.append(int(input())) matrixA.append(a) matrix_b = [] print('Enter the entries rowwise for matrix B: ') for i in range(rows): b = [] for j in range(cols): b.append(int(input())) matrixB.append(b) matrix_resultant = [[0 for i in range(rows)] for j in range(cols)] for i in range(rows): for j in range(cols): matrixResultant[i][j] = matrixA[i][j] + matrixB[i][j] for r in matrixResultant: print(r)
class Solution(object): def rob(self, nums): def helper(nums, i): le = len(nums) if i == le - 1: return nums[le-1] if i == le - 2: return max(nums[le-1], nums[le-2]) if i == le - 3: return max(nums[le-3] + nums[le-1], nums[le-2]) return max(helper(nums, i+2) + nums[i], helper(nums, i+1)) return helper(nums, 0) def rob_2(self, nums): le = len(nums) ans = [0]*(le+1) ans[-2] = nums[-1] for i in range(le-2, -1, -1): ans[i] = max(nums[i] + ans[i+2], ans[i+1]) return ans[0] if __name__ == '__main__': print(Solution().rob_2([2, 7, 9, 3, 1]))
class Solution(object): def rob(self, nums): def helper(nums, i): le = len(nums) if i == le - 1: return nums[le - 1] if i == le - 2: return max(nums[le - 1], nums[le - 2]) if i == le - 3: return max(nums[le - 3] + nums[le - 1], nums[le - 2]) return max(helper(nums, i + 2) + nums[i], helper(nums, i + 1)) return helper(nums, 0) def rob_2(self, nums): le = len(nums) ans = [0] * (le + 1) ans[-2] = nums[-1] for i in range(le - 2, -1, -1): ans[i] = max(nums[i] + ans[i + 2], ans[i + 1]) return ans[0] if __name__ == '__main__': print(solution().rob_2([2, 7, 9, 3, 1]))
k = int(input()) for z in range(k): l = int(input()) n = list(map(int,input().split())) c = 0 for i in range(l-1): for j in range(i+1,l): if n[i]>n[j]: c += 1 if c%2==0: print('YES') else: print('NO')
k = int(input()) for z in range(k): l = int(input()) n = list(map(int, input().split())) c = 0 for i in range(l - 1): for j in range(i + 1, l): if n[i] > n[j]: c += 1 if c % 2 == 0: print('YES') else: print('NO')
line = input().split() H = int(line[0]) W = int(line[1]) array = [] def get_ij(index): i = index // W if (i % 2 == 0): j = index % W else: j = W - index % W - 1 return i+1, j+1 for i in range(H): if i % 2 == 0: array.extend([int(a) for a in input().split()]) else: array.extend(reversed([int(a) for a in input().split()])) move_index = [] previous_move = False for i, a in enumerate(array[:-1]): even = a % 2 == 0 if previous_move and even: # print(i, a, 1, previous_move, even) move_index.append(i) previous_move = True elif not previous_move and not even: # print(i, a, 2, previous_move, even) move_index.append(i) previous_move = True else: previous_move = False print(len(move_index)) for i in move_index: ind_from = get_ij(i) ind_to = get_ij(i+1) print("{} {} {} {}".format(ind_from[0], ind_from[1], ind_to[0], ind_to[1]))
line = input().split() h = int(line[0]) w = int(line[1]) array = [] def get_ij(index): i = index // W if i % 2 == 0: j = index % W else: j = W - index % W - 1 return (i + 1, j + 1) for i in range(H): if i % 2 == 0: array.extend([int(a) for a in input().split()]) else: array.extend(reversed([int(a) for a in input().split()])) move_index = [] previous_move = False for (i, a) in enumerate(array[:-1]): even = a % 2 == 0 if previous_move and even: move_index.append(i) previous_move = True elif not previous_move and (not even): move_index.append(i) previous_move = True else: previous_move = False print(len(move_index)) for i in move_index: ind_from = get_ij(i) ind_to = get_ij(i + 1) print('{} {} {} {}'.format(ind_from[0], ind_from[1], ind_to[0], ind_to[1]))
class Player: def __init__(self, player_name, examined_step_list): self.user_name = player_name self.player_score = {} self.step_list = examined_step_list self.generate_score_dict() def generate_score_dict(self): for key in self.step_list: self.player_score[key] = 0 def update_student_score(self, engineering_step, score): self.player_score[engineering_step] = score def get_player_name(self): return self.user_name def get_player_score(self): return self.player_score
class Player: def __init__(self, player_name, examined_step_list): self.user_name = player_name self.player_score = {} self.step_list = examined_step_list self.generate_score_dict() def generate_score_dict(self): for key in self.step_list: self.player_score[key] = 0 def update_student_score(self, engineering_step, score): self.player_score[engineering_step] = score def get_player_name(self): return self.user_name def get_player_score(self): return self.player_score
class InwardMeta(type): @classmethod def __prepare__(meta, name, bases, **kwargs): cls = super().__new__(meta, name, bases, {}) return {"__newclass__": cls} def __new__(meta, name, bases, namespace): cls = namespace["__newclass__"] del namespace["__newclass__"] for name in namespace: setattr(cls, name, namespace[name]) return cls
class Inwardmeta(type): @classmethod def __prepare__(meta, name, bases, **kwargs): cls = super().__new__(meta, name, bases, {}) return {'__newclass__': cls} def __new__(meta, name, bases, namespace): cls = namespace['__newclass__'] del namespace['__newclass__'] for name in namespace: setattr(cls, name, namespace[name]) return cls
nome=input('Qual o seu nome?') print('Seja Bem-Vindo,',nome)
nome = input('Qual o seu nome?') print('Seja Bem-Vindo,', nome)
# 337. House Robber III # Leetcode solution(approach 1) # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def rob(self, root: TreeNode) -> int: def helper(node): #return [rob,not_rob] if not node: return (0,0) left=helper(node.left) right=helper(node.right) #if we want to rob this node,we cannot rob its children rob=node.val+left[1]+right[1] #if we dont want to rob this node then we can choose to either rob its children or not not_rob=max(left)+max(right) return [rob,not_rob] return max(helper(root))
class Solution: def rob(self, root: TreeNode) -> int: def helper(node): if not node: return (0, 0) left = helper(node.left) right = helper(node.right) rob = node.val + left[1] + right[1] not_rob = max(left) + max(right) return [rob, not_rob] return max(helper(root))
def main(): puzzleInput = open("python/day01.txt", "r").read() # Part 1 assert(part1("") == 0) print(part1(puzzleInput)) # Part 2 assert(part2("") == 0) print(part2(puzzleInput)) def part1(puzzleInput): return 0 def part2(puzzleInput): return 0 if __name__ == "__main__": main()
def main(): puzzle_input = open('python/day01.txt', 'r').read() assert part1('') == 0 print(part1(puzzleInput)) assert part2('') == 0 print(part2(puzzleInput)) def part1(puzzleInput): return 0 def part2(puzzleInput): return 0 if __name__ == '__main__': main()
def sentencemaker(pharase): cap = pharase.capitalize() interogatives = ("how" , "what" , "why") if pharase.startswith(interogatives): return "{}?".format(cap) else: return "{}".format(cap) results = [] while True: user_input = input("Say Something :-) ") if user_input == "\end": break else: results.append(sentencemaker(user_input)) print(" ".join(results))
def sentencemaker(pharase): cap = pharase.capitalize() interogatives = ('how', 'what', 'why') if pharase.startswith(interogatives): return '{}?'.format(cap) else: return '{}'.format(cap) results = [] while True: user_input = input('Say Something :-) ') if user_input == '\\end': break else: results.append(sentencemaker(user_input)) print(' '.join(results))
{ 'targets': [ { 'target_name': 'node_stringprep', 'cflags_cc!': [ '-fno-exceptions', '-fmax-errors=0' ], 'include_dirs': [ '<!(node -e "require(\'nan\')")' ], 'conditions': [ ['OS=="win"', { 'conditions': [ ['"<!@(cmd /C where /Q icu-config || echo n)"!="n"', { 'sources': [ 'node-stringprep.cc' ], 'cflags!': [ '-fno-exceptions', '`icu-config --cppflags`' ], 'libraries': [ '`icu-config --ldflags`' ] }] ] }, { # OS != win 'conditions': [ ['"<!@(which icu-config > /dev/null || echo n)"!="n"', { 'sources': [ 'node-stringprep.cc' ], 'cflags!': [ '-fno-exceptions', '-fmax-errors=0', '`icu-config --cppflags`' ], 'libraries': [ '`icu-config --ldflags`' ], 'conditions': [ ['OS=="freebsd"', { 'include_dirs': [ '/usr/local/include' ], }], ['OS=="mac"', { 'include_dirs': [ '/opt/local/include' ], 'xcode_settings': { 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES' } }] ] }] ] }] ] } ] }
{'targets': [{'target_name': 'node_stringprep', 'cflags_cc!': ['-fno-exceptions', '-fmax-errors=0'], 'include_dirs': ['<!(node -e "require(\'nan\')")'], 'conditions': [['OS=="win"', {'conditions': [['"<!@(cmd /C where /Q icu-config || echo n)"!="n"', {'sources': ['node-stringprep.cc'], 'cflags!': ['-fno-exceptions', '`icu-config --cppflags`'], 'libraries': ['`icu-config --ldflags`']}]]}, {'conditions': [['"<!@(which icu-config > /dev/null || echo n)"!="n"', {'sources': ['node-stringprep.cc'], 'cflags!': ['-fno-exceptions', '-fmax-errors=0', '`icu-config --cppflags`'], 'libraries': ['`icu-config --ldflags`'], 'conditions': [['OS=="freebsd"', {'include_dirs': ['/usr/local/include']}], ['OS=="mac"', {'include_dirs': ['/opt/local/include'], 'xcode_settings': {'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'}}]]}]]}]]}]}
# Special Pythagorean triplet # Problem 9 # A Pythagorean triplet is a set of three natural numbers, a < b < c, for which, # # a^2 + b^2 = c^2 # For example, 3^2 + 4^2 = 9 + 16 = 25 = 5^2. # # There exists exactly one Pythagorean triplet for which a + b + c = 1000. # Find the product abc. # # First, we recognize that if a <= b # then (a - 1)^2 + (b + 1)^2 = a^2 + b^2 + 2b - 2a + 2 # cannot possibly be smaller than a^2 + b^2. # # This fact can be used to substantially reduce wasted guesses. # # Algorithm can be further refined with binary searches instead of # naive incrementing, but no need to optimize yet. INITIAL_C_VALUE = 334 def run(): c = INITIAL_C_VALUE for c in range(INITIAL_C_VALUE, 1000): diff = 1000 - c a = (diff) // 2 b = (diff - a) sum_of_squares = a * a + b * b c_squared = c * c while sum_of_squares < c_squared: a -= 1 b += 1 sum_of_squares = a * a + b * b if sum_of_squares == c_squared: print("{0}^2 + {1}^2 = {2}^2 = {3}".format(a, b, c, c_squared)) print("{0} + {1} + {2} = {3}".format(a, b, c, a + b + c)) print("abc = {0} * {1} * {2} = {3}".format(a, b, c, a * b * c)) return # Sample Output: # 200^2 + 375^2 = 425^2 = 180625 # 200 + 375 + 425 = 1000 # abc = 200 * 375 * 425 = 31875000 # # Total running time for Problem9.py is 0.0004772338907904122 seconds
initial_c_value = 334 def run(): c = INITIAL_C_VALUE for c in range(INITIAL_C_VALUE, 1000): diff = 1000 - c a = diff // 2 b = diff - a sum_of_squares = a * a + b * b c_squared = c * c while sum_of_squares < c_squared: a -= 1 b += 1 sum_of_squares = a * a + b * b if sum_of_squares == c_squared: print('{0}^2 + {1}^2 = {2}^2 = {3}'.format(a, b, c, c_squared)) print('{0} + {1} + {2} = {3}'.format(a, b, c, a + b + c)) print('abc = {0} * {1} * {2} = {3}'.format(a, b, c, a * b * c)) return
# ch18/example4.py def read_data(): for i in range(5): print('Inside the inner for loop...') yield i * 2 result = read_data() for i in range(6): print('Inside the outer for loop...') print(next(result)) print('Finished.')
def read_data(): for i in range(5): print('Inside the inner for loop...') yield (i * 2) result = read_data() for i in range(6): print('Inside the outer for loop...') print(next(result)) print('Finished.')
class Location: def __init__(self, lat: float, lon: float): self.lat = lat self.lon = lon def __repr__(self) -> str: return f"({self.lat}, {self.lon})" def str_between(input_str: str, left: str, right: str) -> str: return input_str.split(left)[1].split(right)[0]
class Location: def __init__(self, lat: float, lon: float): self.lat = lat self.lon = lon def __repr__(self) -> str: return f'({self.lat}, {self.lon})' def str_between(input_str: str, left: str, right: str) -> str: return input_str.split(left)[1].split(right)[0]
# Consume: CONSUMER_KEY = '' CONSUMER_SECRET = '' # Access: ACCESS_TOKEN = '' ACCESS_SECRET = ''
consumer_key = '' consumer_secret = '' access_token = '' access_secret = ''
# Title : Queue implementation using lists # Author : Kiran Raj R. # Date : 03:11:2020 class Queue: def __init__(self): self._queue = [] self.head = self.length() def length(self): return len(self._queue) def print_queue(self): if self.length == self.head: print("The queue is empty") return else: print("[", end="") for i in range(self.length()): print(self._queue[i], end=" ") print("]") return def enqueue(self, elem): self._queue.append(elem) print(f"{elem} added. The queue now {self._queue}") return def dequeue(self): if self.length() == self.head: print(f"The queue is empty") return else: elem = self._queue.pop(self.head) print( f"Removed {elem}. The queue now {self._queue}") return queue_1 = Queue() queue_1.enqueue(10) queue_1.enqueue(20) queue_1.enqueue(30) queue_1.enqueue(40) queue_1.enqueue(50) queue_1.enqueue(60) queue_1.dequeue() queue_1.dequeue() queue_1.print_queue()
class Queue: def __init__(self): self._queue = [] self.head = self.length() def length(self): return len(self._queue) def print_queue(self): if self.length == self.head: print('The queue is empty') return else: print('[', end='') for i in range(self.length()): print(self._queue[i], end=' ') print(']') return def enqueue(self, elem): self._queue.append(elem) print(f'{elem} added. The queue now {self._queue}') return def dequeue(self): if self.length() == self.head: print(f'The queue is empty') return else: elem = self._queue.pop(self.head) print(f'Removed {elem}. The queue now {self._queue}') return queue_1 = queue() queue_1.enqueue(10) queue_1.enqueue(20) queue_1.enqueue(30) queue_1.enqueue(40) queue_1.enqueue(50) queue_1.enqueue(60) queue_1.dequeue() queue_1.dequeue() queue_1.print_queue()
# -*- coding: utf-8 -*- target_cancer = "PANCANCER" input_file1 = [] input_file2 = [] output_tumor1 = open(target_cancer + ".SEP_8.Tumor_Cor_CpGsite&CytAct_pearson.txt", 'w') output_tumor2 = open(target_cancer + ".SEP_8..Tumor_Cor_CpGSite&CytAct_spearman.txt", 'w') for i in range(0, 10) : name = str(i) input_file1.append(open(target_cancer + ".SEP_8." + name + ".Tumor_Cor_CpGsite&CytAct_pearson.txt", 'r')) input_file2.append(open(target_cancer + ".SEP_8." + name + "..Tumor_Cor_CpGSite&CytAct_spearman.txt", 'r')) if(i == 0) : output_tumor1.write(input_file1[i].readline()) output_tumor2.write(input_file2[i].readline()) else : input_file1[i].readline() input_file2[i].readline() printarray1 = input_file1[i].readlines() printarray2 = input_file2[i].readlines() for line1 in printarray1 : output_tumor1.write(line1) for line2 in printarray2 : output_tumor2.write(line2) last1 = open(target_cancer + ".SEP_8._.Tumor_Cor_CpGsite&CytAct_pearson.txt", 'r') last2 = open(target_cancer + ".SEP_8._..Tumor_Cor_CpGSite&CytAct_spearman.txt", 'r') last1.readline(); last2.readline() lastprint1 = last1.readlines(); lastprint2 = last2.readlines() for line1 in lastprint1 : output_tumor1.write(line1) for line2 in lastprint2 : output_tumor2.write(line2) output_tumor1.close() output_tumor2.close() print("END")
target_cancer = 'PANCANCER' input_file1 = [] input_file2 = [] output_tumor1 = open(target_cancer + '.SEP_8.Tumor_Cor_CpGsite&CytAct_pearson.txt', 'w') output_tumor2 = open(target_cancer + '.SEP_8..Tumor_Cor_CpGSite&CytAct_spearman.txt', 'w') for i in range(0, 10): name = str(i) input_file1.append(open(target_cancer + '.SEP_8.' + name + '.Tumor_Cor_CpGsite&CytAct_pearson.txt', 'r')) input_file2.append(open(target_cancer + '.SEP_8.' + name + '..Tumor_Cor_CpGSite&CytAct_spearman.txt', 'r')) if i == 0: output_tumor1.write(input_file1[i].readline()) output_tumor2.write(input_file2[i].readline()) else: input_file1[i].readline() input_file2[i].readline() printarray1 = input_file1[i].readlines() printarray2 = input_file2[i].readlines() for line1 in printarray1: output_tumor1.write(line1) for line2 in printarray2: output_tumor2.write(line2) last1 = open(target_cancer + '.SEP_8._.Tumor_Cor_CpGsite&CytAct_pearson.txt', 'r') last2 = open(target_cancer + '.SEP_8._..Tumor_Cor_CpGSite&CytAct_spearman.txt', 'r') last1.readline() last2.readline() lastprint1 = last1.readlines() lastprint2 = last2.readlines() for line1 in lastprint1: output_tumor1.write(line1) for line2 in lastprint2: output_tumor2.write(line2) output_tumor1.close() output_tumor2.close() print('END')
openers_by_closer = { ')': '(', '}': '{', ']': '[', '>': '<', } closers_by_opener = {v: k for k, v in openers_by_closer.items()} part1_points = { ')': 3, ']': 57, '}': 1197, '>': 25137, } part2_points = { ')': 1, ']': 2, '}': 3, '>': 4, } def part1(input): stack = [] corrupted = 0 for char in input: if openers_by_closer.keys().__contains__(char): if len(stack) == 0: corrupted += part1_points[char] break pop = stack.pop() if pop != openers_by_closer[char]: corrupted += part1_points[char] break else: stack.append(char) return corrupted def part2(input): stack = [] score = 0 for char in input: if openers_by_closer.keys().__contains__(char): stack.pop() else: stack.append(char) for i in range(0, len(stack)): closer = closers_by_opener[stack.pop()] score *= 5 score += part2_points[closer] return score with open('input', 'r') as f: part1_score = 0 part2_scores = [] for line in f.readlines(): part1_result = part1(line) part1_score += part1_result if part1_result == 0: part2_scores.append(part2(line.replace("\n", ""))) part2_scores.sort() print(part1_score) print(part2_scores[int(len(part2_scores) / 2)])
openers_by_closer = {')': '(', '}': '{', ']': '[', '>': '<'} closers_by_opener = {v: k for (k, v) in openers_by_closer.items()} part1_points = {')': 3, ']': 57, '}': 1197, '>': 25137} part2_points = {')': 1, ']': 2, '}': 3, '>': 4} def part1(input): stack = [] corrupted = 0 for char in input: if openers_by_closer.keys().__contains__(char): if len(stack) == 0: corrupted += part1_points[char] break pop = stack.pop() if pop != openers_by_closer[char]: corrupted += part1_points[char] break else: stack.append(char) return corrupted def part2(input): stack = [] score = 0 for char in input: if openers_by_closer.keys().__contains__(char): stack.pop() else: stack.append(char) for i in range(0, len(stack)): closer = closers_by_opener[stack.pop()] score *= 5 score += part2_points[closer] return score with open('input', 'r') as f: part1_score = 0 part2_scores = [] for line in f.readlines(): part1_result = part1(line) part1_score += part1_result if part1_result == 0: part2_scores.append(part2(line.replace('\n', ''))) part2_scores.sort() print(part1_score) print(part2_scores[int(len(part2_scores) / 2)])
def minimumNumber(n, password): # Return the minimum number of characters to make the password strong # Its length is at least 6. # It contains at least one digit. # It contains at least one lowercase English character. # It contains at least one uppercase English character. # It contains at least one special character. The special characters are: !@#$%^&*()-+ numbers = "0123456789" lower_case = "abcdefghijklmnopqrstuvwxyz" upper_case = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" special_characters = "!@#$%^&*()-+" miss = 0 if any(character in numbers for character in password)==False: miss += 1 if any(character in lower_case for character in password)==False: miss += 1 if any(character in upper_case for character in password)==False: miss += 1 if any(character in special_characters for character in password)==False: miss += 1 return max(miss, 6-n)
def minimum_number(n, password): numbers = '0123456789' lower_case = 'abcdefghijklmnopqrstuvwxyz' upper_case = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' special_characters = '!@#$%^&*()-+' miss = 0 if any((character in numbers for character in password)) == False: miss += 1 if any((character in lower_case for character in password)) == False: miss += 1 if any((character in upper_case for character in password)) == False: miss += 1 if any((character in special_characters for character in password)) == False: miss += 1 return max(miss, 6 - n)
# -*- coding: utf-8 -*- def get_site_id(domain_name, sites): ''' Accepts a domain name and a list of sites. sites is assumed to be the return value of ZoneSerializer.get_basic_info() This function will return the CloudFlare ID of the given domain name. ''' site_id = None match = filter(lambda x: x['name'] == domain_name, sites) if match: site_id = match[0]['id'] return site_id
def get_site_id(domain_name, sites): """ Accepts a domain name and a list of sites. sites is assumed to be the return value of ZoneSerializer.get_basic_info() This function will return the CloudFlare ID of the given domain name. """ site_id = None match = filter(lambda x: x['name'] == domain_name, sites) if match: site_id = match[0]['id'] return site_id
#encoding:utf-8 subreddit = '00ag9603' t_channel = '@r_00ag9603' def send_post(submission, r2t): return r2t.send_simple(submission)
subreddit = '00ag9603' t_channel = '@r_00ag9603' def send_post(submission, r2t): return r2t.send_simple(submission)
names = ['Cecil', 'Brian', 'Michael', 'Edna', 'Gertrude', 'Lily', 'Beverly'] #result = [] # for name in names: # result.append(len(name)) def cap(name): up = name.upper() reversed_list = list(reversed(up)) return "".join(reversed_list) result = [cap(name) for name in names] print(result)
names = ['Cecil', 'Brian', 'Michael', 'Edna', 'Gertrude', 'Lily', 'Beverly'] def cap(name): up = name.upper() reversed_list = list(reversed(up)) return ''.join(reversed_list) result = [cap(name) for name in names] print(result)
# [Copyright] # SmartPath v1.0 # Copyright 2014-2015 Mountain Pass Solutions, Inc. # This unpublished material is proprietary to Mountain Pass Solutions, Inc. # [End Copyright] manage_joint_promotions = { "code": "manage_joint_promotions", "descr": "Manage Joint Secondary Promotions", "header": "Manage Joint Secondary Promotions", "componentType": "Task", "affordanceType":"Item", "optional": True, "enabled": True, "accessPermissions": ["dept_task"], "viewPermissions": ["ofa_task","dept_task"], "blockers": [], "containers": [], "statusMsg": "", "className": "JointPromotion", "config": { "instructional":"Select secondary positions and titles that will be included with this promotion." }, }
manage_joint_promotions = {'code': 'manage_joint_promotions', 'descr': 'Manage Joint Secondary Promotions', 'header': 'Manage Joint Secondary Promotions', 'componentType': 'Task', 'affordanceType': 'Item', 'optional': True, 'enabled': True, 'accessPermissions': ['dept_task'], 'viewPermissions': ['ofa_task', 'dept_task'], 'blockers': [], 'containers': [], 'statusMsg': '', 'className': 'JointPromotion', 'config': {'instructional': 'Select secondary positions and titles that will be included with this promotion.'}}
# # This is the Robotics Language compiler # # Parameters.py: Definition of the parameters for this package # # Created on: 08 October, 2018 # Author: Gabriel Lopes # Licence: license # Copyright: copyright # parameters = { 'globalIncludes': set(), 'localIncludes': set() } command_line_flags = { 'globalIncludes': {'suppress': True}, 'localIncludes': {'suppress': True} }
parameters = {'globalIncludes': set(), 'localIncludes': set()} command_line_flags = {'globalIncludes': {'suppress': True}, 'localIncludes': {'suppress': True}}
x = 1000000 while True: y = x z = x + 1 x = z + 1
x = 1000000 while True: y = x z = x + 1 x = z + 1
# -*- coding: UTF-8 -*- logger.info("Loading 0 objects to table cal_subscription...") # fields: id, user, calendar, is_hidden loader.flush_deferred_objects()
logger.info('Loading 0 objects to table cal_subscription...') loader.flush_deferred_objects()
def is_immutable(new, immutable_attrs): sub = new() it = iter(immutable_attrs) for atr in it: try: setattr(sub, atr, getattr(sub, atr, None)) except AttributeError: continue else: raise AssertionError( f"attribute `{sub.__class__.__qualname__}.{atr}` is mutable" ) return sub
def is_immutable(new, immutable_attrs): sub = new() it = iter(immutable_attrs) for atr in it: try: setattr(sub, atr, getattr(sub, atr, None)) except AttributeError: continue else: raise assertion_error(f'attribute `{sub.__class__.__qualname__}.{atr}` is mutable') return sub
# Str! API_TOKEN = 'YOUR TOKEN GOES HERE' # Int! ADMIN_ID = 'USER_ID OF PERSON(s) DESIGNATED AS ADMINS'
api_token = 'YOUR TOKEN GOES HERE' admin_id = 'USER_ID OF PERSON(s) DESIGNATED AS ADMINS'
model_space_filename = 'path/to/metrics.json' model_sampling_rules = dict( type='sequential', rules=[ # 1. select model with best performance, could replace with your own metrics dict( type='sample', operation='top', # replace with customized metric in your own tasks, e.g. `metric.finetune.bdd100k_bbox_mAP` key='metric.finetune.coco_bbox_mAP', value=1, mode='number', ), ])
model_space_filename = 'path/to/metrics.json' model_sampling_rules = dict(type='sequential', rules=[dict(type='sample', operation='top', key='metric.finetune.coco_bbox_mAP', value=1, mode='number')])
group_count = 0 count = 0 group = {} with open("input.txt") as f: lines = f.readlines() for line in lines: line = line.strip("\n") if line: group_count += 1 for letter in line: group[letter] = 1 if letter not in group else group[letter] + 1 else: for k, v in group.items(): count = count + 1 if v == group_count else count + 0 group_count = 0 group.clear() print(count)
group_count = 0 count = 0 group = {} with open('input.txt') as f: lines = f.readlines() for line in lines: line = line.strip('\n') if line: group_count += 1 for letter in line: group[letter] = 1 if letter not in group else group[letter] + 1 else: for (k, v) in group.items(): count = count + 1 if v == group_count else count + 0 group_count = 0 group.clear() print(count)
with open('input.txt') as f: graph = f.readlines() tree_count = 0 x = 0 for line in graph: if line[x] == '#': tree_count += 1 x += 3 x %= len(line.strip()) print('Part one: ', tree_count) slopes = (1, 3, 5, 7) mult_count = 1 for slope in slopes: tree_count = 0 x = 0 for line in graph: if line[x] == '#': tree_count += 1 x += slope x %= len(line.strip()) mult_count *= tree_count tree_count = 0 x = 0 for line in graph[::2]: if line[x] == '#': tree_count += 1 x += 1 x %= len(line.strip()) mult_count *= tree_count print('Part two: ', mult_count)
with open('input.txt') as f: graph = f.readlines() tree_count = 0 x = 0 for line in graph: if line[x] == '#': tree_count += 1 x += 3 x %= len(line.strip()) print('Part one: ', tree_count) slopes = (1, 3, 5, 7) mult_count = 1 for slope in slopes: tree_count = 0 x = 0 for line in graph: if line[x] == '#': tree_count += 1 x += slope x %= len(line.strip()) mult_count *= tree_count tree_count = 0 x = 0 for line in graph[::2]: if line[x] == '#': tree_count += 1 x += 1 x %= len(line.strip()) mult_count *= tree_count print('Part two: ', mult_count)
def normalize(df, features): for f in features: range = df[f].max() - df[f].min() df[f] = df[f] / range
def normalize(df, features): for f in features: range = df[f].max() - df[f].min() df[f] = df[f] / range
dt = {} def solve(a, b): if a == b: return True if len(a) <= 1: return False flag = False temp = a + '-' + 'b' if temp in dt: return dt[temp] for i in range(1, len(a)): temp1 = solve(a[:i], b[-i:]) and solve(a[i:], b[:-i]) # swapped temp2 = solve(a[:i], b[:i]) and solve(a[i:], b[i:]) # not swapped if temp1 or temp2: flag = True break dt[temp] = flag return flag
dt = {} def solve(a, b): if a == b: return True if len(a) <= 1: return False flag = False temp = a + '-' + 'b' if temp in dt: return dt[temp] for i in range(1, len(a)): temp1 = solve(a[:i], b[-i:]) and solve(a[i:], b[:-i]) temp2 = solve(a[:i], b[:i]) and solve(a[i:], b[i:]) if temp1 or temp2: flag = True break dt[temp] = flag return flag
n = int(input()) uid_list = [] for i in range(1,n+1): uid = input() uid_list.append(uid) alpha = '''abcdefghijklmnopqrstuvwxyz''' Alpha = '''ABCDEFGHIJKLMNOPQRSTUVWXYZ''' numeric = '0123456789' N = 0 A = 0 a = 0 valid = [] rep = 0 for i in uid_list: for j in i: if j in Alpha: A += 1 elif j in numeric: N += 1 elif j in alpha: a += 1 if j not in valid: valid.append(j) elif j in valid: rep += 1 if A>=2 and N>=3 and len(i)==10 and a + A + N == 10 and rep==0: print('Valid') else: print('Invalid') A = 0 N = 0 a = 0 rep = 0 valid.clear()
n = int(input()) uid_list = [] for i in range(1, n + 1): uid = input() uid_list.append(uid) alpha = 'abcdefghijklmnopqrstuvwxyz' alpha = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' numeric = '0123456789' n = 0 a = 0 a = 0 valid = [] rep = 0 for i in uid_list: for j in i: if j in Alpha: a += 1 elif j in numeric: n += 1 elif j in alpha: a += 1 if j not in valid: valid.append(j) elif j in valid: rep += 1 if A >= 2 and N >= 3 and (len(i) == 10) and (a + A + N == 10) and (rep == 0): print('Valid') else: print('Invalid') a = 0 n = 0 a = 0 rep = 0 valid.clear()
Clock.bpm=144; Scale.default="lydianMinor" d1 >> play("x-o{-[-(-o)]}", sample=0).every([28,4], "trim", 3) d2 >> play("(X )( X)N{ xv[nX]}", drive=0.2, lpf=var([0,40],[28,4]), rate=PStep(P[5:8],[-1,-2],1)).sometimes("sample.offadd", 1, 0.75) d3 >> play("e", amp=var([0,1],[PRand(8,16)/2,1.5]), dur=PRand([1/2,1/4]), pan=var([-1,1],2)) c1 >> play("#", dur=32, room=1, amp=2).spread() var.switch = var([0,1],[32]) p1 >> karp(dur=1/4, rate=PWhite(40), pan=PWhite(-1,1), amplify=var.switch, amp=1, room=0.5) p2 >> sawbass(var([0,1,5,var([4,6],[14,2])],1), dur=PDur(3,8), cutoff=4000, sus=1/2, amplify=var.switch) p3 >> glass(oct=6, rate=linvar([-2,2],16), shape=0.5, amp=1.5, amplify=var([0,var.switch],64), room=0.5)
Clock.bpm = 144 Scale.default = 'lydianMinor' d1 >> play('x-o{-[-(-o)]}', sample=0).every([28, 4], 'trim', 3) d2 >> play('(X )( X)N{ xv[nX]}', drive=0.2, lpf=var([0, 40], [28, 4]), rate=p_step(P[5:8], [-1, -2], 1)).sometimes('sample.offadd', 1, 0.75) d3 >> play('e', amp=var([0, 1], [p_rand(8, 16) / 2, 1.5]), dur=p_rand([1 / 2, 1 / 4]), pan=var([-1, 1], 2)) c1 >> play('#', dur=32, room=1, amp=2).spread() var.switch = var([0, 1], [32]) p1 >> karp(dur=1 / 4, rate=p_white(40), pan=p_white(-1, 1), amplify=var.switch, amp=1, room=0.5) p2 >> sawbass(var([0, 1, 5, var([4, 6], [14, 2])], 1), dur=p_dur(3, 8), cutoff=4000, sus=1 / 2, amplify=var.switch) p3 >> glass(oct=6, rate=linvar([-2, 2], 16), shape=0.5, amp=1.5, amplify=var([0, var.switch], 64), room=0.5)
s = input() count = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] for i in s : if(i == '0') : count[0]+=1 elif(i == '1') : count[1]+=1 elif(i == '2') : count[2]+=1 elif(i == '3') : count[3]+=1 elif(i == '4') : count[4]+=1 elif(i == '5') : count[5]+=1 elif(i == '6') : count[6]+=1 elif(i == '7') : count[7]+=1 elif(i == '8') : count[8]+=1 else : count[9]+=1 for i in range(10) : ele = str(count[i]) j = str(i) print(j+" "+ele)
s = input() count = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] for i in s: if i == '0': count[0] += 1 elif i == '1': count[1] += 1 elif i == '2': count[2] += 1 elif i == '3': count[3] += 1 elif i == '4': count[4] += 1 elif i == '5': count[5] += 1 elif i == '6': count[6] += 1 elif i == '7': count[7] += 1 elif i == '8': count[8] += 1 else: count[9] += 1 for i in range(10): ele = str(count[i]) j = str(i) print(j + ' ' + ele)
# # PySNMP MIB module Wellfleet-IFWALL-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Wellfleet-IFWALL-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 21:33:47 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") ConstraintsIntersection, ValueSizeConstraint, SingleValueConstraint, ConstraintsUnion, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsUnion", "ValueRangeConstraint") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") Integer32, Counter32, ModuleIdentity, Bits, Gauge32, ObjectIdentity, MibIdentifier, iso, IpAddress, Counter64, NotificationType, MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, Unsigned32 = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "Counter32", "ModuleIdentity", "Bits", "Gauge32", "ObjectIdentity", "MibIdentifier", "iso", "IpAddress", "Counter64", "NotificationType", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks", "Unsigned32") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") wfFwallGroup, = mibBuilder.importSymbols("Wellfleet-COMMON-MIB", "wfFwallGroup") wfIFwallIfTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 5, 1, 11, 1), ) if mibBuilder.loadTexts: wfIFwallIfTable.setStatus('obsolete') wfIFwallIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 5, 1, 11, 1, 1), ).setIndexNames((0, "Wellfleet-IFWALL-MIB", "wfIFwallIfSlot"), (0, "Wellfleet-IFWALL-MIB", "wfIFwallIfPort")) if mibBuilder.loadTexts: wfIFwallIfEntry.setStatus('obsolete') wfIFwallIfDelete = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 1, 11, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("created", 1), ("deleted", 2))).clone('created')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfIFwallIfDelete.setStatus('obsolete') wfIFwallIfDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 1, 11, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('enabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfIFwallIfDisable.setStatus('obsolete') wfIFwallIfCct = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 1, 11, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1023))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfIFwallIfCct.setStatus('obsolete') wfIFwallIfSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 1, 11, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 14))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfIFwallIfSlot.setStatus('obsolete') wfIFwallIfPort = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 1, 11, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 44))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfIFwallIfPort.setStatus('obsolete') wfIFwallIfLineNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 1, 11, 1, 1, 6), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfIFwallIfLineNumber.setStatus('obsolete') wfIFwallIfName = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 1, 11, 1, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfIFwallIfName.setStatus('obsolete') wfFwallIntfTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 5, 1, 11, 3), ) if mibBuilder.loadTexts: wfFwallIntfTable.setStatus('mandatory') wfFwallIntfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 5, 1, 11, 3, 1), ).setIndexNames((0, "Wellfleet-IFWALL-MIB", "wfFwallIntfCct")) if mibBuilder.loadTexts: wfFwallIntfEntry.setStatus('mandatory') wfFwallIntfDelete = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 1, 11, 3, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("create", 1), ("delete", 2))).clone('create')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfFwallIntfDelete.setStatus('mandatory') wfFwallIntfDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 1, 11, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('enabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfFwallIntfDisable.setStatus('mandatory') wfFwallIntfCct = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 1, 11, 3, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1023))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfFwallIntfCct.setStatus('mandatory') wfFwallIntfName = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 1, 11, 3, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfFwallIntfName.setStatus('mandatory') wfFwallIntfPolicyIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 1, 11, 3, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1023))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfFwallIntfPolicyIndex.setStatus('mandatory') mibBuilder.exportSymbols("Wellfleet-IFWALL-MIB", wfFwallIntfName=wfFwallIntfName, wfIFwallIfPort=wfIFwallIfPort, wfFwallIntfDelete=wfFwallIntfDelete, wfFwallIntfCct=wfFwallIntfCct, wfFwallIntfDisable=wfFwallIntfDisable, wfIFwallIfDisable=wfIFwallIfDisable, wfIFwallIfTable=wfIFwallIfTable, wfIFwallIfName=wfIFwallIfName, wfFwallIntfEntry=wfFwallIntfEntry, wfIFwallIfSlot=wfIFwallIfSlot, wfIFwallIfLineNumber=wfIFwallIfLineNumber, wfIFwallIfCct=wfIFwallIfCct, wfFwallIntfTable=wfFwallIntfTable, wfIFwallIfDelete=wfIFwallIfDelete, wfIFwallIfEntry=wfIFwallIfEntry, wfFwallIntfPolicyIndex=wfFwallIntfPolicyIndex)
(octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_intersection, value_size_constraint, single_value_constraint, constraints_union, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ValueSizeConstraint', 'SingleValueConstraint', 'ConstraintsUnion', 'ValueRangeConstraint') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (integer32, counter32, module_identity, bits, gauge32, object_identity, mib_identifier, iso, ip_address, counter64, notification_type, mib_scalar, mib_table, mib_table_row, mib_table_column, time_ticks, unsigned32) = mibBuilder.importSymbols('SNMPv2-SMI', 'Integer32', 'Counter32', 'ModuleIdentity', 'Bits', 'Gauge32', 'ObjectIdentity', 'MibIdentifier', 'iso', 'IpAddress', 'Counter64', 'NotificationType', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'TimeTicks', 'Unsigned32') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') (wf_fwall_group,) = mibBuilder.importSymbols('Wellfleet-COMMON-MIB', 'wfFwallGroup') wf_i_fwall_if_table = mib_table((1, 3, 6, 1, 4, 1, 18, 3, 5, 1, 11, 1)) if mibBuilder.loadTexts: wfIFwallIfTable.setStatus('obsolete') wf_i_fwall_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 18, 3, 5, 1, 11, 1, 1)).setIndexNames((0, 'Wellfleet-IFWALL-MIB', 'wfIFwallIfSlot'), (0, 'Wellfleet-IFWALL-MIB', 'wfIFwallIfPort')) if mibBuilder.loadTexts: wfIFwallIfEntry.setStatus('obsolete') wf_i_fwall_if_delete = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 1, 11, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('created', 1), ('deleted', 2))).clone('created')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfIFwallIfDelete.setStatus('obsolete') wf_i_fwall_if_disable = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 1, 11, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('enabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfIFwallIfDisable.setStatus('obsolete') wf_i_fwall_if_cct = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 1, 11, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(1, 1023))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfIFwallIfCct.setStatus('obsolete') wf_i_fwall_if_slot = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 1, 11, 1, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 14))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfIFwallIfSlot.setStatus('obsolete') wf_i_fwall_if_port = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 1, 11, 1, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(1, 44))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfIFwallIfPort.setStatus('obsolete') wf_i_fwall_if_line_number = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 1, 11, 1, 1, 6), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfIFwallIfLineNumber.setStatus('obsolete') wf_i_fwall_if_name = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 1, 11, 1, 1, 7), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfIFwallIfName.setStatus('obsolete') wf_fwall_intf_table = mib_table((1, 3, 6, 1, 4, 1, 18, 3, 5, 1, 11, 3)) if mibBuilder.loadTexts: wfFwallIntfTable.setStatus('mandatory') wf_fwall_intf_entry = mib_table_row((1, 3, 6, 1, 4, 1, 18, 3, 5, 1, 11, 3, 1)).setIndexNames((0, 'Wellfleet-IFWALL-MIB', 'wfFwallIntfCct')) if mibBuilder.loadTexts: wfFwallIntfEntry.setStatus('mandatory') wf_fwall_intf_delete = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 1, 11, 3, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('create', 1), ('delete', 2))).clone('create')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfFwallIntfDelete.setStatus('mandatory') wf_fwall_intf_disable = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 1, 11, 3, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('enabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfFwallIntfDisable.setStatus('mandatory') wf_fwall_intf_cct = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 1, 11, 3, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(1, 1023))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfFwallIntfCct.setStatus('mandatory') wf_fwall_intf_name = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 1, 11, 3, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfFwallIntfName.setStatus('mandatory') wf_fwall_intf_policy_index = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 1, 11, 3, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 1023))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfFwallIntfPolicyIndex.setStatus('mandatory') mibBuilder.exportSymbols('Wellfleet-IFWALL-MIB', wfFwallIntfName=wfFwallIntfName, wfIFwallIfPort=wfIFwallIfPort, wfFwallIntfDelete=wfFwallIntfDelete, wfFwallIntfCct=wfFwallIntfCct, wfFwallIntfDisable=wfFwallIntfDisable, wfIFwallIfDisable=wfIFwallIfDisable, wfIFwallIfTable=wfIFwallIfTable, wfIFwallIfName=wfIFwallIfName, wfFwallIntfEntry=wfFwallIntfEntry, wfIFwallIfSlot=wfIFwallIfSlot, wfIFwallIfLineNumber=wfIFwallIfLineNumber, wfIFwallIfCct=wfIFwallIfCct, wfFwallIntfTable=wfFwallIntfTable, wfIFwallIfDelete=wfIFwallIfDelete, wfIFwallIfEntry=wfIFwallIfEntry, wfFwallIntfPolicyIndex=wfFwallIntfPolicyIndex)