content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
seat_ids = [] def binary_partition(start, end, identifier, lower_id, upper_id): if start == end: return start half_range = int((end - start + 1) / 2) if identifier[0] == lower_id: new_start = start new_end = end - half_range elif identifier[0] == upper_id: new_start = start + half_range new_end = end else: print("error") return return binary_partition(new_start, new_end, identifier[1:], lower_id, upper_id) with open("input.txt") as file_handler: for line in file_handler: row = binary_partition(0, 127, line.strip()[:7], "F", "B") col = binary_partition(0, 7, line.strip()[7:], "L", "R") seat_id = row * 8 + col seat_ids.append(seat_id) previous_seat_id = min(seat_ids) - 1 for seat_id in sorted(seat_ids): if previous_seat_id + 1 != seat_id: print(previous_seat_id + 1) break previous_seat_id = seat_id
seat_ids = [] def binary_partition(start, end, identifier, lower_id, upper_id): if start == end: return start half_range = int((end - start + 1) / 2) if identifier[0] == lower_id: new_start = start new_end = end - half_range elif identifier[0] == upper_id: new_start = start + half_range new_end = end else: print('error') return return binary_partition(new_start, new_end, identifier[1:], lower_id, upper_id) with open('input.txt') as file_handler: for line in file_handler: row = binary_partition(0, 127, line.strip()[:7], 'F', 'B') col = binary_partition(0, 7, line.strip()[7:], 'L', 'R') seat_id = row * 8 + col seat_ids.append(seat_id) previous_seat_id = min(seat_ids) - 1 for seat_id in sorted(seat_ids): if previous_seat_id + 1 != seat_id: print(previous_seat_id + 1) break previous_seat_id = seat_id
def skyhook_calculator(upper_vel,delta_vel): Cmax = 4000 Cmin = 300 epsilon = 0.0001 alpha = 0.5 sat_limit = 800 if upper_vel * delta_vel >= 0: C = (alpha * Cmax * upper_vel + (1 - alpha) * Cmax * upper_vel)/(delta_vel + epsilon) C = min(C,Cmax) u = C * delta_vel else: u = Cmin*delta_vel if u >= 0: if u > sat_limit: u_ = sat_limit else: u_ = u else: if u < -sat_limit: u_ = -sat_limit else: u_ = u return u_ def skyhook(env): # env.state_SH = [fl2,tfl2,fr2,tfr2,rl2,trl2,rr2,trr2] dz_fl = env.state_SH[0] vel_fl = dz_fl - env.state_SH[1] u_fl = skyhook_calculator(dz_fl,vel_fl) if len(env.state_SH) > 2: dz_fr = env.state_SH[2] dz_rl = env.state_SH[4] dz_rr = env.state_SH[6] vel_fr = dz_fr - env.state_SH[3] vel_rl = dz_rl - env.state_SH[5] vel_rr = dz_rr - env.state_SH[7] u_fr = skyhook_calculator(dz_fr,vel_fr) u_rl = skyhook_calculator(dz_rl,vel_rl) u_rr = skyhook_calculator(dz_rr,vel_rr) return [u_fl,u_fr,u_rl,u_rr] else: return u_fl
def skyhook_calculator(upper_vel, delta_vel): cmax = 4000 cmin = 300 epsilon = 0.0001 alpha = 0.5 sat_limit = 800 if upper_vel * delta_vel >= 0: c = (alpha * Cmax * upper_vel + (1 - alpha) * Cmax * upper_vel) / (delta_vel + epsilon) c = min(C, Cmax) u = C * delta_vel else: u = Cmin * delta_vel if u >= 0: if u > sat_limit: u_ = sat_limit else: u_ = u elif u < -sat_limit: u_ = -sat_limit else: u_ = u return u_ def skyhook(env): dz_fl = env.state_SH[0] vel_fl = dz_fl - env.state_SH[1] u_fl = skyhook_calculator(dz_fl, vel_fl) if len(env.state_SH) > 2: dz_fr = env.state_SH[2] dz_rl = env.state_SH[4] dz_rr = env.state_SH[6] vel_fr = dz_fr - env.state_SH[3] vel_rl = dz_rl - env.state_SH[5] vel_rr = dz_rr - env.state_SH[7] u_fr = skyhook_calculator(dz_fr, vel_fr) u_rl = skyhook_calculator(dz_rl, vel_rl) u_rr = skyhook_calculator(dz_rr, vel_rr) return [u_fl, u_fr, u_rl, u_rr] else: return u_fl
def printmove(fr,to): print("Moved from " + str(fr)+" to "+str(to)) def TowerOfHanoi(n,fr,to,spare): if n==1: printmove(fr,to) else: TowerOfHanoi(n-1,fr,spare,to) TowerOfHanoi(1,fr,to,spare) TowerOfHanoi(n-1,spare,to,fr) TowerOfHanoi(int(input("Enter the number of rings in the source peg\n")),'A','B','C')
def printmove(fr, to): print('Moved from ' + str(fr) + ' to ' + str(to)) def tower_of_hanoi(n, fr, to, spare): if n == 1: printmove(fr, to) else: tower_of_hanoi(n - 1, fr, spare, to) tower_of_hanoi(1, fr, to, spare) tower_of_hanoi(n - 1, spare, to, fr) tower_of_hanoi(int(input('Enter the number of rings in the source peg\n')), 'A', 'B', 'C')
# Enter your code here. Read input from STDIN. Print output to STDOUT n = input() a = set(raw_input().strip().split(" ")) m = input() b = set(raw_input().strip().split(" ")) print(len(a.intersection(b)))
n = input() a = set(raw_input().strip().split(' ')) m = input() b = set(raw_input().strip().split(' ')) print(len(a.intersection(b)))
""" day6b - https://adventofcode.com/2020/day/6 * Part 2 Example: 6 Identify the questions to which everyone answered "yes"! 3520 """ def load_data(): answers = {} answer_id = 1 answers[1] = [] datafile = 'input-day6' with open(datafile, 'r') as input: for line in input: cleanline = line.strip() # if it's an empty line, move on to the next answer if cleanline == "": answer_id += 1 answers[answer_id] = [] # otherwise, append the answer to the current answer else: answers[answer_id].append(cleanline) return answers def process_data(answers): total = 0 for answer_id in answers: answer_list = answers[answer_id] alphabet = {} for answer in answer_list: for char in answer: # really should use defaultdict instead if char not in alphabet: alphabet[char] = 0 alphabet[char] += 1 for letter in alphabet: quantity = alphabet[letter] if quantity == len(answer_list): total += 1 return total if __name__ == '__main__': data = load_data() print(data) results = process_data(data) print(results)
""" day6b - https://adventofcode.com/2020/day/6 * Part 2 Example: 6 Identify the questions to which everyone answered "yes"! 3520 """ def load_data(): answers = {} answer_id = 1 answers[1] = [] datafile = 'input-day6' with open(datafile, 'r') as input: for line in input: cleanline = line.strip() if cleanline == '': answer_id += 1 answers[answer_id] = [] else: answers[answer_id].append(cleanline) return answers def process_data(answers): total = 0 for answer_id in answers: answer_list = answers[answer_id] alphabet = {} for answer in answer_list: for char in answer: if char not in alphabet: alphabet[char] = 0 alphabet[char] += 1 for letter in alphabet: quantity = alphabet[letter] if quantity == len(answer_list): total += 1 return total if __name__ == '__main__': data = load_data() print(data) results = process_data(data) print(results)
# how to copy a list months = ['jan', 'feb', 'march', 'apr', 'may'] months_copy = months[:] print(months_copy) print(months)
months = ['jan', 'feb', 'march', 'apr', 'may'] months_copy = months[:] print(months_copy) print(months)
data = ( 'nzup', # 0x00 'nzurx', # 0x01 'nzur', # 0x02 'nzyt', # 0x03 'nzyx', # 0x04 'nzy', # 0x05 'nzyp', # 0x06 'nzyrx', # 0x07 'nzyr', # 0x08 'sit', # 0x09 'six', # 0x0a 'si', # 0x0b 'sip', # 0x0c 'siex', # 0x0d 'sie', # 0x0e 'siep', # 0x0f 'sat', # 0x10 'sax', # 0x11 'sa', # 0x12 'sap', # 0x13 'suox', # 0x14 'suo', # 0x15 'suop', # 0x16 'sot', # 0x17 'sox', # 0x18 'so', # 0x19 'sop', # 0x1a 'sex', # 0x1b 'se', # 0x1c 'sep', # 0x1d 'sut', # 0x1e 'sux', # 0x1f 'su', # 0x20 'sup', # 0x21 'surx', # 0x22 'sur', # 0x23 'syt', # 0x24 'syx', # 0x25 'sy', # 0x26 'syp', # 0x27 'syrx', # 0x28 'syr', # 0x29 'ssit', # 0x2a 'ssix', # 0x2b 'ssi', # 0x2c 'ssip', # 0x2d 'ssiex', # 0x2e 'ssie', # 0x2f 'ssiep', # 0x30 'ssat', # 0x31 'ssax', # 0x32 'ssa', # 0x33 'ssap', # 0x34 'ssot', # 0x35 'ssox', # 0x36 'sso', # 0x37 'ssop', # 0x38 'ssex', # 0x39 'sse', # 0x3a 'ssep', # 0x3b 'ssut', # 0x3c 'ssux', # 0x3d 'ssu', # 0x3e 'ssup', # 0x3f 'ssyt', # 0x40 'ssyx', # 0x41 'ssy', # 0x42 'ssyp', # 0x43 'ssyrx', # 0x44 'ssyr', # 0x45 'zhat', # 0x46 'zhax', # 0x47 'zha', # 0x48 'zhap', # 0x49 'zhuox', # 0x4a 'zhuo', # 0x4b 'zhuop', # 0x4c 'zhot', # 0x4d 'zhox', # 0x4e 'zho', # 0x4f 'zhop', # 0x50 'zhet', # 0x51 'zhex', # 0x52 'zhe', # 0x53 'zhep', # 0x54 'zhut', # 0x55 'zhux', # 0x56 'zhu', # 0x57 'zhup', # 0x58 'zhurx', # 0x59 'zhur', # 0x5a 'zhyt', # 0x5b 'zhyx', # 0x5c 'zhy', # 0x5d 'zhyp', # 0x5e 'zhyrx', # 0x5f 'zhyr', # 0x60 'chat', # 0x61 'chax', # 0x62 'cha', # 0x63 'chap', # 0x64 'chuot', # 0x65 'chuox', # 0x66 'chuo', # 0x67 'chuop', # 0x68 'chot', # 0x69 'chox', # 0x6a 'cho', # 0x6b 'chop', # 0x6c 'chet', # 0x6d 'chex', # 0x6e 'che', # 0x6f 'chep', # 0x70 'chux', # 0x71 'chu', # 0x72 'chup', # 0x73 'churx', # 0x74 'chur', # 0x75 'chyt', # 0x76 'chyx', # 0x77 'chy', # 0x78 'chyp', # 0x79 'chyrx', # 0x7a 'chyr', # 0x7b 'rrax', # 0x7c 'rra', # 0x7d 'rruox', # 0x7e 'rruo', # 0x7f 'rrot', # 0x80 'rrox', # 0x81 'rro', # 0x82 'rrop', # 0x83 'rret', # 0x84 'rrex', # 0x85 'rre', # 0x86 'rrep', # 0x87 'rrut', # 0x88 'rrux', # 0x89 'rru', # 0x8a 'rrup', # 0x8b 'rrurx', # 0x8c 'rrur', # 0x8d 'rryt', # 0x8e 'rryx', # 0x8f 'rry', # 0x90 'rryp', # 0x91 'rryrx', # 0x92 'rryr', # 0x93 'nrat', # 0x94 'nrax', # 0x95 'nra', # 0x96 'nrap', # 0x97 'nrox', # 0x98 'nro', # 0x99 'nrop', # 0x9a 'nret', # 0x9b 'nrex', # 0x9c 'nre', # 0x9d 'nrep', # 0x9e 'nrut', # 0x9f 'nrux', # 0xa0 'nru', # 0xa1 'nrup', # 0xa2 'nrurx', # 0xa3 'nrur', # 0xa4 'nryt', # 0xa5 'nryx', # 0xa6 'nry', # 0xa7 'nryp', # 0xa8 'nryrx', # 0xa9 'nryr', # 0xaa 'shat', # 0xab 'shax', # 0xac 'sha', # 0xad 'shap', # 0xae 'shuox', # 0xaf 'shuo', # 0xb0 'shuop', # 0xb1 'shot', # 0xb2 'shox', # 0xb3 'sho', # 0xb4 'shop', # 0xb5 'shet', # 0xb6 'shex', # 0xb7 'she', # 0xb8 'shep', # 0xb9 'shut', # 0xba 'shux', # 0xbb 'shu', # 0xbc 'shup', # 0xbd 'shurx', # 0xbe 'shur', # 0xbf 'shyt', # 0xc0 'shyx', # 0xc1 'shy', # 0xc2 'shyp', # 0xc3 'shyrx', # 0xc4 'shyr', # 0xc5 'rat', # 0xc6 'rax', # 0xc7 'ra', # 0xc8 'rap', # 0xc9 'ruox', # 0xca 'ruo', # 0xcb 'ruop', # 0xcc 'rot', # 0xcd 'rox', # 0xce 'ro', # 0xcf 'rop', # 0xd0 'rex', # 0xd1 're', # 0xd2 'rep', # 0xd3 'rut', # 0xd4 'rux', # 0xd5 'ru', # 0xd6 'rup', # 0xd7 'rurx', # 0xd8 'rur', # 0xd9 'ryt', # 0xda 'ryx', # 0xdb 'ry', # 0xdc 'ryp', # 0xdd 'ryrx', # 0xde 'ryr', # 0xdf 'jit', # 0xe0 'jix', # 0xe1 'ji', # 0xe2 'jip', # 0xe3 'jiet', # 0xe4 'jiex', # 0xe5 'jie', # 0xe6 'jiep', # 0xe7 'juot', # 0xe8 'juox', # 0xe9 'juo', # 0xea 'juop', # 0xeb 'jot', # 0xec 'jox', # 0xed 'jo', # 0xee 'jop', # 0xef 'jut', # 0xf0 'jux', # 0xf1 'ju', # 0xf2 'jup', # 0xf3 'jurx', # 0xf4 'jur', # 0xf5 'jyt', # 0xf6 'jyx', # 0xf7 'jy', # 0xf8 'jyp', # 0xf9 'jyrx', # 0xfa 'jyr', # 0xfb 'qit', # 0xfc 'qix', # 0xfd 'qi', # 0xfe 'qip', # 0xff )
data = ('nzup', 'nzurx', 'nzur', 'nzyt', 'nzyx', 'nzy', 'nzyp', 'nzyrx', 'nzyr', 'sit', 'six', 'si', 'sip', 'siex', 'sie', 'siep', 'sat', 'sax', 'sa', 'sap', 'suox', 'suo', 'suop', 'sot', 'sox', 'so', 'sop', 'sex', 'se', 'sep', 'sut', 'sux', 'su', 'sup', 'surx', 'sur', 'syt', 'syx', 'sy', 'syp', 'syrx', 'syr', 'ssit', 'ssix', 'ssi', 'ssip', 'ssiex', 'ssie', 'ssiep', 'ssat', 'ssax', 'ssa', 'ssap', 'ssot', 'ssox', 'sso', 'ssop', 'ssex', 'sse', 'ssep', 'ssut', 'ssux', 'ssu', 'ssup', 'ssyt', 'ssyx', 'ssy', 'ssyp', 'ssyrx', 'ssyr', 'zhat', 'zhax', 'zha', 'zhap', 'zhuox', 'zhuo', 'zhuop', 'zhot', 'zhox', 'zho', 'zhop', 'zhet', 'zhex', 'zhe', 'zhep', 'zhut', 'zhux', 'zhu', 'zhup', 'zhurx', 'zhur', 'zhyt', 'zhyx', 'zhy', 'zhyp', 'zhyrx', 'zhyr', 'chat', 'chax', 'cha', 'chap', 'chuot', 'chuox', 'chuo', 'chuop', 'chot', 'chox', 'cho', 'chop', 'chet', 'chex', 'che', 'chep', 'chux', 'chu', 'chup', 'churx', 'chur', 'chyt', 'chyx', 'chy', 'chyp', 'chyrx', 'chyr', 'rrax', 'rra', 'rruox', 'rruo', 'rrot', 'rrox', 'rro', 'rrop', 'rret', 'rrex', 'rre', 'rrep', 'rrut', 'rrux', 'rru', 'rrup', 'rrurx', 'rrur', 'rryt', 'rryx', 'rry', 'rryp', 'rryrx', 'rryr', 'nrat', 'nrax', 'nra', 'nrap', 'nrox', 'nro', 'nrop', 'nret', 'nrex', 'nre', 'nrep', 'nrut', 'nrux', 'nru', 'nrup', 'nrurx', 'nrur', 'nryt', 'nryx', 'nry', 'nryp', 'nryrx', 'nryr', 'shat', 'shax', 'sha', 'shap', 'shuox', 'shuo', 'shuop', 'shot', 'shox', 'sho', 'shop', 'shet', 'shex', 'she', 'shep', 'shut', 'shux', 'shu', 'shup', 'shurx', 'shur', 'shyt', 'shyx', 'shy', 'shyp', 'shyrx', 'shyr', 'rat', 'rax', 'ra', 'rap', 'ruox', 'ruo', 'ruop', 'rot', 'rox', 'ro', 'rop', 'rex', 're', 'rep', 'rut', 'rux', 'ru', 'rup', 'rurx', 'rur', 'ryt', 'ryx', 'ry', 'ryp', 'ryrx', 'ryr', 'jit', 'jix', 'ji', 'jip', 'jiet', 'jiex', 'jie', 'jiep', 'juot', 'juox', 'juo', 'juop', 'jot', 'jox', 'jo', 'jop', 'jut', 'jux', 'ju', 'jup', 'jurx', 'jur', 'jyt', 'jyx', 'jy', 'jyp', 'jyrx', 'jyr', 'qit', 'qix', 'qi', 'qip')
''' import requests import copy host = "http://172.30.1.8" uri = "/changeuser.ghp" org_headers = { "User-Agent": "Mozilla/4.0", "Host": host.split("://")[1], "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Language": "en-us", "Accept-Encoding": "gzip, deflate", "Referer": host, "Conection": "Keep-Alive" } org_cookies = { "SESSIONID": "6771", "UserID": "id", "PassWD": "password" } payload = "A" * 4528 for key in list(org_headers.keys()): print("Header", key, end=": ") try: headers = copy.deepcopy(org_headers) headers[key] = payload res = requests.get(host + uri, headers=headers, cookies=org_cookies) print(": Good!") except Exception as e: print(e[:10]) for key in list(org_cookies.keys()): print("Cookie", key, end=": ") try: cookies = copy.deepcopy(org_cookies) cookies[key] = payload res = requests.get(host + uri, headers=org_headers, cookies=cookies) print(": Good!") except Exception as e: print(e[:10]) '''
""" import requests import copy host = "http://172.30.1.8" uri = "/changeuser.ghp" org_headers = { "User-Agent": "Mozilla/4.0", "Host": host.split("://")[1], "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Language": "en-us", "Accept-Encoding": "gzip, deflate", "Referer": host, "Conection": "Keep-Alive" } org_cookies = { "SESSIONID": "6771", "UserID": "id", "PassWD": "password" } payload = "A" * 4528 for key in list(org_headers.keys()): print("Header", key, end=": ") try: headers = copy.deepcopy(org_headers) headers[key] = payload res = requests.get(host + uri, headers=headers, cookies=org_cookies) print(": Good!") except Exception as e: print(e[:10]) for key in list(org_cookies.keys()): print("Cookie", key, end=": ") try: cookies = copy.deepcopy(org_cookies) cookies[key] = payload res = requests.get(host + uri, headers=org_headers, cookies=cookies) print(": Good!") except Exception as e: print(e[:10]) """
def create_matrix(rows): matrix = [[int(x) for x in input().split()] for _ in range(rows)] return matrix def valid_cell(row, col, size): return 0 <= row < size and 0 <= col < size def print_matrix(matrix): [print(' '.join([str(x) for x in row])) for row in matrix] # did this for the sake of using comprehension rows = int(input()) matrix = create_matrix(rows) while True: line = input() if line == 'END': print_matrix(matrix) break command, *rest = line.split() row, col, value = map(int, rest) if valid_cell(row, col, rows): if command == 'Add': matrix[row][col] += value elif command == 'Subtract': matrix[row][col] -= value else: print('Invalid coordinates')
def create_matrix(rows): matrix = [[int(x) for x in input().split()] for _ in range(rows)] return matrix def valid_cell(row, col, size): return 0 <= row < size and 0 <= col < size def print_matrix(matrix): [print(' '.join([str(x) for x in row])) for row in matrix] rows = int(input()) matrix = create_matrix(rows) while True: line = input() if line == 'END': print_matrix(matrix) break (command, *rest) = line.split() (row, col, value) = map(int, rest) if valid_cell(row, col, rows): if command == 'Add': matrix[row][col] += value elif command == 'Subtract': matrix[row][col] -= value else: print('Invalid coordinates')
#Leia uma temperatura em graus Celsius e apresente-a convertida em Kelvin. # A formula da conversao eh: K=C+273.15, # sendo K a temperatura em Kelvin e c a temperatura em celsius. C=float(input("Informe a temperatura em Celsius: ")) K=C+273.15 print(f"A temperatura em Kelvin eh {round(K,1)}")
c = float(input('Informe a temperatura em Celsius: ')) k = C + 273.15 print(f'A temperatura em Kelvin eh {round(K, 1)}')
def operate(operator, *args): result = 1 for x in args: if operator == "+": return sum(args) elif operator == "*": result *= x elif operator == "/": result /= x return result print(operate("+", 1, 2, 3)) print(operate("*", 3, 4)) print(operate("/", 4, 2))
def operate(operator, *args): result = 1 for x in args: if operator == '+': return sum(args) elif operator == '*': result *= x elif operator == '/': result /= x return result print(operate('+', 1, 2, 3)) print(operate('*', 3, 4)) print(operate('/', 4, 2))
class MonoBasicPackage (GitHubTarballPackage): def __init__(self): GitHubTarballPackage.__init__(self, 'mono', 'mono-basic', '4.8', 'e31cb702937a0adcc853250a0989c5f43565f9b8', configure='./configure --prefix="%{staged_profile}"') def install(self): self.sh('./configure --prefix="%{staged_prefix}"') self.sh('DEPRECATED=1 make install') MonoBasicPackage()
class Monobasicpackage(GitHubTarballPackage): def __init__(self): GitHubTarballPackage.__init__(self, 'mono', 'mono-basic', '4.8', 'e31cb702937a0adcc853250a0989c5f43565f9b8', configure='./configure --prefix="%{staged_profile}"') def install(self): self.sh('./configure --prefix="%{staged_prefix}"') self.sh('DEPRECATED=1 make install') mono_basic_package()
# We start our program by informing the user that this program is for a calculator. print("Welcome to the calculator program!") # Our program will run until the user chooses to exit, so we define a variable to # hold the text that a user must enter to exit the program. Since we intend that # this variable be constant (never change), we use uppercase letters, rather than # lowercase, to differentiate this from our changeable variables. EXIT_USER_INPUT_OPTION = "EXIT" # We print out a message to inform the user how to exit the program. # This string message is formed by combining (concatenating) a string # literal ("Enter ") with the string stored in our "ENTER_USER_INPUT_OPTION" # constant with another string literal (" after a calculation to end program."). # The concatenation is done using the "+" operator. print("Enter " + EXIT_USER_INPUT_OPTION + " after a calculation to end program.") # We define a new variable named "user_input_after_calculation" to hold the user's # input after each calculation. Since the user hasn't entered any input yet, # we initialize this variable with an empty string. user_input_after_calculation = "" # In order to have our program continue executing until the user chooses to exit, # we need a loop like a "while" loop. Since we want our program to exit if # the user entered text for the exit option (stored in the "EXIT_USER_INPUT_OPTION" # constant), we checked if this option doesn't equal the user's input (stored in # the "user_input_after_calculation" variable) using the inequality (or "not equal") # operator (the "!=" operator). As long as this boolean condition is True, # we enter the body of the while loop to execute it. while EXIT_USER_INPUT_OPTION != user_input_after_calculation: # The condition for the while loop is True, so we ask the user to enter the first # number to use in the calculation. This is done using the built-in input() function, # which will wait until the user enters some text and then return that text as a string. # Since we need numbers to do math in our calculator, we convert that string to an # integer using the built-in int() function. This integer is stored in a variable # named "first_number". This calculator is only supporting integers right now, # not floating-point numbers. first_number = int(input("Enter first number: ")) # We need a second number to do math, so we ask the user to enter the second # number to use in the calculation. This is done using the built-in input() function, # which will wait until the user enters some text and then return that text as a string. # Since we need numbers to do math in our calculator, we convert that string to an # integer using the built-in int() function. This integer is stored in a variable # named "second_number". This calculator is only supporting integers right now, # not floating-point numbers. second_number = int(input("Enter second number: ")) # To help make it clear what text users enter correspond to which mathematical operations, # we define a constant named "ADDITION_OPERATION" for the addition operation, which we'll # represent by the "+" string. ADDITION_OPERATION = "+" # To help make it clear what text users enter correspond to which mathematical operations, # we define a constant named "SUBTRACTION_OPERATION" for the subtraction operation, which we'll # represent by the "-" string. SUBTRACTION_OPERATION = "-" # To help make it clear what text users enter correspond to which mathematical operations, # we define a constant named "MULTIPLICATION_OPERATION" for the multiplication operation, which we'll # represent by the "*" string. MULTIPLICATION_OPERATION = "*" # To help make it clear what text users enter correspond to which mathematical operations, # we define a constant named "DIVISION_OPERATION" for the division operation, which we'll # represent by the "/" string. DIVISION_OPERATION = "/" # To help users know which operations our calculator supports, we print out a message prior # to printing out the valid operations. print("Valid operations include: ") # Print out the addition operation to inform the user of it. print(ADDITION_OPERATION) # Print out the subtraction operation to inform the user of it. print(SUBTRACTION_OPERATION) # Print out the multiplication operation to inform the user of it. print(MULTIPLICATION_OPERATION) # Print out the division operation to inform the user of it. print(DIVISION_OPERATION) # Ask the user to enter an operation. This will print out a message and then wait # for the user to enter some text using the built-in input() function. The input() # function will return the string text that the user entered, which we store in a # new "operation" variable. operation = input("Enter an operation: ") # This "if" statement checks if the user entered an addition operation by checking # if the string in our "ADDITION_OPERATION" constant is equal to the operation stored # in the "operation" variable. This is done using the equality ("==") operator, which # will return True if the values are equal and False if not equal. if ADDITION_OPERATION == operation: # Perform the addition operation using the "+" operator to calculate the # sum of the numbers. The value stored in the "first_number" variable is # added to the value stored in the "second_number" variable, and the result # is stored in the "sum_result" variable. sum_result = first_number + second_number # Print the sum to the screen to inform the user of the calculated result. # This is done by combining a string literal with the value stored in # the "sum_result" variable. Since the value in the "sum_result" variable # is a number, not a string, we need to convert it to a string using the # built-in str() function before combining it with the string literal. # The final combined message is passed to the built-in print() function # to print it to the screen. print("The sum is: " + str(sum_result)) # The operation in the previous "if" statement wasn't chosen, so this "elif" # statement checks if the user entered a subtraction operation by checking # if the string in our "SUBTRACTION_OPERATION" constant is equal to the operation stored # in the "operation" variable. This is done using the equality ("==") operator, which # will return True if the values are equal and False if not equal. elif SUBTRACTION_OPERATION == operation: # Perform the subtraction operation using the "-" operator to calculate the # difference of the numbers. The value stored in the "second_number" variable is # subtracted from the value stored in the "first_number" variable, and the result # is stored in the "difference_result" variable. difference_result = first_number - second_number # Print the difference to the screen to inform the user of the calculated result. # This is done by combining a string literal with the value stored in # the "difference_result" variable. Since the value in the "difference_result" variable # is a number, not a string, we need to convert it to a string using the # built-in str() function before combining it with the string literal. # The final combined message is passed to the built-in print() function # to print it to the screen. print("The difference is: " + str(difference_result)) # The operations in the previous "if" and "elif" statement weren't chosen, so this "elif" # statement checks if the user entered a multiplication operation by checking # if the string in our "MULTIPLICATION_OPERATION" constant is equal to the operation stored # in the "operation" variable. This is done using the equality ("==") operator, which # will return True if the values are equal and False if not equal. elif MULTIPLICATION_OPERATION == operation: # Perform the multiplication operation using the "*" operator to calculate the # product of the numbers. The value stored in the "first_number" variable is # multiplied by the value stored in the "second_number" variable, and the result # is stored in the "product_result" variable. product_result = first_number * second_number # Print the difference to the screen to inform the user of the calculated result. # This is done by combining a string literal with the value stored in # the "product_result" variable. Since the value in the "product_result" variable # is a number, not a string, we need to convert it to a string using the # built-in str() function before combining it with the string literal. # The final combined message is passed to the built-in print() function # to print it to the screen. print("The product is: " + str(product_result)) # The operations in the previous "if" and "elif" statement weren't chosen, so this "elif" # statement checks if the user entered a division operation by checking # if the string in our "DIVISION_OPERATION" constant is equal to the operation stored # in the "operation" variable. This is done using the equality ("==") operator, which # will return True if the values are equal and False if not equal. elif DIVISION_OPERATION == operation: # Perform the division operation using the "/" operator to calculate the # quotient of the numbers. The value stored in the "first_number" variable is # divided by the value stored in the "second_number" variable, and the result # is stored in the "quotient_result" variable. quotient_result = first_number / second_number # Print the difference to the screen to inform the user of the calculated result. # This is done by combining a string literal with the value stored in # the "quotient_result" variable. Since the value in the "quotient_result" variable # is a number, not a string, we need to convert it to a string using the # built-in str() function before combining it with the string literal. # The final combined message is passed to the built-in print() function # to print it to the screen. print("The quotient is: " + str(quotient_result)) # None of the operations checked for in the previous "if" or "elif" statements were # chosen, so this "else" statement provides a way to handle the user entering # some other invalid text. else: # To inform the user that his/her entered operation is invalid, we print out a message # indicating the entered text (operation) that was invalid. This is done by concatenating # a string literal with a string variable (operation) with another string literal. print('The "' + operation + '" operation is invalid.') # A calculation has finished being performed, so we ask the user for input using the built-in # input() function to determine if this calculator program should continue executing or exit. # The message we print out using the input() function includes the value in our "EXIT_USER_INPUT_OPTION" # constant to let the user know exactly what text needs to be entered to exit. Since the condition # for our "while" loop above only checks for this EXIT_USER_INPUT_OPTION, the user can enter # any other text to continue executing and perform another calculation. After the user enters # some text, the string value entered will be returned from the input() function and stored # in the "user_input_after_calculation" variable. user_input_after_calculation = input("Enter " + EXIT_USER_INPUT_OPTION + " to end program or any other text to perform another calculation.")
print('Welcome to the calculator program!') exit_user_input_option = 'EXIT' print('Enter ' + EXIT_USER_INPUT_OPTION + ' after a calculation to end program.') user_input_after_calculation = '' while EXIT_USER_INPUT_OPTION != user_input_after_calculation: first_number = int(input('Enter first number: ')) second_number = int(input('Enter second number: ')) addition_operation = '+' subtraction_operation = '-' multiplication_operation = '*' division_operation = '/' print('Valid operations include: ') print(ADDITION_OPERATION) print(SUBTRACTION_OPERATION) print(MULTIPLICATION_OPERATION) print(DIVISION_OPERATION) operation = input('Enter an operation: ') if ADDITION_OPERATION == operation: sum_result = first_number + second_number print('The sum is: ' + str(sum_result)) elif SUBTRACTION_OPERATION == operation: difference_result = first_number - second_number print('The difference is: ' + str(difference_result)) elif MULTIPLICATION_OPERATION == operation: product_result = first_number * second_number print('The product is: ' + str(product_result)) elif DIVISION_OPERATION == operation: quotient_result = first_number / second_number print('The quotient is: ' + str(quotient_result)) else: print('The "' + operation + '" operation is invalid.') user_input_after_calculation = input('Enter ' + EXIT_USER_INPUT_OPTION + ' to end program or any other text to perform another calculation.')
# Copyright 2020 Keren Ye, University of Pittsburgh # # 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 GroundingTuple(object): # Proposal id to be associated with each text entity, a [batch, max_n_entity] in tensor, each value is in the range [0, max_n_proposal). entity_proposal_id = None # Proposal box to be associated with each text entity, a [batch, max_n_entity, 4] float tensor. entity_proposal_box = None # Proposal score to be associated with each text entity, a [batch, max_n_entity] float tensor. entity_proposal_score = None # Proposal feature to be associated with each text entity, a [batch, max_n_entity, feature_dims] float tensor. entity_proposal_feature = None class DetectionTuple(object): # Number of detections, a [batch] int tensor. valid_detections = None # Final proposals that are chosen, a [batch, max_n_detection] int tensor. nmsed_proposal_id = None # Detection boxes, a [batch, max_n_detection, 4] float tensor. nmsed_boxes = None # Detection scores, a [batch, max_n_detection] float tensor. nmsed_scores = None # Detection classes, a [batch, max_n_detection] string tensor. nmsed_classes = None # Detection attribute scores, a [batch, max_n_detetion] float tensor. nmsed_attribute_scores = None # Detection attribute classes, a [batch, max_n_detetion] string tensor. nmsed_attribute_classes = None # Detection region features, a [batch, max_n_detection, feature_dims] tensor. nmsed_features = None class RelationTuple(object): # Number of relations, a [batch] int tensor. num_relations = None # Log probability of the (subject, relation, object), a [batch, max_n_relation] float tensor. log_prob = None # Relation score, a [batch, max_n_relation] float tensor. relation_score = None # Relation class, a [batch, max_n_relation] string tensor. relation_class = None # Proposal id associated to the subject, a [batch, max_n_relation] int tensor, each value is in the range [0, max_n_proposal). subject_proposal = None # Subject score, a [batch, max_n_relation] float tensor. subject_score = None # Subject class, a [batch, max_n_relation] string tensor. subject_class = None # Proposal id associated to the object, a [batch, max_n_relation] int tensor, each value is in the range [0, max_n_proposal). object_proposal = None # Object score, a [batch, max_n_relation] float tensor. object_score = None # Object class, a [batch, max_n_relation] string tensor. object_class = None class DataTuple(object): #################################################### # Objects created by preprocess.initialize. #################################################### # A callable converting tokens to integer ids. token2id_func = None # A callable converting integer ids to tokens. id2token_func = None # Length of the vocabulary. vocab_size = None # Embedding dimensions. dims = None # Word embeddings, a [vocab_size, dims] float tensor. embeddings = None # A callable converting token ids to embedding vectors. embedding_func = None # Entity bias, a [vocab_size] float tensor. bias_entity = None # Attribute bias, a [vocab_size] float tensor. bias_attribute = None # Relation bias, a [vocab_size] float tensor. bias_relation = None #################################################### # Objects parsed from TF record files. #################################################### # Batch size. batch = None # Number of proposals. a [batch] int tensor. n_proposal = None # Maximum proposals in the batch, a scalar int tensor. max_n_proposal = None # Proposal masks, a [batch, max_n_proposal] float tensor, each value is in {0, 1}, denoting the validity. proposal_masks = None # Proposal boxes, a [batch, max_n_proposal, 4] float tensor. proposals = None # Proposal features, a [batch, max_n_proposal, feature_dims] float tensor. proposal_features = None # Number of text entities, a [batch] int tensor. n_entity = None # Maximum entities in the batch, a scalar int tensor. max_n_entity = None # Entity masks, a [batch, max_n_entity] float tensor, each value is in {0, 1}, denoting the validity. entity_masks = None # Text entity ids, a [batch, max_n_entity] int tensor, each value is in the range [0, vocab_size). entity_ids = None # Text entity embeddings, a [batch, max_n_entity, dims] float tensor. entity_embs = None # Refined text entity embeddings, a [batch, max_n_entity, dims] float tensor. refined_entity_embs = None # Number of attributes per each text entity, a [batch, max_n_entity] int tensor. per_ent_n_att = None # Per-entity attribute ids, a [batch, max_n_entity, max_per_ent_n_att] int tensor, each value is in the range [0, vocab_size). per_ent_att_ids = None # Per-entity attribute embeddings, a [batch, max_n_entity, max_per_ent_n_att, dims] float tensor. per_ent_att_embs = None # Image-level one-hot text entity labels, a [batch, max_n_entity, vocab_size] tensor, only one value in the last dimension is 1. entity_image_labels = None # Image-level multi-hot text attribute labels, a [batch, max_n_entity, vocab_size] tensor, multiple values in the last dimension may be 1. attribute_image_labels = None # Number of text relations, a [batch] int tensor. n_relation = None # Maximum relations in the batch, a scalar int tensor. max_n_relation = None # Relation masks, a [batch, max_n_relation] float tensor, each value is in {0, 1}, denoting the validity. relation_masks = None # Text relation ids, a [batch, max_n_relation] int tensor, each value is in the range [0, vocab_size). relation_ids = None # Text relation embeddings, a [batch, max_n_relation, dims] float tensor. relation_embs = None # Refined text relation embeddings, a [batch, max_n_relation, dims] float tensor. refined_relation_embs = None # Index of the subject entity, referring the entity in the entity_ids, a [batch, max_n_relation] int tensor, each value is in the range [0, max_n_entity]. relation_senders = None # Index of the object entity, referring the entity in the entity_ids, a [batch, max_n_relation] int tensor, each value is in the range [0, max_n_entity]. relation_receivers = None #################################################### # Objects created by grounding.ground_entities. #################################################### # Image-level text entity prediction, a [batch, max_n_entity, vocab_size] tensor. entity_image_logits = None # Image-level text attribute prediction, a [batch, max_n_entity, vocab_size] tensor. attribute_image_logits = None # Grounding results. grounding = GroundingTuple() #################################################### # Objects created by detection.detect_entities. #################################################### # Entity detection logits, [batch, max_n_proposal, vocab_size] float tensors. detection_instance_logits_list = [] # Normalized entity detection scores, [batch, max_n_proposal, vocab_size] float tensors. detection_instance_scores_list = [] # Entity detection labels, [batch, max_n_proposal, vocab_size] float tensors. detection_instance_labels_list = [] # Attribute detection logits, [batch, max_n_proposal, vocab_size] float tensors. attribute_instance_logits_list = [] # Normalized attribute detection scores, [batch, max_n_proposal, vocab_size] float tensors. attribute_instance_scores = None # Attribute detection labels, [batch, max_n_proposal, vocab_size] float tensors. attribute_instance_labels_list = [] # Detection results. detection = DetectionTuple() # Grounding results. refined_grounding = GroundingTuple() #################################################### # Objects created by relation.detect_relations. #################################################### # Subject boxes, a [batch, max_n_relation, 4] float tensor. subject_boxes = None # Subject labels, a [batch, max_n_relation] float tensor, each value is in the range [0, vocab_size). subject_labels = None # Object boxes, a [batch, max_n_relation, 4] float tensor. object_boxes = None # Object labels , a [batch, max_n_relation] float tensor, each value is in the range [0, vocab_size). object_labels = None # Predicate labels, a [batch, max_n_relation] float tensor, each value is in the range [0, vocab_size). predicate_labels = None # Sequence prediction of subject, a [batch, max_n_relation, vocab_size] float tensor. subject_logits = None # Sequence prediction of object, a [batch, max_n_relation, vocab_size] float tensor. object_logits = None # Sequence prediction of predicate, a [batch, max_n_relation, vocab_size] float tensor. predicate_logits = None # # Relation detection logits, a [batch, max_n_proposal, max_n_proposal, vocab_size] float tensor. # relation_instance_logits = None # # Normalized relation detection scores, a [batch, max_n_proposal, max_n_proposal, vocab_size] float tensor. # relation_instance_scores = None # # Relation detection labels, a [batch, max_n_proposal, max_n_proposal, vocab_size] float tensor. # relation_instance_labels = None # Relation results. relation = RelationTuple() refined_relation = RelationTuple()
class Groundingtuple(object): entity_proposal_id = None entity_proposal_box = None entity_proposal_score = None entity_proposal_feature = None class Detectiontuple(object): valid_detections = None nmsed_proposal_id = None nmsed_boxes = None nmsed_scores = None nmsed_classes = None nmsed_attribute_scores = None nmsed_attribute_classes = None nmsed_features = None class Relationtuple(object): num_relations = None log_prob = None relation_score = None relation_class = None subject_proposal = None subject_score = None subject_class = None object_proposal = None object_score = None object_class = None class Datatuple(object): token2id_func = None id2token_func = None vocab_size = None dims = None embeddings = None embedding_func = None bias_entity = None bias_attribute = None bias_relation = None batch = None n_proposal = None max_n_proposal = None proposal_masks = None proposals = None proposal_features = None n_entity = None max_n_entity = None entity_masks = None entity_ids = None entity_embs = None refined_entity_embs = None per_ent_n_att = None per_ent_att_ids = None per_ent_att_embs = None entity_image_labels = None attribute_image_labels = None n_relation = None max_n_relation = None relation_masks = None relation_ids = None relation_embs = None refined_relation_embs = None relation_senders = None relation_receivers = None entity_image_logits = None attribute_image_logits = None grounding = grounding_tuple() detection_instance_logits_list = [] detection_instance_scores_list = [] detection_instance_labels_list = [] attribute_instance_logits_list = [] attribute_instance_scores = None attribute_instance_labels_list = [] detection = detection_tuple() refined_grounding = grounding_tuple() subject_boxes = None subject_labels = None object_boxes = None object_labels = None predicate_labels = None subject_logits = None object_logits = None predicate_logits = None relation = relation_tuple() refined_relation = relation_tuple()
################################################## ## ## Auto generate the simple WAT unit tests for ## wrap, trunc, extend, convert, demote, promote ## and reinterpret operators. ## ################################################## tyi32 = "i32"; tyi64 = "i64"; tyf32 = "f32"; tyf64 = "f64"; tests = [ "i32_wrap_i64 ", "i32_trunc_f32_s ", "i32_trunc_f32_u ", "i32_trunc_f64_s ", "i32_trunc_f64_u ", "i64_extend_i32_s ", "i64_extend_i32_u ", "i64_trunc_f32_s ", "i64_trunc_f32_u ", "i64_trunc_f64_s ", "i64_trunc_f64_u ", "f32_convert_i32_s ", "f32_convert_i32_u ", "f32_convert_i64_s ", "f32_convert_i64_u ", "f32_demote_f64 ", "f64_convert_i32_s ", "f64_convert_i32_u ", "f64_convert_i64_s ", "f64_convert_i64_u ", "f64_promote_f32 ", "i32_reinterpret_f32", "i64_reinterpret_f64", "f32_reinterpret_i32", "f64_reinterpret_i64", ] for t in tests: t = t.strip() toks = t.split('_') operatorName = toks[0] + '.' + toks[1] + '_' + toks[2] if len(toks) > 3: operatorName += '_' + toks[3] prog = ";; " + operatorName + "\n" prog += "(module\n" prog += "\t(func (export \"Test\") (param " + toks[2] + ") ( result " + toks[0] + ")\n" prog += "\tlocal.get 0\n" prog += "\t" + operatorName + "\n" prog += "))" print("Writing minimal test for " + operatorName) outFile = open(operatorName + ".WAT", "w") outFile.write(prog) outFile.close() ################################################## ## ## There's a small group of signed extend operators ## that take in the same size as the output, even if ## they're only considering a portion of all the bytes. ## ################################################## selfExtendSTests = [ "i32_extend8_s ", "i32_extend16_s ", "i64_extend8_s ", "i64_extend16_s ", "i64_extend32_s " ] for t in selfExtendSTests: t = t.strip() toks = t.split('_') operatorName = toks[0] + '.' + toks[1] + '_' + toks[2] prog = ";; " + operatorName + "\n" prog += "(module\n" prog += "\t(func (export \"Test\") (param " + toks[0] + ") ( result " + toks[0] + ")\n" prog += "\tlocal.get 0\n" prog += "\t" + operatorName + "\n" prog += "))" print("Writing minimal test for " + operatorName) outFile = open(operatorName + ".WAT", "w") outFile.write(prog) outFile.close()
tyi32 = 'i32' tyi64 = 'i64' tyf32 = 'f32' tyf64 = 'f64' tests = ['i32_wrap_i64 ', 'i32_trunc_f32_s ', 'i32_trunc_f32_u ', 'i32_trunc_f64_s ', 'i32_trunc_f64_u ', 'i64_extend_i32_s ', 'i64_extend_i32_u ', 'i64_trunc_f32_s ', 'i64_trunc_f32_u ', 'i64_trunc_f64_s ', 'i64_trunc_f64_u ', 'f32_convert_i32_s ', 'f32_convert_i32_u ', 'f32_convert_i64_s ', 'f32_convert_i64_u ', 'f32_demote_f64 ', 'f64_convert_i32_s ', 'f64_convert_i32_u ', 'f64_convert_i64_s ', 'f64_convert_i64_u ', 'f64_promote_f32 ', 'i32_reinterpret_f32', 'i64_reinterpret_f64', 'f32_reinterpret_i32', 'f64_reinterpret_i64'] for t in tests: t = t.strip() toks = t.split('_') operator_name = toks[0] + '.' + toks[1] + '_' + toks[2] if len(toks) > 3: operator_name += '_' + toks[3] prog = ';; ' + operatorName + '\n' prog += '(module\n' prog += '\t(func (export "Test") (param ' + toks[2] + ') ( result ' + toks[0] + ')\n' prog += '\tlocal.get 0\n' prog += '\t' + operatorName + '\n' prog += '))' print('Writing minimal test for ' + operatorName) out_file = open(operatorName + '.WAT', 'w') outFile.write(prog) outFile.close() self_extend_s_tests = ['i32_extend8_s ', 'i32_extend16_s ', 'i64_extend8_s ', 'i64_extend16_s ', 'i64_extend32_s '] for t in selfExtendSTests: t = t.strip() toks = t.split('_') operator_name = toks[0] + '.' + toks[1] + '_' + toks[2] prog = ';; ' + operatorName + '\n' prog += '(module\n' prog += '\t(func (export "Test") (param ' + toks[0] + ') ( result ' + toks[0] + ')\n' prog += '\tlocal.get 0\n' prog += '\t' + operatorName + '\n' prog += '))' print('Writing minimal test for ' + operatorName) out_file = open(operatorName + '.WAT', 'w') outFile.write(prog) outFile.close()
# -*- coding: utf-8 -*- # !/bin/env python __all__ = ['Driver'] """ This script defines objects representing the drivers """ class Driver(object): """ Represent a Driver. 3 properties are mandatory: starting time, starting and ending nodes. For continuous solution, a traffic weight can be specified: between 0 and 1 """ def __init__(self, start, end, time, traffic_weight=1): """ starting node """ self.start = start """ ending node """ self.end = end """ starting time """ self.time = time """ Importance in the traffic computation """ self.traffic_weight = traffic_weight def to_tuple(self): """ Transform Driver to a tuple (starting node, ending node, starting time) :return: tuple """ return self.start, self.end, self.time, self.traffic_weight def __str__(self): return str(self.to_tuple())
__all__ = ['Driver'] '\nThis script defines objects representing the drivers\n' class Driver(object): """ Represent a Driver. 3 properties are mandatory: starting time, starting and ending nodes. For continuous solution, a traffic weight can be specified: between 0 and 1 """ def __init__(self, start, end, time, traffic_weight=1): """ starting node """ self.start = start '\n ending node\n ' self.end = end '\n starting time\n ' self.time = time '\n Importance in the traffic computation\n ' self.traffic_weight = traffic_weight def to_tuple(self): """ Transform Driver to a tuple (starting node, ending node, starting time) :return: tuple """ return (self.start, self.end, self.time, self.traffic_weight) def __str__(self): return str(self.to_tuple())
# M0_C5 - Mean, Median def mean(scores): # Write your code here return "not implemented" def median(scores): # Write your code here return "not implemented" if __name__ == '__main__': scores = input("Input list of test scores, space-separated: ") scores_list = [int(i) for i in scores.split()] mean = mean(scores_list) median = median(scores_list) print(f"Mean: {mean}") print(f"Median: {median}")
def mean(scores): return 'not implemented' def median(scores): return 'not implemented' if __name__ == '__main__': scores = input('Input list of test scores, space-separated: ') scores_list = [int(i) for i in scores.split()] mean = mean(scores_list) median = median(scores_list) print(f'Mean: {mean}') print(f'Median: {median}')
entradas = int(input()) def cesar_cifra(frase, deslocamento): frase_codificada = "" for letra in frase: ascii_value = ord(letra)-deslocamento if ascii_value < 65: ascii_value = 91 - (65-ascii_value) frase_codificada += chr(ascii_value) return frase_codificada for i in range(entradas): palavra = input() chave = int(input()) print(cesar_cifra(palavra, chave))
entradas = int(input()) def cesar_cifra(frase, deslocamento): frase_codificada = '' for letra in frase: ascii_value = ord(letra) - deslocamento if ascii_value < 65: ascii_value = 91 - (65 - ascii_value) frase_codificada += chr(ascii_value) return frase_codificada for i in range(entradas): palavra = input() chave = int(input()) print(cesar_cifra(palavra, chave))
all_cells = input().split("#") water = int(input()) effort = 0 fire = 0 cells_value = [] total_fire = 0 for cell in all_cells: current_cell = cell.split(" = ") type_of_fire = current_cell[0] cell_value = int(current_cell[1]) if type_of_fire == "High": if not 81 <= cell_value <= 125: continue elif type_of_fire == "Medium": if not 51 <= cell_value <= 80: continue elif type_of_fire == "Low": if not 1 <= cell_value <= 50: continue if water < cell_value: continue cells_value.append(cell_value) water -= cell_value effort += cell_value * 0.25 fire += cell_value print(f"Cells:") for cell in cells_value: print(f" - {cell}") print(f"Effort: {effort:.2f}") print(f"Total Fire: {fire}")
all_cells = input().split('#') water = int(input()) effort = 0 fire = 0 cells_value = [] total_fire = 0 for cell in all_cells: current_cell = cell.split(' = ') type_of_fire = current_cell[0] cell_value = int(current_cell[1]) if type_of_fire == 'High': if not 81 <= cell_value <= 125: continue elif type_of_fire == 'Medium': if not 51 <= cell_value <= 80: continue elif type_of_fire == 'Low': if not 1 <= cell_value <= 50: continue if water < cell_value: continue cells_value.append(cell_value) water -= cell_value effort += cell_value * 0.25 fire += cell_value print(f'Cells:') for cell in cells_value: print(f' - {cell}') print(f'Effort: {effort:.2f}') print(f'Total Fire: {fire}')
""" Contains Template class """ class Template(object): ''' Represents a Template and all its data ''' def __init__(self): self.name = None self.keyval = [] self.context = None def __repr__(self): return "{}".format(self.keyval)
""" Contains Template class """ class Template(object): """ Represents a Template and all its data """ def __init__(self): self.name = None self.keyval = [] self.context = None def __repr__(self): return '{}'.format(self.keyval)
class NextcloudRequestException(Exception): def __init__(self, request=None, message=None): self.request = request message = message or f"Error {request.status_code}: {request.get_error_message()}" super().__init__(message) class NextcloudDoesNotExist(NextcloudRequestException): pass class NextcloudAlreadyExist(NextcloudRequestException): pass class NextcloudMultipleObjectsReturned(Exception): pass
class Nextcloudrequestexception(Exception): def __init__(self, request=None, message=None): self.request = request message = message or f'Error {request.status_code}: {request.get_error_message()}' super().__init__(message) class Nextclouddoesnotexist(NextcloudRequestException): pass class Nextcloudalreadyexist(NextcloudRequestException): pass class Nextcloudmultipleobjectsreturned(Exception): pass
def generate_game_stats(sheets): games = 0 wins = [0, 0, 0] #Re, Contra, Tie for sheet in sheets: for row_int in range(1, len(sheet)): row = sheet[row_int] # print(row) if len(row) == 5: games += 1 if int(row[4]) >= 1: wins[0] += 1 elif int(row[4]) <= -1: wins[1] += 1 else: wins[2] += 1 return (wins, games)
def generate_game_stats(sheets): games = 0 wins = [0, 0, 0] for sheet in sheets: for row_int in range(1, len(sheet)): row = sheet[row_int] if len(row) == 5: games += 1 if int(row[4]) >= 1: wins[0] += 1 elif int(row[4]) <= -1: wins[1] += 1 else: wins[2] += 1 return (wins, games)
rf_commands = { 'light/off': '2600500000012b9312131337131312131213131213121338133713131238133713131238133713131312133714371337143713121312131214371312131214111411143713371436140005610001294813000d050000000000000000', 'aircon/off': '2600d6007f3d110e112c110f112c110e112c110f112c110e112c110f112c112c110e112c110f112c112c112c112c110e110f112c112c110e110f110e110f112c110e110e120e110e110f112c110e110f110e110e110f112c110e110f110e110f112b120e110e112c110f110e110f110e112c110f110e110e110f110e110f110e110e110f110e112c102d112c112c120e110e110f110e110f100f110e110f110e112c1010112c110e110f100f110e110f110e110f100f110e110f112c100f110f102d0f2e0f2e112c100f110f110e112c112c112c110f0e000d050000', 'tv/power': '2600500000012695121311141113131212131213123811141138123812381238113911381213123812131238111411131238121312131213113911131238123812131238113812381200051a0001264b13000d050000000000000000', 'tv/input': '260050000001289214111411141114111411131213361411143614361336143614361436141113361436143614361436131114111411141114111312131114111436143613361436140005170001284914000d050000000000000000', 'tv/ch_up': '260050000001289314111410141114111411141114361410143614361436143514361436141114361435143614111436143614111311141114111411143614101411143614361436140005170001284914000d050000000000000000', 'tv/ch_down': '260050000001279314111411141114111311141114361411143515351436143614361435151014361436143614351436143614111411141114101411141114111411143317351436140005170001284914000d050000000000000000', 'tv/vol_up': '260050000001289214111411141114111411141015351411143614361435153514361436141114351510143614111436143515101411141114361411143514111411143614361435140005180001284616000d050000000000000000', 'tv/vol_down': '260050000001289314111411141015101411141114361411143514361436143614351535141114361411143515351436143614111410151014361411141114101510143614361436140005170001284914000d050000000000000000', }
rf_commands = {'light/off': '2600500000012b9312131337131312131213131213121338133713131238133713131238133713131312133714371337143713121312131214371312131214111411143713371436140005610001294813000d050000000000000000', 'aircon/off': '2600d6007f3d110e112c110f112c110e112c110f112c110e112c110f112c112c110e112c110f112c112c112c112c110e110f112c112c110e110f110e110f112c110e110e120e110e110f112c110e110f110e110e110f112c110e110f110e110f112b120e110e112c110f110e110f110e112c110f110e110e110f110e110f110e110e110f110e112c102d112c112c120e110e110f110e110f100f110e110f110e112c1010112c110e110f100f110e110f110e110f100f110e110f112c100f110f102d0f2e0f2e112c100f110f110e112c112c112c110f0e000d050000', 'tv/power': '2600500000012695121311141113131212131213123811141138123812381238113911381213123812131238111411131238121312131213113911131238123812131238113812381200051a0001264b13000d050000000000000000', 'tv/input': '260050000001289214111411141114111411131213361411143614361336143614361436141113361436143614361436131114111411141114111312131114111436143613361436140005170001284914000d050000000000000000', 'tv/ch_up': '260050000001289314111410141114111411141114361410143614361436143514361436141114361435143614111436143614111311141114111411143614101411143614361436140005170001284914000d050000000000000000', 'tv/ch_down': '260050000001279314111411141114111311141114361411143515351436143614361435151014361436143614351436143614111411141114101411141114111411143317351436140005170001284914000d050000000000000000', 'tv/vol_up': '260050000001289214111411141114111411141015351411143614361435153514361436141114351510143614111436143515101411141114361411143514111411143614361435140005180001284616000d050000000000000000', 'tv/vol_down': '260050000001289314111411141015101411141114361411143514361436143614351535141114361411143515351436143614111410151014361411141114101510143614361436140005170001284914000d050000000000000000'}
#L01EX06 topo = int(input()) carta = int(input()) if (topo % 13) == (carta % 13) or carta % 13 == 11: print("True") elif (-12 <= (topo - carta)) and ((topo - carta) <= 12): print("True") else: print("False")
topo = int(input()) carta = int(input()) if topo % 13 == carta % 13 or carta % 13 == 11: print('True') elif -12 <= topo - carta and topo - carta <= 12: print('True') else: print('False')
testcases = int(input()) for _ in range(0, testcases): pc, pr = list(map(int, input().split())) nnm_of_9_pc = pc if pc % 9 == 0 else pc + 9 - (pc % 9) nnm_of_9_pr = pr if pr % 9 == 0 else pr + 9 - (pr % 9) digits_pc = nnm_of_9_pc // 9 digits_pr = nnm_of_9_pr // 9 who_wins = '1' if digits_pc >= digits_pr else '0' min_digit = digits_pc if who_wins == '0' else digits_pr print(who_wins, min_digit)
testcases = int(input()) for _ in range(0, testcases): (pc, pr) = list(map(int, input().split())) nnm_of_9_pc = pc if pc % 9 == 0 else pc + 9 - pc % 9 nnm_of_9_pr = pr if pr % 9 == 0 else pr + 9 - pr % 9 digits_pc = nnm_of_9_pc // 9 digits_pr = nnm_of_9_pr // 9 who_wins = '1' if digits_pc >= digits_pr else '0' min_digit = digits_pc if who_wins == '0' else digits_pr print(who_wins, min_digit)
FACTORY_IGNORE_FIELDS = ['id', 'created', 'modified', 'archived'] FACTORY_INTEGER_FIELDS = [ 'BigIntegerField', 'IntegerField', 'PositiveIntegerField', 'PositiveSmallIntegerField', 'SmallIntegerField', ] FACTORY_FLOAT_FIELDS = [ 'FloatField', 'MoneyField', ] FACTORY_TEXT_FIELDS = [ 'TextField' ] class FactoryMeta(object): """ Meta data to generate factory for a field. Supported field type: Text, CharField, Integer, Float, Boolean. """ code_line: str = None import_libs: [str] = [] required_models: [str] = [] def __init__(self, field=None, model=None): self.field = field self.model = model self.code_line = None self.import_libs = [] self.required_factories = [] def generate_code(self): field_name = self.field.name field_type =self.field.field_type_string if field_name in FACTORY_IGNORE_FIELDS: # skip these fields return if field_type == 'CharField': self.generate_char_field_code() elif field_type in FACTORY_INTEGER_FIELDS: self.generate_integer_field_code() elif field_type in FACTORY_FLOAT_FIELDS: self.generate_float_field_code() elif field_type == 'BooleanField': self.generate_boolean_field_code() elif field_type in FACTORY_TEXT_FIELDS: self.generate_text_field_code() elif field_type == 'DecimalField': self.generate_decimal_field_code() elif field_type == 'DateField': self.add_import_lib(lib='datetime') self.generate_date_field_code() elif field_type == 'DateTimeField': self.add_import_lib(lib='datetime') self.add_import_lib(lib='pytz') self.generate_date_time_field_code() elif field_type == 'ForeignKey': self.generate_foreign_key_code() elif field_type == 'OneToOneField': self.generate_one_to_one_code() def generate_char_field_code(self): # using sequence as default self.code_line = '{} = factories.Sequence(lambda n: \'{} {} %03d\' % n)' \ .format(self.field.name, self.model.object_name, self.field.name) def generate_integer_field_code(self): min_value = self.field.min_value if self.field.min_value is not None else 0 max_value = self.field.max_value if self.field.max_value is not None else 1000 self.code_line = '{} = factories.FuzzyInteger({}, {})' \ .format(self.field.name, min_value, max_value) def generate_float_field_code(self): min_value = self.field.min_value if self.field.min_value is not None else 0.00 max_value = self.field.max_value if self.field.max_value is not None else 1000.00 self.code_line = '{} = factories.FuzzyFloat({}, {})' \ .format(self.field.name, min_value, max_value) def generate_boolean_field_code(self): self.code_line = '{} = factories.Faker(\'pybool\')' \ .format(self.field.name) def generate_text_field_code(self): self.code_line = '{} = factories.Faker(\'sentence\', nb_words=10)' \ .format(self.field.name) def generate_decimal_field_code(self): min_value = self.field.min_value if self.field.min_value is not None else 0.00 max_value = self.field.max_value if self.field.max_value is not None else 1000.00 self.code_line = '{} = factories.FuzzyDecimal({}, {}, {})' \ .format(self.field.name, min_value, max_value, self.field.decimal_places) def generate_date_field_code(self): self.code_line = '{} = factories.FuzzyDate(datetime.date(2020, 1, 1))' \ .format(self.field.name) def generate_date_time_field_code(self): self.code_line = '''{} = factories.FuzzyDateTime( datetime.datetime(2020, 1, 1, tzinfo=pytz.timezone(\'UTC\')) )'''.format(self.field.name) def generate_foreign_key_code(self): if not self.field.self_related: # add require factory self.add_required_factory( app_name=self.field.related_model_meta.app_label, model_name=self.field.related_model_meta.object_name, ) self.code_line = '{} = factories.SubFactory({})' \ .format( self.field.name, f'{self.field.related_model_meta.object_name}Factory' ) return self.code_line = '{} = None'.format(self.field.name) def generate_one_to_one_code(self): return self.generate_foreign_key_code() def add_import_lib(self, lib): import_line = None if lib == 'datetime': import_line = 'import datetime' elif lib == 'pytz': import_line = 'import pytz' if import_line is not None and import_line not in self.import_libs: self.import_libs.append(import_line) def add_required_factory(self, app_name, model_name): import_line = 'from {}.factories import {}Factory' \ .format(app_name, model_name) if import_line not in self.required_factories: self.required_factories.append(import_line)
factory_ignore_fields = ['id', 'created', 'modified', 'archived'] factory_integer_fields = ['BigIntegerField', 'IntegerField', 'PositiveIntegerField', 'PositiveSmallIntegerField', 'SmallIntegerField'] factory_float_fields = ['FloatField', 'MoneyField'] factory_text_fields = ['TextField'] class Factorymeta(object): """ Meta data to generate factory for a field. Supported field type: Text, CharField, Integer, Float, Boolean. """ code_line: str = None import_libs: [str] = [] required_models: [str] = [] def __init__(self, field=None, model=None): self.field = field self.model = model self.code_line = None self.import_libs = [] self.required_factories = [] def generate_code(self): field_name = self.field.name field_type = self.field.field_type_string if field_name in FACTORY_IGNORE_FIELDS: return if field_type == 'CharField': self.generate_char_field_code() elif field_type in FACTORY_INTEGER_FIELDS: self.generate_integer_field_code() elif field_type in FACTORY_FLOAT_FIELDS: self.generate_float_field_code() elif field_type == 'BooleanField': self.generate_boolean_field_code() elif field_type in FACTORY_TEXT_FIELDS: self.generate_text_field_code() elif field_type == 'DecimalField': self.generate_decimal_field_code() elif field_type == 'DateField': self.add_import_lib(lib='datetime') self.generate_date_field_code() elif field_type == 'DateTimeField': self.add_import_lib(lib='datetime') self.add_import_lib(lib='pytz') self.generate_date_time_field_code() elif field_type == 'ForeignKey': self.generate_foreign_key_code() elif field_type == 'OneToOneField': self.generate_one_to_one_code() def generate_char_field_code(self): self.code_line = "{} = factories.Sequence(lambda n: '{} {} %03d' % n)".format(self.field.name, self.model.object_name, self.field.name) def generate_integer_field_code(self): min_value = self.field.min_value if self.field.min_value is not None else 0 max_value = self.field.max_value if self.field.max_value is not None else 1000 self.code_line = '{} = factories.FuzzyInteger({}, {})'.format(self.field.name, min_value, max_value) def generate_float_field_code(self): min_value = self.field.min_value if self.field.min_value is not None else 0.0 max_value = self.field.max_value if self.field.max_value is not None else 1000.0 self.code_line = '{} = factories.FuzzyFloat({}, {})'.format(self.field.name, min_value, max_value) def generate_boolean_field_code(self): self.code_line = "{} = factories.Faker('pybool')".format(self.field.name) def generate_text_field_code(self): self.code_line = "{} = factories.Faker('sentence', nb_words=10)".format(self.field.name) def generate_decimal_field_code(self): min_value = self.field.min_value if self.field.min_value is not None else 0.0 max_value = self.field.max_value if self.field.max_value is not None else 1000.0 self.code_line = '{} = factories.FuzzyDecimal({}, {}, {})'.format(self.field.name, min_value, max_value, self.field.decimal_places) def generate_date_field_code(self): self.code_line = '{} = factories.FuzzyDate(datetime.date(2020, 1, 1))'.format(self.field.name) def generate_date_time_field_code(self): self.code_line = "{} = factories.FuzzyDateTime(\n datetime.datetime(2020, 1, 1, tzinfo=pytz.timezone('UTC'))\n )".format(self.field.name) def generate_foreign_key_code(self): if not self.field.self_related: self.add_required_factory(app_name=self.field.related_model_meta.app_label, model_name=self.field.related_model_meta.object_name) self.code_line = '{} = factories.SubFactory({})'.format(self.field.name, f'{self.field.related_model_meta.object_name}Factory') return self.code_line = '{} = None'.format(self.field.name) def generate_one_to_one_code(self): return self.generate_foreign_key_code() def add_import_lib(self, lib): import_line = None if lib == 'datetime': import_line = 'import datetime' elif lib == 'pytz': import_line = 'import pytz' if import_line is not None and import_line not in self.import_libs: self.import_libs.append(import_line) def add_required_factory(self, app_name, model_name): import_line = 'from {}.factories import {}Factory'.format(app_name, model_name) if import_line not in self.required_factories: self.required_factories.append(import_line)
elements = { 'login_page': { 'input_email': '//*[@id="ap_email"]', 'btn_continue': '//*[@id="continue"]', 'input_password': '//*[@id="ap_password"]', 'btn_login': '//*[@id="signInSubmit"]' }, 'header_confirm': '/html/body/div[1]/header/div/div[1]/div[3]/div/a[1]/div/span', 'bnt_buy_one_click': '/html/body/div[1]/div[2]/div[1]/div[2]/div/span[4]/div[1]/div[{0}]/div/span/div/div/div[2]/div[2]/div/div[2]/div[1]/div/div[2]/div/span/span/a', 'title_ebook': '/html/body/div[1]/div[2]/div[1]/div[2]/div/span[3]/div[2]/div[{0}]/div/span/div/div/div[2]/div[2]/div/div[1]/div/div/div[1]/h2/a/span', 'img_ebook': '/html/body/div[1]/div[2]/div[1]/div[2]/div/span[4]/div[1]/div[{0}]/div/span/div/div/div[2]/div[1]/div/div/span/a/div', 'btn_next_page': 'a-last', 'if_bought': '/html/body/div[1]/div[3]/div/div/div/p[3]', 'btn_buy': 'one-click-button', 'name_ebook': '/html/body/div[1]/div[2]/div[2]/div/div/div[1]/div/div[1]/div[1]/div[1]/div/div/div[1]/span[1]', 'confirm_message': '/html/body/div[1]/div[2]/div[2]/div/div/div[1]/div/div[1]/div[1]/div[1]/div/div/div[1]/span[2]', 'confirm_bought': '/html/body/div[2]/div[2]/div[3]/div[2]/div/div/div/div/div/div/span' }
elements = {'login_page': {'input_email': '//*[@id="ap_email"]', 'btn_continue': '//*[@id="continue"]', 'input_password': '//*[@id="ap_password"]', 'btn_login': '//*[@id="signInSubmit"]'}, 'header_confirm': '/html/body/div[1]/header/div/div[1]/div[3]/div/a[1]/div/span', 'bnt_buy_one_click': '/html/body/div[1]/div[2]/div[1]/div[2]/div/span[4]/div[1]/div[{0}]/div/span/div/div/div[2]/div[2]/div/div[2]/div[1]/div/div[2]/div/span/span/a', 'title_ebook': '/html/body/div[1]/div[2]/div[1]/div[2]/div/span[3]/div[2]/div[{0}]/div/span/div/div/div[2]/div[2]/div/div[1]/div/div/div[1]/h2/a/span', 'img_ebook': '/html/body/div[1]/div[2]/div[1]/div[2]/div/span[4]/div[1]/div[{0}]/div/span/div/div/div[2]/div[1]/div/div/span/a/div', 'btn_next_page': 'a-last', 'if_bought': '/html/body/div[1]/div[3]/div/div/div/p[3]', 'btn_buy': 'one-click-button', 'name_ebook': '/html/body/div[1]/div[2]/div[2]/div/div/div[1]/div/div[1]/div[1]/div[1]/div/div/div[1]/span[1]', 'confirm_message': '/html/body/div[1]/div[2]/div[2]/div/div/div[1]/div/div[1]/div[1]/div[1]/div/div/div[1]/span[2]', 'confirm_bought': '/html/body/div[2]/div[2]/div[3]/div[2]/div/div/div/div/div/div/span'}
""" Implement the following operations of a queue using stacks. push(x) -- Push element x to the back of queue. pop() -- Removes the element from in front of queue. peek() -- Get the front element. empty() -- Return whether the queue is empty. Notes: You must use only standard operations of a stack -- which means only push to top, peek/pop from top, size, and is empty operations are valid. Depending on your language, stack may not be supported natively. You may simulate a stack by using a list or deque (double-ended queue), as long as you use only standard operations of a stack. You may assume that all operations are valid (for example, no pop or peek operations will be called on an empty queue). """ class Queue(object): def __init__(self): """ initialize your data structure here. """ self.inStack=[] self.outStack=[] def push(self, x): """ :type x: int :rtype: nothing """ self.inStack.append(x) def pop(self): """ :rtype: nothing """ self.peek() self.outStack.pop() def peek(self): """ :rtype: int """ if not self.inStack(): while self.inStack: self.inStack.append(self.outStack.pop()) return self.outStack[-1] def empty(self): """ :rtype: bool """ return len(self.inStack)+len(self.outStack)==0
""" Implement the following operations of a queue using stacks. push(x) -- Push element x to the back of queue. pop() -- Removes the element from in front of queue. peek() -- Get the front element. empty() -- Return whether the queue is empty. Notes: You must use only standard operations of a stack -- which means only push to top, peek/pop from top, size, and is empty operations are valid. Depending on your language, stack may not be supported natively. You may simulate a stack by using a list or deque (double-ended queue), as long as you use only standard operations of a stack. You may assume that all operations are valid (for example, no pop or peek operations will be called on an empty queue). """ class Queue(object): def __init__(self): """ initialize your data structure here. """ self.inStack = [] self.outStack = [] def push(self, x): """ :type x: int :rtype: nothing """ self.inStack.append(x) def pop(self): """ :rtype: nothing """ self.peek() self.outStack.pop() def peek(self): """ :rtype: int """ if not self.inStack(): while self.inStack: self.inStack.append(self.outStack.pop()) return self.outStack[-1] def empty(self): """ :rtype: bool """ return len(self.inStack) + len(self.outStack) == 0
valor_real = float(input("\033[1;30mDigite o valor na carteira?\033[m \033[1;32mR$\033[m")) dolares = valor_real / 3.27 print("\033[1;37mO valor\033[m \033[1;32mR$: {0:.2f} reais\033[m \033[1;37mpode comprar\033[m \033[1;32mUSD$: {1:.2f} dolares\033[m \033[1;37m!\033[m".format(valor_real, dolares))
valor_real = float(input('\x1b[1;30mDigite o valor na carteira?\x1b[m \x1b[1;32mR$\x1b[m')) dolares = valor_real / 3.27 print('\x1b[1;37mO valor\x1b[m \x1b[1;32mR$: {0:.2f} reais\x1b[m \x1b[1;37mpode comprar\x1b[m \x1b[1;32mUSD$: {1:.2f} dolares\x1b[m \x1b[1;37m!\x1b[m'.format(valor_real, dolares))
# Problem 026 - Reciprocal cycles """ Note: This task could be solved faster by looping over a list of all cyclic prime numbers. But then cycle_length would be easier to write """ def generate_decimal_iterator(denominator): numerator = 10 while numerator != 0: yield numerator // denominator numerator = (numerator % denominator) * 10 # Now working on every possible number def cycle_length_brute_force(n): last_position = {} position = 1 dividend = 1 while True: remainder = dividend % n if remainder == 0: return 0 if remainder in last_position: return position - last_position[remainder] last_position[remainder] = position position += 1 dividend = remainder * 10 def solution(): max_n = (0, 0) # number, count for i in range(1, 1000): count = cycle_length_brute_force(i) if max_n[1] < count: max_n = (i, count) print(max_n) if __name__ == "__main__": solution()
""" Note: This task could be solved faster by looping over a list of all cyclic prime numbers. But then cycle_length would be easier to write """ def generate_decimal_iterator(denominator): numerator = 10 while numerator != 0: yield (numerator // denominator) numerator = numerator % denominator * 10 def cycle_length_brute_force(n): last_position = {} position = 1 dividend = 1 while True: remainder = dividend % n if remainder == 0: return 0 if remainder in last_position: return position - last_position[remainder] last_position[remainder] = position position += 1 dividend = remainder * 10 def solution(): max_n = (0, 0) for i in range(1, 1000): count = cycle_length_brute_force(i) if max_n[1] < count: max_n = (i, count) print(max_n) if __name__ == '__main__': solution()
class Node: def __init__(self,val=None,nxt=None,prev=None): self.val = val self.nxt = nxt self.prev = prev class LL: def __init__(self): self.head = Node() self.tail = Node() self.head.nxt = self.tail self.tail.prev = self.head def find(self,val): cur = self.head.nxt while cur != self.tail: if cur.val == val: return cur cur = cur.nxt return None def append(self,val): new_node = Node(val,self.tail,self.tail.prev) self.tail.prev.nxt = new_node self.tail.prev = new_node def remove(self,val): node = self.find(val) if node is not None: node.prev.nxt = node.nxt node.nxt.prev = node.prev return node return None class CustomSet: def __init__(self): self.table_size = 1024 self.table = [None]*self.table_size self.max_load_factor = 0.5 self.items = 0 def get_index(self,val,table_size): return hash(str(val))%table_size def grow(self): new_table_size = self.table_size * 2 new_table = [None]*new_table_size for i in range(self.table_size): if not self.table[i]: continue cur_LL = self.table[i] cur = cur_LL.head.nxt while cur != cur_LL.tail: index = self.get_index(cur.val,new_table_size) if not new_table[index]: new_table[index] = LL() new_table[index].append(cur.val) cur = cur.nxt self.table = new_table self.table_size = new_table_size def add(self, val): if self.items/self.table_size > self.max_load_factor: self.grow() index = self.get_index(val,self.table_size) if not self.table[index]: self.table[index] = LL() cur_LL = self.table[index] node = cur_LL.find(val) if node: node.val = val else: cur_LL.append(val) self.items += 1 def exists(self, val): index = self.get_index(val,self.table_size) if not self.table[index]: return False node = self.table[index].find(val) return node is not None def remove(self, val): index = self.get_index(val,self.table_size) if not self.table[index]: return node = self.table[index].remove(val) if node: self.items -= 1
class Node: def __init__(self, val=None, nxt=None, prev=None): self.val = val self.nxt = nxt self.prev = prev class Ll: def __init__(self): self.head = node() self.tail = node() self.head.nxt = self.tail self.tail.prev = self.head def find(self, val): cur = self.head.nxt while cur != self.tail: if cur.val == val: return cur cur = cur.nxt return None def append(self, val): new_node = node(val, self.tail, self.tail.prev) self.tail.prev.nxt = new_node self.tail.prev = new_node def remove(self, val): node = self.find(val) if node is not None: node.prev.nxt = node.nxt node.nxt.prev = node.prev return node return None class Customset: def __init__(self): self.table_size = 1024 self.table = [None] * self.table_size self.max_load_factor = 0.5 self.items = 0 def get_index(self, val, table_size): return hash(str(val)) % table_size def grow(self): new_table_size = self.table_size * 2 new_table = [None] * new_table_size for i in range(self.table_size): if not self.table[i]: continue cur_ll = self.table[i] cur = cur_LL.head.nxt while cur != cur_LL.tail: index = self.get_index(cur.val, new_table_size) if not new_table[index]: new_table[index] = ll() new_table[index].append(cur.val) cur = cur.nxt self.table = new_table self.table_size = new_table_size def add(self, val): if self.items / self.table_size > self.max_load_factor: self.grow() index = self.get_index(val, self.table_size) if not self.table[index]: self.table[index] = ll() cur_ll = self.table[index] node = cur_LL.find(val) if node: node.val = val else: cur_LL.append(val) self.items += 1 def exists(self, val): index = self.get_index(val, self.table_size) if not self.table[index]: return False node = self.table[index].find(val) return node is not None def remove(self, val): index = self.get_index(val, self.table_size) if not self.table[index]: return node = self.table[index].remove(val) if node: self.items -= 1
class Solution: def findUnsortedSubarray(self, nums): """ :type nums: List[int] :rtype: int """ sorted_nums = sorted(nums) start = 0 end = len(nums) - 1 while start <= end and nums[start] == sorted_nums[start]: start += 1 while end >= start and nums[end] == sorted_nums[end]: end -= 1 return end - start + 1
class Solution: def find_unsorted_subarray(self, nums): """ :type nums: List[int] :rtype: int """ sorted_nums = sorted(nums) start = 0 end = len(nums) - 1 while start <= end and nums[start] == sorted_nums[start]: start += 1 while end >= start and nums[end] == sorted_nums[end]: end -= 1 return end - start + 1
# Letter Combinations of a Phone Number # ttungl@gmail.com class Solution(object): def letterCombinations(self, digits): """ :type digits: str :rtype: List[str] """ # sol 1 d = {'2': 'abc', '3':'def', '4':'ghi', '5':'jkl', '6': 'mno', '7':'pqrs', '8':'tuv', '9':'wxyz'} if len(digits)==0: return [] return [a+b for a in self.letterCombinations(digits[:-1]) for b in self.letterCombinations(digits[-1])] or list(d[digits]) # sol 2 # recursion d = {'2': 'abc', '3':'def', '4':'ghi', '5':'jkl', '6': 'mno', '7':'pqrs', '8':'tuv', '9':'wxyz'} return [a+b for a in d.get(digits[:1], []) for b in self.letterCombinations(digits[1:]) or ['']] or [] # sol 3 # backtracking DFS d = {'2': 'abc', '3':'def', '4':'ghi', '5':'jkl', '6': 'mno', '7':'pqrs', '8':'tuv', '9':'wxyz'} res = [] if len(digits)==0: return res def DFS(digits, d, idx, path, res): if len(path)==len(digits): res.append(path) return [ DFS(digits, d, i+1, path+j, res) for i in xrange(idx, len(digits)) for j in d[digits[i]] ] DFS(digits, d, 0, "", res) return res
class Solution(object): def letter_combinations(self, digits): """ :type digits: str :rtype: List[str] """ d = {'2': 'abc', '3': 'def', '4': 'ghi', '5': 'jkl', '6': 'mno', '7': 'pqrs', '8': 'tuv', '9': 'wxyz'} if len(digits) == 0: return [] return [a + b for a in self.letterCombinations(digits[:-1]) for b in self.letterCombinations(digits[-1])] or list(d[digits]) d = {'2': 'abc', '3': 'def', '4': 'ghi', '5': 'jkl', '6': 'mno', '7': 'pqrs', '8': 'tuv', '9': 'wxyz'} return [a + b for a in d.get(digits[:1], []) for b in self.letterCombinations(digits[1:]) or ['']] or [] d = {'2': 'abc', '3': 'def', '4': 'ghi', '5': 'jkl', '6': 'mno', '7': 'pqrs', '8': 'tuv', '9': 'wxyz'} res = [] if len(digits) == 0: return res def dfs(digits, d, idx, path, res): if len(path) == len(digits): res.append(path) return [dfs(digits, d, i + 1, path + j, res) for i in xrange(idx, len(digits)) for j in d[digits[i]]] dfs(digits, d, 0, '', res) return res
p1 = 0.49 p2 = 0.38 p3 = 0.1 p4 = 0.03 p = p1 * p1 + p1 * p2 + p1 * p3 + p1 * p4 + p2 * p2 + p2 * p4 + p3 * p3 + p3 * p4 + p4 * p4 print(p) print(10 * 0.2 * 0.8 ** 9)
p1 = 0.49 p2 = 0.38 p3 = 0.1 p4 = 0.03 p = p1 * p1 + p1 * p2 + p1 * p3 + p1 * p4 + p2 * p2 + p2 * p4 + p3 * p3 + p3 * p4 + p4 * p4 print(p) print(10 * 0.2 * 0.8 ** 9)
class Developer: DUNDY = 321730481903370240 ADM = 600443374587346989 TEMPLAR = 108281077319077888 GHOSTRIDER = 846009958062358548
class Developer: dundy = 321730481903370240 adm = 600443374587346989 templar = 108281077319077888 ghostrider = 846009958062358548
def computeParameterValue(sources): mapping = {} for idx, source in enumerate(sources): for kv in source: k, v = kv.split(":") mapping[k] = v results = [] for key in mapping: results.append(mapping[key]) return results
def compute_parameter_value(sources): mapping = {} for (idx, source) in enumerate(sources): for kv in source: (k, v) = kv.split(':') mapping[k] = v results = [] for key in mapping: results.append(mapping[key]) return results
#coding=utf-8 ''' Created on 2014-1-5 @author: zhangtiande '''
""" Created on 2014-1-5 @author: zhangtiande """
for _ in range(int(input())): n = int(input()) temp = list(map(int, input().split())) c = 0 for i in range(n-1): temp2 = list(map(int, input().split())) if c==0: for j in range(n-1): if temp[j]==1 and (temp[j+1]==1 or temp2[j]==1): c=1 temp = temp2 if c: print('UNSAFE') else: print('SAFE')
for _ in range(int(input())): n = int(input()) temp = list(map(int, input().split())) c = 0 for i in range(n - 1): temp2 = list(map(int, input().split())) if c == 0: for j in range(n - 1): if temp[j] == 1 and (temp[j + 1] == 1 or temp2[j] == 1): c = 1 temp = temp2 if c: print('UNSAFE') else: print('SAFE')
class OperatingSystemNotSupported(Exception): def __init__(self, operating_system: str) -> None: self._operating_system = operating_system message = f"operating system not supported - {operating_system}" super().__init__(message) @property def operating_system(self) -> str: return self._operating_system @operating_system.setter def operating_system(self, new_operating_system: str) -> None: self._operating_system = new_operating_system
class Operatingsystemnotsupported(Exception): def __init__(self, operating_system: str) -> None: self._operating_system = operating_system message = f'operating system not supported - {operating_system}' super().__init__(message) @property def operating_system(self) -> str: return self._operating_system @operating_system.setter def operating_system(self, new_operating_system: str) -> None: self._operating_system = new_operating_system
"""restructuredtext (rst) documentation support """ __import__("pkg_resources").declare_namespace(__name__) __version__ = "1.8.1"
"""restructuredtext (rst) documentation support """ __import__('pkg_resources').declare_namespace(__name__) __version__ = '1.8.1'
money = int(input()) cake = money * 0.2 drinks = cake - 0.45 * cake animator = 1/3 * money price = money + cake + drinks + animator print (price)
money = int(input()) cake = money * 0.2 drinks = cake - 0.45 * cake animator = 1 / 3 * money price = money + cake + drinks + animator print(price)
class Solution: def closeStrings(self, word1: str, word2: str) -> bool: if len(word1)!=len(word2): return False show1=[0]*26 show2=[0]*26 for i in range(len(word1)): show1[ord(word1[i])-ord('a')]+=1 show2[ord(word2[i])-ord('a')]+=1 show1Char={} show2Char={} for i in range(len(show1)): if (show1[i]==0 and show2[i]!=0) or (show1[i]!=0 and show2[i]==0): return False if show1[i] not in show1Char: show1Char[show1[i]]=0 show1Char[show1[i]]+=1 if show2[i] not in show2Char: show2Char[show2[i]]=0 show2Char[show2[i]]+=1 for k,v in show1Char.items(): if k not in show2Char: return False if show2Char[k]!=v: return False return True
class Solution: def close_strings(self, word1: str, word2: str) -> bool: if len(word1) != len(word2): return False show1 = [0] * 26 show2 = [0] * 26 for i in range(len(word1)): show1[ord(word1[i]) - ord('a')] += 1 show2[ord(word2[i]) - ord('a')] += 1 show1_char = {} show2_char = {} for i in range(len(show1)): if show1[i] == 0 and show2[i] != 0 or (show1[i] != 0 and show2[i] == 0): return False if show1[i] not in show1Char: show1Char[show1[i]] = 0 show1Char[show1[i]] += 1 if show2[i] not in show2Char: show2Char[show2[i]] = 0 show2Char[show2[i]] += 1 for (k, v) in show1Char.items(): if k not in show2Char: return False if show2Char[k] != v: return False return True
""" File: largest_digit.py Name: ---------------------------------- This file recursively prints the biggest digit in 5 different integers, 12345, 281, 6, -111, -9453 If your implementation is correct, you should see 5, 8, 6, 1, 9 on Console. """ def main(): print(find_largest_digit(12345)) # 5 print(find_largest_digit(281)) # 8 print(find_largest_digit(6)) # 6 print(find_largest_digit(-111)) # 1 print(find_largest_digit(-9453)) # 9 def find_largest_digit(n): """ :param n: int, a number to search for the largest digit :return: int, the largest digit """ if n < 0: n *= -1 largest = helper(n, 0) return largest def helper(num, largest): """ :param num: int, a positive number to search for the largest digit :param largest: int, to store the largest digit :return: int, the largest digit TODO: Use num - num // 10 * 10 to find the number of each digit and use the largest variable to store it. """ # base case if 10 > num >= largest: return num # base case elif num <= largest: return largest else: if num - num // 10 * 10 > largest: largest = num - num // 10 * 10 num = num // 10 return helper(num, largest) if __name__ == '__main__': main()
""" File: largest_digit.py Name: ---------------------------------- This file recursively prints the biggest digit in 5 different integers, 12345, 281, 6, -111, -9453 If your implementation is correct, you should see 5, 8, 6, 1, 9 on Console. """ def main(): print(find_largest_digit(12345)) print(find_largest_digit(281)) print(find_largest_digit(6)) print(find_largest_digit(-111)) print(find_largest_digit(-9453)) def find_largest_digit(n): """ :param n: int, a number to search for the largest digit :return: int, the largest digit """ if n < 0: n *= -1 largest = helper(n, 0) return largest def helper(num, largest): """ :param num: int, a positive number to search for the largest digit :param largest: int, to store the largest digit :return: int, the largest digit TODO: Use num - num // 10 * 10 to find the number of each digit and use the largest variable to store it. """ if 10 > num >= largest: return num elif num <= largest: return largest else: if num - num // 10 * 10 > largest: largest = num - num // 10 * 10 num = num // 10 return helper(num, largest) if __name__ == '__main__': main()
# file grafo.py class Grafo: def __init__(self, es_dirigido = False, vertices_init = []): self.vertices = {} for v in vertices_init: self.vertices[v] = {} self.es_dirigido = es_dirigido def __contains__(self, v): return v in self.vertices def __len__(self): return len(self.vertices) def __iter__(self): return iter(self.vertices) def agregar_vertice(self, v): if v in self: raise ValueError("Ya hay un vertice " + str(v) + " en el grafo") self.vertices[v] = {} def _validar_vertice(self, v): if v not in self: raise ValueError("No hay un vertice " + str(v) + " en el grafo") def _validar_vertices(self, v, w): self._validar_vertice(v) self._validar_vertice(w) def borrar_vertice(self, v): self._validar_vertice(v) for w in self: if v in self.vertices[w]: del self.vertices[w][v] del self.vertices[v] def agregar_arista(self, v, w, peso = 1): self._validar_vertices(v, w) if self.estan_unidos(v, w): raise ValueError("El vertice " + str(v) + " ya tiene como adyacente al vertice " + str(w)) self.vertices[v][w] = peso if not self.es_dirigido: self.vertices[w][v] = peso def borrar_arista(self, v, w): self._validar_vertices(v, w) if not self.estan_unidos(v, w): raise ValueError("El vertice " + str(v) + " no tiene como adyacente al vertice " + str(w)) del self.vertices[v][w] if not self.es_dirigido: del self.vertices[w][v] def estan_unidos(self, v, w): return w in self.vertices[v] def peso_arista(self, v, w): if not self.estan_unidos(v, w): raise ValueError("El vertice " + str(v) + " no tiene como adyacente al vertice " + str(w)) return self.vertices[v][w] def obtener_vertices(self): return list(self.vertices.keys()) def vertice_aleatorio(self): return self.obtener_vertices()[0] def adyacentes(self, v): self._validar_vertice(v) return list(self.vertices[v].keys()) def __str__(self): cad = "" for v in self: cad += v for w in self.adyacentes(v): cad += " -> " + w cad += "\n" return cad
class Grafo: def __init__(self, es_dirigido=False, vertices_init=[]): self.vertices = {} for v in vertices_init: self.vertices[v] = {} self.es_dirigido = es_dirigido def __contains__(self, v): return v in self.vertices def __len__(self): return len(self.vertices) def __iter__(self): return iter(self.vertices) def agregar_vertice(self, v): if v in self: raise value_error('Ya hay un vertice ' + str(v) + ' en el grafo') self.vertices[v] = {} def _validar_vertice(self, v): if v not in self: raise value_error('No hay un vertice ' + str(v) + ' en el grafo') def _validar_vertices(self, v, w): self._validar_vertice(v) self._validar_vertice(w) def borrar_vertice(self, v): self._validar_vertice(v) for w in self: if v in self.vertices[w]: del self.vertices[w][v] del self.vertices[v] def agregar_arista(self, v, w, peso=1): self._validar_vertices(v, w) if self.estan_unidos(v, w): raise value_error('El vertice ' + str(v) + ' ya tiene como adyacente al vertice ' + str(w)) self.vertices[v][w] = peso if not self.es_dirigido: self.vertices[w][v] = peso def borrar_arista(self, v, w): self._validar_vertices(v, w) if not self.estan_unidos(v, w): raise value_error('El vertice ' + str(v) + ' no tiene como adyacente al vertice ' + str(w)) del self.vertices[v][w] if not self.es_dirigido: del self.vertices[w][v] def estan_unidos(self, v, w): return w in self.vertices[v] def peso_arista(self, v, w): if not self.estan_unidos(v, w): raise value_error('El vertice ' + str(v) + ' no tiene como adyacente al vertice ' + str(w)) return self.vertices[v][w] def obtener_vertices(self): return list(self.vertices.keys()) def vertice_aleatorio(self): return self.obtener_vertices()[0] def adyacentes(self, v): self._validar_vertice(v) return list(self.vertices[v].keys()) def __str__(self): cad = '' for v in self: cad += v for w in self.adyacentes(v): cad += ' -> ' + w cad += '\n' return cad
# # PySNMP MIB module NBS-SIGCOND-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NBS-SIGCOND-MIB # Produced by pysmi-0.3.4 at Wed May 1 14:17:38 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") ConstraintsUnion, ValueSizeConstraint, SingleValueConstraint, ValueRangeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueSizeConstraint", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsIntersection") nbs, = mibBuilder.importSymbols("NBS-CMMC-MIB", "nbs") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") IpAddress, MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, Bits, Integer32, MibIdentifier, Gauge32, NotificationType, Unsigned32, iso, Counter64, Counter32, ModuleIdentity, ObjectIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "IpAddress", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks", "Bits", "Integer32", "MibIdentifier", "Gauge32", "NotificationType", "Unsigned32", "iso", "Counter64", "Counter32", "ModuleIdentity", "ObjectIdentity") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") nbsSigCondMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 629, 227)) if mibBuilder.loadTexts: nbsSigCondMib.setLastUpdated('201111300000Z') if mibBuilder.loadTexts: nbsSigCondMib.setOrganization('NBS') if mibBuilder.loadTexts: nbsSigCondMib.setContactInfo('For technical support, please contact your service channel') if mibBuilder.loadTexts: nbsSigCondMib.setDescription('Signal Conditioning mib') class InterfaceIndex(Integer32): pass nbsSigCondVoaPortGrp = ObjectIdentity((1, 3, 6, 1, 4, 1, 629, 227, 1)) if mibBuilder.loadTexts: nbsSigCondVoaPortGrp.setStatus('current') if mibBuilder.loadTexts: nbsSigCondVoaPortGrp.setDescription('Variable Optical Attenuation at the port level.') nbsSigCondVoaFlowGrp = ObjectIdentity((1, 3, 6, 1, 4, 1, 629, 227, 2)) if mibBuilder.loadTexts: nbsSigCondVoaFlowGrp.setStatus('current') if mibBuilder.loadTexts: nbsSigCondVoaFlowGrp.setDescription('Variable Optical Attenuation at the port.frequency.direction level.') nbsSigCondRamanGrp = ObjectIdentity((1, 3, 6, 1, 4, 1, 629, 227, 3)) if mibBuilder.loadTexts: nbsSigCondRamanGrp.setStatus('current') if mibBuilder.loadTexts: nbsSigCondRamanGrp.setDescription('Raman amplifier information for the port.') nbsSigCondPortGrp = ObjectIdentity((1, 3, 6, 1, 4, 1, 629, 227, 100)) if mibBuilder.loadTexts: nbsSigCondPortGrp.setStatus('current') if mibBuilder.loadTexts: nbsSigCondPortGrp.setDescription('Power readings from the port.') nbsSigCondTraps = ObjectIdentity((1, 3, 6, 1, 4, 1, 629, 227, 200)) if mibBuilder.loadTexts: nbsSigCondTraps.setStatus('current') if mibBuilder.loadTexts: nbsSigCondTraps.setDescription('SNMP Traps or Notifications') nbsSigCondTrap0 = ObjectIdentity((1, 3, 6, 1, 4, 1, 629, 227, 200, 0)) if mibBuilder.loadTexts: nbsSigCondTrap0.setStatus('current') if mibBuilder.loadTexts: nbsSigCondTrap0.setDescription('SNMP Traps or Notifications') nbsSigCondVoaPortTableSize = MibScalar((1, 3, 6, 1, 4, 1, 629, 227, 1, 1), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nbsSigCondVoaPortTableSize.setStatus('current') if mibBuilder.loadTexts: nbsSigCondVoaPortTableSize.setDescription('The number of ports supporting variable optical attenuation at the port level.') nbsSigCondVoaPortTable = MibTable((1, 3, 6, 1, 4, 1, 629, 227, 1, 2), ) if mibBuilder.loadTexts: nbsSigCondVoaPortTable.setStatus('current') if mibBuilder.loadTexts: nbsSigCondVoaPortTable.setDescription('List of ports supporting variable optical attenuation at the port level.') nbsSigCondVoaPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 629, 227, 1, 2, 1), ).setIndexNames((0, "NBS-SIGCOND-MIB", "nbsSigCondVoaPortIfIndex")) if mibBuilder.loadTexts: nbsSigCondVoaPortEntry.setStatus('current') if mibBuilder.loadTexts: nbsSigCondVoaPortEntry.setDescription('') nbsSigCondVoaPortIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 227, 1, 2, 1, 1), InterfaceIndex()) if mibBuilder.loadTexts: nbsSigCondVoaPortIfIndex.setStatus('current') if mibBuilder.loadTexts: nbsSigCondVoaPortIfIndex.setDescription('The Mib2 ifIndex of the attenuable port.') nbsSigCondVoaPortRxAttenuAdmin = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 227, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-100000, 100000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: nbsSigCondVoaPortRxAttenuAdmin.setStatus('current') if mibBuilder.loadTexts: nbsSigCondVoaPortRxAttenuAdmin.setDescription('Persistent and immediately updated. User-requested attenuation to be applied to received signal, expressed in millidecibels (mdB). Not supported value: -200000') nbsSigCondVoaPortRxAttenuOper = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 227, 1, 2, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nbsSigCondVoaPortRxAttenuOper.setStatus('current') if mibBuilder.loadTexts: nbsSigCondVoaPortRxAttenuOper.setDescription('Attenuation actually being applied to received signal, in millidecibels (mdB). Not supported value: -200000') nbsSigCondVoaPortTxAttenuAdmin = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 227, 1, 2, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-100000, 100000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: nbsSigCondVoaPortTxAttenuAdmin.setStatus('current') if mibBuilder.loadTexts: nbsSigCondVoaPortTxAttenuAdmin.setDescription('Persistent and immediately updated. User-requested attenuation to be applied before transmitting signal, expressed in millidecibels (mdB). Not supported value: -200000') nbsSigCondVoaPortTxAttenuOper = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 227, 1, 2, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nbsSigCondVoaPortTxAttenuOper.setStatus('current') if mibBuilder.loadTexts: nbsSigCondVoaPortTxAttenuOper.setDescription('Attenuation actually being applied before transmitting signal, in millidecibels (mdB). Not supported value: -200000') nbsSigCondVoaFlowTableSize = MibScalar((1, 3, 6, 1, 4, 1, 629, 227, 2, 1), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nbsSigCondVoaFlowTableSize.setStatus('current') if mibBuilder.loadTexts: nbsSigCondVoaFlowTableSize.setDescription('The number of attenuable flows in this system.') nbsSigCondVoaFlowTable = MibTable((1, 3, 6, 1, 4, 1, 629, 227, 2, 2), ) if mibBuilder.loadTexts: nbsSigCondVoaFlowTable.setStatus('current') if mibBuilder.loadTexts: nbsSigCondVoaFlowTable.setDescription('Table of attenuable flows.') nbsSigCondVoaFlowEntry = MibTableRow((1, 3, 6, 1, 4, 1, 629, 227, 2, 2, 1), ).setIndexNames((0, "NBS-SIGCOND-MIB", "nbsSigCondVoaFlowIfIndex"), (0, "NBS-SIGCOND-MIB", "nbsSigCondVoaFlowWavelength"), (0, "NBS-SIGCOND-MIB", "nbsSigCondVoaFlowDirection")) if mibBuilder.loadTexts: nbsSigCondVoaFlowEntry.setStatus('current') if mibBuilder.loadTexts: nbsSigCondVoaFlowEntry.setDescription('Reports status of monitored frequencies.') nbsSigCondVoaFlowIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 227, 2, 2, 1, 1), InterfaceIndex()) if mibBuilder.loadTexts: nbsSigCondVoaFlowIfIndex.setStatus('current') if mibBuilder.loadTexts: nbsSigCondVoaFlowIfIndex.setDescription('The Mib2 ifIndex of the optical spectrum analyzer port') nbsSigCondVoaFlowWavelength = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 227, 2, 2, 1, 2), Integer32()) if mibBuilder.loadTexts: nbsSigCondVoaFlowWavelength.setStatus('current') if mibBuilder.loadTexts: nbsSigCondVoaFlowWavelength.setDescription('The nominal wavelength, in picometers, of this channel.') nbsSigCondVoaFlowDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 227, 2, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("rx", 1), ("tx", 2)))) if mibBuilder.loadTexts: nbsSigCondVoaFlowDirection.setStatus('current') if mibBuilder.loadTexts: nbsSigCondVoaFlowDirection.setDescription('Third index of table. The value rx(1) indicates the received signal, and tx(2) indicates the transmitted signal.') nbsSigCondVoaFlowAttenuAdmin = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 227, 2, 2, 1, 4), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: nbsSigCondVoaFlowAttenuAdmin.setStatus('current') if mibBuilder.loadTexts: nbsSigCondVoaFlowAttenuAdmin.setDescription('Persistent and immediately updated. User-requested attenuation to be applied to signal, expressed in millidecibels (mdB).') nbsSigCondVoaFlowAttenuOper = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 227, 2, 2, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nbsSigCondVoaFlowAttenuOper.setStatus('current') if mibBuilder.loadTexts: nbsSigCondVoaFlowAttenuOper.setDescription('Attenuation actually being applied to signal, in millidecibels (mdB).') nbsSigCondRamanTableSize = MibScalar((1, 3, 6, 1, 4, 1, 629, 227, 3, 1), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nbsSigCondRamanTableSize.setStatus('current') if mibBuilder.loadTexts: nbsSigCondRamanTableSize.setDescription('The number of raman ports in this system.') nbsSigCondRamanTable = MibTable((1, 3, 6, 1, 4, 1, 629, 227, 3, 2), ) if mibBuilder.loadTexts: nbsSigCondRamanTable.setStatus('current') if mibBuilder.loadTexts: nbsSigCondRamanTable.setDescription('Table of Raman readings.') nbsSigCondRamanEntry = MibTableRow((1, 3, 6, 1, 4, 1, 629, 227, 3, 2, 1), ).setIndexNames((0, "NBS-SIGCOND-MIB", "nbsSigCondRamanIfIndex")) if mibBuilder.loadTexts: nbsSigCondRamanEntry.setStatus('current') if mibBuilder.loadTexts: nbsSigCondRamanEntry.setDescription('Raman readings on an individual port.') nbsSigCondRamanIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 227, 3, 2, 1, 1), InterfaceIndex()) if mibBuilder.loadTexts: nbsSigCondRamanIfIndex.setStatus('current') if mibBuilder.loadTexts: nbsSigCondRamanIfIndex.setDescription('The Mib2 ifIndex of the Raman port') nbsSigCondRamanPumpPwrAdmin = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 227, 3, 2, 1, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: nbsSigCondRamanPumpPwrAdmin.setStatus('current') if mibBuilder.loadTexts: nbsSigCondRamanPumpPwrAdmin.setDescription('Persistent and immediately updated. User-requested pump power, in microwatts (uW). User interfaces should show this in millWatts (mW). Not supported value: -1') nbsSigCondRamanPumpPwrOper = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 227, 3, 2, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nbsSigCondRamanPumpPwrOper.setStatus('current') if mibBuilder.loadTexts: nbsSigCondRamanPumpPwrOper.setDescription('Agent reported pump power, in microwatts (uW). User interfaces should show this in millWatts (mW). Not supported value: -1') nbsSigCondPortTableSize = MibScalar((1, 3, 6, 1, 4, 1, 629, 227, 100, 1), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nbsSigCondPortTableSize.setStatus('current') if mibBuilder.loadTexts: nbsSigCondPortTableSize.setDescription('The number of entries in nbsSigCondPortTable.') nbsSigCondPortTable = MibTable((1, 3, 6, 1, 4, 1, 629, 227, 100, 2), ) if mibBuilder.loadTexts: nbsSigCondPortTable.setStatus('current') if mibBuilder.loadTexts: nbsSigCondPortTable.setDescription('Table of VOA and VGA ports.') nbsSigCondPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 629, 227, 100, 2, 1), ).setIndexNames((0, "NBS-SIGCOND-MIB", "nbsSigCondPortIfIndex")) if mibBuilder.loadTexts: nbsSigCondPortEntry.setStatus('current') if mibBuilder.loadTexts: nbsSigCondPortEntry.setDescription('') nbsSigCondPortIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 227, 100, 2, 1, 1), InterfaceIndex()) if mibBuilder.loadTexts: nbsSigCondPortIfIndex.setStatus('current') if mibBuilder.loadTexts: nbsSigCondPortIfIndex.setDescription('The Mib2 ifIndex of the Port port') nbsSigCondPortRxPower = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 227, 100, 2, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nbsSigCondPortRxPower.setStatus('current') if mibBuilder.loadTexts: nbsSigCondPortRxPower.setDescription('Measured receiver power, in millidecibels (mdBm). User interfaces should show this in decibels (dBm). Not supported value: -100000') nbsSigCondPortTxPower = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 227, 100, 2, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nbsSigCondPortTxPower.setStatus('current') if mibBuilder.loadTexts: nbsSigCondPortTxPower.setDescription('Measured transmitter power, in millidecibels (mdBm). User interfaces should show this in decibels (dBm). Not supported value: -100000') nbsSigCondPortReflection = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 227, 100, 2, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nbsSigCondPortReflection.setStatus('current') if mibBuilder.loadTexts: nbsSigCondPortReflection.setDescription('Measured back reflection power, in millidecibels (mdBm). User interfaces should show this in decibels (dBm). Not supported value: -100000') mibBuilder.exportSymbols("NBS-SIGCOND-MIB", nbsSigCondVoaPortRxAttenuAdmin=nbsSigCondVoaPortRxAttenuAdmin, nbsSigCondVoaPortGrp=nbsSigCondVoaPortGrp, nbsSigCondTraps=nbsSigCondTraps, nbsSigCondVoaPortTable=nbsSigCondVoaPortTable, nbsSigCondPortIfIndex=nbsSigCondPortIfIndex, nbsSigCondRamanPumpPwrAdmin=nbsSigCondRamanPumpPwrAdmin, nbsSigCondPortTableSize=nbsSigCondPortTableSize, nbsSigCondRamanGrp=nbsSigCondRamanGrp, nbsSigCondVoaPortEntry=nbsSigCondVoaPortEntry, nbsSigCondVoaFlowTable=nbsSigCondVoaFlowTable, nbsSigCondVoaFlowEntry=nbsSigCondVoaFlowEntry, nbsSigCondVoaFlowWavelength=nbsSigCondVoaFlowWavelength, nbsSigCondVoaFlowTableSize=nbsSigCondVoaFlowTableSize, nbsSigCondVoaPortRxAttenuOper=nbsSigCondVoaPortRxAttenuOper, nbsSigCondVoaFlowDirection=nbsSigCondVoaFlowDirection, nbsSigCondRamanTableSize=nbsSigCondRamanTableSize, nbsSigCondPortTxPower=nbsSigCondPortTxPower, nbsSigCondPortRxPower=nbsSigCondPortRxPower, nbsSigCondVoaPortTxAttenuOper=nbsSigCondVoaPortTxAttenuOper, nbsSigCondTrap0=nbsSigCondTrap0, InterfaceIndex=InterfaceIndex, nbsSigCondVoaFlowGrp=nbsSigCondVoaFlowGrp, nbsSigCondVoaFlowIfIndex=nbsSigCondVoaFlowIfIndex, PYSNMP_MODULE_ID=nbsSigCondMib, nbsSigCondVoaFlowAttenuOper=nbsSigCondVoaFlowAttenuOper, nbsSigCondVoaPortIfIndex=nbsSigCondVoaPortIfIndex, nbsSigCondPortReflection=nbsSigCondPortReflection, nbsSigCondRamanPumpPwrOper=nbsSigCondRamanPumpPwrOper, nbsSigCondVoaPortTableSize=nbsSigCondVoaPortTableSize, nbsSigCondPortTable=nbsSigCondPortTable, nbsSigCondRamanEntry=nbsSigCondRamanEntry, nbsSigCondMib=nbsSigCondMib, nbsSigCondVoaFlowAttenuAdmin=nbsSigCondVoaFlowAttenuAdmin, nbsSigCondPortGrp=nbsSigCondPortGrp, nbsSigCondPortEntry=nbsSigCondPortEntry, nbsSigCondRamanTable=nbsSigCondRamanTable, nbsSigCondVoaPortTxAttenuAdmin=nbsSigCondVoaPortTxAttenuAdmin, nbsSigCondRamanIfIndex=nbsSigCondRamanIfIndex)
(integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, value_size_constraint, single_value_constraint, value_range_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ValueSizeConstraint', 'SingleValueConstraint', 'ValueRangeConstraint', 'ConstraintsIntersection') (nbs,) = mibBuilder.importSymbols('NBS-CMMC-MIB', 'nbs') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (ip_address, mib_scalar, mib_table, mib_table_row, mib_table_column, time_ticks, bits, integer32, mib_identifier, gauge32, notification_type, unsigned32, iso, counter64, counter32, module_identity, object_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'IpAddress', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'TimeTicks', 'Bits', 'Integer32', 'MibIdentifier', 'Gauge32', 'NotificationType', 'Unsigned32', 'iso', 'Counter64', 'Counter32', 'ModuleIdentity', 'ObjectIdentity') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') nbs_sig_cond_mib = module_identity((1, 3, 6, 1, 4, 1, 629, 227)) if mibBuilder.loadTexts: nbsSigCondMib.setLastUpdated('201111300000Z') if mibBuilder.loadTexts: nbsSigCondMib.setOrganization('NBS') if mibBuilder.loadTexts: nbsSigCondMib.setContactInfo('For technical support, please contact your service channel') if mibBuilder.loadTexts: nbsSigCondMib.setDescription('Signal Conditioning mib') class Interfaceindex(Integer32): pass nbs_sig_cond_voa_port_grp = object_identity((1, 3, 6, 1, 4, 1, 629, 227, 1)) if mibBuilder.loadTexts: nbsSigCondVoaPortGrp.setStatus('current') if mibBuilder.loadTexts: nbsSigCondVoaPortGrp.setDescription('Variable Optical Attenuation at the port level.') nbs_sig_cond_voa_flow_grp = object_identity((1, 3, 6, 1, 4, 1, 629, 227, 2)) if mibBuilder.loadTexts: nbsSigCondVoaFlowGrp.setStatus('current') if mibBuilder.loadTexts: nbsSigCondVoaFlowGrp.setDescription('Variable Optical Attenuation at the port.frequency.direction level.') nbs_sig_cond_raman_grp = object_identity((1, 3, 6, 1, 4, 1, 629, 227, 3)) if mibBuilder.loadTexts: nbsSigCondRamanGrp.setStatus('current') if mibBuilder.loadTexts: nbsSigCondRamanGrp.setDescription('Raman amplifier information for the port.') nbs_sig_cond_port_grp = object_identity((1, 3, 6, 1, 4, 1, 629, 227, 100)) if mibBuilder.loadTexts: nbsSigCondPortGrp.setStatus('current') if mibBuilder.loadTexts: nbsSigCondPortGrp.setDescription('Power readings from the port.') nbs_sig_cond_traps = object_identity((1, 3, 6, 1, 4, 1, 629, 227, 200)) if mibBuilder.loadTexts: nbsSigCondTraps.setStatus('current') if mibBuilder.loadTexts: nbsSigCondTraps.setDescription('SNMP Traps or Notifications') nbs_sig_cond_trap0 = object_identity((1, 3, 6, 1, 4, 1, 629, 227, 200, 0)) if mibBuilder.loadTexts: nbsSigCondTrap0.setStatus('current') if mibBuilder.loadTexts: nbsSigCondTrap0.setDescription('SNMP Traps or Notifications') nbs_sig_cond_voa_port_table_size = mib_scalar((1, 3, 6, 1, 4, 1, 629, 227, 1, 1), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nbsSigCondVoaPortTableSize.setStatus('current') if mibBuilder.loadTexts: nbsSigCondVoaPortTableSize.setDescription('The number of ports supporting variable optical attenuation at the port level.') nbs_sig_cond_voa_port_table = mib_table((1, 3, 6, 1, 4, 1, 629, 227, 1, 2)) if mibBuilder.loadTexts: nbsSigCondVoaPortTable.setStatus('current') if mibBuilder.loadTexts: nbsSigCondVoaPortTable.setDescription('List of ports supporting variable optical attenuation at the port level.') nbs_sig_cond_voa_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 629, 227, 1, 2, 1)).setIndexNames((0, 'NBS-SIGCOND-MIB', 'nbsSigCondVoaPortIfIndex')) if mibBuilder.loadTexts: nbsSigCondVoaPortEntry.setStatus('current') if mibBuilder.loadTexts: nbsSigCondVoaPortEntry.setDescription('') nbs_sig_cond_voa_port_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 629, 227, 1, 2, 1, 1), interface_index()) if mibBuilder.loadTexts: nbsSigCondVoaPortIfIndex.setStatus('current') if mibBuilder.loadTexts: nbsSigCondVoaPortIfIndex.setDescription('The Mib2 ifIndex of the attenuable port.') nbs_sig_cond_voa_port_rx_attenu_admin = mib_table_column((1, 3, 6, 1, 4, 1, 629, 227, 1, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(-100000, 100000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: nbsSigCondVoaPortRxAttenuAdmin.setStatus('current') if mibBuilder.loadTexts: nbsSigCondVoaPortRxAttenuAdmin.setDescription('Persistent and immediately updated. User-requested attenuation to be applied to received signal, expressed in millidecibels (mdB). Not supported value: -200000') nbs_sig_cond_voa_port_rx_attenu_oper = mib_table_column((1, 3, 6, 1, 4, 1, 629, 227, 1, 2, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nbsSigCondVoaPortRxAttenuOper.setStatus('current') if mibBuilder.loadTexts: nbsSigCondVoaPortRxAttenuOper.setDescription('Attenuation actually being applied to received signal, in millidecibels (mdB). Not supported value: -200000') nbs_sig_cond_voa_port_tx_attenu_admin = mib_table_column((1, 3, 6, 1, 4, 1, 629, 227, 1, 2, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(-100000, 100000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: nbsSigCondVoaPortTxAttenuAdmin.setStatus('current') if mibBuilder.loadTexts: nbsSigCondVoaPortTxAttenuAdmin.setDescription('Persistent and immediately updated. User-requested attenuation to be applied before transmitting signal, expressed in millidecibels (mdB). Not supported value: -200000') nbs_sig_cond_voa_port_tx_attenu_oper = mib_table_column((1, 3, 6, 1, 4, 1, 629, 227, 1, 2, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nbsSigCondVoaPortTxAttenuOper.setStatus('current') if mibBuilder.loadTexts: nbsSigCondVoaPortTxAttenuOper.setDescription('Attenuation actually being applied before transmitting signal, in millidecibels (mdB). Not supported value: -200000') nbs_sig_cond_voa_flow_table_size = mib_scalar((1, 3, 6, 1, 4, 1, 629, 227, 2, 1), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nbsSigCondVoaFlowTableSize.setStatus('current') if mibBuilder.loadTexts: nbsSigCondVoaFlowTableSize.setDescription('The number of attenuable flows in this system.') nbs_sig_cond_voa_flow_table = mib_table((1, 3, 6, 1, 4, 1, 629, 227, 2, 2)) if mibBuilder.loadTexts: nbsSigCondVoaFlowTable.setStatus('current') if mibBuilder.loadTexts: nbsSigCondVoaFlowTable.setDescription('Table of attenuable flows.') nbs_sig_cond_voa_flow_entry = mib_table_row((1, 3, 6, 1, 4, 1, 629, 227, 2, 2, 1)).setIndexNames((0, 'NBS-SIGCOND-MIB', 'nbsSigCondVoaFlowIfIndex'), (0, 'NBS-SIGCOND-MIB', 'nbsSigCondVoaFlowWavelength'), (0, 'NBS-SIGCOND-MIB', 'nbsSigCondVoaFlowDirection')) if mibBuilder.loadTexts: nbsSigCondVoaFlowEntry.setStatus('current') if mibBuilder.loadTexts: nbsSigCondVoaFlowEntry.setDescription('Reports status of monitored frequencies.') nbs_sig_cond_voa_flow_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 629, 227, 2, 2, 1, 1), interface_index()) if mibBuilder.loadTexts: nbsSigCondVoaFlowIfIndex.setStatus('current') if mibBuilder.loadTexts: nbsSigCondVoaFlowIfIndex.setDescription('The Mib2 ifIndex of the optical spectrum analyzer port') nbs_sig_cond_voa_flow_wavelength = mib_table_column((1, 3, 6, 1, 4, 1, 629, 227, 2, 2, 1, 2), integer32()) if mibBuilder.loadTexts: nbsSigCondVoaFlowWavelength.setStatus('current') if mibBuilder.loadTexts: nbsSigCondVoaFlowWavelength.setDescription('The nominal wavelength, in picometers, of this channel.') nbs_sig_cond_voa_flow_direction = mib_table_column((1, 3, 6, 1, 4, 1, 629, 227, 2, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('rx', 1), ('tx', 2)))) if mibBuilder.loadTexts: nbsSigCondVoaFlowDirection.setStatus('current') if mibBuilder.loadTexts: nbsSigCondVoaFlowDirection.setDescription('Third index of table. The value rx(1) indicates the received signal, and tx(2) indicates the transmitted signal.') nbs_sig_cond_voa_flow_attenu_admin = mib_table_column((1, 3, 6, 1, 4, 1, 629, 227, 2, 2, 1, 4), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: nbsSigCondVoaFlowAttenuAdmin.setStatus('current') if mibBuilder.loadTexts: nbsSigCondVoaFlowAttenuAdmin.setDescription('Persistent and immediately updated. User-requested attenuation to be applied to signal, expressed in millidecibels (mdB).') nbs_sig_cond_voa_flow_attenu_oper = mib_table_column((1, 3, 6, 1, 4, 1, 629, 227, 2, 2, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nbsSigCondVoaFlowAttenuOper.setStatus('current') if mibBuilder.loadTexts: nbsSigCondVoaFlowAttenuOper.setDescription('Attenuation actually being applied to signal, in millidecibels (mdB).') nbs_sig_cond_raman_table_size = mib_scalar((1, 3, 6, 1, 4, 1, 629, 227, 3, 1), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nbsSigCondRamanTableSize.setStatus('current') if mibBuilder.loadTexts: nbsSigCondRamanTableSize.setDescription('The number of raman ports in this system.') nbs_sig_cond_raman_table = mib_table((1, 3, 6, 1, 4, 1, 629, 227, 3, 2)) if mibBuilder.loadTexts: nbsSigCondRamanTable.setStatus('current') if mibBuilder.loadTexts: nbsSigCondRamanTable.setDescription('Table of Raman readings.') nbs_sig_cond_raman_entry = mib_table_row((1, 3, 6, 1, 4, 1, 629, 227, 3, 2, 1)).setIndexNames((0, 'NBS-SIGCOND-MIB', 'nbsSigCondRamanIfIndex')) if mibBuilder.loadTexts: nbsSigCondRamanEntry.setStatus('current') if mibBuilder.loadTexts: nbsSigCondRamanEntry.setDescription('Raman readings on an individual port.') nbs_sig_cond_raman_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 629, 227, 3, 2, 1, 1), interface_index()) if mibBuilder.loadTexts: nbsSigCondRamanIfIndex.setStatus('current') if mibBuilder.loadTexts: nbsSigCondRamanIfIndex.setDescription('The Mib2 ifIndex of the Raman port') nbs_sig_cond_raman_pump_pwr_admin = mib_table_column((1, 3, 6, 1, 4, 1, 629, 227, 3, 2, 1, 2), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: nbsSigCondRamanPumpPwrAdmin.setStatus('current') if mibBuilder.loadTexts: nbsSigCondRamanPumpPwrAdmin.setDescription('Persistent and immediately updated. User-requested pump power, in microwatts (uW). User interfaces should show this in millWatts (mW). Not supported value: -1') nbs_sig_cond_raman_pump_pwr_oper = mib_table_column((1, 3, 6, 1, 4, 1, 629, 227, 3, 2, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nbsSigCondRamanPumpPwrOper.setStatus('current') if mibBuilder.loadTexts: nbsSigCondRamanPumpPwrOper.setDescription('Agent reported pump power, in microwatts (uW). User interfaces should show this in millWatts (mW). Not supported value: -1') nbs_sig_cond_port_table_size = mib_scalar((1, 3, 6, 1, 4, 1, 629, 227, 100, 1), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nbsSigCondPortTableSize.setStatus('current') if mibBuilder.loadTexts: nbsSigCondPortTableSize.setDescription('The number of entries in nbsSigCondPortTable.') nbs_sig_cond_port_table = mib_table((1, 3, 6, 1, 4, 1, 629, 227, 100, 2)) if mibBuilder.loadTexts: nbsSigCondPortTable.setStatus('current') if mibBuilder.loadTexts: nbsSigCondPortTable.setDescription('Table of VOA and VGA ports.') nbs_sig_cond_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 629, 227, 100, 2, 1)).setIndexNames((0, 'NBS-SIGCOND-MIB', 'nbsSigCondPortIfIndex')) if mibBuilder.loadTexts: nbsSigCondPortEntry.setStatus('current') if mibBuilder.loadTexts: nbsSigCondPortEntry.setDescription('') nbs_sig_cond_port_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 629, 227, 100, 2, 1, 1), interface_index()) if mibBuilder.loadTexts: nbsSigCondPortIfIndex.setStatus('current') if mibBuilder.loadTexts: nbsSigCondPortIfIndex.setDescription('The Mib2 ifIndex of the Port port') nbs_sig_cond_port_rx_power = mib_table_column((1, 3, 6, 1, 4, 1, 629, 227, 100, 2, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nbsSigCondPortRxPower.setStatus('current') if mibBuilder.loadTexts: nbsSigCondPortRxPower.setDescription('Measured receiver power, in millidecibels (mdBm). User interfaces should show this in decibels (dBm). Not supported value: -100000') nbs_sig_cond_port_tx_power = mib_table_column((1, 3, 6, 1, 4, 1, 629, 227, 100, 2, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nbsSigCondPortTxPower.setStatus('current') if mibBuilder.loadTexts: nbsSigCondPortTxPower.setDescription('Measured transmitter power, in millidecibels (mdBm). User interfaces should show this in decibels (dBm). Not supported value: -100000') nbs_sig_cond_port_reflection = mib_table_column((1, 3, 6, 1, 4, 1, 629, 227, 100, 2, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nbsSigCondPortReflection.setStatus('current') if mibBuilder.loadTexts: nbsSigCondPortReflection.setDescription('Measured back reflection power, in millidecibels (mdBm). User interfaces should show this in decibels (dBm). Not supported value: -100000') mibBuilder.exportSymbols('NBS-SIGCOND-MIB', nbsSigCondVoaPortRxAttenuAdmin=nbsSigCondVoaPortRxAttenuAdmin, nbsSigCondVoaPortGrp=nbsSigCondVoaPortGrp, nbsSigCondTraps=nbsSigCondTraps, nbsSigCondVoaPortTable=nbsSigCondVoaPortTable, nbsSigCondPortIfIndex=nbsSigCondPortIfIndex, nbsSigCondRamanPumpPwrAdmin=nbsSigCondRamanPumpPwrAdmin, nbsSigCondPortTableSize=nbsSigCondPortTableSize, nbsSigCondRamanGrp=nbsSigCondRamanGrp, nbsSigCondVoaPortEntry=nbsSigCondVoaPortEntry, nbsSigCondVoaFlowTable=nbsSigCondVoaFlowTable, nbsSigCondVoaFlowEntry=nbsSigCondVoaFlowEntry, nbsSigCondVoaFlowWavelength=nbsSigCondVoaFlowWavelength, nbsSigCondVoaFlowTableSize=nbsSigCondVoaFlowTableSize, nbsSigCondVoaPortRxAttenuOper=nbsSigCondVoaPortRxAttenuOper, nbsSigCondVoaFlowDirection=nbsSigCondVoaFlowDirection, nbsSigCondRamanTableSize=nbsSigCondRamanTableSize, nbsSigCondPortTxPower=nbsSigCondPortTxPower, nbsSigCondPortRxPower=nbsSigCondPortRxPower, nbsSigCondVoaPortTxAttenuOper=nbsSigCondVoaPortTxAttenuOper, nbsSigCondTrap0=nbsSigCondTrap0, InterfaceIndex=InterfaceIndex, nbsSigCondVoaFlowGrp=nbsSigCondVoaFlowGrp, nbsSigCondVoaFlowIfIndex=nbsSigCondVoaFlowIfIndex, PYSNMP_MODULE_ID=nbsSigCondMib, nbsSigCondVoaFlowAttenuOper=nbsSigCondVoaFlowAttenuOper, nbsSigCondVoaPortIfIndex=nbsSigCondVoaPortIfIndex, nbsSigCondPortReflection=nbsSigCondPortReflection, nbsSigCondRamanPumpPwrOper=nbsSigCondRamanPumpPwrOper, nbsSigCondVoaPortTableSize=nbsSigCondVoaPortTableSize, nbsSigCondPortTable=nbsSigCondPortTable, nbsSigCondRamanEntry=nbsSigCondRamanEntry, nbsSigCondMib=nbsSigCondMib, nbsSigCondVoaFlowAttenuAdmin=nbsSigCondVoaFlowAttenuAdmin, nbsSigCondPortGrp=nbsSigCondPortGrp, nbsSigCondPortEntry=nbsSigCondPortEntry, nbsSigCondRamanTable=nbsSigCondRamanTable, nbsSigCondVoaPortTxAttenuAdmin=nbsSigCondVoaPortTxAttenuAdmin, nbsSigCondRamanIfIndex=nbsSigCondRamanIfIndex)
""" Write a program that takes two strings from the user and checks if they represent a valid user name. Valid users and passwords: apple => red lettuce => green lemon => yellow orange => orange When valid credentials are entered print: Welcome Master And when invalid credentials are entered print: INTRUDER ALERT and exit the program with a non-zero exit code """
""" Write a program that takes two strings from the user and checks if they represent a valid user name. Valid users and passwords: apple => red lettuce => green lemon => yellow orange => orange When valid credentials are entered print: Welcome Master And when invalid credentials are entered print: INTRUDER ALERT and exit the program with a non-zero exit code """
def dayOfProgrammer(year): s=0 if 1700 <= year <= 1917: if year % 4==0: for i in range(1, 9): if i % 2 == 0: s += 30 else: s += 31 print(256 - s, ".09", ".", year, sep='') else: for i in range(1, 9): if i % 2 == 0: s += 30 else: s += 31 s -= 1 print(256 - s, ".09", ".", year, sep='') elif year == 1918: print('26.09.1918') else: if year % 4 == 0 and year % 100 != 0 or year % 400 ==0: for i in range(1,9): if i % 2==0: s+=30 else: s+=31 print(256-s,".09",".",year,sep='') else: for i in range(1, 9): if i % 2 == 0: s += 30 else: s += 31 s-=1 print(256-s,".09",".",year,sep='') if __name__ == '__main__': year = int(input().strip()) dayOfProgrammer(year)
def day_of_programmer(year): s = 0 if 1700 <= year <= 1917: if year % 4 == 0: for i in range(1, 9): if i % 2 == 0: s += 30 else: s += 31 print(256 - s, '.09', '.', year, sep='') else: for i in range(1, 9): if i % 2 == 0: s += 30 else: s += 31 s -= 1 print(256 - s, '.09', '.', year, sep='') elif year == 1918: print('26.09.1918') elif year % 4 == 0 and year % 100 != 0 or year % 400 == 0: for i in range(1, 9): if i % 2 == 0: s += 30 else: s += 31 print(256 - s, '.09', '.', year, sep='') else: for i in range(1, 9): if i % 2 == 0: s += 30 else: s += 31 s -= 1 print(256 - s, '.09', '.', year, sep='') if __name__ == '__main__': year = int(input().strip()) day_of_programmer(year)
class Solution: def generateMatrix(self, n: int) -> List[List[int]]: res = [[0] * n for _ in range(n)] xi,yi,dx,dy = 0,0,1,0 for i in range(1,n*n+1): res[yi][xi]=i if not 0 <= yi+dy < n or not 0 <= xi+dx < n or res[yi+dy][xi+dx]: dy,dx = dx,-dy yi,xi = yi+dy,xi+dx return res
class Solution: def generate_matrix(self, n: int) -> List[List[int]]: res = [[0] * n for _ in range(n)] (xi, yi, dx, dy) = (0, 0, 1, 0) for i in range(1, n * n + 1): res[yi][xi] = i if not 0 <= yi + dy < n or not 0 <= xi + dx < n or res[yi + dy][xi + dx]: (dy, dx) = (dx, -dy) (yi, xi) = (yi + dy, xi + dx) return res
# Merge Two Sorted Lists # # Merge two sorted linked lists and return it as a new sorted list. The new list should be made by splicing # together the nodes of the first two lists. # # Example: # # Input: 1->2->4, 1->3->4 # Output: 1->1->2->3->4->4 # Definition for singly-linked list. class ListNode: def __init__(self, val=0, next=None): self.val = val self.next = next class Solution: def mergeTwoLists(self, l1, l2): if None in (l1, l2): return l1 or l2 elif l1.val < l2.val: l1.next = self.mergeTwoLists(l1.next, l2) return l1 else: l2.next = self.mergeTwoLists(l1, l2.next) return l2
class Listnode: def __init__(self, val=0, next=None): self.val = val self.next = next class Solution: def merge_two_lists(self, l1, l2): if None in (l1, l2): return l1 or l2 elif l1.val < l2.val: l1.next = self.mergeTwoLists(l1.next, l2) return l1 else: l2.next = self.mergeTwoLists(l1, l2.next) return l2
#bitwise or operator a=24 b=10 print(bin(a)) print(bin(b)) print(a|b)
a = 24 b = 10 print(bin(a)) print(bin(b)) print(a | b)
#CNN Config File batchsize = 3 numberOfGenres = 4 learningRate = 0.001 numberOfSteps = 10000 dropoutProbability = 0.5
batchsize = 3 number_of_genres = 4 learning_rate = 0.001 number_of_steps = 10000 dropout_probability = 0.5
''' 09 - Subsetting lists of lists You saw before that a Python list can contain practically anything; even other lists! To subset lists of lists, you can use the same technique as before: square brackets. Try out the commands in the following code sample in the IPython Shell: x = [["a", "b", "c"], ["d", "e", "f"], ["g", "h", "i"]] x[2][0] x[2][:2] x[2] results in a list, that you can subset again by adding additional square brackets. What will house[-1][1] return? house, the list of lists that you created before, is already defined for you in the workspace. You can experiment with it in the IPython Shell. Possible Answers A float: the kitchen area A string: "kitchen" A float: the bathroom area A string: "bathroom" ''' house = [['hallway', 11.25], ['kitchen', 18.0], ['living room', 20.0], ['bedroom', 10.75], ['bathroom', 9.5]] # A float: the bathroom area
""" 09 - Subsetting lists of lists You saw before that a Python list can contain practically anything; even other lists! To subset lists of lists, you can use the same technique as before: square brackets. Try out the commands in the following code sample in the IPython Shell: x = [["a", "b", "c"], ["d", "e", "f"], ["g", "h", "i"]] x[2][0] x[2][:2] x[2] results in a list, that you can subset again by adding additional square brackets. What will house[-1][1] return? house, the list of lists that you created before, is already defined for you in the workspace. You can experiment with it in the IPython Shell. Possible Answers A float: the kitchen area A string: "kitchen" A float: the bathroom area A string: "bathroom" """ house = [['hallway', 11.25], ['kitchen', 18.0], ['living room', 20.0], ['bedroom', 10.75], ['bathroom', 9.5]]
class DjangoeventsError(Exception): pass class AlreadyExists(DjangoeventsError): pass
class Djangoeventserror(Exception): pass class Alreadyexists(DjangoeventsError): pass
# Remove a exclamation mark from the end of string. For a beginner kata, you can assume # that the input data is always a string, no need to verify it. # Examples # remove("Hi!") === "Hi" # remove("Hi!!!") === "Hi!!" # remove("!Hi") === "!Hi" # remove("!Hi!") === "!Hi" # remove("Hi! Hi!") === "Hi! Hi" # remove("Hi") === "Hi" def remove(s): return s[:-1] if s.endswith('!') else s def test_remove(): assert remove("Hi!") == "Hi" assert remove("Hi!!!") == "Hi!!" assert remove("!Hi") == "!Hi" assert remove("!Hi!") == "!Hi" assert remove("Hi! Hi!") == "Hi! Hi" assert remove("Hi") == "Hi"
def remove(s): return s[:-1] if s.endswith('!') else s def test_remove(): assert remove('Hi!') == 'Hi' assert remove('Hi!!!') == 'Hi!!' assert remove('!Hi') == '!Hi' assert remove('!Hi!') == '!Hi' assert remove('Hi! Hi!') == 'Hi! Hi' assert remove('Hi') == 'Hi'
class Solution: def maxPower(self, s: str) -> int: best_answer = 1 current_answer = 1 last_char = None for char in s: if last_char == char: current_answer += 1 else: if current_answer > best_answer: best_answer = current_answer current_answer = 1 last_char = char if current_answer > best_answer: best_answer = current_answer return best_answer
class Solution: def max_power(self, s: str) -> int: best_answer = 1 current_answer = 1 last_char = None for char in s: if last_char == char: current_answer += 1 else: if current_answer > best_answer: best_answer = current_answer current_answer = 1 last_char = char if current_answer > best_answer: best_answer = current_answer return best_answer
class Reporter(): def __init__(self, checker): pass def doReport(self): pass def appendMsg(self): pass def export(self): pass
class Reporter: def __init__(self, checker): pass def do_report(self): pass def append_msg(self): pass def export(self): pass
def evenNumbersGenerator(x): while True: x += 1 yield x # yield 1 # yield 2 # yield 3 # yield 4 # yield 5 # yield 6 # yield 7 gen=evenNumbersGenerator(5) print( next(gen) ) print( next(gen) ) print( next(gen) ) print( next(gen) )
def even_numbers_generator(x): while True: x += 1 yield x gen = even_numbers_generator(5) print(next(gen)) print(next(gen)) print(next(gen)) print(next(gen))
class Optimizer: def __init__(self, parameters): pass def step(self, **kwargs): raise NotImplementedError
class Optimizer: def __init__(self, parameters): pass def step(self, **kwargs): raise NotImplementedError
# Copyright 2018 Kai Groner # # 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 NS: '''Nesting namespace. >>> ns = NS({ 'foo.bar': 1, 'duck.duck.goose': 101 }) >>> ns.foo <NS: 'foo'> >>> ns.foo.bar 1 >>> ns.duck.duck <NS: 'duck.duck'> >>> ns.duck.duck.goose 101 >>> ns['foo.quux'] = 2 >>> ns.foo.quux 2 ''' def __init__(self, seq=None, *, missing=None): self._data = {} self._lazy = set() self._missing = missing self._prefixes = set() if seq is not None: if hasattr(seq, 'items'): seq = seq.items() for k,v in seq: self[k] = v def __repr__(self): return '<NS>' def _declare_lazy(self, k): '''Declare names that can be populated lazily. This is necessary to find namespace prefixes, and it also informs shell completions. ''' if k in self._prefixes: raise KeyError(f'{k!r} conflicts with an existing prefix') for prefix in _prefixes_of(k): if prefix in self._data: raise KeyError(f'{k!r} conflicts with {prefix!r}') self._prefixes.add(prefix) self._lazy.add(k) def __setitem__(self, k, v): if k in self._prefixes: raise KeyError(f'{k!r} conflicts with an existing prefix') for prefix in _prefixes_of(k): if prefix in self._data: raise KeyError(f'{k!r} conflicts with {prefix!r}') self._prefixes.add(prefix) self._data[k] = v def __getitem__(self, k): if k in self._data: return self._data[k] if k not in self._prefixes and self._missing is not None: try: v = self._missing(k) except LookupError: raise KeyError(k) else: self[k] = v return v def __delitem__(self, k): del self._data[k] def __iter__(self): yield from self._lazy|set(self._data) def __contains__(self, k): return k in self._data or k in self._lazy def __getattr__(self, k): if k in self: return self[k] if k in self._prefixes: return SubNS(self, k) raise AttributeError(k) def __dir__(self): #yield from super().__dir__() yield from _of_prefix(self._prefixes, '') yield from _of_prefix(self, '') class SubNS: def __init__(self, ns, prefix): self._ns = ns self._prefix = prefix def __repr__(self): return f'<NS: {self._prefix!r}>' def __getattr__(self, k): fqk = f'{self._prefix}.{k}' if fqk in self._ns: return self._ns[fqk] if fqk in self._ns._prefixes: return SubNS(self._ns, fqk) raise AttributeError(k) def __dir__(self): #yield from super().__dir__() yield from _of_prefix(self._ns._prefixes, self._prefix) yield from _of_prefix(self._ns, self._prefix) def _prefixes_of(k): '''Generate namespace prefixes of `k`. >>> list(_prefixes_of('foo.bar.quux')) ['foo', 'foo.bar'] ''' i = -1 while True: try: i = k.index('.', i+1) except ValueError: return yield k[:i] def _of_prefix(seq, prefix): '''Generate suffixes of `seq` elements that are of a prefix (not nested). >>> list(_of_prefix(['foo.bar', 'foo.bar.quux', 'few.bar'], 'foo')) ['bar'] ''' if prefix and not prefix.endswith('.'): prefix += '.' start = len(prefix) for k in seq: if k.startswith(prefix) and k.find('.', start) == -1: yield k[start:]
class Ns: """Nesting namespace. >>> ns = NS({ 'foo.bar': 1, 'duck.duck.goose': 101 }) >>> ns.foo <NS: 'foo'> >>> ns.foo.bar 1 >>> ns.duck.duck <NS: 'duck.duck'> >>> ns.duck.duck.goose 101 >>> ns['foo.quux'] = 2 >>> ns.foo.quux 2 """ def __init__(self, seq=None, *, missing=None): self._data = {} self._lazy = set() self._missing = missing self._prefixes = set() if seq is not None: if hasattr(seq, 'items'): seq = seq.items() for (k, v) in seq: self[k] = v def __repr__(self): return '<NS>' def _declare_lazy(self, k): """Declare names that can be populated lazily. This is necessary to find namespace prefixes, and it also informs shell completions. """ if k in self._prefixes: raise key_error(f'{k!r} conflicts with an existing prefix') for prefix in _prefixes_of(k): if prefix in self._data: raise key_error(f'{k!r} conflicts with {prefix!r}') self._prefixes.add(prefix) self._lazy.add(k) def __setitem__(self, k, v): if k in self._prefixes: raise key_error(f'{k!r} conflicts with an existing prefix') for prefix in _prefixes_of(k): if prefix in self._data: raise key_error(f'{k!r} conflicts with {prefix!r}') self._prefixes.add(prefix) self._data[k] = v def __getitem__(self, k): if k in self._data: return self._data[k] if k not in self._prefixes and self._missing is not None: try: v = self._missing(k) except LookupError: raise key_error(k) else: self[k] = v return v def __delitem__(self, k): del self._data[k] def __iter__(self): yield from (self._lazy | set(self._data)) def __contains__(self, k): return k in self._data or k in self._lazy def __getattr__(self, k): if k in self: return self[k] if k in self._prefixes: return sub_ns(self, k) raise attribute_error(k) def __dir__(self): yield from _of_prefix(self._prefixes, '') yield from _of_prefix(self, '') class Subns: def __init__(self, ns, prefix): self._ns = ns self._prefix = prefix def __repr__(self): return f'<NS: {self._prefix!r}>' def __getattr__(self, k): fqk = f'{self._prefix}.{k}' if fqk in self._ns: return self._ns[fqk] if fqk in self._ns._prefixes: return sub_ns(self._ns, fqk) raise attribute_error(k) def __dir__(self): yield from _of_prefix(self._ns._prefixes, self._prefix) yield from _of_prefix(self._ns, self._prefix) def _prefixes_of(k): """Generate namespace prefixes of `k`. >>> list(_prefixes_of('foo.bar.quux')) ['foo', 'foo.bar'] """ i = -1 while True: try: i = k.index('.', i + 1) except ValueError: return yield k[:i] def _of_prefix(seq, prefix): """Generate suffixes of `seq` elements that are of a prefix (not nested). >>> list(_of_prefix(['foo.bar', 'foo.bar.quux', 'few.bar'], 'foo')) ['bar'] """ if prefix and (not prefix.endswith('.')): prefix += '.' start = len(prefix) for k in seq: if k.startswith(prefix) and k.find('.', start) == -1: yield k[start:]
spike = { 'kind': 'bulldog', 'owner': 'tom', } garfield = { 'kind': 'cat', 'owner': 'mark', } tom = { 'kind': 'cat', 'owner': 'will', } pets = [spike, garfield, tom] for pet in pets: print(pet)
spike = {'kind': 'bulldog', 'owner': 'tom'} garfield = {'kind': 'cat', 'owner': 'mark'} tom = {'kind': 'cat', 'owner': 'will'} pets = [spike, garfield, tom] for pet in pets: print(pet)
# MenuTitle: Print master models # -*- coding: utf-8 -*- __doc__ = """ Prints a tab with all Kern On models for each master. """ for i, master in enumerate(Font.masters): if master.userData["KernOnIsInterpolated"]: continue negativeModels = [] zeroModels = [] positiveModels = [] for model in master.userData["KernOnModels"]: Lglyph = Font.glyphs[model.split(" ")[0]] Rglyph = Font.glyphs[model.split(" ")[1]] newModel = "/" + Lglyph.name + "/" + Rglyph.name model_kerning = Rglyph.layers[i].previousKerningForLayer_direction_(Lglyph.layers[i], LTR) if model_kerning == 0 or model_kerning is None: zeroModels.append(newModel) elif model_kerning > 0: positiveModels.append(newModel) elif model_kerning < 0: negativeModels.append(newModel) text = master.name + "(" + str(len(master.userData["KernOnModels"])) + ")\n\nZero models:\n" + "/space".join( zeroModels) + "\n\nPositive models:\n" \ + "/space".join(positiveModels) + "\n\nNegative models:\n" + "/space".join(negativeModels) Font.newTab(text) Font.currentTab.masterIndex = i
__doc__ = '\nPrints a tab with all Kern On models for each master.\n' for (i, master) in enumerate(Font.masters): if master.userData['KernOnIsInterpolated']: continue negative_models = [] zero_models = [] positive_models = [] for model in master.userData['KernOnModels']: lglyph = Font.glyphs[model.split(' ')[0]] rglyph = Font.glyphs[model.split(' ')[1]] new_model = '/' + Lglyph.name + '/' + Rglyph.name model_kerning = Rglyph.layers[i].previousKerningForLayer_direction_(Lglyph.layers[i], LTR) if model_kerning == 0 or model_kerning is None: zeroModels.append(newModel) elif model_kerning > 0: positiveModels.append(newModel) elif model_kerning < 0: negativeModels.append(newModel) text = master.name + '(' + str(len(master.userData['KernOnModels'])) + ')\n\nZero models:\n' + '/space'.join(zeroModels) + '\n\nPositive models:\n' + '/space'.join(positiveModels) + '\n\nNegative models:\n' + '/space'.join(negativeModels) Font.newTab(text) Font.currentTab.masterIndex = i
# # PySNMP MIB module CISCO-FABRIC-MCAST-APPL-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-FABRIC-MCAST-APPL-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:40:35 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, SingleValueConstraint, ValueSizeConstraint, ValueRangeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "SingleValueConstraint", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsUnion") CfmPoolIndex, = mibBuilder.importSymbols("CISCO-FABRIC-MCAST-MIB", "CfmPoolIndex") ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt") entLogicalIndex, = mibBuilder.importSymbols("ENTITY-MIB", "entLogicalIndex") SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString") ObjectGroup, ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "ModuleCompliance", "NotificationGroup") iso, Unsigned32, Counter32, Integer32, Counter64, NotificationType, MibIdentifier, Gauge32, ObjectIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, ModuleIdentity, IpAddress, Bits = mibBuilder.importSymbols("SNMPv2-SMI", "iso", "Unsigned32", "Counter32", "Integer32", "Counter64", "NotificationType", "MibIdentifier", "Gauge32", "ObjectIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks", "ModuleIdentity", "IpAddress", "Bits") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") ciscoFabricMcastApplMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 256)) ciscoFabricMcastApplMIB.setRevisions(('2002-12-18 00:00',)) if mibBuilder.loadTexts: ciscoFabricMcastApplMIB.setLastUpdated('200212180000Z') if mibBuilder.loadTexts: ciscoFabricMcastApplMIB.setOrganization('Cisco Systems, Inc.') ciscoFabricMcastApplMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 256, 1)) cfmaAppl = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 256, 1, 1)) cfmaApplTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 256, 1, 1, 1), ) if mibBuilder.loadTexts: cfmaApplTable.setStatus('current') cfmaApplEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 256, 1, 1, 1, 1), ).setIndexNames((0, "ENTITY-MIB", "entLogicalIndex"), (0, "CISCO-FABRIC-MCAST-APPL-MIB", "cfmaApplId")) if mibBuilder.loadTexts: cfmaApplEntry.setStatus('current') cfmaApplId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 256, 1, 1, 1, 1, 1), Unsigned32()) if mibBuilder.loadTexts: cfmaApplId.setStatus('current') cfmaApplName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 256, 1, 1, 1, 1, 2), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 128))).setMaxAccess("readonly") if mibBuilder.loadTexts: cfmaApplName.setStatus('current') cfmaApplInuseFgids = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 256, 1, 1, 1, 1, 3), Gauge32()).setUnits('fgid').setMaxAccess("readonly") if mibBuilder.loadTexts: cfmaApplInuseFgids.setStatus('current') cfmaApplHighWaterInuseFGIDs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 256, 1, 1, 1, 1, 4), Gauge32()).setUnits('fgid').setMaxAccess("readonly") if mibBuilder.loadTexts: cfmaApplHighWaterInuseFGIDs.setStatus('current') cfmaApplPoolId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 256, 1, 1, 1, 1, 5), CfmPoolIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: cfmaApplPoolId.setStatus('current') cfmaMIBNotificationPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 256, 2)) cfmaMIBNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 256, 2, 0)) cfmaMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 256, 3)) cfmaMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 256, 3, 1)) cfmaMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 256, 3, 2)) cfmaMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 256, 3, 1, 1)).setObjects(("CISCO-FABRIC-MCAST-APPL-MIB", "cfmaApplGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cfmaMIBCompliance = cfmaMIBCompliance.setStatus('current') cfmaApplGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 256, 3, 2, 1)).setObjects(("CISCO-FABRIC-MCAST-APPL-MIB", "cfmaApplName"), ("CISCO-FABRIC-MCAST-APPL-MIB", "cfmaApplInuseFgids"), ("CISCO-FABRIC-MCAST-APPL-MIB", "cfmaApplHighWaterInuseFGIDs"), ("CISCO-FABRIC-MCAST-APPL-MIB", "cfmaApplPoolId")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cfmaApplGroup = cfmaApplGroup.setStatus('current') mibBuilder.exportSymbols("CISCO-FABRIC-MCAST-APPL-MIB", PYSNMP_MODULE_ID=ciscoFabricMcastApplMIB, cfmaApplInuseFgids=cfmaApplInuseFgids, cfmaMIBNotifications=cfmaMIBNotifications, ciscoFabricMcastApplMIBObjects=ciscoFabricMcastApplMIBObjects, cfmaApplId=cfmaApplId, cfmaApplName=cfmaApplName, cfmaMIBConformance=cfmaMIBConformance, cfmaApplGroup=cfmaApplGroup, cfmaApplTable=cfmaApplTable, cfmaAppl=cfmaAppl, cfmaApplPoolId=cfmaApplPoolId, cfmaMIBCompliance=cfmaMIBCompliance, cfmaMIBNotificationPrefix=cfmaMIBNotificationPrefix, cfmaMIBCompliances=cfmaMIBCompliances, cfmaApplEntry=cfmaApplEntry, cfmaMIBGroups=cfmaMIBGroups, cfmaApplHighWaterInuseFGIDs=cfmaApplHighWaterInuseFGIDs, ciscoFabricMcastApplMIB=ciscoFabricMcastApplMIB)
(object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_intersection, single_value_constraint, value_size_constraint, value_range_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'SingleValueConstraint', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsUnion') (cfm_pool_index,) = mibBuilder.importSymbols('CISCO-FABRIC-MCAST-MIB', 'CfmPoolIndex') (cisco_mgmt,) = mibBuilder.importSymbols('CISCO-SMI', 'ciscoMgmt') (ent_logical_index,) = mibBuilder.importSymbols('ENTITY-MIB', 'entLogicalIndex') (snmp_admin_string,) = mibBuilder.importSymbols('SNMP-FRAMEWORK-MIB', 'SnmpAdminString') (object_group, module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ObjectGroup', 'ModuleCompliance', 'NotificationGroup') (iso, unsigned32, counter32, integer32, counter64, notification_type, mib_identifier, gauge32, object_identity, mib_scalar, mib_table, mib_table_row, mib_table_column, time_ticks, module_identity, ip_address, bits) = mibBuilder.importSymbols('SNMPv2-SMI', 'iso', 'Unsigned32', 'Counter32', 'Integer32', 'Counter64', 'NotificationType', 'MibIdentifier', 'Gauge32', 'ObjectIdentity', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'TimeTicks', 'ModuleIdentity', 'IpAddress', 'Bits') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') cisco_fabric_mcast_appl_mib = module_identity((1, 3, 6, 1, 4, 1, 9, 9, 256)) ciscoFabricMcastApplMIB.setRevisions(('2002-12-18 00:00',)) if mibBuilder.loadTexts: ciscoFabricMcastApplMIB.setLastUpdated('200212180000Z') if mibBuilder.loadTexts: ciscoFabricMcastApplMIB.setOrganization('Cisco Systems, Inc.') cisco_fabric_mcast_appl_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 256, 1)) cfma_appl = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 256, 1, 1)) cfma_appl_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 256, 1, 1, 1)) if mibBuilder.loadTexts: cfmaApplTable.setStatus('current') cfma_appl_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 256, 1, 1, 1, 1)).setIndexNames((0, 'ENTITY-MIB', 'entLogicalIndex'), (0, 'CISCO-FABRIC-MCAST-APPL-MIB', 'cfmaApplId')) if mibBuilder.loadTexts: cfmaApplEntry.setStatus('current') cfma_appl_id = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 256, 1, 1, 1, 1, 1), unsigned32()) if mibBuilder.loadTexts: cfmaApplId.setStatus('current') cfma_appl_name = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 256, 1, 1, 1, 1, 2), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(1, 128))).setMaxAccess('readonly') if mibBuilder.loadTexts: cfmaApplName.setStatus('current') cfma_appl_inuse_fgids = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 256, 1, 1, 1, 1, 3), gauge32()).setUnits('fgid').setMaxAccess('readonly') if mibBuilder.loadTexts: cfmaApplInuseFgids.setStatus('current') cfma_appl_high_water_inuse_fgi_ds = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 256, 1, 1, 1, 1, 4), gauge32()).setUnits('fgid').setMaxAccess('readonly') if mibBuilder.loadTexts: cfmaApplHighWaterInuseFGIDs.setStatus('current') cfma_appl_pool_id = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 256, 1, 1, 1, 1, 5), cfm_pool_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: cfmaApplPoolId.setStatus('current') cfma_mib_notification_prefix = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 256, 2)) cfma_mib_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 256, 2, 0)) cfma_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 256, 3)) cfma_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 256, 3, 1)) cfma_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 256, 3, 2)) cfma_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 256, 3, 1, 1)).setObjects(('CISCO-FABRIC-MCAST-APPL-MIB', 'cfmaApplGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cfma_mib_compliance = cfmaMIBCompliance.setStatus('current') cfma_appl_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 256, 3, 2, 1)).setObjects(('CISCO-FABRIC-MCAST-APPL-MIB', 'cfmaApplName'), ('CISCO-FABRIC-MCAST-APPL-MIB', 'cfmaApplInuseFgids'), ('CISCO-FABRIC-MCAST-APPL-MIB', 'cfmaApplHighWaterInuseFGIDs'), ('CISCO-FABRIC-MCAST-APPL-MIB', 'cfmaApplPoolId')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cfma_appl_group = cfmaApplGroup.setStatus('current') mibBuilder.exportSymbols('CISCO-FABRIC-MCAST-APPL-MIB', PYSNMP_MODULE_ID=ciscoFabricMcastApplMIB, cfmaApplInuseFgids=cfmaApplInuseFgids, cfmaMIBNotifications=cfmaMIBNotifications, ciscoFabricMcastApplMIBObjects=ciscoFabricMcastApplMIBObjects, cfmaApplId=cfmaApplId, cfmaApplName=cfmaApplName, cfmaMIBConformance=cfmaMIBConformance, cfmaApplGroup=cfmaApplGroup, cfmaApplTable=cfmaApplTable, cfmaAppl=cfmaAppl, cfmaApplPoolId=cfmaApplPoolId, cfmaMIBCompliance=cfmaMIBCompliance, cfmaMIBNotificationPrefix=cfmaMIBNotificationPrefix, cfmaMIBCompliances=cfmaMIBCompliances, cfmaApplEntry=cfmaApplEntry, cfmaMIBGroups=cfmaMIBGroups, cfmaApplHighWaterInuseFGIDs=cfmaApplHighWaterInuseFGIDs, ciscoFabricMcastApplMIB=ciscoFabricMcastApplMIB)
class Stack(): def __init__(self): self.arr = [] self.length = 0 def __str__(self): return str(self.__dict__) def push(self, data): self.arr.append(data) self.length += 1 def peek(self): return self.arr[self.length - 1] def pop(self): popped_item = self.arr[self.length - 1] del self.arr[self.length - 1] self.length -= 1 return popped_item mystack = Stack() mystack.push('google') mystack.push('microsoft') mystack.push('facebook') mystack.push('apple') print(mystack) x = mystack.peek() print(x) mystack.pop() print(mystack)
class Stack: def __init__(self): self.arr = [] self.length = 0 def __str__(self): return str(self.__dict__) def push(self, data): self.arr.append(data) self.length += 1 def peek(self): return self.arr[self.length - 1] def pop(self): popped_item = self.arr[self.length - 1] del self.arr[self.length - 1] self.length -= 1 return popped_item mystack = stack() mystack.push('google') mystack.push('microsoft') mystack.push('facebook') mystack.push('apple') print(mystack) x = mystack.peek() print(x) mystack.pop() print(mystack)
""" Some module ----------- Just a dummy module with some class definition """ class MyClass(object): """Some class With some description""" def do_something(self): """Do something""" pass #: Any instance attribute some_attr = None #: Any other instance attribute some_other_attr = None #: Some module data large_data = 'Whatever'
""" Some module ----------- Just a dummy module with some class definition """ class Myclass(object): """Some class With some description""" def do_something(self): """Do something""" pass some_attr = None some_other_attr = None large_data = 'Whatever'
class TrafficLightClassifier(object): def __init__(self): PATH_TO_MODEL = 'frozen_inference_graph.pb' self.detection_graph = tf.Graph() with self.detection_graph.as_default(): od_graph_def = tf.GraphDef() # Works up to here. with tf.gfile.GFile(PATH_TO_MODEL, 'rb') as fid: serialized_graph = fid.read() od_graph_def.ParseFromString(serialized_graph) tf.import_graph_def(od_graph_def, name='') self.image_tensor = self.detection_graph.get_tensor_by_name('image_tensor:0') self.d_boxes = self.detection_graph.get_tensor_by_name('detection_boxes:0') self.d_scores = self.detection_graph.get_tensor_by_name('detection_scores:0') self.d_classes = self.detection_graph.get_tensor_by_name('detection_classes:0') self.num_d = self.detection_graph.get_tensor_by_name('num_detections:0') self.sess = tf.Session(graph=self.detection_graph) def get_classification(self, img): # Bounding Box Detection. with self.detection_graph.as_default(): # Expand dimension since the model expects image to have shape [1, None, None, 3]. img_expanded = np.expand_dims(img, axis=0) (boxes, scores, classes, num) = self.sess.run( [self.d_boxes, self.d_scores, self.d_classes, self.num_d], feed_dict={self.image_tensor: img_expanded}) return boxes, scores, classes, num
class Trafficlightclassifier(object): def __init__(self): path_to_model = 'frozen_inference_graph.pb' self.detection_graph = tf.Graph() with self.detection_graph.as_default(): od_graph_def = tf.GraphDef() with tf.gfile.GFile(PATH_TO_MODEL, 'rb') as fid: serialized_graph = fid.read() od_graph_def.ParseFromString(serialized_graph) tf.import_graph_def(od_graph_def, name='') self.image_tensor = self.detection_graph.get_tensor_by_name('image_tensor:0') self.d_boxes = self.detection_graph.get_tensor_by_name('detection_boxes:0') self.d_scores = self.detection_graph.get_tensor_by_name('detection_scores:0') self.d_classes = self.detection_graph.get_tensor_by_name('detection_classes:0') self.num_d = self.detection_graph.get_tensor_by_name('num_detections:0') self.sess = tf.Session(graph=self.detection_graph) def get_classification(self, img): with self.detection_graph.as_default(): img_expanded = np.expand_dims(img, axis=0) (boxes, scores, classes, num) = self.sess.run([self.d_boxes, self.d_scores, self.d_classes, self.num_d], feed_dict={self.image_tensor: img_expanded}) return (boxes, scores, classes, num)
a = 1 b = 2 d = 4 c = 3 e = 6 e = 5 f = 7 g = 8
a = 1 b = 2 d = 4 c = 3 e = 6 e = 5 f = 7 g = 8
t = int(input().strip()) for a0 in range(t): b,w = input().strip().split(' ') b,w = [int(b),int(w)] x,y,z = input().strip().split(' ') x,y,z = [int(x),int(y),int(z)] cost = b*x + w*y x_cost = b*(y+z) + w*y y_cost = b*x + w*(x+z) new_cost = min(cost, x_cost, y_cost) print (new_cost)
t = int(input().strip()) for a0 in range(t): (b, w) = input().strip().split(' ') (b, w) = [int(b), int(w)] (x, y, z) = input().strip().split(' ') (x, y, z) = [int(x), int(y), int(z)] cost = b * x + w * y x_cost = b * (y + z) + w * y y_cost = b * x + w * (x + z) new_cost = min(cost, x_cost, y_cost) print(new_cost)
sum1 = 0 sum2 = 0 for i in range (1, 101, 1): sum1 = sum1 + (i**2) sum2 = sum2 + i sum2 = sum2**2 answer = sum2-sum1 print(answer)
sum1 = 0 sum2 = 0 for i in range(1, 101, 1): sum1 = sum1 + i ** 2 sum2 = sum2 + i sum2 = sum2 ** 2 answer = sum2 - sum1 print(answer)
# day 10 challenge 1 # read input ratings = [] with open('input.txt', 'r') as file: for line in file: ratings.append(int(line)) ratings.sort() ratings.append(ratings[-1] + 3) ratings.insert(0, 0) one_ct = 0 thr_ct = 0 for ind, jlt in enumerate(ratings): if ind < (len(ratings) - 1): if (ratings[ind + 1] - jlt) == 1: one_ct += 1 if (ratings[ind + 1] - jlt) == 3: thr_ct += 1 print(one_ct * thr_ct)
ratings = [] with open('input.txt', 'r') as file: for line in file: ratings.append(int(line)) ratings.sort() ratings.append(ratings[-1] + 3) ratings.insert(0, 0) one_ct = 0 thr_ct = 0 for (ind, jlt) in enumerate(ratings): if ind < len(ratings) - 1: if ratings[ind + 1] - jlt == 1: one_ct += 1 if ratings[ind + 1] - jlt == 3: thr_ct += 1 print(one_ct * thr_ct)
#!/usr/bin/env python3 n = int(input()) i = 0 while i < n: if i == 0: print(n * "*") elif 0 < i < n - 1: print("*" + ((n - 2) * " ") + "*") elif i == n - 1: print(n * "*") i = i + 1
n = int(input()) i = 0 while i < n: if i == 0: print(n * '*') elif 0 < i < n - 1: print('*' + (n - 2) * ' ' + '*') elif i == n - 1: print(n * '*') i = i + 1
# Given two words (beginWord and endWord), and a dictionary's word list, find the length of shortest transformation sequence from beginWord to endWord, such that: # Only one letter can be changed at a time. # Each transformed word must exist in the word list. Note that beginWord is not a transformed word. # For example, # Given: # beginWord = "hit" # endWord = "cog" # wordList = ["hot","dot","dog","lot","log","cog"] # As one shortest transformation is "hit" -> "hot" -> "dot" -> "dog" -> "cog", # return its length 5. # Note: # Return 0 if there is no such transformation sequence. # All words have the same length. # All words contain only lowercase alphabetic characters. # You may assume no duplicates in the word list. # You may assume beginWord and endWord are non-empty and are not the same. # Bi -BFS class Solution(object): def ladderLength(self, beginWord, endWord, wordList): """ O(NL) :type beginWord: str :type endWord: str :type wordList: List[str] :rtype: int """ if not beginWord or not endWord or not wordList: return 0 if endWord not in wordList: return 0 count = 0 wordList = set(wordList) ## Bi-way begin always small beginSet = set() endSet = set() beginSet.add(beginWord) endSet.add(endWord) while beginSet and endSet: count += 1 # change two set if len(beginSet) > len(endSet): beginSet, endSet = endSet, beginSet nextSet = set() for each_word in beginSet: for char in range(len(each_word)): for i in range(26): # not the same word if chr(97+i) != each_word[char]: new_word = each_word[:char] + chr(97+i) + each_word[char+1:] if new_word in wordList: wordList.remove(new_word) nextSet.add(new_word) if new_word in endSet: return count + 1 beginSet = nextSet return 0
class Solution(object): def ladder_length(self, beginWord, endWord, wordList): """ O(NL) :type beginWord: str :type endWord: str :type wordList: List[str] :rtype: int """ if not beginWord or not endWord or (not wordList): return 0 if endWord not in wordList: return 0 count = 0 word_list = set(wordList) begin_set = set() end_set = set() beginSet.add(beginWord) endSet.add(endWord) while beginSet and endSet: count += 1 if len(beginSet) > len(endSet): (begin_set, end_set) = (endSet, beginSet) next_set = set() for each_word in beginSet: for char in range(len(each_word)): for i in range(26): if chr(97 + i) != each_word[char]: new_word = each_word[:char] + chr(97 + i) + each_word[char + 1:] if new_word in wordList: wordList.remove(new_word) nextSet.add(new_word) if new_word in endSet: return count + 1 begin_set = nextSet return 0
# # PySNMP MIB module WWP-LEOS-FLOW-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/WWP-LEOS-FLOW-MIB # Produced by pysmi-0.3.4 at Wed May 1 15:37:57 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ValueSizeConstraint, ConstraintsIntersection, ValueRangeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueSizeConstraint", "ConstraintsIntersection", "ValueRangeConstraint", "ConstraintsUnion") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") NotificationType, TimeTicks, MibIdentifier, ObjectIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, Integer32, Gauge32, Counter32, IpAddress, Counter64, Bits, Unsigned32, ModuleIdentity, iso = mibBuilder.importSymbols("SNMPv2-SMI", "NotificationType", "TimeTicks", "MibIdentifier", "ObjectIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Integer32", "Gauge32", "Counter32", "IpAddress", "Counter64", "Bits", "Unsigned32", "ModuleIdentity", "iso") TruthValue, RowStatus, MacAddress, TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TruthValue", "RowStatus", "MacAddress", "TextualConvention", "DisplayString") wwpModulesLeos, = mibBuilder.importSymbols("WWP-SMI", "wwpModulesLeos") wwpLeosFlowMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6)) wwpLeosFlowMIB.setRevisions(('2012-03-29 00:00', '2011-02-02 00:00', '2008-06-16 17:00', '2001-04-03 17:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: wwpLeosFlowMIB.setRevisionsDescriptions(('Added new objects to support Ipv6 rate limits wwpLeosFlowCpuRateLimitIpV6Mgmt, wwpLeosFlowCpuRateLimitStatsIpV6MgmtPassed, wwpLeosFlowCpuRateLimitStatsIpV6MgmtDropped, wwpLeosFlowCpuRateLimitInet6, wwpLeosFlowCpuRateLimitStatsInet6Passed, wwpLeosFlowCpuRateLimitStatsInet6Dropped .', 'Added RAPS Frame Type into CpuRateLimit related MIB objects', 'Added the Port Service Level table and the ability to set secondary queue sizes for service levels.', 'Initial creation.',)) if mibBuilder.loadTexts: wwpLeosFlowMIB.setLastUpdated('201203290000Z') if mibBuilder.loadTexts: wwpLeosFlowMIB.setOrganization('Ciena, Inc') if mibBuilder.loadTexts: wwpLeosFlowMIB.setContactInfo('Mib Meister 115 North Sullivan Road Spokane Valley, WA 99037 USA Phone: +1 509 242 9000 Email: support@ciena.com') if mibBuilder.loadTexts: wwpLeosFlowMIB.setDescription('MIB module for the WWP FLOW specific information. This MIB module is common between 4.x and 6.x platforms.') class PriorityMapping(TextualConvention, OctetString): description = 'Represents the priority mapping. Octets in this object represents the remarked priority values for priority 0-7 respectively.' status = 'current' displayHint = '1x:' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(8, 8) fixedLength = 8 wwpLeosFlowMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1)) wwpLeosFlow = MibIdentifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1)) wwpLeosFlowNotifAttrs = MibIdentifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 2)) wwpLeosFlowNotificationPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 2)) wwpLeosFlowNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 2, 0)) wwpLeosFlowMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 3)) wwpLeosFlowMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 3, 1)) wwpLeosFlowMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 3, 2)) wwpLeosFlowAgeTime = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(10, 1000000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowAgeTime.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowAgeTime.setDescription('Specifies the age time after which mac entries will be flushed out.') wwpLeosFlowAgeTimeState = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowAgeTimeState.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowAgeTimeState.setDescription('Specifies if age time is enabled or disabled.') wwpLeosFlowServiceLevelTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 3), ) if mibBuilder.loadTexts: wwpLeosFlowServiceLevelTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelTable.setDescription('A table of flow service level entries. Following criteria must be met while creating entry in the table. - All indexes must be specified - wwpLeosFlowServiceLevelCirBW and wwpLeosFlowServiceLevelPirBW must be set. - wwpLeosFlowServiceLevelStatus must be set to create and go.') wwpLeosFlowServiceLevelEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 3, 1), ).setIndexNames((0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowServiceLevelPort"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowServiceLevelId"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowServiceLevelDirection")) if mibBuilder.loadTexts: wwpLeosFlowServiceLevelEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelEntry.setDescription('The flow service level entry in the Table.') wwpLeosFlowServiceLevelDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 3, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ingress", 1), ("egress", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowServiceLevelDirection.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelDirection.setDescription('Service level Id direction used as index in the service level entry.') wwpLeosFlowServiceLevelPort = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 3, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowServiceLevelPort.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelPort.setDescription('Port id used as index in the service level entry. If it is intended to not specify the port id in the index, this value should be set to 0.') wwpLeosFlowServiceLevelId = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 3, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowServiceLevelId.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelId.setDescription('Service level Id used as index in the service level entry.') wwpLeosFlowServiceLevelName = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 3, 1, 4), DisplayString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: wwpLeosFlowServiceLevelName.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelName.setDescription('The flow service level name associated with this service level.') wwpLeosFlowServiceLevelPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 3, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readcreate") if mibBuilder.loadTexts: wwpLeosFlowServiceLevelPriority.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelPriority.setDescription('The internal traffic-queue priority. This may also be used as a weighting factor.') wwpLeosFlowServiceLevelQueueSize = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 3, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17))).clone(namedValues=NamedValues(("size0KB", 0), ("small", 1), ("medium", 2), ("large", 3), ("jumbo", 4), ("x5", 5), ("x6", 6), ("x7", 7), ("x8", 8), ("size16KB", 9), ("size32KB", 10), ("size64KB", 11), ("size128KB", 12), ("size256KB", 13), ("size512KB", 14), ("size1MB", 15), ("size2MB", 16), ("size4MB", 17)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: wwpLeosFlowServiceLevelQueueSize.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelQueueSize.setDescription('The size of the traffic queue provisioned for this service level entry. This may also be referred to as Latency Tolerance.') wwpLeosFlowServiceLevelDropEligibility = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 3, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: wwpLeosFlowServiceLevelDropEligibility.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelDropEligibility.setDescription('This item is used to indicate whether or not frames should be dropped or queued when frame buffer resources become scarce.') wwpLeosFlowServiceLevelShareEligibility = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 3, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: wwpLeosFlowServiceLevelShareEligibility.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelShareEligibility.setDescription('This item is used to indicate whether or not a service level may be shared among entries in the flow service-mapping table.') wwpLeosFlowServiceLevelCirBW = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 3, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readcreate") if mibBuilder.loadTexts: wwpLeosFlowServiceLevelCirBW.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelCirBW.setDescription('The committed information rate (bandwidth) in Kbps associated with this service level entry.') wwpLeosFlowServiceLevelPirBW = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 3, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readcreate") if mibBuilder.loadTexts: wwpLeosFlowServiceLevelPirBW.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelPirBW.setDescription('The peak information rate (maximum bandwidth) in Kbps associated with this service level entry.') wwpLeosFlowServiceStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 3, 1, 11), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: wwpLeosFlowServiceStatus.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceStatus.setDescription("Used to manage the creation and deletion of the conceptual rows in this table. To create a row in this table, a manager must set this object to 'createAndGo'. In particular, a newly created row cannot be made active until one of the following instances have been set: - wwpLeosFlowServiceLevelCirBW - wwpLeosFlowServiceLevelPirBW.") wwpLeosFlowServiceRedCurveId = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 3, 1, 12), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(5, 64))).setMaxAccess("readcreate") if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveId.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveId.setDescription('This object is used to specifies the red curve index to be used for the given service level. If this OID is not specified, the system will use the default value of this object which is dependent on the queue size wwpLeosFlowServiceLevelQueueSize') wwpLeosFlowServiceLevelQueueSizeYellow = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 3, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("size16KB", 1), ("size32KB", 2), ("size64KB", 3), ("size128KB", 4)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: wwpLeosFlowServiceLevelQueueSizeYellow.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelQueueSizeYellow.setDescription('The size of the yellow traffic queue provisioned for this service level entry. Also known as the discard preferred queue size. ') wwpLeosFlowServiceLevelQueueSizeRed = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 3, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("size16KB", 1), ("size32KB", 2), ("size64KB", 3), ("size128KB", 4)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: wwpLeosFlowServiceLevelQueueSizeRed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelQueueSizeRed.setDescription('The size of the red traffic queue provisioned for this service level entry. Also known as the discard wanted queue size') wwpLeosFlowServiceLevelFlowGroup = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 3, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: wwpLeosFlowServiceLevelFlowGroup.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelFlowGroup.setDescription('Service level Id direction used as index in the service level entry.') wwpLeosFlowServiceMappingTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 4), ) if mibBuilder.loadTexts: wwpLeosFlowServiceMappingTable.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceMappingTable.setDescription(" A service mapping entry in the service-mapping table. To create entry in this table following criteria must be met and SNMP multiple set operation must be used to create entries. - wwpLeosFlowServiceMapDstSlidId must be set to valid SLID and this slid must exist on the device. Use wwpLeosFlowServiceLevelTable to create slid. - All indexes must be specified with exception to following objects. - wwpLeosFlowServiceMappingVid must be set to 0 if don't care else set it to some valid value. VID must exist on the device. - wwpLeosFlowServiceMappingSrcPort must be set to 0 if don't care else set it to some valid value. - wwpLeosFlowServiceMappingSrcTag must be set to 0 if don't care else set it to some valid value. - wwpLeosFlowServiceMappingDstPort must be set to 0 if don't care else set it to some valid value. - wwpLeosFlowServiceMappingDstTag must be set to 0 if don't care else set it to some valid value. - wwpLeosFlowServiceMappingProtocolType must be set to 1 if don't care else set it to some valid value. - wwpLeosFlowServiceMappingProtocolPortNum must be set to 0 if don't care else set it to some valid value. - wwpLeosFlowServiceMapSrcPri must be set to 255 if don't care else set it to some valid value.") wwpLeosFlowServiceMappingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 4, 1), ).setIndexNames((0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowServiceMapVid"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowServiceMapSrcPort"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowServiceMapSrcTag"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowServiceMapDstPort"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowServiceMapDstTag"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowServiceMapSrcPri"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowServiceMapProtocolType"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowServiceMapProtocolPortNum")) if mibBuilder.loadTexts: wwpLeosFlowServiceMappingEntry.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceMappingEntry.setDescription('A service mapping entry in the wwpLeosFlowServiceMappingTable.') wwpLeosFlowServiceMapVid = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 24576))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowServiceMapVid.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceMapVid.setDescription('The VLAN id associated with this service mapping entry. If this object is set to 0, then this object should be ignored while creating the service-mapping entry.') wwpLeosFlowServiceMapSrcPort = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowServiceMapSrcPort.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceMapSrcPort.setDescription('The source port id for the instance. This represents the ingress location of a flow. This port id should refer to the dot1dBasePort in the Dot1dBasePortEntry. If this object is set to 0, then this object should be ignored while creating the service-mapping entry.') wwpLeosFlowServiceMapSrcTag = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 4, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowServiceMapSrcTag.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceMapSrcTag.setDescription('The source VLAN tag associated with this service mapping entry. If this object is set to 0, then this object should be ignored while creating the service-mapping entry.') wwpLeosFlowServiceMapDstPort = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 4, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowServiceMapDstPort.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceMapDstPort.setDescription('The destination port id for the instance. This represents the egress location for a flow. This port id should refer to the dot1dBasePort in the Dot1dBasePortEntry. If this object is set to 0, then this object should be ignored while creating the service-mapping entry.') wwpLeosFlowServiceMapDstTag = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 4, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowServiceMapDstTag.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceMapDstTag.setDescription('The destination VLAN tag associated with this service mapping entry. If this object is set to 0, then this object should be ignored while creating the service-mapping entry.') wwpLeosFlowServiceMapSrcPri = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 4, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowServiceMapSrcPri.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceMapSrcPri.setDescription('The incoming packet vlan tag priority on the wwpLeosFlowServiceMapSrcPort. The 802.1p packet priority valid values are only from 0 to 7. If this object is set to 255 (or signed 8-bit integer -1), then this object should be ignored while creating the service-mapping entry.') wwpLeosFlowServiceMapProtocolType = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 4, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("tcp", 2), ("udp", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowServiceMapProtocolType.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceMapProtocolType.setDescription('The Layer 4 protocol type used as index in the table. This will correspond to the TCP or UDP protocol. If this object is set to 1, then this object should be ignored while creating the service-mapping entry.') wwpLeosFlowServiceMapProtocolPortNum = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 4, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowServiceMapProtocolPortNum.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceMapProtocolPortNum.setDescription('The Layer 4 protocol port number used as index in the table. This will correspond to a TCP or UDP port number. If this object is set to 0, then this object should be ignored while creating the service-mapping entry.') wwpLeosFlowServiceMapDstSlidId = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 4, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowServiceMapDstSlidId.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceMapDstSlidId.setDescription('The service level id to apply to the flow at egress. If this object is set to 0, then this object should be ignored while creating the service-mapping entry.') wwpLeosFlowServiceMapSrcSlidId = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 4, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowServiceMapSrcSlidId.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceMapSrcSlidId.setDescription('The service level id to apply to the flow at ingress. If this object is set to 0, then this object should be ignored while creating the service-mapping entry.') wwpLeosFlowServiceMapPriRemarkStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 4, 1, 11), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowServiceMapPriRemarkStatus.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceMapPriRemarkStatus.setDescription("Setting this object to 'true' will enable remarking of the VLAN tag priority for frames that match the classification defined by this service-mapping entry.") wwpLeosFlowServiceMapRemarkPri = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 4, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowServiceMapRemarkPri.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceMapRemarkPri.setDescription('The remark priority value. For frames that match the classification defined by this service-mapping entry, the VLAN tag priority will be remarked with this value.') wwpLeosFlowServiceMapStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 4, 1, 13), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: wwpLeosFlowServiceMapStatus.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceMapStatus.setDescription("Used to manage the creation and deletion of the conceptual rows in this table. To create a row in this table, a manager must set this object to 'createAndGo'.") wwpLeosFlowServiceACTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 5), ) if mibBuilder.loadTexts: wwpLeosFlowServiceACTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceACTable.setDescription('A Table of FLOW Service Access Control Entries.') wwpLeosFlowServiceACEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 5, 1), ).setIndexNames((0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowServiceACPortId"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowServiceACVid")) if mibBuilder.loadTexts: wwpLeosFlowServiceACEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceACEntry.setDescription('A service Access entry in the wwpLeosFlowServiceACTable.') wwpLeosFlowServiceACPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 5, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowServiceACPortId.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceACPortId.setDescription('Port id for the instance. This port id should refer to the dot1dBasePort in the Dot1dBasePortEntry. Used as index in service access table.') wwpLeosFlowServiceACVid = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 5, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 24576))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowServiceACVid.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceACVid.setDescription('The VLAN id associated with this access control entry. Used as index in service access table. If the platform supports only port-based service access control, this value should be set to 0.') wwpLeosFlowServiceACMaxDynamicMacCount = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 5, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readcreate") if mibBuilder.loadTexts: wwpLeosFlowServiceACMaxDynamicMacCount.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceACMaxDynamicMacCount.setDescription('The maximum number of dynamic MAC Addresses that will be learned and authorized by this access control entry. This value should default to 24.') wwpLeosFlowServiceACDynamicNonFilteredMacCount = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 5, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowServiceACDynamicNonFilteredMacCount.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceACDynamicNonFilteredMacCount.setDescription('The current number of non-filtered or authorized dynamic MAC addresses recorded in this access control entry.') wwpLeosFlowServiceACDynamicFilteredMacCount = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 5, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowServiceACDynamicFilteredMacCount.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceACDynamicFilteredMacCount.setDescription('The current number of filtered or non-authorized dynamic MAC addresses recorded in this access control entry.') wwpLeosFlowServiceACStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 5, 1, 7), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: wwpLeosFlowServiceACStatus.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceACStatus.setDescription("Used to manage the creation and deletion of the conceptual rows in this table. To create a row in this table, a manager must set this object to 'createAndGo'.") wwpLeosFlowServiceACForwardLearning = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 5, 1, 50), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("on", 1), ("off", 2))).clone('off')).setMaxAccess("readcreate") if mibBuilder.loadTexts: wwpLeosFlowServiceACForwardLearning.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceACForwardLearning.setDescription('To specify whether or not unlearned frames are forwarded or dropped.') wwpLeosFlowStaticMacTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 6), ) if mibBuilder.loadTexts: wwpLeosFlowStaticMacTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowStaticMacTable.setDescription('The (conceptual) table to add the static mac addresses.') wwpLeosFlowStaticMacEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 6, 1), ).setIndexNames((0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowSMVid"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowSMMacAddr")) if mibBuilder.loadTexts: wwpLeosFlowStaticMacEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowStaticMacEntry.setDescription('An entry (conceptual row) in the wwpLeosFlowStaticMacTable.') wwpLeosFlowSMVid = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 6, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 24576))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowSMVid.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMVid.setDescription('The service network id associated with this entry. Used as index in static MAC table.') wwpLeosFlowSMMacAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 6, 1, 2), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowSMMacAddr.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMMacAddr.setDescription('A unicast MAC address to be statically configured. Used as index in static MAC table.') wwpLeosFlowSMPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 6, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: wwpLeosFlowSMPortId.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMPortId.setDescription('Port id for the static MAC instance. This port id should refer to the dot1dBasePort in the Dot1dBasePortEntry.') wwpLeosFlowSMTag = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 6, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4095))).setMaxAccess("readcreate") if mibBuilder.loadTexts: wwpLeosFlowSMTag.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMTag.setDescription('The VLAN tag for this static MAC instance.') wwpLeosFlowSMStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 6, 1, 5), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: wwpLeosFlowSMStatus.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMStatus.setDescription("Used to manage the creation and deletion of the conceptual rows in this table. To create a row in this table, a manager must set this object to 'createAndGo'. In particular, a newly created row cannot be made active until the corresponding instances of wwpLeosFlowSMPortId and wwpLeosFlowSMTag have been set. The following objects may not be modified while the value of this object is active(1): - wwpLeosFlowSMPortId - wwpLeosFlowSMTag ") wwpLeosFlowLearnTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 7), ) if mibBuilder.loadTexts: wwpLeosFlowLearnTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowLearnTable.setDescription('A Table of flow learn entries.') wwpLeosFlowLearnEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 7, 1), ).setIndexNames((0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowLearnVid"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowLearnAddr"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowLearnSrcPort"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowLearnSrcTag"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowLearnSrcPri"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowLearnAddrType")) if mibBuilder.loadTexts: wwpLeosFlowLearnEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowLearnEntry.setDescription('A flow learn entry in the wwpLeosFlowLearnTable.') wwpLeosFlowLearnVid = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 7, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 24576))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowLearnVid.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowLearnVid.setDescription('The VLAN id associated with this flow-learn entry.') wwpLeosFlowLearnAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 7, 1, 2), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowLearnAddr.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowLearnAddr.setDescription('The address associated with this flow learn entry. Address can be layer 2 mac address or layer 3 ip address. If address is layer 3 ip address then first two bytes will be 0.') wwpLeosFlowLearnSrcPort = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 7, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowLearnSrcPort.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowLearnSrcPort.setDescription('Source port Id for the instance. This port Id should refer to the dot1dBasePort in the Dot1dBasePortEntry.') wwpLeosFlowLearnSrcTag = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 7, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4095))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowLearnSrcTag.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowLearnSrcTag.setDescription('The source VLAN tag associated with this flow-learn entry.') wwpLeosFlowLearnSrcPri = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 7, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowLearnSrcPri.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowLearnSrcPri.setDescription('The source Layer 2 priority associated with this flow-learn entry.') wwpLeosFlowLearnAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 7, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("layer2", 1), ("layer3", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowLearnAddrType.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowLearnAddrType.setDescription('The address type associated with this flow-learn entry. Address can be layer 2 type or layer 3 type.') wwpLeosFlowLearnDstPort = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 7, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowLearnDstPort.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowLearnDstPort.setDescription('Destination port id associated with this flow-learn entry. This port id should refer to the dot1dBasePort in the Dot1dBasePortEntry.') wwpLeosFlowLearnDstTag = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 7, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4095))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowLearnDstTag.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowLearnDstTag.setDescription('The destination VLAN tag associated with this flow-learn entry.') wwpLeosFlowLearnType = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 7, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("dynamic", 1), ("static", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowLearnType.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowLearnType.setDescription('The flow-learn entry type. This indicates whether or not the device was learned dynamically or entered as a static MAC.') wwpLeosFlowLearnIsFiltered = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 7, 1, 10), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowLearnIsFiltered.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowLearnIsFiltered.setDescription("This value indicates whether or not the flow-learn entry is filtered. A value of 'true' indicates the flow-learn entry is filtered.") wwpLeosFlowServiceStatsTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 8), ) if mibBuilder.loadTexts: wwpLeosFlowServiceStatsTable.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceStatsTable.setDescription('A Table of flow service statistics entries.') wwpLeosFlowServiceStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 8, 1), ).setIndexNames((0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowServiceMapVid"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowServiceMapSrcPort"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowServiceMapSrcTag"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowServiceMapDstPort"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowServiceMapDstTag"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowServiceMapSrcPri"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowServiceMapProtocolType"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowServiceMapProtocolPortNum")) if mibBuilder.loadTexts: wwpLeosFlowServiceStatsEntry.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceStatsEntry.setDescription('A flow service statistics entry in the wwpLeosFlowServiceStatsTable.') wwpLeosFlowServiceStatsRxHi = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 8, 1, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowServiceStatsRxHi.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceStatsRxHi.setDescription('The number of bytes received for this flow service entry. This counter represents the upper 32 bits of the counter value.') wwpLeosFlowServiceStatsRxLo = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 8, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowServiceStatsRxLo.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceStatsRxLo.setDescription('The number of bytes received for this flow service entry. This counter represents the lower 32 bits of the counter value.') wwpLeosFlowServiceStatsTxHi = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 8, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowServiceStatsTxHi.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceStatsTxHi.setDescription('The number of bytes transmitted for this flow service entry. This counter represents the upper 32 bits of the counter value.') wwpLeosFlowServiceStatsTxLo = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 8, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowServiceStatsTxLo.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceStatsTxLo.setDescription('The number of bytes transmitted for this flow service entry. This counter represents the lower 32 bits of the counter value.') wwpLeosFlowServiceStatsType = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 8, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("forward", 1), ("drop", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowServiceStatsType.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceStatsType.setDescription('Specifies the type of statistics for given entry.') wwpLeosFlowMacFindTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 9), ) if mibBuilder.loadTexts: wwpLeosFlowMacFindTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowMacFindTable.setDescription('A flow MAC-find table. MAC address must be specified to walk through the MIB.') wwpLeosFlowMacFindEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 9, 1), ).setIndexNames((0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowMacFindVlanId"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowMacFindMacAddr")) if mibBuilder.loadTexts: wwpLeosFlowMacFindEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowMacFindEntry.setDescription('A flow service MAC statistics table.') wwpLeosFlowMacFindMacAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 9, 1, 1), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowMacFindMacAddr.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowMacFindMacAddr.setDescription('This variable defines the mac address used as index in the MAC-find table.') wwpLeosFlowMacFindVlanId = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 9, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 24576))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowMacFindVlanId.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowMacFindVlanId.setDescription('The VLAN ID on which this MAC address is learned.') wwpLeosFlowMacFindPort = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 9, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowMacFindPort.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowMacFindPort.setDescription('This specifies the port id on which this MAC address is learned.') wwpLeosFlowMacFindVlanTag = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 9, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 24576))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowMacFindVlanTag.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowMacFindVlanTag.setDescription('This specifies the VLAN tag on which this MAC address is learned.') wwpLeosFlowPriRemapTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 10), ) if mibBuilder.loadTexts: wwpLeosFlowPriRemapTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowPriRemapTable.setDescription('The (conceptual) table to add the static mac addresses.') wwpLeosFlowPriRemapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 10, 1), ).setIndexNames((0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowUserPri")) if mibBuilder.loadTexts: wwpLeosFlowPriRemapEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowPriRemapEntry.setDescription('An entry (conceptual row) in the wwpLeosFlowStaticMacTable.') wwpLeosFlowUserPri = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 10, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowUserPri.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowUserPri.setDescription('Specifies the user priority. Also used as index in the table.') wwpLeosFlowRemappedPri = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 10, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowRemappedPri.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowRemappedPri.setDescription("Specifies the remapped priority for given 'wwpLeosFlowUserPri'.") wwpLeosFlowSMappingTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 13), ) if mibBuilder.loadTexts: wwpLeosFlowSMappingTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingTable.setDescription("A service mapping entry in the service-mapping table. To create entry in this table following criteria must be met. - The indexes to the service mapping entry consist of type-value pairs. - There are four(4) sections to the entry. -- NETWORK (type / value) -- SOURCE (type / value) -- DESTINATION (type / value) -- CLASS OF SERVICE (type / value) - All indexes must be specified with the appropriate enumerated - type. If the TYPE is set to 'none', the corresponding VALUE - MUST be set to zero(0). - - The service-mapping entry is very generic. As such, acceptable - combinations of types and values will be scrutinized by the - running platform.") wwpLeosFlowSMappingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 13, 1), ).setIndexNames((0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowSMappingNetType"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowSMappingNetValue"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowSMappingSrcType"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowSMappingSrcValue"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowSMappingDstType"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowSMappingDstValue"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowSMappingCosType"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowSMappingCosValue")) if mibBuilder.loadTexts: wwpLeosFlowSMappingEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingEntry.setDescription('A service mapping entry in the wwpLeosFlowSMappingTable.') wwpLeosFlowSMappingNetType = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 13, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("vlan", 2), ("vsi", 3), ("vsiMpls", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowSMappingNetType.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingNetType.setDescription("This object specifies the NETWORK object TYPE for the entry. - - If set to 'none', the corresponding value in - wwpLeosFlowSMappingNetValue MUST be zero(0). - - If set to vlan, a valid vlan-id must be specified. - If set to vsi, a valid ethernet virtual-switch-instance id must be specified. - If set to vsi_mpls, a valid mpls virtual-switch-instance id must be specified - - This used as index in the table.") wwpLeosFlowSMappingNetValue = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 13, 1, 2), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowSMappingNetValue.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingNetValue.setDescription('This object specifies the NETWORK object ID for the entry. - - This item must be set according to the value set - in wwpLeosFlowSMappingNetType. If wwpLeosFlowSMappingNetType - equals: - none(1): MUST be set to zero(0). - vlan(2): MUST be set to valid existing vlan id. - vsi(3): MUST be set to valid existing ethernet virtual switch id. - vsiMpls(4): MUST be set to valid existing mpls virtual switch id. - - This used as index in the table.') wwpLeosFlowSMappingSrcType = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 13, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("port", 2), ("mplsVc", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowSMappingSrcType.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingSrcType.setDescription("This object specifies the SOURCE object TYPE for the entry. - - If set to 'none', the corresponding value in - wwpLeosFlowSMappingSrcValue MUST be zero(0). - - If set to port, a valid port group id must be specified. - If set to mplsVc, a valid mpls-virtual-circuit id must be specified. - - This used as index in the table.") wwpLeosFlowSMappingSrcValue = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 13, 1, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowSMappingSrcValue.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingSrcValue.setDescription('This object specifies the SOURCE object ID for the entry. - - This item must be set according to the value set - in wwpLeosFlowSMappingSrcType. If wwpLeosFlowSMappingSrcType - equals: - none(1): MUST be set to zero(0). - port(2): MUST be set to valid existing port group id. - mplsVc(3): MUST be set to valid existing mpls-virtual-circuit id. - - This used as index in the table.') wwpLeosFlowSMappingDstType = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 13, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("port", 2), ("mplsVc", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowSMappingDstType.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingDstType.setDescription("This object specifies the DESTINATION object TYPE for the entry. - - If set to 'none', the corresponding value in - wwpLeosFlowSMappingDstValue MUST be zero(0). - - If set to port, a valid port group id must be specified. - If set to mplsVc, a valid mpls-virtual-circuit id must be specified. - - This used as index in the table.") wwpLeosFlowSMappingDstValue = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 13, 1, 6), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowSMappingDstValue.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingDstValue.setDescription('This object specifies the DESTINATION object ID for the entry. - - This item must be set according to the value set - in wwpLeosFlowSMappingDstType. If wwpLeosFlowSMappingDstType - equals: - none(1): MUST be set to zero(0). - port(2): MUST be set to valid existing port group id. - mplsVc(3): MUST be set to valid existing mpls-virtual-circuit id. - - This used as index in the table.') wwpLeosFlowSMappingCosType = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 13, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12))).clone(namedValues=NamedValues(("none", 1), ("phb", 2), ("dscp", 3), ("ipPrec", 4), ("dot1dPri", 5), ("mplsExp", 6), ("tcpSrcPort", 7), ("tcpDstPort", 8), ("udpSrcPort", 9), ("udpDstPort", 10), ("pcp", 11), ("cvlan", 12)))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowSMappingCosType.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingCosType.setDescription("This object specifies the CLASS OF SERVICE object TYPE for the entry. - - If set to 'none', the corresponding value in - wwpLeosFlowSMappingCosValue MUST be zero(0). - - If set to tcpSrcPort, tcpDstPort, udpSrcPort, or udpDstPort, - a valid, NON-ZERO tcp or udp port must be specified. - - If set to phb, a valid per-hop-behavior enumeration must be specified. - If set to dscp, a valid differentiated services code point must be specified. - If set to ipPrec, a valid ip-precedence must be specified. - If set to dot1dPri, a valid 802.1d/p priority must be specified. - If set to cvlan, a support Customer VLAN must be specified - - This used as index in the table.") wwpLeosFlowSMappingCosValue = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 13, 1, 8), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowSMappingCosValue.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingCosValue.setDescription('This object specifies the CLASS OF SERVICE object ID for the entry. - - This item must be set according to the value set - in wwpLeosFlowSMappingCosType. If wwpLeosFlowSMappingCosType - equals: - none(1): MUST be set to zero(0). - - phb(2): (1..13) - cs0(1),cs1(2),cs2(3),cs3(4),cs4(5),cs5(6),cs6(7),cs7(8), - af1(9),af2(10),af3(11),af4(12),ef(13) - - dscp(3): (0..63) - ipPrec(4): (0..7) - dot1dPri(5): (0..7) - mplsExp(6): (0..7) - - tcpSrcPort(7): (1..65535). - tcpDstPort(8): (1..65535). - udpSrcPort(9): (1..65535). - udpDstPort(10): (1..65535). - - cvlan(12): (1..4094) - - Depending on the platform, the COS type/value may be recognized for certain - frame tag-structures. For example, some platforms can recognize ipPrec, dscp - dot1dPri only for double-tagged frames. Some require untagged or single-tagged - frames to recognize TCP/UDP ports. Operator should consult the software - configuration guide for the specified product. - - This used as index in the table.') wwpLeosFlowSMappingDstSlid = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 13, 1, 9), Unsigned32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowSMappingDstSlid.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingDstSlid.setDescription('The service level id to apply to the flow at the destination point. Depending on the platform this object may or may not be set to 0 while creating the service-mapping entry. The corresponding destination-port and slid must exist in the service-level table.') wwpLeosFlowSMappingSrcSlid = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 13, 1, 10), Unsigned32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowSMappingSrcSlid.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingSrcSlid.setDescription('The service level ID to apply to the flow at the source-port. Depending on the platform this object may or may not be set to 0 while creating the service-mapping entry. The corresponding source-port and SLID must exist in the service-level table') wwpLeosFlowSMappingStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 13, 1, 11), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: wwpLeosFlowSMappingStatus.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingStatus.setDescription("Used to manage the creation and deletion of the conceptual rows in this table. To create a row in this table, a manager must set this object to 'createAndGo'.") wwpLeosFlowSMappingRedCurveOffset = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 13, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 3))).setMaxAccess("readcreate") if mibBuilder.loadTexts: wwpLeosFlowSMappingRedCurveOffset.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingRedCurveOffset.setDescription('This object specifies the red curve offset to be used for given service mapping. If this object is not set then the device will choose default red curve offset which is 0.') wwpLeosFlowSMappingCpuPort = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 13, 1, 13), TruthValue().clone('false')).setMaxAccess("readcreate") if mibBuilder.loadTexts: wwpLeosFlowSMappingCpuPort.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingCpuPort.setDescription('This object specifies if the CPU port is to be used as the src port.') wwpLeosFlowSMappingStatsTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 14), ) if mibBuilder.loadTexts: wwpLeosFlowSMappingStatsTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingStatsTable.setDescription('A Table of flow service statistics entries.') wwpLeosFlowSMappingStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 14, 1), ).setIndexNames((0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowSMappingNetType"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowSMappingNetValue"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowSMappingSrcType"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowSMappingSrcValue"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowSMappingDstType"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowSMappingDstValue"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowSMappingCosType"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowSMappingCosValue")) if mibBuilder.loadTexts: wwpLeosFlowSMappingStatsEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingStatsEntry.setDescription('A flow service statistics entry in the wwpLeosFlowSMappingStatsTable.') wwpLeosFlowSMappingStatsRxHi = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 14, 1, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowSMappingStatsRxHi.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingStatsRxHi.setDescription('The number of bytes received for this flow service entry. This counter represents the upper 32 bits of the counter value') wwpLeosFlowSMappingStatsRxLo = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 14, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowSMappingStatsRxLo.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingStatsRxLo.setDescription('The number of bytes received for this flow service entry. This counter represents the lower 32 bits of the counter value.') wwpLeosFlowSMappingStatsTxHi = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 14, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowSMappingStatsTxHi.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingStatsTxHi.setDescription('The number of bytes transmitted for this flow service entry. This counter represents the upper 32 bits of the counter value.') wwpLeosFlowSMappingStatsTxLo = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 14, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowSMappingStatsTxLo.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingStatsTxLo.setDescription('The number of bytes transmitted for this flow service entry. This counter represents the lower 32 bits of the counter value.') wwpLeosFlowSMappingStatsType = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 14, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("forward", 1), ("drop", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowSMappingStatsType.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingStatsType.setDescription('Specifies the type of statistics for given entry.') wwpLeosFlowCosSync1dToExpTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 15), ) if mibBuilder.loadTexts: wwpLeosFlowCosSync1dToExpTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosSync1dToExpTable.setDescription('A table of flow cos sync 1d to exp entries. Entries cannot be created or destroyed.') wwpLeosFlowCosSync1dToExpEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 15, 1), ).setIndexNames((0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowCosSync1dToExpMapFrom")) if mibBuilder.loadTexts: wwpLeosFlowCosSync1dToExpEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosSync1dToExpEntry.setDescription('A flow cos sync 1d to 1d entry in the wwpLeosFlowCosSync1dToExpTable.') wwpLeosFlowCosSync1dToExpMapFrom = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 15, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCosSync1dToExpMapFrom.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosSync1dToExpMapFrom.setDescription('This object is used as index in the table and represents cos 1d priority. Any frame coming in with this priority will be synchronized with priority specified by wwpLeosFlowCosSync1dToExpMapTo.') wwpLeosFlowCosSync1dToExpMapTo = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 15, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCosSync1dToExpMapTo.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosSync1dToExpMapTo.setDescription('This object specifies the remapped exp value of the frame which ingresses with dot1d priority of wwpLeosFlowCosSync1dToExpMapFrom.') wwpLeosFlowCosSyncExpTo1dTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 16), ) if mibBuilder.loadTexts: wwpLeosFlowCosSyncExpTo1dTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosSyncExpTo1dTable.setDescription('A table of flow cos sync 1d to exp entries.') wwpLeosFlowCosSyncExpTo1dEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 16, 1), ).setIndexNames((0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowCosSyncExpTo1dMapFrom")) if mibBuilder.loadTexts: wwpLeosFlowCosSyncExpTo1dEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosSyncExpTo1dEntry.setDescription('A flow cos sync 1d to 1d entry in the wwpLeosFlowCosSyncExpTo1dTable.') wwpLeosFlowCosSyncExpTo1dMapFrom = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 16, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCosSyncExpTo1dMapFrom.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosSyncExpTo1dMapFrom.setDescription('This object is used as index in the table and represents cos 1d priority. Any frame coming in with this priority will be synchronized with priority specified by wwpLeosFlowCosSyncExpTo1dMapTo.') wwpLeosFlowCosSyncExpTo1dMapTo = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 16, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCosSyncExpTo1dMapTo.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosSyncExpTo1dMapTo.setDescription('This object specifies the remapped exp value of the frame which ingresses with dot1d priority of wwpLeosFlowCosSyncExpTo1dMapFrom.') wwpLeosFlowCosSyncIpPrecTo1dTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 17), ) if mibBuilder.loadTexts: wwpLeosFlowCosSyncIpPrecTo1dTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosSyncIpPrecTo1dTable.setDescription('A table of flow cos sync IP precedence to 1d entries.') wwpLeosFlowCosSyncIpPrecTo1dEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 17, 1), ).setIndexNames((0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowCosSyncIpPrecTo1dMapFrom")) if mibBuilder.loadTexts: wwpLeosFlowCosSyncIpPrecTo1dEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosSyncIpPrecTo1dEntry.setDescription('A flow cos sync Ip Precedence to 1d entry in the wwpLeosFlowCosSyncIpPrecTo1dTable.') wwpLeosFlowCosSyncIpPrecTo1dMapFrom = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 17, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCosSyncIpPrecTo1dMapFrom.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosSyncIpPrecTo1dMapFrom.setDescription('This object is used as index in the table and represents ip precedence value. Any frame coming in with wwpLeosFlowCosSyncIpPrecTo1dMapFrom IP precedence will be synchronized with dot1d specified by wwpLeosFlowCosSyncIpPrecTo1dMapTo.') wwpLeosFlowCosSyncIpPrecTo1dMapTo = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 17, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCosSyncIpPrecTo1dMapTo.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosSyncIpPrecTo1dMapTo.setDescription('This object specifies the ip precedence value to synchronize with when the frame ingresses with ip precedence value of wwpLeosFlowCosSyncIpPrecTo1dMapFrom.') wwpLeosFlowCosSyncStdPhbTo1dTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 18), ) if mibBuilder.loadTexts: wwpLeosFlowCosSyncStdPhbTo1dTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosSyncStdPhbTo1dTable.setDescription('A table of flow cos sync standard per hop behavior to 1d or Exp entries.') wwpLeosFlowCosSyncStdPhbTo1dEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 18, 1), ).setIndexNames((0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowCosSyncStdPhbTo1dMapFrom")) if mibBuilder.loadTexts: wwpLeosFlowCosSyncStdPhbTo1dEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosSyncStdPhbTo1dEntry.setDescription('A flow cos sync standard per hop behavior to 1d entry in the wwpLeosFlowCosSyncStdPhbTo1dTable.') wwpLeosFlowCosSyncStdPhbTo1dMapFrom = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 18, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13))).clone(namedValues=NamedValues(("cs0", 1), ("cs1", 2), ("cs2", 3), ("cs3", 4), ("cs4", 5), ("cs5", 6), ("cs6", 7), ("cs7", 8), ("af1", 9), ("af2", 10), ("af3", 11), ("af4", 12), ("ef", 13)))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCosSyncStdPhbTo1dMapFrom.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosSyncStdPhbTo1dMapFrom.setDescription('This object is used as index in the table and represents AFx or EF value. Any frame coming in with wwpLeosFlowCosSyncStdPhbTo1dMapFrom AFx or EF value will be synchronized with dot1d priority specified by wwpLeosFlowCosSyncStdPhbTo1dMapTo. If wwpLeosFlowCosSyncStdPhbTo1dValue is not specified then no synchronization will happen.') wwpLeosFlowCosSyncStdPhbTo1dMapTo = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 18, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCosSyncStdPhbTo1dMapTo.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosSyncStdPhbTo1dMapTo.setDescription('This object specifies the AFx or EF dscp value to synchronize with when the frame ingresses with AFx or EF dscp value of wwpLeosFlowCosSyncDscpTo1dMapTo.') wwpLeosFlowL2SacTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 19), ) if mibBuilder.loadTexts: wwpLeosFlowL2SacTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowL2SacTable.setDescription('A table of flow l2 sac table.') wwpLeosFlowL2SacEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 19, 1), ).setIndexNames((0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowL2SacPortId"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowL2SacNetType"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowSacNetValue")) if mibBuilder.loadTexts: wwpLeosFlowL2SacEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowL2SacEntry.setDescription('Represents each entry in the l2 Sac Table') wwpLeosFlowL2SacPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 19, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowL2SacPortId.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowL2SacPortId.setDescription("This mib object is index in the table. If port is not involved in L2 SAC then set this value to 0. 0 represents don't care.") wwpLeosFlowL2SacNetType = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 19, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("vlan", 2), ("vsiEth", 3), ("vsiMpls", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowL2SacNetType.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowL2SacNetType.setDescription('This mib object is used as index in the table. This object specifies how wwpLeosFlowSacValue should be interpreted. If this object is set to none then the wwpLeosFlowSacValue must be set to 0.') wwpLeosFlowSacNetValue = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 19, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowSacNetValue.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSacNetValue.setDescription('This mib object is used as index in the table. This object is only meaningful if wwpLeosFlowL2SacNetType is not set to none.') wwpLeosFlowL2SacLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 19, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readcreate") if mibBuilder.loadTexts: wwpLeosFlowL2SacLimit.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowL2SacLimit.setDescription('This mib object specifies the l2 SAC limit. Device will not learn any mac greater than the limit specified by this object.') wwpLeosFlowL2SacCurMac = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 19, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowL2SacCurMac.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowL2SacCurMac.setDescription('This mib object specifies the current mac count for the given l2 SAC entry.') wwpLeosFlowL2SacCurFilteredMac = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 19, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowL2SacCurFilteredMac.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowL2SacCurFilteredMac.setDescription('This mib object specifies the current number of filtered macs for the given l2 SAC entry.') wwpLeosFlowL2SacOperState = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 19, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowL2SacOperState.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowL2SacOperState.setDescription('This mib object specifies the current operation state for the given l2 SAC entry.') wwpLeosFlowL2SacRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 19, 1, 8), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: wwpLeosFlowL2SacRowStatus.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowL2SacRowStatus.setDescription("Used to manage the creation and deletion of the conceptual rows in this table. To create a row in this table, a manager must set this object to 'createAndGo'.") wwpLeosFlowL2SacTrapState = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 20), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowL2SacTrapState.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowL2SacTrapState.setDescription('Specifies if device should send L2 sac traps.') wwpLeosFlowStrictQueuingState = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 21), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowStrictQueuingState.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowStrictQueuingState.setDescription('Specifies if device should adjust queues to support strict queuing.') wwpLeosFlowBwCalcMode = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 22), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("transport", 1), ("payload", 2))).clone('transport')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowBwCalcMode.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowBwCalcMode.setDescription('Specifies if the device should operate in transport or payload mode. In transport mode the frame length of an Ethernet frame used in measuring CIR will be from IFG through FCS. In payload mode the frame length of an Ethernet frame used in measuring CIR will be from the MAC DA through FCS.') wwpLeosFlowGlobal = MibIdentifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 23)) wwpLeosFlowServiceLevelFlowGroupState = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 23, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowServiceLevelFlowGroupState.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelFlowGroupState.setDescription('This object specifies the current state of service level flow groups.') wwpLeosFlowServiceMappingCosRedMappingState = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 23, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowServiceMappingCosRedMappingState.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceMappingCosRedMappingState.setDescription('This object specifies the current state of service mapping dot1d to Red offset mapping table(wwpLeosFlowCos1dToRedCurveOffsetTable). If this object is set to disable then wwpLeosFlowCos1dToRedCurveOffsetTable will not be used for dot1d to red offset mapping else it will be used.') wwpLeosFlowServiceAllRedCurveUnset = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 23, 3), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowServiceAllRedCurveUnset.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceAllRedCurveUnset.setDescription('Setting this object to true will reset all the red curves in wwpLeosFlowServiceRedCurveTable table to factory default settings.') wwpLeosFlowServiceRedCurveTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 24), ) if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveTable.setDescription('A table to configure flow service red curve table.') wwpLeosFlowServiceRedCurveEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 24, 1), ).setIndexNames((0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowServiceRedCurveIndex")) if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveEntry.setDescription('Represents each entry in the flow service RED curve table.') wwpLeosFlowServiceRedCurveIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 24, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(5, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveIndex.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveIndex.setDescription('This object is used as index in the red curve table.') wwpLeosFlowServiceRedCurveName = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 24, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 31))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveName.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveName.setDescription('This object specifies the name of the red curve.') wwpLeosFlowServiceRedCurveState = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 24, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveState.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveState.setDescription('This object specifies the current state of the red curve. This object can be set to enable or disable.') wwpLeosFlowServiceRedCurveMinThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 24, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setUnits('kbps').setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveMinThreshold.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveMinThreshold.setDescription('This represents the minimum threshold in KBytes. When the queue length associated with this service reaches this number, RED begins to drop packets matching this Service-Mappings traffic classification. The valid range is between 0 and 65535 Kbytes. The actual number varies depending on the platform.') wwpLeosFlowServiceRedCurveMaxThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 24, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setUnits('kbps').setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveMaxThreshold.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveMaxThreshold.setDescription('This represents the maximum threshold in KBytes. When the queue length associated with this service reaches this number, RED drops packets matching this Service-Mappings traffic classification at the rate specified in wwpLeosFlowServiceRedCurveDropProbability.') wwpLeosFlowServiceRedCurveDropProbability = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 24, 1, 6), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveDropProbability.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveDropProbability.setDescription('This object specifies the drop probability of a packet (matching this Service-Mapping classification) of being dropped when the queue length associated with this Service-Level reaches the value configured in wwpLeosFlowServiceMaxThreshold. The value represents a percentage (0-100).') wwpLeosFlowServiceRedCurveUnset = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 24, 1, 7), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveUnset.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveUnset.setDescription('Setting this object to true will reset the red curve settings to factory defaults.') wwpLeosFlowCos1dToRedCurveOffsetTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 25), ) if mibBuilder.loadTexts: wwpLeosFlowCos1dToRedCurveOffsetTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCos1dToRedCurveOffsetTable.setDescription('A table of flow cos 1d to red curve offset entries.') wwpLeosFlowCos1dToRedCurveOffsetEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 25, 1), ).setIndexNames((0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowCos1dToRedCurveOffset1dValue")) if mibBuilder.loadTexts: wwpLeosFlowCos1dToRedCurveOffsetEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCos1dToRedCurveOffsetEntry.setDescription('A table entry of flow cos 1d to red curve offset.') wwpLeosFlowCos1dToRedCurveOffset1dValue = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 25, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCos1dToRedCurveOffset1dValue.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCos1dToRedCurveOffset1dValue.setDescription('This object is used as index in the table and represents cos 1d priority. Any frame coming in with this priority will be mapped to red cos offset value specified by wwpLeosFlowCos1dToRedCurveOffsetValue.') wwpLeosFlowCos1dToRedCurveOffsetValue = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 25, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 3))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCos1dToRedCurveOffsetValue.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCos1dToRedCurveOffsetValue.setDescription('This object specifies the red curve offset value to be used when frame which ingresses with dot1d priority specified by wwpLeosFlowCos1dToRedCurveOffset1dValue.') wwpLeosFlowCosMapPCPTo1dTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 26), ) if mibBuilder.loadTexts: wwpLeosFlowCosMapPCPTo1dTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosMapPCPTo1dTable.setDescription('A table of flow cos mapping of PCP to .1d Pri.') wwpLeosFlowCosMapPCPTo1dEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 26, 1), ).setIndexNames((0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowCosMapPCPTo1dMapFrom")) if mibBuilder.loadTexts: wwpLeosFlowCosMapPCPTo1dEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosMapPCPTo1dEntry.setDescription('A flow cos sync standard per hop behavior to 1d entry in the wwpLeosFlowCosSyncStdPhbTo1dTable.') wwpLeosFlowCosMapPCPTo1dMapFrom = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 26, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCosMapPCPTo1dMapFrom.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosMapPCPTo1dMapFrom.setDescription('This object is used as index in the table and represents PCP priority. Any frame coming in with wwpLeosFlowCosMapPCPTo1dMapFrom priority will be mapped to .1d priority specified by wwpLeosFlowCosMapPCPTo1dMapTo. ') wwpLeosFlowCosMapPCPTo1dMapTo = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 26, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCosMapPCPTo1dMapTo.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosMapPCPTo1dMapTo.setDescription('This object specifies the .1d priority to map with when the frame ingresses with PCP priority specified by wwpLeosFlowCosMapPCPTo1dMapFrom.') wwpLeosFlowCosMap1dToPCPTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 27), ) if mibBuilder.loadTexts: wwpLeosFlowCosMap1dToPCPTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosMap1dToPCPTable.setDescription('A table of flow cos mapping of PCP to .1d Pri.') wwpLeosFlowCosMap1dToPCPEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 27, 1), ).setIndexNames((0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowCosMap1dToPCPMapFrom")) if mibBuilder.loadTexts: wwpLeosFlowCosMap1dToPCPEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosMap1dToPCPEntry.setDescription('A flow cos sync standard per hop behavior to 1d entry in the wwpLeosFlowCosSyncStdPhbTo1dTable.') wwpLeosFlowCosMap1dToPCPMapFrom = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 27, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCosMap1dToPCPMapFrom.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosMap1dToPCPMapFrom.setDescription('This object is used as index in the table and represents PCP priority. Any frame coming in with wwpLeosFlowCosMap1dToPCPMapFrom priority will be mapped to .1d priority specified by wwpLeosFlowCosMap1dToPCPMapTo. ') wwpLeosFlowCosMap1dToPCPMapTo = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 27, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCosMap1dToPCPMapTo.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosMap1dToPCPMapTo.setDescription('This object specifies the .1d priority to map with when the frame ingresses with PCP priority specified by wwpLeosFlowCosMap1dToPCPMapFrom.') wwpLeosFlowMacMotionEventsEnable = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 28), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowMacMotionEventsEnable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowMacMotionEventsEnable.setDescription('Specifies whether MAC Motion traps and syslog messages will be generated when a MAC shifts from one port/vlan to another port/vlan.') wwpLeosFlowMacMotionEventsInterval = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 29), Integer32().subtype(subtypeSpec=ValueRangeConstraint(15, 300))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowMacMotionEventsInterval.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowMacMotionEventsInterval.setDescription('The minimum time in seconds that must elapse between each MAC Motion trap and syslog message that is generated.') wwpLeosFlowCpuRateLimitsEnable = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 30), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitsEnable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitsEnable.setDescription('Enable is used to activate the port-associated rate-limits.') wwpLeosFlowCpuRateLimitTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31), ) if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitTable.setDescription('A table of flow rate limit entries. ') wwpLeosFlowCpuRateLimitEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1), ).setIndexNames((0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowCpuRateLimitPort")) if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitEntry.setDescription('The flow service level entry in the Table.') wwpLeosFlowCpuRateLimitPort = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))) if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitPort.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitPort.setDescription('Port id used as index in the rate limit entry.') wwpLeosFlowCpuRateLimitEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitEnable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitEnable.setDescription('Enable is used to activate the port-associated rate-limits.') wwpLeosFlowCpuRateLimitBootp = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2500))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitBootp.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitBootp.setDescription('Port packet-per-second rate limit for packet type.') wwpLeosFlowCpuRateLimitCfm = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2500))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitCfm.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitCfm.setDescription('Port packet-per-second rate limit for packet type.') wwpLeosFlowCpuRateLimitCft = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2500))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitCft.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitCft.setDescription('Port packet-per-second rate limit for packet type.') wwpLeosFlowCpuRateLimitDot1x = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2500))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitDot1x.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitDot1x.setDescription('Port packet-per-second rate limit for packet type.') wwpLeosFlowCpuRateLimitOam = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2500))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitOam.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitOam.setDescription('Port packet-per-second rate limit for packet type.') wwpLeosFlowCpuRateLimitEprArp = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2500))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitEprArp.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitEprArp.setDescription('Port packet-per-second rate limit for packet type.') wwpLeosFlowCpuRateLimitIgmp = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2500))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitIgmp.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitIgmp.setDescription('Port packet-per-second rate limit for packet type.') wwpLeosFlowCpuRateLimitInet = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 5000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitInet.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitInet.setDescription('Port packet-per-second rate limit for packet type .') wwpLeosFlowCpuRateLimitLacp = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2500))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitLacp.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitLacp.setDescription('Port packet-per-second rate limit for packet type.') wwpLeosFlowCpuRateLimitLldp = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2500))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitLldp.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitLldp.setDescription('Port packet-per-second rate limit for packet type.') wwpLeosFlowCpuRateLimitMpls = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2500))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitMpls.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitMpls.setDescription('Port packet-per-second rate limit for packet type.') wwpLeosFlowCpuRateLimitMstp = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 14), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 500))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitMstp.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitMstp.setDescription('Port packet-per-second rate limit for packet type.') wwpLeosFlowCpuRateLimitPeArp = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2500))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitPeArp.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitPeArp.setDescription('Port packet-per-second rate limit for packet type.') wwpLeosFlowCpuRateLimitPvst = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 16), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2500))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitPvst.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitPvst.setDescription('Port packet-per-second rate limit for packet type.') wwpLeosFlowCpuRateLimitRstp = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 17), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2500))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitRstp.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitRstp.setDescription('Port packet-per-second rate limit for packet type.') wwpLeosFlowCpuRateLimitLpbk = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 18), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2500))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitLpbk.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitLpbk.setDescription('Port packet-per-second rate limit for packet type.') wwpLeosFlowCpuRateLimitRmtLpbk = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 19), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2500))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitRmtLpbk.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitRmtLpbk.setDescription('Port packet-per-second rate limit for packet type.') wwpLeosFlowCpuRateLimitCxeRx = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 20), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 500))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitCxeRx.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitCxeRx.setDescription('Port packet-per-second rate limit for packet type.') wwpLeosFlowCpuRateLimitCxeTx = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 21), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 500))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitCxeTx.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitCxeTx.setDescription('Port packet-per-second rate limit for packet type.') wwpLeosFlowCpuRateLimitTwamp = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 22), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2500))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitTwamp.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitTwamp.setDescription('Port packet-per-second rate limit for packet type.') wwpLeosFlowCpuRateLimitDflt = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 23), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 10000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitDflt.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitDflt.setDescription('Port packet-per-second rate limit for packet type.') wwpLeosFlowCpuRateLimitTwampRsp = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 24), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2500))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitTwampRsp.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitTwampRsp.setDescription('Port packet-per-second rate limit for packet type.') wwpLeosFlowCpuRateLimitMultiCast = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 25), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitMultiCast.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitMultiCast.setDescription('Port packet-per-second rate limit for packet type.') wwpLeosFlowCpuRateLimitBroadCast = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 26), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 500))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitBroadCast.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitBroadCast.setDescription('Port packet-per-second rate limit for packet type.') wwpLeosFlowCpuRateLimitArp = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 27), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitArp.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitArp.setDescription('Port packet-per-second rate limit for packet type.') wwpLeosFlowCpuRateLimitIcmp = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 28), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitIcmp.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitIcmp.setDescription('Port packet-per-second rate limit for packet type.') wwpLeosFlowCpuRateLimitTcpSyn = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 29), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitTcpSyn.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitTcpSyn.setDescription('Port packet-per-second rate limit for packet type.') wwpLeosFlowCpuRateLimitRaps = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 30), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2500))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitRaps.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitRaps.setDescription('Port packet-per-second rate limit for packet type. Not supported on 4.x') wwpLeosFlowCpuRateLimitIpMgmt = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 31), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 5000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitIpMgmt.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitIpMgmt.setDescription('Port packet-per-second rate limit for packet type. Not supported on 4.x') wwpLeosFlowCpuRateLimitIpControl = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 32), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 5000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitIpControl.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitIpControl.setDescription('Port packet-per-second rate limit for packet type. Not supported on 4.x') wwpLeosFlowCpuRateLimitIpV6Mgmt = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 33), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 5000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitIpV6Mgmt.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitIpV6Mgmt.setDescription('Port packet-per-second rate limit for packet type.') wwpLeosFlowCpuRateLimitInet6 = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 34), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 5000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitInet6.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitInet6.setDescription('Port packet-per-second rate limit for packet type.') wwpLeosFlowCpuRateLimitStatsTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32), ) if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsTable.setDescription('A table of flow rate limit statistics entries. ') wwpLeosFlowCpuRateLimitStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1), ).setIndexNames((0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowCpuRateLimitStatsPort")) if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsEntry.setDescription('The rate limit statistics entry in the Table.') wwpLeosFlowCpuRateLimitStatsPort = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))) if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsPort.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsPort.setDescription('Port id used as index in the rate limit entry.') wwpLeosFlowCpuRateLimitStatsBootpPassed = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 2), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsBootpPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsBootpPassed.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsCfmPassed = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 3), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsCfmPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsCfmPassed.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsCftPassed = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 4), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsCftPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsCftPassed.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsDot1xPassed = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 5), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsDot1xPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsDot1xPassed.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsOamPassed = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 6), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsOamPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsOamPassed.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsEprArpPassed = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 7), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsEprArpPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsEprArpPassed.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsIgmpPassed = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 8), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIgmpPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIgmpPassed.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsInetPassed = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 9), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsInetPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsInetPassed.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsLacpPassed = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 10), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsLacpPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsLacpPassed.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsLldpPassed = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 11), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsLldpPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsLldpPassed.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsMplsPassed = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 12), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsMplsPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsMplsPassed.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsMstpPassed = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 13), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsMstpPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsMstpPassed.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsPeArpPassed = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 14), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsPeArpPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsPeArpPassed.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsPvstPassed = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 15), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsPvstPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsPvstPassed.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsRstpPassed = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 16), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsRstpPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsRstpPassed.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsLpbkPassed = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 17), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsLpbkPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsLpbkPassed.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsRmtLpbkPassed = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 18), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsRmtLpbkPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsRmtLpbkPassed.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsCxeRxPassed = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 19), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsCxeRxPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsCxeRxPassed.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsCxeTxPassed = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 20), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsCxeTxPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsCxeTxPassed.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsTwampPassed = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 21), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsTwampPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsTwampPassed.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsDfltPassed = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 22), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsDfltPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsDfltPassed.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsBootpDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 23), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsBootpDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsBootpDropped.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsCfmDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 24), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsCfmDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsCfmDropped.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsCftDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 25), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsCftDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsCftDropped.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsDot1xDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 26), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsDot1xDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsDot1xDropped.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsOamDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 27), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsOamDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsOamDropped.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsEprArpDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 28), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsEprArpDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsEprArpDropped.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsIgmpDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 29), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIgmpDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIgmpDropped.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsInetDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 30), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsInetDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsInetDropped.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsLacpDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 31), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsLacpDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsLacpDropped.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsLldpDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 32), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsLldpDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsLldpDropped.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsMplsDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 33), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsMplsDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsMplsDropped.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsMstpDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 34), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsMstpDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsMstpDropped.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsPeArpDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 35), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsPeArpDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsPeArpDropped.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsPvstDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 36), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsPvstDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsPvstDropped.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsRstpDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 37), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsRstpDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsRstpDropped.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsLpbkDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 38), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsLpbkDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsLpbkDropped.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsRmtLpbkDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 39), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsRmtLpbkDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsRmtLpbkDropped.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsCxeRxDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 40), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsCxeRxDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsCxeRxDropped.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsCxeTxDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 41), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsCxeTxDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsCxeTxDropped.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsTwampDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 42), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsTwampDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsTwampDropped.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsDfltDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 43), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsDfltDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsDfltDropped.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsTwampRspPassed = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 44), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsTwampRspPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsTwampRspPassed.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsTwampRspDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 45), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsTwampRspDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsTwampRspDropped.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsMultiCastPassed = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 46), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsMultiCastPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsMultiCastPassed.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsMultiCastDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 47), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsMultiCastDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsMultiCastDropped.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsBroadCastPassed = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 48), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsBroadCastPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsBroadCastPassed.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsBroadCastDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 49), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsBroadCastDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsBroadCastDropped.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsArpPassed = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 50), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsArpPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsArpPassed.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsArpDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 51), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsArpDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsArpDropped.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsIcmpPassed = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 52), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIcmpPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIcmpPassed.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsIcmpDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 53), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIcmpDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIcmpDropped.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsTcpSynPassed = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 54), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsTcpSynPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsTcpSynPassed.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsTcpSynDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 55), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsTcpSynDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsTcpSynDropped.setDescription('Port packet type counts.') wwpLeosFlowCpuRateLimitStatsRapsPassed = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 56), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsRapsPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsRapsPassed.setDescription('Port packet type counts.Not supported on 4.x') wwpLeosFlowCpuRateLimitStatsRapsDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 57), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsRapsDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsRapsDropped.setDescription('Port packet type counts.Not supported on 4.x') wwpLeosFlowCpuRateLimitStatsIpMgmtPassed = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 58), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIpMgmtPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIpMgmtPassed.setDescription('Port packet type counts.Not supported on 4.x') wwpLeosFlowCpuRateLimitStatsIpMgmtDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 59), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIpMgmtDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIpMgmtDropped.setDescription('Port packet type counts.Not supported on 4.x') wwpLeosFlowCpuRateLimitStatsIpControlPassed = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 60), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIpControlPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIpControlPassed.setDescription('Port packet type counts. Not supported on 4.x') wwpLeosFlowCpuRateLimitStatsIpControlDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 61), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIpControlDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIpControlDropped.setDescription('Port packet type counts. Not supported on 4.x') wwpLeosFlowCpuRateLimitStatsIpV6MgmtPassed = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 62), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIpV6MgmtPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIpV6MgmtPassed.setDescription('Port packet type counts. Not supported on 4.x') wwpLeosFlowCpuRateLimitStatsIpV6MgmtDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 63), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIpV6MgmtDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIpV6MgmtDropped.setDescription('Port packet type counts. Not supported on 4.x') wwpLeosFlowCpuRateLimitStatsInet6Passed = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 64), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsInet6Passed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsInet6Passed.setDescription('Port packet type counts for Ipv6. Not supported on 6.x') wwpLeosFlowCpuRateLimitStatsInet6Dropped = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 65), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsInet6Dropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsInet6Dropped.setDescription('Port packet type counts for Ipv6. Not supported on 6.x') wwpLeosFlowCpuRateLimitStatsClearTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 33), ) if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsClearTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsClearTable.setDescription('A table of flow rate limit entries. ') wwpLeosFlowCpuRateLimitStatsClearEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 33, 1), ).setIndexNames((0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowCpuRateLimitStatsClearPort")) if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsClearEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsClearEntry.setDescription('The flow service level entry in the Table.') wwpLeosFlowCpuRateLimitStatsClearPort = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 33, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))) if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsClearPort.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsClearPort.setDescription('Port id used as index in the rate limit statistics clear entry.') wwpLeosFlowCpuRateLimitStatsClear = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 33, 1, 2), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsClear.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsClear.setDescription('Flag indicating whether to clear port packet statistics.') wwpLeosFlowServiceLevelPortOverProvisionedTrap = NotificationType((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 2, 0, 1)).setObjects(("WWP-LEOS-FLOW-MIB", "wwpLeosFlowServiceLevelPort")) if mibBuilder.loadTexts: wwpLeosFlowServiceLevelPortOverProvisionedTrap.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelPortOverProvisionedTrap.setDescription('A wwpLeosFlowServiceLevelPortOverProvisionedTrap notification is sent when the provisioned bandwidth exceeds the total bandwidth available for a port. This situation may also occur when changes in a link aggregation group (such as deleting a port from the group) decrease the total bandwidth or at the bootTime when the link aggregation groups are formed.') wwpLeosFlowServiceLevelPortUnderProvisionedTrap = NotificationType((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 2, 0, 2)).setObjects(("WWP-LEOS-FLOW-MIB", "wwpLeosFlowServiceLevelPort")) if mibBuilder.loadTexts: wwpLeosFlowServiceLevelPortUnderProvisionedTrap.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelPortUnderProvisionedTrap.setDescription('A wwpLeosFlowServiceLevelPortUnderProvisionedTrap notification is sent when the previously over-provisioned situation is resolved for a port.') wwpLeosFlowL2SacHighThreshold = NotificationType((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 2, 0, 3)).setObjects(("WWP-LEOS-FLOW-MIB", "wwpLeosFlowL2SacPortId"), ("WWP-LEOS-FLOW-MIB", "wwpLeosFlowL2SacNetType"), ("WWP-LEOS-FLOW-MIB", "wwpLeosFlowSacNetValue")) if mibBuilder.loadTexts: wwpLeosFlowL2SacHighThreshold.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowL2SacHighThreshold.setDescription('A wwpLeosFlowL2SacHighThreshold notification is sent whenever Macs learned exceeds SAC threshold limit.') wwpLeosFlowL2SacNormalThreshold = NotificationType((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 2, 0, 4)).setObjects(("WWP-LEOS-FLOW-MIB", "wwpLeosFlowL2SacPortId"), ("WWP-LEOS-FLOW-MIB", "wwpLeosFlowL2SacNetType"), ("WWP-LEOS-FLOW-MIB", "wwpLeosFlowSacNetValue")) if mibBuilder.loadTexts: wwpLeosFlowL2SacNormalThreshold.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowL2SacNormalThreshold.setDescription('A wwpLeosFlowL2SacNormalThreshold notification is sent whenever Macs learned gets back to normal after exceeding the SAC threshold limit.') wwpLeosFlowMacMotionNotification = NotificationType((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 2, 0, 5)).setObjects(("WWP-LEOS-FLOW-MIB", "wwpLeosFlowMacMotionAttrOldPort"), ("WWP-LEOS-FLOW-MIB", "wwpLeosFlowMacMotionAttrOldVlan"), ("WWP-LEOS-FLOW-MIB", "wwpLeosFlowMacMotionAttrNewPort"), ("WWP-LEOS-FLOW-MIB", "wwpLeosFlowMacMotionAttrNewVlan"), ("WWP-LEOS-FLOW-MIB", "wwpLeosFlowMacMotionAttrMacAddr")) if mibBuilder.loadTexts: wwpLeosFlowMacMotionNotification.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowMacMotionNotification.setDescription('A wwpLeosFlowMacMotionNotification is sent whenever a learned MAC moves from one port/vlan to a new port/vlan, at a rate defined by wwpLeosFlowMacMotionEventsInterval. The five objects returned by this trap are the MAC address that moved, the original port/vlan the MAC was learned on, and the new port/vlan the MAC has moved to.') wwpLeosFlowMacMotionAttrOldPort = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 2, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65536))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: wwpLeosFlowMacMotionAttrOldPort.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowMacMotionAttrOldPort.setDescription('The port number associated with the MAC that moved.') wwpLeosFlowMacMotionAttrOldVlan = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 2, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4094))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: wwpLeosFlowMacMotionAttrOldVlan.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowMacMotionAttrOldVlan.setDescription('The vlan number associated with the MAC that moved.') wwpLeosFlowMacMotionAttrNewPort = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 2, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65536))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: wwpLeosFlowMacMotionAttrNewPort.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowMacMotionAttrNewPort.setDescription('The port number associated with the MAC that moved.') wwpLeosFlowMacMotionAttrNewVlan = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 2, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4094))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: wwpLeosFlowMacMotionAttrNewVlan.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowMacMotionAttrNewVlan.setDescription('The vlan number associated with the MAC that moved.') wwpLeosFlowMacMotionAttrMacAddr = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 2, 5), MacAddress()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: wwpLeosFlowMacMotionAttrMacAddr.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowMacMotionAttrMacAddr.setDescription('The MAC address that moved.') wwpLeosFlowServiceTotalStatsTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 34), ) if mibBuilder.loadTexts: wwpLeosFlowServiceTotalStatsTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceTotalStatsTable.setDescription('A table of flow service statistics entries.') wwpLeosFlowServiceTotalStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 34, 1), ).setIndexNames((0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowSMappingNetType"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowSMappingNetValue"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowSMappingSrcType"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowSMappingSrcValue"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowSMappingDstType"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowSMappingDstValue"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowSMappingCosType"), (0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowSMappingCosValue")) if mibBuilder.loadTexts: wwpLeosFlowServiceTotalStatsEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceTotalStatsEntry.setDescription('A flow service statistics entry in the wwpLeosFlowServiceTotalStatsTable.') wwpLeosFlowServiceTotalStatsRxHi = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 34, 1, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowServiceTotalStatsRxHi.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceTotalStatsRxHi.setDescription('The number of bytes received for this flow service entry. This counter represents the upper 32 bits of the counter value') wwpLeosFlowServiceTotalStatsRxLo = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 34, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowServiceTotalStatsRxLo.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceTotalStatsRxLo.setDescription('The number of bytes received for this flow service entry. This counter represents the lower 32 bits of the counter value.') wwpLeosFlowServiceTotalStatsTxHi = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 34, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowServiceTotalStatsTxHi.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceTotalStatsTxHi.setDescription('The number of bytes transmitted for this flow service entry. This counter represents the upper 32 bits of the counter value.') wwpLeosFlowServiceTotalStatsTxLo = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 34, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowServiceTotalStatsTxLo.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceTotalStatsTxLo.setDescription('The number of bytes transmitted for this flow service entry. This counter represents the lower 32 bits of the counter value.') wwpLeosFlowServiceTotalStatsType = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 34, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("forward", 1), ("drop", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowServiceTotalStatsType.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceTotalStatsType.setDescription('Specifies the type of statistics for given entry.') wwpLeosFlowPortServiceLevelTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 40), ) if mibBuilder.loadTexts: wwpLeosFlowPortServiceLevelTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowPortServiceLevelTable.setDescription('A Table of flow Port Service Level entries.') wwpLeosFlowPortServiceLevelEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 40, 1), ).setIndexNames((0, "WWP-LEOS-FLOW-MIB", "wwpLeosFlowPortServiceLevelPort")) if mibBuilder.loadTexts: wwpLeosFlowPortServiceLevelEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowPortServiceLevelEntry.setDescription('A flow service statistics entry in the wwpLeosFlowPortServiceLevelTable.') wwpLeosFlowPortServiceLevelPort = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 40, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosFlowPortServiceLevelPort.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowPortServiceLevelPort.setDescription('Port id used as index in the port service level entry. ') wwpLeosFlowPortServiceLevelMaxBandwidth = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 40, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 8000000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowPortServiceLevelMaxBandwidth.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowPortServiceLevelMaxBandwidth.setDescription('Sets the max egress bandwidth on a port. ') wwpLeosFlowPortServiceLevelQueueSize = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 40, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("size0KB", 0), ("size16KB", 1), ("size32KB", 2), ("size64KB", 3), ("size128KB", 4), ("size256KB", 5), ("size512KB", 6), ("size1MB", 7), ("size2MB", 8), ("size4MB", 9)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowPortServiceLevelQueueSize.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowPortServiceLevelQueueSize.setDescription('The size of the traffic queue provisioned for this port service level entry. This may also be referred to as Latency Tolerance.') wwpLeosFlowPortServiceLevelQueueSizeYellow = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 40, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("size16KB", 1), ("size32KB", 2), ("size64KB", 3), ("size128KB", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowPortServiceLevelQueueSizeYellow.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowPortServiceLevelQueueSizeYellow.setDescription('The size of the yellow traffic queue provisioned for this service level entry. Also known as the discard preferred queue size. ') wwpLeosFlowPortServiceLevelQueueSizeRed = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 40, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("size16KB", 1), ("size32KB", 2), ("size64KB", 3), ("size128KB", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowPortServiceLevelQueueSizeRed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowPortServiceLevelQueueSizeRed.setDescription('The size of the red traffic queue provisioned for this service level entry. Also known as the discard wanted queue size') wwpLeosFlowPortServiceLevelFlowGroup = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 40, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowPortServiceLevelFlowGroup.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowPortServiceLevelFlowGroup.setDescription('Service level Id direction used as index in the service level entry.') wwpLeosFlowPortServiceLevelRedCurve = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 40, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 64))).setMaxAccess("readcreate") if mibBuilder.loadTexts: wwpLeosFlowPortServiceLevelRedCurve.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowPortServiceLevelRedCurve.setDescription('This object is used to specifies the red curve index to be used for the given port service level. If this OID is not specified, the system will use the default value of this object which is the default port red-curve (zero). Valid values for this OID are 0, 5-64') wwpLeosFlowBurstConfigBacklogLimit = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 41), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 131072))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowBurstConfigBacklogLimit.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowBurstConfigBacklogLimit.setDescription('Sets the queue backlog-limit') wwpLeosFlowBurstConfigMulticastLimit = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 42), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 131072))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowBurstConfigMulticastLimit.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowBurstConfigMulticastLimit.setDescription('Sets the multicast backlog-limit') wwpLeosFlowBurstConfigVlanPriFltrOnThld = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 43), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowBurstConfigVlanPriFltrOnThld.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowBurstConfigVlanPriFltrOnThld.setDescription('The threshold of buffer use at which Vlan Priority Filtering is activated if enabled') wwpLeosFlowBurstConfigVlanPriFltrOffThld = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 44), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowBurstConfigVlanPriFltrOffThld.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowBurstConfigVlanPriFltrOffThld.setDescription('The threshold of buffer use at which Vlan Priority Filtering is deactivated if enabled') wwpLeosFlowBurstConfigVlanPriFltrPriMatch = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 45), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowBurstConfigVlanPriFltrPriMatch.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowBurstConfigVlanPriFltrPriMatch.setDescription('when the Vlan Priority filter is activated all priorities less than this are dropped') wwpLeosFlowBurstConfigVlanPriFltrState = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 46), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosFlowBurstConfigVlanPriFltrState.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowBurstConfigVlanPriFltrState.setDescription('Globaly enables or disabled the Flow Vlan Priority Filter') mibBuilder.exportSymbols("WWP-LEOS-FLOW-MIB", wwpLeosFlowMacFindMacAddr=wwpLeosFlowMacFindMacAddr, wwpLeosFlowCpuRateLimitStatsTable=wwpLeosFlowCpuRateLimitStatsTable, wwpLeosFlowSMappingEntry=wwpLeosFlowSMappingEntry, wwpLeosFlowCpuRateLimitStatsDfltDropped=wwpLeosFlowCpuRateLimitStatsDfltDropped, wwpLeosFlowCosMap1dToPCPEntry=wwpLeosFlowCosMap1dToPCPEntry, wwpLeosFlowCpuRateLimitStatsPvstDropped=wwpLeosFlowCpuRateLimitStatsPvstDropped, wwpLeosFlowCosSyncIpPrecTo1dMapTo=wwpLeosFlowCosSyncIpPrecTo1dMapTo, wwpLeosFlowServiceMapProtocolPortNum=wwpLeosFlowServiceMapProtocolPortNum, wwpLeosFlowLearnAddr=wwpLeosFlowLearnAddr, wwpLeosFlowServiceACEntry=wwpLeosFlowServiceACEntry, wwpLeosFlowPortServiceLevelMaxBandwidth=wwpLeosFlowPortServiceLevelMaxBandwidth, wwpLeosFlowServiceACDynamicFilteredMacCount=wwpLeosFlowServiceACDynamicFilteredMacCount, wwpLeosFlowCpuRateLimitStatsClear=wwpLeosFlowCpuRateLimitStatsClear, wwpLeosFlowSMappingStatsRxLo=wwpLeosFlowSMappingStatsRxLo, wwpLeosFlowSMappingCpuPort=wwpLeosFlowSMappingCpuPort, wwpLeosFlowCpuRateLimitStatsBroadCastPassed=wwpLeosFlowCpuRateLimitStatsBroadCastPassed, wwpLeosFlowNotifAttrs=wwpLeosFlowNotifAttrs, wwpLeosFlowServiceMapSrcPri=wwpLeosFlowServiceMapSrcPri, wwpLeosFlowServiceTotalStatsEntry=wwpLeosFlowServiceTotalStatsEntry, wwpLeosFlowServiceTotalStatsTxLo=wwpLeosFlowServiceTotalStatsTxLo, wwpLeosFlowCosSync1dToExpEntry=wwpLeosFlowCosSync1dToExpEntry, wwpLeosFlowServiceStatus=wwpLeosFlowServiceStatus, wwpLeosFlowCpuRateLimitStatsMplsDropped=wwpLeosFlowCpuRateLimitStatsMplsDropped, wwpLeosFlowCpuRateLimitStatsRapsPassed=wwpLeosFlowCpuRateLimitStatsRapsPassed, wwpLeosFlowCpuRateLimitStatsIcmpPassed=wwpLeosFlowCpuRateLimitStatsIcmpPassed, wwpLeosFlowCpuRateLimitStatsLacpPassed=wwpLeosFlowCpuRateLimitStatsLacpPassed, wwpLeosFlowServiceLevelPirBW=wwpLeosFlowServiceLevelPirBW, wwpLeosFlowCosSyncIpPrecTo1dTable=wwpLeosFlowCosSyncIpPrecTo1dTable, wwpLeosFlowServiceACVid=wwpLeosFlowServiceACVid, wwpLeosFlowCpuRateLimitStatsPeArpDropped=wwpLeosFlowCpuRateLimitStatsPeArpDropped, wwpLeosFlowPortServiceLevelTable=wwpLeosFlowPortServiceLevelTable, wwpLeosFlowServiceMapRemarkPri=wwpLeosFlowServiceMapRemarkPri, wwpLeosFlowSMappingDstValue=wwpLeosFlowSMappingDstValue, wwpLeosFlowCpuRateLimitPeArp=wwpLeosFlowCpuRateLimitPeArp, wwpLeosFlowServiceStatsTable=wwpLeosFlowServiceStatsTable, wwpLeosFlowBurstConfigVlanPriFltrState=wwpLeosFlowBurstConfigVlanPriFltrState, wwpLeosFlowCpuRateLimitBootp=wwpLeosFlowCpuRateLimitBootp, wwpLeosFlowL2SacCurFilteredMac=wwpLeosFlowL2SacCurFilteredMac, wwpLeosFlowMIBCompliances=wwpLeosFlowMIBCompliances, wwpLeosFlowCosMapPCPTo1dTable=wwpLeosFlowCosMapPCPTo1dTable, wwpLeosFlowCpuRateLimitBroadCast=wwpLeosFlowCpuRateLimitBroadCast, wwpLeosFlowMacMotionEventsEnable=wwpLeosFlowMacMotionEventsEnable, wwpLeosFlowCpuRateLimitStatsClearPort=wwpLeosFlowCpuRateLimitStatsClearPort, wwpLeosFlowLearnType=wwpLeosFlowLearnType, wwpLeosFlowCosMapPCPTo1dMapFrom=wwpLeosFlowCosMapPCPTo1dMapFrom, wwpLeosFlowMacMotionAttrNewVlan=wwpLeosFlowMacMotionAttrNewVlan, wwpLeosFlowLearnSrcPri=wwpLeosFlowLearnSrcPri, wwpLeosFlowBurstConfigMulticastLimit=wwpLeosFlowBurstConfigMulticastLimit, wwpLeosFlowLearnVid=wwpLeosFlowLearnVid, wwpLeosFlowServiceLevelCirBW=wwpLeosFlowServiceLevelCirBW, wwpLeosFlowCpuRateLimitStatsDot1xPassed=wwpLeosFlowCpuRateLimitStatsDot1xPassed, wwpLeosFlowLearnDstTag=wwpLeosFlowLearnDstTag, wwpLeosFlowCpuRateLimitStatsRstpDropped=wwpLeosFlowCpuRateLimitStatsRstpDropped, wwpLeosFlowSMappingSrcType=wwpLeosFlowSMappingSrcType, wwpLeosFlowCpuRateLimitEntry=wwpLeosFlowCpuRateLimitEntry, wwpLeosFlowServiceLevelShareEligibility=wwpLeosFlowServiceLevelShareEligibility, wwpLeosFlowCpuRateLimitStatsLldpDropped=wwpLeosFlowCpuRateLimitStatsLldpDropped, wwpLeosFlowL2SacNetType=wwpLeosFlowL2SacNetType, wwpLeosFlowL2SacEntry=wwpLeosFlowL2SacEntry, wwpLeosFlowLearnTable=wwpLeosFlowLearnTable, wwpLeosFlowSacNetValue=wwpLeosFlowSacNetValue, wwpLeosFlowMacMotionAttrOldVlan=wwpLeosFlowMacMotionAttrOldVlan, wwpLeosFlowServiceRedCurveEntry=wwpLeosFlowServiceRedCurveEntry, PYSNMP_MODULE_ID=wwpLeosFlowMIB, wwpLeosFlowCpuRateLimitPvst=wwpLeosFlowCpuRateLimitPvst, wwpLeosFlowServiceLevelPortOverProvisionedTrap=wwpLeosFlowServiceLevelPortOverProvisionedTrap, wwpLeosFlowMacMotionAttrOldPort=wwpLeosFlowMacMotionAttrOldPort, wwpLeosFlowServiceLevelQueueSizeYellow=wwpLeosFlowServiceLevelQueueSizeYellow, wwpLeosFlowMacFindPort=wwpLeosFlowMacFindPort, wwpLeosFlowServiceACPortId=wwpLeosFlowServiceACPortId, wwpLeosFlowBurstConfigVlanPriFltrPriMatch=wwpLeosFlowBurstConfigVlanPriFltrPriMatch, wwpLeosFlowServiceRedCurveTable=wwpLeosFlowServiceRedCurveTable, wwpLeosFlowCos1dToRedCurveOffset1dValue=wwpLeosFlowCos1dToRedCurveOffset1dValue, wwpLeosFlowCpuRateLimitStatsLldpPassed=wwpLeosFlowCpuRateLimitStatsLldpPassed, wwpLeosFlowServiceLevelQueueSize=wwpLeosFlowServiceLevelQueueSize, wwpLeosFlowCpuRateLimitStatsEprArpPassed=wwpLeosFlowCpuRateLimitStatsEprArpPassed, wwpLeosFlowLearnAddrType=wwpLeosFlowLearnAddrType, wwpLeosFlowServiceLevelPort=wwpLeosFlowServiceLevelPort, wwpLeosFlowLearnIsFiltered=wwpLeosFlowLearnIsFiltered, wwpLeosFlowServiceTotalStatsType=wwpLeosFlowServiceTotalStatsType, wwpLeosFlowPortServiceLevelFlowGroup=wwpLeosFlowPortServiceLevelFlowGroup, wwpLeosFlow=wwpLeosFlow, wwpLeosFlowCosMap1dToPCPMapTo=wwpLeosFlowCosMap1dToPCPMapTo, wwpLeosFlowServiceMappingCosRedMappingState=wwpLeosFlowServiceMappingCosRedMappingState, wwpLeosFlowCosSyncIpPrecTo1dMapFrom=wwpLeosFlowCosSyncIpPrecTo1dMapFrom, wwpLeosFlowCpuRateLimitCxeTx=wwpLeosFlowCpuRateLimitCxeTx, wwpLeosFlowCpuRateLimitStatsMplsPassed=wwpLeosFlowCpuRateLimitStatsMplsPassed, wwpLeosFlowSMappingDstType=wwpLeosFlowSMappingDstType, wwpLeosFlowSMappingSrcValue=wwpLeosFlowSMappingSrcValue, wwpLeosFlowCpuRateLimitOam=wwpLeosFlowCpuRateLimitOam, wwpLeosFlowGlobal=wwpLeosFlowGlobal, wwpLeosFlowCpuRateLimitStatsDot1xDropped=wwpLeosFlowCpuRateLimitStatsDot1xDropped, wwpLeosFlowCpuRateLimitInet=wwpLeosFlowCpuRateLimitInet, wwpLeosFlowSMStatus=wwpLeosFlowSMStatus, wwpLeosFlowServiceRedCurveDropProbability=wwpLeosFlowServiceRedCurveDropProbability, wwpLeosFlowLearnSrcPort=wwpLeosFlowLearnSrcPort, wwpLeosFlowPortServiceLevelQueueSize=wwpLeosFlowPortServiceLevelQueueSize, wwpLeosFlowCpuRateLimitStatsTcpSynDropped=wwpLeosFlowCpuRateLimitStatsTcpSynDropped, wwpLeosFlowCpuRateLimitCft=wwpLeosFlowCpuRateLimitCft, wwpLeosFlowServiceTotalStatsTable=wwpLeosFlowServiceTotalStatsTable, wwpLeosFlowLearnSrcTag=wwpLeosFlowLearnSrcTag, wwpLeosFlowCos1dToRedCurveOffsetTable=wwpLeosFlowCos1dToRedCurveOffsetTable, wwpLeosFlowPortServiceLevelQueueSizeYellow=wwpLeosFlowPortServiceLevelQueueSizeYellow, wwpLeosFlowCpuRateLimitStatsIpControlPassed=wwpLeosFlowCpuRateLimitStatsIpControlPassed, wwpLeosFlowL2SacCurMac=wwpLeosFlowL2SacCurMac, wwpLeosFlowCpuRateLimitArp=wwpLeosFlowCpuRateLimitArp, wwpLeosFlowCpuRateLimitStatsTwampDropped=wwpLeosFlowCpuRateLimitStatsTwampDropped, wwpLeosFlowServiceLevelPortUnderProvisionedTrap=wwpLeosFlowServiceLevelPortUnderProvisionedTrap, wwpLeosFlowMIBConformance=wwpLeosFlowMIBConformance, wwpLeosFlowServiceACForwardLearning=wwpLeosFlowServiceACForwardLearning, wwpLeosFlowServiceRedCurveIndex=wwpLeosFlowServiceRedCurveIndex, wwpLeosFlowSMappingStatsRxHi=wwpLeosFlowSMappingStatsRxHi, wwpLeosFlowCpuRateLimitStatsArpDropped=wwpLeosFlowCpuRateLimitStatsArpDropped, wwpLeosFlowPortServiceLevelEntry=wwpLeosFlowPortServiceLevelEntry, PriorityMapping=PriorityMapping, wwpLeosFlowServiceLevelId=wwpLeosFlowServiceLevelId, wwpLeosFlowL2SacHighThreshold=wwpLeosFlowL2SacHighThreshold, wwpLeosFlowServiceMapSrcSlidId=wwpLeosFlowServiceMapSrcSlidId, wwpLeosFlowCpuRateLimitStatsCxeTxPassed=wwpLeosFlowCpuRateLimitStatsCxeTxPassed, wwpLeosFlowServiceACStatus=wwpLeosFlowServiceACStatus, wwpLeosFlowNotifications=wwpLeosFlowNotifications, wwpLeosFlowL2SacRowStatus=wwpLeosFlowL2SacRowStatus, wwpLeosFlowCpuRateLimitStatsIpControlDropped=wwpLeosFlowCpuRateLimitStatsIpControlDropped, wwpLeosFlowBwCalcMode=wwpLeosFlowBwCalcMode, wwpLeosFlowCpuRateLimitStatsEprArpDropped=wwpLeosFlowCpuRateLimitStatsEprArpDropped, wwpLeosFlowCpuRateLimitStatsLpbkDropped=wwpLeosFlowCpuRateLimitStatsLpbkDropped, wwpLeosFlowServiceLevelDropEligibility=wwpLeosFlowServiceLevelDropEligibility, wwpLeosFlowSMappingStatus=wwpLeosFlowSMappingStatus, wwpLeosFlowCpuRateLimitStatsInet6Passed=wwpLeosFlowCpuRateLimitStatsInet6Passed, wwpLeosFlowCpuRateLimitStatsCftDropped=wwpLeosFlowCpuRateLimitStatsCftDropped, wwpLeosFlowStaticMacTable=wwpLeosFlowStaticMacTable, wwpLeosFlowCpuRateLimitCxeRx=wwpLeosFlowCpuRateLimitCxeRx, wwpLeosFlowCpuRateLimitEnable=wwpLeosFlowCpuRateLimitEnable, wwpLeosFlowSMappingSrcSlid=wwpLeosFlowSMappingSrcSlid, wwpLeosFlowSMPortId=wwpLeosFlowSMPortId, wwpLeosFlowCpuRateLimitStatsBootpPassed=wwpLeosFlowCpuRateLimitStatsBootpPassed, wwpLeosFlowCosSyncExpTo1dMapTo=wwpLeosFlowCosSyncExpTo1dMapTo, wwpLeosFlowSMMacAddr=wwpLeosFlowSMMacAddr, wwpLeosFlowCpuRateLimitRmtLpbk=wwpLeosFlowCpuRateLimitRmtLpbk, wwpLeosFlowCpuRateLimitStatsLacpDropped=wwpLeosFlowCpuRateLimitStatsLacpDropped, wwpLeosFlowCosSyncExpTo1dEntry=wwpLeosFlowCosSyncExpTo1dEntry, wwpLeosFlowServiceStatsEntry=wwpLeosFlowServiceStatsEntry, wwpLeosFlowPortServiceLevelPort=wwpLeosFlowPortServiceLevelPort, wwpLeosFlowCpuRateLimitRaps=wwpLeosFlowCpuRateLimitRaps, wwpLeosFlowMIBObjects=wwpLeosFlowMIBObjects, wwpLeosFlowCosSyncStdPhbTo1dTable=wwpLeosFlowCosSyncStdPhbTo1dTable, wwpLeosFlowServiceTotalStatsRxLo=wwpLeosFlowServiceTotalStatsRxLo, wwpLeosFlowNotificationPrefix=wwpLeosFlowNotificationPrefix, wwpLeosFlowMacFindTable=wwpLeosFlowMacFindTable, wwpLeosFlowL2SacNormalThreshold=wwpLeosFlowL2SacNormalThreshold, wwpLeosFlowSMappingNetType=wwpLeosFlowSMappingNetType, wwpLeosFlowL2SacTable=wwpLeosFlowL2SacTable, wwpLeosFlowCpuRateLimitStatsCxeTxDropped=wwpLeosFlowCpuRateLimitStatsCxeTxDropped, wwpLeosFlowServiceTotalStatsTxHi=wwpLeosFlowServiceTotalStatsTxHi, wwpLeosFlowServiceRedCurveMinThreshold=wwpLeosFlowServiceRedCurveMinThreshold, wwpLeosFlowCpuRateLimitIgmp=wwpLeosFlowCpuRateLimitIgmp, wwpLeosFlowServiceMapVid=wwpLeosFlowServiceMapVid, wwpLeosFlowCosSync1dToExpMapFrom=wwpLeosFlowCosSync1dToExpMapFrom, wwpLeosFlowBurstConfigVlanPriFltrOnThld=wwpLeosFlowBurstConfigVlanPriFltrOnThld, wwpLeosFlowCosSyncIpPrecTo1dEntry=wwpLeosFlowCosSyncIpPrecTo1dEntry, wwpLeosFlowCpuRateLimitStatsBootpDropped=wwpLeosFlowCpuRateLimitStatsBootpDropped, wwpLeosFlowCpuRateLimitStatsIgmpPassed=wwpLeosFlowCpuRateLimitStatsIgmpPassed, wwpLeosFlowCpuRateLimitStatsMultiCastPassed=wwpLeosFlowCpuRateLimitStatsMultiCastPassed, wwpLeosFlowServiceMappingTable=wwpLeosFlowServiceMappingTable, wwpLeosFlowSMappingStatsEntry=wwpLeosFlowSMappingStatsEntry, wwpLeosFlowPortServiceLevelRedCurve=wwpLeosFlowPortServiceLevelRedCurve, wwpLeosFlowCpuRateLimitLldp=wwpLeosFlowCpuRateLimitLldp, wwpLeosFlowMacMotionAttrNewPort=wwpLeosFlowMacMotionAttrNewPort, wwpLeosFlowServiceACMaxDynamicMacCount=wwpLeosFlowServiceACMaxDynamicMacCount, wwpLeosFlowCpuRateLimitTwamp=wwpLeosFlowCpuRateLimitTwamp, wwpLeosFlowServiceMapDstSlidId=wwpLeosFlowServiceMapDstSlidId, wwpLeosFlowServiceLevelPriority=wwpLeosFlowServiceLevelPriority, wwpLeosFlowCpuRateLimitsEnable=wwpLeosFlowCpuRateLimitsEnable, wwpLeosFlowServiceMapDstPort=wwpLeosFlowServiceMapDstPort, wwpLeosFlowCpuRateLimitStatsRapsDropped=wwpLeosFlowCpuRateLimitStatsRapsDropped, wwpLeosFlowCpuRateLimitStatsPort=wwpLeosFlowCpuRateLimitStatsPort, wwpLeosFlowCpuRateLimitStatsPvstPassed=wwpLeosFlowCpuRateLimitStatsPvstPassed, wwpLeosFlowCpuRateLimitCfm=wwpLeosFlowCpuRateLimitCfm, wwpLeosFlowServiceLevelFlowGroupState=wwpLeosFlowServiceLevelFlowGroupState, wwpLeosFlowCpuRateLimitStatsDfltPassed=wwpLeosFlowCpuRateLimitStatsDfltPassed, wwpLeosFlowSMappingTable=wwpLeosFlowSMappingTable, wwpLeosFlowCpuRateLimitStatsInet6Dropped=wwpLeosFlowCpuRateLimitStatsInet6Dropped, wwpLeosFlowCpuRateLimitStatsMultiCastDropped=wwpLeosFlowCpuRateLimitStatsMultiCastDropped, wwpLeosFlowCpuRateLimitStatsCfmDropped=wwpLeosFlowCpuRateLimitStatsCfmDropped, wwpLeosFlowStrictQueuingState=wwpLeosFlowStrictQueuingState, wwpLeosFlowCpuRateLimitStatsTwampPassed=wwpLeosFlowCpuRateLimitStatsTwampPassed, wwpLeosFlowServiceLevelTable=wwpLeosFlowServiceLevelTable, wwpLeosFlowCpuRateLimitDot1x=wwpLeosFlowCpuRateLimitDot1x, wwpLeosFlowServiceRedCurveMaxThreshold=wwpLeosFlowServiceRedCurveMaxThreshold, wwpLeosFlowServiceStatsTxLo=wwpLeosFlowServiceStatsTxLo, wwpLeosFlowCpuRateLimitStatsCxeRxPassed=wwpLeosFlowCpuRateLimitStatsCxeRxPassed, wwpLeosFlowCpuRateLimitStatsIpV6MgmtDropped=wwpLeosFlowCpuRateLimitStatsIpV6MgmtDropped, wwpLeosFlowPriRemapTable=wwpLeosFlowPriRemapTable, wwpLeosFlowCpuRateLimitStatsRmtLpbkPassed=wwpLeosFlowCpuRateLimitStatsRmtLpbkPassed, wwpLeosFlowSMappingDstSlid=wwpLeosFlowSMappingDstSlid, wwpLeosFlowCos1dToRedCurveOffsetValue=wwpLeosFlowCos1dToRedCurveOffsetValue, wwpLeosFlowServiceLevelName=wwpLeosFlowServiceLevelName, wwpLeosFlowSMappingCosType=wwpLeosFlowSMappingCosType, wwpLeosFlowCosSyncStdPhbTo1dMapTo=wwpLeosFlowCosSyncStdPhbTo1dMapTo, wwpLeosFlowServiceMapStatus=wwpLeosFlowServiceMapStatus, wwpLeosFlowServiceLevelQueueSizeRed=wwpLeosFlowServiceLevelQueueSizeRed, wwpLeosFlowCpuRateLimitStatsIgmpDropped=wwpLeosFlowCpuRateLimitStatsIgmpDropped, wwpLeosFlowCpuRateLimitLpbk=wwpLeosFlowCpuRateLimitLpbk, wwpLeosFlowCosSyncExpTo1dTable=wwpLeosFlowCosSyncExpTo1dTable, wwpLeosFlowServiceAllRedCurveUnset=wwpLeosFlowServiceAllRedCurveUnset, wwpLeosFlowMacMotionNotification=wwpLeosFlowMacMotionNotification, wwpLeosFlowServiceRedCurveState=wwpLeosFlowServiceRedCurveState, wwpLeosFlowServiceStatsRxHi=wwpLeosFlowServiceStatsRxHi, wwpLeosFlowCosSyncStdPhbTo1dEntry=wwpLeosFlowCosSyncStdPhbTo1dEntry, wwpLeosFlowCpuRateLimitStatsRmtLpbkDropped=wwpLeosFlowCpuRateLimitStatsRmtLpbkDropped, wwpLeosFlowCpuRateLimitStatsIpMgmtPassed=wwpLeosFlowCpuRateLimitStatsIpMgmtPassed, wwpLeosFlowPriRemapEntry=wwpLeosFlowPriRemapEntry, wwpLeosFlowCpuRateLimitRstp=wwpLeosFlowCpuRateLimitRstp, wwpLeosFlowCpuRateLimitStatsIcmpDropped=wwpLeosFlowCpuRateLimitStatsIcmpDropped, wwpLeosFlowCpuRateLimitPort=wwpLeosFlowCpuRateLimitPort, wwpLeosFlowSMappingStatsTxHi=wwpLeosFlowSMappingStatsTxHi, wwpLeosFlowMIBGroups=wwpLeosFlowMIBGroups, wwpLeosFlowUserPri=wwpLeosFlowUserPri, wwpLeosFlowServiceMapSrcPort=wwpLeosFlowServiceMapSrcPort, wwpLeosFlowStaticMacEntry=wwpLeosFlowStaticMacEntry, wwpLeosFlowServiceStatsRxLo=wwpLeosFlowServiceStatsRxLo, wwpLeosFlowMIB=wwpLeosFlowMIB, wwpLeosFlowCpuRateLimitMpls=wwpLeosFlowCpuRateLimitMpls, wwpLeosFlowCpuRateLimitStatsClearEntry=wwpLeosFlowCpuRateLimitStatsClearEntry, wwpLeosFlowCpuRateLimitStatsTwampRspDropped=wwpLeosFlowCpuRateLimitStatsTwampRspDropped, wwpLeosFlowL2SacPortId=wwpLeosFlowL2SacPortId, wwpLeosFlowCpuRateLimitStatsIpMgmtDropped=wwpLeosFlowCpuRateLimitStatsIpMgmtDropped, wwpLeosFlowSMTag=wwpLeosFlowSMTag, wwpLeosFlowMacMotionAttrMacAddr=wwpLeosFlowMacMotionAttrMacAddr, wwpLeosFlowServiceLevelDirection=wwpLeosFlowServiceLevelDirection, wwpLeosFlowLearnEntry=wwpLeosFlowLearnEntry, wwpLeosFlowBurstConfigBacklogLimit=wwpLeosFlowBurstConfigBacklogLimit, wwpLeosFlowCpuRateLimitMultiCast=wwpLeosFlowCpuRateLimitMultiCast, wwpLeosFlowCosMap1dToPCPTable=wwpLeosFlowCosMap1dToPCPTable, wwpLeosFlowCosMapPCPTo1dEntry=wwpLeosFlowCosMapPCPTo1dEntry, wwpLeosFlowCpuRateLimitStatsEntry=wwpLeosFlowCpuRateLimitStatsEntry, wwpLeosFlowCosSync1dToExpTable=wwpLeosFlowCosSync1dToExpTable, wwpLeosFlowMacFindVlanId=wwpLeosFlowMacFindVlanId, wwpLeosFlowMacMotionEventsInterval=wwpLeosFlowMacMotionEventsInterval, wwpLeosFlowCpuRateLimitStatsLpbkPassed=wwpLeosFlowCpuRateLimitStatsLpbkPassed, wwpLeosFlowCpuRateLimitStatsRstpPassed=wwpLeosFlowCpuRateLimitStatsRstpPassed, wwpLeosFlowSMappingNetValue=wwpLeosFlowSMappingNetValue, wwpLeosFlowAgeTime=wwpLeosFlowAgeTime, wwpLeosFlowSMappingStatsTxLo=wwpLeosFlowSMappingStatsTxLo, wwpLeosFlowCpuRateLimitStatsMstpDropped=wwpLeosFlowCpuRateLimitStatsMstpDropped, wwpLeosFlowSMappingCosValue=wwpLeosFlowSMappingCosValue, wwpLeosFlowCpuRateLimitIpControl=wwpLeosFlowCpuRateLimitIpControl, wwpLeosFlowSMVid=wwpLeosFlowSMVid, wwpLeosFlowMacFindVlanTag=wwpLeosFlowMacFindVlanTag, wwpLeosFlowServiceStatsTxHi=wwpLeosFlowServiceStatsTxHi, wwpLeosFlowServiceLevelEntry=wwpLeosFlowServiceLevelEntry, wwpLeosFlowCosSyncStdPhbTo1dMapFrom=wwpLeosFlowCosSyncStdPhbTo1dMapFrom, wwpLeosFlowCpuRateLimitStatsInetDropped=wwpLeosFlowCpuRateLimitStatsInetDropped, wwpLeosFlowCosSyncExpTo1dMapFrom=wwpLeosFlowCosSyncExpTo1dMapFrom) mibBuilder.exportSymbols("WWP-LEOS-FLOW-MIB", wwpLeosFlowCpuRateLimitDflt=wwpLeosFlowCpuRateLimitDflt, wwpLeosFlowCpuRateLimitInet6=wwpLeosFlowCpuRateLimitInet6, wwpLeosFlowSMappingStatsTable=wwpLeosFlowSMappingStatsTable, wwpLeosFlowCpuRateLimitLacp=wwpLeosFlowCpuRateLimitLacp, wwpLeosFlowCpuRateLimitTwampRsp=wwpLeosFlowCpuRateLimitTwampRsp, wwpLeosFlowCpuRateLimitStatsTwampRspPassed=wwpLeosFlowCpuRateLimitStatsTwampRspPassed, wwpLeosFlowServiceStatsType=wwpLeosFlowServiceStatsType, wwpLeosFlowSMappingStatsType=wwpLeosFlowSMappingStatsType, wwpLeosFlowCpuRateLimitStatsOamPassed=wwpLeosFlowCpuRateLimitStatsOamPassed, wwpLeosFlowCos1dToRedCurveOffsetEntry=wwpLeosFlowCos1dToRedCurveOffsetEntry, wwpLeosFlowL2SacTrapState=wwpLeosFlowL2SacTrapState, wwpLeosFlowCpuRateLimitIpMgmt=wwpLeosFlowCpuRateLimitIpMgmt, wwpLeosFlowCosMapPCPTo1dMapTo=wwpLeosFlowCosMapPCPTo1dMapTo, wwpLeosFlowCpuRateLimitTable=wwpLeosFlowCpuRateLimitTable, wwpLeosFlowCpuRateLimitIpV6Mgmt=wwpLeosFlowCpuRateLimitIpV6Mgmt, wwpLeosFlowServiceMappingEntry=wwpLeosFlowServiceMappingEntry, wwpLeosFlowL2SacLimit=wwpLeosFlowL2SacLimit, wwpLeosFlowServiceLevelFlowGroup=wwpLeosFlowServiceLevelFlowGroup, wwpLeosFlowMacFindEntry=wwpLeosFlowMacFindEntry, wwpLeosFlowCpuRateLimitStatsInetPassed=wwpLeosFlowCpuRateLimitStatsInetPassed, wwpLeosFlowServiceMapSrcTag=wwpLeosFlowServiceMapSrcTag, wwpLeosFlowCosSync1dToExpMapTo=wwpLeosFlowCosSync1dToExpMapTo, wwpLeosFlowLearnDstPort=wwpLeosFlowLearnDstPort, wwpLeosFlowCpuRateLimitStatsPeArpPassed=wwpLeosFlowCpuRateLimitStatsPeArpPassed, wwpLeosFlowCpuRateLimitStatsBroadCastDropped=wwpLeosFlowCpuRateLimitStatsBroadCastDropped, wwpLeosFlowSMappingRedCurveOffset=wwpLeosFlowSMappingRedCurveOffset, wwpLeosFlowAgeTimeState=wwpLeosFlowAgeTimeState, wwpLeosFlowCpuRateLimitStatsClearTable=wwpLeosFlowCpuRateLimitStatsClearTable, wwpLeosFlowServiceACTable=wwpLeosFlowServiceACTable, wwpLeosFlowCpuRateLimitTcpSyn=wwpLeosFlowCpuRateLimitTcpSyn, wwpLeosFlowPortServiceLevelQueueSizeRed=wwpLeosFlowPortServiceLevelQueueSizeRed, wwpLeosFlowCpuRateLimitEprArp=wwpLeosFlowCpuRateLimitEprArp, wwpLeosFlowCpuRateLimitStatsArpPassed=wwpLeosFlowCpuRateLimitStatsArpPassed, wwpLeosFlowServiceMapProtocolType=wwpLeosFlowServiceMapProtocolType, wwpLeosFlowRemappedPri=wwpLeosFlowRemappedPri, wwpLeosFlowBurstConfigVlanPriFltrOffThld=wwpLeosFlowBurstConfigVlanPriFltrOffThld, wwpLeosFlowServiceMapPriRemarkStatus=wwpLeosFlowServiceMapPriRemarkStatus, wwpLeosFlowServiceRedCurveId=wwpLeosFlowServiceRedCurveId, wwpLeosFlowServiceRedCurveUnset=wwpLeosFlowServiceRedCurveUnset, wwpLeosFlowCpuRateLimitIcmp=wwpLeosFlowCpuRateLimitIcmp, wwpLeosFlowCpuRateLimitStatsCxeRxDropped=wwpLeosFlowCpuRateLimitStatsCxeRxDropped, wwpLeosFlowCpuRateLimitStatsIpV6MgmtPassed=wwpLeosFlowCpuRateLimitStatsIpV6MgmtPassed, wwpLeosFlowCosMap1dToPCPMapFrom=wwpLeosFlowCosMap1dToPCPMapFrom, wwpLeosFlowServiceACDynamicNonFilteredMacCount=wwpLeosFlowServiceACDynamicNonFilteredMacCount, wwpLeosFlowServiceTotalStatsRxHi=wwpLeosFlowServiceTotalStatsRxHi, wwpLeosFlowCpuRateLimitMstp=wwpLeosFlowCpuRateLimitMstp, wwpLeosFlowL2SacOperState=wwpLeosFlowL2SacOperState, wwpLeosFlowServiceRedCurveName=wwpLeosFlowServiceRedCurveName, wwpLeosFlowServiceMapDstTag=wwpLeosFlowServiceMapDstTag, wwpLeosFlowCpuRateLimitStatsCfmPassed=wwpLeosFlowCpuRateLimitStatsCfmPassed, wwpLeosFlowCpuRateLimitStatsOamDropped=wwpLeosFlowCpuRateLimitStatsOamDropped, wwpLeosFlowCpuRateLimitStatsMstpPassed=wwpLeosFlowCpuRateLimitStatsMstpPassed, wwpLeosFlowCpuRateLimitStatsTcpSynPassed=wwpLeosFlowCpuRateLimitStatsTcpSynPassed, wwpLeosFlowCpuRateLimitStatsCftPassed=wwpLeosFlowCpuRateLimitStatsCftPassed)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, value_size_constraint, constraints_intersection, value_range_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ValueSizeConstraint', 'ConstraintsIntersection', 'ValueRangeConstraint', 'ConstraintsUnion') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (notification_type, time_ticks, mib_identifier, object_identity, mib_scalar, mib_table, mib_table_row, mib_table_column, integer32, gauge32, counter32, ip_address, counter64, bits, unsigned32, module_identity, iso) = mibBuilder.importSymbols('SNMPv2-SMI', 'NotificationType', 'TimeTicks', 'MibIdentifier', 'ObjectIdentity', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Integer32', 'Gauge32', 'Counter32', 'IpAddress', 'Counter64', 'Bits', 'Unsigned32', 'ModuleIdentity', 'iso') (truth_value, row_status, mac_address, textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TruthValue', 'RowStatus', 'MacAddress', 'TextualConvention', 'DisplayString') (wwp_modules_leos,) = mibBuilder.importSymbols('WWP-SMI', 'wwpModulesLeos') wwp_leos_flow_mib = module_identity((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6)) wwpLeosFlowMIB.setRevisions(('2012-03-29 00:00', '2011-02-02 00:00', '2008-06-16 17:00', '2001-04-03 17:00')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: wwpLeosFlowMIB.setRevisionsDescriptions(('Added new objects to support Ipv6 rate limits wwpLeosFlowCpuRateLimitIpV6Mgmt, wwpLeosFlowCpuRateLimitStatsIpV6MgmtPassed, wwpLeosFlowCpuRateLimitStatsIpV6MgmtDropped, wwpLeosFlowCpuRateLimitInet6, wwpLeosFlowCpuRateLimitStatsInet6Passed, wwpLeosFlowCpuRateLimitStatsInet6Dropped .', 'Added RAPS Frame Type into CpuRateLimit related MIB objects', 'Added the Port Service Level table and the ability to set secondary queue sizes for service levels.', 'Initial creation.')) if mibBuilder.loadTexts: wwpLeosFlowMIB.setLastUpdated('201203290000Z') if mibBuilder.loadTexts: wwpLeosFlowMIB.setOrganization('Ciena, Inc') if mibBuilder.loadTexts: wwpLeosFlowMIB.setContactInfo('Mib Meister 115 North Sullivan Road Spokane Valley, WA 99037 USA Phone: +1 509 242 9000 Email: support@ciena.com') if mibBuilder.loadTexts: wwpLeosFlowMIB.setDescription('MIB module for the WWP FLOW specific information. This MIB module is common between 4.x and 6.x platforms.') class Prioritymapping(TextualConvention, OctetString): description = 'Represents the priority mapping. Octets in this object represents the remarked priority values for priority 0-7 respectively.' status = 'current' display_hint = '1x:' subtype_spec = OctetString.subtypeSpec + value_size_constraint(8, 8) fixed_length = 8 wwp_leos_flow_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1)) wwp_leos_flow = mib_identifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1)) wwp_leos_flow_notif_attrs = mib_identifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 2)) wwp_leos_flow_notification_prefix = mib_identifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 2)) wwp_leos_flow_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 2, 0)) wwp_leos_flow_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 3)) wwp_leos_flow_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 3, 1)) wwp_leos_flow_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 3, 2)) wwp_leos_flow_age_time = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(10, 1000000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowAgeTime.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowAgeTime.setDescription('Specifies the age time after which mac entries will be flushed out.') wwp_leos_flow_age_time_state = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowAgeTimeState.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowAgeTimeState.setDescription('Specifies if age time is enabled or disabled.') wwp_leos_flow_service_level_table = mib_table((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 3)) if mibBuilder.loadTexts: wwpLeosFlowServiceLevelTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelTable.setDescription('A table of flow service level entries. Following criteria must be met while creating entry in the table. - All indexes must be specified - wwpLeosFlowServiceLevelCirBW and wwpLeosFlowServiceLevelPirBW must be set. - wwpLeosFlowServiceLevelStatus must be set to create and go.') wwp_leos_flow_service_level_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 3, 1)).setIndexNames((0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowServiceLevelPort'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowServiceLevelId'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowServiceLevelDirection')) if mibBuilder.loadTexts: wwpLeosFlowServiceLevelEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelEntry.setDescription('The flow service level entry in the Table.') wwp_leos_flow_service_level_direction = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 3, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('ingress', 1), ('egress', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelDirection.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelDirection.setDescription('Service level Id direction used as index in the service level entry.') wwp_leos_flow_service_level_port = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 3, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelPort.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelPort.setDescription('Port id used as index in the service level entry. If it is intended to not specify the port id in the index, this value should be set to 0.') wwp_leos_flow_service_level_id = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 3, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelId.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelId.setDescription('Service level Id used as index in the service level entry.') wwp_leos_flow_service_level_name = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 3, 1, 4), display_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelName.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelName.setDescription('The flow service level name associated with this service level.') wwp_leos_flow_service_level_priority = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 3, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readcreate') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelPriority.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelPriority.setDescription('The internal traffic-queue priority. This may also be used as a weighting factor.') wwp_leos_flow_service_level_queue_size = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 3, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17))).clone(namedValues=named_values(('size0KB', 0), ('small', 1), ('medium', 2), ('large', 3), ('jumbo', 4), ('x5', 5), ('x6', 6), ('x7', 7), ('x8', 8), ('size16KB', 9), ('size32KB', 10), ('size64KB', 11), ('size128KB', 12), ('size256KB', 13), ('size512KB', 14), ('size1MB', 15), ('size2MB', 16), ('size4MB', 17)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelQueueSize.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelQueueSize.setDescription('The size of the traffic queue provisioned for this service level entry. This may also be referred to as Latency Tolerance.') wwp_leos_flow_service_level_drop_eligibility = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 3, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelDropEligibility.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelDropEligibility.setDescription('This item is used to indicate whether or not frames should be dropped or queued when frame buffer resources become scarce.') wwp_leos_flow_service_level_share_eligibility = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 3, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelShareEligibility.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelShareEligibility.setDescription('This item is used to indicate whether or not a service level may be shared among entries in the flow service-mapping table.') wwp_leos_flow_service_level_cir_bw = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 3, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readcreate') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelCirBW.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelCirBW.setDescription('The committed information rate (bandwidth) in Kbps associated with this service level entry.') wwp_leos_flow_service_level_pir_bw = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 3, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readcreate') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelPirBW.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelPirBW.setDescription('The peak information rate (maximum bandwidth) in Kbps associated with this service level entry.') wwp_leos_flow_service_status = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 3, 1, 11), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: wwpLeosFlowServiceStatus.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceStatus.setDescription("Used to manage the creation and deletion of the conceptual rows in this table. To create a row in this table, a manager must set this object to 'createAndGo'. In particular, a newly created row cannot be made active until one of the following instances have been set: - wwpLeosFlowServiceLevelCirBW - wwpLeosFlowServiceLevelPirBW.") wwp_leos_flow_service_red_curve_id = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 3, 1, 12), unsigned32().subtype(subtypeSpec=value_range_constraint(5, 64))).setMaxAccess('readcreate') if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveId.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveId.setDescription('This object is used to specifies the red curve index to be used for the given service level. If this OID is not specified, the system will use the default value of this object which is dependent on the queue size wwpLeosFlowServiceLevelQueueSize') wwp_leos_flow_service_level_queue_size_yellow = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 3, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('size16KB', 1), ('size32KB', 2), ('size64KB', 3), ('size128KB', 4)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelQueueSizeYellow.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelQueueSizeYellow.setDescription('The size of the yellow traffic queue provisioned for this service level entry. Also known as the discard preferred queue size. ') wwp_leos_flow_service_level_queue_size_red = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 3, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('size16KB', 1), ('size32KB', 2), ('size64KB', 3), ('size128KB', 4)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelQueueSizeRed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelQueueSizeRed.setDescription('The size of the red traffic queue provisioned for this service level entry. Also known as the discard wanted queue size') wwp_leos_flow_service_level_flow_group = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 3, 1, 15), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelFlowGroup.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelFlowGroup.setDescription('Service level Id direction used as index in the service level entry.') wwp_leos_flow_service_mapping_table = mib_table((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 4)) if mibBuilder.loadTexts: wwpLeosFlowServiceMappingTable.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceMappingTable.setDescription(" A service mapping entry in the service-mapping table. To create entry in this table following criteria must be met and SNMP multiple set operation must be used to create entries. - wwpLeosFlowServiceMapDstSlidId must be set to valid SLID and this slid must exist on the device. Use wwpLeosFlowServiceLevelTable to create slid. - All indexes must be specified with exception to following objects. - wwpLeosFlowServiceMappingVid must be set to 0 if don't care else set it to some valid value. VID must exist on the device. - wwpLeosFlowServiceMappingSrcPort must be set to 0 if don't care else set it to some valid value. - wwpLeosFlowServiceMappingSrcTag must be set to 0 if don't care else set it to some valid value. - wwpLeosFlowServiceMappingDstPort must be set to 0 if don't care else set it to some valid value. - wwpLeosFlowServiceMappingDstTag must be set to 0 if don't care else set it to some valid value. - wwpLeosFlowServiceMappingProtocolType must be set to 1 if don't care else set it to some valid value. - wwpLeosFlowServiceMappingProtocolPortNum must be set to 0 if don't care else set it to some valid value. - wwpLeosFlowServiceMapSrcPri must be set to 255 if don't care else set it to some valid value.") wwp_leos_flow_service_mapping_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 4, 1)).setIndexNames((0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowServiceMapVid'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowServiceMapSrcPort'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowServiceMapSrcTag'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowServiceMapDstPort'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowServiceMapDstTag'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowServiceMapSrcPri'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowServiceMapProtocolType'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowServiceMapProtocolPortNum')) if mibBuilder.loadTexts: wwpLeosFlowServiceMappingEntry.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceMappingEntry.setDescription('A service mapping entry in the wwpLeosFlowServiceMappingTable.') wwp_leos_flow_service_map_vid = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 4, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 24576))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowServiceMapVid.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceMapVid.setDescription('The VLAN id associated with this service mapping entry. If this object is set to 0, then this object should be ignored while creating the service-mapping entry.') wwp_leos_flow_service_map_src_port = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 4, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowServiceMapSrcPort.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceMapSrcPort.setDescription('The source port id for the instance. This represents the ingress location of a flow. This port id should refer to the dot1dBasePort in the Dot1dBasePortEntry. If this object is set to 0, then this object should be ignored while creating the service-mapping entry.') wwp_leos_flow_service_map_src_tag = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 4, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 4095))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowServiceMapSrcTag.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceMapSrcTag.setDescription('The source VLAN tag associated with this service mapping entry. If this object is set to 0, then this object should be ignored while creating the service-mapping entry.') wwp_leos_flow_service_map_dst_port = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 4, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowServiceMapDstPort.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceMapDstPort.setDescription('The destination port id for the instance. This represents the egress location for a flow. This port id should refer to the dot1dBasePort in the Dot1dBasePortEntry. If this object is set to 0, then this object should be ignored while creating the service-mapping entry.') wwp_leos_flow_service_map_dst_tag = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 4, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 4095))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowServiceMapDstTag.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceMapDstTag.setDescription('The destination VLAN tag associated with this service mapping entry. If this object is set to 0, then this object should be ignored while creating the service-mapping entry.') wwp_leos_flow_service_map_src_pri = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 4, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowServiceMapSrcPri.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceMapSrcPri.setDescription('The incoming packet vlan tag priority on the wwpLeosFlowServiceMapSrcPort. The 802.1p packet priority valid values are only from 0 to 7. If this object is set to 255 (or signed 8-bit integer -1), then this object should be ignored while creating the service-mapping entry.') wwp_leos_flow_service_map_protocol_type = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 4, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('none', 1), ('tcp', 2), ('udp', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowServiceMapProtocolType.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceMapProtocolType.setDescription('The Layer 4 protocol type used as index in the table. This will correspond to the TCP or UDP protocol. If this object is set to 1, then this object should be ignored while creating the service-mapping entry.') wwp_leos_flow_service_map_protocol_port_num = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 4, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowServiceMapProtocolPortNum.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceMapProtocolPortNum.setDescription('The Layer 4 protocol port number used as index in the table. This will correspond to a TCP or UDP port number. If this object is set to 0, then this object should be ignored while creating the service-mapping entry.') wwp_leos_flow_service_map_dst_slid_id = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 4, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 4095))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowServiceMapDstSlidId.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceMapDstSlidId.setDescription('The service level id to apply to the flow at egress. If this object is set to 0, then this object should be ignored while creating the service-mapping entry.') wwp_leos_flow_service_map_src_slid_id = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 4, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 4095))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowServiceMapSrcSlidId.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceMapSrcSlidId.setDescription('The service level id to apply to the flow at ingress. If this object is set to 0, then this object should be ignored while creating the service-mapping entry.') wwp_leos_flow_service_map_pri_remark_status = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 4, 1, 11), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowServiceMapPriRemarkStatus.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceMapPriRemarkStatus.setDescription("Setting this object to 'true' will enable remarking of the VLAN tag priority for frames that match the classification defined by this service-mapping entry.") wwp_leos_flow_service_map_remark_pri = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 4, 1, 12), integer32().subtype(subtypeSpec=value_range_constraint(0, 4095))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowServiceMapRemarkPri.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceMapRemarkPri.setDescription('The remark priority value. For frames that match the classification defined by this service-mapping entry, the VLAN tag priority will be remarked with this value.') wwp_leos_flow_service_map_status = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 4, 1, 13), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: wwpLeosFlowServiceMapStatus.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceMapStatus.setDescription("Used to manage the creation and deletion of the conceptual rows in this table. To create a row in this table, a manager must set this object to 'createAndGo'.") wwp_leos_flow_service_ac_table = mib_table((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 5)) if mibBuilder.loadTexts: wwpLeosFlowServiceACTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceACTable.setDescription('A Table of FLOW Service Access Control Entries.') wwp_leos_flow_service_ac_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 5, 1)).setIndexNames((0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowServiceACPortId'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowServiceACVid')) if mibBuilder.loadTexts: wwpLeosFlowServiceACEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceACEntry.setDescription('A service Access entry in the wwpLeosFlowServiceACTable.') wwp_leos_flow_service_ac_port_id = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 5, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowServiceACPortId.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceACPortId.setDescription('Port id for the instance. This port id should refer to the dot1dBasePort in the Dot1dBasePortEntry. Used as index in service access table.') wwp_leos_flow_service_ac_vid = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 5, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 24576))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowServiceACVid.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceACVid.setDescription('The VLAN id associated with this access control entry. Used as index in service access table. If the platform supports only port-based service access control, this value should be set to 0.') wwp_leos_flow_service_ac_max_dynamic_mac_count = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 5, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readcreate') if mibBuilder.loadTexts: wwpLeosFlowServiceACMaxDynamicMacCount.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceACMaxDynamicMacCount.setDescription('The maximum number of dynamic MAC Addresses that will be learned and authorized by this access control entry. This value should default to 24.') wwp_leos_flow_service_ac_dynamic_non_filtered_mac_count = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 5, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowServiceACDynamicNonFilteredMacCount.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceACDynamicNonFilteredMacCount.setDescription('The current number of non-filtered or authorized dynamic MAC addresses recorded in this access control entry.') wwp_leos_flow_service_ac_dynamic_filtered_mac_count = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 5, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowServiceACDynamicFilteredMacCount.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceACDynamicFilteredMacCount.setDescription('The current number of filtered or non-authorized dynamic MAC addresses recorded in this access control entry.') wwp_leos_flow_service_ac_status = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 5, 1, 7), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: wwpLeosFlowServiceACStatus.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceACStatus.setDescription("Used to manage the creation and deletion of the conceptual rows in this table. To create a row in this table, a manager must set this object to 'createAndGo'.") wwp_leos_flow_service_ac_forward_learning = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 5, 1, 50), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('on', 1), ('off', 2))).clone('off')).setMaxAccess('readcreate') if mibBuilder.loadTexts: wwpLeosFlowServiceACForwardLearning.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceACForwardLearning.setDescription('To specify whether or not unlearned frames are forwarded or dropped.') wwp_leos_flow_static_mac_table = mib_table((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 6)) if mibBuilder.loadTexts: wwpLeosFlowStaticMacTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowStaticMacTable.setDescription('The (conceptual) table to add the static mac addresses.') wwp_leos_flow_static_mac_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 6, 1)).setIndexNames((0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowSMVid'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowSMMacAddr')) if mibBuilder.loadTexts: wwpLeosFlowStaticMacEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowStaticMacEntry.setDescription('An entry (conceptual row) in the wwpLeosFlowStaticMacTable.') wwp_leos_flow_sm_vid = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 6, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 24576))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowSMVid.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMVid.setDescription('The service network id associated with this entry. Used as index in static MAC table.') wwp_leos_flow_sm_mac_addr = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 6, 1, 2), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowSMMacAddr.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMMacAddr.setDescription('A unicast MAC address to be statically configured. Used as index in static MAC table.') wwp_leos_flow_sm_port_id = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 6, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: wwpLeosFlowSMPortId.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMPortId.setDescription('Port id for the static MAC instance. This port id should refer to the dot1dBasePort in the Dot1dBasePortEntry.') wwp_leos_flow_sm_tag = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 6, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 4095))).setMaxAccess('readcreate') if mibBuilder.loadTexts: wwpLeosFlowSMTag.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMTag.setDescription('The VLAN tag for this static MAC instance.') wwp_leos_flow_sm_status = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 6, 1, 5), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: wwpLeosFlowSMStatus.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMStatus.setDescription("Used to manage the creation and deletion of the conceptual rows in this table. To create a row in this table, a manager must set this object to 'createAndGo'. In particular, a newly created row cannot be made active until the corresponding instances of wwpLeosFlowSMPortId and wwpLeosFlowSMTag have been set. The following objects may not be modified while the value of this object is active(1): - wwpLeosFlowSMPortId - wwpLeosFlowSMTag ") wwp_leos_flow_learn_table = mib_table((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 7)) if mibBuilder.loadTexts: wwpLeosFlowLearnTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowLearnTable.setDescription('A Table of flow learn entries.') wwp_leos_flow_learn_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 7, 1)).setIndexNames((0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowLearnVid'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowLearnAddr'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowLearnSrcPort'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowLearnSrcTag'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowLearnSrcPri'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowLearnAddrType')) if mibBuilder.loadTexts: wwpLeosFlowLearnEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowLearnEntry.setDescription('A flow learn entry in the wwpLeosFlowLearnTable.') wwp_leos_flow_learn_vid = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 7, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 24576))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowLearnVid.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowLearnVid.setDescription('The VLAN id associated with this flow-learn entry.') wwp_leos_flow_learn_addr = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 7, 1, 2), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowLearnAddr.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowLearnAddr.setDescription('The address associated with this flow learn entry. Address can be layer 2 mac address or layer 3 ip address. If address is layer 3 ip address then first two bytes will be 0.') wwp_leos_flow_learn_src_port = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 7, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowLearnSrcPort.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowLearnSrcPort.setDescription('Source port Id for the instance. This port Id should refer to the dot1dBasePort in the Dot1dBasePortEntry.') wwp_leos_flow_learn_src_tag = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 7, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 4095))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowLearnSrcTag.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowLearnSrcTag.setDescription('The source VLAN tag associated with this flow-learn entry.') wwp_leos_flow_learn_src_pri = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 7, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowLearnSrcPri.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowLearnSrcPri.setDescription('The source Layer 2 priority associated with this flow-learn entry.') wwp_leos_flow_learn_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 7, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('layer2', 1), ('layer3', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowLearnAddrType.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowLearnAddrType.setDescription('The address type associated with this flow-learn entry. Address can be layer 2 type or layer 3 type.') wwp_leos_flow_learn_dst_port = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 7, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowLearnDstPort.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowLearnDstPort.setDescription('Destination port id associated with this flow-learn entry. This port id should refer to the dot1dBasePort in the Dot1dBasePortEntry.') wwp_leos_flow_learn_dst_tag = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 7, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(1, 4095))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowLearnDstTag.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowLearnDstTag.setDescription('The destination VLAN tag associated with this flow-learn entry.') wwp_leos_flow_learn_type = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 7, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('dynamic', 1), ('static', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowLearnType.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowLearnType.setDescription('The flow-learn entry type. This indicates whether or not the device was learned dynamically or entered as a static MAC.') wwp_leos_flow_learn_is_filtered = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 7, 1, 10), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowLearnIsFiltered.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowLearnIsFiltered.setDescription("This value indicates whether or not the flow-learn entry is filtered. A value of 'true' indicates the flow-learn entry is filtered.") wwp_leos_flow_service_stats_table = mib_table((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 8)) if mibBuilder.loadTexts: wwpLeosFlowServiceStatsTable.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceStatsTable.setDescription('A Table of flow service statistics entries.') wwp_leos_flow_service_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 8, 1)).setIndexNames((0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowServiceMapVid'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowServiceMapSrcPort'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowServiceMapSrcTag'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowServiceMapDstPort'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowServiceMapDstTag'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowServiceMapSrcPri'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowServiceMapProtocolType'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowServiceMapProtocolPortNum')) if mibBuilder.loadTexts: wwpLeosFlowServiceStatsEntry.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceStatsEntry.setDescription('A flow service statistics entry in the wwpLeosFlowServiceStatsTable.') wwp_leos_flow_service_stats_rx_hi = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 8, 1, 1), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowServiceStatsRxHi.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceStatsRxHi.setDescription('The number of bytes received for this flow service entry. This counter represents the upper 32 bits of the counter value.') wwp_leos_flow_service_stats_rx_lo = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 8, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowServiceStatsRxLo.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceStatsRxLo.setDescription('The number of bytes received for this flow service entry. This counter represents the lower 32 bits of the counter value.') wwp_leos_flow_service_stats_tx_hi = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 8, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowServiceStatsTxHi.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceStatsTxHi.setDescription('The number of bytes transmitted for this flow service entry. This counter represents the upper 32 bits of the counter value.') wwp_leos_flow_service_stats_tx_lo = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 8, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowServiceStatsTxLo.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceStatsTxLo.setDescription('The number of bytes transmitted for this flow service entry. This counter represents the lower 32 bits of the counter value.') wwp_leos_flow_service_stats_type = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 8, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('forward', 1), ('drop', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowServiceStatsType.setStatus('deprecated') if mibBuilder.loadTexts: wwpLeosFlowServiceStatsType.setDescription('Specifies the type of statistics for given entry.') wwp_leos_flow_mac_find_table = mib_table((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 9)) if mibBuilder.loadTexts: wwpLeosFlowMacFindTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowMacFindTable.setDescription('A flow MAC-find table. MAC address must be specified to walk through the MIB.') wwp_leos_flow_mac_find_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 9, 1)).setIndexNames((0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowMacFindVlanId'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowMacFindMacAddr')) if mibBuilder.loadTexts: wwpLeosFlowMacFindEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowMacFindEntry.setDescription('A flow service MAC statistics table.') wwp_leos_flow_mac_find_mac_addr = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 9, 1, 1), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowMacFindMacAddr.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowMacFindMacAddr.setDescription('This variable defines the mac address used as index in the MAC-find table.') wwp_leos_flow_mac_find_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 9, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 24576))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowMacFindVlanId.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowMacFindVlanId.setDescription('The VLAN ID on which this MAC address is learned.') wwp_leos_flow_mac_find_port = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 9, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowMacFindPort.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowMacFindPort.setDescription('This specifies the port id on which this MAC address is learned.') wwp_leos_flow_mac_find_vlan_tag = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 9, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 24576))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowMacFindVlanTag.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowMacFindVlanTag.setDescription('This specifies the VLAN tag on which this MAC address is learned.') wwp_leos_flow_pri_remap_table = mib_table((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 10)) if mibBuilder.loadTexts: wwpLeosFlowPriRemapTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowPriRemapTable.setDescription('The (conceptual) table to add the static mac addresses.') wwp_leos_flow_pri_remap_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 10, 1)).setIndexNames((0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowUserPri')) if mibBuilder.loadTexts: wwpLeosFlowPriRemapEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowPriRemapEntry.setDescription('An entry (conceptual row) in the wwpLeosFlowStaticMacTable.') wwp_leos_flow_user_pri = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 10, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowUserPri.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowUserPri.setDescription('Specifies the user priority. Also used as index in the table.') wwp_leos_flow_remapped_pri = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 10, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowRemappedPri.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowRemappedPri.setDescription("Specifies the remapped priority for given 'wwpLeosFlowUserPri'.") wwp_leos_flow_s_mapping_table = mib_table((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 13)) if mibBuilder.loadTexts: wwpLeosFlowSMappingTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingTable.setDescription("A service mapping entry in the service-mapping table. To create entry in this table following criteria must be met. - The indexes to the service mapping entry consist of type-value pairs. - There are four(4) sections to the entry. -- NETWORK (type / value) -- SOURCE (type / value) -- DESTINATION (type / value) -- CLASS OF SERVICE (type / value) - All indexes must be specified with the appropriate enumerated - type. If the TYPE is set to 'none', the corresponding VALUE - MUST be set to zero(0). - - The service-mapping entry is very generic. As such, acceptable - combinations of types and values will be scrutinized by the - running platform.") wwp_leos_flow_s_mapping_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 13, 1)).setIndexNames((0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowSMappingNetType'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowSMappingNetValue'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowSMappingSrcType'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowSMappingSrcValue'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowSMappingDstType'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowSMappingDstValue'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowSMappingCosType'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowSMappingCosValue')) if mibBuilder.loadTexts: wwpLeosFlowSMappingEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingEntry.setDescription('A service mapping entry in the wwpLeosFlowSMappingTable.') wwp_leos_flow_s_mapping_net_type = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 13, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('none', 1), ('vlan', 2), ('vsi', 3), ('vsiMpls', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowSMappingNetType.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingNetType.setDescription("This object specifies the NETWORK object TYPE for the entry. - - If set to 'none', the corresponding value in - wwpLeosFlowSMappingNetValue MUST be zero(0). - - If set to vlan, a valid vlan-id must be specified. - If set to vsi, a valid ethernet virtual-switch-instance id must be specified. - If set to vsi_mpls, a valid mpls virtual-switch-instance id must be specified - - This used as index in the table.") wwp_leos_flow_s_mapping_net_value = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 13, 1, 2), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowSMappingNetValue.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingNetValue.setDescription('This object specifies the NETWORK object ID for the entry. - - This item must be set according to the value set - in wwpLeosFlowSMappingNetType. If wwpLeosFlowSMappingNetType - equals: - none(1): MUST be set to zero(0). - vlan(2): MUST be set to valid existing vlan id. - vsi(3): MUST be set to valid existing ethernet virtual switch id. - vsiMpls(4): MUST be set to valid existing mpls virtual switch id. - - This used as index in the table.') wwp_leos_flow_s_mapping_src_type = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 13, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('none', 1), ('port', 2), ('mplsVc', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowSMappingSrcType.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingSrcType.setDescription("This object specifies the SOURCE object TYPE for the entry. - - If set to 'none', the corresponding value in - wwpLeosFlowSMappingSrcValue MUST be zero(0). - - If set to port, a valid port group id must be specified. - If set to mplsVc, a valid mpls-virtual-circuit id must be specified. - - This used as index in the table.") wwp_leos_flow_s_mapping_src_value = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 13, 1, 4), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowSMappingSrcValue.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingSrcValue.setDescription('This object specifies the SOURCE object ID for the entry. - - This item must be set according to the value set - in wwpLeosFlowSMappingSrcType. If wwpLeosFlowSMappingSrcType - equals: - none(1): MUST be set to zero(0). - port(2): MUST be set to valid existing port group id. - mplsVc(3): MUST be set to valid existing mpls-virtual-circuit id. - - This used as index in the table.') wwp_leos_flow_s_mapping_dst_type = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 13, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('none', 1), ('port', 2), ('mplsVc', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowSMappingDstType.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingDstType.setDescription("This object specifies the DESTINATION object TYPE for the entry. - - If set to 'none', the corresponding value in - wwpLeosFlowSMappingDstValue MUST be zero(0). - - If set to port, a valid port group id must be specified. - If set to mplsVc, a valid mpls-virtual-circuit id must be specified. - - This used as index in the table.") wwp_leos_flow_s_mapping_dst_value = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 13, 1, 6), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowSMappingDstValue.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingDstValue.setDescription('This object specifies the DESTINATION object ID for the entry. - - This item must be set according to the value set - in wwpLeosFlowSMappingDstType. If wwpLeosFlowSMappingDstType - equals: - none(1): MUST be set to zero(0). - port(2): MUST be set to valid existing port group id. - mplsVc(3): MUST be set to valid existing mpls-virtual-circuit id. - - This used as index in the table.') wwp_leos_flow_s_mapping_cos_type = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 13, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12))).clone(namedValues=named_values(('none', 1), ('phb', 2), ('dscp', 3), ('ipPrec', 4), ('dot1dPri', 5), ('mplsExp', 6), ('tcpSrcPort', 7), ('tcpDstPort', 8), ('udpSrcPort', 9), ('udpDstPort', 10), ('pcp', 11), ('cvlan', 12)))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowSMappingCosType.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingCosType.setDescription("This object specifies the CLASS OF SERVICE object TYPE for the entry. - - If set to 'none', the corresponding value in - wwpLeosFlowSMappingCosValue MUST be zero(0). - - If set to tcpSrcPort, tcpDstPort, udpSrcPort, or udpDstPort, - a valid, NON-ZERO tcp or udp port must be specified. - - If set to phb, a valid per-hop-behavior enumeration must be specified. - If set to dscp, a valid differentiated services code point must be specified. - If set to ipPrec, a valid ip-precedence must be specified. - If set to dot1dPri, a valid 802.1d/p priority must be specified. - If set to cvlan, a support Customer VLAN must be specified - - This used as index in the table.") wwp_leos_flow_s_mapping_cos_value = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 13, 1, 8), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowSMappingCosValue.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingCosValue.setDescription('This object specifies the CLASS OF SERVICE object ID for the entry. - - This item must be set according to the value set - in wwpLeosFlowSMappingCosType. If wwpLeosFlowSMappingCosType - equals: - none(1): MUST be set to zero(0). - - phb(2): (1..13) - cs0(1),cs1(2),cs2(3),cs3(4),cs4(5),cs5(6),cs6(7),cs7(8), - af1(9),af2(10),af3(11),af4(12),ef(13) - - dscp(3): (0..63) - ipPrec(4): (0..7) - dot1dPri(5): (0..7) - mplsExp(6): (0..7) - - tcpSrcPort(7): (1..65535). - tcpDstPort(8): (1..65535). - udpSrcPort(9): (1..65535). - udpDstPort(10): (1..65535). - - cvlan(12): (1..4094) - - Depending on the platform, the COS type/value may be recognized for certain - frame tag-structures. For example, some platforms can recognize ipPrec, dscp - dot1dPri only for double-tagged frames. Some require untagged or single-tagged - frames to recognize TCP/UDP ports. Operator should consult the software - configuration guide for the specified product. - - This used as index in the table.') wwp_leos_flow_s_mapping_dst_slid = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 13, 1, 9), unsigned32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowSMappingDstSlid.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingDstSlid.setDescription('The service level id to apply to the flow at the destination point. Depending on the platform this object may or may not be set to 0 while creating the service-mapping entry. The corresponding destination-port and slid must exist in the service-level table.') wwp_leos_flow_s_mapping_src_slid = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 13, 1, 10), unsigned32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowSMappingSrcSlid.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingSrcSlid.setDescription('The service level ID to apply to the flow at the source-port. Depending on the platform this object may or may not be set to 0 while creating the service-mapping entry. The corresponding source-port and SLID must exist in the service-level table') wwp_leos_flow_s_mapping_status = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 13, 1, 11), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: wwpLeosFlowSMappingStatus.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingStatus.setDescription("Used to manage the creation and deletion of the conceptual rows in this table. To create a row in this table, a manager must set this object to 'createAndGo'.") wwp_leos_flow_s_mapping_red_curve_offset = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 13, 1, 12), integer32().subtype(subtypeSpec=value_range_constraint(0, 3))).setMaxAccess('readcreate') if mibBuilder.loadTexts: wwpLeosFlowSMappingRedCurveOffset.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingRedCurveOffset.setDescription('This object specifies the red curve offset to be used for given service mapping. If this object is not set then the device will choose default red curve offset which is 0.') wwp_leos_flow_s_mapping_cpu_port = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 13, 1, 13), truth_value().clone('false')).setMaxAccess('readcreate') if mibBuilder.loadTexts: wwpLeosFlowSMappingCpuPort.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingCpuPort.setDescription('This object specifies if the CPU port is to be used as the src port.') wwp_leos_flow_s_mapping_stats_table = mib_table((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 14)) if mibBuilder.loadTexts: wwpLeosFlowSMappingStatsTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingStatsTable.setDescription('A Table of flow service statistics entries.') wwp_leos_flow_s_mapping_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 14, 1)).setIndexNames((0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowSMappingNetType'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowSMappingNetValue'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowSMappingSrcType'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowSMappingSrcValue'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowSMappingDstType'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowSMappingDstValue'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowSMappingCosType'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowSMappingCosValue')) if mibBuilder.loadTexts: wwpLeosFlowSMappingStatsEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingStatsEntry.setDescription('A flow service statistics entry in the wwpLeosFlowSMappingStatsTable.') wwp_leos_flow_s_mapping_stats_rx_hi = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 14, 1, 1), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowSMappingStatsRxHi.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingStatsRxHi.setDescription('The number of bytes received for this flow service entry. This counter represents the upper 32 bits of the counter value') wwp_leos_flow_s_mapping_stats_rx_lo = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 14, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowSMappingStatsRxLo.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingStatsRxLo.setDescription('The number of bytes received for this flow service entry. This counter represents the lower 32 bits of the counter value.') wwp_leos_flow_s_mapping_stats_tx_hi = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 14, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowSMappingStatsTxHi.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingStatsTxHi.setDescription('The number of bytes transmitted for this flow service entry. This counter represents the upper 32 bits of the counter value.') wwp_leos_flow_s_mapping_stats_tx_lo = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 14, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowSMappingStatsTxLo.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingStatsTxLo.setDescription('The number of bytes transmitted for this flow service entry. This counter represents the lower 32 bits of the counter value.') wwp_leos_flow_s_mapping_stats_type = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 14, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('forward', 1), ('drop', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowSMappingStatsType.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSMappingStatsType.setDescription('Specifies the type of statistics for given entry.') wwp_leos_flow_cos_sync1d_to_exp_table = mib_table((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 15)) if mibBuilder.loadTexts: wwpLeosFlowCosSync1dToExpTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosSync1dToExpTable.setDescription('A table of flow cos sync 1d to exp entries. Entries cannot be created or destroyed.') wwp_leos_flow_cos_sync1d_to_exp_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 15, 1)).setIndexNames((0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowCosSync1dToExpMapFrom')) if mibBuilder.loadTexts: wwpLeosFlowCosSync1dToExpEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosSync1dToExpEntry.setDescription('A flow cos sync 1d to 1d entry in the wwpLeosFlowCosSync1dToExpTable.') wwp_leos_flow_cos_sync1d_to_exp_map_from = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 15, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCosSync1dToExpMapFrom.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosSync1dToExpMapFrom.setDescription('This object is used as index in the table and represents cos 1d priority. Any frame coming in with this priority will be synchronized with priority specified by wwpLeosFlowCosSync1dToExpMapTo.') wwp_leos_flow_cos_sync1d_to_exp_map_to = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 15, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCosSync1dToExpMapTo.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosSync1dToExpMapTo.setDescription('This object specifies the remapped exp value of the frame which ingresses with dot1d priority of wwpLeosFlowCosSync1dToExpMapFrom.') wwp_leos_flow_cos_sync_exp_to1d_table = mib_table((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 16)) if mibBuilder.loadTexts: wwpLeosFlowCosSyncExpTo1dTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosSyncExpTo1dTable.setDescription('A table of flow cos sync 1d to exp entries.') wwp_leos_flow_cos_sync_exp_to1d_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 16, 1)).setIndexNames((0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowCosSyncExpTo1dMapFrom')) if mibBuilder.loadTexts: wwpLeosFlowCosSyncExpTo1dEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosSyncExpTo1dEntry.setDescription('A flow cos sync 1d to 1d entry in the wwpLeosFlowCosSyncExpTo1dTable.') wwp_leos_flow_cos_sync_exp_to1d_map_from = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 16, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCosSyncExpTo1dMapFrom.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosSyncExpTo1dMapFrom.setDescription('This object is used as index in the table and represents cos 1d priority. Any frame coming in with this priority will be synchronized with priority specified by wwpLeosFlowCosSyncExpTo1dMapTo.') wwp_leos_flow_cos_sync_exp_to1d_map_to = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 16, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCosSyncExpTo1dMapTo.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosSyncExpTo1dMapTo.setDescription('This object specifies the remapped exp value of the frame which ingresses with dot1d priority of wwpLeosFlowCosSyncExpTo1dMapFrom.') wwp_leos_flow_cos_sync_ip_prec_to1d_table = mib_table((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 17)) if mibBuilder.loadTexts: wwpLeosFlowCosSyncIpPrecTo1dTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosSyncIpPrecTo1dTable.setDescription('A table of flow cos sync IP precedence to 1d entries.') wwp_leos_flow_cos_sync_ip_prec_to1d_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 17, 1)).setIndexNames((0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowCosSyncIpPrecTo1dMapFrom')) if mibBuilder.loadTexts: wwpLeosFlowCosSyncIpPrecTo1dEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosSyncIpPrecTo1dEntry.setDescription('A flow cos sync Ip Precedence to 1d entry in the wwpLeosFlowCosSyncIpPrecTo1dTable.') wwp_leos_flow_cos_sync_ip_prec_to1d_map_from = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 17, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCosSyncIpPrecTo1dMapFrom.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosSyncIpPrecTo1dMapFrom.setDescription('This object is used as index in the table and represents ip precedence value. Any frame coming in with wwpLeosFlowCosSyncIpPrecTo1dMapFrom IP precedence will be synchronized with dot1d specified by wwpLeosFlowCosSyncIpPrecTo1dMapTo.') wwp_leos_flow_cos_sync_ip_prec_to1d_map_to = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 17, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCosSyncIpPrecTo1dMapTo.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosSyncIpPrecTo1dMapTo.setDescription('This object specifies the ip precedence value to synchronize with when the frame ingresses with ip precedence value of wwpLeosFlowCosSyncIpPrecTo1dMapFrom.') wwp_leos_flow_cos_sync_std_phb_to1d_table = mib_table((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 18)) if mibBuilder.loadTexts: wwpLeosFlowCosSyncStdPhbTo1dTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosSyncStdPhbTo1dTable.setDescription('A table of flow cos sync standard per hop behavior to 1d or Exp entries.') wwp_leos_flow_cos_sync_std_phb_to1d_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 18, 1)).setIndexNames((0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowCosSyncStdPhbTo1dMapFrom')) if mibBuilder.loadTexts: wwpLeosFlowCosSyncStdPhbTo1dEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosSyncStdPhbTo1dEntry.setDescription('A flow cos sync standard per hop behavior to 1d entry in the wwpLeosFlowCosSyncStdPhbTo1dTable.') wwp_leos_flow_cos_sync_std_phb_to1d_map_from = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 18, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13))).clone(namedValues=named_values(('cs0', 1), ('cs1', 2), ('cs2', 3), ('cs3', 4), ('cs4', 5), ('cs5', 6), ('cs6', 7), ('cs7', 8), ('af1', 9), ('af2', 10), ('af3', 11), ('af4', 12), ('ef', 13)))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCosSyncStdPhbTo1dMapFrom.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosSyncStdPhbTo1dMapFrom.setDescription('This object is used as index in the table and represents AFx or EF value. Any frame coming in with wwpLeosFlowCosSyncStdPhbTo1dMapFrom AFx or EF value will be synchronized with dot1d priority specified by wwpLeosFlowCosSyncStdPhbTo1dMapTo. If wwpLeosFlowCosSyncStdPhbTo1dValue is not specified then no synchronization will happen.') wwp_leos_flow_cos_sync_std_phb_to1d_map_to = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 18, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCosSyncStdPhbTo1dMapTo.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosSyncStdPhbTo1dMapTo.setDescription('This object specifies the AFx or EF dscp value to synchronize with when the frame ingresses with AFx or EF dscp value of wwpLeosFlowCosSyncDscpTo1dMapTo.') wwp_leos_flow_l2_sac_table = mib_table((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 19)) if mibBuilder.loadTexts: wwpLeosFlowL2SacTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowL2SacTable.setDescription('A table of flow l2 sac table.') wwp_leos_flow_l2_sac_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 19, 1)).setIndexNames((0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowL2SacPortId'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowL2SacNetType'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowSacNetValue')) if mibBuilder.loadTexts: wwpLeosFlowL2SacEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowL2SacEntry.setDescription('Represents each entry in the l2 Sac Table') wwp_leos_flow_l2_sac_port_id = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 19, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowL2SacPortId.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowL2SacPortId.setDescription("This mib object is index in the table. If port is not involved in L2 SAC then set this value to 0. 0 represents don't care.") wwp_leos_flow_l2_sac_net_type = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 19, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('none', 1), ('vlan', 2), ('vsiEth', 3), ('vsiMpls', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowL2SacNetType.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowL2SacNetType.setDescription('This mib object is used as index in the table. This object specifies how wwpLeosFlowSacValue should be interpreted. If this object is set to none then the wwpLeosFlowSacValue must be set to 0.') wwp_leos_flow_sac_net_value = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 19, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowSacNetValue.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowSacNetValue.setDescription('This mib object is used as index in the table. This object is only meaningful if wwpLeosFlowL2SacNetType is not set to none.') wwp_leos_flow_l2_sac_limit = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 19, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readcreate') if mibBuilder.loadTexts: wwpLeosFlowL2SacLimit.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowL2SacLimit.setDescription('This mib object specifies the l2 SAC limit. Device will not learn any mac greater than the limit specified by this object.') wwp_leos_flow_l2_sac_cur_mac = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 19, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowL2SacCurMac.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowL2SacCurMac.setDescription('This mib object specifies the current mac count for the given l2 SAC entry.') wwp_leos_flow_l2_sac_cur_filtered_mac = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 19, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowL2SacCurFilteredMac.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowL2SacCurFilteredMac.setDescription('This mib object specifies the current number of filtered macs for the given l2 SAC entry.') wwp_leos_flow_l2_sac_oper_state = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 19, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowL2SacOperState.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowL2SacOperState.setDescription('This mib object specifies the current operation state for the given l2 SAC entry.') wwp_leos_flow_l2_sac_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 19, 1, 8), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: wwpLeosFlowL2SacRowStatus.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowL2SacRowStatus.setDescription("Used to manage the creation and deletion of the conceptual rows in this table. To create a row in this table, a manager must set this object to 'createAndGo'.") wwp_leos_flow_l2_sac_trap_state = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 20), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowL2SacTrapState.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowL2SacTrapState.setDescription('Specifies if device should send L2 sac traps.') wwp_leos_flow_strict_queuing_state = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 21), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('disabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowStrictQueuingState.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowStrictQueuingState.setDescription('Specifies if device should adjust queues to support strict queuing.') wwp_leos_flow_bw_calc_mode = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 22), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('transport', 1), ('payload', 2))).clone('transport')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowBwCalcMode.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowBwCalcMode.setDescription('Specifies if the device should operate in transport or payload mode. In transport mode the frame length of an Ethernet frame used in measuring CIR will be from IFG through FCS. In payload mode the frame length of an Ethernet frame used in measuring CIR will be from the MAC DA through FCS.') wwp_leos_flow_global = mib_identifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 23)) wwp_leos_flow_service_level_flow_group_state = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 23, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelFlowGroupState.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelFlowGroupState.setDescription('This object specifies the current state of service level flow groups.') wwp_leos_flow_service_mapping_cos_red_mapping_state = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 23, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2))).clone('disabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowServiceMappingCosRedMappingState.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceMappingCosRedMappingState.setDescription('This object specifies the current state of service mapping dot1d to Red offset mapping table(wwpLeosFlowCos1dToRedCurveOffsetTable). If this object is set to disable then wwpLeosFlowCos1dToRedCurveOffsetTable will not be used for dot1d to red offset mapping else it will be used.') wwp_leos_flow_service_all_red_curve_unset = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 23, 3), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowServiceAllRedCurveUnset.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceAllRedCurveUnset.setDescription('Setting this object to true will reset all the red curves in wwpLeosFlowServiceRedCurveTable table to factory default settings.') wwp_leos_flow_service_red_curve_table = mib_table((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 24)) if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveTable.setDescription('A table to configure flow service red curve table.') wwp_leos_flow_service_red_curve_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 24, 1)).setIndexNames((0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowServiceRedCurveIndex')) if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveEntry.setDescription('Represents each entry in the flow service RED curve table.') wwp_leos_flow_service_red_curve_index = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 24, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(5, 64))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveIndex.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveIndex.setDescription('This object is used as index in the red curve table.') wwp_leos_flow_service_red_curve_name = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 24, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(1, 31))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveName.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveName.setDescription('This object specifies the name of the red curve.') wwp_leos_flow_service_red_curve_state = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 24, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveState.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveState.setDescription('This object specifies the current state of the red curve. This object can be set to enable or disable.') wwp_leos_flow_service_red_curve_min_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 24, 1, 4), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setUnits('kbps').setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveMinThreshold.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveMinThreshold.setDescription('This represents the minimum threshold in KBytes. When the queue length associated with this service reaches this number, RED begins to drop packets matching this Service-Mappings traffic classification. The valid range is between 0 and 65535 Kbytes. The actual number varies depending on the platform.') wwp_leos_flow_service_red_curve_max_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 24, 1, 5), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setUnits('kbps').setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveMaxThreshold.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveMaxThreshold.setDescription('This represents the maximum threshold in KBytes. When the queue length associated with this service reaches this number, RED drops packets matching this Service-Mappings traffic classification at the rate specified in wwpLeosFlowServiceRedCurveDropProbability.') wwp_leos_flow_service_red_curve_drop_probability = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 24, 1, 6), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveDropProbability.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveDropProbability.setDescription('This object specifies the drop probability of a packet (matching this Service-Mapping classification) of being dropped when the queue length associated with this Service-Level reaches the value configured in wwpLeosFlowServiceMaxThreshold. The value represents a percentage (0-100).') wwp_leos_flow_service_red_curve_unset = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 24, 1, 7), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveUnset.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceRedCurveUnset.setDescription('Setting this object to true will reset the red curve settings to factory defaults.') wwp_leos_flow_cos1d_to_red_curve_offset_table = mib_table((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 25)) if mibBuilder.loadTexts: wwpLeosFlowCos1dToRedCurveOffsetTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCos1dToRedCurveOffsetTable.setDescription('A table of flow cos 1d to red curve offset entries.') wwp_leos_flow_cos1d_to_red_curve_offset_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 25, 1)).setIndexNames((0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowCos1dToRedCurveOffset1dValue')) if mibBuilder.loadTexts: wwpLeosFlowCos1dToRedCurveOffsetEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCos1dToRedCurveOffsetEntry.setDescription('A table entry of flow cos 1d to red curve offset.') wwp_leos_flow_cos1d_to_red_curve_offset1d_value = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 25, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCos1dToRedCurveOffset1dValue.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCos1dToRedCurveOffset1dValue.setDescription('This object is used as index in the table and represents cos 1d priority. Any frame coming in with this priority will be mapped to red cos offset value specified by wwpLeosFlowCos1dToRedCurveOffsetValue.') wwp_leos_flow_cos1d_to_red_curve_offset_value = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 25, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 3))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCos1dToRedCurveOffsetValue.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCos1dToRedCurveOffsetValue.setDescription('This object specifies the red curve offset value to be used when frame which ingresses with dot1d priority specified by wwpLeosFlowCos1dToRedCurveOffset1dValue.') wwp_leos_flow_cos_map_pcp_to1d_table = mib_table((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 26)) if mibBuilder.loadTexts: wwpLeosFlowCosMapPCPTo1dTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosMapPCPTo1dTable.setDescription('A table of flow cos mapping of PCP to .1d Pri.') wwp_leos_flow_cos_map_pcp_to1d_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 26, 1)).setIndexNames((0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowCosMapPCPTo1dMapFrom')) if mibBuilder.loadTexts: wwpLeosFlowCosMapPCPTo1dEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosMapPCPTo1dEntry.setDescription('A flow cos sync standard per hop behavior to 1d entry in the wwpLeosFlowCosSyncStdPhbTo1dTable.') wwp_leos_flow_cos_map_pcp_to1d_map_from = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 26, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCosMapPCPTo1dMapFrom.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosMapPCPTo1dMapFrom.setDescription('This object is used as index in the table and represents PCP priority. Any frame coming in with wwpLeosFlowCosMapPCPTo1dMapFrom priority will be mapped to .1d priority specified by wwpLeosFlowCosMapPCPTo1dMapTo. ') wwp_leos_flow_cos_map_pcp_to1d_map_to = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 26, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCosMapPCPTo1dMapTo.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosMapPCPTo1dMapTo.setDescription('This object specifies the .1d priority to map with when the frame ingresses with PCP priority specified by wwpLeosFlowCosMapPCPTo1dMapFrom.') wwp_leos_flow_cos_map1d_to_pcp_table = mib_table((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 27)) if mibBuilder.loadTexts: wwpLeosFlowCosMap1dToPCPTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosMap1dToPCPTable.setDescription('A table of flow cos mapping of PCP to .1d Pri.') wwp_leos_flow_cos_map1d_to_pcp_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 27, 1)).setIndexNames((0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowCosMap1dToPCPMapFrom')) if mibBuilder.loadTexts: wwpLeosFlowCosMap1dToPCPEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosMap1dToPCPEntry.setDescription('A flow cos sync standard per hop behavior to 1d entry in the wwpLeosFlowCosSyncStdPhbTo1dTable.') wwp_leos_flow_cos_map1d_to_pcp_map_from = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 27, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCosMap1dToPCPMapFrom.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosMap1dToPCPMapFrom.setDescription('This object is used as index in the table and represents PCP priority. Any frame coming in with wwpLeosFlowCosMap1dToPCPMapFrom priority will be mapped to .1d priority specified by wwpLeosFlowCosMap1dToPCPMapTo. ') wwp_leos_flow_cos_map1d_to_pcp_map_to = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 27, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCosMap1dToPCPMapTo.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCosMap1dToPCPMapTo.setDescription('This object specifies the .1d priority to map with when the frame ingresses with PCP priority specified by wwpLeosFlowCosMap1dToPCPMapFrom.') wwp_leos_flow_mac_motion_events_enable = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 28), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowMacMotionEventsEnable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowMacMotionEventsEnable.setDescription('Specifies whether MAC Motion traps and syslog messages will be generated when a MAC shifts from one port/vlan to another port/vlan.') wwp_leos_flow_mac_motion_events_interval = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 29), integer32().subtype(subtypeSpec=value_range_constraint(15, 300))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowMacMotionEventsInterval.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowMacMotionEventsInterval.setDescription('The minimum time in seconds that must elapse between each MAC Motion trap and syslog message that is generated.') wwp_leos_flow_cpu_rate_limits_enable = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 30), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitsEnable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitsEnable.setDescription('Enable is used to activate the port-associated rate-limits.') wwp_leos_flow_cpu_rate_limit_table = mib_table((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31)) if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitTable.setDescription('A table of flow rate limit entries. ') wwp_leos_flow_cpu_rate_limit_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1)).setIndexNames((0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowCpuRateLimitPort')) if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitEntry.setDescription('The flow service level entry in the Table.') wwp_leos_flow_cpu_rate_limit_port = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 64))) if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitPort.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitPort.setDescription('Port id used as index in the rate limit entry.') wwp_leos_flow_cpu_rate_limit_enable = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitEnable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitEnable.setDescription('Enable is used to activate the port-associated rate-limits.') wwp_leos_flow_cpu_rate_limit_bootp = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 2500))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitBootp.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitBootp.setDescription('Port packet-per-second rate limit for packet type.') wwp_leos_flow_cpu_rate_limit_cfm = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 2500))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitCfm.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitCfm.setDescription('Port packet-per-second rate limit for packet type.') wwp_leos_flow_cpu_rate_limit_cft = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 2500))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitCft.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitCft.setDescription('Port packet-per-second rate limit for packet type.') wwp_leos_flow_cpu_rate_limit_dot1x = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 2500))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitDot1x.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitDot1x.setDescription('Port packet-per-second rate limit for packet type.') wwp_leos_flow_cpu_rate_limit_oam = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 2500))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitOam.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitOam.setDescription('Port packet-per-second rate limit for packet type.') wwp_leos_flow_cpu_rate_limit_epr_arp = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 2500))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitEprArp.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitEprArp.setDescription('Port packet-per-second rate limit for packet type.') wwp_leos_flow_cpu_rate_limit_igmp = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 2500))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitIgmp.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitIgmp.setDescription('Port packet-per-second rate limit for packet type.') wwp_leos_flow_cpu_rate_limit_inet = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 5000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitInet.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitInet.setDescription('Port packet-per-second rate limit for packet type .') wwp_leos_flow_cpu_rate_limit_lacp = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(0, 2500))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitLacp.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitLacp.setDescription('Port packet-per-second rate limit for packet type.') wwp_leos_flow_cpu_rate_limit_lldp = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 12), integer32().subtype(subtypeSpec=value_range_constraint(0, 2500))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitLldp.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitLldp.setDescription('Port packet-per-second rate limit for packet type.') wwp_leos_flow_cpu_rate_limit_mpls = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 13), integer32().subtype(subtypeSpec=value_range_constraint(0, 2500))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitMpls.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitMpls.setDescription('Port packet-per-second rate limit for packet type.') wwp_leos_flow_cpu_rate_limit_mstp = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 14), integer32().subtype(subtypeSpec=value_range_constraint(0, 500))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitMstp.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitMstp.setDescription('Port packet-per-second rate limit for packet type.') wwp_leos_flow_cpu_rate_limit_pe_arp = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 15), integer32().subtype(subtypeSpec=value_range_constraint(0, 2500))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitPeArp.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitPeArp.setDescription('Port packet-per-second rate limit for packet type.') wwp_leos_flow_cpu_rate_limit_pvst = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 16), integer32().subtype(subtypeSpec=value_range_constraint(0, 2500))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitPvst.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitPvst.setDescription('Port packet-per-second rate limit for packet type.') wwp_leos_flow_cpu_rate_limit_rstp = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 17), integer32().subtype(subtypeSpec=value_range_constraint(0, 2500))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitRstp.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitRstp.setDescription('Port packet-per-second rate limit for packet type.') wwp_leos_flow_cpu_rate_limit_lpbk = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 18), integer32().subtype(subtypeSpec=value_range_constraint(0, 2500))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitLpbk.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitLpbk.setDescription('Port packet-per-second rate limit for packet type.') wwp_leos_flow_cpu_rate_limit_rmt_lpbk = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 19), integer32().subtype(subtypeSpec=value_range_constraint(0, 2500))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitRmtLpbk.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitRmtLpbk.setDescription('Port packet-per-second rate limit for packet type.') wwp_leos_flow_cpu_rate_limit_cxe_rx = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 20), integer32().subtype(subtypeSpec=value_range_constraint(0, 500))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitCxeRx.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitCxeRx.setDescription('Port packet-per-second rate limit for packet type.') wwp_leos_flow_cpu_rate_limit_cxe_tx = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 21), integer32().subtype(subtypeSpec=value_range_constraint(0, 500))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitCxeTx.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitCxeTx.setDescription('Port packet-per-second rate limit for packet type.') wwp_leos_flow_cpu_rate_limit_twamp = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 22), integer32().subtype(subtypeSpec=value_range_constraint(0, 2500))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitTwamp.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitTwamp.setDescription('Port packet-per-second rate limit for packet type.') wwp_leos_flow_cpu_rate_limit_dflt = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 23), integer32().subtype(subtypeSpec=value_range_constraint(0, 10000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitDflt.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitDflt.setDescription('Port packet-per-second rate limit for packet type.') wwp_leos_flow_cpu_rate_limit_twamp_rsp = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 24), integer32().subtype(subtypeSpec=value_range_constraint(0, 2500))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitTwampRsp.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitTwampRsp.setDescription('Port packet-per-second rate limit for packet type.') wwp_leos_flow_cpu_rate_limit_multi_cast = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 25), integer32().subtype(subtypeSpec=value_range_constraint(0, 1000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitMultiCast.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitMultiCast.setDescription('Port packet-per-second rate limit for packet type.') wwp_leos_flow_cpu_rate_limit_broad_cast = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 26), integer32().subtype(subtypeSpec=value_range_constraint(0, 500))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitBroadCast.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitBroadCast.setDescription('Port packet-per-second rate limit for packet type.') wwp_leos_flow_cpu_rate_limit_arp = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 27), integer32().subtype(subtypeSpec=value_range_constraint(0, 1000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitArp.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitArp.setDescription('Port packet-per-second rate limit for packet type.') wwp_leos_flow_cpu_rate_limit_icmp = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 28), integer32().subtype(subtypeSpec=value_range_constraint(0, 1000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitIcmp.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitIcmp.setDescription('Port packet-per-second rate limit for packet type.') wwp_leos_flow_cpu_rate_limit_tcp_syn = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 29), integer32().subtype(subtypeSpec=value_range_constraint(0, 1000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitTcpSyn.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitTcpSyn.setDescription('Port packet-per-second rate limit for packet type.') wwp_leos_flow_cpu_rate_limit_raps = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 30), integer32().subtype(subtypeSpec=value_range_constraint(0, 2500))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitRaps.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitRaps.setDescription('Port packet-per-second rate limit for packet type. Not supported on 4.x') wwp_leos_flow_cpu_rate_limit_ip_mgmt = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 31), integer32().subtype(subtypeSpec=value_range_constraint(0, 5000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitIpMgmt.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitIpMgmt.setDescription('Port packet-per-second rate limit for packet type. Not supported on 4.x') wwp_leos_flow_cpu_rate_limit_ip_control = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 32), integer32().subtype(subtypeSpec=value_range_constraint(0, 5000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitIpControl.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitIpControl.setDescription('Port packet-per-second rate limit for packet type. Not supported on 4.x') wwp_leos_flow_cpu_rate_limit_ip_v6_mgmt = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 33), integer32().subtype(subtypeSpec=value_range_constraint(0, 5000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitIpV6Mgmt.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitIpV6Mgmt.setDescription('Port packet-per-second rate limit for packet type.') wwp_leos_flow_cpu_rate_limit_inet6 = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 31, 1, 34), integer32().subtype(subtypeSpec=value_range_constraint(0, 5000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitInet6.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitInet6.setDescription('Port packet-per-second rate limit for packet type.') wwp_leos_flow_cpu_rate_limit_stats_table = mib_table((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32)) if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsTable.setDescription('A table of flow rate limit statistics entries. ') wwp_leos_flow_cpu_rate_limit_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1)).setIndexNames((0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowCpuRateLimitStatsPort')) if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsEntry.setDescription('The rate limit statistics entry in the Table.') wwp_leos_flow_cpu_rate_limit_stats_port = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 64))) if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsPort.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsPort.setDescription('Port id used as index in the rate limit entry.') wwp_leos_flow_cpu_rate_limit_stats_bootp_passed = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 2), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsBootpPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsBootpPassed.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_cfm_passed = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 3), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsCfmPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsCfmPassed.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_cft_passed = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 4), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsCftPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsCftPassed.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_dot1x_passed = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 5), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsDot1xPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsDot1xPassed.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_oam_passed = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 6), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsOamPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsOamPassed.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_epr_arp_passed = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 7), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsEprArpPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsEprArpPassed.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_igmp_passed = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 8), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIgmpPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIgmpPassed.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_inet_passed = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 9), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsInetPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsInetPassed.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_lacp_passed = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 10), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsLacpPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsLacpPassed.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_lldp_passed = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 11), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsLldpPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsLldpPassed.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_mpls_passed = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 12), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsMplsPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsMplsPassed.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_mstp_passed = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 13), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsMstpPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsMstpPassed.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_pe_arp_passed = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 14), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsPeArpPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsPeArpPassed.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_pvst_passed = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 15), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsPvstPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsPvstPassed.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_rstp_passed = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 16), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsRstpPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsRstpPassed.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_lpbk_passed = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 17), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsLpbkPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsLpbkPassed.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_rmt_lpbk_passed = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 18), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsRmtLpbkPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsRmtLpbkPassed.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_cxe_rx_passed = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 19), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsCxeRxPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsCxeRxPassed.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_cxe_tx_passed = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 20), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsCxeTxPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsCxeTxPassed.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_twamp_passed = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 21), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsTwampPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsTwampPassed.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_dflt_passed = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 22), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsDfltPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsDfltPassed.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_bootp_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 23), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsBootpDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsBootpDropped.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_cfm_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 24), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsCfmDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsCfmDropped.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_cft_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 25), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsCftDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsCftDropped.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_dot1x_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 26), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsDot1xDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsDot1xDropped.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_oam_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 27), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsOamDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsOamDropped.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_epr_arp_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 28), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsEprArpDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsEprArpDropped.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_igmp_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 29), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIgmpDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIgmpDropped.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_inet_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 30), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsInetDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsInetDropped.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_lacp_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 31), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsLacpDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsLacpDropped.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_lldp_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 32), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsLldpDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsLldpDropped.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_mpls_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 33), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsMplsDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsMplsDropped.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_mstp_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 34), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsMstpDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsMstpDropped.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_pe_arp_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 35), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsPeArpDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsPeArpDropped.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_pvst_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 36), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsPvstDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsPvstDropped.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_rstp_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 37), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsRstpDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsRstpDropped.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_lpbk_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 38), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsLpbkDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsLpbkDropped.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_rmt_lpbk_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 39), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsRmtLpbkDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsRmtLpbkDropped.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_cxe_rx_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 40), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsCxeRxDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsCxeRxDropped.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_cxe_tx_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 41), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsCxeTxDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsCxeTxDropped.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_twamp_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 42), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsTwampDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsTwampDropped.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_dflt_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 43), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsDfltDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsDfltDropped.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_twamp_rsp_passed = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 44), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsTwampRspPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsTwampRspPassed.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_twamp_rsp_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 45), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsTwampRspDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsTwampRspDropped.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_multi_cast_passed = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 46), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsMultiCastPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsMultiCastPassed.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_multi_cast_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 47), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsMultiCastDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsMultiCastDropped.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_broad_cast_passed = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 48), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsBroadCastPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsBroadCastPassed.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_broad_cast_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 49), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsBroadCastDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsBroadCastDropped.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_arp_passed = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 50), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsArpPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsArpPassed.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_arp_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 51), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsArpDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsArpDropped.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_icmp_passed = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 52), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIcmpPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIcmpPassed.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_icmp_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 53), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIcmpDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIcmpDropped.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_tcp_syn_passed = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 54), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsTcpSynPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsTcpSynPassed.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_tcp_syn_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 55), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsTcpSynDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsTcpSynDropped.setDescription('Port packet type counts.') wwp_leos_flow_cpu_rate_limit_stats_raps_passed = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 56), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsRapsPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsRapsPassed.setDescription('Port packet type counts.Not supported on 4.x') wwp_leos_flow_cpu_rate_limit_stats_raps_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 57), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsRapsDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsRapsDropped.setDescription('Port packet type counts.Not supported on 4.x') wwp_leos_flow_cpu_rate_limit_stats_ip_mgmt_passed = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 58), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIpMgmtPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIpMgmtPassed.setDescription('Port packet type counts.Not supported on 4.x') wwp_leos_flow_cpu_rate_limit_stats_ip_mgmt_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 59), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIpMgmtDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIpMgmtDropped.setDescription('Port packet type counts.Not supported on 4.x') wwp_leos_flow_cpu_rate_limit_stats_ip_control_passed = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 60), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIpControlPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIpControlPassed.setDescription('Port packet type counts. Not supported on 4.x') wwp_leos_flow_cpu_rate_limit_stats_ip_control_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 61), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIpControlDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIpControlDropped.setDescription('Port packet type counts. Not supported on 4.x') wwp_leos_flow_cpu_rate_limit_stats_ip_v6_mgmt_passed = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 62), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIpV6MgmtPassed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIpV6MgmtPassed.setDescription('Port packet type counts. Not supported on 4.x') wwp_leos_flow_cpu_rate_limit_stats_ip_v6_mgmt_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 63), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIpV6MgmtDropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsIpV6MgmtDropped.setDescription('Port packet type counts. Not supported on 4.x') wwp_leos_flow_cpu_rate_limit_stats_inet6_passed = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 64), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsInet6Passed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsInet6Passed.setDescription('Port packet type counts for Ipv6. Not supported on 6.x') wwp_leos_flow_cpu_rate_limit_stats_inet6_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 32, 1, 65), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsInet6Dropped.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsInet6Dropped.setDescription('Port packet type counts for Ipv6. Not supported on 6.x') wwp_leos_flow_cpu_rate_limit_stats_clear_table = mib_table((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 33)) if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsClearTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsClearTable.setDescription('A table of flow rate limit entries. ') wwp_leos_flow_cpu_rate_limit_stats_clear_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 33, 1)).setIndexNames((0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowCpuRateLimitStatsClearPort')) if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsClearEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsClearEntry.setDescription('The flow service level entry in the Table.') wwp_leos_flow_cpu_rate_limit_stats_clear_port = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 33, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 64))) if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsClearPort.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsClearPort.setDescription('Port id used as index in the rate limit statistics clear entry.') wwp_leos_flow_cpu_rate_limit_stats_clear = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 33, 1, 2), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsClear.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowCpuRateLimitStatsClear.setDescription('Flag indicating whether to clear port packet statistics.') wwp_leos_flow_service_level_port_over_provisioned_trap = notification_type((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 2, 0, 1)).setObjects(('WWP-LEOS-FLOW-MIB', 'wwpLeosFlowServiceLevelPort')) if mibBuilder.loadTexts: wwpLeosFlowServiceLevelPortOverProvisionedTrap.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelPortOverProvisionedTrap.setDescription('A wwpLeosFlowServiceLevelPortOverProvisionedTrap notification is sent when the provisioned bandwidth exceeds the total bandwidth available for a port. This situation may also occur when changes in a link aggregation group (such as deleting a port from the group) decrease the total bandwidth or at the bootTime when the link aggregation groups are formed.') wwp_leos_flow_service_level_port_under_provisioned_trap = notification_type((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 2, 0, 2)).setObjects(('WWP-LEOS-FLOW-MIB', 'wwpLeosFlowServiceLevelPort')) if mibBuilder.loadTexts: wwpLeosFlowServiceLevelPortUnderProvisionedTrap.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceLevelPortUnderProvisionedTrap.setDescription('A wwpLeosFlowServiceLevelPortUnderProvisionedTrap notification is sent when the previously over-provisioned situation is resolved for a port.') wwp_leos_flow_l2_sac_high_threshold = notification_type((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 2, 0, 3)).setObjects(('WWP-LEOS-FLOW-MIB', 'wwpLeosFlowL2SacPortId'), ('WWP-LEOS-FLOW-MIB', 'wwpLeosFlowL2SacNetType'), ('WWP-LEOS-FLOW-MIB', 'wwpLeosFlowSacNetValue')) if mibBuilder.loadTexts: wwpLeosFlowL2SacHighThreshold.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowL2SacHighThreshold.setDescription('A wwpLeosFlowL2SacHighThreshold notification is sent whenever Macs learned exceeds SAC threshold limit.') wwp_leos_flow_l2_sac_normal_threshold = notification_type((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 2, 0, 4)).setObjects(('WWP-LEOS-FLOW-MIB', 'wwpLeosFlowL2SacPortId'), ('WWP-LEOS-FLOW-MIB', 'wwpLeosFlowL2SacNetType'), ('WWP-LEOS-FLOW-MIB', 'wwpLeosFlowSacNetValue')) if mibBuilder.loadTexts: wwpLeosFlowL2SacNormalThreshold.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowL2SacNormalThreshold.setDescription('A wwpLeosFlowL2SacNormalThreshold notification is sent whenever Macs learned gets back to normal after exceeding the SAC threshold limit.') wwp_leos_flow_mac_motion_notification = notification_type((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 2, 0, 5)).setObjects(('WWP-LEOS-FLOW-MIB', 'wwpLeosFlowMacMotionAttrOldPort'), ('WWP-LEOS-FLOW-MIB', 'wwpLeosFlowMacMotionAttrOldVlan'), ('WWP-LEOS-FLOW-MIB', 'wwpLeosFlowMacMotionAttrNewPort'), ('WWP-LEOS-FLOW-MIB', 'wwpLeosFlowMacMotionAttrNewVlan'), ('WWP-LEOS-FLOW-MIB', 'wwpLeosFlowMacMotionAttrMacAddr')) if mibBuilder.loadTexts: wwpLeosFlowMacMotionNotification.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowMacMotionNotification.setDescription('A wwpLeosFlowMacMotionNotification is sent whenever a learned MAC moves from one port/vlan to a new port/vlan, at a rate defined by wwpLeosFlowMacMotionEventsInterval. The five objects returned by this trap are the MAC address that moved, the original port/vlan the MAC was learned on, and the new port/vlan the MAC has moved to.') wwp_leos_flow_mac_motion_attr_old_port = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 2, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65536))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: wwpLeosFlowMacMotionAttrOldPort.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowMacMotionAttrOldPort.setDescription('The port number associated with the MAC that moved.') wwp_leos_flow_mac_motion_attr_old_vlan = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 2, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 4094))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: wwpLeosFlowMacMotionAttrOldVlan.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowMacMotionAttrOldVlan.setDescription('The vlan number associated with the MAC that moved.') wwp_leos_flow_mac_motion_attr_new_port = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 2, 3), integer32().subtype(subtypeSpec=value_range_constraint(1, 65536))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: wwpLeosFlowMacMotionAttrNewPort.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowMacMotionAttrNewPort.setDescription('The port number associated with the MAC that moved.') wwp_leos_flow_mac_motion_attr_new_vlan = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 2, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 4094))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: wwpLeosFlowMacMotionAttrNewVlan.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowMacMotionAttrNewVlan.setDescription('The vlan number associated with the MAC that moved.') wwp_leos_flow_mac_motion_attr_mac_addr = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 2, 5), mac_address()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: wwpLeosFlowMacMotionAttrMacAddr.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowMacMotionAttrMacAddr.setDescription('The MAC address that moved.') wwp_leos_flow_service_total_stats_table = mib_table((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 34)) if mibBuilder.loadTexts: wwpLeosFlowServiceTotalStatsTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceTotalStatsTable.setDescription('A table of flow service statistics entries.') wwp_leos_flow_service_total_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 34, 1)).setIndexNames((0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowSMappingNetType'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowSMappingNetValue'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowSMappingSrcType'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowSMappingSrcValue'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowSMappingDstType'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowSMappingDstValue'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowSMappingCosType'), (0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowSMappingCosValue')) if mibBuilder.loadTexts: wwpLeosFlowServiceTotalStatsEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceTotalStatsEntry.setDescription('A flow service statistics entry in the wwpLeosFlowServiceTotalStatsTable.') wwp_leos_flow_service_total_stats_rx_hi = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 34, 1, 1), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowServiceTotalStatsRxHi.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceTotalStatsRxHi.setDescription('The number of bytes received for this flow service entry. This counter represents the upper 32 bits of the counter value') wwp_leos_flow_service_total_stats_rx_lo = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 34, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowServiceTotalStatsRxLo.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceTotalStatsRxLo.setDescription('The number of bytes received for this flow service entry. This counter represents the lower 32 bits of the counter value.') wwp_leos_flow_service_total_stats_tx_hi = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 34, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowServiceTotalStatsTxHi.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceTotalStatsTxHi.setDescription('The number of bytes transmitted for this flow service entry. This counter represents the upper 32 bits of the counter value.') wwp_leos_flow_service_total_stats_tx_lo = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 34, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowServiceTotalStatsTxLo.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceTotalStatsTxLo.setDescription('The number of bytes transmitted for this flow service entry. This counter represents the lower 32 bits of the counter value.') wwp_leos_flow_service_total_stats_type = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 34, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('forward', 1), ('drop', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowServiceTotalStatsType.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowServiceTotalStatsType.setDescription('Specifies the type of statistics for given entry.') wwp_leos_flow_port_service_level_table = mib_table((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 40)) if mibBuilder.loadTexts: wwpLeosFlowPortServiceLevelTable.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowPortServiceLevelTable.setDescription('A Table of flow Port Service Level entries.') wwp_leos_flow_port_service_level_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 40, 1)).setIndexNames((0, 'WWP-LEOS-FLOW-MIB', 'wwpLeosFlowPortServiceLevelPort')) if mibBuilder.loadTexts: wwpLeosFlowPortServiceLevelEntry.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowPortServiceLevelEntry.setDescription('A flow service statistics entry in the wwpLeosFlowPortServiceLevelTable.') wwp_leos_flow_port_service_level_port = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 40, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: wwpLeosFlowPortServiceLevelPort.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowPortServiceLevelPort.setDescription('Port id used as index in the port service level entry. ') wwp_leos_flow_port_service_level_max_bandwidth = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 40, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 8000000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowPortServiceLevelMaxBandwidth.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowPortServiceLevelMaxBandwidth.setDescription('Sets the max egress bandwidth on a port. ') wwp_leos_flow_port_service_level_queue_size = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 40, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('size0KB', 0), ('size16KB', 1), ('size32KB', 2), ('size64KB', 3), ('size128KB', 4), ('size256KB', 5), ('size512KB', 6), ('size1MB', 7), ('size2MB', 8), ('size4MB', 9)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowPortServiceLevelQueueSize.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowPortServiceLevelQueueSize.setDescription('The size of the traffic queue provisioned for this port service level entry. This may also be referred to as Latency Tolerance.') wwp_leos_flow_port_service_level_queue_size_yellow = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 40, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('size16KB', 1), ('size32KB', 2), ('size64KB', 3), ('size128KB', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowPortServiceLevelQueueSizeYellow.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowPortServiceLevelQueueSizeYellow.setDescription('The size of the yellow traffic queue provisioned for this service level entry. Also known as the discard preferred queue size. ') wwp_leos_flow_port_service_level_queue_size_red = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 40, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('size16KB', 1), ('size32KB', 2), ('size64KB', 3), ('size128KB', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowPortServiceLevelQueueSizeRed.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowPortServiceLevelQueueSizeRed.setDescription('The size of the red traffic queue provisioned for this service level entry. Also known as the discard wanted queue size') wwp_leos_flow_port_service_level_flow_group = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 40, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowPortServiceLevelFlowGroup.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowPortServiceLevelFlowGroup.setDescription('Service level Id direction used as index in the service level entry.') wwp_leos_flow_port_service_level_red_curve = mib_table_column((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 40, 1, 7), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 64))).setMaxAccess('readcreate') if mibBuilder.loadTexts: wwpLeosFlowPortServiceLevelRedCurve.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowPortServiceLevelRedCurve.setDescription('This object is used to specifies the red curve index to be used for the given port service level. If this OID is not specified, the system will use the default value of this object which is the default port red-curve (zero). Valid values for this OID are 0, 5-64') wwp_leos_flow_burst_config_backlog_limit = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 41), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 131072))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowBurstConfigBacklogLimit.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowBurstConfigBacklogLimit.setDescription('Sets the queue backlog-limit') wwp_leos_flow_burst_config_multicast_limit = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 42), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 131072))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowBurstConfigMulticastLimit.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowBurstConfigMulticastLimit.setDescription('Sets the multicast backlog-limit') wwp_leos_flow_burst_config_vlan_pri_fltr_on_thld = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 43), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowBurstConfigVlanPriFltrOnThld.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowBurstConfigVlanPriFltrOnThld.setDescription('The threshold of buffer use at which Vlan Priority Filtering is activated if enabled') wwp_leos_flow_burst_config_vlan_pri_fltr_off_thld = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 44), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowBurstConfigVlanPriFltrOffThld.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowBurstConfigVlanPriFltrOffThld.setDescription('The threshold of buffer use at which Vlan Priority Filtering is deactivated if enabled') wwp_leos_flow_burst_config_vlan_pri_fltr_pri_match = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 45), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowBurstConfigVlanPriFltrPriMatch.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowBurstConfigVlanPriFltrPriMatch.setDescription('when the Vlan Priority filter is activated all priorities less than this are dropped') wwp_leos_flow_burst_config_vlan_pri_fltr_state = mib_scalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 6, 1, 1, 46), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wwpLeosFlowBurstConfigVlanPriFltrState.setStatus('current') if mibBuilder.loadTexts: wwpLeosFlowBurstConfigVlanPriFltrState.setDescription('Globaly enables or disabled the Flow Vlan Priority Filter') mibBuilder.exportSymbols('WWP-LEOS-FLOW-MIB', wwpLeosFlowMacFindMacAddr=wwpLeosFlowMacFindMacAddr, wwpLeosFlowCpuRateLimitStatsTable=wwpLeosFlowCpuRateLimitStatsTable, wwpLeosFlowSMappingEntry=wwpLeosFlowSMappingEntry, wwpLeosFlowCpuRateLimitStatsDfltDropped=wwpLeosFlowCpuRateLimitStatsDfltDropped, wwpLeosFlowCosMap1dToPCPEntry=wwpLeosFlowCosMap1dToPCPEntry, wwpLeosFlowCpuRateLimitStatsPvstDropped=wwpLeosFlowCpuRateLimitStatsPvstDropped, wwpLeosFlowCosSyncIpPrecTo1dMapTo=wwpLeosFlowCosSyncIpPrecTo1dMapTo, wwpLeosFlowServiceMapProtocolPortNum=wwpLeosFlowServiceMapProtocolPortNum, wwpLeosFlowLearnAddr=wwpLeosFlowLearnAddr, wwpLeosFlowServiceACEntry=wwpLeosFlowServiceACEntry, wwpLeosFlowPortServiceLevelMaxBandwidth=wwpLeosFlowPortServiceLevelMaxBandwidth, wwpLeosFlowServiceACDynamicFilteredMacCount=wwpLeosFlowServiceACDynamicFilteredMacCount, wwpLeosFlowCpuRateLimitStatsClear=wwpLeosFlowCpuRateLimitStatsClear, wwpLeosFlowSMappingStatsRxLo=wwpLeosFlowSMappingStatsRxLo, wwpLeosFlowSMappingCpuPort=wwpLeosFlowSMappingCpuPort, wwpLeosFlowCpuRateLimitStatsBroadCastPassed=wwpLeosFlowCpuRateLimitStatsBroadCastPassed, wwpLeosFlowNotifAttrs=wwpLeosFlowNotifAttrs, wwpLeosFlowServiceMapSrcPri=wwpLeosFlowServiceMapSrcPri, wwpLeosFlowServiceTotalStatsEntry=wwpLeosFlowServiceTotalStatsEntry, wwpLeosFlowServiceTotalStatsTxLo=wwpLeosFlowServiceTotalStatsTxLo, wwpLeosFlowCosSync1dToExpEntry=wwpLeosFlowCosSync1dToExpEntry, wwpLeosFlowServiceStatus=wwpLeosFlowServiceStatus, wwpLeosFlowCpuRateLimitStatsMplsDropped=wwpLeosFlowCpuRateLimitStatsMplsDropped, wwpLeosFlowCpuRateLimitStatsRapsPassed=wwpLeosFlowCpuRateLimitStatsRapsPassed, wwpLeosFlowCpuRateLimitStatsIcmpPassed=wwpLeosFlowCpuRateLimitStatsIcmpPassed, wwpLeosFlowCpuRateLimitStatsLacpPassed=wwpLeosFlowCpuRateLimitStatsLacpPassed, wwpLeosFlowServiceLevelPirBW=wwpLeosFlowServiceLevelPirBW, wwpLeosFlowCosSyncIpPrecTo1dTable=wwpLeosFlowCosSyncIpPrecTo1dTable, wwpLeosFlowServiceACVid=wwpLeosFlowServiceACVid, wwpLeosFlowCpuRateLimitStatsPeArpDropped=wwpLeosFlowCpuRateLimitStatsPeArpDropped, wwpLeosFlowPortServiceLevelTable=wwpLeosFlowPortServiceLevelTable, wwpLeosFlowServiceMapRemarkPri=wwpLeosFlowServiceMapRemarkPri, wwpLeosFlowSMappingDstValue=wwpLeosFlowSMappingDstValue, wwpLeosFlowCpuRateLimitPeArp=wwpLeosFlowCpuRateLimitPeArp, wwpLeosFlowServiceStatsTable=wwpLeosFlowServiceStatsTable, wwpLeosFlowBurstConfigVlanPriFltrState=wwpLeosFlowBurstConfigVlanPriFltrState, wwpLeosFlowCpuRateLimitBootp=wwpLeosFlowCpuRateLimitBootp, wwpLeosFlowL2SacCurFilteredMac=wwpLeosFlowL2SacCurFilteredMac, wwpLeosFlowMIBCompliances=wwpLeosFlowMIBCompliances, wwpLeosFlowCosMapPCPTo1dTable=wwpLeosFlowCosMapPCPTo1dTable, wwpLeosFlowCpuRateLimitBroadCast=wwpLeosFlowCpuRateLimitBroadCast, wwpLeosFlowMacMotionEventsEnable=wwpLeosFlowMacMotionEventsEnable, wwpLeosFlowCpuRateLimitStatsClearPort=wwpLeosFlowCpuRateLimitStatsClearPort, wwpLeosFlowLearnType=wwpLeosFlowLearnType, wwpLeosFlowCosMapPCPTo1dMapFrom=wwpLeosFlowCosMapPCPTo1dMapFrom, wwpLeosFlowMacMotionAttrNewVlan=wwpLeosFlowMacMotionAttrNewVlan, wwpLeosFlowLearnSrcPri=wwpLeosFlowLearnSrcPri, wwpLeosFlowBurstConfigMulticastLimit=wwpLeosFlowBurstConfigMulticastLimit, wwpLeosFlowLearnVid=wwpLeosFlowLearnVid, wwpLeosFlowServiceLevelCirBW=wwpLeosFlowServiceLevelCirBW, wwpLeosFlowCpuRateLimitStatsDot1xPassed=wwpLeosFlowCpuRateLimitStatsDot1xPassed, wwpLeosFlowLearnDstTag=wwpLeosFlowLearnDstTag, wwpLeosFlowCpuRateLimitStatsRstpDropped=wwpLeosFlowCpuRateLimitStatsRstpDropped, wwpLeosFlowSMappingSrcType=wwpLeosFlowSMappingSrcType, wwpLeosFlowCpuRateLimitEntry=wwpLeosFlowCpuRateLimitEntry, wwpLeosFlowServiceLevelShareEligibility=wwpLeosFlowServiceLevelShareEligibility, wwpLeosFlowCpuRateLimitStatsLldpDropped=wwpLeosFlowCpuRateLimitStatsLldpDropped, wwpLeosFlowL2SacNetType=wwpLeosFlowL2SacNetType, wwpLeosFlowL2SacEntry=wwpLeosFlowL2SacEntry, wwpLeosFlowLearnTable=wwpLeosFlowLearnTable, wwpLeosFlowSacNetValue=wwpLeosFlowSacNetValue, wwpLeosFlowMacMotionAttrOldVlan=wwpLeosFlowMacMotionAttrOldVlan, wwpLeosFlowServiceRedCurveEntry=wwpLeosFlowServiceRedCurveEntry, PYSNMP_MODULE_ID=wwpLeosFlowMIB, wwpLeosFlowCpuRateLimitPvst=wwpLeosFlowCpuRateLimitPvst, wwpLeosFlowServiceLevelPortOverProvisionedTrap=wwpLeosFlowServiceLevelPortOverProvisionedTrap, wwpLeosFlowMacMotionAttrOldPort=wwpLeosFlowMacMotionAttrOldPort, wwpLeosFlowServiceLevelQueueSizeYellow=wwpLeosFlowServiceLevelQueueSizeYellow, wwpLeosFlowMacFindPort=wwpLeosFlowMacFindPort, wwpLeosFlowServiceACPortId=wwpLeosFlowServiceACPortId, wwpLeosFlowBurstConfigVlanPriFltrPriMatch=wwpLeosFlowBurstConfigVlanPriFltrPriMatch, wwpLeosFlowServiceRedCurveTable=wwpLeosFlowServiceRedCurveTable, wwpLeosFlowCos1dToRedCurveOffset1dValue=wwpLeosFlowCos1dToRedCurveOffset1dValue, wwpLeosFlowCpuRateLimitStatsLldpPassed=wwpLeosFlowCpuRateLimitStatsLldpPassed, wwpLeosFlowServiceLevelQueueSize=wwpLeosFlowServiceLevelQueueSize, wwpLeosFlowCpuRateLimitStatsEprArpPassed=wwpLeosFlowCpuRateLimitStatsEprArpPassed, wwpLeosFlowLearnAddrType=wwpLeosFlowLearnAddrType, wwpLeosFlowServiceLevelPort=wwpLeosFlowServiceLevelPort, wwpLeosFlowLearnIsFiltered=wwpLeosFlowLearnIsFiltered, wwpLeosFlowServiceTotalStatsType=wwpLeosFlowServiceTotalStatsType, wwpLeosFlowPortServiceLevelFlowGroup=wwpLeosFlowPortServiceLevelFlowGroup, wwpLeosFlow=wwpLeosFlow, wwpLeosFlowCosMap1dToPCPMapTo=wwpLeosFlowCosMap1dToPCPMapTo, wwpLeosFlowServiceMappingCosRedMappingState=wwpLeosFlowServiceMappingCosRedMappingState, wwpLeosFlowCosSyncIpPrecTo1dMapFrom=wwpLeosFlowCosSyncIpPrecTo1dMapFrom, wwpLeosFlowCpuRateLimitCxeTx=wwpLeosFlowCpuRateLimitCxeTx, wwpLeosFlowCpuRateLimitStatsMplsPassed=wwpLeosFlowCpuRateLimitStatsMplsPassed, wwpLeosFlowSMappingDstType=wwpLeosFlowSMappingDstType, wwpLeosFlowSMappingSrcValue=wwpLeosFlowSMappingSrcValue, wwpLeosFlowCpuRateLimitOam=wwpLeosFlowCpuRateLimitOam, wwpLeosFlowGlobal=wwpLeosFlowGlobal, wwpLeosFlowCpuRateLimitStatsDot1xDropped=wwpLeosFlowCpuRateLimitStatsDot1xDropped, wwpLeosFlowCpuRateLimitInet=wwpLeosFlowCpuRateLimitInet, wwpLeosFlowSMStatus=wwpLeosFlowSMStatus, wwpLeosFlowServiceRedCurveDropProbability=wwpLeosFlowServiceRedCurveDropProbability, wwpLeosFlowLearnSrcPort=wwpLeosFlowLearnSrcPort, wwpLeosFlowPortServiceLevelQueueSize=wwpLeosFlowPortServiceLevelQueueSize, wwpLeosFlowCpuRateLimitStatsTcpSynDropped=wwpLeosFlowCpuRateLimitStatsTcpSynDropped, wwpLeosFlowCpuRateLimitCft=wwpLeosFlowCpuRateLimitCft, wwpLeosFlowServiceTotalStatsTable=wwpLeosFlowServiceTotalStatsTable, wwpLeosFlowLearnSrcTag=wwpLeosFlowLearnSrcTag, wwpLeosFlowCos1dToRedCurveOffsetTable=wwpLeosFlowCos1dToRedCurveOffsetTable, wwpLeosFlowPortServiceLevelQueueSizeYellow=wwpLeosFlowPortServiceLevelQueueSizeYellow, wwpLeosFlowCpuRateLimitStatsIpControlPassed=wwpLeosFlowCpuRateLimitStatsIpControlPassed, wwpLeosFlowL2SacCurMac=wwpLeosFlowL2SacCurMac, wwpLeosFlowCpuRateLimitArp=wwpLeosFlowCpuRateLimitArp, wwpLeosFlowCpuRateLimitStatsTwampDropped=wwpLeosFlowCpuRateLimitStatsTwampDropped, wwpLeosFlowServiceLevelPortUnderProvisionedTrap=wwpLeosFlowServiceLevelPortUnderProvisionedTrap, wwpLeosFlowMIBConformance=wwpLeosFlowMIBConformance, wwpLeosFlowServiceACForwardLearning=wwpLeosFlowServiceACForwardLearning, wwpLeosFlowServiceRedCurveIndex=wwpLeosFlowServiceRedCurveIndex, wwpLeosFlowSMappingStatsRxHi=wwpLeosFlowSMappingStatsRxHi, wwpLeosFlowCpuRateLimitStatsArpDropped=wwpLeosFlowCpuRateLimitStatsArpDropped, wwpLeosFlowPortServiceLevelEntry=wwpLeosFlowPortServiceLevelEntry, PriorityMapping=PriorityMapping, wwpLeosFlowServiceLevelId=wwpLeosFlowServiceLevelId, wwpLeosFlowL2SacHighThreshold=wwpLeosFlowL2SacHighThreshold, wwpLeosFlowServiceMapSrcSlidId=wwpLeosFlowServiceMapSrcSlidId, wwpLeosFlowCpuRateLimitStatsCxeTxPassed=wwpLeosFlowCpuRateLimitStatsCxeTxPassed, wwpLeosFlowServiceACStatus=wwpLeosFlowServiceACStatus, wwpLeosFlowNotifications=wwpLeosFlowNotifications, wwpLeosFlowL2SacRowStatus=wwpLeosFlowL2SacRowStatus, wwpLeosFlowCpuRateLimitStatsIpControlDropped=wwpLeosFlowCpuRateLimitStatsIpControlDropped, wwpLeosFlowBwCalcMode=wwpLeosFlowBwCalcMode, wwpLeosFlowCpuRateLimitStatsEprArpDropped=wwpLeosFlowCpuRateLimitStatsEprArpDropped, wwpLeosFlowCpuRateLimitStatsLpbkDropped=wwpLeosFlowCpuRateLimitStatsLpbkDropped, wwpLeosFlowServiceLevelDropEligibility=wwpLeosFlowServiceLevelDropEligibility, wwpLeosFlowSMappingStatus=wwpLeosFlowSMappingStatus, wwpLeosFlowCpuRateLimitStatsInet6Passed=wwpLeosFlowCpuRateLimitStatsInet6Passed, wwpLeosFlowCpuRateLimitStatsCftDropped=wwpLeosFlowCpuRateLimitStatsCftDropped, wwpLeosFlowStaticMacTable=wwpLeosFlowStaticMacTable, wwpLeosFlowCpuRateLimitCxeRx=wwpLeosFlowCpuRateLimitCxeRx, wwpLeosFlowCpuRateLimitEnable=wwpLeosFlowCpuRateLimitEnable, wwpLeosFlowSMappingSrcSlid=wwpLeosFlowSMappingSrcSlid, wwpLeosFlowSMPortId=wwpLeosFlowSMPortId, wwpLeosFlowCpuRateLimitStatsBootpPassed=wwpLeosFlowCpuRateLimitStatsBootpPassed, wwpLeosFlowCosSyncExpTo1dMapTo=wwpLeosFlowCosSyncExpTo1dMapTo, wwpLeosFlowSMMacAddr=wwpLeosFlowSMMacAddr, wwpLeosFlowCpuRateLimitRmtLpbk=wwpLeosFlowCpuRateLimitRmtLpbk, wwpLeosFlowCpuRateLimitStatsLacpDropped=wwpLeosFlowCpuRateLimitStatsLacpDropped, wwpLeosFlowCosSyncExpTo1dEntry=wwpLeosFlowCosSyncExpTo1dEntry, wwpLeosFlowServiceStatsEntry=wwpLeosFlowServiceStatsEntry, wwpLeosFlowPortServiceLevelPort=wwpLeosFlowPortServiceLevelPort, wwpLeosFlowCpuRateLimitRaps=wwpLeosFlowCpuRateLimitRaps, wwpLeosFlowMIBObjects=wwpLeosFlowMIBObjects, wwpLeosFlowCosSyncStdPhbTo1dTable=wwpLeosFlowCosSyncStdPhbTo1dTable, wwpLeosFlowServiceTotalStatsRxLo=wwpLeosFlowServiceTotalStatsRxLo, wwpLeosFlowNotificationPrefix=wwpLeosFlowNotificationPrefix, wwpLeosFlowMacFindTable=wwpLeosFlowMacFindTable, wwpLeosFlowL2SacNormalThreshold=wwpLeosFlowL2SacNormalThreshold, wwpLeosFlowSMappingNetType=wwpLeosFlowSMappingNetType, wwpLeosFlowL2SacTable=wwpLeosFlowL2SacTable, wwpLeosFlowCpuRateLimitStatsCxeTxDropped=wwpLeosFlowCpuRateLimitStatsCxeTxDropped, wwpLeosFlowServiceTotalStatsTxHi=wwpLeosFlowServiceTotalStatsTxHi, wwpLeosFlowServiceRedCurveMinThreshold=wwpLeosFlowServiceRedCurveMinThreshold, wwpLeosFlowCpuRateLimitIgmp=wwpLeosFlowCpuRateLimitIgmp, wwpLeosFlowServiceMapVid=wwpLeosFlowServiceMapVid, wwpLeosFlowCosSync1dToExpMapFrom=wwpLeosFlowCosSync1dToExpMapFrom, wwpLeosFlowBurstConfigVlanPriFltrOnThld=wwpLeosFlowBurstConfigVlanPriFltrOnThld, wwpLeosFlowCosSyncIpPrecTo1dEntry=wwpLeosFlowCosSyncIpPrecTo1dEntry, wwpLeosFlowCpuRateLimitStatsBootpDropped=wwpLeosFlowCpuRateLimitStatsBootpDropped, wwpLeosFlowCpuRateLimitStatsIgmpPassed=wwpLeosFlowCpuRateLimitStatsIgmpPassed, wwpLeosFlowCpuRateLimitStatsMultiCastPassed=wwpLeosFlowCpuRateLimitStatsMultiCastPassed, wwpLeosFlowServiceMappingTable=wwpLeosFlowServiceMappingTable, wwpLeosFlowSMappingStatsEntry=wwpLeosFlowSMappingStatsEntry, wwpLeosFlowPortServiceLevelRedCurve=wwpLeosFlowPortServiceLevelRedCurve, wwpLeosFlowCpuRateLimitLldp=wwpLeosFlowCpuRateLimitLldp, wwpLeosFlowMacMotionAttrNewPort=wwpLeosFlowMacMotionAttrNewPort, wwpLeosFlowServiceACMaxDynamicMacCount=wwpLeosFlowServiceACMaxDynamicMacCount, wwpLeosFlowCpuRateLimitTwamp=wwpLeosFlowCpuRateLimitTwamp, wwpLeosFlowServiceMapDstSlidId=wwpLeosFlowServiceMapDstSlidId, wwpLeosFlowServiceLevelPriority=wwpLeosFlowServiceLevelPriority, wwpLeosFlowCpuRateLimitsEnable=wwpLeosFlowCpuRateLimitsEnable, wwpLeosFlowServiceMapDstPort=wwpLeosFlowServiceMapDstPort, wwpLeosFlowCpuRateLimitStatsRapsDropped=wwpLeosFlowCpuRateLimitStatsRapsDropped, wwpLeosFlowCpuRateLimitStatsPort=wwpLeosFlowCpuRateLimitStatsPort, wwpLeosFlowCpuRateLimitStatsPvstPassed=wwpLeosFlowCpuRateLimitStatsPvstPassed, wwpLeosFlowCpuRateLimitCfm=wwpLeosFlowCpuRateLimitCfm, wwpLeosFlowServiceLevelFlowGroupState=wwpLeosFlowServiceLevelFlowGroupState, wwpLeosFlowCpuRateLimitStatsDfltPassed=wwpLeosFlowCpuRateLimitStatsDfltPassed, wwpLeosFlowSMappingTable=wwpLeosFlowSMappingTable, wwpLeosFlowCpuRateLimitStatsInet6Dropped=wwpLeosFlowCpuRateLimitStatsInet6Dropped, wwpLeosFlowCpuRateLimitStatsMultiCastDropped=wwpLeosFlowCpuRateLimitStatsMultiCastDropped, wwpLeosFlowCpuRateLimitStatsCfmDropped=wwpLeosFlowCpuRateLimitStatsCfmDropped, wwpLeosFlowStrictQueuingState=wwpLeosFlowStrictQueuingState, wwpLeosFlowCpuRateLimitStatsTwampPassed=wwpLeosFlowCpuRateLimitStatsTwampPassed, wwpLeosFlowServiceLevelTable=wwpLeosFlowServiceLevelTable, wwpLeosFlowCpuRateLimitDot1x=wwpLeosFlowCpuRateLimitDot1x, wwpLeosFlowServiceRedCurveMaxThreshold=wwpLeosFlowServiceRedCurveMaxThreshold, wwpLeosFlowServiceStatsTxLo=wwpLeosFlowServiceStatsTxLo, wwpLeosFlowCpuRateLimitStatsCxeRxPassed=wwpLeosFlowCpuRateLimitStatsCxeRxPassed, wwpLeosFlowCpuRateLimitStatsIpV6MgmtDropped=wwpLeosFlowCpuRateLimitStatsIpV6MgmtDropped, wwpLeosFlowPriRemapTable=wwpLeosFlowPriRemapTable, wwpLeosFlowCpuRateLimitStatsRmtLpbkPassed=wwpLeosFlowCpuRateLimitStatsRmtLpbkPassed, wwpLeosFlowSMappingDstSlid=wwpLeosFlowSMappingDstSlid, wwpLeosFlowCos1dToRedCurveOffsetValue=wwpLeosFlowCos1dToRedCurveOffsetValue, wwpLeosFlowServiceLevelName=wwpLeosFlowServiceLevelName, wwpLeosFlowSMappingCosType=wwpLeosFlowSMappingCosType, wwpLeosFlowCosSyncStdPhbTo1dMapTo=wwpLeosFlowCosSyncStdPhbTo1dMapTo, wwpLeosFlowServiceMapStatus=wwpLeosFlowServiceMapStatus, wwpLeosFlowServiceLevelQueueSizeRed=wwpLeosFlowServiceLevelQueueSizeRed, wwpLeosFlowCpuRateLimitStatsIgmpDropped=wwpLeosFlowCpuRateLimitStatsIgmpDropped, wwpLeosFlowCpuRateLimitLpbk=wwpLeosFlowCpuRateLimitLpbk, wwpLeosFlowCosSyncExpTo1dTable=wwpLeosFlowCosSyncExpTo1dTable, wwpLeosFlowServiceAllRedCurveUnset=wwpLeosFlowServiceAllRedCurveUnset, wwpLeosFlowMacMotionNotification=wwpLeosFlowMacMotionNotification, wwpLeosFlowServiceRedCurveState=wwpLeosFlowServiceRedCurveState, wwpLeosFlowServiceStatsRxHi=wwpLeosFlowServiceStatsRxHi, wwpLeosFlowCosSyncStdPhbTo1dEntry=wwpLeosFlowCosSyncStdPhbTo1dEntry, wwpLeosFlowCpuRateLimitStatsRmtLpbkDropped=wwpLeosFlowCpuRateLimitStatsRmtLpbkDropped, wwpLeosFlowCpuRateLimitStatsIpMgmtPassed=wwpLeosFlowCpuRateLimitStatsIpMgmtPassed, wwpLeosFlowPriRemapEntry=wwpLeosFlowPriRemapEntry, wwpLeosFlowCpuRateLimitRstp=wwpLeosFlowCpuRateLimitRstp, wwpLeosFlowCpuRateLimitStatsIcmpDropped=wwpLeosFlowCpuRateLimitStatsIcmpDropped, wwpLeosFlowCpuRateLimitPort=wwpLeosFlowCpuRateLimitPort, wwpLeosFlowSMappingStatsTxHi=wwpLeosFlowSMappingStatsTxHi, wwpLeosFlowMIBGroups=wwpLeosFlowMIBGroups, wwpLeosFlowUserPri=wwpLeosFlowUserPri, wwpLeosFlowServiceMapSrcPort=wwpLeosFlowServiceMapSrcPort, wwpLeosFlowStaticMacEntry=wwpLeosFlowStaticMacEntry, wwpLeosFlowServiceStatsRxLo=wwpLeosFlowServiceStatsRxLo, wwpLeosFlowMIB=wwpLeosFlowMIB, wwpLeosFlowCpuRateLimitMpls=wwpLeosFlowCpuRateLimitMpls, wwpLeosFlowCpuRateLimitStatsClearEntry=wwpLeosFlowCpuRateLimitStatsClearEntry, wwpLeosFlowCpuRateLimitStatsTwampRspDropped=wwpLeosFlowCpuRateLimitStatsTwampRspDropped, wwpLeosFlowL2SacPortId=wwpLeosFlowL2SacPortId, wwpLeosFlowCpuRateLimitStatsIpMgmtDropped=wwpLeosFlowCpuRateLimitStatsIpMgmtDropped, wwpLeosFlowSMTag=wwpLeosFlowSMTag, wwpLeosFlowMacMotionAttrMacAddr=wwpLeosFlowMacMotionAttrMacAddr, wwpLeosFlowServiceLevelDirection=wwpLeosFlowServiceLevelDirection, wwpLeosFlowLearnEntry=wwpLeosFlowLearnEntry, wwpLeosFlowBurstConfigBacklogLimit=wwpLeosFlowBurstConfigBacklogLimit, wwpLeosFlowCpuRateLimitMultiCast=wwpLeosFlowCpuRateLimitMultiCast, wwpLeosFlowCosMap1dToPCPTable=wwpLeosFlowCosMap1dToPCPTable, wwpLeosFlowCosMapPCPTo1dEntry=wwpLeosFlowCosMapPCPTo1dEntry, wwpLeosFlowCpuRateLimitStatsEntry=wwpLeosFlowCpuRateLimitStatsEntry, wwpLeosFlowCosSync1dToExpTable=wwpLeosFlowCosSync1dToExpTable, wwpLeosFlowMacFindVlanId=wwpLeosFlowMacFindVlanId, wwpLeosFlowMacMotionEventsInterval=wwpLeosFlowMacMotionEventsInterval, wwpLeosFlowCpuRateLimitStatsLpbkPassed=wwpLeosFlowCpuRateLimitStatsLpbkPassed, wwpLeosFlowCpuRateLimitStatsRstpPassed=wwpLeosFlowCpuRateLimitStatsRstpPassed, wwpLeosFlowSMappingNetValue=wwpLeosFlowSMappingNetValue, wwpLeosFlowAgeTime=wwpLeosFlowAgeTime, wwpLeosFlowSMappingStatsTxLo=wwpLeosFlowSMappingStatsTxLo, wwpLeosFlowCpuRateLimitStatsMstpDropped=wwpLeosFlowCpuRateLimitStatsMstpDropped, wwpLeosFlowSMappingCosValue=wwpLeosFlowSMappingCosValue, wwpLeosFlowCpuRateLimitIpControl=wwpLeosFlowCpuRateLimitIpControl, wwpLeosFlowSMVid=wwpLeosFlowSMVid, wwpLeosFlowMacFindVlanTag=wwpLeosFlowMacFindVlanTag, wwpLeosFlowServiceStatsTxHi=wwpLeosFlowServiceStatsTxHi, wwpLeosFlowServiceLevelEntry=wwpLeosFlowServiceLevelEntry, wwpLeosFlowCosSyncStdPhbTo1dMapFrom=wwpLeosFlowCosSyncStdPhbTo1dMapFrom, wwpLeosFlowCpuRateLimitStatsInetDropped=wwpLeosFlowCpuRateLimitStatsInetDropped, wwpLeosFlowCosSyncExpTo1dMapFrom=wwpLeosFlowCosSyncExpTo1dMapFrom) mibBuilder.exportSymbols('WWP-LEOS-FLOW-MIB', wwpLeosFlowCpuRateLimitDflt=wwpLeosFlowCpuRateLimitDflt, wwpLeosFlowCpuRateLimitInet6=wwpLeosFlowCpuRateLimitInet6, wwpLeosFlowSMappingStatsTable=wwpLeosFlowSMappingStatsTable, wwpLeosFlowCpuRateLimitLacp=wwpLeosFlowCpuRateLimitLacp, wwpLeosFlowCpuRateLimitTwampRsp=wwpLeosFlowCpuRateLimitTwampRsp, wwpLeosFlowCpuRateLimitStatsTwampRspPassed=wwpLeosFlowCpuRateLimitStatsTwampRspPassed, wwpLeosFlowServiceStatsType=wwpLeosFlowServiceStatsType, wwpLeosFlowSMappingStatsType=wwpLeosFlowSMappingStatsType, wwpLeosFlowCpuRateLimitStatsOamPassed=wwpLeosFlowCpuRateLimitStatsOamPassed, wwpLeosFlowCos1dToRedCurveOffsetEntry=wwpLeosFlowCos1dToRedCurveOffsetEntry, wwpLeosFlowL2SacTrapState=wwpLeosFlowL2SacTrapState, wwpLeosFlowCpuRateLimitIpMgmt=wwpLeosFlowCpuRateLimitIpMgmt, wwpLeosFlowCosMapPCPTo1dMapTo=wwpLeosFlowCosMapPCPTo1dMapTo, wwpLeosFlowCpuRateLimitTable=wwpLeosFlowCpuRateLimitTable, wwpLeosFlowCpuRateLimitIpV6Mgmt=wwpLeosFlowCpuRateLimitIpV6Mgmt, wwpLeosFlowServiceMappingEntry=wwpLeosFlowServiceMappingEntry, wwpLeosFlowL2SacLimit=wwpLeosFlowL2SacLimit, wwpLeosFlowServiceLevelFlowGroup=wwpLeosFlowServiceLevelFlowGroup, wwpLeosFlowMacFindEntry=wwpLeosFlowMacFindEntry, wwpLeosFlowCpuRateLimitStatsInetPassed=wwpLeosFlowCpuRateLimitStatsInetPassed, wwpLeosFlowServiceMapSrcTag=wwpLeosFlowServiceMapSrcTag, wwpLeosFlowCosSync1dToExpMapTo=wwpLeosFlowCosSync1dToExpMapTo, wwpLeosFlowLearnDstPort=wwpLeosFlowLearnDstPort, wwpLeosFlowCpuRateLimitStatsPeArpPassed=wwpLeosFlowCpuRateLimitStatsPeArpPassed, wwpLeosFlowCpuRateLimitStatsBroadCastDropped=wwpLeosFlowCpuRateLimitStatsBroadCastDropped, wwpLeosFlowSMappingRedCurveOffset=wwpLeosFlowSMappingRedCurveOffset, wwpLeosFlowAgeTimeState=wwpLeosFlowAgeTimeState, wwpLeosFlowCpuRateLimitStatsClearTable=wwpLeosFlowCpuRateLimitStatsClearTable, wwpLeosFlowServiceACTable=wwpLeosFlowServiceACTable, wwpLeosFlowCpuRateLimitTcpSyn=wwpLeosFlowCpuRateLimitTcpSyn, wwpLeosFlowPortServiceLevelQueueSizeRed=wwpLeosFlowPortServiceLevelQueueSizeRed, wwpLeosFlowCpuRateLimitEprArp=wwpLeosFlowCpuRateLimitEprArp, wwpLeosFlowCpuRateLimitStatsArpPassed=wwpLeosFlowCpuRateLimitStatsArpPassed, wwpLeosFlowServiceMapProtocolType=wwpLeosFlowServiceMapProtocolType, wwpLeosFlowRemappedPri=wwpLeosFlowRemappedPri, wwpLeosFlowBurstConfigVlanPriFltrOffThld=wwpLeosFlowBurstConfigVlanPriFltrOffThld, wwpLeosFlowServiceMapPriRemarkStatus=wwpLeosFlowServiceMapPriRemarkStatus, wwpLeosFlowServiceRedCurveId=wwpLeosFlowServiceRedCurveId, wwpLeosFlowServiceRedCurveUnset=wwpLeosFlowServiceRedCurveUnset, wwpLeosFlowCpuRateLimitIcmp=wwpLeosFlowCpuRateLimitIcmp, wwpLeosFlowCpuRateLimitStatsCxeRxDropped=wwpLeosFlowCpuRateLimitStatsCxeRxDropped, wwpLeosFlowCpuRateLimitStatsIpV6MgmtPassed=wwpLeosFlowCpuRateLimitStatsIpV6MgmtPassed, wwpLeosFlowCosMap1dToPCPMapFrom=wwpLeosFlowCosMap1dToPCPMapFrom, wwpLeosFlowServiceACDynamicNonFilteredMacCount=wwpLeosFlowServiceACDynamicNonFilteredMacCount, wwpLeosFlowServiceTotalStatsRxHi=wwpLeosFlowServiceTotalStatsRxHi, wwpLeosFlowCpuRateLimitMstp=wwpLeosFlowCpuRateLimitMstp, wwpLeosFlowL2SacOperState=wwpLeosFlowL2SacOperState, wwpLeosFlowServiceRedCurveName=wwpLeosFlowServiceRedCurveName, wwpLeosFlowServiceMapDstTag=wwpLeosFlowServiceMapDstTag, wwpLeosFlowCpuRateLimitStatsCfmPassed=wwpLeosFlowCpuRateLimitStatsCfmPassed, wwpLeosFlowCpuRateLimitStatsOamDropped=wwpLeosFlowCpuRateLimitStatsOamDropped, wwpLeosFlowCpuRateLimitStatsMstpPassed=wwpLeosFlowCpuRateLimitStatsMstpPassed, wwpLeosFlowCpuRateLimitStatsTcpSynPassed=wwpLeosFlowCpuRateLimitStatsTcpSynPassed, wwpLeosFlowCpuRateLimitStatsCftPassed=wwpLeosFlowCpuRateLimitStatsCftPassed)
# generated from catkin/cmake/template/cfg-extras.context.py.in DEVELSPACE = 'FALSE' == 'TRUE' INSTALLSPACE = 'TRUE' == 'TRUE' CATKIN_DEVEL_PREFIX = '/root/ros_catkin_ws/devel_isolated/roslisp' CATKIN_GLOBAL_BIN_DESTINATION = 'bin' CATKIN_GLOBAL_ETC_DESTINATION = 'etc' CATKIN_GLOBAL_INCLUDE_DESTINATION = 'include' CATKIN_GLOBAL_LIB_DESTINATION = 'lib' CATKIN_GLOBAL_LIBEXEC_DESTINATION = 'lib' CATKIN_GLOBAL_PYTHON_DESTINATION = 'lib/python2.7/dist-packages' CATKIN_GLOBAL_SHARE_DESTINATION = 'share' CATKIN_PACKAGE_BIN_DESTINATION = 'lib/roslisp' CATKIN_PACKAGE_ETC_DESTINATION = 'etc/roslisp' CATKIN_PACKAGE_INCLUDE_DESTINATION = 'include/roslisp' CATKIN_PACKAGE_LIB_DESTINATION = 'lib' CATKIN_PACKAGE_LIBEXEC_DESTINATION = '' CATKIN_PACKAGE_PYTHON_DESTINATION = 'lib/python2.7/dist-packages/roslisp' CATKIN_PACKAGE_SHARE_DESTINATION = 'share/roslisp' CMAKE_BINARY_DIR = '/root/ros_catkin_ws/build_isolated/roslisp' CMAKE_CURRENT_BINARY_DIR = '/root/ros_catkin_ws/build_isolated/roslisp' CMAKE_CURRENT_SOURCE_DIR = '/root/ros_catkin_ws/src/roslisp' CMAKE_INSTALL_PREFIX = '/root/ros_catkin_ws/install_isolated' CMAKE_SOURCE_DIR = '/root/ros_catkin_ws/src/roslisp' PKG_CMAKE_DIR = '${roslisp_DIR}' PROJECT_NAME = 'roslisp' PROJECT_BINARY_DIR = '/root/ros_catkin_ws/build_isolated/roslisp' PROJECT_SOURCE_DIR = '/root/ros_catkin_ws/src/roslisp'
develspace = 'FALSE' == 'TRUE' installspace = 'TRUE' == 'TRUE' catkin_devel_prefix = '/root/ros_catkin_ws/devel_isolated/roslisp' catkin_global_bin_destination = 'bin' catkin_global_etc_destination = 'etc' catkin_global_include_destination = 'include' catkin_global_lib_destination = 'lib' catkin_global_libexec_destination = 'lib' catkin_global_python_destination = 'lib/python2.7/dist-packages' catkin_global_share_destination = 'share' catkin_package_bin_destination = 'lib/roslisp' catkin_package_etc_destination = 'etc/roslisp' catkin_package_include_destination = 'include/roslisp' catkin_package_lib_destination = 'lib' catkin_package_libexec_destination = '' catkin_package_python_destination = 'lib/python2.7/dist-packages/roslisp' catkin_package_share_destination = 'share/roslisp' cmake_binary_dir = '/root/ros_catkin_ws/build_isolated/roslisp' cmake_current_binary_dir = '/root/ros_catkin_ws/build_isolated/roslisp' cmake_current_source_dir = '/root/ros_catkin_ws/src/roslisp' cmake_install_prefix = '/root/ros_catkin_ws/install_isolated' cmake_source_dir = '/root/ros_catkin_ws/src/roslisp' pkg_cmake_dir = '${roslisp_DIR}' project_name = 'roslisp' project_binary_dir = '/root/ros_catkin_ws/build_isolated/roslisp' project_source_dir = '/root/ros_catkin_ws/src/roslisp'
# Definition for a binary tree node. https://leetcode.com/problems/find-mode-in-binary-search-tree/submissions/ class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def findMode(self, root: TreeNode) -> List[int]: """ Intuition - most common elems Approach: Extra Space: 1. use a dict --> - rel. frequencies - get the highest freq - return [elems] of the freq 2. Sorted Array 0 1. 2. 3. 4. 5. 6 - [5, 5, 5, 6, 6, 7, 10] i - current_elem = 5 _ max_occurences = 3 - current_occurences = 3 - modes = [(5, 3)] # A: iterate through the tree --> just find max_occurrences # B: iterate through the tree again --> find current_occurences, fill the array No Space: 1. %'s? + DFS - modes = [] - current_mode = 5 - max_occurence = 0, 1, 2 - current_elem = 5 - current_occurences = 1, 2, 2. Top Down Recursion - mode of subtree = mode of left subtree and right subtree Edge Cases - no node -- impossible - imbalanced tree - long runtime - not an int - impossible Example: 5 / \ 5 5 < [(6, 2), (5, 3) ] \ 7 / \ 6 10 \ 6 """ def find_max_occurrences(): """iterative DFS to find how many times the modes appear""" # init output max_occurrences = 0 current_occurrences = 0 current_elem = root.val # init stack stack = list() # push first node onto stack node = root # DFS while node is not None or len(stack) > 0: # defer the current node, go down the left subtree if node is not None: stack.append(node) node = node.left # visit this node else: # increment current_occurences node = stack.pop() if node.val == current_elem: current_occurrences += 1 else: # new node value current_elem = node.val current_occurrences = 1 # if current_occurences > max_occurences --> update the latter if current_occurrences > max_occurrences: max_occurrences = current_occurrences # go down the right subtree node = node.right # return the rel freq of the mode(s) in the tree return max_occurrences def find_modes(max_occurrences): """iterative DFS to find how many times the modes appear""" # init output modes = list() current_occurrences = 0 current_elem = root.val # init stack stack = list() # push first node onto stack node = root # DFS while node is not None or len(stack) > 0: # defer the current node, go down the left subtree if node is not None: stack.append(node) node = node.left # visit this node else: # increment current_occurences node = stack.pop() if node.val == current_elem: current_occurrences += 1 else: # new node value current_elem = node.val current_occurrences = 1 # if current_occurences == max --> add as a mode if current_occurrences == max_occurrences: modes.append(current_elem) # go down the right subtree node = node.right # return the modes return modes # A: iterate through the tree --> just find max_occurrences max_occurrences = find_max_occurrences() # B: find current_occurences, fill the array return find_modes(max_occurrences)
class Treenode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def find_mode(self, root: TreeNode) -> List[int]: """ Intuition - most common elems Approach: Extra Space: 1. use a dict --> - rel. frequencies - get the highest freq - return [elems] of the freq 2. Sorted Array 0 1. 2. 3. 4. 5. 6 - [5, 5, 5, 6, 6, 7, 10] i - current_elem = 5 _ max_occurences = 3 - current_occurences = 3 - modes = [(5, 3)] # A: iterate through the tree --> just find max_occurrences # B: iterate through the tree again --> find current_occurences, fill the array No Space: 1. %'s? + DFS - modes = [] - current_mode = 5 - max_occurence = 0, 1, 2 - current_elem = 5 - current_occurences = 1, 2, 2. Top Down Recursion - mode of subtree = mode of left subtree and right subtree Edge Cases - no node -- impossible - imbalanced tree - long runtime - not an int - impossible Example: 5 / 5 5 < [(6, 2), (5, 3) ] 7 / 6 10 6 """ def find_max_occurrences(): """iterative DFS to find how many times the modes appear""" max_occurrences = 0 current_occurrences = 0 current_elem = root.val stack = list() node = root while node is not None or len(stack) > 0: if node is not None: stack.append(node) node = node.left else: node = stack.pop() if node.val == current_elem: current_occurrences += 1 else: current_elem = node.val current_occurrences = 1 if current_occurrences > max_occurrences: max_occurrences = current_occurrences node = node.right return max_occurrences def find_modes(max_occurrences): """iterative DFS to find how many times the modes appear""" modes = list() current_occurrences = 0 current_elem = root.val stack = list() node = root while node is not None or len(stack) > 0: if node is not None: stack.append(node) node = node.left else: node = stack.pop() if node.val == current_elem: current_occurrences += 1 else: current_elem = node.val current_occurrences = 1 if current_occurrences == max_occurrences: modes.append(current_elem) node = node.right return modes max_occurrences = find_max_occurrences() return find_modes(max_occurrences)
a,b=1,0 for i in range(int(input())): x,y,z=list(map(int,input().split())) a=a*y//x if z: b=1-b print(b,a)
(a, b) = (1, 0) for i in range(int(input())): (x, y, z) = list(map(int, input().split())) a = a * y // x if z: b = 1 - b print(b, a)
# https://www.hackerrank.com/challenges/merge-the-tools/problem def merge_the_tools(s, n): # your code goes here for part in zip(*[iter(s)] * n): d = dict() print(''.join([d.setdefault(c, c) for c in part if c not in d])) if __name__ == '__main__': string, k = input(), int(input()) merge_the_tools(string, k)
def merge_the_tools(s, n): for part in zip(*[iter(s)] * n): d = dict() print(''.join([d.setdefault(c, c) for c in part if c not in d])) if __name__ == '__main__': (string, k) = (input(), int(input())) merge_the_tools(string, k)
#!/usr/bin/env python # -*- coding: utf-8 -*- class PodiumApplication(): def __init__(self, app_id, app_secret, podium_url=None): self.app_id = app_id self.app_secret = app_secret self.podium_url = 'https://podium.live' if podium_url is None else podium_url
class Podiumapplication: def __init__(self, app_id, app_secret, podium_url=None): self.app_id = app_id self.app_secret = app_secret self.podium_url = 'https://podium.live' if podium_url is None else podium_url
class DigAdd: def addDigits(self, num: int) -> int: if not num: return 0 else: mod = (num - 1) % 9 x = mod + 1 return x print(DigAdd().addDigits(12)) print(DigAdd().addDigits(12836374)) print(DigAdd().addDigits(9)) print(DigAdd().addDigits(8))
class Digadd: def add_digits(self, num: int) -> int: if not num: return 0 else: mod = (num - 1) % 9 x = mod + 1 return x print(dig_add().addDigits(12)) print(dig_add().addDigits(12836374)) print(dig_add().addDigits(9)) print(dig_add().addDigits(8))
"""Constants needed for the operation of the program.""" WHEEL_DIAMETER = 0.03 AXIS_LENGTH = 0.14 RPS_PER_PERCENTAGE = 0.083 PIXELS_PER_METER = 100 VALUE_PER_ALPHA = 1024.0 / 255.0 SENSORS = [ (-0.03, 0.01), (-0.02, 0.02), (-0.01, 0.03), (0.03, 0.01), (0.02, 0.02), (0.01, 0.03) ]
"""Constants needed for the operation of the program.""" wheel_diameter = 0.03 axis_length = 0.14 rps_per_percentage = 0.083 pixels_per_meter = 100 value_per_alpha = 1024.0 / 255.0 sensors = [(-0.03, 0.01), (-0.02, 0.02), (-0.01, 0.03), (0.03, 0.01), (0.02, 0.02), (0.01, 0.03)]
# 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: # O(n) time | O(n) space - where n is the number of the nodes in this binary tree def maxDepth(self, root: Optional[TreeNode]) -> int: stack = [[root, 1]] ans = 0 while stack: node, depth = stack.pop() if node: ans = max(ans, depth) stack.append([node.right, depth + 1]) stack.append([node.left, depth + 1]) return ans
class Solution: def max_depth(self, root: Optional[TreeNode]) -> int: stack = [[root, 1]] ans = 0 while stack: (node, depth) = stack.pop() if node: ans = max(ans, depth) stack.append([node.right, depth + 1]) stack.append([node.left, depth + 1]) return ans
def send_email(name: str, address: str, subject: str, body: str): print(f"Sending email to {name} ({address})") print("==========") print(f"Subject: {subject}\n") print(body)
def send_email(name: str, address: str, subject: str, body: str): print(f'Sending email to {name} ({address})') print('==========') print(f'Subject: {subject}\n') print(body)
with open('input') as f: in_data = [line.rstrip() for line in f] j=0 w=len(in_data[0]) tree_count=0 for i in range(1, len(in_data)): line = in_data[i] j=(j+3)%w if line[j] == '#': tree_count+=1 print(tree_count)
with open('input') as f: in_data = [line.rstrip() for line in f] j = 0 w = len(in_data[0]) tree_count = 0 for i in range(1, len(in_data)): line = in_data[i] j = (j + 3) % w if line[j] == '#': tree_count += 1 print(tree_count)
# ======================= # From the pyECC package # ======================= # # Predefined Elliptic Curves # for use in signing and key exchange # """ Predefined elliptic curves for use in signing and key exchange. This Module implements FIPS approved standard curves P-192, P-224, P-256, P-384 and P-521 along with two weak non-standard curves of field size 128 and 160 bits. The weak curves cannot be used for signing but provide a faster way to obfuscate non-critical transmissions. """ # FIPS approved elliptic curves over prime fields # (see FIPS 186-3, Appendix D.1.2) DOMAINS = { # Bits : (p, order of E(GF(P)), parameter b, base point x, base point y) 192: (0xfffffffffffffffffffffffffffffffeffffffffffffffff, 0xffffffffffffffffffffffff99def836146bc9b1b4d22831, 0x64210519e59c80e70fa7e9ab72243049feb8deecc146b9b1, 0x188da80eb03090f67cbf20eb43a18800f4ff0afd82ff1012, 0x07192b95ffc8da78631011ed6b24cdd573f977a11e794811), 224: (0xffffffffffffffffffffffffffffffff000000000000000000000001, 0xffffffffffffffffffffffffffff16a2e0b8f03e13dd29455c5c2a3d, 0xb4050a850c04b3abf54132565044b0b7d7bfd8ba270b39432355ffb4, 0xb70e0cbd6bb4bf7f321390b94a03c1d356c21122343280d6115c1d21, 0xbd376388b5f723fb4c22dfe6cd4375a05a07476444d5819985007e34), 256: (0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff, 0xffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551, 0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b, 0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296, 0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5), 384: ( 0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000ffffffff, 0xffffffffffffffffffffffffffffffffffffffffffffffffc7634d81f4372ddf581a0db248b0a77aecec196accc52973, 0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef, 0xaa87ca22be8b05378eb1c71ef320ad746e1d3b628ba79b9859f741e082542a385502f25dbf55296c3a545e3872760ab7, 0x3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f), 521: ( 0x1ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff, 0x1fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa51868783bf2f966b7fcc0148f709a5d03bb5c9b8899c47aebb6fb71e91386409, 0x051953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00, 0x0c6858e06b70404e9cd9e3ecb662395b4429c648139053fb521f828af606b4d3dbaa14b5e77efe75928fe1dc127a2ffa8de3348b3c1856a429bf97e7e31c2e5bd66, 0x11839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650) } # Additional non-standard curves for low security but high performance # (not intended for use in signing, hence the missing group order) DOMAINS.update({ 128: (0xffffffffffffffffffffffffffffff61, None, 0xd83d3eb8266a89927d73d5fe263d5f23, 0xa94d2d8531f7af8bde367def12b98ead, 0x9f44e1d671beb68fd2df7f877ab13fa6), 160: (0xffffffffffffffffffffffffffffffffffffffd1, None, 0x94bfe70deef7b94742c089ca4db3ca27fbe1f754, 0xcc6562c2969ac57524b8d0f300d1f598c908c121, 0x952ddde80a252683dd7ba90fb5919899b5af69f5) }) CURVE_P = 3 # global parameter of all curves (for efficiency reasons) def get_curve(bits): """Get a known curve of the given size => (bits, prime, order, p, q, point). Order may be None if unknown.""" if bits in DOMAINS: p, n, b, x, y = DOMAINS[bits] return bits, p, n, CURVE_P, p - b, (x, y) else: raise KeyError("Key size not implemented: %s" % bits) def implemented_keys(must_sign=False): return [k for k in DOMAINS if not must_sign or DOMAINS[k][1]]
""" Predefined elliptic curves for use in signing and key exchange. This Module implements FIPS approved standard curves P-192, P-224, P-256, P-384 and P-521 along with two weak non-standard curves of field size 128 and 160 bits. The weak curves cannot be used for signing but provide a faster way to obfuscate non-critical transmissions. """ domains = {192: (6277101735386680763835789423207666416083908700390324961279, 6277101735386680763835789423176059013767194773182842284081, 2455155546008943817740293915197451784769108058161191238065, 602046282375688656758213480587526111916698976636884684818, 174050332293622031404857552280219410364023488927386650641), 224: (26959946667150639794667015087019630673557916260026308143510066298881, 26959946667150639794667015087019625940457807714424391721682722368061, 18958286285566608000408668544493926415504680968679321075787234672564, 19277929113566293071110308034699488026831934219452440156649784352033, 19926808758034470970197974370888749184205991990603949537637343198772), 256: (115792089210356248762697446949407573530086143415290314195533631308867097853951, 115792089210356248762697446949407573529996955224135760342422259061068512044369, 41058363725152142129326129780047268409114441015993725554835256314039467401291, 48439561293906451759052585252797914202762949526041747995844080717082404635286, 36134250956749795798585127919587881956611106672985015071877198253568414405109), 384: (39402006196394479212279040100143613805079739270465446667948293404245721771496870329047266088258938001861606973112319, 39402006196394479212279040100143613805079739270465446667946905279627659399113263569398956308152294913554433653942643, 27580193559959705877849011840389048093056905856361568521428707301988689241309860865136260764883745107765439761230575, 26247035095799689268623156744566981891852923491109213387815615900925518854738050089022388053975719786650872476732087, 8325710961489029985546751289520108179287853048861315594709205902480503199884419224438643760392947333078086511627871), 521: (6864797660130609714981900799081393217269435300143305409394463459185543183397656052122559640661454554977296311391480858037121987999716643812574028291115057151, 6864797660130609714981900799081393217269435300143305409394463459185543183397655394245057746333217197532963996371363321113864768612440380340372808892707005449, 1093849038073734274511112390766805569936207598951683748994586394495953116150735016013708737573759623248592132296706313309438452531591012912142327488478985984, 2661740802050217063228768716723360960729859168756973147706671368418802944996427808491545080627771902352094241225065558662157113545570916814161637315895999846, 3757180025770020463545507224491183603594455134769762486694567779615544477440556316691234405012945539562144444537289428522585666729196580810124344277578376784)} DOMAINS.update({128: (340282366920938463463374607431768211297, None, 287431249297179008237329942609955479331, 225040261406999942123400993170515398317, 211704908048371955888177090497522778022), 160: (1461501637330902918203684832716283019655932542929, None, 849210204094211123408217080597605732170248353620, 1166895095732103169046793307030740236640797114657, 851662489160871187944954831398315326988016904693)}) curve_p = 3 def get_curve(bits): """Get a known curve of the given size => (bits, prime, order, p, q, point). Order may be None if unknown.""" if bits in DOMAINS: (p, n, b, x, y) = DOMAINS[bits] return (bits, p, n, CURVE_P, p - b, (x, y)) else: raise key_error('Key size not implemented: %s' % bits) def implemented_keys(must_sign=False): return [k for k in DOMAINS if not must_sign or DOMAINS[k][1]]
# -*- coding: utf-8 -*- """ 118. Pascal's Triangle Given a non-negative integer numRows, generate the first numRows of Pascal's triangle. In Pascal's triangle, each number is the sum of the two numbers directly above it. """ class Solution: def generate(self, numRows): if numRows == 0: return [] elif numRows == 1: return [[1]] elif numRows == 2: return [[1], [1, 1]] elif numRows == 3: return [[1], [1, 1], [1, 2, 1]] elif numRows == 4: return [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]] elif numRows == 5: return [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1], [1, 4, 6, 4, 1]] elif numRows == 6: return [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1], [1, 4, 6, 4, 1], [1, 5, 10, 10, 5, 1]] else: res = self.generate(6) numRows -= 6 while numRows > 0: last_row = res[-1] tmp_row = [last_row[ind] + last_row[ind - 1] for ind in range(1, len(last_row))] res.append([1] + tmp_row + [1]) numRows -= 1 return res
""" 118. Pascal's Triangle Given a non-negative integer numRows, generate the first numRows of Pascal's triangle. In Pascal's triangle, each number is the sum of the two numbers directly above it. """ class Solution: def generate(self, numRows): if numRows == 0: return [] elif numRows == 1: return [[1]] elif numRows == 2: return [[1], [1, 1]] elif numRows == 3: return [[1], [1, 1], [1, 2, 1]] elif numRows == 4: return [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]] elif numRows == 5: return [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1], [1, 4, 6, 4, 1]] elif numRows == 6: return [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1], [1, 4, 6, 4, 1], [1, 5, 10, 10, 5, 1]] else: res = self.generate(6) num_rows -= 6 while numRows > 0: last_row = res[-1] tmp_row = [last_row[ind] + last_row[ind - 1] for ind in range(1, len(last_row))] res.append([1] + tmp_row + [1]) num_rows -= 1 return res
def isPalindrome(word): word = word.lower() if word == word[::-1]: return True else: return False print(isPalindrome("DDnKnDD"))
def is_palindrome(word): word = word.lower() if word == word[::-1]: return True else: return False print(is_palindrome('DDnKnDD'))
for i in range(1, 1001): print(1001 - i, end="\t") if i % 5 == 0: print("")
for i in range(1, 1001): print(1001 - i, end='\t') if i % 5 == 0: print('')
with open('day002.txt', 'r') as fd: inp = fd.read() rows = inp.split('\n') def move(p, d): x, y = p if d == 'U': p = (x, max(y - 1, 0)) if d == 'D': p = (x, min(y + 1, 2)) if d == 'R': p = (min(x + 1, 2), y) if d == 'L': p = (max(x - 1, 0), y) return p def key(p): return p[0] + p[1] * 3 + 1 p = (1, 1) keys = [] for row in rows: for d in row: p = move(p, d) keys.append(str(key(p))) print(''.join(keys))
with open('day002.txt', 'r') as fd: inp = fd.read() rows = inp.split('\n') def move(p, d): (x, y) = p if d == 'U': p = (x, max(y - 1, 0)) if d == 'D': p = (x, min(y + 1, 2)) if d == 'R': p = (min(x + 1, 2), y) if d == 'L': p = (max(x - 1, 0), y) return p def key(p): return p[0] + p[1] * 3 + 1 p = (1, 1) keys = [] for row in rows: for d in row: p = move(p, d) keys.append(str(key(p))) print(''.join(keys))
jvar = 0 def return_something(): return "Hi world" def change_jvar(): jvar = 18 print(jvar) def print_jvar(): print(jvar) print("Called on import! Oops!")
jvar = 0 def return_something(): return 'Hi world' def change_jvar(): jvar = 18 print(jvar) def print_jvar(): print(jvar) print('Called on import! Oops!')
# empty class for creating constants class Constant: pass # constants for metrical feet FOOT = Constant() FOOT.DACTYL = "Dactyl" FOOT.SPONDEE = "Spondee" FOOT.FINAL = "Final" APPROACH = Constant() APPROACH.STUDENT = "version_student" APPROACH.NATIVE_SPEAKER = "version_native_speaker" APPROACH.FALLBACK = "version_fallback" SYL = Constant() SYL.UNKNOWN = 0 SYL.SHORT = 1 SYL.LONG = 2 VERBOSE = False#True# VERY_VERBOSE = False
class Constant: pass foot = constant() FOOT.DACTYL = 'Dactyl' FOOT.SPONDEE = 'Spondee' FOOT.FINAL = 'Final' approach = constant() APPROACH.STUDENT = 'version_student' APPROACH.NATIVE_SPEAKER = 'version_native_speaker' APPROACH.FALLBACK = 'version_fallback' syl = constant() SYL.UNKNOWN = 0 SYL.SHORT = 1 SYL.LONG = 2 verbose = False very_verbose = False
class Agencia: def __init__(self,nombre,direccion,email): self.nombre = nombre self.direccion = direccion self.email = email def getNombre(self): return self.nombre def getDireccion(self): return self.direccion def getEmail(self): return self.email def setNombre(self,nombre): self.nombre = nombre def setDireccion(self,direccion): self.direccion = direccion def setEmail(self,email): self.email = email def ventaVehiculo(self,Cliente,Vehiculo,Vendedor): return Cliente+" "+Vehiculo+" "+Vendedor Sagencia = Agencia('El Horizonte \n S.A. de C.V.','Balcones de buenavista #193','elhorizonte@outlook.com')
class Agencia: def __init__(self, nombre, direccion, email): self.nombre = nombre self.direccion = direccion self.email = email def get_nombre(self): return self.nombre def get_direccion(self): return self.direccion def get_email(self): return self.email def set_nombre(self, nombre): self.nombre = nombre def set_direccion(self, direccion): self.direccion = direccion def set_email(self, email): self.email = email def venta_vehiculo(self, Cliente, Vehiculo, Vendedor): return Cliente + ' ' + Vehiculo + ' ' + Vendedor sagencia = agencia('El Horizonte \n S.A. de C.V.', 'Balcones de buenavista #193', 'elhorizonte@outlook.com')
"""The is an attempt at creating a bowl class to solve Exercise 2-1 in the Think Bayes book""" class Bowl(object): """A bowl object that keeps track of our cookies""" def __init__(self, bowl_name, v_cookies, c_cookies): """Constructor""" self.bowl_name = bowl_name self.v_cookies = float(v_cookies) self.c_cookies = float(c_cookies) self.ratio() def ratio(self): """Calculate ratios""" self.v_ratio = self.v_cookies / (self.v_cookies+self.c_cookies) self.c_ratio = self.c_cookies / (self.v_cookies+self.c_cookies) def take_c(self): """take a chocolate cookie""" self.c_cookies = self.c_cookies - 1 self.ratio() def take_v(self): """take a vanilla cookie""" self.v_cookies = self.v_cookies - 1 self.ratio()
"""The is an attempt at creating a bowl class to solve Exercise 2-1 in the Think Bayes book""" class Bowl(object): """A bowl object that keeps track of our cookies""" def __init__(self, bowl_name, v_cookies, c_cookies): """Constructor""" self.bowl_name = bowl_name self.v_cookies = float(v_cookies) self.c_cookies = float(c_cookies) self.ratio() def ratio(self): """Calculate ratios""" self.v_ratio = self.v_cookies / (self.v_cookies + self.c_cookies) self.c_ratio = self.c_cookies / (self.v_cookies + self.c_cookies) def take_c(self): """take a chocolate cookie""" self.c_cookies = self.c_cookies - 1 self.ratio() def take_v(self): """take a vanilla cookie""" self.v_cookies = self.v_cookies - 1 self.ratio()
# Advent of Code 2017 # Day 9, Part 2 # @geekygirlsarah # Files to run through # input.txt being the input the puzzle provides inputFile = "input.txt" # inputFile = "testinput.txt" # Process file with open(inputFile) as f: while True: contents = f.readline(-1) if not contents: # print "End of file" break # print ("Contents: ", contents) state = "start" group_level = 0 group_sum = 0 char_pos = -1 garbage_count = 0 while True: # increment char char_pos += 1 if state == "end" or char_pos >= len(contents): break char = contents[char_pos] # Starting state if state == "start" and char == "{": group_level += 1 state = "in group" continue if state == "in group" and char == "{": group_level += 1 continue if state == "in group" and char == "}": group_sum += group_level group_level -= 1 if group_level == 0: state = "end" continue if state == "in group" and char == "<": state = "garbage" continue if state == "garbage" and char == ">": state = "in group" continue if state == "garbage" and char == "!": char_pos += 1 continue if state == "garbage" and char == ">": state = "in group" continue if state == "garbage": # catch misc. chars garbage_count += 1 print("Sum: " + str(group_sum)) print("Garbage count: " + str(garbage_count) + "\n")
input_file = 'input.txt' with open(inputFile) as f: while True: contents = f.readline(-1) if not contents: break state = 'start' group_level = 0 group_sum = 0 char_pos = -1 garbage_count = 0 while True: char_pos += 1 if state == 'end' or char_pos >= len(contents): break char = contents[char_pos] if state == 'start' and char == '{': group_level += 1 state = 'in group' continue if state == 'in group' and char == '{': group_level += 1 continue if state == 'in group' and char == '}': group_sum += group_level group_level -= 1 if group_level == 0: state = 'end' continue if state == 'in group' and char == '<': state = 'garbage' continue if state == 'garbage' and char == '>': state = 'in group' continue if state == 'garbage' and char == '!': char_pos += 1 continue if state == 'garbage' and char == '>': state = 'in group' continue if state == 'garbage': garbage_count += 1 print('Sum: ' + str(group_sum)) print('Garbage count: ' + str(garbage_count) + '\n')
# # PySNMP MIB module Juniper-DVMRP-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Juniper-DVMRP-MIB # Produced by pysmi-0.3.4 at Wed May 1 14:02:27 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueRangeConstraint") junidDvmrpInterfaceEntry, = mibBuilder.importSymbols("DVMRP-STD-MIB-JUNI", "junidDvmrpInterfaceEntry") InterfaceIndex, = mibBuilder.importSymbols("IF-MIB", "InterfaceIndex") juniMibs, = mibBuilder.importSymbols("Juniper-MIBs", "juniMibs") ModuleCompliance, NotificationGroup, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup", "ObjectGroup") Counter32, NotificationType, TimeTicks, ModuleIdentity, Counter64, Unsigned32, ObjectIdentity, Integer32, MibIdentifier, iso, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, Gauge32, IpAddress = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "NotificationType", "TimeTicks", "ModuleIdentity", "Counter64", "Unsigned32", "ObjectIdentity", "Integer32", "MibIdentifier", "iso", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Gauge32", "IpAddress") DisplayString, TruthValue, RowStatus, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TruthValue", "RowStatus", "TextualConvention") juniDvmrpMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44)) juniDvmrpMIB.setRevisions(('2003-01-16 20:55', '2001-11-30 21:24',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: juniDvmrpMIB.setRevisionsDescriptions(('Replaced Unisphere names with Juniper names. Added support for unicast routing and the interface announce list name.', 'Initial version of this MIB module.',)) if mibBuilder.loadTexts: juniDvmrpMIB.setLastUpdated('200301162055Z') if mibBuilder.loadTexts: juniDvmrpMIB.setOrganization('Juniper Networks, Inc.') if mibBuilder.loadTexts: juniDvmrpMIB.setContactInfo(' Juniper Networks, Inc. Postal: 10 Technology Park Drive Westford, MA 01886-3146 USA Tel: +1 978 589 5800 Email: mib@Juniper.net') if mibBuilder.loadTexts: juniDvmrpMIB.setDescription('The Enterprise MIB module for management of Juniper DVMRP routers.') juniDvmrpMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1)) juniDvmrp = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1)) juniDvmrpScalar = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 1)) juniDvmrpAdminState = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniDvmrpAdminState.setStatus('current') if mibBuilder.loadTexts: juniDvmrpAdminState.setDescription('Controls whether DVMRP is enabled or not.') juniDvmrpMcastAdminState = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: juniDvmrpMcastAdminState.setStatus('current') if mibBuilder.loadTexts: juniDvmrpMcastAdminState.setDescription('Whether multicast is enabled or not. This is settable via the multicast component.') juniDvmrpRouteHogNotification = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 134217727))).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniDvmrpRouteHogNotification.setStatus('current') if mibBuilder.loadTexts: juniDvmrpRouteHogNotification.setDescription('The number of routes allowed within a 1 minute interval before a trap is issued warning that there may be a route surge going on.') juniDvmrpRouteLimit = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 134217727))).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniDvmrpRouteLimit.setStatus('current') if mibBuilder.loadTexts: juniDvmrpRouteLimit.setDescription('The limit on the number of routes that may be advertised on a DVMRP interface.') juniDvmrpS32PrunesOnly = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: juniDvmrpS32PrunesOnly.setStatus('current') if mibBuilder.loadTexts: juniDvmrpS32PrunesOnly.setDescription('Identifies when DVMRP is sending prunes and grafts with only a 32 bit source masks.') juniDvmrpUnicastRouting = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 1, 6), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniDvmrpUnicastRouting.setStatus('current') if mibBuilder.loadTexts: juniDvmrpUnicastRouting.setDescription('Enable/disable the unicast routing portion of the DVMRP.') juniDvmrpAclDistNbrTable = MibTable((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 2), ) if mibBuilder.loadTexts: juniDvmrpAclDistNbrTable.setStatus('current') if mibBuilder.loadTexts: juniDvmrpAclDistNbrTable.setDescription('The (conceptual) table listing the access lists distance for a list of neighbors.') juniDvmrpAclDistNbrEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 2, 1), ).setIndexNames((0, "Juniper-DVMRP-MIB", "juniDvmrpAclDistNbrIfIndex"), (0, "Juniper-DVMRP-MIB", "juniDvmrpAclDistNbrAclListName")) if mibBuilder.loadTexts: juniDvmrpAclDistNbrEntry.setStatus('current') if mibBuilder.loadTexts: juniDvmrpAclDistNbrEntry.setDescription('An entry (conceptual row) in the juniDvmrpAclDistNbrTable.') juniDvmrpAclDistNbrIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 2, 1, 1), InterfaceIndex()) if mibBuilder.loadTexts: juniDvmrpAclDistNbrIfIndex.setStatus('current') if mibBuilder.loadTexts: juniDvmrpAclDistNbrIfIndex.setDescription('The ifIndex value of the interface for which DVMRP is enabled.') juniDvmrpAclDistNbrAclListName = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 80))) if mibBuilder.loadTexts: juniDvmrpAclDistNbrAclListName.setStatus('current') if mibBuilder.loadTexts: juniDvmrpAclDistNbrAclListName.setDescription('The name of the access list to be used in the filter.') juniDvmrpAclDistNbrDistance = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 2, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255)).clone(1)).setMaxAccess("readcreate") if mibBuilder.loadTexts: juniDvmrpAclDistNbrDistance.setStatus('current') if mibBuilder.loadTexts: juniDvmrpAclDistNbrDistance.setDescription('The administritive distance metric that will be used') juniDvmrpAclDistNbrNbrListName = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 2, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 80))).setMaxAccess("readcreate") if mibBuilder.loadTexts: juniDvmrpAclDistNbrNbrListName.setStatus('current') if mibBuilder.loadTexts: juniDvmrpAclDistNbrNbrListName.setDescription('This is the access list of nbrs for this accept-filter to be applied, this field must be supplied when the row is created') juniDvmrpAclDistNbrStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 2, 1, 5), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: juniDvmrpAclDistNbrStatus.setStatus('current') if mibBuilder.loadTexts: juniDvmrpAclDistNbrStatus.setDescription('The status of this entry.') juniDvmrpLocalAddrTable = MibTable((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 3), ) if mibBuilder.loadTexts: juniDvmrpLocalAddrTable.setStatus('current') if mibBuilder.loadTexts: juniDvmrpLocalAddrTable.setDescription('The (conceptual) table listing the local addresses. This is used to retrive all of the addresses configured on a DVMRP interface.') juniDvmrpLocalAddrTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 3, 1), ).setIndexNames((0, "Juniper-DVMRP-MIB", "juniDvmrpLocalAddrIfIndex"), (0, "Juniper-DVMRP-MIB", "juniDvmrpLocalAddrAddrOrIfIndex")) if mibBuilder.loadTexts: juniDvmrpLocalAddrTableEntry.setStatus('current') if mibBuilder.loadTexts: juniDvmrpLocalAddrTableEntry.setDescription('An entry (conceptual row) in the juniDvmrpLocalAddrTable.') juniDvmrpLocalAddrIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 3, 1, 1), InterfaceIndex()) if mibBuilder.loadTexts: juniDvmrpLocalAddrIfIndex.setStatus('current') if mibBuilder.loadTexts: juniDvmrpLocalAddrIfIndex.setDescription('The ifIndex value of the interface for which DVMRP is enabled.') juniDvmrpLocalAddrAddrOrIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 3, 1, 2), Unsigned32()) if mibBuilder.loadTexts: juniDvmrpLocalAddrAddrOrIfIndex.setStatus('current') if mibBuilder.loadTexts: juniDvmrpLocalAddrAddrOrIfIndex.setDescription('For unnumbered interfaces, this takes on the value of the ifIndex. For numbered interfaces, this is the address of one of the addresses associated with the interface.') juniDvmrpLocalAddrMask = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 3, 1, 3), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniDvmrpLocalAddrMask.setStatus('current') if mibBuilder.loadTexts: juniDvmrpLocalAddrMask.setDescription('The IP Address mask associated with this entry.') juniDvmrpSummaryAddrTable = MibTable((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 4), ) if mibBuilder.loadTexts: juniDvmrpSummaryAddrTable.setStatus('current') if mibBuilder.loadTexts: juniDvmrpSummaryAddrTable.setDescription('The (conceptual) table listing the DVMRP summary addresses. This is used to retrive all of the summary address configured on a DVMRP interface.') juniDvmrpSummaryAddrTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 4, 1), ).setIndexNames((0, "Juniper-DVMRP-MIB", "juniDvmrpSummaryAddrIfIndex"), (0, "Juniper-DVMRP-MIB", "juniDvmrpSummaryAddrAddress"), (0, "Juniper-DVMRP-MIB", "juniDvmrpSummaryAddrMask")) if mibBuilder.loadTexts: juniDvmrpSummaryAddrTableEntry.setStatus('current') if mibBuilder.loadTexts: juniDvmrpSummaryAddrTableEntry.setDescription('An entry (conceptual row) in the juniDvmrpSummaryAddrTable.') juniDvmrpSummaryAddrIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 4, 1, 1), InterfaceIndex()) if mibBuilder.loadTexts: juniDvmrpSummaryAddrIfIndex.setStatus('current') if mibBuilder.loadTexts: juniDvmrpSummaryAddrIfIndex.setDescription('The ifIndex value of the interface for which DVMRP is enabled.') juniDvmrpSummaryAddrAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 4, 1, 2), IpAddress()) if mibBuilder.loadTexts: juniDvmrpSummaryAddrAddress.setStatus('current') if mibBuilder.loadTexts: juniDvmrpSummaryAddrAddress.setDescription('This is the summary address that will be created.') juniDvmrpSummaryAddrMask = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 4, 1, 3), IpAddress()) if mibBuilder.loadTexts: juniDvmrpSummaryAddrMask.setStatus('current') if mibBuilder.loadTexts: juniDvmrpSummaryAddrMask.setDescription('The mask of the summary address to be created.') juniDvmrpSummaryAddrCost = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 4, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 32)).clone(1)).setMaxAccess("readcreate") if mibBuilder.loadTexts: juniDvmrpSummaryAddrCost.setStatus('current') if mibBuilder.loadTexts: juniDvmrpSummaryAddrCost.setDescription('The administritive distance metric used to actually calculate distance vectors.') juniDvmrpSummaryAddrStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 4, 1, 5), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: juniDvmrpSummaryAddrStatus.setStatus('current') if mibBuilder.loadTexts: juniDvmrpSummaryAddrStatus.setDescription('The status of this entry.') juniDvmrpInterfaceTable = MibTable((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 5), ) if mibBuilder.loadTexts: juniDvmrpInterfaceTable.setStatus('current') if mibBuilder.loadTexts: juniDvmrpInterfaceTable.setDescription("The (conceptual) table listing the router's multicast-capable interfaces. This table augments the DvmrpInterfaceTable.") juniDvmrpInterfaceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 5, 1), ) junidDvmrpInterfaceEntry.registerAugmentions(("Juniper-DVMRP-MIB", "juniDvmrpInterfaceEntry")) juniDvmrpInterfaceEntry.setIndexNames(*junidDvmrpInterfaceEntry.getIndexNames()) if mibBuilder.loadTexts: juniDvmrpInterfaceEntry.setStatus('current') if mibBuilder.loadTexts: juniDvmrpInterfaceEntry.setDescription('An entry (conceptual row) in the juniDvmrpInterfaceTable. This row extends ipMRouteInterfaceEntry in the IP Multicast MIB, where the threshold object resides.') juniDvmrpInterfaceAutoSummary = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 5, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: juniDvmrpInterfaceAutoSummary.setStatus('current') if mibBuilder.loadTexts: juniDvmrpInterfaceAutoSummary.setDescription('Enables or disable auto-summarization on this interface.') juniDvmrpInterfaceMetricOffsetOut = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 5, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 31))).setMaxAccess("readcreate") if mibBuilder.loadTexts: juniDvmrpInterfaceMetricOffsetOut.setStatus('current') if mibBuilder.loadTexts: juniDvmrpInterfaceMetricOffsetOut.setDescription('The distance metric for this interface which is used to calculate outbound distance vectors.') juniDvmrpInterfaceMetricOffsetIn = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 5, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 31)).clone(1)).setMaxAccess("readcreate") if mibBuilder.loadTexts: juniDvmrpInterfaceMetricOffsetIn.setStatus('current') if mibBuilder.loadTexts: juniDvmrpInterfaceMetricOffsetIn.setDescription('The distance metric for this interface which is used to calculate inbound distance vectors.') juniDvmrpInterfaceAdminState = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 5, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: juniDvmrpInterfaceAdminState.setStatus('current') if mibBuilder.loadTexts: juniDvmrpInterfaceAdminState.setDescription('Controls whether DVMRP is enabled or not.') juniDvmrpInterfaceAnnounceListName = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 5, 1, 7), DisplayString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: juniDvmrpInterfaceAnnounceListName.setStatus('current') if mibBuilder.loadTexts: juniDvmrpInterfaceAnnounceListName.setDescription('Configures the name of the acceptance announce filter for the IP access list.') juniDvmrpPruneTable = MibTable((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 6), ) if mibBuilder.loadTexts: juniDvmrpPruneTable.setStatus('current') if mibBuilder.loadTexts: juniDvmrpPruneTable.setDescription("The (conceptual) table listing the router's upstream prune state.") juniDvmrpPruneEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 6, 1), ).setIndexNames((0, "Juniper-DVMRP-MIB", "juniDvmrpPruneGroup"), (0, "Juniper-DVMRP-MIB", "juniDvmrpPruneSource"), (0, "Juniper-DVMRP-MIB", "juniDvmrpPruneSourceMask")) if mibBuilder.loadTexts: juniDvmrpPruneEntry.setStatus('current') if mibBuilder.loadTexts: juniDvmrpPruneEntry.setDescription('An entry (conceptual row) in the juniDvmrpPruneTable.') juniDvmrpPruneGroup = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 6, 1, 1), IpAddress()) if mibBuilder.loadTexts: juniDvmrpPruneGroup.setStatus('current') if mibBuilder.loadTexts: juniDvmrpPruneGroup.setDescription('The group address which has been pruned.') juniDvmrpPruneSource = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 6, 1, 2), IpAddress()) if mibBuilder.loadTexts: juniDvmrpPruneSource.setStatus('current') if mibBuilder.loadTexts: juniDvmrpPruneSource.setDescription('The address of the source or source network which has been pruned.') juniDvmrpPruneSourceMask = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 6, 1, 3), IpAddress()) if mibBuilder.loadTexts: juniDvmrpPruneSourceMask.setStatus('current') if mibBuilder.loadTexts: juniDvmrpPruneSourceMask.setDescription("The address of the source or source network which has been pruned. The mask must either be all 1's, or else juniDvmrpPruneSource and juniDvmrpPruneSourceMask must match juniDvmrpRouteSource and juniDvmrpRouteSourceMask for some entry in the juniDvmrpRouteTable.") juniDvmrpPruneIIFIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 6, 1, 4), InterfaceIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniDvmrpPruneIIFIfIndex.setStatus('current') if mibBuilder.loadTexts: juniDvmrpPruneIIFIfIndex.setDescription('The ifIndex of the upstream interface for this source group entry.') juniDvmrpPruneUpTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 6, 1, 5), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniDvmrpPruneUpTime.setStatus('current') if mibBuilder.loadTexts: juniDvmrpPruneUpTime.setDescription('This is the amount of time that this prune has remained valid.') juniDvmrpSrcGrpOifTable = MibTable((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 7), ) if mibBuilder.loadTexts: juniDvmrpSrcGrpOifTable.setStatus('current') if mibBuilder.loadTexts: juniDvmrpSrcGrpOifTable.setDescription('The (conceptual) OIFs for particular source group entries.') juniDvmrpSrcGrpOifEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 7, 1), ).setIndexNames((0, "Juniper-DVMRP-MIB", "juniDvmrpSrcGrpOifGroup"), (0, "Juniper-DVMRP-MIB", "juniDvmrpSrcGrpOifSource"), (0, "Juniper-DVMRP-MIB", "juniDvmrpSrcGrpOifSourceMask"), (0, "Juniper-DVMRP-MIB", "juniDvmrpSrcGrpOifOIFIfIndex")) if mibBuilder.loadTexts: juniDvmrpSrcGrpOifEntry.setStatus('current') if mibBuilder.loadTexts: juniDvmrpSrcGrpOifEntry.setDescription('An entry (conceptual row) in the juniDvmrpSrcGrpOifTable.') juniDvmrpSrcGrpOifGroup = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 7, 1, 1), IpAddress()) if mibBuilder.loadTexts: juniDvmrpSrcGrpOifGroup.setStatus('current') if mibBuilder.loadTexts: juniDvmrpSrcGrpOifGroup.setDescription('The group address which has been pruned.') juniDvmrpSrcGrpOifSource = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 7, 1, 2), IpAddress()) if mibBuilder.loadTexts: juniDvmrpSrcGrpOifSource.setStatus('current') if mibBuilder.loadTexts: juniDvmrpSrcGrpOifSource.setDescription('The address of the source or source network which has been pruned.') juniDvmrpSrcGrpOifSourceMask = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 7, 1, 3), IpAddress()) if mibBuilder.loadTexts: juniDvmrpSrcGrpOifSourceMask.setStatus('current') if mibBuilder.loadTexts: juniDvmrpSrcGrpOifSourceMask.setDescription("The address of the source or source network which has been pruned. The mask must either be all 1's, or else juniDvmrpPruneSource and juniDvmrpPruneSourceMask must match juniDvmrpRouteSource and juniDvmrpRouteSourceMask for some entry in the juniDvmrpRouteTable.") juniDvmrpSrcGrpOifOIFIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 7, 1, 4), InterfaceIndex()) if mibBuilder.loadTexts: juniDvmrpSrcGrpOifOIFIfIndex.setStatus('current') if mibBuilder.loadTexts: juniDvmrpSrcGrpOifOIFIfIndex.setDescription('The ifIndex of one of the downstream interfaces for this source group entry.') juniDvmrpSrcGrpOifOIFPruned = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 7, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("false", 0), ("true", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: juniDvmrpSrcGrpOifOIFPruned.setStatus('current') if mibBuilder.loadTexts: juniDvmrpSrcGrpOifOIFPruned.setDescription('If true this OIF has been pruned.') juniDvmrpSrcGrpOifOIFDnTTL = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 7, 1, 6), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniDvmrpSrcGrpOifOIFDnTTL.setStatus('current') if mibBuilder.loadTexts: juniDvmrpSrcGrpOifOIFDnTTL.setDescription('The timeout for this OIF. If juniDvmrpSrcGrpOifOIFPruned is false then this is undefined.') juniDvmrpTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 0)) juniDvmrpRouteHogNotificationTrap = NotificationType((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 0, 1)) if mibBuilder.loadTexts: juniDvmrpRouteHogNotificationTrap.setStatus('current') if mibBuilder.loadTexts: juniDvmrpRouteHogNotificationTrap.setDescription('This is an indication that the route hog notification limit has been exceeded during the past minute. It may mean that a route surge is going on.') juniDvmrpConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 4)) juniDvmrpCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 4, 1)) juniDvmrpGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 4, 2)) juniDvmrpCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 4, 1, 1)).setObjects(("Juniper-DVMRP-MIB", "juniDvmrpBaseGroup"), ("Juniper-DVMRP-MIB", "juniDvmrpAclDistNbrGroup"), ("Juniper-DVMRP-MIB", "juniDvmrpInterfaceGroup"), ("Juniper-DVMRP-MIB", "juniDvmrpSourceGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniDvmrpCompliance = juniDvmrpCompliance.setStatus('obsolete') if mibBuilder.loadTexts: juniDvmrpCompliance.setDescription('Obsolete compliance statement for entities which implement the Juniper DVMRP MIB. This statement became obsolete when new objects were added.') juniDvmrpCompliance2 = ModuleCompliance((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 4, 1, 2)).setObjects(("Juniper-DVMRP-MIB", "juniDvmrpBaseGroup2"), ("Juniper-DVMRP-MIB", "juniDvmrpAclDistNbrGroup"), ("Juniper-DVMRP-MIB", "juniDvmrpInterfaceGroup2"), ("Juniper-DVMRP-MIB", "juniDvmrpSourceGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniDvmrpCompliance2 = juniDvmrpCompliance2.setStatus('current') if mibBuilder.loadTexts: juniDvmrpCompliance2.setDescription('The compliance statement for entities which implement the Juniper DVMRP MIB.') juniDvmrpBaseGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 4, 2, 1)).setObjects(("Juniper-DVMRP-MIB", "juniDvmrpAdminState"), ("Juniper-DVMRP-MIB", "juniDvmrpMcastAdminState"), ("Juniper-DVMRP-MIB", "juniDvmrpRouteHogNotification"), ("Juniper-DVMRP-MIB", "juniDvmrpRouteLimit"), ("Juniper-DVMRP-MIB", "juniDvmrpS32PrunesOnly")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniDvmrpBaseGroup = juniDvmrpBaseGroup.setStatus('obsolete') if mibBuilder.loadTexts: juniDvmrpBaseGroup.setDescription('Obsolete collection of objects providing basic management of DVMRP in a Juniper product. This group became obsolete when support was added for the DVMRP unicast routing object.') juniDvmrpAclDistNbrGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 4, 2, 2)).setObjects(("Juniper-DVMRP-MIB", "juniDvmrpAclDistNbrDistance"), ("Juniper-DVMRP-MIB", "juniDvmrpAclDistNbrNbrListName"), ("Juniper-DVMRP-MIB", "juniDvmrpAclDistNbrStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniDvmrpAclDistNbrGroup = juniDvmrpAclDistNbrGroup.setStatus('current') if mibBuilder.loadTexts: juniDvmrpAclDistNbrGroup.setDescription('A collection of objects providing management of DVMRP access list distance neighbors in a Juniper product.') juniDvmrpInterfaceGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 4, 2, 3)).setObjects(("Juniper-DVMRP-MIB", "juniDvmrpLocalAddrMask"), ("Juniper-DVMRP-MIB", "juniDvmrpSummaryAddrCost"), ("Juniper-DVMRP-MIB", "juniDvmrpSummaryAddrStatus"), ("Juniper-DVMRP-MIB", "juniDvmrpInterfaceAutoSummary"), ("Juniper-DVMRP-MIB", "juniDvmrpInterfaceMetricOffsetOut"), ("Juniper-DVMRP-MIB", "juniDvmrpInterfaceMetricOffsetIn"), ("Juniper-DVMRP-MIB", "juniDvmrpInterfaceAdminState")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniDvmrpInterfaceGroup = juniDvmrpInterfaceGroup.setStatus('obsolete') if mibBuilder.loadTexts: juniDvmrpInterfaceGroup.setDescription('Obsolete collection of objects providing management of a DVMRP interface in a Juniper product. This group became obsolete when support for the DVMRP interface announce list name object was added.') juniDvmrpSourceGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 4, 2, 4)).setObjects(("Juniper-DVMRP-MIB", "juniDvmrpPruneIIFIfIndex"), ("Juniper-DVMRP-MIB", "juniDvmrpPruneUpTime"), ("Juniper-DVMRP-MIB", "juniDvmrpSrcGrpOifOIFPruned"), ("Juniper-DVMRP-MIB", "juniDvmrpSrcGrpOifOIFDnTTL")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniDvmrpSourceGroup = juniDvmrpSourceGroup.setStatus('current') if mibBuilder.loadTexts: juniDvmrpSourceGroup.setDescription('A collection of objects providing management of a DVMRP source group in a Juniper product.') juniDvmrpNotificationGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 4, 2, 5)).setObjects(("Juniper-DVMRP-MIB", "juniDvmrpRouteHogNotificationTrap")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniDvmrpNotificationGroup = juniDvmrpNotificationGroup.setStatus('current') if mibBuilder.loadTexts: juniDvmrpNotificationGroup.setDescription('A notification for signaling important DVMRP events.') juniDvmrpBaseGroup2 = ObjectGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 4, 2, 6)).setObjects(("Juniper-DVMRP-MIB", "juniDvmrpAdminState"), ("Juniper-DVMRP-MIB", "juniDvmrpMcastAdminState"), ("Juniper-DVMRP-MIB", "juniDvmrpRouteHogNotification"), ("Juniper-DVMRP-MIB", "juniDvmrpRouteLimit"), ("Juniper-DVMRP-MIB", "juniDvmrpS32PrunesOnly"), ("Juniper-DVMRP-MIB", "juniDvmrpUnicastRouting")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniDvmrpBaseGroup2 = juniDvmrpBaseGroup2.setStatus('current') if mibBuilder.loadTexts: juniDvmrpBaseGroup2.setDescription('A collection of objects providing basic management of DVMRP in a Juniper product.') juniDvmrpInterfaceGroup2 = ObjectGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 4, 2, 7)).setObjects(("Juniper-DVMRP-MIB", "juniDvmrpLocalAddrMask"), ("Juniper-DVMRP-MIB", "juniDvmrpSummaryAddrCost"), ("Juniper-DVMRP-MIB", "juniDvmrpSummaryAddrStatus"), ("Juniper-DVMRP-MIB", "juniDvmrpInterfaceAutoSummary"), ("Juniper-DVMRP-MIB", "juniDvmrpInterfaceMetricOffsetOut"), ("Juniper-DVMRP-MIB", "juniDvmrpInterfaceMetricOffsetIn"), ("Juniper-DVMRP-MIB", "juniDvmrpInterfaceAdminState"), ("Juniper-DVMRP-MIB", "juniDvmrpInterfaceAnnounceListName")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniDvmrpInterfaceGroup2 = juniDvmrpInterfaceGroup2.setStatus('current') if mibBuilder.loadTexts: juniDvmrpInterfaceGroup2.setDescription('A collection of objects providing management of a DVMRP interface in a Juniper product.') mibBuilder.exportSymbols("Juniper-DVMRP-MIB", PYSNMP_MODULE_ID=juniDvmrpMIB, juniDvmrpSummaryAddrCost=juniDvmrpSummaryAddrCost, juniDvmrpInterfaceEntry=juniDvmrpInterfaceEntry, juniDvmrpSrcGrpOifOIFPruned=juniDvmrpSrcGrpOifOIFPruned, juniDvmrpNotificationGroup=juniDvmrpNotificationGroup, juniDvmrpInterfaceAutoSummary=juniDvmrpInterfaceAutoSummary, juniDvmrpGroups=juniDvmrpGroups, juniDvmrpInterfaceMetricOffsetOut=juniDvmrpInterfaceMetricOffsetOut, juniDvmrpInterfaceGroup=juniDvmrpInterfaceGroup, juniDvmrpSummaryAddrTable=juniDvmrpSummaryAddrTable, juniDvmrpInterfaceMetricOffsetIn=juniDvmrpInterfaceMetricOffsetIn, juniDvmrpAclDistNbrTable=juniDvmrpAclDistNbrTable, juniDvmrpPruneSource=juniDvmrpPruneSource, juniDvmrpLocalAddrTableEntry=juniDvmrpLocalAddrTableEntry, juniDvmrpSummaryAddrMask=juniDvmrpSummaryAddrMask, juniDvmrpPruneIIFIfIndex=juniDvmrpPruneIIFIfIndex, juniDvmrpMIBObjects=juniDvmrpMIBObjects, juniDvmrpPruneUpTime=juniDvmrpPruneUpTime, juniDvmrpSrcGrpOifSource=juniDvmrpSrcGrpOifSource, juniDvmrpSrcGrpOifOIFIfIndex=juniDvmrpSrcGrpOifOIFIfIndex, juniDvmrpLocalAddrMask=juniDvmrpLocalAddrMask, juniDvmrpMcastAdminState=juniDvmrpMcastAdminState, juniDvmrpSummaryAddrAddress=juniDvmrpSummaryAddrAddress, juniDvmrpSrcGrpOifOIFDnTTL=juniDvmrpSrcGrpOifOIFDnTTL, juniDvmrpCompliance=juniDvmrpCompliance, juniDvmrpPruneEntry=juniDvmrpPruneEntry, juniDvmrpRouteHogNotificationTrap=juniDvmrpRouteHogNotificationTrap, juniDvmrpSrcGrpOifTable=juniDvmrpSrcGrpOifTable, juniDvmrpSrcGrpOifSourceMask=juniDvmrpSrcGrpOifSourceMask, juniDvmrpPruneSourceMask=juniDvmrpPruneSourceMask, juniDvmrpS32PrunesOnly=juniDvmrpS32PrunesOnly, juniDvmrpSourceGroup=juniDvmrpSourceGroup, juniDvmrp=juniDvmrp, juniDvmrpUnicastRouting=juniDvmrpUnicastRouting, juniDvmrpAclDistNbrNbrListName=juniDvmrpAclDistNbrNbrListName, juniDvmrpMIB=juniDvmrpMIB, juniDvmrpConformance=juniDvmrpConformance, juniDvmrpSummaryAddrTableEntry=juniDvmrpSummaryAddrTableEntry, juniDvmrpInterfaceAnnounceListName=juniDvmrpInterfaceAnnounceListName, juniDvmrpSrcGrpOifEntry=juniDvmrpSrcGrpOifEntry, juniDvmrpAclDistNbrAclListName=juniDvmrpAclDistNbrAclListName, juniDvmrpAclDistNbrGroup=juniDvmrpAclDistNbrGroup, juniDvmrpRouteHogNotification=juniDvmrpRouteHogNotification, juniDvmrpSrcGrpOifGroup=juniDvmrpSrcGrpOifGroup, juniDvmrpCompliances=juniDvmrpCompliances, juniDvmrpBaseGroup2=juniDvmrpBaseGroup2, juniDvmrpAclDistNbrIfIndex=juniDvmrpAclDistNbrIfIndex, juniDvmrpAdminState=juniDvmrpAdminState, juniDvmrpAclDistNbrStatus=juniDvmrpAclDistNbrStatus, juniDvmrpScalar=juniDvmrpScalar, juniDvmrpInterfaceTable=juniDvmrpInterfaceTable, juniDvmrpRouteLimit=juniDvmrpRouteLimit, juniDvmrpBaseGroup=juniDvmrpBaseGroup, juniDvmrpTraps=juniDvmrpTraps, juniDvmrpLocalAddrTable=juniDvmrpLocalAddrTable, juniDvmrpPruneGroup=juniDvmrpPruneGroup, juniDvmrpInterfaceGroup2=juniDvmrpInterfaceGroup2, juniDvmrpLocalAddrAddrOrIfIndex=juniDvmrpLocalAddrAddrOrIfIndex, juniDvmrpLocalAddrIfIndex=juniDvmrpLocalAddrIfIndex, juniDvmrpSummaryAddrIfIndex=juniDvmrpSummaryAddrIfIndex, juniDvmrpPruneTable=juniDvmrpPruneTable, juniDvmrpAclDistNbrEntry=juniDvmrpAclDistNbrEntry, juniDvmrpAclDistNbrDistance=juniDvmrpAclDistNbrDistance, juniDvmrpCompliance2=juniDvmrpCompliance2, juniDvmrpSummaryAddrStatus=juniDvmrpSummaryAddrStatus, juniDvmrpInterfaceAdminState=juniDvmrpInterfaceAdminState)
(integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, constraints_union, single_value_constraint, constraints_intersection, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ConstraintsUnion', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueRangeConstraint') (junid_dvmrp_interface_entry,) = mibBuilder.importSymbols('DVMRP-STD-MIB-JUNI', 'junidDvmrpInterfaceEntry') (interface_index,) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndex') (juni_mibs,) = mibBuilder.importSymbols('Juniper-MIBs', 'juniMibs') (module_compliance, notification_group, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup', 'ObjectGroup') (counter32, notification_type, time_ticks, module_identity, counter64, unsigned32, object_identity, integer32, mib_identifier, iso, bits, mib_scalar, mib_table, mib_table_row, mib_table_column, gauge32, ip_address) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter32', 'NotificationType', 'TimeTicks', 'ModuleIdentity', 'Counter64', 'Unsigned32', 'ObjectIdentity', 'Integer32', 'MibIdentifier', 'iso', 'Bits', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Gauge32', 'IpAddress') (display_string, truth_value, row_status, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TruthValue', 'RowStatus', 'TextualConvention') juni_dvmrp_mib = module_identity((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44)) juniDvmrpMIB.setRevisions(('2003-01-16 20:55', '2001-11-30 21:24')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: juniDvmrpMIB.setRevisionsDescriptions(('Replaced Unisphere names with Juniper names. Added support for unicast routing and the interface announce list name.', 'Initial version of this MIB module.')) if mibBuilder.loadTexts: juniDvmrpMIB.setLastUpdated('200301162055Z') if mibBuilder.loadTexts: juniDvmrpMIB.setOrganization('Juniper Networks, Inc.') if mibBuilder.loadTexts: juniDvmrpMIB.setContactInfo(' Juniper Networks, Inc. Postal: 10 Technology Park Drive Westford, MA 01886-3146 USA Tel: +1 978 589 5800 Email: mib@Juniper.net') if mibBuilder.loadTexts: juniDvmrpMIB.setDescription('The Enterprise MIB module for management of Juniper DVMRP routers.') juni_dvmrp_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1)) juni_dvmrp = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1)) juni_dvmrp_scalar = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 1)) juni_dvmrp_admin_state = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disable', 0), ('enable', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniDvmrpAdminState.setStatus('current') if mibBuilder.loadTexts: juniDvmrpAdminState.setDescription('Controls whether DVMRP is enabled or not.') juni_dvmrp_mcast_admin_state = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disable', 0), ('enable', 1)))).setMaxAccess('readonly') if mibBuilder.loadTexts: juniDvmrpMcastAdminState.setStatus('current') if mibBuilder.loadTexts: juniDvmrpMcastAdminState.setDescription('Whether multicast is enabled or not. This is settable via the multicast component.') juni_dvmrp_route_hog_notification = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 134217727))).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniDvmrpRouteHogNotification.setStatus('current') if mibBuilder.loadTexts: juniDvmrpRouteHogNotification.setDescription('The number of routes allowed within a 1 minute interval before a trap is issued warning that there may be a route surge going on.') juni_dvmrp_route_limit = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 134217727))).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniDvmrpRouteLimit.setStatus('current') if mibBuilder.loadTexts: juniDvmrpRouteLimit.setDescription('The limit on the number of routes that may be advertised on a DVMRP interface.') juni_dvmrp_s32_prunes_only = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disable', 0), ('enable', 1)))).setMaxAccess('readonly') if mibBuilder.loadTexts: juniDvmrpS32PrunesOnly.setStatus('current') if mibBuilder.loadTexts: juniDvmrpS32PrunesOnly.setDescription('Identifies when DVMRP is sending prunes and grafts with only a 32 bit source masks.') juni_dvmrp_unicast_routing = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 1, 6), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniDvmrpUnicastRouting.setStatus('current') if mibBuilder.loadTexts: juniDvmrpUnicastRouting.setDescription('Enable/disable the unicast routing portion of the DVMRP.') juni_dvmrp_acl_dist_nbr_table = mib_table((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 2)) if mibBuilder.loadTexts: juniDvmrpAclDistNbrTable.setStatus('current') if mibBuilder.loadTexts: juniDvmrpAclDistNbrTable.setDescription('The (conceptual) table listing the access lists distance for a list of neighbors.') juni_dvmrp_acl_dist_nbr_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 2, 1)).setIndexNames((0, 'Juniper-DVMRP-MIB', 'juniDvmrpAclDistNbrIfIndex'), (0, 'Juniper-DVMRP-MIB', 'juniDvmrpAclDistNbrAclListName')) if mibBuilder.loadTexts: juniDvmrpAclDistNbrEntry.setStatus('current') if mibBuilder.loadTexts: juniDvmrpAclDistNbrEntry.setDescription('An entry (conceptual row) in the juniDvmrpAclDistNbrTable.') juni_dvmrp_acl_dist_nbr_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 2, 1, 1), interface_index()) if mibBuilder.loadTexts: juniDvmrpAclDistNbrIfIndex.setStatus('current') if mibBuilder.loadTexts: juniDvmrpAclDistNbrIfIndex.setDescription('The ifIndex value of the interface for which DVMRP is enabled.') juni_dvmrp_acl_dist_nbr_acl_list_name = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(1, 80))) if mibBuilder.loadTexts: juniDvmrpAclDistNbrAclListName.setStatus('current') if mibBuilder.loadTexts: juniDvmrpAclDistNbrAclListName.setDescription('The name of the access list to be used in the filter.') juni_dvmrp_acl_dist_nbr_distance = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 2, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 255)).clone(1)).setMaxAccess('readcreate') if mibBuilder.loadTexts: juniDvmrpAclDistNbrDistance.setStatus('current') if mibBuilder.loadTexts: juniDvmrpAclDistNbrDistance.setDescription('The administritive distance metric that will be used') juni_dvmrp_acl_dist_nbr_nbr_list_name = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 2, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(1, 80))).setMaxAccess('readcreate') if mibBuilder.loadTexts: juniDvmrpAclDistNbrNbrListName.setStatus('current') if mibBuilder.loadTexts: juniDvmrpAclDistNbrNbrListName.setDescription('This is the access list of nbrs for this accept-filter to be applied, this field must be supplied when the row is created') juni_dvmrp_acl_dist_nbr_status = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 2, 1, 5), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: juniDvmrpAclDistNbrStatus.setStatus('current') if mibBuilder.loadTexts: juniDvmrpAclDistNbrStatus.setDescription('The status of this entry.') juni_dvmrp_local_addr_table = mib_table((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 3)) if mibBuilder.loadTexts: juniDvmrpLocalAddrTable.setStatus('current') if mibBuilder.loadTexts: juniDvmrpLocalAddrTable.setDescription('The (conceptual) table listing the local addresses. This is used to retrive all of the addresses configured on a DVMRP interface.') juni_dvmrp_local_addr_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 3, 1)).setIndexNames((0, 'Juniper-DVMRP-MIB', 'juniDvmrpLocalAddrIfIndex'), (0, 'Juniper-DVMRP-MIB', 'juniDvmrpLocalAddrAddrOrIfIndex')) if mibBuilder.loadTexts: juniDvmrpLocalAddrTableEntry.setStatus('current') if mibBuilder.loadTexts: juniDvmrpLocalAddrTableEntry.setDescription('An entry (conceptual row) in the juniDvmrpLocalAddrTable.') juni_dvmrp_local_addr_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 3, 1, 1), interface_index()) if mibBuilder.loadTexts: juniDvmrpLocalAddrIfIndex.setStatus('current') if mibBuilder.loadTexts: juniDvmrpLocalAddrIfIndex.setDescription('The ifIndex value of the interface for which DVMRP is enabled.') juni_dvmrp_local_addr_addr_or_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 3, 1, 2), unsigned32()) if mibBuilder.loadTexts: juniDvmrpLocalAddrAddrOrIfIndex.setStatus('current') if mibBuilder.loadTexts: juniDvmrpLocalAddrAddrOrIfIndex.setDescription('For unnumbered interfaces, this takes on the value of the ifIndex. For numbered interfaces, this is the address of one of the addresses associated with the interface.') juni_dvmrp_local_addr_mask = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 3, 1, 3), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniDvmrpLocalAddrMask.setStatus('current') if mibBuilder.loadTexts: juniDvmrpLocalAddrMask.setDescription('The IP Address mask associated with this entry.') juni_dvmrp_summary_addr_table = mib_table((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 4)) if mibBuilder.loadTexts: juniDvmrpSummaryAddrTable.setStatus('current') if mibBuilder.loadTexts: juniDvmrpSummaryAddrTable.setDescription('The (conceptual) table listing the DVMRP summary addresses. This is used to retrive all of the summary address configured on a DVMRP interface.') juni_dvmrp_summary_addr_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 4, 1)).setIndexNames((0, 'Juniper-DVMRP-MIB', 'juniDvmrpSummaryAddrIfIndex'), (0, 'Juniper-DVMRP-MIB', 'juniDvmrpSummaryAddrAddress'), (0, 'Juniper-DVMRP-MIB', 'juniDvmrpSummaryAddrMask')) if mibBuilder.loadTexts: juniDvmrpSummaryAddrTableEntry.setStatus('current') if mibBuilder.loadTexts: juniDvmrpSummaryAddrTableEntry.setDescription('An entry (conceptual row) in the juniDvmrpSummaryAddrTable.') juni_dvmrp_summary_addr_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 4, 1, 1), interface_index()) if mibBuilder.loadTexts: juniDvmrpSummaryAddrIfIndex.setStatus('current') if mibBuilder.loadTexts: juniDvmrpSummaryAddrIfIndex.setDescription('The ifIndex value of the interface for which DVMRP is enabled.') juni_dvmrp_summary_addr_address = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 4, 1, 2), ip_address()) if mibBuilder.loadTexts: juniDvmrpSummaryAddrAddress.setStatus('current') if mibBuilder.loadTexts: juniDvmrpSummaryAddrAddress.setDescription('This is the summary address that will be created.') juni_dvmrp_summary_addr_mask = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 4, 1, 3), ip_address()) if mibBuilder.loadTexts: juniDvmrpSummaryAddrMask.setStatus('current') if mibBuilder.loadTexts: juniDvmrpSummaryAddrMask.setDescription('The mask of the summary address to be created.') juni_dvmrp_summary_addr_cost = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 4, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 32)).clone(1)).setMaxAccess('readcreate') if mibBuilder.loadTexts: juniDvmrpSummaryAddrCost.setStatus('current') if mibBuilder.loadTexts: juniDvmrpSummaryAddrCost.setDescription('The administritive distance metric used to actually calculate distance vectors.') juni_dvmrp_summary_addr_status = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 4, 1, 5), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: juniDvmrpSummaryAddrStatus.setStatus('current') if mibBuilder.loadTexts: juniDvmrpSummaryAddrStatus.setDescription('The status of this entry.') juni_dvmrp_interface_table = mib_table((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 5)) if mibBuilder.loadTexts: juniDvmrpInterfaceTable.setStatus('current') if mibBuilder.loadTexts: juniDvmrpInterfaceTable.setDescription("The (conceptual) table listing the router's multicast-capable interfaces. This table augments the DvmrpInterfaceTable.") juni_dvmrp_interface_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 5, 1)) junidDvmrpInterfaceEntry.registerAugmentions(('Juniper-DVMRP-MIB', 'juniDvmrpInterfaceEntry')) juniDvmrpInterfaceEntry.setIndexNames(*junidDvmrpInterfaceEntry.getIndexNames()) if mibBuilder.loadTexts: juniDvmrpInterfaceEntry.setStatus('current') if mibBuilder.loadTexts: juniDvmrpInterfaceEntry.setDescription('An entry (conceptual row) in the juniDvmrpInterfaceTable. This row extends ipMRouteInterfaceEntry in the IP Multicast MIB, where the threshold object resides.') juni_dvmrp_interface_auto_summary = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 5, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disable', 0), ('enable', 1)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: juniDvmrpInterfaceAutoSummary.setStatus('current') if mibBuilder.loadTexts: juniDvmrpInterfaceAutoSummary.setDescription('Enables or disable auto-summarization on this interface.') juni_dvmrp_interface_metric_offset_out = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 5, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 31))).setMaxAccess('readcreate') if mibBuilder.loadTexts: juniDvmrpInterfaceMetricOffsetOut.setStatus('current') if mibBuilder.loadTexts: juniDvmrpInterfaceMetricOffsetOut.setDescription('The distance metric for this interface which is used to calculate outbound distance vectors.') juni_dvmrp_interface_metric_offset_in = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 5, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 31)).clone(1)).setMaxAccess('readcreate') if mibBuilder.loadTexts: juniDvmrpInterfaceMetricOffsetIn.setStatus('current') if mibBuilder.loadTexts: juniDvmrpInterfaceMetricOffsetIn.setDescription('The distance metric for this interface which is used to calculate inbound distance vectors.') juni_dvmrp_interface_admin_state = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 5, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disable', 0), ('enable', 1)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: juniDvmrpInterfaceAdminState.setStatus('current') if mibBuilder.loadTexts: juniDvmrpInterfaceAdminState.setDescription('Controls whether DVMRP is enabled or not.') juni_dvmrp_interface_announce_list_name = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 5, 1, 7), display_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: juniDvmrpInterfaceAnnounceListName.setStatus('current') if mibBuilder.loadTexts: juniDvmrpInterfaceAnnounceListName.setDescription('Configures the name of the acceptance announce filter for the IP access list.') juni_dvmrp_prune_table = mib_table((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 6)) if mibBuilder.loadTexts: juniDvmrpPruneTable.setStatus('current') if mibBuilder.loadTexts: juniDvmrpPruneTable.setDescription("The (conceptual) table listing the router's upstream prune state.") juni_dvmrp_prune_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 6, 1)).setIndexNames((0, 'Juniper-DVMRP-MIB', 'juniDvmrpPruneGroup'), (0, 'Juniper-DVMRP-MIB', 'juniDvmrpPruneSource'), (0, 'Juniper-DVMRP-MIB', 'juniDvmrpPruneSourceMask')) if mibBuilder.loadTexts: juniDvmrpPruneEntry.setStatus('current') if mibBuilder.loadTexts: juniDvmrpPruneEntry.setDescription('An entry (conceptual row) in the juniDvmrpPruneTable.') juni_dvmrp_prune_group = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 6, 1, 1), ip_address()) if mibBuilder.loadTexts: juniDvmrpPruneGroup.setStatus('current') if mibBuilder.loadTexts: juniDvmrpPruneGroup.setDescription('The group address which has been pruned.') juni_dvmrp_prune_source = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 6, 1, 2), ip_address()) if mibBuilder.loadTexts: juniDvmrpPruneSource.setStatus('current') if mibBuilder.loadTexts: juniDvmrpPruneSource.setDescription('The address of the source or source network which has been pruned.') juni_dvmrp_prune_source_mask = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 6, 1, 3), ip_address()) if mibBuilder.loadTexts: juniDvmrpPruneSourceMask.setStatus('current') if mibBuilder.loadTexts: juniDvmrpPruneSourceMask.setDescription("The address of the source or source network which has been pruned. The mask must either be all 1's, or else juniDvmrpPruneSource and juniDvmrpPruneSourceMask must match juniDvmrpRouteSource and juniDvmrpRouteSourceMask for some entry in the juniDvmrpRouteTable.") juni_dvmrp_prune_iif_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 6, 1, 4), interface_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniDvmrpPruneIIFIfIndex.setStatus('current') if mibBuilder.loadTexts: juniDvmrpPruneIIFIfIndex.setDescription('The ifIndex of the upstream interface for this source group entry.') juni_dvmrp_prune_up_time = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 6, 1, 5), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniDvmrpPruneUpTime.setStatus('current') if mibBuilder.loadTexts: juniDvmrpPruneUpTime.setDescription('This is the amount of time that this prune has remained valid.') juni_dvmrp_src_grp_oif_table = mib_table((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 7)) if mibBuilder.loadTexts: juniDvmrpSrcGrpOifTable.setStatus('current') if mibBuilder.loadTexts: juniDvmrpSrcGrpOifTable.setDescription('The (conceptual) OIFs for particular source group entries.') juni_dvmrp_src_grp_oif_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 7, 1)).setIndexNames((0, 'Juniper-DVMRP-MIB', 'juniDvmrpSrcGrpOifGroup'), (0, 'Juniper-DVMRP-MIB', 'juniDvmrpSrcGrpOifSource'), (0, 'Juniper-DVMRP-MIB', 'juniDvmrpSrcGrpOifSourceMask'), (0, 'Juniper-DVMRP-MIB', 'juniDvmrpSrcGrpOifOIFIfIndex')) if mibBuilder.loadTexts: juniDvmrpSrcGrpOifEntry.setStatus('current') if mibBuilder.loadTexts: juniDvmrpSrcGrpOifEntry.setDescription('An entry (conceptual row) in the juniDvmrpSrcGrpOifTable.') juni_dvmrp_src_grp_oif_group = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 7, 1, 1), ip_address()) if mibBuilder.loadTexts: juniDvmrpSrcGrpOifGroup.setStatus('current') if mibBuilder.loadTexts: juniDvmrpSrcGrpOifGroup.setDescription('The group address which has been pruned.') juni_dvmrp_src_grp_oif_source = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 7, 1, 2), ip_address()) if mibBuilder.loadTexts: juniDvmrpSrcGrpOifSource.setStatus('current') if mibBuilder.loadTexts: juniDvmrpSrcGrpOifSource.setDescription('The address of the source or source network which has been pruned.') juni_dvmrp_src_grp_oif_source_mask = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 7, 1, 3), ip_address()) if mibBuilder.loadTexts: juniDvmrpSrcGrpOifSourceMask.setStatus('current') if mibBuilder.loadTexts: juniDvmrpSrcGrpOifSourceMask.setDescription("The address of the source or source network which has been pruned. The mask must either be all 1's, or else juniDvmrpPruneSource and juniDvmrpPruneSourceMask must match juniDvmrpRouteSource and juniDvmrpRouteSourceMask for some entry in the juniDvmrpRouteTable.") juni_dvmrp_src_grp_oif_oif_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 7, 1, 4), interface_index()) if mibBuilder.loadTexts: juniDvmrpSrcGrpOifOIFIfIndex.setStatus('current') if mibBuilder.loadTexts: juniDvmrpSrcGrpOifOIFIfIndex.setDescription('The ifIndex of one of the downstream interfaces for this source group entry.') juni_dvmrp_src_grp_oif_oif_pruned = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 7, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('false', 0), ('true', 1)))).setMaxAccess('readonly') if mibBuilder.loadTexts: juniDvmrpSrcGrpOifOIFPruned.setStatus('current') if mibBuilder.loadTexts: juniDvmrpSrcGrpOifOIFPruned.setDescription('If true this OIF has been pruned.') juni_dvmrp_src_grp_oif_oif_dn_ttl = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 7, 1, 6), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniDvmrpSrcGrpOifOIFDnTTL.setStatus('current') if mibBuilder.loadTexts: juniDvmrpSrcGrpOifOIFDnTTL.setDescription('The timeout for this OIF. If juniDvmrpSrcGrpOifOIFPruned is false then this is undefined.') juni_dvmrp_traps = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 0)) juni_dvmrp_route_hog_notification_trap = notification_type((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 1, 1, 0, 1)) if mibBuilder.loadTexts: juniDvmrpRouteHogNotificationTrap.setStatus('current') if mibBuilder.loadTexts: juniDvmrpRouteHogNotificationTrap.setDescription('This is an indication that the route hog notification limit has been exceeded during the past minute. It may mean that a route surge is going on.') juni_dvmrp_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 4)) juni_dvmrp_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 4, 1)) juni_dvmrp_groups = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 4, 2)) juni_dvmrp_compliance = module_compliance((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 4, 1, 1)).setObjects(('Juniper-DVMRP-MIB', 'juniDvmrpBaseGroup'), ('Juniper-DVMRP-MIB', 'juniDvmrpAclDistNbrGroup'), ('Juniper-DVMRP-MIB', 'juniDvmrpInterfaceGroup'), ('Juniper-DVMRP-MIB', 'juniDvmrpSourceGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juni_dvmrp_compliance = juniDvmrpCompliance.setStatus('obsolete') if mibBuilder.loadTexts: juniDvmrpCompliance.setDescription('Obsolete compliance statement for entities which implement the Juniper DVMRP MIB. This statement became obsolete when new objects were added.') juni_dvmrp_compliance2 = module_compliance((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 4, 1, 2)).setObjects(('Juniper-DVMRP-MIB', 'juniDvmrpBaseGroup2'), ('Juniper-DVMRP-MIB', 'juniDvmrpAclDistNbrGroup'), ('Juniper-DVMRP-MIB', 'juniDvmrpInterfaceGroup2'), ('Juniper-DVMRP-MIB', 'juniDvmrpSourceGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juni_dvmrp_compliance2 = juniDvmrpCompliance2.setStatus('current') if mibBuilder.loadTexts: juniDvmrpCompliance2.setDescription('The compliance statement for entities which implement the Juniper DVMRP MIB.') juni_dvmrp_base_group = object_group((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 4, 2, 1)).setObjects(('Juniper-DVMRP-MIB', 'juniDvmrpAdminState'), ('Juniper-DVMRP-MIB', 'juniDvmrpMcastAdminState'), ('Juniper-DVMRP-MIB', 'juniDvmrpRouteHogNotification'), ('Juniper-DVMRP-MIB', 'juniDvmrpRouteLimit'), ('Juniper-DVMRP-MIB', 'juniDvmrpS32PrunesOnly')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juni_dvmrp_base_group = juniDvmrpBaseGroup.setStatus('obsolete') if mibBuilder.loadTexts: juniDvmrpBaseGroup.setDescription('Obsolete collection of objects providing basic management of DVMRP in a Juniper product. This group became obsolete when support was added for the DVMRP unicast routing object.') juni_dvmrp_acl_dist_nbr_group = object_group((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 4, 2, 2)).setObjects(('Juniper-DVMRP-MIB', 'juniDvmrpAclDistNbrDistance'), ('Juniper-DVMRP-MIB', 'juniDvmrpAclDistNbrNbrListName'), ('Juniper-DVMRP-MIB', 'juniDvmrpAclDistNbrStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juni_dvmrp_acl_dist_nbr_group = juniDvmrpAclDistNbrGroup.setStatus('current') if mibBuilder.loadTexts: juniDvmrpAclDistNbrGroup.setDescription('A collection of objects providing management of DVMRP access list distance neighbors in a Juniper product.') juni_dvmrp_interface_group = object_group((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 4, 2, 3)).setObjects(('Juniper-DVMRP-MIB', 'juniDvmrpLocalAddrMask'), ('Juniper-DVMRP-MIB', 'juniDvmrpSummaryAddrCost'), ('Juniper-DVMRP-MIB', 'juniDvmrpSummaryAddrStatus'), ('Juniper-DVMRP-MIB', 'juniDvmrpInterfaceAutoSummary'), ('Juniper-DVMRP-MIB', 'juniDvmrpInterfaceMetricOffsetOut'), ('Juniper-DVMRP-MIB', 'juniDvmrpInterfaceMetricOffsetIn'), ('Juniper-DVMRP-MIB', 'juniDvmrpInterfaceAdminState')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juni_dvmrp_interface_group = juniDvmrpInterfaceGroup.setStatus('obsolete') if mibBuilder.loadTexts: juniDvmrpInterfaceGroup.setDescription('Obsolete collection of objects providing management of a DVMRP interface in a Juniper product. This group became obsolete when support for the DVMRP interface announce list name object was added.') juni_dvmrp_source_group = object_group((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 4, 2, 4)).setObjects(('Juniper-DVMRP-MIB', 'juniDvmrpPruneIIFIfIndex'), ('Juniper-DVMRP-MIB', 'juniDvmrpPruneUpTime'), ('Juniper-DVMRP-MIB', 'juniDvmrpSrcGrpOifOIFPruned'), ('Juniper-DVMRP-MIB', 'juniDvmrpSrcGrpOifOIFDnTTL')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juni_dvmrp_source_group = juniDvmrpSourceGroup.setStatus('current') if mibBuilder.loadTexts: juniDvmrpSourceGroup.setDescription('A collection of objects providing management of a DVMRP source group in a Juniper product.') juni_dvmrp_notification_group = notification_group((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 4, 2, 5)).setObjects(('Juniper-DVMRP-MIB', 'juniDvmrpRouteHogNotificationTrap')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juni_dvmrp_notification_group = juniDvmrpNotificationGroup.setStatus('current') if mibBuilder.loadTexts: juniDvmrpNotificationGroup.setDescription('A notification for signaling important DVMRP events.') juni_dvmrp_base_group2 = object_group((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 4, 2, 6)).setObjects(('Juniper-DVMRP-MIB', 'juniDvmrpAdminState'), ('Juniper-DVMRP-MIB', 'juniDvmrpMcastAdminState'), ('Juniper-DVMRP-MIB', 'juniDvmrpRouteHogNotification'), ('Juniper-DVMRP-MIB', 'juniDvmrpRouteLimit'), ('Juniper-DVMRP-MIB', 'juniDvmrpS32PrunesOnly'), ('Juniper-DVMRP-MIB', 'juniDvmrpUnicastRouting')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juni_dvmrp_base_group2 = juniDvmrpBaseGroup2.setStatus('current') if mibBuilder.loadTexts: juniDvmrpBaseGroup2.setDescription('A collection of objects providing basic management of DVMRP in a Juniper product.') juni_dvmrp_interface_group2 = object_group((1, 3, 6, 1, 4, 1, 4874, 2, 2, 44, 4, 2, 7)).setObjects(('Juniper-DVMRP-MIB', 'juniDvmrpLocalAddrMask'), ('Juniper-DVMRP-MIB', 'juniDvmrpSummaryAddrCost'), ('Juniper-DVMRP-MIB', 'juniDvmrpSummaryAddrStatus'), ('Juniper-DVMRP-MIB', 'juniDvmrpInterfaceAutoSummary'), ('Juniper-DVMRP-MIB', 'juniDvmrpInterfaceMetricOffsetOut'), ('Juniper-DVMRP-MIB', 'juniDvmrpInterfaceMetricOffsetIn'), ('Juniper-DVMRP-MIB', 'juniDvmrpInterfaceAdminState'), ('Juniper-DVMRP-MIB', 'juniDvmrpInterfaceAnnounceListName')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juni_dvmrp_interface_group2 = juniDvmrpInterfaceGroup2.setStatus('current') if mibBuilder.loadTexts: juniDvmrpInterfaceGroup2.setDescription('A collection of objects providing management of a DVMRP interface in a Juniper product.') mibBuilder.exportSymbols('Juniper-DVMRP-MIB', PYSNMP_MODULE_ID=juniDvmrpMIB, juniDvmrpSummaryAddrCost=juniDvmrpSummaryAddrCost, juniDvmrpInterfaceEntry=juniDvmrpInterfaceEntry, juniDvmrpSrcGrpOifOIFPruned=juniDvmrpSrcGrpOifOIFPruned, juniDvmrpNotificationGroup=juniDvmrpNotificationGroup, juniDvmrpInterfaceAutoSummary=juniDvmrpInterfaceAutoSummary, juniDvmrpGroups=juniDvmrpGroups, juniDvmrpInterfaceMetricOffsetOut=juniDvmrpInterfaceMetricOffsetOut, juniDvmrpInterfaceGroup=juniDvmrpInterfaceGroup, juniDvmrpSummaryAddrTable=juniDvmrpSummaryAddrTable, juniDvmrpInterfaceMetricOffsetIn=juniDvmrpInterfaceMetricOffsetIn, juniDvmrpAclDistNbrTable=juniDvmrpAclDistNbrTable, juniDvmrpPruneSource=juniDvmrpPruneSource, juniDvmrpLocalAddrTableEntry=juniDvmrpLocalAddrTableEntry, juniDvmrpSummaryAddrMask=juniDvmrpSummaryAddrMask, juniDvmrpPruneIIFIfIndex=juniDvmrpPruneIIFIfIndex, juniDvmrpMIBObjects=juniDvmrpMIBObjects, juniDvmrpPruneUpTime=juniDvmrpPruneUpTime, juniDvmrpSrcGrpOifSource=juniDvmrpSrcGrpOifSource, juniDvmrpSrcGrpOifOIFIfIndex=juniDvmrpSrcGrpOifOIFIfIndex, juniDvmrpLocalAddrMask=juniDvmrpLocalAddrMask, juniDvmrpMcastAdminState=juniDvmrpMcastAdminState, juniDvmrpSummaryAddrAddress=juniDvmrpSummaryAddrAddress, juniDvmrpSrcGrpOifOIFDnTTL=juniDvmrpSrcGrpOifOIFDnTTL, juniDvmrpCompliance=juniDvmrpCompliance, juniDvmrpPruneEntry=juniDvmrpPruneEntry, juniDvmrpRouteHogNotificationTrap=juniDvmrpRouteHogNotificationTrap, juniDvmrpSrcGrpOifTable=juniDvmrpSrcGrpOifTable, juniDvmrpSrcGrpOifSourceMask=juniDvmrpSrcGrpOifSourceMask, juniDvmrpPruneSourceMask=juniDvmrpPruneSourceMask, juniDvmrpS32PrunesOnly=juniDvmrpS32PrunesOnly, juniDvmrpSourceGroup=juniDvmrpSourceGroup, juniDvmrp=juniDvmrp, juniDvmrpUnicastRouting=juniDvmrpUnicastRouting, juniDvmrpAclDistNbrNbrListName=juniDvmrpAclDistNbrNbrListName, juniDvmrpMIB=juniDvmrpMIB, juniDvmrpConformance=juniDvmrpConformance, juniDvmrpSummaryAddrTableEntry=juniDvmrpSummaryAddrTableEntry, juniDvmrpInterfaceAnnounceListName=juniDvmrpInterfaceAnnounceListName, juniDvmrpSrcGrpOifEntry=juniDvmrpSrcGrpOifEntry, juniDvmrpAclDistNbrAclListName=juniDvmrpAclDistNbrAclListName, juniDvmrpAclDistNbrGroup=juniDvmrpAclDistNbrGroup, juniDvmrpRouteHogNotification=juniDvmrpRouteHogNotification, juniDvmrpSrcGrpOifGroup=juniDvmrpSrcGrpOifGroup, juniDvmrpCompliances=juniDvmrpCompliances, juniDvmrpBaseGroup2=juniDvmrpBaseGroup2, juniDvmrpAclDistNbrIfIndex=juniDvmrpAclDistNbrIfIndex, juniDvmrpAdminState=juniDvmrpAdminState, juniDvmrpAclDistNbrStatus=juniDvmrpAclDistNbrStatus, juniDvmrpScalar=juniDvmrpScalar, juniDvmrpInterfaceTable=juniDvmrpInterfaceTable, juniDvmrpRouteLimit=juniDvmrpRouteLimit, juniDvmrpBaseGroup=juniDvmrpBaseGroup, juniDvmrpTraps=juniDvmrpTraps, juniDvmrpLocalAddrTable=juniDvmrpLocalAddrTable, juniDvmrpPruneGroup=juniDvmrpPruneGroup, juniDvmrpInterfaceGroup2=juniDvmrpInterfaceGroup2, juniDvmrpLocalAddrAddrOrIfIndex=juniDvmrpLocalAddrAddrOrIfIndex, juniDvmrpLocalAddrIfIndex=juniDvmrpLocalAddrIfIndex, juniDvmrpSummaryAddrIfIndex=juniDvmrpSummaryAddrIfIndex, juniDvmrpPruneTable=juniDvmrpPruneTable, juniDvmrpAclDistNbrEntry=juniDvmrpAclDistNbrEntry, juniDvmrpAclDistNbrDistance=juniDvmrpAclDistNbrDistance, juniDvmrpCompliance2=juniDvmrpCompliance2, juniDvmrpSummaryAddrStatus=juniDvmrpSummaryAddrStatus, juniDvmrpInterfaceAdminState=juniDvmrpInterfaceAdminState)
# -*- coding: utf-8 -*- """ Configuration file. """ # enables the debug mode of the client # True: Exceptions will be raised # False: Exceptions will be catched and logged debug_mode = True # parameter for database connection database_connection = { 'user': 'root', 'passwd': 'Se!Ne#Ta45', 'host': 'localhost', 'db': 'domainSearch', 'charset': 'utf8' } # address and port of the rating-request server # use empty string as host to listen on all interfaces rating_request_server = { 'host': '', 'port': 8010 } # address and port of the queued-domain-request server # use empty string as host to listen on all interfaces queued_domain_request_server = { 'host': '', 'port': 8020 } # address and port of the task-notification server # use empty string as host to listen on all interfaces task_notification_server = { 'host': '', 'port': 8030 } # address and port of the scanned-domain-request server # use empty string as host to listen on all interfaces scanned_domain_request_server = { 'host': '', 'port': 8040 } # time until a domain entry expires in the database domain_expiration_time = 1 # day(s) # time until a request entry expires in the database request_expiration_time = 1 # day(s) # timeout to get task from blocked queue queued_domain_request_server_timeout = 1 # second(s) # path to the queued-domain-requests backup queued_domain_requests_backup_path = 'resources/queued_domain_requests_backup' # timeout to get task from blocked queue scanned_domain_request_server_timeout = 1 # second(s) # path to the scanned-domain-requests backup scanned_domain_requests_backup_path = 'resources/scanned_domain_requests_backup' # path to the running file running_path = 'resources/running'
""" Configuration file. """ debug_mode = True database_connection = {'user': 'root', 'passwd': 'Se!Ne#Ta45', 'host': 'localhost', 'db': 'domainSearch', 'charset': 'utf8'} rating_request_server = {'host': '', 'port': 8010} queued_domain_request_server = {'host': '', 'port': 8020} task_notification_server = {'host': '', 'port': 8030} scanned_domain_request_server = {'host': '', 'port': 8040} domain_expiration_time = 1 request_expiration_time = 1 queued_domain_request_server_timeout = 1 queued_domain_requests_backup_path = 'resources/queued_domain_requests_backup' scanned_domain_request_server_timeout = 1 scanned_domain_requests_backup_path = 'resources/scanned_domain_requests_backup' running_path = 'resources/running'
# single_leading_underscore.py print(""" Single leading underscore: _var ------------------------------- 1. When applied to variable and method names, it has a meaning by convention only. 2. Intended as a hint to the programmer that it is used for internal purposes, but not enforced by Python. 3. Does not affect the behaviour of the program. """) print(""" class Test: def __init__(self): self.foo = 11 self._bar = 23 t = Test() print(t.foo) print(t._bar) """) class Test: def __init__(self): self.foo = 11 self._bar = 23 t = Test() print("t.foo = ", t.foo) print("t._bar = ", t._bar) print(""" In the above example, we can see that putting single underscore before bar did not prevent the user from accessing it. """) print(""" Impact on module imports ------------------------ 1. Wildcard import -- names with leading underscores are not imported. 2. Regular import -- names with leading underscores are also imported. """) print(""" def external_func(): print("external func") def _internal_func(): print("internal func") """) def external_func(): print("external_func") def _internal_func(): print("_internal_func") print(""" In the example above, _internal_func is not imported on 'from single_leading_underscore import *'. It will be imported on regular imports. """)
print('\nSingle leading underscore: _var\n-------------------------------\n1. When applied to variable and method names, it has a meaning by convention only.\n2. Intended as a hint to the programmer that it is used for internal purposes, but not enforced by Python.\n3. Does not affect the behaviour of the program.\n') print('\nclass Test:\n def __init__(self):\n self.foo = 11\n self._bar = 23\n\nt = Test()\nprint(t.foo)\nprint(t._bar)\n') class Test: def __init__(self): self.foo = 11 self._bar = 23 t = test() print('t.foo = ', t.foo) print('t._bar = ', t._bar) print('\nIn the above example, we can see that putting single underscore before bar did not prevent the \nuser from accessing it.\n') print('\nImpact on module imports\n------------------------\n1. Wildcard import -- names with leading underscores are not imported.\n2. Regular import -- names with leading underscores are also imported.\n') print('\ndef external_func():\n print("external func")\n\n\ndef _internal_func():\n print("internal func")\n') def external_func(): print('external_func') def _internal_func(): print('_internal_func') print("\nIn the example above, _internal_func is not imported on 'from single_leading_underscore import *'.\nIt will be imported on regular imports.\n")
# Given a string s consisting of small English letters, find and return the first instance of a non-repeating character in it. If there is no such character, return '_'. # Example # For s = "abacabad", the output should be # first_not_repeating_character(s) = 'c'. # There are 2 non-repeating characters in the string: 'c' and 'd'. Return c since it appears in the string first. # For s = "abacabaabacaba", the output should be # first_not_repeating_character(s) = '_'. # There are no characters in this string that do not repeat. # [execution time limit] 4 seconds (py3) # [input] string s # A string that contains only lowercase English letters. # [output] char # The first non-repeating character in s of '_' if there are no characters that do not repeat. #summary: keep a count of the chars in a hash table & put them in order into a list so we can reference the first char in our list that has a count of 1, thus the first non-repeating char def first_not_repeating_character(s): # chars dict to store the chars as a key with their count as a value chars = {} # non_repeat to send the values in s that dont have a count already non_repeat = [] # for each char in s, if is in chars dict, add it's count by 1 for char in s: if char in chars: chars[char] += 1 else: # otherwise add it to chars dict with a count of 1 & append that char to our non_repeat list chars[char] = 1 non_repeat.append(char) # for each character in non_repeat list, because appended in order we can look up the count & the first character with a count of 1 will be returned for char in non_repeat: if chars[char] == 1: return char # if none of the conditions were met then we return the last edge case return '_' #Time complexity: O(n) - linear because our main for loop would change based on the input size of s #Space complexity: O(n) - linear because we created a dict as well as an array that would change sizes based on the input size of s
def first_not_repeating_character(s): chars = {} non_repeat = [] for char in s: if char in chars: chars[char] += 1 else: chars[char] = 1 non_repeat.append(char) for char in non_repeat: if chars[char] == 1: return char return '_'
""" generateProductImages.py 50 products --> 50 images 10 images per category Categories: 1. Books 2. Electronics 3. Clothing 4. Games 5. Groceries """ def getProductImage(category, idx): bookImages = ["https://tinyurl.com/bdew8ewr", "https://tinyurl.com/ycktxfjs", "https://tinyurl.com/4uuw7d7c", "https://m.media-amazon.com/images/I/61rFgbqlcrL._AC_UY436_FMwebp_QL65_.jpg", "https://m.media-amazon.com/images/I/71QVHBdFzAL._AC_UY436_FMwebp_QL65_.jpg", "https://m.media-amazon.com/images/I/71QVHBdFzAL._AC_UY436_FMwebp_QL65_.jpg", "https://m.media-amazon.com/images/I/61q1IqrlhyL._AC_UL640_FMwebp_QL65_.jpg", "https://m.media-amazon.com/images/I/71nSoeWRPNL._AC_UL640_FMwebp_QL65_.jpg", "https://m.media-amazon.com/images/I/710aLBwkr7L._AC_UL640_FMwebp_QL65_.jpg", "https://m.media-amazon.com/images/I/71BkEu-sVzL._AC_UL640_FMwebp_QL65_.jpg"] electronicImages = ["https://m.media-amazon.com/images/I/71hhgeQCrOL._AC_SX960_SY720_.jpg", "https://m.media-amazon.com/images/I/71+2H96GHZL._AC_SX960_SY720_.jpg", "https://m.media-amazon.com/images/I/71zRcqRQGOL._AC_SX960_SY720_.jpg", "https://m.media-amazon.com/images/I/81eRAX3sB6L._AC_SX960_SY720_.jpg", "https://m.media-amazon.com/images/I/81w3miL-DHL._AC_SX960_SY720_.jpg", "https://m.media-amazon.com/images/I/81suFCdoD6L._AC_SX960_SY720_.jpg", "https://m.media-amazon.com/images/I/61xT7CDtrwS._AC_UY436_FMwebp_QL65_.jpg", "https://m.media-amazon.com/images/I/51utxdpV8cS._AC_UY436_FMwebp_QL65_.jpg", "https://m.media-amazon.com/images/I/61Kq-Pz8d-L._AC_UY436_FMwebp_QL65_.jpg", "https://m.media-amazon.com/images/I/71LJJrKbezL._AC_UY436_FMwebp_QL65_.jpg"] clothingImages = ["https://m.media-amazon.com/images/I/91z1+DpSXIL._AC_UL640_FMwebp_QL65_.jpg", "https://m.media-amazon.com/images/I/71A6F+t7AoL._AC_UL640_FMwebp_QL65_.jpg", "https://m.media-amazon.com/images/I/81Sv3Z2suBL._AC_UL640_FMwebp_QL65_.jpg", "https://m.media-amazon.com/images/I/812m6InUlzL._AC_UL640_FMwebp_QL65_.jpg", "https://m.media-amazon.com/images/I/61s+ft92apL._AC_UL640_FMwebp_QL65_.jpg", "https://m.media-amazon.com/images/I/81te-8XgnlL._AC_UL640_FMwebp_QL65_.jpg", "https://m.media-amazon.com/images/I/61y-w4bewQL._MCnd_AC_UL640_FMwebp_QL65_.jpg", "https://m.media-amazon.com/images/I/81ZAKQ1jzeL._AC_UL640_FMwebp_QL65_.jpg", "https://m.media-amazon.com/images/I/71VQsF2tupL._AC_UL640_FMwebp_QL65_.jpg", "https://m.media-amazon.com/images/I/71F2tjW19JS._AC_UL640_FMwebp_QL65_.jpg"] gameImages = ["https://m.media-amazon.com/images/I/814IztfQ5LL._AC_UY436_FMwebp_QL65_.jpg", "https://m.media-amazon.com/images/I/817zvXdCgSL._AC_UY436_FMwebp_QL65_.jpg", "https://m.media-amazon.com/images/I/818iETWG-aL._AC_UL640_FMwebp_QL65_.jpg", "https://m.media-amazon.com/images/I/611sCBctXuL._AC_UY436_FMwebp_QL65_.jpg", "https://m.media-amazon.com/images/I/51PfIGfAutL._AC_UY436_FMwebp_QL65_.jpg", "https://m.media-amazon.com/images/I/71H2kx9wTqL._AC_UY436_FMwebp_QL65_.jpg", "https://m.media-amazon.com/images/I/71PIucvgepL._AC_UY436_QL65_.jpg", "https://m.media-amazon.com/images/I/71YC7GYYKAL._AC_UY436_QL65_.jpg", "https://m.media-amazon.com/images/I/81-FD3tzUlL._AC_UY436_QL65_.jpg", "https://m.media-amazon.com/images/I/61+AtsQkQ6S._AC_UY436_FMwebp_QL65_.jpg"] groceryImages = ["https://m.media-amazon.com/images/I/71kQY4DDlNL._AC_UL640_FMwebp_QL65_.jpg", "https://m.media-amazon.com/images/I/81u6mQeOSmL._AC_UL640_FMwebp_QL65_.jpg", "https://m.media-amazon.com/images/I/81DF9tHWcbL._AC_UL640_FMwebp_QL65_.jpg", "https://m.media-amazon.com/images/I/81p6f569R0L._AC_UL640_FMwebp_QL65_.jpg", "https://m.media-amazon.com/images/I/71luFg8EBjS._AC_UL640_FMwebp_QL65_.jpg", "https://m.media-amazon.com/images/I/81te0dgkN4L._AC_UL640_FMwebp_QL65_.jpg", "https://m.media-amazon.com/images/I/61jTpExBMAL._AC_UL640_FMwebp_QL65_.jpg", "https://m.media-amazon.com/images/I/81I75zgQ1-L._AC_UL640_FMwebp_QL65_.jpg", "https://m.media-amazon.com/images/I/817x89Wnc5S._AC_UL640_FMwebp_QL65_.jpg", "https://m.media-amazon.com/images/I/816flmsx1JL._AC_UL640_FMwebp_QL65_.jpg"] categoryMap = {"Books": bookImages, "Electronics": electronicImages, "Clothing": clothingImages, "Games": gameImages, "Groceries": groceryImages} return categoryMap[category][idx]
""" generateProductImages.py 50 products --> 50 images 10 images per category Categories: 1. Books 2. Electronics 3. Clothing 4. Games 5. Groceries """ def get_product_image(category, idx): book_images = ['https://tinyurl.com/bdew8ewr', 'https://tinyurl.com/ycktxfjs', 'https://tinyurl.com/4uuw7d7c', 'https://m.media-amazon.com/images/I/61rFgbqlcrL._AC_UY436_FMwebp_QL65_.jpg', 'https://m.media-amazon.com/images/I/71QVHBdFzAL._AC_UY436_FMwebp_QL65_.jpg', 'https://m.media-amazon.com/images/I/71QVHBdFzAL._AC_UY436_FMwebp_QL65_.jpg', 'https://m.media-amazon.com/images/I/61q1IqrlhyL._AC_UL640_FMwebp_QL65_.jpg', 'https://m.media-amazon.com/images/I/71nSoeWRPNL._AC_UL640_FMwebp_QL65_.jpg', 'https://m.media-amazon.com/images/I/710aLBwkr7L._AC_UL640_FMwebp_QL65_.jpg', 'https://m.media-amazon.com/images/I/71BkEu-sVzL._AC_UL640_FMwebp_QL65_.jpg'] electronic_images = ['https://m.media-amazon.com/images/I/71hhgeQCrOL._AC_SX960_SY720_.jpg', 'https://m.media-amazon.com/images/I/71+2H96GHZL._AC_SX960_SY720_.jpg', 'https://m.media-amazon.com/images/I/71zRcqRQGOL._AC_SX960_SY720_.jpg', 'https://m.media-amazon.com/images/I/81eRAX3sB6L._AC_SX960_SY720_.jpg', 'https://m.media-amazon.com/images/I/81w3miL-DHL._AC_SX960_SY720_.jpg', 'https://m.media-amazon.com/images/I/81suFCdoD6L._AC_SX960_SY720_.jpg', 'https://m.media-amazon.com/images/I/61xT7CDtrwS._AC_UY436_FMwebp_QL65_.jpg', 'https://m.media-amazon.com/images/I/51utxdpV8cS._AC_UY436_FMwebp_QL65_.jpg', 'https://m.media-amazon.com/images/I/61Kq-Pz8d-L._AC_UY436_FMwebp_QL65_.jpg', 'https://m.media-amazon.com/images/I/71LJJrKbezL._AC_UY436_FMwebp_QL65_.jpg'] clothing_images = ['https://m.media-amazon.com/images/I/91z1+DpSXIL._AC_UL640_FMwebp_QL65_.jpg', 'https://m.media-amazon.com/images/I/71A6F+t7AoL._AC_UL640_FMwebp_QL65_.jpg', 'https://m.media-amazon.com/images/I/81Sv3Z2suBL._AC_UL640_FMwebp_QL65_.jpg', 'https://m.media-amazon.com/images/I/812m6InUlzL._AC_UL640_FMwebp_QL65_.jpg', 'https://m.media-amazon.com/images/I/61s+ft92apL._AC_UL640_FMwebp_QL65_.jpg', 'https://m.media-amazon.com/images/I/81te-8XgnlL._AC_UL640_FMwebp_QL65_.jpg', 'https://m.media-amazon.com/images/I/61y-w4bewQL._MCnd_AC_UL640_FMwebp_QL65_.jpg', 'https://m.media-amazon.com/images/I/81ZAKQ1jzeL._AC_UL640_FMwebp_QL65_.jpg', 'https://m.media-amazon.com/images/I/71VQsF2tupL._AC_UL640_FMwebp_QL65_.jpg', 'https://m.media-amazon.com/images/I/71F2tjW19JS._AC_UL640_FMwebp_QL65_.jpg'] game_images = ['https://m.media-amazon.com/images/I/814IztfQ5LL._AC_UY436_FMwebp_QL65_.jpg', 'https://m.media-amazon.com/images/I/817zvXdCgSL._AC_UY436_FMwebp_QL65_.jpg', 'https://m.media-amazon.com/images/I/818iETWG-aL._AC_UL640_FMwebp_QL65_.jpg', 'https://m.media-amazon.com/images/I/611sCBctXuL._AC_UY436_FMwebp_QL65_.jpg', 'https://m.media-amazon.com/images/I/51PfIGfAutL._AC_UY436_FMwebp_QL65_.jpg', 'https://m.media-amazon.com/images/I/71H2kx9wTqL._AC_UY436_FMwebp_QL65_.jpg', 'https://m.media-amazon.com/images/I/71PIucvgepL._AC_UY436_QL65_.jpg', 'https://m.media-amazon.com/images/I/71YC7GYYKAL._AC_UY436_QL65_.jpg', 'https://m.media-amazon.com/images/I/81-FD3tzUlL._AC_UY436_QL65_.jpg', 'https://m.media-amazon.com/images/I/61+AtsQkQ6S._AC_UY436_FMwebp_QL65_.jpg'] grocery_images = ['https://m.media-amazon.com/images/I/71kQY4DDlNL._AC_UL640_FMwebp_QL65_.jpg', 'https://m.media-amazon.com/images/I/81u6mQeOSmL._AC_UL640_FMwebp_QL65_.jpg', 'https://m.media-amazon.com/images/I/81DF9tHWcbL._AC_UL640_FMwebp_QL65_.jpg', 'https://m.media-amazon.com/images/I/81p6f569R0L._AC_UL640_FMwebp_QL65_.jpg', 'https://m.media-amazon.com/images/I/71luFg8EBjS._AC_UL640_FMwebp_QL65_.jpg', 'https://m.media-amazon.com/images/I/81te0dgkN4L._AC_UL640_FMwebp_QL65_.jpg', 'https://m.media-amazon.com/images/I/61jTpExBMAL._AC_UL640_FMwebp_QL65_.jpg', 'https://m.media-amazon.com/images/I/81I75zgQ1-L._AC_UL640_FMwebp_QL65_.jpg', 'https://m.media-amazon.com/images/I/817x89Wnc5S._AC_UL640_FMwebp_QL65_.jpg', 'https://m.media-amazon.com/images/I/816flmsx1JL._AC_UL640_FMwebp_QL65_.jpg'] category_map = {'Books': bookImages, 'Electronics': electronicImages, 'Clothing': clothingImages, 'Games': gameImages, 'Groceries': groceryImages} return categoryMap[category][idx]
skill = input() while True: command = input() if command == 'For Azeroth' or command is None: break if command == 'GladiatorStance': skill = skill.upper() print(skill) elif command == 'DefensiveStance': skill = skill.lower() print(skill) elif command.split(' ')[0] == 'Dispel' and len(command.split(' ')) == 3: index = int(command.split(' ')[1]) letter = command.split(' ')[2] if 0 <= index < len(skill): skill = skill.replace(skill[index], letter, 1) print("Success!") else: print("Dispel too weak.") elif command.split(' ')[0] == 'Target' and command.split(' ')[1] == 'Change' and len(command.split(' ')) == 4: substring = command.split(' ')[2] second = command.split(' ')[3] skill = skill.replace(substring, second) print(skill) elif command.split(' ')[0] == 'Target' and command.split(' ')[1] == 'Remove' and len(command.split(' ')) == 3: sbstr = command.split(' ')[2] skill = skill.replace(sbstr, '') print(skill) else: print("Command doesn't exist!")
skill = input() while True: command = input() if command == 'For Azeroth' or command is None: break if command == 'GladiatorStance': skill = skill.upper() print(skill) elif command == 'DefensiveStance': skill = skill.lower() print(skill) elif command.split(' ')[0] == 'Dispel' and len(command.split(' ')) == 3: index = int(command.split(' ')[1]) letter = command.split(' ')[2] if 0 <= index < len(skill): skill = skill.replace(skill[index], letter, 1) print('Success!') else: print('Dispel too weak.') elif command.split(' ')[0] == 'Target' and command.split(' ')[1] == 'Change' and (len(command.split(' ')) == 4): substring = command.split(' ')[2] second = command.split(' ')[3] skill = skill.replace(substring, second) print(skill) elif command.split(' ')[0] == 'Target' and command.split(' ')[1] == 'Remove' and (len(command.split(' ')) == 3): sbstr = command.split(' ')[2] skill = skill.replace(sbstr, '') print(skill) else: print("Command doesn't exist!")
# Copyright (c) 2020 Club Raiders Project # https://github.com/HausReport/ClubRaiders # # SPDX-License-Identifier: BSD-3-Clause # # Faction constants # GOVERNMENT = 'government' MINOR_FACTION_ID = 'minor_faction_id' MINOR_FACTION_PRESENCES = 'minor_faction_presences' NEIGHBOR_COUNT = 'neighbor_count' HAS_ANARCHY = 'hasAnarchy' ID = 'id' NEIGHBORS = 'neighbors' POWER_STATE = 'power_state' # # System constants # HAS_DOCKING = 'has_docking' SYSTEM_ID = 'system_id' PAD_SIZE = 'max_landing_pad_size' DISTANCE_TO_STAR = 'distance_to_star' STATION_TYPE = 'type' STATE_BOOM = 16 STATE_BUST = 32 STATE_FAMINE = 37 STATE_CIVIL_UNREST = 48 STATE_CIVIL_WAR = 64 STATE_ELECTION = 65 STATE_CIVIL_LIBERTY = 66 STATE_EXPANSION = 67 STATE_LOCKDOWN = 69 STATE_OUTBREAK = 72 STATE_WAR = 73 STATE_NONE = 80 STATE_PIRATE_ATTACK = 81 STATE_RETREAT = 96 STATE_INVESTMENT = 101 STATE_BLIGHT = 102 STATE_DROUGHT = 103 STATE_INFRASTRUCTURE_FAILURE = 104 STATE_NATURAL_DISASTER = 105 STATE_PUBLIC_HOLIDAY = 106 STATE_TERRORIST_ATTACK = 107 # if STATE_RETREAT in state_dict: ret.append(STATE_RETREAT) #96 # STATE_WAR = 73 # STATE_CIVIL_WAR = 64 # STATE_ELECTION = 65 # # STATE_OUTBREAK = 72 # STATE_INFRASTRUCTURE_FAILURE = 104 # STATE_EXPANSION = 67 # # ','.join(ret) # #STATE_BOOM = 16 # #STATE_BUST = 32 # #STATE_FAMINE = 37 # #STATE_CIVIL_UNREST = 48 # #STATE_CIVIL_LIBERTY = 66 # #STATE_LOCKDOWN = 69 # #STATE_NONE = 80 # #STATE_PIRATE_ATTACK = 81 # #STATE_INVESTMENT = 101 # #STATE_BLIGHT = 102 # #STATE_DROUGHT = 103 # #STATE_NATURAL_DISASTER = 105 # #STATE_PUBLIC_HOLIDAY = 106 # #STATE_TERRORIST_ATTACK = 107 # # for state in state_dict: # if (state['id'] == 64): # return 64 # if (state['id'] == 65): # return 65 # if (state['id'] == 73): # return 73 # if (state['id'] == 96): # return 96 # if (state['id'] == 104): # return 104 # # return 0
government = 'government' minor_faction_id = 'minor_faction_id' minor_faction_presences = 'minor_faction_presences' neighbor_count = 'neighbor_count' has_anarchy = 'hasAnarchy' id = 'id' neighbors = 'neighbors' power_state = 'power_state' has_docking = 'has_docking' system_id = 'system_id' pad_size = 'max_landing_pad_size' distance_to_star = 'distance_to_star' station_type = 'type' state_boom = 16 state_bust = 32 state_famine = 37 state_civil_unrest = 48 state_civil_war = 64 state_election = 65 state_civil_liberty = 66 state_expansion = 67 state_lockdown = 69 state_outbreak = 72 state_war = 73 state_none = 80 state_pirate_attack = 81 state_retreat = 96 state_investment = 101 state_blight = 102 state_drought = 103 state_infrastructure_failure = 104 state_natural_disaster = 105 state_public_holiday = 106 state_terrorist_attack = 107
# -*- coding: utf-8 -*- """ Created on Fri Nov 27 02:01:38 2020 @author: peng """ # nothing new A = [1] B = [2] C = [3]
""" Created on Fri Nov 27 02:01:38 2020 @author: peng """ a = [1] b = [2] c = [3]