content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
class Solution: def solve(self, s): lCount = 0 rCount = 0 choiceCount = 0 for i in s: if i == 'L': lCount += 1 elif i == 'R': rCount += 1 else: choiceCount += 1 if lCount > rCount: return (lCount + choiceCount) - rCount else: return (rCount + choiceCount) - lCount
class Solution: def solve(self, s): l_count = 0 r_count = 0 choice_count = 0 for i in s: if i == 'L': l_count += 1 elif i == 'R': r_count += 1 else: choice_count += 1 if lCount > rCount: return lCount + choiceCount - rCount else: return rCount + choiceCount - lCount
class Vertice: def __init__(self, n): self.nombre = n class Grafo: vertices = {} bordes = [] indices_bordes = {} def agregar_vertice(self, vertex): if isinstance(vertex, Vertice) and vertex.nombre not in self.vertices: self.vertices[vertex.nombre] = vertex for fila in self.bordes: fila.append(0) self.bordes.append([0] * (len(self.bordes) + 1)) self.indices_bordes[vertex.nombre] = len(self.indices_bordes) return True else: return False def agregar_borde(self, u, v, weight=1): if u in self.vertices and v in self.vertices: self.bordes[self.indices_bordes[u]][self.indices_bordes[v]] = weight self.bordes[self.indices_bordes[v]][self.indices_bordes[u]] = weight return True else: return False def imprimir_grafo(self): for v, x in sorted(self.indices_bordes.items()): print(v + ' ', end='') for j in range(len(self.bordes)): print(self.bordes[x][j], end='') print(' ') g = Grafo() a = Vertice('1') g.agregar_vertice(a) g.agregar_vertice(Vertice('2')) for i in range(ord('1'), ord('8')): g.agregar_vertice(Vertice(chr(i))) bordes = ['12', '24', '26', '43', '32', '45', '52', '65', '67', '75', '74'] for borde in bordes: g.agregar_borde(borde[:1], borde[1:]) g.imprimir_grafo()
class Vertice: def __init__(self, n): self.nombre = n class Grafo: vertices = {} bordes = [] indices_bordes = {} def agregar_vertice(self, vertex): if isinstance(vertex, Vertice) and vertex.nombre not in self.vertices: self.vertices[vertex.nombre] = vertex for fila in self.bordes: fila.append(0) self.bordes.append([0] * (len(self.bordes) + 1)) self.indices_bordes[vertex.nombre] = len(self.indices_bordes) return True else: return False def agregar_borde(self, u, v, weight=1): if u in self.vertices and v in self.vertices: self.bordes[self.indices_bordes[u]][self.indices_bordes[v]] = weight self.bordes[self.indices_bordes[v]][self.indices_bordes[u]] = weight return True else: return False def imprimir_grafo(self): for (v, x) in sorted(self.indices_bordes.items()): print(v + ' ', end='') for j in range(len(self.bordes)): print(self.bordes[x][j], end='') print(' ') g = grafo() a = vertice('1') g.agregar_vertice(a) g.agregar_vertice(vertice('2')) for i in range(ord('1'), ord('8')): g.agregar_vertice(vertice(chr(i))) bordes = ['12', '24', '26', '43', '32', '45', '52', '65', '67', '75', '74'] for borde in bordes: g.agregar_borde(borde[:1], borde[1:]) g.imprimir_grafo()
#Single line concat "Hello " "World" #Multi line concat with line continuation "Goodbye " \ "World" #Single line concat in list [ "a" "b" ] #Single line, looks like tuple, but is just parenthesized ("c" "d" ) #Multi line in list [ 'e' 'f' ] #Simple String "string" #String with escapes "\n\n\n\n" #String with unicode escapes '\u0123\u1234' #Concat with empty String 'word' '' #String with escapes and concatenation : '\n\n\n\n' '0' #Multiline string ''' line 0 line 1 ''' #Multiline impicitly concatenated string ''' line 2 line 3 ''' ''' line 4 line 5 ''' #Implicitly concatenated
"""Hello World""" 'Goodbye World' ['ab'] 'cd' ['ef'] 'string' '\n\n\n\n' 'ģሴ' 'word' '\n\n\n\n0' '\nline 0\nline 1\n' '\nline 2\nline 3\n\nline 4\nline 5\n'
num1 = 111 num2 = 222 num3 = 333333 num3 = 333 num4 = 444 num6 = 666 num5 = 555 num7 = 777
num1 = 111 num2 = 222 num3 = 333333 num3 = 333 num4 = 444 num6 = 666 num5 = 555 num7 = 777
# True & False limit = 5000 limit == 4000 # returns False limit == 5000 # returns True 5 == 4 # returns False 5 == 5 # returns True # if & else & elif gain = 50000 limit = 50000 if gain > limit: print("gain is greater than the limit") elif gain == limit: print("gain equally limit") else: print("limit is greater than the gain")
limit = 5000 limit == 4000 limit == 5000 5 == 4 5 == 5 gain = 50000 limit = 50000 if gain > limit: print('gain is greater than the limit') elif gain == limit: print('gain equally limit') else: print('limit is greater than the gain')
#!/usr/bin/env python ''' THIS IS DOUBLY LINKED LIST IMPLEMENTATION ''' class Node: def __init__(self, prev=None, next=None, data=None): self.prev = prev self.next = next self.data = data def __str__(self): return str(self.data) class DoublyLinkedList: def __init__(self): self.head = None self.count = int(0) def display(self): temp = self.head print("\nDLL Content: "), while (temp): print(str(temp.data)), temp = temp.next print(" #") def show_count(self): print(self.count) def get_count(self): return self.count def push(self, new_data): new_node = Node(data=new_data) new_node.prev = None new_node.next = self.head if self.head is not None: self.head.prev = new_node self.head = new_node self.count = self.count + 1 def insertBefore(self, cursor, new_data): if cursor is None: print("Error: Node doesn't exist") return new_node = Node(data=new_data) new_node.prev = cursor.prev new_node.next = cursor if cursor.prev is not None: cursor.prev.next = new_node cursor.prev = new_node self.count = self.count + 1 def insertAfter(self, cursor, new_data): if cursor is None: print("Error: Node doesn't exist") return new_node = Node(data=new_data) new_node.prev = cursor new_node.next = cursor.next cursor.next = new_node if new_node.next is not None: new_node.next.prev = new_node self.count = self.count + 1 def append(self, new_data): new_node = Node(data=new_data) new_node.next = None if self.head is None: new_node.prev = None self.head = new_node self.count = self.count + 1 return last = self.head while (last.next is not None): last = last.next new_node.prev = last last.next = new_node self.count = self.count + 1 def menu(): print("Doubly Linked List\n") print("1. Show List") print("2. Insert at Start") print("3. Insert Before") print("4. Insert After") print("5. Insert at End") print("9. # of Element") print("0. Exit") print(">> "), def main(): dll = DoublyLinkedList() while(True): menu() choice = int(raw_input()) if choice == int('1'): dll.display() elif choice == int('2'): print("Enter data to insert: "), data = raw_input() dll.push(data) elif choice == int('3'): print("Enter data to insert: "), data = raw_input() print("Enter position of cursor (before): "), pos = int(raw_input()) if pos == int('1'): dll.push(data) continue cursor = dll.head for i in range(1, pos): cursor = cursor.next print(cursor) dll.insertBefore(cursor, data) # print("3") elif choice == int('4'): print("Enter data to insert: "), data = raw_input() print("Enter position of cursor (after): "), pos = int(raw_input()) cursor = dll.head for i in range(pos - 1): cursor = cursor.next print(cursor) dll.insertAfter(cursor, data) # print("4") elif choice == int('5'): print("Enter data to insert: "), data = raw_input() dll.append(data) # print("5") elif choice == int('9'): print("No of element: "), dll.show_count() elif choice == int('0'): break else: print("Invalid Selection") print('\n\nEND\n\n') if __name__ == '__main__': main()
""" THIS IS DOUBLY LINKED LIST IMPLEMENTATION """ class Node: def __init__(self, prev=None, next=None, data=None): self.prev = prev self.next = next self.data = data def __str__(self): return str(self.data) class Doublylinkedlist: def __init__(self): self.head = None self.count = int(0) def display(self): temp = self.head (print('\nDLL Content: '),) while temp: (print(str(temp.data)),) temp = temp.next print(' #') def show_count(self): print(self.count) def get_count(self): return self.count def push(self, new_data): new_node = node(data=new_data) new_node.prev = None new_node.next = self.head if self.head is not None: self.head.prev = new_node self.head = new_node self.count = self.count + 1 def insert_before(self, cursor, new_data): if cursor is None: print("Error: Node doesn't exist") return new_node = node(data=new_data) new_node.prev = cursor.prev new_node.next = cursor if cursor.prev is not None: cursor.prev.next = new_node cursor.prev = new_node self.count = self.count + 1 def insert_after(self, cursor, new_data): if cursor is None: print("Error: Node doesn't exist") return new_node = node(data=new_data) new_node.prev = cursor new_node.next = cursor.next cursor.next = new_node if new_node.next is not None: new_node.next.prev = new_node self.count = self.count + 1 def append(self, new_data): new_node = node(data=new_data) new_node.next = None if self.head is None: new_node.prev = None self.head = new_node self.count = self.count + 1 return last = self.head while last.next is not None: last = last.next new_node.prev = last last.next = new_node self.count = self.count + 1 def menu(): print('Doubly Linked List\n') print('1. Show List') print('2. Insert at Start') print('3. Insert Before') print('4. Insert After') print('5. Insert at End') print('9. # of Element') print('0. Exit') (print('>> '),) def main(): dll = doubly_linked_list() while True: menu() choice = int(raw_input()) if choice == int('1'): dll.display() elif choice == int('2'): (print('Enter data to insert: '),) data = raw_input() dll.push(data) elif choice == int('3'): (print('Enter data to insert: '),) data = raw_input() (print('Enter position of cursor (before): '),) pos = int(raw_input()) if pos == int('1'): dll.push(data) continue cursor = dll.head for i in range(1, pos): cursor = cursor.next print(cursor) dll.insertBefore(cursor, data) elif choice == int('4'): (print('Enter data to insert: '),) data = raw_input() (print('Enter position of cursor (after): '),) pos = int(raw_input()) cursor = dll.head for i in range(pos - 1): cursor = cursor.next print(cursor) dll.insertAfter(cursor, data) elif choice == int('5'): (print('Enter data to insert: '),) data = raw_input() dll.append(data) elif choice == int('9'): (print('No of element: '),) dll.show_count() elif choice == int('0'): break else: print('Invalid Selection') print('\n\nEND\n\n') if __name__ == '__main__': main()
'''input 2 9 3 6 12 5 20 11 12 9 17 12 74 ''' # -*- coding: utf-8 -*- # AtCoder Beginner Contest # Problem B if __name__ == '__main__': ball_count = int(input()) robotB_position = int(input()) positions = list(map(int, input().split())) total_length = 0 for i in range(ball_count): if positions[i] < abs(robotB_position - positions[i]): total_length += 2 * positions[i] else: total_length += 2 * abs(robotB_position - positions[i]) print(total_length)
"""input 2 9 3 6 12 5 20 11 12 9 17 12 74 """ if __name__ == '__main__': ball_count = int(input()) robot_b_position = int(input()) positions = list(map(int, input().split())) total_length = 0 for i in range(ball_count): if positions[i] < abs(robotB_position - positions[i]): total_length += 2 * positions[i] else: total_length += 2 * abs(robotB_position - positions[i]) print(total_length)
S = input() K = int(input()) for i, s in enumerate(S): if s == "1": if i + 1 == K: print(1) exit() else: print(s) exit()
s = input() k = int(input()) for (i, s) in enumerate(S): if s == '1': if i + 1 == K: print(1) exit() else: print(s) exit()
# PASSED _ = input() lst = sorted(list(map(int, input().split()))) output = [] if len(lst) % 2: output.append(lst.pop(0)) while lst: output.append(lst[-1]) output.append(lst[0]) lst = lst[1:-1] print(*reversed(output))
_ = input() lst = sorted(list(map(int, input().split()))) output = [] if len(lst) % 2: output.append(lst.pop(0)) while lst: output.append(lst[-1]) output.append(lst[0]) lst = lst[1:-1] print(*reversed(output))
''' Read numbers and put in a list one list will have the EVEN numbers the other will have the ODD ones SHow the result ''' odd_list = [] even_list = [] num = int(input('Type a number: ')) if num%2 == 0: even_list.append(num) elif num%2 != 0: odd_list.append(num) while True: opt = str(input('Do you want to keep adding numbers? [Y/N]: ')).lower() if 'y' in opt: num = int(input('Type a number: ')) if num%2 == 0: even_list.append(num) elif num%2 != 0: odd_list.append(num) elif 'n' in opt: print(f'The list is: {sorted(even_list + odd_list)}') print(f'The EVEN list: {sorted(even_list)}') print(f'The ODD list: {sorted(odd_list)}') break else: print('Sorry, the options are Y - yes or N - no.')
""" Read numbers and put in a list one list will have the EVEN numbers the other will have the ODD ones SHow the result """ odd_list = [] even_list = [] num = int(input('Type a number: ')) if num % 2 == 0: even_list.append(num) elif num % 2 != 0: odd_list.append(num) while True: opt = str(input('Do you want to keep adding numbers? [Y/N]: ')).lower() if 'y' in opt: num = int(input('Type a number: ')) if num % 2 == 0: even_list.append(num) elif num % 2 != 0: odd_list.append(num) elif 'n' in opt: print(f'The list is: {sorted(even_list + odd_list)}') print(f'The EVEN list: {sorted(even_list)}') print(f'The ODD list: {sorted(odd_list)}') break else: print('Sorry, the options are Y - yes or N - no.')
__version__ = "1.0.8" def get_version(): return __version__
__version__ = '1.0.8' def get_version(): return __version__
#14 def sumDigits(num): sum = 0 for digit in str(num): sum += int(digit) return sum num = int(input('Enter a 4-digit number:')) print('Sum of the digits:', sumDigits(num))
def sum_digits(num): sum = 0 for digit in str(num): sum += int(digit) return sum num = int(input('Enter a 4-digit number:')) print('Sum of the digits:', sum_digits(num))
class BinaryChunkHeader: LUA_SIGNATURE = bytes(b'\x1bLua') LUAC_VERSION = 0x53 LUAC_FORMAT = 0x0 LUAC_DATA = bytes(b'\x19\x93\r\n\x1a\n') CINT_SIZE = 4 CSIZET_SIZE = 8 INST_SIZE = 4 LUA_INT_SIZE = 8 LUA_NUMBER_SIZE = 8 LUAC_INT = 0x5678 LUAC_NUM = 370.5 def __init__(self, br): self.signature = br.read_bytes(4) self.version = br.read_uint8() self.format = br.read_uint8() self.luac_data = br.read_bytes(6) self.cint_size = br.read_uint8() self.csizet_size = br.read_uint8() self.inst_size = br.read_uint8() self.lua_int_size = br.read_uint8() self.lua_number_size = br.read_uint8() self.luac_int = br.read_uint64() self.luac_num = br.read_double() def check(self): assert(self.signature == BinaryChunkHeader.LUA_SIGNATURE) assert(self.version == BinaryChunkHeader.LUAC_VERSION) assert(self.format == BinaryChunkHeader.LUAC_FORMAT) assert(self.luac_data == BinaryChunkHeader.LUAC_DATA) assert(self.cint_size == BinaryChunkHeader.CINT_SIZE) assert(self.csizet_size == BinaryChunkHeader.CSIZET_SIZE) assert(self.inst_size == BinaryChunkHeader.INST_SIZE) assert(self.lua_int_size == BinaryChunkHeader.LUA_INT_SIZE) assert(self.lua_number_size == BinaryChunkHeader.LUA_NUMBER_SIZE) assert(self.luac_int == BinaryChunkHeader.LUAC_INT) assert(self.luac_num == BinaryChunkHeader.LUAC_NUM) def dump(self): print('signature: ', self.signature) print('version: ', self.version) print('format: ', self.format) print('luac_data: ', self.luac_data) print('cint_size: ', self.cint_size) print('csizet_size: ', self.csizet_size) print('inst_size: ', self.inst_size) print('lua_int_size: ', self.lua_int_size) print('lua_number_size: ', self.lua_number_size) print('luac_int: ', hex(self.luac_int)) print('luac_num: ', self.luac_num) print()
class Binarychunkheader: lua_signature = bytes(b'\x1bLua') luac_version = 83 luac_format = 0 luac_data = bytes(b'\x19\x93\r\n\x1a\n') cint_size = 4 csizet_size = 8 inst_size = 4 lua_int_size = 8 lua_number_size = 8 luac_int = 22136 luac_num = 370.5 def __init__(self, br): self.signature = br.read_bytes(4) self.version = br.read_uint8() self.format = br.read_uint8() self.luac_data = br.read_bytes(6) self.cint_size = br.read_uint8() self.csizet_size = br.read_uint8() self.inst_size = br.read_uint8() self.lua_int_size = br.read_uint8() self.lua_number_size = br.read_uint8() self.luac_int = br.read_uint64() self.luac_num = br.read_double() def check(self): assert self.signature == BinaryChunkHeader.LUA_SIGNATURE assert self.version == BinaryChunkHeader.LUAC_VERSION assert self.format == BinaryChunkHeader.LUAC_FORMAT assert self.luac_data == BinaryChunkHeader.LUAC_DATA assert self.cint_size == BinaryChunkHeader.CINT_SIZE assert self.csizet_size == BinaryChunkHeader.CSIZET_SIZE assert self.inst_size == BinaryChunkHeader.INST_SIZE assert self.lua_int_size == BinaryChunkHeader.LUA_INT_SIZE assert self.lua_number_size == BinaryChunkHeader.LUA_NUMBER_SIZE assert self.luac_int == BinaryChunkHeader.LUAC_INT assert self.luac_num == BinaryChunkHeader.LUAC_NUM def dump(self): print('signature: ', self.signature) print('version: ', self.version) print('format: ', self.format) print('luac_data: ', self.luac_data) print('cint_size: ', self.cint_size) print('csizet_size: ', self.csizet_size) print('inst_size: ', self.inst_size) print('lua_int_size: ', self.lua_int_size) print('lua_number_size: ', self.lua_number_size) print('luac_int: ', hex(self.luac_int)) print('luac_num: ', self.luac_num) print()
# FUNCTIONS # Positional-Only Arguments def pos_only(arg1, arg2, /): print(f'{arg1}, {arg2}') pos_only('One', 2) # Cannot pass keyword arguments to a function of positional-only arguments # pos_only(arg1='One', arg2=2) # Keyword-Only Arguments def kw_only(*, arg1, arg2): print(f'{arg1}, {arg2}') kw_only(arg1='First', arg2='Second') kw_only(arg2=2, arg1=1) # Cannot pass arguments without their name being specified specifically # kw_only(1, arg1=2) # No Restriction On Positional-Only Or Keyword-Only Arguments def no_res(arg1, arg2): print(f'{arg1}, {arg2}') # Positional arguments will always need to be placed in front of keyword arguments no_res('Firstly', arg2='Secondly') # Combine Both Positional-Only, Positional-Or-Keyword and Keyword-Only Arguments def fn(pos1, pos2, /, pos_or_kw1, pos_or_kw2, *, kw1, kw2): print(f'{pos1}, {pos2}, {pos_or_kw1}, {pos_or_kw2}, {kw1}, {kw2}') fn(1, 'Two', 3, pos_or_kw2='Four', kw1=5, kw2='Six') # Arbitrary Argument Lists def hyper_link(protocol, domain, *routes, separator='/'): return f'{protocol}://{domain}/' + separator.join(routes) print(hyper_link('https', 'python.org', 'downloads', 'release', 'python-385', separator='/')) # Unpacking List/Tuple Argument Lists with * and Dictionary Arguments with ** def server(host, port, separator=':'): return f'{host}{separator}{port}' print(server(*['localhost', 8080])) # call with arguments unpacked from a list def url(routes, params): r = '/'.join(routes) p = '&'.join([f'{name}={value}' for name, value in params.items()]) return f'{r}?{p}' route_config = { 'routes': ['download', 'latest'], 'params': { 'ver': 3, 'os': 'windows' } } print(url(**route_config)) # call with arguments unpacked from a dictionary # Lambda Expressions week_days = ['Mon', 'Tue', 'Wed', 'Thr', 'Fri', 'Sat', 'Sun'] day_codes = [3, 5, 2, 6, 1, 7] def convert_days(converter_fn, day_codes): return [converter_fn(day_code) for day_code in day_codes] converted_days = convert_days( lambda day_code: week_days[day_code % 7], day_codes) print(converted_days)
def pos_only(arg1, arg2, /): print(f'{arg1}, {arg2}') pos_only('One', 2) def kw_only(*, arg1, arg2): print(f'{arg1}, {arg2}') kw_only(arg1='First', arg2='Second') kw_only(arg2=2, arg1=1) def no_res(arg1, arg2): print(f'{arg1}, {arg2}') no_res('Firstly', arg2='Secondly') def fn(pos1, pos2, /, pos_or_kw1, pos_or_kw2, *, kw1, kw2): print(f'{pos1}, {pos2}, {pos_or_kw1}, {pos_or_kw2}, {kw1}, {kw2}') fn(1, 'Two', 3, pos_or_kw2='Four', kw1=5, kw2='Six') def hyper_link(protocol, domain, *routes, separator='/'): return f'{protocol}://{domain}/' + separator.join(routes) print(hyper_link('https', 'python.org', 'downloads', 'release', 'python-385', separator='/')) def server(host, port, separator=':'): return f'{host}{separator}{port}' print(server(*['localhost', 8080])) def url(routes, params): r = '/'.join(routes) p = '&'.join([f'{name}={value}' for (name, value) in params.items()]) return f'{r}?{p}' route_config = {'routes': ['download', 'latest'], 'params': {'ver': 3, 'os': 'windows'}} print(url(**route_config)) week_days = ['Mon', 'Tue', 'Wed', 'Thr', 'Fri', 'Sat', 'Sun'] day_codes = [3, 5, 2, 6, 1, 7] def convert_days(converter_fn, day_codes): return [converter_fn(day_code) for day_code in day_codes] converted_days = convert_days(lambda day_code: week_days[day_code % 7], day_codes) print(converted_days)
class Solution(object): def reorderLogFiles(self, logs): letter_log = {} letter_logs = [] res = [] for idx, log in enumerate(logs): if log.split(' ')[-1].isdigit(): res.append(log) else: letters = tuple(log.split(' ')[1:]) letter_log[letters] = idx letter_logs.append(letters) letter_logs.sort(reverse=True) for letters in letter_logs: res.insert(0, logs[letter_log[letters]]) return res if __name__ == '__main__': print(Solution().reorderLogFiles(["a1 9 2 3 1", "g1 act car", "zo4 4 7", "ab1 off key dog", "a8 act zoo"]))
class Solution(object): def reorder_log_files(self, logs): letter_log = {} letter_logs = [] res = [] for (idx, log) in enumerate(logs): if log.split(' ')[-1].isdigit(): res.append(log) else: letters = tuple(log.split(' ')[1:]) letter_log[letters] = idx letter_logs.append(letters) letter_logs.sort(reverse=True) for letters in letter_logs: res.insert(0, logs[letter_log[letters]]) return res if __name__ == '__main__': print(solution().reorderLogFiles(['a1 9 2 3 1', 'g1 act car', 'zo4 4 7', 'ab1 off key dog', 'a8 act zoo']))
class FiniteStateMachine: def __init__(self, states, starting): self.states = states self.current = starting self.entry_words = {} # Dictionary of states, {state.name : word}, words where words are the words used to enter the state self.stay_words = {} # Dictionary of states, {states.name: [words]}, words is list with words which lead to staying in state def process(self, sentence): for word in sentence.split(): word = word.lower() next_state = self.current.get_next_state(word) if next_state is not None: # Change state self.entry_words[next_state.name] = word self.current = next_state else: # Stay in same state if self.current.name in self.stay_words: # State already in dict => more than 1 word for staying in this state self.stay_words[self.current.name].append(word) else: # state not in dict word_list = [word] self.stay_words[self.current.name] = word_list return self.current # return final state
class Finitestatemachine: def __init__(self, states, starting): self.states = states self.current = starting self.entry_words = {} self.stay_words = {} def process(self, sentence): for word in sentence.split(): word = word.lower() next_state = self.current.get_next_state(word) if next_state is not None: self.entry_words[next_state.name] = word self.current = next_state elif self.current.name in self.stay_words: self.stay_words[self.current.name].append(word) else: word_list = [word] self.stay_words[self.current.name] = word_list return self.current
class _ReadOnlyWidgetProxy(object): def __init__(self, widget): self.widget = widget def __getattr__(self, name): return getattr(self.widget, name) def __call__(self, field, **kwargs): kwargs.setdefault('readonly', True) return self.widget(field, **kwargs) def readonly_field(field): def _do_nothing(*args, **kwargs): pass field.widget = _ReadOnlyWidgetProxy(field.widget) field.process = _do_nothing field.populate_obj = _do_nothing return field
class _Readonlywidgetproxy(object): def __init__(self, widget): self.widget = widget def __getattr__(self, name): return getattr(self.widget, name) def __call__(self, field, **kwargs): kwargs.setdefault('readonly', True) return self.widget(field, **kwargs) def readonly_field(field): def _do_nothing(*args, **kwargs): pass field.widget = __read_only_widget_proxy(field.widget) field.process = _do_nothing field.populate_obj = _do_nothing return field
def reverse(s): return " ".join((s.split())[::-1]) s = input("Enter a sentence: ") print(reverse(s))
def reverse(s): return ' '.join(s.split()[::-1]) s = input('Enter a sentence: ') print(reverse(s))
fenceMap = hero.findNearest(hero.findFriends()).getMap() def convertCoor(row, col): return {"x": 34 + col * 4, "y": 26 + row * 4} for i in range(len(fenceMap)): for j in range(len(fenceMap[i])): if fenceMap[i][j] == 1: pos = convertCoor(i, j) hero.buildXY("fence", pos["x"], pos["y"]) hero.moveXY(30, 18)
fence_map = hero.findNearest(hero.findFriends()).getMap() def convert_coor(row, col): return {'x': 34 + col * 4, 'y': 26 + row * 4} for i in range(len(fenceMap)): for j in range(len(fenceMap[i])): if fenceMap[i][j] == 1: pos = convert_coor(i, j) hero.buildXY('fence', pos['x'], pos['y']) hero.moveXY(30, 18)
class Student: pass Jiggu = Student() Himanshu = Student() Jiggu.name = "Jiggu" Jiggu.std = 12 Jiggu.section = 1 Himanshu.std = 11 Himanshu.subjects = ["Hindi","English"] print(Jiggu.section, Himanshu.subjects)
class Student: pass jiggu = student() himanshu = student() Jiggu.name = 'Jiggu' Jiggu.std = 12 Jiggu.section = 1 Himanshu.std = 11 Himanshu.subjects = ['Hindi', 'English'] print(Jiggu.section, Himanshu.subjects)
# # PySNMP MIB module NETSCREEN-VPN-PHASEONE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NETSCREEN-VPN-PHASEONE-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:10:52 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, ConstraintsUnion, ValueSizeConstraint, ValueRangeConstraint, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion", "ValueSizeConstraint", "ValueRangeConstraint", "SingleValueConstraint") netscreenVpn, netscreenVpnMibModule = mibBuilder.importSymbols("NETSCREEN-SMI", "netscreenVpn", "netscreenVpnMibModule") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Counter64, ObjectIdentity, MibIdentifier, Gauge32, Bits, iso, Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, Unsigned32, ModuleIdentity, TimeTicks, Counter32, IpAddress, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "Counter64", "ObjectIdentity", "MibIdentifier", "Gauge32", "Bits", "iso", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Unsigned32", "ModuleIdentity", "TimeTicks", "Counter32", "IpAddress", "NotificationType") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") netscreenVpnPhaseoneMibModule = ModuleIdentity((1, 3, 6, 1, 4, 1, 3224, 4, 0, 5)) netscreenVpnPhaseoneMibModule.setRevisions(('2004-05-03 00:00', '2004-03-03 00:00', '2003-11-13 00:00', '2001-09-28 00:00', '2001-05-14 00:00',)) if mibBuilder.loadTexts: netscreenVpnPhaseoneMibModule.setLastUpdated('200405032022Z') if mibBuilder.loadTexts: netscreenVpnPhaseoneMibModule.setOrganization('Juniper Networks, Inc.') nsVpnPhaseOneCfg = MibIdentifier((1, 3, 6, 1, 4, 1, 3224, 4, 5)) nsVpnPhOneTable = MibTable((1, 3, 6, 1, 4, 1, 3224, 4, 5, 1), ) if mibBuilder.loadTexts: nsVpnPhOneTable.setStatus('current') nsVpnPhOneEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3224, 4, 5, 1, 1), ).setIndexNames((0, "NETSCREEN-VPN-PHASEONE-MIB", "nsVpnPhOneIndex")) if mibBuilder.loadTexts: nsVpnPhOneEntry.setStatus('current') nsVpnPhOneIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 4, 5, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: nsVpnPhOneIndex.setStatus('current') nsVpnPhOneName = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 4, 5, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: nsVpnPhOneName.setStatus('current') nsVpnPhOneAuthMethod = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 4, 5, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4))).clone(namedValues=NamedValues(("preshare", 0), ("rsa-sig", 1), ("dsa-sig", 2), ("rsa-enc", 3), ("rsa-rev", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: nsVpnPhOneAuthMethod.setStatus('current') nsVpnPhOneDhGroup = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 4, 5, 1, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nsVpnPhOneDhGroup.setStatus('current') nsVpnPhOneEncryp = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 4, 5, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("null", 0), ("des", 1), ("des3", 2), ("aes", 3), ("aes-192", 4), ("aes-256", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: nsVpnPhOneEncryp.setStatus('current') nsVpnPhOneHash = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 4, 5, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("null", 0), ("md5", 1), ("sha", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: nsVpnPhOneHash.setStatus('current') nsVpnPhOneLifetime = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 4, 5, 1, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nsVpnPhOneLifetime.setStatus('current') nsVpnPhOneLifetimeMeasure = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 4, 5, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("second", 0), ("minute", 1), ("hours", 2), ("days", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: nsVpnPhOneLifetimeMeasure.setStatus('current') nsVpnPhOneVsys = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 4, 5, 1, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nsVpnPhOneVsys.setStatus('current') mibBuilder.exportSymbols("NETSCREEN-VPN-PHASEONE-MIB", nsVpnPhaseOneCfg=nsVpnPhaseOneCfg, nsVpnPhOneVsys=nsVpnPhOneVsys, nsVpnPhOneIndex=nsVpnPhOneIndex, nsVpnPhOneEntry=nsVpnPhOneEntry, PYSNMP_MODULE_ID=netscreenVpnPhaseoneMibModule, netscreenVpnPhaseoneMibModule=netscreenVpnPhaseoneMibModule, nsVpnPhOneLifetime=nsVpnPhOneLifetime, nsVpnPhOneName=nsVpnPhOneName, nsVpnPhOneAuthMethod=nsVpnPhOneAuthMethod, nsVpnPhOneLifetimeMeasure=nsVpnPhOneLifetimeMeasure, nsVpnPhOneHash=nsVpnPhOneHash, nsVpnPhOneDhGroup=nsVpnPhOneDhGroup, nsVpnPhOneTable=nsVpnPhOneTable, nsVpnPhOneEncryp=nsVpnPhOneEncryp)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_intersection, constraints_union, value_size_constraint, value_range_constraint, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ConstraintsUnion', 'ValueSizeConstraint', 'ValueRangeConstraint', 'SingleValueConstraint') (netscreen_vpn, netscreen_vpn_mib_module) = mibBuilder.importSymbols('NETSCREEN-SMI', 'netscreenVpn', 'netscreenVpnMibModule') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (counter64, object_identity, mib_identifier, gauge32, bits, iso, integer32, mib_scalar, mib_table, mib_table_row, mib_table_column, unsigned32, module_identity, time_ticks, counter32, ip_address, notification_type) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter64', 'ObjectIdentity', 'MibIdentifier', 'Gauge32', 'Bits', 'iso', 'Integer32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Unsigned32', 'ModuleIdentity', 'TimeTicks', 'Counter32', 'IpAddress', 'NotificationType') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') netscreen_vpn_phaseone_mib_module = module_identity((1, 3, 6, 1, 4, 1, 3224, 4, 0, 5)) netscreenVpnPhaseoneMibModule.setRevisions(('2004-05-03 00:00', '2004-03-03 00:00', '2003-11-13 00:00', '2001-09-28 00:00', '2001-05-14 00:00')) if mibBuilder.loadTexts: netscreenVpnPhaseoneMibModule.setLastUpdated('200405032022Z') if mibBuilder.loadTexts: netscreenVpnPhaseoneMibModule.setOrganization('Juniper Networks, Inc.') ns_vpn_phase_one_cfg = mib_identifier((1, 3, 6, 1, 4, 1, 3224, 4, 5)) ns_vpn_ph_one_table = mib_table((1, 3, 6, 1, 4, 1, 3224, 4, 5, 1)) if mibBuilder.loadTexts: nsVpnPhOneTable.setStatus('current') ns_vpn_ph_one_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3224, 4, 5, 1, 1)).setIndexNames((0, 'NETSCREEN-VPN-PHASEONE-MIB', 'nsVpnPhOneIndex')) if mibBuilder.loadTexts: nsVpnPhOneEntry.setStatus('current') ns_vpn_ph_one_index = mib_table_column((1, 3, 6, 1, 4, 1, 3224, 4, 5, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: nsVpnPhOneIndex.setStatus('current') ns_vpn_ph_one_name = mib_table_column((1, 3, 6, 1, 4, 1, 3224, 4, 5, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readonly') if mibBuilder.loadTexts: nsVpnPhOneName.setStatus('current') ns_vpn_ph_one_auth_method = mib_table_column((1, 3, 6, 1, 4, 1, 3224, 4, 5, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4))).clone(namedValues=named_values(('preshare', 0), ('rsa-sig', 1), ('dsa-sig', 2), ('rsa-enc', 3), ('rsa-rev', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: nsVpnPhOneAuthMethod.setStatus('current') ns_vpn_ph_one_dh_group = mib_table_column((1, 3, 6, 1, 4, 1, 3224, 4, 5, 1, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nsVpnPhOneDhGroup.setStatus('current') ns_vpn_ph_one_encryp = mib_table_column((1, 3, 6, 1, 4, 1, 3224, 4, 5, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5))).clone(namedValues=named_values(('null', 0), ('des', 1), ('des3', 2), ('aes', 3), ('aes-192', 4), ('aes-256', 5)))).setMaxAccess('readonly') if mibBuilder.loadTexts: nsVpnPhOneEncryp.setStatus('current') ns_vpn_ph_one_hash = mib_table_column((1, 3, 6, 1, 4, 1, 3224, 4, 5, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('null', 0), ('md5', 1), ('sha', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: nsVpnPhOneHash.setStatus('current') ns_vpn_ph_one_lifetime = mib_table_column((1, 3, 6, 1, 4, 1, 3224, 4, 5, 1, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nsVpnPhOneLifetime.setStatus('current') ns_vpn_ph_one_lifetime_measure = mib_table_column((1, 3, 6, 1, 4, 1, 3224, 4, 5, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3))).clone(namedValues=named_values(('second', 0), ('minute', 1), ('hours', 2), ('days', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: nsVpnPhOneLifetimeMeasure.setStatus('current') ns_vpn_ph_one_vsys = mib_table_column((1, 3, 6, 1, 4, 1, 3224, 4, 5, 1, 1, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nsVpnPhOneVsys.setStatus('current') mibBuilder.exportSymbols('NETSCREEN-VPN-PHASEONE-MIB', nsVpnPhaseOneCfg=nsVpnPhaseOneCfg, nsVpnPhOneVsys=nsVpnPhOneVsys, nsVpnPhOneIndex=nsVpnPhOneIndex, nsVpnPhOneEntry=nsVpnPhOneEntry, PYSNMP_MODULE_ID=netscreenVpnPhaseoneMibModule, netscreenVpnPhaseoneMibModule=netscreenVpnPhaseoneMibModule, nsVpnPhOneLifetime=nsVpnPhOneLifetime, nsVpnPhOneName=nsVpnPhOneName, nsVpnPhOneAuthMethod=nsVpnPhOneAuthMethod, nsVpnPhOneLifetimeMeasure=nsVpnPhOneLifetimeMeasure, nsVpnPhOneHash=nsVpnPhOneHash, nsVpnPhOneDhGroup=nsVpnPhOneDhGroup, nsVpnPhOneTable=nsVpnPhOneTable, nsVpnPhOneEncryp=nsVpnPhOneEncryp)
#!/usr/bin/env python # coding: utf-8 # In[ ]: class Solution: def xorOperation(self, n: int, start: int) -> int: #Defining the nums array nums=[int(start+2*i) for i in range (n)] #Initializing the xor xor=nums[0] for i in range(1,len(nums)): xor^=nums[i] #Taking bitwise xor of each element return xor
class Solution: def xor_operation(self, n: int, start: int) -> int: nums = [int(start + 2 * i) for i in range(n)] xor = nums[0] for i in range(1, len(nums)): xor ^= nums[i] return xor
''' Body mass index is a measure to assess body fat. It is widely use because it is easy to calculate and can apply to everyone. The Body Mass Index (BMI) can calculate using the following equation. Body Mass Index (BMI) = weight / height2 (Height in meters) If BMI is 40 or greater, the program should print Fattest. If BMI is 35.0 or above but less than 40 , the program should print Fat level II. If BMI is 28.5 or above, but less than 35, the program should print Fat level I. If BMI is 23.5 or above but less than 28.5, the program should print Overweight. If BMI is 18.5 or above but less than 23.5, the program should print Normally. If BMI is less than 18.5, the program should print Underweight. Input The first line is height (cm) The second line is weight (kg) Output The first line shows BMI (2 decimal places). The second line shows the interpretation of BMI level. ''' h = float(input()) / 100 w = float(input()) bmi = w / (h * h) print(f'{bmi:.2f}') if bmi >= 40: print('Fattest') elif 40 > bmi >= 35: print('Fat level II') elif 35 > bmi >= 28.5: print('Fat level I') elif 28.5 > bmi >= 23.5: print('Overweight') elif 23.5 > bmi >= 18.5: print('Normally') else: print('Underweight')
""" Body mass index is a measure to assess body fat. It is widely use because it is easy to calculate and can apply to everyone. The Body Mass Index (BMI) can calculate using the following equation. Body Mass Index (BMI) = weight / height2 (Height in meters) If BMI is 40 or greater, the program should print Fattest. If BMI is 35.0 or above but less than 40 , the program should print Fat level II. If BMI is 28.5 or above, but less than 35, the program should print Fat level I. If BMI is 23.5 or above but less than 28.5, the program should print Overweight. If BMI is 18.5 or above but less than 23.5, the program should print Normally. If BMI is less than 18.5, the program should print Underweight. Input The first line is height (cm) The second line is weight (kg) Output The first line shows BMI (2 decimal places). The second line shows the interpretation of BMI level. """ h = float(input()) / 100 w = float(input()) bmi = w / (h * h) print(f'{bmi:.2f}') if bmi >= 40: print('Fattest') elif 40 > bmi >= 35: print('Fat level II') elif 35 > bmi >= 28.5: print('Fat level I') elif 28.5 > bmi >= 23.5: print('Overweight') elif 23.5 > bmi >= 18.5: print('Normally') else: print('Underweight')
#[playbook(say_hi)] def say_hi(ctx): with open('/scratch/output.txt', 'w') as f: print("{message}".format(**ctx), file=f)
def say_hi(ctx): with open('/scratch/output.txt', 'w') as f: print('{message}'.format(**ctx), file=f)
{ "targets": [ { "target_name": "sypexgeo", "sources": [ "src/xyz/vyvid/sypexgeo/bindings/nodejs/sypexgeo_node.cc", "src/xyz/vyvid/sypexgeo/bindings/nodejs/sypexgeo_node.h", "src/xyz/vyvid/sypexgeo/util/string_builder.h", "src/xyz/vyvid/sypexgeo/uint24_t.h", "src/xyz/vyvid/sypexgeo/db.cc", "src/xyz/vyvid/sypexgeo/db.h", "src/xyz/vyvid/sypexgeo/errors.h", "src/xyz/vyvid/sypexgeo/header.h", "src/xyz/vyvid/sypexgeo/location.cc", "src/xyz/vyvid/sypexgeo/location.h", "src/xyz/vyvid/sypexgeo/raw_city_access.h", "src/xyz/vyvid/sypexgeo/raw_country_access.h", "src/xyz/vyvid/sypexgeo/raw_region_access.h" ], "include_dirs": [ "<!(node -e \"require('nan')\")", "./src" ], "cflags": [ "-std=gnu++11", "-fno-rtti", "-Wall", "-fexceptions" ], "cflags_cc": [ "-std=gnu++11", "-fno-rtti", "-Wall", "-fexceptions" ], "conditions": [ [ "OS=='mac'", { "xcode_settings": { "GCC_ENABLE_CPP_EXCEPTIONS": "YES", "GCC_ENABLE_CPP_RTTI": "NO", "CLANG_CXX_LANGUAGE_STANDARD": "gnu++11", "CLANG_CXX_LIBRARY": "libc++", "MACOSX_DEPLOYMENT_TARGET": "10.7" } } ] ] } ] }
{'targets': [{'target_name': 'sypexgeo', 'sources': ['src/xyz/vyvid/sypexgeo/bindings/nodejs/sypexgeo_node.cc', 'src/xyz/vyvid/sypexgeo/bindings/nodejs/sypexgeo_node.h', 'src/xyz/vyvid/sypexgeo/util/string_builder.h', 'src/xyz/vyvid/sypexgeo/uint24_t.h', 'src/xyz/vyvid/sypexgeo/db.cc', 'src/xyz/vyvid/sypexgeo/db.h', 'src/xyz/vyvid/sypexgeo/errors.h', 'src/xyz/vyvid/sypexgeo/header.h', 'src/xyz/vyvid/sypexgeo/location.cc', 'src/xyz/vyvid/sypexgeo/location.h', 'src/xyz/vyvid/sypexgeo/raw_city_access.h', 'src/xyz/vyvid/sypexgeo/raw_country_access.h', 'src/xyz/vyvid/sypexgeo/raw_region_access.h'], 'include_dirs': ['<!(node -e "require(\'nan\')")', './src'], 'cflags': ['-std=gnu++11', '-fno-rtti', '-Wall', '-fexceptions'], 'cflags_cc': ['-std=gnu++11', '-fno-rtti', '-Wall', '-fexceptions'], 'conditions': [["OS=='mac'", {'xcode_settings': {'GCC_ENABLE_CPP_EXCEPTIONS': 'YES', 'GCC_ENABLE_CPP_RTTI': 'NO', 'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++11', 'CLANG_CXX_LIBRARY': 'libc++', 'MACOSX_DEPLOYMENT_TARGET': '10.7'}}]]}]}
# # PySNMP MIB module Unisphere-Data-AUTOCONFIGURE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Unisphere-Data-AUTOCONFIGURE-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 21:23:11 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, ValueSizeConstraint, SingleValueConstraint, ConstraintsUnion, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsUnion", "ValueRangeConstraint") InterfaceIndex, = mibBuilder.importSymbols("IF-MIB", "InterfaceIndex") ObjectGroup, ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "ModuleCompliance", "NotificationGroup") Unsigned32, Integer32, IpAddress, MibScalar, MibTable, MibTableRow, MibTableColumn, iso, Counter64, Counter32, NotificationType, TimeTicks, Gauge32, ModuleIdentity, ObjectIdentity, Bits, MibIdentifier = mibBuilder.importSymbols("SNMPv2-SMI", "Unsigned32", "Integer32", "IpAddress", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "iso", "Counter64", "Counter32", "NotificationType", "TimeTicks", "Gauge32", "ModuleIdentity", "ObjectIdentity", "Bits", "MibIdentifier") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") usDataMibs, = mibBuilder.importSymbols("Unisphere-Data-MIBs", "usDataMibs") UsdEnable, = mibBuilder.importSymbols("Unisphere-Data-TC", "UsdEnable") usdAutoConfMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 4874, 2, 2, 48)) usdAutoConfMIB.setRevisions(('2002-11-18 00:00', '2000-11-16 00:00',)) if mibBuilder.loadTexts: usdAutoConfMIB.setLastUpdated('200211190000Z') if mibBuilder.loadTexts: usdAutoConfMIB.setOrganization('Unisphere Networks Inc.') class UsdAutoConfEncaps(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 17, 19)) namedValues = NamedValues(("ip", 0), ("ppp", 1), ("pppoe", 17), ("bridgedEthernet", 19)) usdAutoConfObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 48, 1)) usdAutoConf = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 48, 1, 1)) usdAutoConfTable = MibTable((1, 3, 6, 1, 4, 1, 4874, 2, 2, 48, 1, 1, 1), ) if mibBuilder.loadTexts: usdAutoConfTable.setStatus('current') usdAutoConfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4874, 2, 2, 48, 1, 1, 1, 1), ).setIndexNames((0, "Unisphere-Data-AUTOCONFIGURE-MIB", "usdAutoConfIfIndex"), (0, "Unisphere-Data-AUTOCONFIGURE-MIB", "usdAutoConfEncaps")) if mibBuilder.loadTexts: usdAutoConfEntry.setStatus('current') usdAutoConfIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 48, 1, 1, 1, 1, 1), InterfaceIndex()) if mibBuilder.loadTexts: usdAutoConfIfIndex.setStatus('current') usdAutoConfEncaps = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 48, 1, 1, 1, 1, 2), UsdAutoConfEncaps()) if mibBuilder.loadTexts: usdAutoConfEncaps.setStatus('current') usdAutoConfEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 48, 1, 1, 1, 1, 3), UsdEnable()).setMaxAccess("readwrite") if mibBuilder.loadTexts: usdAutoConfEnable.setStatus('current') usdAutoConfMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 48, 4)) usdAutoConfMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 48, 4, 1)) usdAutoConfMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 48, 4, 2)) usdAutoConfCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 4874, 2, 2, 48, 4, 1, 1)).setObjects(("Unisphere-Data-AUTOCONFIGURE-MIB", "usdAutoConfGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): usdAutoConfCompliance = usdAutoConfCompliance.setStatus('current') usdAutoConfGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 48, 4, 2, 1)).setObjects(("Unisphere-Data-AUTOCONFIGURE-MIB", "usdAutoConfEnable")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): usdAutoConfGroup = usdAutoConfGroup.setStatus('current') mibBuilder.exportSymbols("Unisphere-Data-AUTOCONFIGURE-MIB", usdAutoConfIfIndex=usdAutoConfIfIndex, usdAutoConfGroup=usdAutoConfGroup, usdAutoConfMIBConformance=usdAutoConfMIBConformance, usdAutoConfMIB=usdAutoConfMIB, usdAutoConfCompliance=usdAutoConfCompliance, UsdAutoConfEncaps=UsdAutoConfEncaps, usdAutoConfEncaps=usdAutoConfEncaps, usdAutoConfTable=usdAutoConfTable, usdAutoConfEntry=usdAutoConfEntry, usdAutoConfMIBCompliances=usdAutoConfMIBCompliances, usdAutoConf=usdAutoConf, usdAutoConfObjects=usdAutoConfObjects, usdAutoConfEnable=usdAutoConfEnable, usdAutoConfMIBGroups=usdAutoConfMIBGroups, PYSNMP_MODULE_ID=usdAutoConfMIB)
(integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_intersection, value_size_constraint, single_value_constraint, constraints_union, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ValueSizeConstraint', 'SingleValueConstraint', 'ConstraintsUnion', 'ValueRangeConstraint') (interface_index,) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndex') (object_group, module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ObjectGroup', 'ModuleCompliance', 'NotificationGroup') (unsigned32, integer32, ip_address, mib_scalar, mib_table, mib_table_row, mib_table_column, iso, counter64, counter32, notification_type, time_ticks, gauge32, module_identity, object_identity, bits, mib_identifier) = mibBuilder.importSymbols('SNMPv2-SMI', 'Unsigned32', 'Integer32', 'IpAddress', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'iso', 'Counter64', 'Counter32', 'NotificationType', 'TimeTicks', 'Gauge32', 'ModuleIdentity', 'ObjectIdentity', 'Bits', 'MibIdentifier') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') (us_data_mibs,) = mibBuilder.importSymbols('Unisphere-Data-MIBs', 'usDataMibs') (usd_enable,) = mibBuilder.importSymbols('Unisphere-Data-TC', 'UsdEnable') usd_auto_conf_mib = module_identity((1, 3, 6, 1, 4, 1, 4874, 2, 2, 48)) usdAutoConfMIB.setRevisions(('2002-11-18 00:00', '2000-11-16 00:00')) if mibBuilder.loadTexts: usdAutoConfMIB.setLastUpdated('200211190000Z') if mibBuilder.loadTexts: usdAutoConfMIB.setOrganization('Unisphere Networks Inc.') class Usdautoconfencaps(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 17, 19)) named_values = named_values(('ip', 0), ('ppp', 1), ('pppoe', 17), ('bridgedEthernet', 19)) usd_auto_conf_objects = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 48, 1)) usd_auto_conf = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 48, 1, 1)) usd_auto_conf_table = mib_table((1, 3, 6, 1, 4, 1, 4874, 2, 2, 48, 1, 1, 1)) if mibBuilder.loadTexts: usdAutoConfTable.setStatus('current') usd_auto_conf_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4874, 2, 2, 48, 1, 1, 1, 1)).setIndexNames((0, 'Unisphere-Data-AUTOCONFIGURE-MIB', 'usdAutoConfIfIndex'), (0, 'Unisphere-Data-AUTOCONFIGURE-MIB', 'usdAutoConfEncaps')) if mibBuilder.loadTexts: usdAutoConfEntry.setStatus('current') usd_auto_conf_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 48, 1, 1, 1, 1, 1), interface_index()) if mibBuilder.loadTexts: usdAutoConfIfIndex.setStatus('current') usd_auto_conf_encaps = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 48, 1, 1, 1, 1, 2), usd_auto_conf_encaps()) if mibBuilder.loadTexts: usdAutoConfEncaps.setStatus('current') usd_auto_conf_enable = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 48, 1, 1, 1, 1, 3), usd_enable()).setMaxAccess('readwrite') if mibBuilder.loadTexts: usdAutoConfEnable.setStatus('current') usd_auto_conf_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 48, 4)) usd_auto_conf_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 48, 4, 1)) usd_auto_conf_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 48, 4, 2)) usd_auto_conf_compliance = module_compliance((1, 3, 6, 1, 4, 1, 4874, 2, 2, 48, 4, 1, 1)).setObjects(('Unisphere-Data-AUTOCONFIGURE-MIB', 'usdAutoConfGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): usd_auto_conf_compliance = usdAutoConfCompliance.setStatus('current') usd_auto_conf_group = object_group((1, 3, 6, 1, 4, 1, 4874, 2, 2, 48, 4, 2, 1)).setObjects(('Unisphere-Data-AUTOCONFIGURE-MIB', 'usdAutoConfEnable')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): usd_auto_conf_group = usdAutoConfGroup.setStatus('current') mibBuilder.exportSymbols('Unisphere-Data-AUTOCONFIGURE-MIB', usdAutoConfIfIndex=usdAutoConfIfIndex, usdAutoConfGroup=usdAutoConfGroup, usdAutoConfMIBConformance=usdAutoConfMIBConformance, usdAutoConfMIB=usdAutoConfMIB, usdAutoConfCompliance=usdAutoConfCompliance, UsdAutoConfEncaps=UsdAutoConfEncaps, usdAutoConfEncaps=usdAutoConfEncaps, usdAutoConfTable=usdAutoConfTable, usdAutoConfEntry=usdAutoConfEntry, usdAutoConfMIBCompliances=usdAutoConfMIBCompliances, usdAutoConf=usdAutoConf, usdAutoConfObjects=usdAutoConfObjects, usdAutoConfEnable=usdAutoConfEnable, usdAutoConfMIBGroups=usdAutoConfMIBGroups, PYSNMP_MODULE_ID=usdAutoConfMIB)
# http://flask-sqlalchemy.pocoo.org/2.1/config/ SQLALCHEMY_DATABASE_URI = 'sqlite:////commandment/commandment.db' # FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future. SQLALCHEMY_TRACK_MODIFICATIONS = False PORT = 5443 # PLEASE! Do not take this key and use it for another product/project. It's # only for Commandment's use. If you'd like to get your own (free!) key # contact the mdmcert.download administrators and get your own key for your # own project/product. We're trying to keep statistics on which products are # requesting certs (per Apple T&C). Don't force Apple's hand and # ruin it for everyone! MDMCERT_API_KEY = 'b742461ff981756ca3f924f02db5a12e1f6639a9109db047ead1814aafc058dd' PLISTIFY_MIMETYPE = 'application/xml'
sqlalchemy_database_uri = 'sqlite:////commandment/commandment.db' sqlalchemy_track_modifications = False port = 5443 mdmcert_api_key = 'b742461ff981756ca3f924f02db5a12e1f6639a9109db047ead1814aafc058dd' plistify_mimetype = 'application/xml'
def combine_words(word, **kwargs): if 'prefix' in kwargs: return kwargs['prefix'] + word elif 'suffix' in kwargs: return word + kwargs['suffix'] return word print(combine_words('child', prefix='man')) print(combine_words('child', suffix='ish')) print(combine_words('child'))
def combine_words(word, **kwargs): if 'prefix' in kwargs: return kwargs['prefix'] + word elif 'suffix' in kwargs: return word + kwargs['suffix'] return word print(combine_words('child', prefix='man')) print(combine_words('child', suffix='ish')) print(combine_words('child'))
# -*- coding: utf-8 -*- PI = 3.14159 def main(): r = float(input()) area = PI * r * r print('A=%.4f' % area) if __name__ == '__main__': main()
pi = 3.14159 def main(): r = float(input()) area = PI * r * r print('A=%.4f' % area) if __name__ == '__main__': main()
def get_action(self, states, epsilon): if np.random.random() < epsilon: return np.random.choice(self.num_actions) else: return np.argmax(self.predict(np.atleast_2d(states))[0])
def get_action(self, states, epsilon): if np.random.random() < epsilon: return np.random.choice(self.num_actions) else: return np.argmax(self.predict(np.atleast_2d(states))[0])
class TogaLayout(extends=android.view.ViewGroup): @super({context: android.content.Context}) def __init__(self, context, interface): self.interface = interface def shouldDelayChildPressedState(self) -> bool: return False def onMeasure(self, width: int, height: int) -> void: # print("ON MEASURE %sx%s" % (width, height)) self.measureChildren(width, height) self.interface.rehint() self.setMeasuredDimension(width, height) def onLayout(self, changed: bool, left: int, top: int, right: int, bottom: int) -> void: # print("ON LAYOUT %s %sx%s -> %sx%s" % (changed, left, top, right, bottom)) device_scale = self.interface.app._impl.device_scale self.interface._update_layout( width=(right - left) / device_scale, height=(bottom - top) / device_scale, ) self.interface.style.apply() count = self.getChildCount() # print("LAYOUT: There are %d children" % count) for i in range(0, count): child = self.getChildAt(i) # print(" child: %s" % child, child.getMeasuredHeight(), child.getMeasuredWidth(), child.getWidth(), child.getHeight()) # print(" layout: ", child.interface.layout) child.layout( child.interface.layout.absolute.left * device_scale, child.interface.layout.absolute.top * device_scale, (child.interface.layout.absolute.left + child.interface.layout.width) * device_scale, (child.interface.layout.absolute.top + child.interface.layout.height) * device_scale, ) # def onSizeChanged(self, left: int, top: int, right: int, bottom: int) -> void: # print("ON SIZE CHANGE %sx%s -> %sx%s" % (left, top, right, bottom)) # count = self.getChildCount() # print("CHANGE: There are %d children" % count) # for i in range(0, count): # child = self.getChildAt(i) # print(" child: %s" % child)
class Togalayout(extends=android.view.ViewGroup): @super({context: android.content.Context}) def __init__(self, context, interface): self.interface = interface def should_delay_child_pressed_state(self) -> bool: return False def on_measure(self, width: int, height: int) -> void: self.measureChildren(width, height) self.interface.rehint() self.setMeasuredDimension(width, height) def on_layout(self, changed: bool, left: int, top: int, right: int, bottom: int) -> void: device_scale = self.interface.app._impl.device_scale self.interface._update_layout(width=(right - left) / device_scale, height=(bottom - top) / device_scale) self.interface.style.apply() count = self.getChildCount() for i in range(0, count): child = self.getChildAt(i) child.layout(child.interface.layout.absolute.left * device_scale, child.interface.layout.absolute.top * device_scale, (child.interface.layout.absolute.left + child.interface.layout.width) * device_scale, (child.interface.layout.absolute.top + child.interface.layout.height) * device_scale)
L = list(map(int,list(input()))) i = 0 k = 1 while i < len(L): L2 = list(map(int,list(str(k)))) j = 0 while i<len(L) and j <len(L2): if L[i] == L2[j]: i+=1 j+=1 k+=1 print(k-1)
l = list(map(int, list(input()))) i = 0 k = 1 while i < len(L): l2 = list(map(int, list(str(k)))) j = 0 while i < len(L) and j < len(L2): if L[i] == L2[j]: i += 1 j += 1 k += 1 print(k - 1)
# # PySNMP MIB module CENTILLION-ROOT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CENTILLION-ROOT-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:15: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) # Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueRangeConstraint") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") MibIdentifier, iso, Counter32, Gauge32, MibScalar, MibTable, MibTableRow, MibTableColumn, Unsigned32, Bits, TimeTicks, Counter64, Integer32, ModuleIdentity, NotificationType, enterprises, IpAddress, ObjectIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "MibIdentifier", "iso", "Counter32", "Gauge32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Unsigned32", "Bits", "TimeTicks", "Counter64", "Integer32", "ModuleIdentity", "NotificationType", "enterprises", "IpAddress", "ObjectIdentity") Counter32, = mibBuilder.importSymbols("SNMPv2-SMI-v1", "Counter32") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") class StatusIndicator(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("valid", 1), ("invalid", 2)) class SsBackplaneType(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("other", 1), ("atmBus", 2)) class SsChassisType(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7)) namedValues = NamedValues(("other", 1), ("six-slot", 2), ("twelve-slot", 3), ("workgroup", 4), ("three-slotC50N", 5), ("three-slotC50T", 6), ("six-slotBH5005", 7)) class SsModuleType(Integer32): subtypeSpec = Integer32.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, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50)) namedValues = NamedValues(("empty", 1), ("other", 2), ("mTR4PC", 3), ("mTRMCP4PC", 4), ("mATM", 5), ("mTRFiber", 6), ("mTRMCPFiber", 7), ("mEther16PC10BT", 8), ("mEtherMCP8PC10BT", 9), ("mATM2PSMFiber", 10), ("mATM2PCopper", 11), ("mATM4PMMFiber", 12), ("mATM4PSMFiber", 13), ("mATM4PCopper", 14), ("mATMMCP2PSMFiber", 15), ("mATMMCP2PMMFiber", 16), ("mATMMCP2PCopper", 17), ("mATMMCP4PSMFiber", 18), ("mATMMCP4PMMFiber", 19), ("mATMMCP4PCopper", 20), ("mATM2PC", 21), ("mATM4PC", 22), ("mATMMCP2PC", 23), ("mATMMCP4PC", 24), ("mEther16P10BT100BTCopper", 25), ("mEther14P10BT100BF", 26), ("mEther8P10BF", 27), ("mEther10P10BT100BT", 28), ("mEther16P10BT100BTMixed", 29), ("mEther10P10BT100BTMIX", 30), ("mEther12PBFL", 32), ("mEther16P4x4", 33), ("mTRMCP8PC", 34), ("mTR8PC", 35), ("mEther24PC", 36), ("mEther24P10BT100BT", 37), ("mEther24P100BFx", 38), ("mTR8PFiber", 39), ("mATM4PMDA", 40), ("mATMMCP4PMDA", 41), ("mEther4P100BT", 42), ("mTR24PC", 43), ("mTR16PC", 44), ("mATMMCP1PSMFiber", 45), ("mATMMCP1PMMFiber", 46), ("mATM1PMMFiber", 47), ("mATM1PVNR", 48), ("mEther24P10BT100BTx", 49), ("mEther24P100BFX", 50)) class SsMediaType(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5)) namedValues = NamedValues(("mediaUnkown", 1), ("mediaTokenRing", 2), ("mediaFDDI", 3), ("mediaEthernet", 4), ("mediaATM", 5)) class MacAddress(OctetString): subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(6, 6) fixedLength = 6 class Boolean(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("true", 1), ("false", 2)) class BitField(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("clear", 1), ("set", 2)) class PortId(Integer32): subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(1, 65535) class CardId(Integer32): subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(1, 16) class FailIndicator(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("on", 1), ("off", 2)) class EnableIndicator(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("disabled", 1), ("enabled", 2)) centillion = MibIdentifier((1, 3, 6, 1, 4, 1, 930)) cnProducts = MibIdentifier((1, 3, 6, 1, 4, 1, 930, 1)) proprietary = MibIdentifier((1, 3, 6, 1, 4, 1, 930, 2)) extensions = MibIdentifier((1, 3, 6, 1, 4, 1, 930, 3)) cnTemporary = MibIdentifier((1, 3, 6, 1, 4, 1, 930, 4)) cnSystem = MibIdentifier((1, 3, 6, 1, 4, 1, 930, 2, 1)) cnATM = MibIdentifier((1, 3, 6, 1, 4, 1, 930, 2, 2)) sysChassis = MibIdentifier((1, 3, 6, 1, 4, 1, 930, 2, 1, 1)) sysConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 930, 2, 1, 2)) sysMonitor = MibIdentifier((1, 3, 6, 1, 4, 1, 930, 2, 1, 3)) sysTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 930, 2, 1, 4)) sysEvtLogMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 930, 2, 1, 5)) atmConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 930, 2, 2, 1)) atmMonitor = MibIdentifier((1, 3, 6, 1, 4, 1, 930, 2, 2, 2)) atmLane = MibIdentifier((1, 3, 6, 1, 4, 1, 930, 2, 2, 3)) atmSonet = MibIdentifier((1, 3, 6, 1, 4, 1, 930, 2, 2, 4)) sysMcpRedundTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 930, 2, 1, 4, 1)) cnPvcTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 930, 2, 1, 4, 2)) cnCentillion100 = MibIdentifier((1, 3, 6, 1, 4, 1, 930, 1, 1)) cnIBM8251 = MibIdentifier((1, 3, 6, 1, 4, 1, 930, 1, 2)) cnBayStack301 = MibIdentifier((1, 3, 6, 1, 4, 1, 930, 1, 3)) cn5000BH_MCP = MibIdentifier((1, 3, 6, 1, 4, 1, 930, 1, 4)).setLabel("cn5000BH-MCP") cnCentillion50N = MibIdentifier((1, 3, 6, 1, 4, 1, 930, 1, 5)) cnCentillion50T = MibIdentifier((1, 3, 6, 1, 4, 1, 930, 1, 6)) cn5005BH_MCP = MibIdentifier((1, 3, 6, 1, 4, 1, 930, 1, 7)).setLabel("cn5005BH-MCP") chassisType = MibScalar((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 1), SsChassisType()).setMaxAccess("readonly") if mibBuilder.loadTexts: chassisType.setStatus('mandatory') chassisBkplType = MibScalar((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 2), SsBackplaneType()).setMaxAccess("readonly") if mibBuilder.loadTexts: chassisBkplType.setStatus('mandatory') chassisPs1FailStatus = MibScalar((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 3), FailIndicator()).setMaxAccess("readonly") if mibBuilder.loadTexts: chassisPs1FailStatus.setStatus('mandatory') chassisPs2FailStatus = MibScalar((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 4), FailIndicator()).setMaxAccess("readonly") if mibBuilder.loadTexts: chassisPs2FailStatus.setStatus('mandatory') chassisFanFailStatus = MibScalar((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 5), FailIndicator()).setMaxAccess("readonly") if mibBuilder.loadTexts: chassisFanFailStatus.setStatus('mandatory') chassisSerialNumber = MibScalar((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(3, 3)).setFixedLength(3)).setMaxAccess("readonly") if mibBuilder.loadTexts: chassisSerialNumber.setStatus('mandatory') chassisPartNumber = MibScalar((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readonly") if mibBuilder.loadTexts: chassisPartNumber.setStatus('mandatory') slotConfigTable = MibTable((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9), ) if mibBuilder.loadTexts: slotConfigTable.setStatus('mandatory') slotConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1), ).setIndexNames((0, "CENTILLION-ROOT-MIB", "slotNumber")) if mibBuilder.loadTexts: slotConfigEntry.setStatus('mandatory') slotNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: slotNumber.setStatus('mandatory') slotModuleType = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 2), SsModuleType()).setMaxAccess("readonly") if mibBuilder.loadTexts: slotModuleType.setStatus('deprecated') slotModuleHwVer = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readonly") if mibBuilder.loadTexts: slotModuleHwVer.setStatus('mandatory') slotModuleSerialNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(3, 3)).setFixedLength(3)).setMaxAccess("readonly") if mibBuilder.loadTexts: slotModuleSerialNumber.setStatus('mandatory') slotModuleSwVer = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 5), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: slotModuleSwVer.setStatus('mandatory') slotModuleStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ok", 1), ("fail", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: slotModuleStatus.setStatus('mandatory') slotModuleLeds = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 7), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: slotModuleLeds.setStatus('mandatory') slotModuleReset = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("noReset", 1), ("reset", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: slotModuleReset.setStatus('mandatory') slotConfigDelete = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 9), Boolean()).setMaxAccess("readwrite") if mibBuilder.loadTexts: slotConfigDelete.setStatus('mandatory') slotConfigMediaType = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 10), SsMediaType()).setMaxAccess("readonly") if mibBuilder.loadTexts: slotConfigMediaType.setStatus('mandatory') slotModuleMaxRAM = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 11), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: slotModuleMaxRAM.setStatus('mandatory') slotModuleInstalledRAM = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 12), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: slotModuleInstalledRAM.setStatus('mandatory') slotModuleFlashSize = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 13), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: slotModuleFlashSize.setStatus('mandatory') slotModuleProductImageId = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("notApplicable", 1), ("noAtmLanEmulation", 2), ("minAtmLanEmulation", 3), ("fullAtmLanEmulation", 4), ("pnnifullAtmLanEmulation", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: slotModuleProductImageId.setStatus('mandatory') slotModuleBaseMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 15), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: slotModuleBaseMacAddress.setStatus('mandatory') slotLastResetEPC = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: slotLastResetEPC.setStatus('mandatory') slotLastResetVirtualAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: slotLastResetVirtualAddress.setStatus('mandatory') slotLastResetCause = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 18), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: slotLastResetCause.setStatus('mandatory') slotLastResetTimeStamp = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 19), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: slotLastResetTimeStamp.setStatus('mandatory') slotConfigAdd = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 20), Boolean()).setMaxAccess("readwrite") if mibBuilder.loadTexts: slotConfigAdd.setStatus('mandatory') slotConfigExtClockSource = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 21), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: slotConfigExtClockSource.setStatus('mandatory') slotConfigTrafficShapingRate = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 22), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: slotConfigTrafficShapingRate.setStatus('mandatory') mibBuilder.exportSymbols("CENTILLION-ROOT-MIB", EnableIndicator=EnableIndicator, slotNumber=slotNumber, SsChassisType=SsChassisType, SsModuleType=SsModuleType, slotLastResetEPC=slotLastResetEPC, cnPvcTraps=cnPvcTraps, slotLastResetVirtualAddress=slotLastResetVirtualAddress, sysMcpRedundTrap=sysMcpRedundTrap, sysEvtLogMgmt=sysEvtLogMgmt, CardId=CardId, chassisPs1FailStatus=chassisPs1FailStatus, cnATM=cnATM, SsMediaType=SsMediaType, slotConfigTable=slotConfigTable, slotModuleHwVer=slotModuleHwVer, slotConfigMediaType=slotConfigMediaType, cnBayStack301=cnBayStack301, SsBackplaneType=SsBackplaneType, sysConfig=sysConfig, chassisPartNumber=chassisPartNumber, slotModuleLeds=slotModuleLeds, slotConfigExtClockSource=slotConfigExtClockSource, FailIndicator=FailIndicator, proprietary=proprietary, slotModuleReset=slotModuleReset, sysChassis=sysChassis, cnIBM8251=cnIBM8251, chassisBkplType=chassisBkplType, extensions=extensions, cnCentillion50N=cnCentillion50N, slotModuleType=slotModuleType, slotModuleProductImageId=slotModuleProductImageId, atmLane=atmLane, StatusIndicator=StatusIndicator, cnSystem=cnSystem, slotConfigEntry=slotConfigEntry, BitField=BitField, cnTemporary=cnTemporary, centillion=centillion, slotModuleStatus=slotModuleStatus, cnCentillion50T=cnCentillion50T, chassisSerialNumber=chassisSerialNumber, slotModuleSerialNumber=slotModuleSerialNumber, slotModuleFlashSize=slotModuleFlashSize, slotModuleBaseMacAddress=slotModuleBaseMacAddress, slotConfigAdd=slotConfigAdd, slotConfigDelete=slotConfigDelete, Boolean=Boolean, slotLastResetTimeStamp=slotLastResetTimeStamp, chassisFanFailStatus=chassisFanFailStatus, cn5000BH_MCP=cn5000BH_MCP, slotModuleInstalledRAM=slotModuleInstalledRAM, cnProducts=cnProducts, cn5005BH_MCP=cn5005BH_MCP, PortId=PortId, slotModuleSwVer=slotModuleSwVer, slotLastResetCause=slotLastResetCause, atmConfig=atmConfig, slotModuleMaxRAM=slotModuleMaxRAM, slotConfigTrafficShapingRate=slotConfigTrafficShapingRate, cnCentillion100=cnCentillion100, sysMonitor=sysMonitor, atmMonitor=atmMonitor, chassisPs2FailStatus=chassisPs2FailStatus, sysTrap=sysTrap, atmSonet=atmSonet, chassisType=chassisType, MacAddress=MacAddress)
(integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, constraints_union, single_value_constraint, constraints_intersection, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ConstraintsUnion', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueRangeConstraint') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (mib_identifier, iso, counter32, gauge32, mib_scalar, mib_table, mib_table_row, mib_table_column, unsigned32, bits, time_ticks, counter64, integer32, module_identity, notification_type, enterprises, ip_address, object_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibIdentifier', 'iso', 'Counter32', 'Gauge32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Unsigned32', 'Bits', 'TimeTicks', 'Counter64', 'Integer32', 'ModuleIdentity', 'NotificationType', 'enterprises', 'IpAddress', 'ObjectIdentity') (counter32,) = mibBuilder.importSymbols('SNMPv2-SMI-v1', 'Counter32') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') class Statusindicator(Integer32): subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('valid', 1), ('invalid', 2)) class Ssbackplanetype(Integer32): subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('other', 1), ('atmBus', 2)) class Sschassistype(Integer32): subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7)) named_values = named_values(('other', 1), ('six-slot', 2), ('twelve-slot', 3), ('workgroup', 4), ('three-slotC50N', 5), ('three-slotC50T', 6), ('six-slotBH5005', 7)) class Ssmoduletype(Integer32): subtype_spec = Integer32.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, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50)) named_values = named_values(('empty', 1), ('other', 2), ('mTR4PC', 3), ('mTRMCP4PC', 4), ('mATM', 5), ('mTRFiber', 6), ('mTRMCPFiber', 7), ('mEther16PC10BT', 8), ('mEtherMCP8PC10BT', 9), ('mATM2PSMFiber', 10), ('mATM2PCopper', 11), ('mATM4PMMFiber', 12), ('mATM4PSMFiber', 13), ('mATM4PCopper', 14), ('mATMMCP2PSMFiber', 15), ('mATMMCP2PMMFiber', 16), ('mATMMCP2PCopper', 17), ('mATMMCP4PSMFiber', 18), ('mATMMCP4PMMFiber', 19), ('mATMMCP4PCopper', 20), ('mATM2PC', 21), ('mATM4PC', 22), ('mATMMCP2PC', 23), ('mATMMCP4PC', 24), ('mEther16P10BT100BTCopper', 25), ('mEther14P10BT100BF', 26), ('mEther8P10BF', 27), ('mEther10P10BT100BT', 28), ('mEther16P10BT100BTMixed', 29), ('mEther10P10BT100BTMIX', 30), ('mEther12PBFL', 32), ('mEther16P4x4', 33), ('mTRMCP8PC', 34), ('mTR8PC', 35), ('mEther24PC', 36), ('mEther24P10BT100BT', 37), ('mEther24P100BFx', 38), ('mTR8PFiber', 39), ('mATM4PMDA', 40), ('mATMMCP4PMDA', 41), ('mEther4P100BT', 42), ('mTR24PC', 43), ('mTR16PC', 44), ('mATMMCP1PSMFiber', 45), ('mATMMCP1PMMFiber', 46), ('mATM1PMMFiber', 47), ('mATM1PVNR', 48), ('mEther24P10BT100BTx', 49), ('mEther24P100BFX', 50)) class Ssmediatype(Integer32): subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5)) named_values = named_values(('mediaUnkown', 1), ('mediaTokenRing', 2), ('mediaFDDI', 3), ('mediaEthernet', 4), ('mediaATM', 5)) class Macaddress(OctetString): subtype_spec = OctetString.subtypeSpec + value_size_constraint(6, 6) fixed_length = 6 class Boolean(Integer32): subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('true', 1), ('false', 2)) class Bitfield(Integer32): subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('clear', 1), ('set', 2)) class Portid(Integer32): subtype_spec = Integer32.subtypeSpec + value_range_constraint(1, 65535) class Cardid(Integer32): subtype_spec = Integer32.subtypeSpec + value_range_constraint(1, 16) class Failindicator(Integer32): subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('on', 1), ('off', 2)) class Enableindicator(Integer32): subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('disabled', 1), ('enabled', 2)) centillion = mib_identifier((1, 3, 6, 1, 4, 1, 930)) cn_products = mib_identifier((1, 3, 6, 1, 4, 1, 930, 1)) proprietary = mib_identifier((1, 3, 6, 1, 4, 1, 930, 2)) extensions = mib_identifier((1, 3, 6, 1, 4, 1, 930, 3)) cn_temporary = mib_identifier((1, 3, 6, 1, 4, 1, 930, 4)) cn_system = mib_identifier((1, 3, 6, 1, 4, 1, 930, 2, 1)) cn_atm = mib_identifier((1, 3, 6, 1, 4, 1, 930, 2, 2)) sys_chassis = mib_identifier((1, 3, 6, 1, 4, 1, 930, 2, 1, 1)) sys_config = mib_identifier((1, 3, 6, 1, 4, 1, 930, 2, 1, 2)) sys_monitor = mib_identifier((1, 3, 6, 1, 4, 1, 930, 2, 1, 3)) sys_trap = mib_identifier((1, 3, 6, 1, 4, 1, 930, 2, 1, 4)) sys_evt_log_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 930, 2, 1, 5)) atm_config = mib_identifier((1, 3, 6, 1, 4, 1, 930, 2, 2, 1)) atm_monitor = mib_identifier((1, 3, 6, 1, 4, 1, 930, 2, 2, 2)) atm_lane = mib_identifier((1, 3, 6, 1, 4, 1, 930, 2, 2, 3)) atm_sonet = mib_identifier((1, 3, 6, 1, 4, 1, 930, 2, 2, 4)) sys_mcp_redund_trap = mib_identifier((1, 3, 6, 1, 4, 1, 930, 2, 1, 4, 1)) cn_pvc_traps = mib_identifier((1, 3, 6, 1, 4, 1, 930, 2, 1, 4, 2)) cn_centillion100 = mib_identifier((1, 3, 6, 1, 4, 1, 930, 1, 1)) cn_ibm8251 = mib_identifier((1, 3, 6, 1, 4, 1, 930, 1, 2)) cn_bay_stack301 = mib_identifier((1, 3, 6, 1, 4, 1, 930, 1, 3)) cn5000_bh_mcp = mib_identifier((1, 3, 6, 1, 4, 1, 930, 1, 4)).setLabel('cn5000BH-MCP') cn_centillion50_n = mib_identifier((1, 3, 6, 1, 4, 1, 930, 1, 5)) cn_centillion50_t = mib_identifier((1, 3, 6, 1, 4, 1, 930, 1, 6)) cn5005_bh_mcp = mib_identifier((1, 3, 6, 1, 4, 1, 930, 1, 7)).setLabel('cn5005BH-MCP') chassis_type = mib_scalar((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 1), ss_chassis_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: chassisType.setStatus('mandatory') chassis_bkpl_type = mib_scalar((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 2), ss_backplane_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: chassisBkplType.setStatus('mandatory') chassis_ps1_fail_status = mib_scalar((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 3), fail_indicator()).setMaxAccess('readonly') if mibBuilder.loadTexts: chassisPs1FailStatus.setStatus('mandatory') chassis_ps2_fail_status = mib_scalar((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 4), fail_indicator()).setMaxAccess('readonly') if mibBuilder.loadTexts: chassisPs2FailStatus.setStatus('mandatory') chassis_fan_fail_status = mib_scalar((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 5), fail_indicator()).setMaxAccess('readonly') if mibBuilder.loadTexts: chassisFanFailStatus.setStatus('mandatory') chassis_serial_number = mib_scalar((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 6), octet_string().subtype(subtypeSpec=value_size_constraint(3, 3)).setFixedLength(3)).setMaxAccess('readonly') if mibBuilder.loadTexts: chassisSerialNumber.setStatus('mandatory') chassis_part_number = mib_scalar((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 7), octet_string().subtype(subtypeSpec=value_size_constraint(6, 6)).setFixedLength(6)).setMaxAccess('readonly') if mibBuilder.loadTexts: chassisPartNumber.setStatus('mandatory') slot_config_table = mib_table((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9)) if mibBuilder.loadTexts: slotConfigTable.setStatus('mandatory') slot_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1)).setIndexNames((0, 'CENTILLION-ROOT-MIB', 'slotNumber')) if mibBuilder.loadTexts: slotConfigEntry.setStatus('mandatory') slot_number = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: slotNumber.setStatus('mandatory') slot_module_type = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 2), ss_module_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: slotModuleType.setStatus('deprecated') slot_module_hw_ver = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(6, 6)).setFixedLength(6)).setMaxAccess('readonly') if mibBuilder.loadTexts: slotModuleHwVer.setStatus('mandatory') slot_module_serial_number = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(3, 3)).setFixedLength(3)).setMaxAccess('readonly') if mibBuilder.loadTexts: slotModuleSerialNumber.setStatus('mandatory') slot_module_sw_ver = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 5), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: slotModuleSwVer.setStatus('mandatory') slot_module_status = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('ok', 1), ('fail', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: slotModuleStatus.setStatus('mandatory') slot_module_leds = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 7), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: slotModuleLeds.setStatus('mandatory') slot_module_reset = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('noReset', 1), ('reset', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: slotModuleReset.setStatus('mandatory') slot_config_delete = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 9), boolean()).setMaxAccess('readwrite') if mibBuilder.loadTexts: slotConfigDelete.setStatus('mandatory') slot_config_media_type = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 10), ss_media_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: slotConfigMediaType.setStatus('mandatory') slot_module_max_ram = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 11), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: slotModuleMaxRAM.setStatus('mandatory') slot_module_installed_ram = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 12), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: slotModuleInstalledRAM.setStatus('mandatory') slot_module_flash_size = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 13), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: slotModuleFlashSize.setStatus('mandatory') slot_module_product_image_id = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('notApplicable', 1), ('noAtmLanEmulation', 2), ('minAtmLanEmulation', 3), ('fullAtmLanEmulation', 4), ('pnnifullAtmLanEmulation', 5)))).setMaxAccess('readonly') if mibBuilder.loadTexts: slotModuleProductImageId.setStatus('mandatory') slot_module_base_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 15), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: slotModuleBaseMacAddress.setStatus('mandatory') slot_last_reset_epc = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 16), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: slotLastResetEPC.setStatus('mandatory') slot_last_reset_virtual_address = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 17), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: slotLastResetVirtualAddress.setStatus('mandatory') slot_last_reset_cause = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 18), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: slotLastResetCause.setStatus('mandatory') slot_last_reset_time_stamp = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 19), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: slotLastResetTimeStamp.setStatus('mandatory') slot_config_add = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 20), boolean()).setMaxAccess('readwrite') if mibBuilder.loadTexts: slotConfigAdd.setStatus('mandatory') slot_config_ext_clock_source = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 21), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: slotConfigExtClockSource.setStatus('mandatory') slot_config_traffic_shaping_rate = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 1, 9, 1, 22), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: slotConfigTrafficShapingRate.setStatus('mandatory') mibBuilder.exportSymbols('CENTILLION-ROOT-MIB', EnableIndicator=EnableIndicator, slotNumber=slotNumber, SsChassisType=SsChassisType, SsModuleType=SsModuleType, slotLastResetEPC=slotLastResetEPC, cnPvcTraps=cnPvcTraps, slotLastResetVirtualAddress=slotLastResetVirtualAddress, sysMcpRedundTrap=sysMcpRedundTrap, sysEvtLogMgmt=sysEvtLogMgmt, CardId=CardId, chassisPs1FailStatus=chassisPs1FailStatus, cnATM=cnATM, SsMediaType=SsMediaType, slotConfigTable=slotConfigTable, slotModuleHwVer=slotModuleHwVer, slotConfigMediaType=slotConfigMediaType, cnBayStack301=cnBayStack301, SsBackplaneType=SsBackplaneType, sysConfig=sysConfig, chassisPartNumber=chassisPartNumber, slotModuleLeds=slotModuleLeds, slotConfigExtClockSource=slotConfigExtClockSource, FailIndicator=FailIndicator, proprietary=proprietary, slotModuleReset=slotModuleReset, sysChassis=sysChassis, cnIBM8251=cnIBM8251, chassisBkplType=chassisBkplType, extensions=extensions, cnCentillion50N=cnCentillion50N, slotModuleType=slotModuleType, slotModuleProductImageId=slotModuleProductImageId, atmLane=atmLane, StatusIndicator=StatusIndicator, cnSystem=cnSystem, slotConfigEntry=slotConfigEntry, BitField=BitField, cnTemporary=cnTemporary, centillion=centillion, slotModuleStatus=slotModuleStatus, cnCentillion50T=cnCentillion50T, chassisSerialNumber=chassisSerialNumber, slotModuleSerialNumber=slotModuleSerialNumber, slotModuleFlashSize=slotModuleFlashSize, slotModuleBaseMacAddress=slotModuleBaseMacAddress, slotConfigAdd=slotConfigAdd, slotConfigDelete=slotConfigDelete, Boolean=Boolean, slotLastResetTimeStamp=slotLastResetTimeStamp, chassisFanFailStatus=chassisFanFailStatus, cn5000BH_MCP=cn5000BH_MCP, slotModuleInstalledRAM=slotModuleInstalledRAM, cnProducts=cnProducts, cn5005BH_MCP=cn5005BH_MCP, PortId=PortId, slotModuleSwVer=slotModuleSwVer, slotLastResetCause=slotLastResetCause, atmConfig=atmConfig, slotModuleMaxRAM=slotModuleMaxRAM, slotConfigTrafficShapingRate=slotConfigTrafficShapingRate, cnCentillion100=cnCentillion100, sysMonitor=sysMonitor, atmMonitor=atmMonitor, chassisPs2FailStatus=chassisPs2FailStatus, sysTrap=sysTrap, atmSonet=atmSonet, chassisType=chassisType, MacAddress=MacAddress)
l = 2 if(l == 1): print(l) elif(l == 2): print(l+5) else: print(l+1)
l = 2 if l == 1: print(l) elif l == 2: print(l + 5) else: print(l + 1)
n1, n2, n3 = map(int, input().split()) total = n1 * n2 * n3 print(total)
(n1, n2, n3) = map(int, input().split()) total = n1 * n2 * n3 print(total)
class Atom: def __init__(self, name, children): self.name = name self.children = children if None in children: raise Exception("none in lisp atom") def __str__(self): child_string = " ".join( [str(e) if type(e) != str else f'"{e}"' for e in self.children] ) return f"({self.name} {child_string})" class Literal: def __init__(self, value): self.value = value def __str__(self): return self.value def __repr__(self): return self.value def __eq__(self, other): return self.value == other
class Atom: def __init__(self, name, children): self.name = name self.children = children if None in children: raise exception('none in lisp atom') def __str__(self): child_string = ' '.join([str(e) if type(e) != str else f'"{e}"' for e in self.children]) return f'({self.name} {child_string})' class Literal: def __init__(self, value): self.value = value def __str__(self): return self.value def __repr__(self): return self.value def __eq__(self, other): return self.value == other
#This algoritm was copied at 16/Nov/2018 from https://en.wikibooks.org/wiki/Algorithm_Implementation/Strings/Levenshtein_distance#Python and applied to activity sequences delimter = "@" def length(s): return s.count(delimter) + 1 def enumerateSequence(s): list = s.split(delimter) return enumerate(list,0) def levenshtein(s1, s2): if length(s1) < length(s2): return levenshtein(s2, s1) # len(s1) >= len(s2) if length(s2) == 0: return length(s1) previous_row = range(length(s2) + 1) for i, c1 in enumerateSequence(s1): current_row = [i + 1] for j, c2 in enumerateSequence(s2): insertions = previous_row[j + 1] + 1 # j+1 instead of j since previous_row and current_row are one character longer deletions = current_row[j] + 1 # than s2 substitutions = previous_row[j] + (c1 != c2) current_row.append(min(insertions, deletions, substitutions)) previous_row = current_row return previous_row[-1]
delimter = '@' def length(s): return s.count(delimter) + 1 def enumerate_sequence(s): list = s.split(delimter) return enumerate(list, 0) def levenshtein(s1, s2): if length(s1) < length(s2): return levenshtein(s2, s1) if length(s2) == 0: return length(s1) previous_row = range(length(s2) + 1) for (i, c1) in enumerate_sequence(s1): current_row = [i + 1] for (j, c2) in enumerate_sequence(s2): insertions = previous_row[j + 1] + 1 deletions = current_row[j] + 1 substitutions = previous_row[j] + (c1 != c2) current_row.append(min(insertions, deletions, substitutions)) previous_row = current_row return previous_row[-1]
# -*- Mode: Python; coding: utf-8; indent-tabs-mpythoode: nil; tab-width: 4 -*- # CODEWARS # https://www.codewars.com/kata/5583090cbe83f4fd8c000051 # # "Convert number to reversed array of digits" def digitize(n): if n == 0: return [0] if n < 0: n *= -1 arr = [] while n > 0: arr += [n % 10] n /= 10 return arr def testEqual(test, str1, str2): print(test, str1 == str2) def main(): testEqual(1, digitize(35231),[1,3,2,5,3]) testEqual(2, digitize(348597),[7,9,5,8,4,3]) testEqual(3, digitize(0),[0]) testEqual(4, digitize(1),[1]) testEqual(5, digitize(10),[0,1]) testEqual(6, digitize(100),[0,0,1]) testEqual(7, digitize(-1000),[0,0,0,1]) if __name__ == '__main__': main()
def digitize(n): if n == 0: return [0] if n < 0: n *= -1 arr = [] while n > 0: arr += [n % 10] n /= 10 return arr def test_equal(test, str1, str2): print(test, str1 == str2) def main(): test_equal(1, digitize(35231), [1, 3, 2, 5, 3]) test_equal(2, digitize(348597), [7, 9, 5, 8, 4, 3]) test_equal(3, digitize(0), [0]) test_equal(4, digitize(1), [1]) test_equal(5, digitize(10), [0, 1]) test_equal(6, digitize(100), [0, 0, 1]) test_equal(7, digitize(-1000), [0, 0, 0, 1]) if __name__ == '__main__': main()
class Solution: def lengthOfLastWord(self, s: str) -> int: end = len(s) -1 c = 0 while s[end] == " ": end -= 1 while s[end] != " " and end >= 0: c += 1 end -= 1 return c
class Solution: def length_of_last_word(self, s: str) -> int: end = len(s) - 1 c = 0 while s[end] == ' ': end -= 1 while s[end] != ' ' and end >= 0: c += 1 end -= 1 return c
class Phoneme: def __init__(self, ptype: str): self.ptype = ptype class Cons(Phoneme): def __init__(self, voice: int, ctype: str): super().__init__("Cons") self.voice = voice self.ctype = ctype class PulmCons(Cons): def __init__(self, voice: int, pcmanner: int, pcplace: int): super().__init__(voice, "PulmCons") self.pcmanner = pcmanner self.pcplace = pcplace class NonPulmCons(Cons): def __init__(self, voice: int, npctype: str): super().__init__(voice, "NonPulmCons") self.npctype = npctype class Ejective(NonPulmCons): def __init__(self, voice: int, ejmanner: int, ejplace: int): super().__init__(voice, "Ejective") self.ejmanner = ejmanner self.ejplace = ejplace class Click(NonPulmCons): def __init__(self, voice: int, clmanner: int, clplace: int): super().__init__(voice, "Click") self.clmanner = clmanner self.clplace = clplace class Implosive(NonPulmCons): def __init__(self, voice: int, implace: int): super().__init__(voice, "Implosive") self.implace = implace class Multi(Cons): def __init__(self, voice: int, catype: str): super().__init__(voice, "Multi") self.catype = catype self.sequence = [] def append(self, cons: Cons): self.sequence.append(cons)
class Phoneme: def __init__(self, ptype: str): self.ptype = ptype class Cons(Phoneme): def __init__(self, voice: int, ctype: str): super().__init__('Cons') self.voice = voice self.ctype = ctype class Pulmcons(Cons): def __init__(self, voice: int, pcmanner: int, pcplace: int): super().__init__(voice, 'PulmCons') self.pcmanner = pcmanner self.pcplace = pcplace class Nonpulmcons(Cons): def __init__(self, voice: int, npctype: str): super().__init__(voice, 'NonPulmCons') self.npctype = npctype class Ejective(NonPulmCons): def __init__(self, voice: int, ejmanner: int, ejplace: int): super().__init__(voice, 'Ejective') self.ejmanner = ejmanner self.ejplace = ejplace class Click(NonPulmCons): def __init__(self, voice: int, clmanner: int, clplace: int): super().__init__(voice, 'Click') self.clmanner = clmanner self.clplace = clplace class Implosive(NonPulmCons): def __init__(self, voice: int, implace: int): super().__init__(voice, 'Implosive') self.implace = implace class Multi(Cons): def __init__(self, voice: int, catype: str): super().__init__(voice, 'Multi') self.catype = catype self.sequence = [] def append(self, cons: Cons): self.sequence.append(cons)
log_table = [] alpha_table = [] def multiplie(x, y, P): if x == 0 or y == 0: return 0 P_deg = len(bin(P)) - 3 i, j = log_table[x], log_table[y] return alpha_table[(i + j) % ((1 << P_deg)-1)]
log_table = [] alpha_table = [] def multiplie(x, y, P): if x == 0 or y == 0: return 0 p_deg = len(bin(P)) - 3 (i, j) = (log_table[x], log_table[y]) return alpha_table[(i + j) % ((1 << P_deg) - 1)]
# https://leetcode.com/problems/delete-columns-to-make-sorted/ # You are given an array of n strings strs, all of the same length. # The strings can be arranged such that there is one on each line, making a grid. # For example, strs = ["abc", "bce", "cae"] can be arranged as: # You want to delete the columns that are not sorted lexicographically. In the # above example (0-indexed), columns 0 ('a', 'b', 'c') and 2 ('c', 'e', 'e') are # sorted while column 1 ('b', 'c', 'a') is not, so you would delete column 1. # Return the number of columns that you will delete. ################################################################################ class Solution: def minDeletionSize(self, strs: List[str]) -> int: ans = 0 for col in zip(*strs): for i in range(len(col) - 1): if col[i] > col[i+1]: ans += 1 break return ans
class Solution: def min_deletion_size(self, strs: List[str]) -> int: ans = 0 for col in zip(*strs): for i in range(len(col) - 1): if col[i] > col[i + 1]: ans += 1 break return ans
def full_query(okta_id, video_string, fan_string, limit=5000): query = f''' WITH -- FIRST CTE all_comments ( comment_id, parent_youtube_comment_id, youtube_fan_id, by_creator, content, archived, timestamp, up_vote, down_vote, video_title, video_id, video_thumbnail, classification ) AS ( SELECT comments.id as comment_id, comments.parent_youtube_comment_id as parent_youtube_comment_id, comments.youtube_fan_id as youtube_fan_id, comments.by_creator as by_creator, comments.content as content, comments.archived as archived, comments.timestamp as timestamp, comments.up_vote as up_vote, comments.down_vote as down_vote, video.video_title as video_title, video.video_id as video_id, video.thumbnail_url as video_thumbnail, comments.classification as classification FROM ( SELECT id as video_id, video_title, thumbnail_url FROM ( SELECT id as creator_id FROM creators WHERE okta_platform_account_id = '{okta_id}' ) creator JOIN youtube_videos ON youtube_videos.creator_id = creator.creator_id ) video JOIN youtube_comments comments ON video.video_id = comments.youtube_video_id ), -- SECOND CTE top_comments ( comment_id, parent_youtube_comment_id, youtube_fan_id, by_creator, content, archived, timestamp, up_vote, down_vote, video_title, video_id, video_thumbnail, classification ) AS ( SELECT * FROM all_comments WHERE parent_youtube_comment_id is NULL{video_string}{fan_string} AND by_creator is false ORDER BY timestamp desc LIMIT {limit} ), -- THIRD CTE top_fan_comments ( comment_id, parent_youtube_comment_id, youtube_fan_id, timestamp ) AS ( SELECT all_comments.comment_id as comment_id, all_comments.parent_youtube_comment_id as parent_youtube_comment_id, all_comments.youtube_fan_id as youtube_fan_id, all_comments.timestamp as timestamp FROM ( SELECT DISTINCT youtube_fan_id as id FROM top_comments ) top_fans JOIN all_comments ON top_fans.id = all_comments.youtube_fan_id ), -- FOURTH CTE top_comments_with_replies ( comment_id, parent_youtube_comment_id, youtube_fan_id, by_creator, content, archived, timestamp, up_vote, down_vote, video_title, video_id, video_thumbnail, classification ) AS ( SELECT * FROM top_comments UNION SELECT replies.comment_id as comment_id, parent_youtube_comment_id, youtube_fan_id, by_creator, content, archived, timestamp, up_vote, down_vote, video_title, video_id, video_thumbnail, classification FROM ( SELECT comment_id FROM top_comments ) roots JOIN all_comments replies ON roots.comment_id = replies.parent_youtube_comment_id ) -- MAIN QUERY SELECT top_comments_with_replies.comment_id, top_comments_with_replies.parent_youtube_comment_id, top_comments_with_replies.youtube_fan_id, top_comments_with_replies.content, top_comments_with_replies.archived, top_comments_with_replies.timestamp, top_comments_with_replies.up_vote, top_comments_with_replies.down_vote, top_comments_with_replies.video_title, top_comments_with_replies.video_id, top_comments_with_replies.video_thumbnail, fan_aggregations.total_comments, fan_aggregations.total_replies, fan_aggregations.responses, fan_aggregations.sec_comment, youtube_fans.account_title, youtube_fans.thumbnail_url, top_comments_with_replies.classification, youtube_fans.note FROM top_comments_with_replies LEFT JOIN ( -- AGGREGATION SELECT top_fan_comments.youtube_fan_id as youtube_fan_id, COUNT(top_fan_comments.comment_id) as total_comments, COUNT(top_fan_comments.parent_youtube_comment_id) as total_replies, COUNT(responses.creator_response) as responses, MAX(second_comment.sec_timestamp) as sec_comment FROM top_fan_comments JOIN -- Second Comment timestamp ( SELECT comment_id, youtube_fan_id, nth_value(timestamp,2) OVER (PARTITION BY youtube_fan_id ORDER BY timestamp DESC) AS sec_timestamp FROM top_fan_comments ) second_comment ON top_fan_comments.comment_id = second_comment.comment_id LEFT JOIN -- Creator Responses ( SELECT distinct parent_youtube_comment_id as creator_response FROM all_comments WHERE by_creator = TRUE ) responses ON top_fan_comments.comment_id = responses.creator_response GROUP BY top_fan_comments.youtube_fan_id ) fan_aggregations ON top_comments_with_replies.youtube_fan_id = fan_aggregations.youtube_fan_id LEFT JOIN ( SELECT id, account_title, thumbnail_url, note FROM youtube_fans ) youtube_fans ON top_comments_with_replies.youtube_fan_id = youtube_fans.id ''' return query
def full_query(okta_id, video_string, fan_string, limit=5000): query = f"\n WITH \n -- FIRST CTE\n all_comments (\n comment_id, \n parent_youtube_comment_id,\n youtube_fan_id,\n by_creator,\n content,\n archived,\n timestamp,\n up_vote,\n down_vote,\n video_title,\n video_id,\n video_thumbnail,\n classification\n )\n AS (\n SELECT \n comments.id as comment_id,\n comments.parent_youtube_comment_id as parent_youtube_comment_id,\n comments.youtube_fan_id as youtube_fan_id,\n comments.by_creator as by_creator,\n comments.content as content,\n comments.archived as archived,\n comments.timestamp as timestamp,\n comments.up_vote as up_vote,\n comments.down_vote as down_vote,\n video.video_title as video_title,\n video.video_id as video_id,\n video.thumbnail_url as video_thumbnail,\n comments.classification as classification\n\n FROM\n ( \n SELECT \n id as video_id,\n video_title,\n thumbnail_url\n FROM\n (\n SELECT\n id as creator_id\n FROM\n creators\n WHERE\n okta_platform_account_id = '{okta_id}'\n )\n creator\n JOIN\n youtube_videos\n ON youtube_videos.creator_id = creator.creator_id\n )\n video\n JOIN \n youtube_comments comments\n ON video.video_id = comments.youtube_video_id\n ),\n\n -- SECOND CTE \n top_comments (\n comment_id, \n parent_youtube_comment_id,\n youtube_fan_id,\n by_creator,\n content,\n archived,\n timestamp,\n up_vote,\n down_vote,\n video_title,\n video_id,\n video_thumbnail,\n classification\n )\n AS \n ( \n SELECT\n *\n FROM \n all_comments\n WHERE \n parent_youtube_comment_id is NULL{video_string}{fan_string}\n AND\n by_creator is false\n ORDER BY timestamp desc\n LIMIT {limit}\n\n ),\n\n -- THIRD CTE\n top_fan_comments (\n comment_id, \n parent_youtube_comment_id,\n youtube_fan_id,\n timestamp\n )\n AS (\n SELECT\n all_comments.comment_id as comment_id, \n all_comments.parent_youtube_comment_id as parent_youtube_comment_id,\n all_comments.youtube_fan_id as youtube_fan_id,\n all_comments.timestamp as timestamp\n FROM \n (\n SELECT\n DISTINCT youtube_fan_id as id\n FROM top_comments\n )\n top_fans\n JOIN all_comments\n ON top_fans.id = all_comments.youtube_fan_id\n ),\n\n -- FOURTH CTE\n top_comments_with_replies (\n comment_id, \n parent_youtube_comment_id,\n youtube_fan_id,\n by_creator,\n content,\n archived,\n timestamp,\n up_vote,\n down_vote,\n video_title,\n video_id,\n video_thumbnail,\n classification\n )\n AS (\n SELECT\n *\n FROM\n top_comments \n UNION\n SELECT\n replies.comment_id as comment_id,\n parent_youtube_comment_id,\n youtube_fan_id,\n by_creator,\n content,\n archived,\n timestamp,\n up_vote,\n down_vote,\n video_title,\n video_id,\n video_thumbnail,\n classification\n FROM\n (\n SELECT\n comment_id\n FROM\n top_comments\n ) roots\n JOIN\n all_comments replies\n ON roots.comment_id = replies.parent_youtube_comment_id\n )\n\n -- MAIN QUERY\n SELECT\n top_comments_with_replies.comment_id,\n top_comments_with_replies.parent_youtube_comment_id,\n top_comments_with_replies.youtube_fan_id,\n top_comments_with_replies.content,\n top_comments_with_replies.archived,\n top_comments_with_replies.timestamp,\n top_comments_with_replies.up_vote,\n top_comments_with_replies.down_vote,\n top_comments_with_replies.video_title,\n top_comments_with_replies.video_id,\n top_comments_with_replies.video_thumbnail,\n fan_aggregations.total_comments,\n fan_aggregations.total_replies,\n fan_aggregations.responses,\n fan_aggregations.sec_comment,\n youtube_fans.account_title,\n youtube_fans.thumbnail_url,\n top_comments_with_replies.classification,\n youtube_fans.note\n FROM\n top_comments_with_replies\n LEFT JOIN\n ( -- AGGREGATION\n SELECT \n top_fan_comments.youtube_fan_id as youtube_fan_id, \n COUNT(top_fan_comments.comment_id) as total_comments, \n COUNT(top_fan_comments.parent_youtube_comment_id) as total_replies, \n COUNT(responses.creator_response) as responses, \n MAX(second_comment.sec_timestamp) as sec_comment\n FROM \n top_fan_comments\n JOIN -- Second Comment timestamp\n (\n SELECT \n comment_id,\n youtube_fan_id, \n nth_value(timestamp,2) OVER (PARTITION BY youtube_fan_id\n ORDER BY timestamp DESC) AS sec_timestamp\n FROM top_fan_comments\n )\n second_comment\n ON top_fan_comments.comment_id = second_comment.comment_id\n LEFT JOIN -- Creator Responses\n (\n SELECT\n distinct parent_youtube_comment_id as creator_response\n FROM all_comments\n WHERE by_creator = TRUE\n )\n responses\n ON top_fan_comments.comment_id = responses.creator_response\n GROUP BY top_fan_comments.youtube_fan_id\n )\n fan_aggregations\n ON top_comments_with_replies.youtube_fan_id = fan_aggregations.youtube_fan_id\n\n LEFT JOIN\n (\n SELECT\n id,\n account_title,\n thumbnail_url,\n note\n FROM\n youtube_fans\n )\n youtube_fans\n ON top_comments_with_replies.youtube_fan_id = youtube_fans.id\n " return query
n = int(input()) for j in range(1,n+1): led = 0 x = input() for i in range(0,len(x)): if x[i] == '1': led = led + 2 if x[i] == '2': led = led + 5 if x[i] == '3': led = led + 5 if x[i] == '4': led = led + 4 if x[i] == '5': led = led + 5 if x[i] == '6': led = led + 6 if x[i] == '7': led = led + 3 if x[i] == '8': led = led + 7 if x[i] == '9': led = led + 6 if x[i] == '0': led = led + 6 print('{} leds'.format(led))
n = int(input()) for j in range(1, n + 1): led = 0 x = input() for i in range(0, len(x)): if x[i] == '1': led = led + 2 if x[i] == '2': led = led + 5 if x[i] == '3': led = led + 5 if x[i] == '4': led = led + 4 if x[i] == '5': led = led + 5 if x[i] == '6': led = led + 6 if x[i] == '7': led = led + 3 if x[i] == '8': led = led + 7 if x[i] == '9': led = led + 6 if x[i] == '0': led = led + 6 print('{} leds'.format(led))
#Write a Python program to sum of three given integers. However, if two values are equal sum will be zero def sumif(a,b,c): if a != b != c and c !=a: return a+b+c else: return 0 print(sumif(42,5,9)) print(sumif(8,8,12)) print(sumif(9,54,9)) print(sumif(87,4,9))
def sumif(a, b, c): if a != b != c and c != a: return a + b + c else: return 0 print(sumif(42, 5, 9)) print(sumif(8, 8, 12)) print(sumif(9, 54, 9)) print(sumif(87, 4, 9))
# -*- coding: utf-8 -*- # Copyright: (c) 2016, Charles Paul <cpaul@ansible.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) class ModuleDocFragment(object): # Parameters for VCA modules DOCUMENTATION = r''' options: username: description: - The vca username or email address, if not set the environment variable C(VCA_USER) is checked for the username. type: str aliases: [ user ] password: description: - The vca password, if not set the environment variable C(VCA_PASS) is checked for the password. type: str aliases: [ pass, passwd] org: description: - The org to login to for creating vapp. - This option is required when the C(service_type) is I(vdc). type: str instance_id: description: - The instance ID in a vchs environment to be used for creating the vapp. type: str host: description: - The authentication host to be used when service type is vcd. type: str api_version: description: - The API version to be used with the vca. type: str default: "5.7" service_type: description: - The type of service we are authenticating against. type: str choices: [ vca, vcd, vchs ] default: vca state: description: - Whether the object should be added or removed. type: str choices: [ absent, present ] default: present validate_certs: description: - If the certificates of the authentication is to be verified. type: bool default: yes aliases: [ verify_certs ] vdc_name: description: - The name of the vdc where the gateway is located. type: str gateway_name: description: - The name of the gateway of the vdc where the rule should be added. type: str default: gateway '''
class Moduledocfragment(object): documentation = '\noptions:\n username:\n description:\n - The vca username or email address, if not set the environment variable C(VCA_USER) is checked for the username.\n type: str\n aliases: [ user ]\n password:\n description:\n - The vca password, if not set the environment variable C(VCA_PASS) is checked for the password.\n type: str\n aliases: [ pass, passwd]\n org:\n description:\n - The org to login to for creating vapp.\n - This option is required when the C(service_type) is I(vdc).\n type: str\n instance_id:\n description:\n - The instance ID in a vchs environment to be used for creating the vapp.\n type: str\n host:\n description:\n - The authentication host to be used when service type is vcd.\n type: str\n api_version:\n description:\n - The API version to be used with the vca.\n type: str\n default: "5.7"\n service_type:\n description:\n - The type of service we are authenticating against.\n type: str\n choices: [ vca, vcd, vchs ]\n default: vca\n state:\n description:\n - Whether the object should be added or removed.\n type: str\n choices: [ absent, present ]\n default: present\n validate_certs:\n description:\n - If the certificates of the authentication is to be verified.\n type: bool\n default: yes\n aliases: [ verify_certs ]\n vdc_name:\n description:\n - The name of the vdc where the gateway is located.\n type: str\n gateway_name:\n description:\n - The name of the gateway of the vdc where the rule should be added.\n type: str\n default: gateway\n'
''' Array Sum You are given an array of integers of size . You need to print the sum of the elements in the array, keeping in mind that some of those integers may be quite large. Input Format The first line of the input consists of an integer . The next line contains space-separated integers contained in the array. Output Format Print a single value equal to the sum of the elements in the array. Constraints 1<=N<=10 0<=a[i]<=10^10 SAMPLE INPUT 5 1000000001 1000000002 1000000003 1000000004 1000000005 SAMPLE OUTPUT 5000000015 ''' n=int(input()) x=map(int,input().split()) print(sum(x)) #List comprehension n=int(input()) print(sum([int(x) for x in input().split()]))
""" Array Sum You are given an array of integers of size . You need to print the sum of the elements in the array, keeping in mind that some of those integers may be quite large. Input Format The first line of the input consists of an integer . The next line contains space-separated integers contained in the array. Output Format Print a single value equal to the sum of the elements in the array. Constraints 1<=N<=10 0<=a[i]<=10^10 SAMPLE INPUT 5 1000000001 1000000002 1000000003 1000000004 1000000005 SAMPLE OUTPUT 5000000015 """ n = int(input()) x = map(int, input().split()) print(sum(x)) n = int(input()) print(sum([int(x) for x in input().split()]))
DEFAULT_FPGA='VC709' def addClock(file, FPGA=DEFAULT_FPGA): file.write("#Clock Source\r\n") if(FPGA=='VC709'): file.write("set_property IOSTANDARD DIFF_SSTL15 [get_ports clk_p]\r\n") file.write("set_property PACKAGE_PIN H19 [get_ports clk_p]\r\n") file.write("set_property PACKAGE_PIN G18 [get_ports clk_n]\r\n") file.write("set_property IOSTANDARD DIFF_SSTL15 [get_ports clk_n]\r\n") elif(FPGA=='A735'): file.write("set_property -dict {PACKAGE_PIN E3 IOSTANDARD LVCMOS33} [get_ports CLK]\r\n") file.write("create_clock -period 10.000 -name sys_clk_pin -waveform {0.000 5.000} -add [get_ports CLK]\r\n") elif(FPGA=='A7100'): file.write("set_property -dict {PACKAGE_PIN E3 IOSTANDARD LVCMOS33} [get_ports CLK]\r\n") file.write("create_clock -period 10.000 -name sys_clk_pin -waveform {0.000 5.000} -add [get_ports CLK]\r\n") file.write("\r\n") def addLED(file, FPGA=DEFAULT_FPGA): file.write("#LEDs\r\n") if(FPGA=='VC709'): file.write("set_property -dict { PACKAGE_PIN AM39 IOSTANDARD LVCMOS18 } [get_ports { LED[0] }];\r\n") file.write("set_property -dict { PACKAGE_PIN AN39 IOSTANDARD LVCMOS18 } [get_ports { LED[1] }];\r\n") file.write("set_property -dict { PACKAGE_PIN AR37 IOSTANDARD LVCMOS18 } [get_ports { LED[2] }];\r\n") file.write("set_property -dict { PACKAGE_PIN AT37 IOSTANDARD LVCMOS18 } [get_ports { LED[3] }];\r\n") file.write("set_property -dict { PACKAGE_PIN AR35 IOSTANDARD LVCMOS18 } [get_ports { LED[4] }];\r\n") file.write("set_property -dict { PACKAGE_PIN AP41 IOSTANDARD LVCMOS18 } [get_ports { LED[5] }];\r\n") file.write("set_property -dict { PACKAGE_PIN AP42 IOSTANDARD LVCMOS18 } [get_ports { LED[6] }];\r\n") file.write("set_property -dict { PACKAGE_PIN AU39 IOSTANDARD LVCMOS18 } [get_ports { LED[7] }];\r\n") elif(FPGA=='A735'): file.write("set_property -dict { PACKAGE_PIN H5 IOSTANDARD LVCMOS33 } [get_ports { LED[0] }];\r\n") file.write("set_property -dict { PACKAGE_PIN J5 IOSTANDARD LVCMOS33 } [get_ports { LED[1] }];\r\n") file.write("set_property -dict { PACKAGE_PIN T9 IOSTANDARD LVCMOS33 } [get_ports { LED[2] }];\r\n") file.write("set_property -dict { PACKAGE_PIN T10 IOSTANDARD LVCMOS33 } [get_ports { LED[3] }];\r\n") elif(FPGA=='A7100'): file.write("set_property -dict { PACKAGE_PIN H5 IOSTANDARD LVCMOS33 } [get_ports { LED[0] }];\r\n") file.write("set_property -dict { PACKAGE_PIN J5 IOSTANDARD LVCMOS33 } [get_ports { LED[1] }];\r\n") file.write("set_property -dict { PACKAGE_PIN T9 IOSTANDARD LVCMOS33 } [get_ports { LED[2] }];\r\n") file.write("set_property -dict { PACKAGE_PIN T10 IOSTANDARD LVCMOS33 } [get_ports { LED[3] }];\r\n") file.write("\r\n") def addSwitches(file, FPGA=DEFAULT_FPGA): file.write("#Switches\r\n") if(FPGA=='VC709'): file.write("set_property -dict { PACKAGE_PIN AV30 IOSTANDARD LVCMOS18 } [get_ports { SW[0] }];\r\n") file.write("set_property -dict { PACKAGE_PIN AY33 IOSTANDARD LVCMOS18 } [get_ports { SW[1] }];\r\n") file.write("set_property -dict { PACKAGE_PIN BA31 IOSTANDARD LVCMOS18 } [get_ports { SW[2] }];\r\n") file.write("set_property -dict { PACKAGE_PIN BA32 IOSTANDARD LVCMOS18 } [get_ports { SW[3] }];\r\n") file.write("set_property -dict { PACKAGE_PIN AW30 IOSTANDARD LVCMOS18 } [get_ports { SW[4] }];\r\n") file.write("set_property -dict { PACKAGE_PIN AY30 IOSTANDARD LVCMOS33 } [get_ports { SW[5] }];\r\n") file.write("set_property -dict { PACKAGE_PIN BA30 IOSTANDARD LVCMOS18 } [get_ports { SW[6] }];\r\n") file.write("set_property -dict { PACKAGE_PIN BB31 IOSTANDARD LVCMOS18 } [get_ports { SW[7] }];\r\n") elif(FPGA=='A735'): file.write("set_property -dict { PACKAGE_PIN A8 IOSTANDARD LVCMOS33 } [get_ports { SW[0] }];\r\n") file.write("set_property -dict { PACKAGE_PIN C11 IOSTANDARD LVCMOS33 } [get_ports { SW[1] }];\r\n") file.write("set_property -dict { PACKAGE_PIN C10 IOSTANDARD LVCMOS33 } [get_ports { SW[2] }];\r\n") file.write("set_property -dict { PACKAGE_PIN A10 IOSTANDARD LVCMOS33 } [get_ports { SW[3] }];\r\n") elif(FPGA=='A7100'): file.write("set_property -dict { PACKAGE_PIN A8 IOSTANDARD LVCMOS33 } [get_ports { SW[0] }];\r\n") file.write("set_property -dict { PACKAGE_PIN C11 IOSTANDARD LVCMOS33 } [get_ports { SW[1] }];\r\n") file.write("set_property -dict { PACKAGE_PIN C10 IOSTANDARD LVCMOS33 } [get_ports { SW[2] }];\r\n") file.write("set_property -dict { PACKAGE_PIN A10 IOSTANDARD LVCMOS33 } [get_ports { SW[3] }];\r\n") file.write("\r\n") def addUART(file, FPGA=DEFAULT_FPGA): file.write("#Uart\r\n") if(FPGA=='VC709'): file.write("set_property -dict { PACKAGE_PIN AU36 IOSTANDARD LVCMOS18 } [get_ports { TX }];\r\n") elif(FPGA=='A735'): file.write("set_property -dict { PACKAGE_PIN D10 IOSTANDARD LVCMOS33 } [get_ports { TX }];\r\n") file.write("#set_property -dict {PACKAGE_PIN A9 IOSTANDARD LVCMOS33 } [get_ports RX];\r\n") elif(FPGA=='A7100'): file.write("set_property -dict { PACKAGE_PIN D10 IOSTANDARD LVCMOS33 } [get_ports { TX }];\r\n") file.write("#set_property -dict {PACKAGE_PIN A9 IOSTANDARD LVCMOS33 } [get_ports RX];\r\n") file.write("\r\n") def addButtons(file, FPGA=DEFAULT_FPGA): file.write("#Buttons\r\n") if(FPGA=='VC709'): file.write("set_property -dict { PACKAGE_PIN AV39 IOSTANDARD LVCMOS18 } [get_ports { BUTTON[0] }];\r\n") file.write("set_property -dict { PACKAGE_PIN AW40 IOSTANDARD LVCMOS18 } [get_ports { BUTTON[1] }];\r\n") file.write("set_property -dict { PACKAGE_PIN AP40 IOSTANDARD LVCMOS18 } [get_ports { BUTTON[2] }];\r\n") file.write("set_property -dict { PACKAGE_PIN AU38 IOSTANDARD LVCMOS18 } [get_ports { BUTTON[3] }];\r\n") file.write("set_property -dict { PACKAGE_PIN AR40 IOSTANDARD LVCMOS18 } [get_ports { BUTTON[4] }];\r\n") elif(FPGA=='A735'): file.write("set_property -dict { PACKAGE_PIN D9 IOSTANDARD LVCMOS33 } [get_ports { BUTTON[0] }];\r\n") file.write("set_property -dict { PACKAGE_PIN C9 IOSTANDARD LVCMOS33 } [get_ports { BUTTON[1] }];\r\n") file.write("set_property -dict { PACKAGE_PIN B9 IOSTANDARD LVCMOS33 } [get_ports { BUTTON[2] }];\r\n") file.write("set_property -dict { PACKAGE_PIN B8 IOSTANDARD LVCMOS33 } [get_ports { BUTTON[3] }];\r\n") elif(FPGA=='A7100'): file.write("set_property -dict { PACKAGE_PIN D9 IOSTANDARD LVCMOS33 } [get_ports { BUTTON[0] }];\r\n") file.write("set_property -dict { PACKAGE_PIN C9 IOSTANDARD LVCMOS33 } [get_ports { BUTTON[1] }];\r\n") file.write("set_property -dict { PACKAGE_PIN B9 IOSTANDARD LVCMOS33 } [get_ports { BUTTON[2] }];\r\n") file.write("set_property -dict { PACKAGE_PIN B8 IOSTANDARD LVCMOS33 } [get_ports { BUTTON[3] }];\r\n") file.write("\r\n") def addClockBlock(file, FPGA=DEFAULT_FPGA): file.write("create_pblock pblock_clk_div\r\n") file.write("add_cells_to_pblock [get_pblocks pblock_clk_div] [get_cells -quiet [list clk_div]]\r\n") if(FPGA=='VC709'): file.write("resize_pblock [get_pblocks pblock_clk_div] -add {SLICE_X196Y475:SLICE_X221Y499}\r\n") file.write("resize_pblock [get_pblocks pblock_clk_div] -add {RAMB18_X13Y190:RAMB18_X14Y199}\r\n") file.write("resize_pblock [get_pblocks pblock_clk_div] -add {RAMB36_X13Y95:RAMB36_X14Y99}\r\n") elif(FPGA=='A735'): file.write("resize_pblock [get_pblocks pblock_clk_div] -add {SLICE_X36Y134:SLICE_X57Y149}\r\n") file.write("resize_pblock [get_pblocks pblock_clk_div] -add {RAMB18_X1Y54:RAMB18_X1Y59}\r\n") file.write("resize_pblock [get_pblocks pblock_clk_div] -add {RAMB36_X1Y27:RAMB36_X1Y29}\r\n") file.write("set_property BEL MMCME2_ADV [get_cells clk_div/MMCME2_ADV_inst]\r\n") file.write("set_property LOC MMCME2_ADV_X1Y1 [get_cells clk_div/MMCME2_ADV_inst]\r\n") elif(FPGA=='A7100'): file.write("resize_pblock [get_pblocks pblock_clk_div] -add {SLICE_X66Y134:SLICE_X79Y149}\r\n") file.write("resize_pblock [get_pblocks pblock_clk_div] -add {RAMB18_X2Y54:RAMB18_X2Y59}\r\n") file.write("resize_pblock [get_pblocks pblock_clk_div] -add {RAMB36_X2Y27:RAMB36_X2Y29}\r\n") file.write("set_property BEL MMCME2_ADV [get_cells clk_div/MMCME2_ADV_inst]\r\n") file.write("set_property LOC MMCME2_ADV_X1Y1 [get_cells clk_div/MMCME2_ADV_inst]\r\n") file.write("set_property SNAPPING_MODE ON [get_pblocks pblock_clk_div]\r\n") file.write("\r\n") def addUARTCtrlBlock(file, FPGA=DEFAULT_FPGA): file.write("create_pblock pblock_uart_ctrl\r\n") file.write("add_cells_to_pblock [get_pblocks pblock_uart_ctrl] [get_cells -quiet [list uart_ctrl]]\r\n") if(FPGA=='VC709'): file.write("resize_pblock [get_pblocks pblock_uart_ctrl] -add {SLICE_X170Y475:SLICE_X195Y499}\r\n") file.write("resize_pblock [get_pblocks pblock_uart_ctrl] -add {RAMB18_X11Y190:RAMB18_X12Y199}\r\n") file.write("resize_pblock [get_pblocks pblock_uart_ctrl] -add {RAMB36_X11Y95:RAMB36_X12Y99}\r\n") elif(FPGA=='A735'): file.write("resize_pblock [get_pblocks pblock_uart_ctrl] -add {SLICE_X36Y118:SLICE_X57Y133}\r\n") file.write("resize_pblock [get_pblocks pblock_uart_ctrl] -add {RAMB18_X1Y50:RAMB18_X1Y51}\r\n") file.write("resize_pblock [get_pblocks pblock_uart_ctrl] -add {RAMB36_X1Y25:RAMB36_X1Y25}\r\n") elif(FPGA=='A7100'): file.write("resize_pblock [get_pblocks pblock_uart_ctrl] -add {SLICE_X52Y134:SLICE_X65Y149}\r\n") file.write("resize_pblock [get_pblocks pblock_uart_ctrl] -add {RAMB18_X1Y54:RAMB18_X1Y59}\r\n") file.write("resize_pblock [get_pblocks pblock_uart_ctrl] -add {RAMB36_X1Y27:RAMB36_X1Y29}\r\n") file.write("set_property SNAPPING_MODE ON [get_pblocks pblock_uart_ctrl]\r\n") file.write("\r\n") def addRRAMCtrlBlock(file, FPGA=DEFAULT_FPGA): file.write("create_pblock pblock_rram_ctrl\r\n") file.write("add_cells_to_pblock [get_pblocks pblock_rram_ctrl] [get_cells -quiet [list rram_ctrl instdb]]\r\n") if(FPGA=='VC709'): file.write("resize_pblock [get_pblocks pblock_rram_ctrl] -add {SLICE_X170Y0:SLICE_X221Y474}\r\n") file.write("resize_pblock [get_pblocks pblock_rram_ctrl] -add {RAMB18_X11Y0:RAMB18_X14Y189}\r\n") file.write("resize_pblock [get_pblocks pblock_rram_ctrl] -add {RAMB36_X11Y0:RAMB36_X14Y94}\r\n") elif(FPGA=='A735'): file.write("resize_pblock [get_pblocks pblock_rram_ctrl] -add {SLICE_X36Y0:SLICE_X65Y99}\r\n") file.write("resize_pblock [get_pblocks pblock_rram_ctrl] -add {RAMB18_X1Y0:RAMB18_X2Y39}\r\n") file.write("resize_pblock [get_pblocks pblock_rram_ctrl] -add {RAMB36_X1Y0:RAMB36_X2Y19}\r\n") elif(FPGA=='A7100'): file.write("resize_pblock [get_pblocks pblock_rram_ctrl] -add {SLICE_X52Y0:SLICE_X79Y133}\r\n") file.write("resize_pblock [get_pblocks pblock_rram_ctrl] -add {RAMB18_X1Y0:RAMB18_X2Y51}\r\n") file.write("resize_pblock [get_pblocks pblock_rram_ctrl] -add {RAMB36_X1Y0:RAMB36_X2Y25}\r\n") file.write("set_property SNAPPING_MODE ON [get_pblocks pblock_rram_ctrl]\r\n") file.write("\r\n")
default_fpga = 'VC709' def add_clock(file, FPGA=DEFAULT_FPGA): file.write('#Clock Source\r\n') if FPGA == 'VC709': file.write('set_property IOSTANDARD DIFF_SSTL15 [get_ports clk_p]\r\n') file.write('set_property PACKAGE_PIN H19 [get_ports clk_p]\r\n') file.write('set_property PACKAGE_PIN G18 [get_ports clk_n]\r\n') file.write('set_property IOSTANDARD DIFF_SSTL15 [get_ports clk_n]\r\n') elif FPGA == 'A735': file.write('set_property -dict {PACKAGE_PIN E3 IOSTANDARD LVCMOS33} [get_ports CLK]\r\n') file.write('create_clock -period 10.000 -name sys_clk_pin -waveform {0.000 5.000} -add [get_ports CLK]\r\n') elif FPGA == 'A7100': file.write('set_property -dict {PACKAGE_PIN E3 IOSTANDARD LVCMOS33} [get_ports CLK]\r\n') file.write('create_clock -period 10.000 -name sys_clk_pin -waveform {0.000 5.000} -add [get_ports CLK]\r\n') file.write('\r\n') def add_led(file, FPGA=DEFAULT_FPGA): file.write('#LEDs\r\n') if FPGA == 'VC709': file.write('set_property -dict { PACKAGE_PIN AM39 IOSTANDARD LVCMOS18 } [get_ports { LED[0] }];\r\n') file.write('set_property -dict { PACKAGE_PIN AN39 IOSTANDARD LVCMOS18 } [get_ports { LED[1] }];\r\n') file.write('set_property -dict { PACKAGE_PIN AR37 IOSTANDARD LVCMOS18 } [get_ports { LED[2] }];\r\n') file.write('set_property -dict { PACKAGE_PIN AT37 IOSTANDARD LVCMOS18 } [get_ports { LED[3] }];\r\n') file.write('set_property -dict { PACKAGE_PIN AR35 IOSTANDARD LVCMOS18 } [get_ports { LED[4] }];\r\n') file.write('set_property -dict { PACKAGE_PIN AP41 IOSTANDARD LVCMOS18 } [get_ports { LED[5] }];\r\n') file.write('set_property -dict { PACKAGE_PIN AP42 IOSTANDARD LVCMOS18 } [get_ports { LED[6] }];\r\n') file.write('set_property -dict { PACKAGE_PIN AU39 IOSTANDARD LVCMOS18 } [get_ports { LED[7] }];\r\n') elif FPGA == 'A735': file.write('set_property -dict { PACKAGE_PIN H5 IOSTANDARD LVCMOS33 } [get_ports { LED[0] }];\r\n') file.write('set_property -dict { PACKAGE_PIN J5 IOSTANDARD LVCMOS33 } [get_ports { LED[1] }];\r\n') file.write('set_property -dict { PACKAGE_PIN T9 IOSTANDARD LVCMOS33 } [get_ports { LED[2] }];\r\n') file.write('set_property -dict { PACKAGE_PIN T10 IOSTANDARD LVCMOS33 } [get_ports { LED[3] }];\r\n') elif FPGA == 'A7100': file.write('set_property -dict { PACKAGE_PIN H5 IOSTANDARD LVCMOS33 } [get_ports { LED[0] }];\r\n') file.write('set_property -dict { PACKAGE_PIN J5 IOSTANDARD LVCMOS33 } [get_ports { LED[1] }];\r\n') file.write('set_property -dict { PACKAGE_PIN T9 IOSTANDARD LVCMOS33 } [get_ports { LED[2] }];\r\n') file.write('set_property -dict { PACKAGE_PIN T10 IOSTANDARD LVCMOS33 } [get_ports { LED[3] }];\r\n') file.write('\r\n') def add_switches(file, FPGA=DEFAULT_FPGA): file.write('#Switches\r\n') if FPGA == 'VC709': file.write('set_property -dict { PACKAGE_PIN AV30 IOSTANDARD LVCMOS18 } [get_ports { SW[0] }];\r\n') file.write('set_property -dict { PACKAGE_PIN AY33 IOSTANDARD LVCMOS18 } [get_ports { SW[1] }];\r\n') file.write('set_property -dict { PACKAGE_PIN BA31 IOSTANDARD LVCMOS18 } [get_ports { SW[2] }];\r\n') file.write('set_property -dict { PACKAGE_PIN BA32 IOSTANDARD LVCMOS18 } [get_ports { SW[3] }];\r\n') file.write('set_property -dict { PACKAGE_PIN AW30 IOSTANDARD LVCMOS18 } [get_ports { SW[4] }];\r\n') file.write('set_property -dict { PACKAGE_PIN AY30 IOSTANDARD LVCMOS33 } [get_ports { SW[5] }];\r\n') file.write('set_property -dict { PACKAGE_PIN BA30 IOSTANDARD LVCMOS18 } [get_ports { SW[6] }];\r\n') file.write('set_property -dict { PACKAGE_PIN BB31 IOSTANDARD LVCMOS18 } [get_ports { SW[7] }];\r\n') elif FPGA == 'A735': file.write('set_property -dict { PACKAGE_PIN A8 IOSTANDARD LVCMOS33 } [get_ports { SW[0] }];\r\n') file.write('set_property -dict { PACKAGE_PIN C11 IOSTANDARD LVCMOS33 } [get_ports { SW[1] }];\r\n') file.write('set_property -dict { PACKAGE_PIN C10 IOSTANDARD LVCMOS33 } [get_ports { SW[2] }];\r\n') file.write('set_property -dict { PACKAGE_PIN A10 IOSTANDARD LVCMOS33 } [get_ports { SW[3] }];\r\n') elif FPGA == 'A7100': file.write('set_property -dict { PACKAGE_PIN A8 IOSTANDARD LVCMOS33 } [get_ports { SW[0] }];\r\n') file.write('set_property -dict { PACKAGE_PIN C11 IOSTANDARD LVCMOS33 } [get_ports { SW[1] }];\r\n') file.write('set_property -dict { PACKAGE_PIN C10 IOSTANDARD LVCMOS33 } [get_ports { SW[2] }];\r\n') file.write('set_property -dict { PACKAGE_PIN A10 IOSTANDARD LVCMOS33 } [get_ports { SW[3] }];\r\n') file.write('\r\n') def add_uart(file, FPGA=DEFAULT_FPGA): file.write('#Uart\r\n') if FPGA == 'VC709': file.write('set_property -dict { PACKAGE_PIN AU36 IOSTANDARD LVCMOS18 } [get_ports { TX }];\r\n') elif FPGA == 'A735': file.write('set_property -dict { PACKAGE_PIN D10 IOSTANDARD LVCMOS33 } [get_ports { TX }];\r\n') file.write('#set_property -dict {PACKAGE_PIN A9 IOSTANDARD LVCMOS33 } [get_ports RX];\r\n') elif FPGA == 'A7100': file.write('set_property -dict { PACKAGE_PIN D10 IOSTANDARD LVCMOS33 } [get_ports { TX }];\r\n') file.write('#set_property -dict {PACKAGE_PIN A9 IOSTANDARD LVCMOS33 } [get_ports RX];\r\n') file.write('\r\n') def add_buttons(file, FPGA=DEFAULT_FPGA): file.write('#Buttons\r\n') if FPGA == 'VC709': file.write('set_property -dict { PACKAGE_PIN AV39 IOSTANDARD LVCMOS18 } [get_ports { BUTTON[0] }];\r\n') file.write('set_property -dict { PACKAGE_PIN AW40 IOSTANDARD LVCMOS18 } [get_ports { BUTTON[1] }];\r\n') file.write('set_property -dict { PACKAGE_PIN AP40 IOSTANDARD LVCMOS18 } [get_ports { BUTTON[2] }];\r\n') file.write('set_property -dict { PACKAGE_PIN AU38 IOSTANDARD LVCMOS18 } [get_ports { BUTTON[3] }];\r\n') file.write('set_property -dict { PACKAGE_PIN AR40 IOSTANDARD LVCMOS18 } [get_ports { BUTTON[4] }];\r\n') elif FPGA == 'A735': file.write('set_property -dict { PACKAGE_PIN D9 IOSTANDARD LVCMOS33 } [get_ports { BUTTON[0] }];\r\n') file.write('set_property -dict { PACKAGE_PIN C9 IOSTANDARD LVCMOS33 } [get_ports { BUTTON[1] }];\r\n') file.write('set_property -dict { PACKAGE_PIN B9 IOSTANDARD LVCMOS33 } [get_ports { BUTTON[2] }];\r\n') file.write('set_property -dict { PACKAGE_PIN B8 IOSTANDARD LVCMOS33 } [get_ports { BUTTON[3] }];\r\n') elif FPGA == 'A7100': file.write('set_property -dict { PACKAGE_PIN D9 IOSTANDARD LVCMOS33 } [get_ports { BUTTON[0] }];\r\n') file.write('set_property -dict { PACKAGE_PIN C9 IOSTANDARD LVCMOS33 } [get_ports { BUTTON[1] }];\r\n') file.write('set_property -dict { PACKAGE_PIN B9 IOSTANDARD LVCMOS33 } [get_ports { BUTTON[2] }];\r\n') file.write('set_property -dict { PACKAGE_PIN B8 IOSTANDARD LVCMOS33 } [get_ports { BUTTON[3] }];\r\n') file.write('\r\n') def add_clock_block(file, FPGA=DEFAULT_FPGA): file.write('create_pblock pblock_clk_div\r\n') file.write('add_cells_to_pblock [get_pblocks pblock_clk_div] [get_cells -quiet [list clk_div]]\r\n') if FPGA == 'VC709': file.write('resize_pblock [get_pblocks pblock_clk_div] -add {SLICE_X196Y475:SLICE_X221Y499}\r\n') file.write('resize_pblock [get_pblocks pblock_clk_div] -add {RAMB18_X13Y190:RAMB18_X14Y199}\r\n') file.write('resize_pblock [get_pblocks pblock_clk_div] -add {RAMB36_X13Y95:RAMB36_X14Y99}\r\n') elif FPGA == 'A735': file.write('resize_pblock [get_pblocks pblock_clk_div] -add {SLICE_X36Y134:SLICE_X57Y149}\r\n') file.write('resize_pblock [get_pblocks pblock_clk_div] -add {RAMB18_X1Y54:RAMB18_X1Y59}\r\n') file.write('resize_pblock [get_pblocks pblock_clk_div] -add {RAMB36_X1Y27:RAMB36_X1Y29}\r\n') file.write('set_property BEL MMCME2_ADV [get_cells clk_div/MMCME2_ADV_inst]\r\n') file.write('set_property LOC MMCME2_ADV_X1Y1 [get_cells clk_div/MMCME2_ADV_inst]\r\n') elif FPGA == 'A7100': file.write('resize_pblock [get_pblocks pblock_clk_div] -add {SLICE_X66Y134:SLICE_X79Y149}\r\n') file.write('resize_pblock [get_pblocks pblock_clk_div] -add {RAMB18_X2Y54:RAMB18_X2Y59}\r\n') file.write('resize_pblock [get_pblocks pblock_clk_div] -add {RAMB36_X2Y27:RAMB36_X2Y29}\r\n') file.write('set_property BEL MMCME2_ADV [get_cells clk_div/MMCME2_ADV_inst]\r\n') file.write('set_property LOC MMCME2_ADV_X1Y1 [get_cells clk_div/MMCME2_ADV_inst]\r\n') file.write('set_property SNAPPING_MODE ON [get_pblocks pblock_clk_div]\r\n') file.write('\r\n') def add_uart_ctrl_block(file, FPGA=DEFAULT_FPGA): file.write('create_pblock pblock_uart_ctrl\r\n') file.write('add_cells_to_pblock [get_pblocks pblock_uart_ctrl] [get_cells -quiet [list uart_ctrl]]\r\n') if FPGA == 'VC709': file.write('resize_pblock [get_pblocks pblock_uart_ctrl] -add {SLICE_X170Y475:SLICE_X195Y499}\r\n') file.write('resize_pblock [get_pblocks pblock_uart_ctrl] -add {RAMB18_X11Y190:RAMB18_X12Y199}\r\n') file.write('resize_pblock [get_pblocks pblock_uart_ctrl] -add {RAMB36_X11Y95:RAMB36_X12Y99}\r\n') elif FPGA == 'A735': file.write('resize_pblock [get_pblocks pblock_uart_ctrl] -add {SLICE_X36Y118:SLICE_X57Y133}\r\n') file.write('resize_pblock [get_pblocks pblock_uart_ctrl] -add {RAMB18_X1Y50:RAMB18_X1Y51}\r\n') file.write('resize_pblock [get_pblocks pblock_uart_ctrl] -add {RAMB36_X1Y25:RAMB36_X1Y25}\r\n') elif FPGA == 'A7100': file.write('resize_pblock [get_pblocks pblock_uart_ctrl] -add {SLICE_X52Y134:SLICE_X65Y149}\r\n') file.write('resize_pblock [get_pblocks pblock_uart_ctrl] -add {RAMB18_X1Y54:RAMB18_X1Y59}\r\n') file.write('resize_pblock [get_pblocks pblock_uart_ctrl] -add {RAMB36_X1Y27:RAMB36_X1Y29}\r\n') file.write('set_property SNAPPING_MODE ON [get_pblocks pblock_uart_ctrl]\r\n') file.write('\r\n') def add_rram_ctrl_block(file, FPGA=DEFAULT_FPGA): file.write('create_pblock pblock_rram_ctrl\r\n') file.write('add_cells_to_pblock [get_pblocks pblock_rram_ctrl] [get_cells -quiet [list rram_ctrl instdb]]\r\n') if FPGA == 'VC709': file.write('resize_pblock [get_pblocks pblock_rram_ctrl] -add {SLICE_X170Y0:SLICE_X221Y474}\r\n') file.write('resize_pblock [get_pblocks pblock_rram_ctrl] -add {RAMB18_X11Y0:RAMB18_X14Y189}\r\n') file.write('resize_pblock [get_pblocks pblock_rram_ctrl] -add {RAMB36_X11Y0:RAMB36_X14Y94}\r\n') elif FPGA == 'A735': file.write('resize_pblock [get_pblocks pblock_rram_ctrl] -add {SLICE_X36Y0:SLICE_X65Y99}\r\n') file.write('resize_pblock [get_pblocks pblock_rram_ctrl] -add {RAMB18_X1Y0:RAMB18_X2Y39}\r\n') file.write('resize_pblock [get_pblocks pblock_rram_ctrl] -add {RAMB36_X1Y0:RAMB36_X2Y19}\r\n') elif FPGA == 'A7100': file.write('resize_pblock [get_pblocks pblock_rram_ctrl] -add {SLICE_X52Y0:SLICE_X79Y133}\r\n') file.write('resize_pblock [get_pblocks pblock_rram_ctrl] -add {RAMB18_X1Y0:RAMB18_X2Y51}\r\n') file.write('resize_pblock [get_pblocks pblock_rram_ctrl] -add {RAMB36_X1Y0:RAMB36_X2Y25}\r\n') file.write('set_property SNAPPING_MODE ON [get_pblocks pblock_rram_ctrl]\r\n') file.write('\r\n')
class Calculator: def __init__(self, a: int, b: int) -> None: self.a = a self.b = b def suma(self): return self.a + self.b def resta(self): return self.a - self.b def multiplicacion(self): return self.a * self.b def division(self): try: return self.a / self.b except ZeroDivisionError: return('No se puede dividir entre cero') def potencia(self): return self.a ** self.b def raiz(self): if(self.a < 0): return('No se puede sacar raiz a un numero negativo') else: return self.a ** 1/self.b
class Calculator: def __init__(self, a: int, b: int) -> None: self.a = a self.b = b def suma(self): return self.a + self.b def resta(self): return self.a - self.b def multiplicacion(self): return self.a * self.b def division(self): try: return self.a / self.b except ZeroDivisionError: return 'No se puede dividir entre cero' def potencia(self): return self.a ** self.b def raiz(self): if self.a < 0: return 'No se puede sacar raiz a un numero negativo' else: return self.a ** 1 / self.b
RICK_DB_VERSION = ["0", "9", "4"] def get_version(): return ".".join(RICK_DB_VERSION)
rick_db_version = ['0', '9', '4'] def get_version(): return '.'.join(RICK_DB_VERSION)
#Displays Bot Username ***Required*** name = '#Insert Bot Username Here#' #Bot User ID ***Required*** uid = '#Insert Bot User ID Here#' #Banner List (This is for On-Account-Creation Banner RNG) banner_list = ['https://cdn.discordapp.com/attachments/461057214749081600/468314847147196416/image.gif', 'https://cdn.discordapp.com/attachments/455987115407441921/469294412082446346/image-4.gif', 'https://cdn.discordapp.com/attachments/455987115407441921/469294413332480000/image-5.gif', 'https://cdn.discordapp.com/attachments/455987115407441921/469294414091780106/test3-1.gif'] #Bot Profile URL ***Required*** url = '#Insert the URL of the image you use for the bot here' #Bot Token **REQUIRED (BOT IS NOT RUNNABLE WITHOUT TOKEN)** token = 'Put your Token Here' #Prefix ***REQUIRED*** prefix = '~~' #Color color = 0x00000
name = '#Insert Bot Username Here#' uid = '#Insert Bot User ID Here#' banner_list = ['https://cdn.discordapp.com/attachments/461057214749081600/468314847147196416/image.gif', 'https://cdn.discordapp.com/attachments/455987115407441921/469294412082446346/image-4.gif', 'https://cdn.discordapp.com/attachments/455987115407441921/469294413332480000/image-5.gif', 'https://cdn.discordapp.com/attachments/455987115407441921/469294414091780106/test3-1.gif'] url = '#Insert the URL of the image you use for the bot here' token = 'Put your Token Here' prefix = '~~' color = 0
class YandexAPIError(Exception): error_codes = { 401: "ERR_KEY_INVALID", 402: "ERR_KEY_BLOCKED", 403: "ERR_DAILY_REQ_LIMIT_EXCEEDED", 413: "ERR_TEXT_TOO_LONG", 501: "ERR_LANG_NOT_SUPPORTED", } def __init__(self, response: dict = None): status_code = response.get('code') message = response.get('message') error_name = self.error_codes.get(status_code, "UNKNOWN_ERROR") super(YandexAPIError, self).__init__(status_code, error_name, message) class YandexDictionaryError(Exception): pass
class Yandexapierror(Exception): error_codes = {401: 'ERR_KEY_INVALID', 402: 'ERR_KEY_BLOCKED', 403: 'ERR_DAILY_REQ_LIMIT_EXCEEDED', 413: 'ERR_TEXT_TOO_LONG', 501: 'ERR_LANG_NOT_SUPPORTED'} def __init__(self, response: dict=None): status_code = response.get('code') message = response.get('message') error_name = self.error_codes.get(status_code, 'UNKNOWN_ERROR') super(YandexAPIError, self).__init__(status_code, error_name, message) class Yandexdictionaryerror(Exception): pass
class InsertConflictError(Exception): pass class OptimisticLockError(Exception): pass
class Insertconflicterror(Exception): pass class Optimisticlockerror(Exception): pass
# puzzle easy // https://www.codingame.com/ide/puzzle/sudoku-validator # needed values row_, column_, grid_3x3, sol = [], [], [], [] valid = [1, 2, 3, 4, 5, 6, 7, 8, 9] subgrid = False # needed functions def check(arr): for _ in arr: tmp = valid.copy() for s in _: if s in tmp: tmp.remove(s) if tmp != []: return False return True # sudoku in [row][cal] for i in range(9): tmp = [] for j in input().split(): tmp.append(int(j)) row_+=[tmp] # sudoku in [cal][row] for row in range(len(row_)): tmp = [] for cal in range(len(row_)): tmp.append(row_[cal][row]) column_+=[tmp] # sudoku in 3x3 subgrids for _ in [[1,1],[1,4],[1,7],[4,1],[4,4],[4,7],[7,1],[7,4],[7,7]]: tmp = [row_[_[0]][_[1]]] # root tmp.append(row_[_[0]-1][_[1]]); tmp.append(row_[_[0]+1][_[1]]) # up/ down tmp.append(row_[_[0]][_[1]+1]); tmp.append(row_[_[0]][_[1]-1]) # left/ right tmp.append(row_[_[0]-1][_[1]-1]); tmp.append(row_[_[0]-1][_[1]+1]) # diagonal up tmp.append(row_[_[0]+1][_[1]-1]); tmp.append(row_[_[0]+1][_[1]+1]) # diagonal down if sum(tmp) != 45: subgrid = False; break else: subgrid = True # check if row and column values are different for _ in [row_, column_]: sol.append(check(_)) # print solution if sol[0] is True and sol[1] is True and subgrid is True: print('true') else: print('false')
(row_, column_, grid_3x3, sol) = ([], [], [], []) valid = [1, 2, 3, 4, 5, 6, 7, 8, 9] subgrid = False def check(arr): for _ in arr: tmp = valid.copy() for s in _: if s in tmp: tmp.remove(s) if tmp != []: return False return True for i in range(9): tmp = [] for j in input().split(): tmp.append(int(j)) row_ += [tmp] for row in range(len(row_)): tmp = [] for cal in range(len(row_)): tmp.append(row_[cal][row]) column_ += [tmp] for _ in [[1, 1], [1, 4], [1, 7], [4, 1], [4, 4], [4, 7], [7, 1], [7, 4], [7, 7]]: tmp = [row_[_[0]][_[1]]] tmp.append(row_[_[0] - 1][_[1]]) tmp.append(row_[_[0] + 1][_[1]]) tmp.append(row_[_[0]][_[1] + 1]) tmp.append(row_[_[0]][_[1] - 1]) tmp.append(row_[_[0] - 1][_[1] - 1]) tmp.append(row_[_[0] - 1][_[1] + 1]) tmp.append(row_[_[0] + 1][_[1] - 1]) tmp.append(row_[_[0] + 1][_[1] + 1]) if sum(tmp) != 45: subgrid = False break else: subgrid = True for _ in [row_, column_]: sol.append(check(_)) if sol[0] is True and sol[1] is True and (subgrid is True): print('true') else: print('false')
# # (c) Copyright 2021 Micro Focus or one of its affiliates. # class ErrorMessage: GENERAL_ERROR = "Something went wrong" OA_SERVICE_CAN_NOT_BE_NONE = "service_endpoint can not be empty" MAX_ATTEMPTS_CAN_NOT_BE_NONE = "max_attempts can not be empty" USERNAME_CAN_NOT_BE_NONE = "username can not be empty" PASSWORD_CAN_NOT_BE_NONE = "password can not be empty" OKTA_CLIENT_CAN_NOT_BE_NONE = "client_id can not be empty" OKTA_AUTH_ENDPOINT_CAN_NOT_BE_NONE = "auth_endpont can not be empty" LOGIN_FAILED_BAD_USERNAME_OR_PASSWORD = "Failed to login, please check your okta url, username and password." ERROR_CONFIG_CONFIG_NOT_EXIST = "config file does not exists, please run: va config" ERROR_CONFIG_CONFIG_NOT_READABLE = "config file can not be read, please check permission" ERROR_CONFIG_CONFIG_NOT_WRITEABLE = "config file can not be write, please check permission" ERROR_CREDENTIAL_CONFIG_NOT_EXIST = "credential file does not exists, please run: va config" ERROR_CREDENTIAL_CONFIG_NOT_READABLE = "credential file can not be read, please check permission" ERROR_CREDENTIAL_CONFIG_NOT_WRITEABLE = "credential file can not be write, please check permission" ERROR_STATE_PARAM_VERIFY_FAILED = "failed to verify state param" ERROR_VERIFY_ACCESS_TOKEN_FAIL = "Error in verifying the access_token, please login and try again." ERROR_ACCESS_TOKEN_FILE_NOT_FOUND = "Access token file not found, please login and try again."
class Errormessage: general_error = 'Something went wrong' oa_service_can_not_be_none = 'service_endpoint can not be empty' max_attempts_can_not_be_none = 'max_attempts can not be empty' username_can_not_be_none = 'username can not be empty' password_can_not_be_none = 'password can not be empty' okta_client_can_not_be_none = 'client_id can not be empty' okta_auth_endpoint_can_not_be_none = 'auth_endpont can not be empty' login_failed_bad_username_or_password = 'Failed to login, please check your okta url, username and password.' error_config_config_not_exist = 'config file does not exists, please run: va config' error_config_config_not_readable = 'config file can not be read, please check permission' error_config_config_not_writeable = 'config file can not be write, please check permission' error_credential_config_not_exist = 'credential file does not exists, please run: va config' error_credential_config_not_readable = 'credential file can not be read, please check permission' error_credential_config_not_writeable = 'credential file can not be write, please check permission' error_state_param_verify_failed = 'failed to verify state param' error_verify_access_token_fail = 'Error in verifying the access_token, please login and try again.' error_access_token_file_not_found = 'Access token file not found, please login and try again.'
DEBUG=False # bool value # True for debug output ADC_URL='http://192.168.1.1' # str value # URL to FortiADC Management/API interface ADC_USERNAME='certificate_admin' # str value # Administrator account on FortiADC # Account requires only System Read-Write Access Profile ADC_PASSWORD='ChangeThisPassword' # str value # Administrator account password on FortiADC CERT_NAME='letsencrypt_certificate' # str value # Name of certificate in FortiADC SQUASH_SSL=True # bool value # True to squash SSL warnings
debug = False adc_url = 'http://192.168.1.1' adc_username = 'certificate_admin' adc_password = 'ChangeThisPassword' cert_name = 'letsencrypt_certificate' squash_ssl = True
############################################# # Author: Hongwei Fan # # E-mail: hwnorm@outlook.com # # Homepage: https://github.com/hwfan # ############################################# def format_size(num_size): try: num_size = float(num_size) KB = num_size / 1024 except: return "Error" if KB >= 1024: M = KB / 1024 if M >= 1024: G = M / 1024 return '%.3f GB' % G else: return '%.3f MB' % M else: return '%.3f KB' % KB
def format_size(num_size): try: num_size = float(num_size) kb = num_size / 1024 except: return 'Error' if KB >= 1024: m = KB / 1024 if M >= 1024: g = M / 1024 return '%.3f GB' % G else: return '%.3f MB' % M else: return '%.3f KB' % KB
ACRONYM = "PMC" def promoter(**identifier_properties): unique_data_string = [ identifier_properties.get("name", "NoName"), identifier_properties.get("pos1", "NoPos1"), identifier_properties.get("transcriptionStartSite", {}).get("leftEndPosition", "NoTSSLEND"), identifier_properties.get("transcriptionStartSite", {}).get("rightEndPosition", "NoTSSREND") ] return unique_data_string
acronym = 'PMC' def promoter(**identifier_properties): unique_data_string = [identifier_properties.get('name', 'NoName'), identifier_properties.get('pos1', 'NoPos1'), identifier_properties.get('transcriptionStartSite', {}).get('leftEndPosition', 'NoTSSLEND'), identifier_properties.get('transcriptionStartSite', {}).get('rightEndPosition', 'NoTSSREND')] return unique_data_string
# Configuration values # Edit this file to match your server settings and options config = { 'usenet_server': 'news.easynews.com', 'usenet_port': 119, 'usenet_username': '', 'usenet_password': '', 'database_server': 'localhost', 'database_port': 27017, 'max_run_size': 1000000 # Max number of articles (not NZBs) to process in a single run. }
config = {'usenet_server': 'news.easynews.com', 'usenet_port': 119, 'usenet_username': '', 'usenet_password': '', 'database_server': 'localhost', 'database_port': 27017, 'max_run_size': 1000000}
class TarsError(Exception): pass class SyncError(TarsError): pass class PackageError(TarsError): pass
class Tarserror(Exception): pass class Syncerror(TarsError): pass class Packageerror(TarsError): pass
MAGIC = { "xls": "{D0 CF 11}", "html": None }
magic = {'xls': '{D0 CF 11}', 'html': None}
def generate_key(n): letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" key = {} cnt = 0 for c in letters: key[c] = letters[(cnt + n) % len(letters)] cnt += 1 return key def encrypt(key, message): cipher = "" for c in message: if c in key: cipher += key[c] else: cipher += c return cipher def get_decryption_key(key): dkey = {} for c in key: dkey[key[c]] = c return dkey key = generate_key(3) cipher = encrypt(key, "YOU ARE AWESOME") print(cipher) dkey = get_decryption_key(key) message = encrypt(dkey, cipher) print(message)
def generate_key(n): letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' key = {} cnt = 0 for c in letters: key[c] = letters[(cnt + n) % len(letters)] cnt += 1 return key def encrypt(key, message): cipher = '' for c in message: if c in key: cipher += key[c] else: cipher += c return cipher def get_decryption_key(key): dkey = {} for c in key: dkey[key[c]] = c return dkey key = generate_key(3) cipher = encrypt(key, 'YOU ARE AWESOME') print(cipher) dkey = get_decryption_key(key) message = encrypt(dkey, cipher) print(message)
# Library targets for DashToHls. These minimize external dependencies (such # as OpenSSL) so other projects can depend on them without bringing in # unnecessary dependencies. { 'target_defaults': { 'xcode_settings': { 'CLANG_ENABLE_OBJC_ARC': [ 'YES' ], }, }, 'targets': [ { 'target_name': 'DashToHlsLibrary', 'type': 'static_library', 'xcode_settings': { 'GCC_PREFIX_HEADER': 'DashToHls_osx.pch', 'CLANG_CXX_LIBRARY': 'libc++', }, 'direct_dependent_settings': { 'include_dirs': [ '../include', '..', ] }, 'include_dirs': [ '..', ], 'conditions': [ ['OS=="mac"', { 'defines': [ 'USE_AVFRAMEWORK', ], 'sources': [ 'dash_to_hls_api_avframework.h', 'dash_to_hls_api_avframework.mm', ], }], ['OS=="ios"', { 'defines': [ 'USE_AVFRAMEWORK', ], 'sources': [ 'dash_to_hls_api_avframework.h', 'dash_to_hls_api_avframework.mm', ], }], ], 'sources': [ '../include/DashToHlsApi.h', '../include/DashToHlsApiAVFramework.h', 'dash_to_hls_api.cc', 'dash_to_hls_session.h', 'utilities.cc', 'utilities.h', ], 'dependencies': [ 'DashToHlsDash', 'DashToHlsDefaultDiagnosticCallback', 'DashToHlsPs', 'DashToHlsTs', ], }, { 'target_name': 'DashToHlsDash', 'type': 'static_library', 'xcode_settings': { 'GCC_PREFIX_HEADER': 'DashToHls_osx.pch', 'CLANG_CXX_LIBRARY': 'libc++', }, 'include_dirs': [ '..', ], 'direct_dependent_settings': { 'include_dirs': [ '..', ], }, 'sources': [ 'bit_reader.cc', 'bit_reader.h', 'utilities.h', 'utilities.cc', '<!@(find dash -type f -name "*.h")', '<!@(find dash -type f -name "*.cc" ! -name "*_test.cc")', ], }, { 'target_name': 'DashToHlsPs', 'type': 'static_library', 'xcode_settings': { 'GCC_PREFIX_HEADER': 'DashToHls_osx.pch', 'CLANG_CXX_LIBRARY': 'libc++', }, 'include_dirs': [ '..', ], 'sources': [ 'utilities.h', 'utilities.cc', '<!@(find ps -type f -name "*.h")', '<!@(find ps -type f -name "*.cc" ! -name "*_test.cc")', ], }, { 'target_name': 'DashToHlsTs', 'type': 'static_library', 'xcode_settings': { 'GCC_PREFIX_HEADER': 'DashToHls_osx.pch', 'CLANG_CXX_LIBRARY': 'libc++', }, 'include_dirs': [ '..', ], 'sources': [ 'adts/adts_out.cc', 'adts/adts_out.h', 'ts/transport_stream_out.cc', 'ts/transport_stream_out.h', ], }, # Note: If you depend on any of the sub-libraries here, you either need to # depend on this to implement the DashToHlsDefaultDiagnosticCallback # function, or, implement it yourself. Otherwise, the project will fail to # link. { 'target_name': 'DashToHlsDefaultDiagnosticCallback', 'type': 'static_library', 'xcode_settings': { 'GCC_PREFIX_HEADER': 'DashToHls_osx.pch', 'CLANG_CXX_LIBRARY': 'libc++', }, 'sources': [ 'dash_to_hls_default_diagnostic_callback.mm', ], } ] }
{'target_defaults': {'xcode_settings': {'CLANG_ENABLE_OBJC_ARC': ['YES']}}, 'targets': [{'target_name': 'DashToHlsLibrary', 'type': 'static_library', 'xcode_settings': {'GCC_PREFIX_HEADER': 'DashToHls_osx.pch', 'CLANG_CXX_LIBRARY': 'libc++'}, 'direct_dependent_settings': {'include_dirs': ['../include', '..']}, 'include_dirs': ['..'], 'conditions': [['OS=="mac"', {'defines': ['USE_AVFRAMEWORK'], 'sources': ['dash_to_hls_api_avframework.h', 'dash_to_hls_api_avframework.mm']}], ['OS=="ios"', {'defines': ['USE_AVFRAMEWORK'], 'sources': ['dash_to_hls_api_avframework.h', 'dash_to_hls_api_avframework.mm']}]], 'sources': ['../include/DashToHlsApi.h', '../include/DashToHlsApiAVFramework.h', 'dash_to_hls_api.cc', 'dash_to_hls_session.h', 'utilities.cc', 'utilities.h'], 'dependencies': ['DashToHlsDash', 'DashToHlsDefaultDiagnosticCallback', 'DashToHlsPs', 'DashToHlsTs']}, {'target_name': 'DashToHlsDash', 'type': 'static_library', 'xcode_settings': {'GCC_PREFIX_HEADER': 'DashToHls_osx.pch', 'CLANG_CXX_LIBRARY': 'libc++'}, 'include_dirs': ['..'], 'direct_dependent_settings': {'include_dirs': ['..']}, 'sources': ['bit_reader.cc', 'bit_reader.h', 'utilities.h', 'utilities.cc', '<!@(find dash -type f -name "*.h")', '<!@(find dash -type f -name "*.cc" ! -name "*_test.cc")']}, {'target_name': 'DashToHlsPs', 'type': 'static_library', 'xcode_settings': {'GCC_PREFIX_HEADER': 'DashToHls_osx.pch', 'CLANG_CXX_LIBRARY': 'libc++'}, 'include_dirs': ['..'], 'sources': ['utilities.h', 'utilities.cc', '<!@(find ps -type f -name "*.h")', '<!@(find ps -type f -name "*.cc" ! -name "*_test.cc")']}, {'target_name': 'DashToHlsTs', 'type': 'static_library', 'xcode_settings': {'GCC_PREFIX_HEADER': 'DashToHls_osx.pch', 'CLANG_CXX_LIBRARY': 'libc++'}, 'include_dirs': ['..'], 'sources': ['adts/adts_out.cc', 'adts/adts_out.h', 'ts/transport_stream_out.cc', 'ts/transport_stream_out.h']}, {'target_name': 'DashToHlsDefaultDiagnosticCallback', 'type': 'static_library', 'xcode_settings': {'GCC_PREFIX_HEADER': 'DashToHls_osx.pch', 'CLANG_CXX_LIBRARY': 'libc++'}, 'sources': ['dash_to_hls_default_diagnostic_callback.mm']}]}
class DreamingAboutCarrots: def carrotsBetweenCarrots(self, x1, y1, x2, y2): (x1, x2), (y1, y2) = sorted([x1, x2]), sorted([y1, y2]) dx, dy = x2-x1, y2-y1 return sum( (x-x1)*dy - (y-y1)*dx == 0 for x in xrange(x1, x2+1) for y in xrange(y1, y2+1) ) - 2
class Dreamingaboutcarrots: def carrots_between_carrots(self, x1, y1, x2, y2): ((x1, x2), (y1, y2)) = (sorted([x1, x2]), sorted([y1, y2])) (dx, dy) = (x2 - x1, y2 - y1) return sum(((x - x1) * dy - (y - y1) * dx == 0 for x in xrange(x1, x2 + 1) for y in xrange(y1, y2 + 1))) - 2
#spotify spotify_token = "" spotify_client_id = "" user_id='' #youtube #scopes = ["https://www.googleapis.com/auth/youtube.force-ssl"]
spotify_token = '' spotify_client_id = '' user_id = ''
def peak(A): start = 0 end = len(A) - 1 while(start <= end): mid = start + (end - start)//2 if(mid > 0 and mid < len(A)-1): if(A[mid] > A[mid-1] and A[mid] > A[mid+1]): return A[mid] elif(A[mid] < A[mid-1]): end = mid -1 else: start = mid + 1 elif(mid == 0): if(A[0] > A[mid]): return 0 else: return 1 elif(mid == len(A)-1): if(A[-1] > A[len(A) -2]): return len(A)-1 else: return len(A) -2 A = [5, 1, 4, 3, 6, 8, 10, 7, 9] print(peak(A))
def peak(A): start = 0 end = len(A) - 1 while start <= end: mid = start + (end - start) // 2 if mid > 0 and mid < len(A) - 1: if A[mid] > A[mid - 1] and A[mid] > A[mid + 1]: return A[mid] elif A[mid] < A[mid - 1]: end = mid - 1 else: start = mid + 1 elif mid == 0: if A[0] > A[mid]: return 0 else: return 1 elif mid == len(A) - 1: if A[-1] > A[len(A) - 2]: return len(A) - 1 else: return len(A) - 2 a = [5, 1, 4, 3, 6, 8, 10, 7, 9] print(peak(A))
{ SchemaConfigRoot: { SchemaType: SchemaTypeArray, SchemaRule: [ CheckForeachAsType(PDBConst.DB) ] }, PDBConst.DB: { SchemaType: SchemaTypeDict, SchemaRule: [ HasKey(PDBConst.Name, PDBConst.Tables) ] }, PDBConst.Name: { SchemaType: SchemaTypeString }, PDBConst.Tables: { SchemaType: SchemaTypeArray, SchemaRule: [ CheckForeachAsType(PDBConst.Table) ] }, PDBConst.Table: { SchemaType: SchemaTypeDict, SchemaRule: [ HasKey(PDBConst.Name, PDBConst.Columns) ] }, PDBConst.Columns: { SchemaType: SchemaTypeArray, SchemaRule: [ CheckForeachAsType(PDBConst.Column) ] }, PDBConst.Column: { SchemaType: SchemaTypeDict, SchemaRule: [ HasKey(PDBConst.Name, PDBConst.Attributes) ] }, PDBConst.Attributes: { SchemaType: SchemaTypeArray }, PDBConst.Initials: { SchemaType: SchemaTypeArray, }, PDBConst.Value: { SchemaType: SchemaTypeString }, PDBConst.PrimaryKey: { SchemaType: SchemaTypeArray } }
{SchemaConfigRoot: {SchemaType: SchemaTypeArray, SchemaRule: [check_foreach_as_type(PDBConst.DB)]}, PDBConst.DB: {SchemaType: SchemaTypeDict, SchemaRule: [has_key(PDBConst.Name, PDBConst.Tables)]}, PDBConst.Name: {SchemaType: SchemaTypeString}, PDBConst.Tables: {SchemaType: SchemaTypeArray, SchemaRule: [check_foreach_as_type(PDBConst.Table)]}, PDBConst.Table: {SchemaType: SchemaTypeDict, SchemaRule: [has_key(PDBConst.Name, PDBConst.Columns)]}, PDBConst.Columns: {SchemaType: SchemaTypeArray, SchemaRule: [check_foreach_as_type(PDBConst.Column)]}, PDBConst.Column: {SchemaType: SchemaTypeDict, SchemaRule: [has_key(PDBConst.Name, PDBConst.Attributes)]}, PDBConst.Attributes: {SchemaType: SchemaTypeArray}, PDBConst.Initials: {SchemaType: SchemaTypeArray}, PDBConst.Value: {SchemaType: SchemaTypeString}, PDBConst.PrimaryKey: {SchemaType: SchemaTypeArray}}
# Time: init:O(len(nums)), update: O(logn), sumRange: O(logn) # Space: init:O(len(nums)), update: O(1), sumRange: O(1) class NumArray: def __init__(self, nums: List[int]): self.n = len(nums) self.arr = [None]*(2*self.n-1) last_row_index = 0 for index in range(self.n-1, 2*self.n-1): self.arr[index] = nums[last_row_index] last_row_index+=1 for index in range(self.n-2,-1,-1): self.arr[index] = self.arr[index*2+1] + self.arr[index*2+2] # print(self.arr) def update(self, i: int, val: int) -> None: i = self.n+i-1 diff = val-self.arr[i] while i>=0: self.arr[i]+=diff if i%2==0: # right_child i = i//2-1 else: # left_child i = i//2 # print(self.arr) def sumRange(self, i: int, j: int) -> int: i = self.n+i-1 j = self.n+j-1 cur_sum = 0 while i<=j: # print(i,j) if i%2==0: # right_child cur_sum+=self.arr[i] i+=1 if j%2==1: # left_child cur_sum+=self.arr[j] j-=1 i = i//2 # index i is guaranteed to be left_child j = j//2-1 # index j is guaranteed to be right_child return cur_sum # Your NumArray object will be instantiated and called as such: # obj = NumArray(nums) # obj.update(i,val) # param_2 = obj.sumRange(i,j)
class Numarray: def __init__(self, nums: List[int]): self.n = len(nums) self.arr = [None] * (2 * self.n - 1) last_row_index = 0 for index in range(self.n - 1, 2 * self.n - 1): self.arr[index] = nums[last_row_index] last_row_index += 1 for index in range(self.n - 2, -1, -1): self.arr[index] = self.arr[index * 2 + 1] + self.arr[index * 2 + 2] def update(self, i: int, val: int) -> None: i = self.n + i - 1 diff = val - self.arr[i] while i >= 0: self.arr[i] += diff if i % 2 == 0: i = i // 2 - 1 else: i = i // 2 def sum_range(self, i: int, j: int) -> int: i = self.n + i - 1 j = self.n + j - 1 cur_sum = 0 while i <= j: if i % 2 == 0: cur_sum += self.arr[i] i += 1 if j % 2 == 1: cur_sum += self.arr[j] j -= 1 i = i // 2 j = j // 2 - 1 return cur_sum
# Author: Melissa Perez # Date: --/--/-- # Description: # Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def addTwoNumbers(self, l1: Optional[ListNode], l2: Optional[ListNode]) -> Optional[ListNode]: l1_runner = l1 l2_runner = l2 sum_list = ListNode() sum_list_runner = sum_list carry = 0 while l1_runner or l2_runner: if l1_runner and l2_runner: digit_sum = l1_runner.val + l2_runner.val + carry elif l2_runner is None: digit_sum = carry + l1_runner.val elif l1_runner is None: digit_sum = carry + l2_runner.val result = digit_sum % 10 carry = 1 if digit_sum >= 10 else 0 sum_list_runner.next = ListNode(val=result) sum_list_runner = sum_list_runner.next if l2_runner is not None: l2_runner = l2_runner.next if l1_runner is not None: l1_runner = l1_runner.next if carry: sum_list_runner.next = ListNode(val=carry) return sum_list.next
class Solution: def add_two_numbers(self, l1: Optional[ListNode], l2: Optional[ListNode]) -> Optional[ListNode]: l1_runner = l1 l2_runner = l2 sum_list = list_node() sum_list_runner = sum_list carry = 0 while l1_runner or l2_runner: if l1_runner and l2_runner: digit_sum = l1_runner.val + l2_runner.val + carry elif l2_runner is None: digit_sum = carry + l1_runner.val elif l1_runner is None: digit_sum = carry + l2_runner.val result = digit_sum % 10 carry = 1 if digit_sum >= 10 else 0 sum_list_runner.next = list_node(val=result) sum_list_runner = sum_list_runner.next if l2_runner is not None: l2_runner = l2_runner.next if l1_runner is not None: l1_runner = l1_runner.next if carry: sum_list_runner.next = list_node(val=carry) return sum_list.next
namespace = "reflex_takktile2" takktile2_config = {} all_joint_names = ["%s_f1"%namespace, "%s_f2"%namespace, "%s_f3"%namespace, "%s_preshape"%namespace] joint_limits = [{'lower': 0.0, 'upper': 3.14}, {'lower': 0.0, 'upper': 3.14}, {'lower': 0.0, 'upper': 3.14}, {'lower': 0.0, 'upper': 3.14/2}] takktile2_config['all_joint_names'] = all_joint_names takktile2_config['joint_limits'] = joint_limits
namespace = 'reflex_takktile2' takktile2_config = {} all_joint_names = ['%s_f1' % namespace, '%s_f2' % namespace, '%s_f3' % namespace, '%s_preshape' % namespace] joint_limits = [{'lower': 0.0, 'upper': 3.14}, {'lower': 0.0, 'upper': 3.14}, {'lower': 0.0, 'upper': 3.14}, {'lower': 0.0, 'upper': 3.14 / 2}] takktile2_config['all_joint_names'] = all_joint_names takktile2_config['joint_limits'] = joint_limits
class Paths(object): qradio_path = '' python_path = '' def __init__(self): qradio_path = 'path_to_cli_qradio.py' python_path = ''
class Paths(object): qradio_path = '' python_path = '' def __init__(self): qradio_path = 'path_to_cli_qradio.py' python_path = ''
# Copyright (c) 2010 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'chromium_code': 1, # Use higher warning level. }, 'target_defaults': { 'conditions': [ # Linux shared libraries should always be built -fPIC. # # TODO(ajwong): For internal pepper plugins, which are statically linked # into chrome, do we want to build w/o -fPIC? If so, how can we express # that in the build system? ['OS=="linux" or OS=="openbsd" or OS=="freebsd" or OS=="solaris"', { 'cflags': ['-fPIC', '-fvisibility=hidden'], # This is needed to make the Linux shlib build happy. Without this, # -fvisibility=hidden gets stripped by the exclusion in common.gypi # that is triggered when a shared library build is specified. 'cflags/': [['include', '^-fvisibility=hidden$']], }], ], }, 'includes': [ 'ppapi_cpp.gypi', 'ppapi_gl.gypi', 'ppapi_shared_proxy.gypi', 'ppapi_tests.gypi', ], }
{'variables': {'chromium_code': 1}, 'target_defaults': {'conditions': [['OS=="linux" or OS=="openbsd" or OS=="freebsd" or OS=="solaris"', {'cflags': ['-fPIC', '-fvisibility=hidden'], 'cflags/': [['include', '^-fvisibility=hidden$']]}]]}, 'includes': ['ppapi_cpp.gypi', 'ppapi_gl.gypi', 'ppapi_shared_proxy.gypi', 'ppapi_tests.gypi']}
class Bike: name = '' color= ' ' price = 0 def info(self, name, color, price): self.name, self.color, self.price = name,color,price print("{}: {} and {}".format(self.name,self.color,self.price))
class Bike: name = '' color = ' ' price = 0 def info(self, name, color, price): (self.name, self.color, self.price) = (name, color, price) print('{}: {} and {}'.format(self.name, self.color, self.price))
# # PySNMP MIB module DISMAN-EXPRESSION-MIB (http://pysnmp.sf.net) # ASN.1 source http://mibs.snmplabs.com:80/asn1/DISMAN-EXPRESSION-MIB # Produced by pysmi-0.0.7 at Sun Feb 14 00:07:59 2016 # On host bldfarm platform Linux version 4.1.13-100.fc21.x86_64 by user goose # Using Python version 3.5.0 (default, Jan 5 2016, 17:11:52) # ( ObjectIdentifier, Integer, OctetString, ) = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") ( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ( ConstraintsUnion, ValueSizeConstraint, ConstraintsIntersection, SingleValueConstraint, ValueRangeConstraint, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueSizeConstraint", "ConstraintsIntersection", "SingleValueConstraint", "ValueRangeConstraint") ( SnmpAdminString, ) = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString") ( ModuleCompliance, NotificationGroup, ObjectGroup, ) = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup", "ObjectGroup") ( sysUpTime, ) = mibBuilder.importSymbols("SNMPv2-MIB", "sysUpTime") ( Gauge32, Bits, Unsigned32, Counter64, ObjectIdentity, zeroDotZero, TimeTicks, ModuleIdentity, Integer32, IpAddress, Counter32, mib_2, iso, NotificationType, MibIdentifier, MibScalar, MibTable, MibTableRow, MibTableColumn, ) = mibBuilder.importSymbols("SNMPv2-SMI", "Gauge32", "Bits", "Unsigned32", "Counter64", "ObjectIdentity", "zeroDotZero", "TimeTicks", "ModuleIdentity", "Integer32", "IpAddress", "Counter32", "mib-2", "iso", "NotificationType", "MibIdentifier", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn") ( DisplayString, TruthValue, TimeStamp, TextualConvention, RowStatus, ) = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TruthValue", "TimeStamp", "TextualConvention", "RowStatus") dismanExpressionMIB = ModuleIdentity((1, 3, 6, 1, 2, 1, 90)).setRevisions(("2000-10-16 00:00",)) if mibBuilder.loadTexts: dismanExpressionMIB.setLastUpdated('200010160000Z') if mibBuilder.loadTexts: dismanExpressionMIB.setOrganization('IETF Distributed Management Working Group') if mibBuilder.loadTexts: dismanExpressionMIB.setContactInfo('Ramanathan Kavasseri\n Cisco Systems, Inc.\n 170 West Tasman Drive,\n San Jose CA 95134-1706.\n Phone: +1 408 527 2446\n Email: ramk@cisco.com') if mibBuilder.loadTexts: dismanExpressionMIB.setDescription('The MIB module for defining expressions of MIB objects for\n management purposes.') dismanExpressionMIBObjects = MibIdentifier((1, 3, 6, 1, 2, 1, 90, 1)) expResource = MibIdentifier((1, 3, 6, 1, 2, 1, 90, 1, 1)) expDefine = MibIdentifier((1, 3, 6, 1, 2, 1, 90, 1, 2)) expValue = MibIdentifier((1, 3, 6, 1, 2, 1, 90, 1, 3)) expResourceDeltaMinimum = MibScalar((1, 3, 6, 1, 2, 1, 90, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(-1,-1),ValueRangeConstraint(1,600),))).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: expResourceDeltaMinimum.setDescription("The minimum expExpressionDeltaInterval this system will\n accept. A system may use the larger values of this minimum to\n lessen the impact of constantly computing deltas. For larger\n delta sampling intervals the system samples less often and\n suffers less overhead. This object provides a way to enforce\n such lower overhead for all expressions created after it is\n set.\n\n The value -1 indicates that expResourceDeltaMinimum is\n irrelevant as the system will not accept 'deltaValue' as a\n value for expObjectSampleType.\n\n Unless explicitly resource limited, a system's value for\n this object should be 1, allowing as small as a 1 second\n interval for ongoing delta sampling.\n\n Changing this value will not invalidate an existing setting\n of expObjectSampleType.") expResourceDeltaWildcardInstanceMaximum = MibScalar((1, 3, 6, 1, 2, 1, 90, 1, 1, 2), Unsigned32()).setUnits('instances').setMaxAccess("readwrite") if mibBuilder.loadTexts: expResourceDeltaWildcardInstanceMaximum.setDescription("For every instance of a deltaValue object, one dynamic instance\n entry is needed for holding the instance value from the previous\n sample, i.e. to maintain state.\n\n This object limits maximum number of dynamic instance entries\n this system will support for wildcarded delta objects in\n expressions. For a given delta expression, the number of\n dynamic instances is the number of values that meet all criteria\n to exist times the number of delta values in the expression.\n\n A value of 0 indicates no preset limit, that is, the limit\n is dynamic based on system operation and resources.\n\n Unless explicitly resource limited, a system's value for\n this object should be 0.\n\n\n Changing this value will not eliminate or inhibit existing delta\n wildcard instance objects but will prevent the creation of more\n such objects.\n\n An attempt to allocate beyond the limit results in expErrorCode\n being tooManyWildcardValues for that evaluation attempt.") expResourceDeltaWildcardInstances = MibScalar((1, 3, 6, 1, 2, 1, 90, 1, 1, 3), Gauge32()).setUnits('instances').setMaxAccess("readonly") if mibBuilder.loadTexts: expResourceDeltaWildcardInstances.setDescription('The number of currently active instance entries as\n defined for expResourceDeltaWildcardInstanceMaximum.') expResourceDeltaWildcardInstancesHigh = MibScalar((1, 3, 6, 1, 2, 1, 90, 1, 1, 4), Gauge32()).setUnits('instances').setMaxAccess("readonly") if mibBuilder.loadTexts: expResourceDeltaWildcardInstancesHigh.setDescription('The highest value of expResourceDeltaWildcardInstances\n that has occurred since initialization of the managed\n system.') expResourceDeltaWildcardInstanceResourceLacks = MibScalar((1, 3, 6, 1, 2, 1, 90, 1, 1, 5), Counter32()).setUnits('instances').setMaxAccess("readonly") if mibBuilder.loadTexts: expResourceDeltaWildcardInstanceResourceLacks.setDescription('The number of times this system could not evaluate an\n expression because that would have created a value instance in\n excess of expResourceDeltaWildcardInstanceMaximum.') expExpressionTable = MibTable((1, 3, 6, 1, 2, 1, 90, 1, 2, 1), ) if mibBuilder.loadTexts: expExpressionTable.setDescription('A table of expression definitions.') expExpressionEntry = MibTableRow((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1), ).setIndexNames((0, "DISMAN-EXPRESSION-MIB", "expExpressionOwner"), (0, "DISMAN-EXPRESSION-MIB", "expExpressionName")) if mibBuilder.loadTexts: expExpressionEntry.setDescription("Information about a single expression. New expressions\n can be created using expExpressionRowStatus.\n\n To create an expression first create the named entry in this\n table. Then use expExpressionName to populate expObjectTable.\n For expression evaluation to succeed all related entries in\n expExpressionTable and expObjectTable must be 'active'. If\n these conditions are not met the corresponding values in\n expValue simply are not instantiated.\n\n Deleting an entry deletes all related entries in expObjectTable\n and expErrorTable.\n\n Because of the relationships among the multiple tables for an\n expression (expExpressionTable, expObjectTable, and\n expValueTable) and the SNMP rules for independence in setting\n object values, it is necessary to do final error checking when\n an expression is evaluated, that is, when one of its instances\n in expValueTable is read or a delta interval expires. Earlier\n checking need not be done and an implementation may not impose\n any ordering on the creation of objects related to an\n expression.\n\n To maintain security of MIB information, when creating a new row in\n this table, the managed system must record the security credentials\n of the requester. These security credentials are the parameters\n necessary as inputs to isAccessAllowed from the Architecture for\n\n Describing SNMP Management Frameworks. When obtaining the objects\n that make up the expression, the system must (conceptually) use\n isAccessAllowed to ensure that it does not violate security.\n\n The evaluation of the expression takes place under the\n security credentials of the creator of its expExpressionEntry.\n\n Values of read-write objects in this table may be changed\n\n at any time.") expExpressionOwner = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 1), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0,32))) if mibBuilder.loadTexts: expExpressionOwner.setDescription('The owner of this entry. The exact semantics of this\n string are subject to the security policy defined by the\n security administrator.') expExpressionName = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 2), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1,32))) if mibBuilder.loadTexts: expExpressionName.setDescription('The name of the expression. This is locally unique, within\n the scope of an expExpressionOwner.') expExpression = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1,1024))).setMaxAccess("readcreate") if mibBuilder.loadTexts: expExpression.setDescription("The expression to be evaluated. This object is the same\n as a DisplayString (RFC 1903) except for its maximum length.\n\n Except for the variable names the expression is in ANSI C\n syntax. Only the subset of ANSI C operators and functions\n listed here is allowed.\n\n Variables are expressed as a dollar sign ('$') and an\n\n integer that corresponds to an expObjectIndex. An\n example of a valid expression is:\n\n ($1-$5)*100\n\n Expressions must not be recursive, that is although an expression\n may use the results of another expression, it must not contain\n any variable that is directly or indirectly a result of its own\n evaluation. The managed system must check for recursive\n expressions.\n\n The only allowed operators are:\n\n ( )\n - (unary)\n + - * / %\n & | ^ << >> ~\n ! && || == != > >= < <=\n\n Note the parentheses are included for parenthesizing the\n expression, not for casting data types.\n\n The only constant types defined are:\n\n int (32-bit signed)\n long (64-bit signed)\n unsigned int\n unsigned long\n hexadecimal\n character\n string\n oid\n\n The default type for a positive integer is int unless it is too\n large in which case it is long.\n\n All but oid are as defined for ANSI C. Note that a\n hexadecimal constant may end up as a scalar or an array of\n 8-bit integers. A string constant is enclosed in double\n quotes and may contain back-slashed individual characters\n as in ANSI C.\n\n An oid constant comprises 32-bit, unsigned integers and at\n least one period, for example:\n\n 0.\n .0\n 1.3.6.1\n\n No additional leading or trailing subidentifiers are automatically\n added to an OID constant. The constant is taken as expressed.\n\n Integer-typed objects are treated as 32- or 64-bit, signed\n or unsigned integers, as appropriate. The results of\n mixing them are as for ANSI C, including the type of the\n result. Note that a 32-bit value is thus promoted to 64 bits\n only in an operation with a 64-bit value. There is no\n provision for larger values to handle overflow.\n\n Relative to SNMP data types, a resulting value becomes\n unsigned when calculating it uses any unsigned value,\n including a counter. To force the final value to be of\n data type counter the expression must explicitly use the\n counter32() or counter64() function (defined below).\n\n OCTET STRINGS and OBJECT IDENTIFIERs are treated as\n one-dimensioned arrays of unsigned 8-bit integers and\n unsigned 32-bit integers, respectively.\n\n IpAddresses are treated as 32-bit, unsigned integers in\n network byte order, that is, the hex version of 255.0.0.0 is\n 0xff000000.\n\n Conditional expressions result in a 32-bit, unsigned integer\n of value 0 for false or 1 for true. When an arbitrary value\n is used as a boolean 0 is false and non-zero is true.\n\n Rules for the resulting data type from an operation, based on\n the operator:\n\n For << and >> the result is the same as the left hand operand.\n\n For &&, ||, ==, !=, <, <=, >, and >= the result is always\n Unsigned32.\n\n For unary - the result is always Integer32.\n\n For +, -, *, /, %, &, |, and ^ the result is promoted according\n to the following rules, in order from most to least preferred:\n\n If left hand and right hand operands are the same type,\n use that.\n\n If either side is Counter64, use that.\n\n If either side is IpAddress, use that.\n\n\n If either side is TimeTicks, use that.\n\n If either side is Counter32, use that.\n\n Otherwise use Unsigned32.\n\n The following rules say what operators apply with what data\n types. Any combination not explicitly defined does not work.\n\n For all operators any of the following can be the left hand or\n right hand operand: Integer32, Counter32, Unsigned32, Counter64.\n\n The operators +, -, *, /, %, <, <=, >, and >= work with\n TimeTicks.\n\n The operators &, |, and ^ work with IpAddress.\n\n The operators << and >> work with IpAddress but only as the\n left hand operand.\n\n The + operator performs a concatenation of two OCTET STRINGs or\n two OBJECT IDENTIFIERs.\n\n The operators &, | perform bitwise operations on OCTET STRINGs.\n If the OCTET STRING happens to be a DisplayString the results\n may be meaningless, but the agent system does not check this as\n some such systems do not have this information.\n\n The operators << and >> perform bitwise operations on OCTET\n STRINGs appearing as the left hand operand.\n\n The only functions defined are:\n\n counter32\n counter64\n arraySection\n stringBegins\n stringEnds\n stringContains\n oidBegins\n oidEnds\n oidContains\n average\n maximum\n minimum\n sum\n exists\n\n\n The following function definitions indicate their parameters by\n naming the data type of the parameter in the parameter's position\n in the parameter list. The parameter must be of the type indicated\n and generally may be a constant, a MIB object, a function, or an\n expression.\n\n counter32(integer) - wrapped around an integer value counter32\n forces Counter32 as a data type.\n\n counter64(integer) - similar to counter32 except that the\n resulting data type is 'counter64'.\n\n arraySection(array, integer, integer) - selects a piece of an\n array (i.e. part of an OCTET STRING or OBJECT IDENTIFIER). The\n integer arguments are in the range 0 to 4,294,967,295. The\n first is an initial array index (one-dimensioned) and the second\n is an ending array index. A value of 0 indicates first or last\n element, respectively. If the first element is larger than the\n array length the result is 0 length. If the second integer is\n less than or equal to the first, the result is 0 length. If the\n second is larger than the array length it indicates last\n element.\n\n stringBegins/Ends/Contains(octetString, octetString) - looks for\n the second string (which can be a string constant) in the first\n and returns the one-dimensioned arrayindex where the match began.\n A return value of 0 indicates no match (i.e. boolean false).\n\n oidBegins/Ends/Contains(oid, oid) - looks for the second OID\n (which can be an OID constant) in the first and returns the\n the one-dimensioned index where the match began. A return value\n of 0 indicates no match (i.e. boolean false).\n\n average/maximum/minimum(integer) - calculates the average,\n minimum, or maximum value of the integer valued object over\n multiple sample times. If the object disappears for any\n sample period, the accumulation and the resulting value object\n cease to exist until the object reappears at which point the\n calculation starts over.\n\n sum(integerObject*) - sums all available values of the\n wildcarded integer object, resulting in an integer scalar. Must\n be used with caution as it wraps on overflow with no\n notification.\n\n exists(anyTypeObject) - verifies the object instance exists. A\n return value of 0 indicates NoSuchInstance (i.e. boolean\n false).") expExpressionValueType = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8,))).clone(namedValues=NamedValues(("counter32", 1), ("unsigned32", 2), ("timeTicks", 3), ("integer32", 4), ("ipAddress", 5), ("octetString", 6), ("objectId", 7), ("counter64", 8),)).clone('counter32')).setMaxAccess("readcreate") if mibBuilder.loadTexts: expExpressionValueType.setDescription('The type of the expression value. One and only one of the\n value objects in expValueTable will be instantiated to match\n this type.\n\n If the result of the expression can not be made into this type,\n an invalidOperandType error will occur.') expExpressionComment = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 5), SnmpAdminString().clone(hexValue="")).setMaxAccess("readcreate") if mibBuilder.loadTexts: expExpressionComment.setDescription('A comment to explain the use or meaning of the expression.') expExpressionDeltaInterval = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0,86400))).setUnits('seconds').setMaxAccess("readcreate") if mibBuilder.loadTexts: expExpressionDeltaInterval.setDescription("Sampling interval for objects in this expression with\n expObjectSampleType 'deltaValue'.\n\n This object has no effect if the the expression has no\n deltaValue objects.\n\n A value of 0 indicates no automated sampling. In this case\n the delta is the difference from the last time the expression\n was evaluated. Note that this is subject to unpredictable\n delta times in the face of retries or multiple managers.\n\n A value greater than zero is the number of seconds between\n automated samples.\n\n Until the delta interval has expired once the delta for the\n\n object is effectively not instantiated and evaluating\n the expression has results as if the object itself were not\n instantiated.\n\n Note that delta values potentially consume large amounts of\n system CPU and memory. Delta state and processing must\n continue constantly even if the expression is not being used.\n That is, the expression is being evaluated every delta interval,\n even if no application is reading those values. For wildcarded\n objects this can be substantial overhead.\n\n Note that delta intervals, external expression value sampling\n intervals and delta intervals for expressions within other\n expressions can have unusual interactions as they are impossible\n to synchronize accurately. In general one interval embedded\n below another must be enough shorter that the higher sample\n sees relatively smooth, predictable behavior. So, for example,\n to avoid the higher level getting the same sample twice, the\n lower level should sample at least twice as fast as the higher\n level does.") expExpressionPrefix = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 7), ObjectIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: expExpressionPrefix.setDescription('An object prefix to assist an application in determining\n the instance indexing to use in expValueTable, relieving the\n application of the need to scan the expObjectTable to\n determine such a prefix.\n\n See expObjectTable for information on wildcarded objects.\n\n If the expValueInstance portion of the value OID may\n be treated as a scalar (that is, normally, 0) the value of\n expExpressionPrefix is zero length, that is, no OID at all.\n Note that zero length implies a null OID, not the OID 0.0.\n\n Otherwise, the value of expExpressionPrefix is the expObjectID\n value of any one of the wildcarded objects for the expression.\n This is sufficient, as the remainder, that is, the instance\n fragment relevant to instancing the values, must be the same for\n all wildcarded objects in the expression.') expExpressionErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: expExpressionErrors.setDescription('The number of errors encountered while evaluating this\n expression.\n\n Note that an object in the expression not being accessible,\n is not considered an error. An example of an inaccessible\n object is when the object is excluded from the view of the\n user whose security credentials are used in the expression\n evaluation. In such cases, it is a legitimate condition\n that causes the corresponding expression value not to be\n instantiated.') expExpressionEntryStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 9), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: expExpressionEntryStatus.setDescription('The control that allows creation and deletion of entries.') expErrorTable = MibTable((1, 3, 6, 1, 2, 1, 90, 1, 2, 2), ) if mibBuilder.loadTexts: expErrorTable.setDescription('A table of expression errors.') expErrorEntry = MibTableRow((1, 3, 6, 1, 2, 1, 90, 1, 2, 2, 1), ).setIndexNames((0, "DISMAN-EXPRESSION-MIB", "expExpressionOwner"), (0, "DISMAN-EXPRESSION-MIB", "expExpressionName")) if mibBuilder.loadTexts: expErrorEntry.setDescription('Information about errors in processing an expression.\n\n Entries appear in this table only when there is a matching\n expExpressionEntry and then only when there has been an\n error for that expression as reflected by the error codes\n defined for expErrorCode.') expErrorTime = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 2, 1, 1), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: expErrorTime.setDescription('The value of sysUpTime the last time an error caused a\n failure to evaluate this expression.') expErrorIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 2, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: expErrorIndex.setDescription('The one-dimensioned character array index into\n expExpression for where the error occurred. The value\n zero indicates irrelevance.') expErrorCode = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,))).clone(namedValues=NamedValues(("invalidSyntax", 1), ("undefinedObjectIndex", 2), ("unrecognizedOperator", 3), ("unrecognizedFunction", 4), ("invalidOperandType", 5), ("unmatchedParenthesis", 6), ("tooManyWildcardValues", 7), ("recursion", 8), ("deltaTooShort", 9), ("resourceUnavailable", 10), ("divideByZero", 11),))).setMaxAccess("readonly") if mibBuilder.loadTexts: expErrorCode.setDescription("The error that occurred. In the following explanations the\n expected timing of the error is in parentheses. 'S' means\n the error occurs on a Set request. 'E' means the error\n\n occurs on the attempt to evaluate the expression either due to\n Get from expValueTable or in ongoing delta processing.\n\n invalidSyntax the value sent for expExpression is not\n valid Expression MIB expression syntax\n (S)\n undefinedObjectIndex an object reference ($n) in\n expExpression does not have a matching\n instance in expObjectTable (E)\n unrecognizedOperator the value sent for expExpression held an\n unrecognized operator (S)\n unrecognizedFunction the value sent for expExpression held an\n unrecognized function name (S)\n invalidOperandType an operand in expExpression is not the\n right type for the associated operator\n or result (SE)\n unmatchedParenthesis the value sent for expExpression is not\n correctly parenthesized (S)\n tooManyWildcardValues evaluating the expression exceeded the\n limit set by\n expResourceDeltaWildcardInstanceMaximum\n (E)\n recursion through some chain of embedded\n expressions the expression invokes itself\n (E)\n deltaTooShort the delta for the next evaluation passed\n before the system could evaluate the\n present sample (E)\n resourceUnavailable some resource, typically dynamic memory,\n was unavailable (SE)\n divideByZero an attempt to divide by zero occurred\n (E)\n\n For the errors that occur when the attempt is made to set\n expExpression Set request fails with the SNMP error code\n 'wrongValue'. Such failures refer to the most recent failure to\n Set expExpression, not to the present value of expExpression\n which must be either unset or syntactically correct.\n\n Errors that occur during evaluation for a Get* operation return\n the SNMP error code 'genErr' except for 'tooManyWildcardValues'\n and 'resourceUnavailable' which return the SNMP error code\n 'resourceUnavailable'.") expErrorInstance = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 2, 1, 4), ObjectIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: expErrorInstance.setDescription('The expValueInstance being evaluated when the error\n occurred. A zero-length indicates irrelevance.') expObjectTable = MibTable((1, 3, 6, 1, 2, 1, 90, 1, 2, 3), ) if mibBuilder.loadTexts: expObjectTable.setDescription('A table of object definitions for each expExpression.\n\n Wildcarding instance IDs:\n\n It is legal to omit all or part of the instance portion for\n some or all of the objects in an expression. (See the\n DESCRIPTION of expObjectID for details. However, note that\n if more than one object in the same expression is wildcarded\n in this way, they all must be objects where that portion of\n the instance is the same. In other words, all objects may be\n in the same SEQUENCE or in different SEQUENCEs but with the\n same semantic index value (e.g., a value of ifIndex)\n for the wildcarded portion.') expObjectEntry = MibTableRow((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1), ).setIndexNames((0, "DISMAN-EXPRESSION-MIB", "expExpressionOwner"), (0, "DISMAN-EXPRESSION-MIB", "expExpressionName"), (0, "DISMAN-EXPRESSION-MIB", "expObjectIndex")) if mibBuilder.loadTexts: expObjectEntry.setDescription('Information about an object. An application uses\n expObjectEntryStatus to create entries in this table while\n in the process of defining an expression.\n\n Values of read-create objects in this table may be\n changed at any time.') expObjectIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1,4294967295))) if mibBuilder.loadTexts: expObjectIndex.setDescription("Within an expression, a unique, numeric identification for an\n object. Prefixed with a dollar sign ('$') this is used to\n reference the object in the corresponding expExpression.") expObjectID = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 2), ObjectIdentifier()).setMaxAccess("readcreate") if mibBuilder.loadTexts: expObjectID.setDescription('The OBJECT IDENTIFIER (OID) of this object. The OID may be\n fully qualified, meaning it includes a complete instance\n identifier part (e.g., ifInOctets.1 or sysUpTime.0), or it\n may not be fully qualified, meaning it may lack all or part\n of the instance identifier. If the expObjectID is not fully\n qualified, then expObjectWildcard must be set to true(1).\n The value of the expression will be multiple\n values, as if done for a GetNext sweep of the object.\n\n An object here may itself be the result of an expression but\n recursion is not allowed.\n\n NOTE: The simplest implementations of this MIB may not allow\n wildcards.') expObjectIDWildcard = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 3), TruthValue().clone('false')).setMaxAccess("readcreate") if mibBuilder.loadTexts: expObjectIDWildcard.setDescription('A true value indicates the expObjecID of this row is a wildcard\n object. False indicates that expObjectID is fully instanced.\n If all expObjectWildcard values for a given expression are FALSE,\n\n expExpressionPrefix will reflect a scalar object (i.e. will\n be 0.0).\n\n NOTE: The simplest implementations of this MIB may not allow\n wildcards.') expObjectSampleType = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3,))).clone(namedValues=NamedValues(("absoluteValue", 1), ("deltaValue", 2), ("changedValue", 3),)).clone('absoluteValue')).setMaxAccess("readcreate") if mibBuilder.loadTexts: expObjectSampleType.setDescription("The method of sampling the selected variable.\n\n An 'absoluteValue' is simply the present value of the object.\n\n A 'deltaValue' is the present value minus the previous value,\n which was sampled expExpressionDeltaInterval seconds ago.\n This is intended primarily for use with SNMP counters, which are\n meaningless as an 'absoluteValue', but may be used with any\n integer-based value.\n\n A 'changedValue' is a boolean for whether the present value is\n different from the previous value. It is applicable to any data\n type and results in an Unsigned32 with value 1 if the object's\n value is changed and 0 if not. In all other respects it is as a\n 'deltaValue' and all statements and operation regarding delta\n values apply to changed values.\n\n When an expression contains both delta and absolute values\n the absolute values are obtained at the end of the delta\n period.") sysUpTimeInstance = MibIdentifier((1, 3, 6, 1, 2, 1, 1, 3, 0)) expObjectDeltaDiscontinuityID = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 5), ObjectIdentifier().clone((1, 3, 6, 1, 2, 1, 1, 3, 0))).setMaxAccess("readcreate") if mibBuilder.loadTexts: expObjectDeltaDiscontinuityID.setDescription("The OBJECT IDENTIFIER (OID) of a TimeTicks, TimeStamp, or\n DateAndTime object that indicates a discontinuity in the value\n at expObjectID.\n\n\n This object is instantiated only if expObjectSampleType is\n 'deltaValue' or 'changedValue'.\n\n The OID may be for a leaf object (e.g. sysUpTime.0) or may\n be wildcarded to match expObjectID.\n\n This object supports normal checking for a discontinuity in a\n counter. Note that if this object does not point to sysUpTime\n discontinuity checking must still check sysUpTime for an overall\n discontinuity.\n\n If the object identified is not accessible no discontinuity\n check will be made.") expObjectDiscontinuityIDWildcard = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 6), TruthValue().clone('false')).setMaxAccess("readcreate") if mibBuilder.loadTexts: expObjectDiscontinuityIDWildcard.setDescription("A true value indicates the expObjectDeltaDiscontinuityID of\n this row is a wildcard object. False indicates that\n expObjectDeltaDiscontinuityID is fully instanced.\n\n This object is instantiated only if expObjectSampleType is\n 'deltaValue' or 'changedValue'.\n\n NOTE: The simplest implementations of this MIB may not allow\n wildcards.") expObjectDiscontinuityIDType = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3,))).clone(namedValues=NamedValues(("timeTicks", 1), ("timeStamp", 2), ("dateAndTime", 3),)).clone('timeTicks')).setMaxAccess("readcreate") if mibBuilder.loadTexts: expObjectDiscontinuityIDType.setDescription("The value 'timeTicks' indicates the expObjectDeltaDiscontinuityID\n of this row is of syntax TimeTicks. The value 'timeStamp' indicates\n syntax TimeStamp. The value 'dateAndTime indicates syntax\n DateAndTime.\n\n This object is instantiated only if expObjectSampleType is\n 'deltaValue' or 'changedValue'.") expObjectConditional = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 8), ObjectIdentifier().clone((0, 0))).setMaxAccess("readcreate") if mibBuilder.loadTexts: expObjectConditional.setDescription('The OBJECT IDENTIFIER (OID) of an object that overrides\n whether the instance of expObjectID is to be considered\n usable. If the value of the object at expObjectConditional\n is 0 or not instantiated, the object at expObjectID is\n treated as if it is not instantiated. In other words,\n expObjectConditional is a filter that controls whether or\n not to use the value at expObjectID.\n\n The OID may be for a leaf object (e.g. sysObjectID.0) or may be\n wildcarded to match expObjectID. If expObject is wildcarded and\n expObjectID in the same row is not, the wild portion of\n expObjectConditional must match the wildcarding of the rest of\n the expression. If no object in the expression is wildcarded\n but expObjectConditional is, use the lexically first instance\n (if any) of expObjectConditional.\n\n If the value of expObjectConditional is 0.0 operation is\n as if the value pointed to by expObjectConditional is a\n non-zero (true) value.\n\n Note that expObjectConditional can not trivially use an object\n of syntax TruthValue, since the underlying value is not 0 or 1.') expObjectConditionalWildcard = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 9), TruthValue().clone('false')).setMaxAccess("readcreate") if mibBuilder.loadTexts: expObjectConditionalWildcard.setDescription('A true value indicates the expObjectConditional of this row is\n a wildcard object. False indicates that expObjectConditional is\n fully instanced.\n\n NOTE: The simplest implementations of this MIB may not allow\n wildcards.') expObjectEntryStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 10), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: expObjectEntryStatus.setDescription('The control that allows creation/deletion of entries.\n\n Objects in this table may be changed while\n expObjectEntryStatus is in any state.') expValueTable = MibTable((1, 3, 6, 1, 2, 1, 90, 1, 3, 1), ) if mibBuilder.loadTexts: expValueTable.setDescription('A table of values from evaluated expressions.') expValueEntry = MibTableRow((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1), ).setIndexNames((0, "DISMAN-EXPRESSION-MIB", "expExpressionOwner"), (0, "DISMAN-EXPRESSION-MIB", "expExpressionName"), (1, "DISMAN-EXPRESSION-MIB", "expValueInstance")) if mibBuilder.loadTexts: expValueEntry.setDescription("A single value from an evaluated expression. For a given\n instance, only one 'Val' object in the conceptual row will be\n instantiated, that is, the one with the appropriate type for\n the value. For values that contain no objects of\n expObjectSampleType 'deltaValue' or 'changedValue', reading a\n value from the table causes the evaluation of the expression\n for that value. For those that contain a 'deltaValue' or\n 'changedValue' the value read is as of the last sampling\n interval.\n\n If in the attempt to evaluate the expression one or more\n of the necessary objects is not available, the corresponding\n entry in this table is effectively not instantiated.\n\n To maintain security of MIB information, when creating a new\n row in this table, the managed system must record the security\n credentials of the requester. These security credentials are\n the parameters necessary as inputs to isAccessAllowed from\n [RFC2571]. When obtaining the objects that make up the\n expression, the system must (conceptually) use isAccessAllowed to\n ensure that it does not violate security.\n\n The evaluation of that expression takes place under the\n\n security credentials of the creator of its expExpressionEntry.\n\n To maintain security of MIB information, expression evaluation must\n take place using security credentials for the implied Gets of the\n objects in the expression as inputs (conceptually) to\n isAccessAllowed from the Architecture for Describing SNMP\n Management Frameworks. These are the security credentials of the\n creator of the corresponding expExpressionEntry.") expValueInstance = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 1), ObjectIdentifier()) if mibBuilder.loadTexts: expValueInstance.setDescription("The final instance portion of a value's OID according to\n the wildcarding in instances of expObjectID for the\n expression. The prefix of this OID fragment is 0.0,\n leading to the following behavior.\n\n If there is no wildcarding, the value is 0.0.0. In other\n words, there is one value which standing alone would have\n been a scalar with a 0 at the end of its OID.\n\n If there is wildcarding, the value is 0.0 followed by\n a value that the wildcard can take, thus defining one value\n instance for each real, possible value of the wildcard.\n So, for example, if the wildcard worked out to be an ifIndex,\n there is an expValueInstance for each applicable ifIndex.") expValueCounter32Val = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: expValueCounter32Val.setDescription("The value when expExpressionValueType is 'counter32'.") expValueUnsigned32Val = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 3), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: expValueUnsigned32Val.setDescription("The value when expExpressionValueType is 'unsigned32'.") expValueTimeTicksVal = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 4), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: expValueTimeTicksVal.setDescription("The value when expExpressionValueType is 'timeTicks'.") expValueInteger32Val = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: expValueInteger32Val.setDescription("The value when expExpressionValueType is 'integer32'.") expValueIpAddressVal = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 6), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: expValueIpAddressVal.setDescription("The value when expExpressionValueType is 'ipAddress'.") expValueOctetStringVal = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0,65536))).setMaxAccess("readonly") if mibBuilder.loadTexts: expValueOctetStringVal.setDescription("The value when expExpressionValueType is 'octetString'.") expValueOidVal = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 8), ObjectIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: expValueOidVal.setDescription("The value when expExpressionValueType is 'objectId'.") expValueCounter64Val = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: expValueCounter64Val.setDescription("The value when expExpressionValueType is 'counter64'.") dismanExpressionMIBConformance = MibIdentifier((1, 3, 6, 1, 2, 1, 90, 3)) dismanExpressionMIBCompliances = MibIdentifier((1, 3, 6, 1, 2, 1, 90, 3, 1)) dismanExpressionMIBGroups = MibIdentifier((1, 3, 6, 1, 2, 1, 90, 3, 2)) dismanExpressionMIBCompliance = ModuleCompliance((1, 3, 6, 1, 2, 1, 90, 3, 1, 1)).setObjects(*(("DISMAN-EXPRESSION-MIB", "dismanExpressionResourceGroup"), ("DISMAN-EXPRESSION-MIB", "dismanExpressionDefinitionGroup"), ("DISMAN-EXPRESSION-MIB", "dismanExpressionValueGroup"),)) if mibBuilder.loadTexts: dismanExpressionMIBCompliance.setDescription('The compliance statement for entities which implement\n the Expression MIB.') dismanExpressionResourceGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 90, 3, 2, 1)).setObjects(*(("DISMAN-EXPRESSION-MIB", "expResourceDeltaMinimum"), ("DISMAN-EXPRESSION-MIB", "expResourceDeltaWildcardInstanceMaximum"), ("DISMAN-EXPRESSION-MIB", "expResourceDeltaWildcardInstances"), ("DISMAN-EXPRESSION-MIB", "expResourceDeltaWildcardInstancesHigh"), ("DISMAN-EXPRESSION-MIB", "expResourceDeltaWildcardInstanceResourceLacks"),)) if mibBuilder.loadTexts: dismanExpressionResourceGroup.setDescription('Expression definition resource management.') dismanExpressionDefinitionGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 90, 3, 2, 2)).setObjects(*(("DISMAN-EXPRESSION-MIB", "expExpression"), ("DISMAN-EXPRESSION-MIB", "expExpressionValueType"), ("DISMAN-EXPRESSION-MIB", "expExpressionComment"), ("DISMAN-EXPRESSION-MIB", "expExpressionDeltaInterval"), ("DISMAN-EXPRESSION-MIB", "expExpressionPrefix"), ("DISMAN-EXPRESSION-MIB", "expExpressionErrors"), ("DISMAN-EXPRESSION-MIB", "expExpressionEntryStatus"), ("DISMAN-EXPRESSION-MIB", "expErrorTime"), ("DISMAN-EXPRESSION-MIB", "expErrorIndex"), ("DISMAN-EXPRESSION-MIB", "expErrorCode"), ("DISMAN-EXPRESSION-MIB", "expErrorInstance"), ("DISMAN-EXPRESSION-MIB", "expObjectID"), ("DISMAN-EXPRESSION-MIB", "expObjectIDWildcard"), ("DISMAN-EXPRESSION-MIB", "expObjectSampleType"), ("DISMAN-EXPRESSION-MIB", "expObjectDeltaDiscontinuityID"), ("DISMAN-EXPRESSION-MIB", "expObjectDiscontinuityIDWildcard"), ("DISMAN-EXPRESSION-MIB", "expObjectDiscontinuityIDType"), ("DISMAN-EXPRESSION-MIB", "expObjectConditional"), ("DISMAN-EXPRESSION-MIB", "expObjectConditionalWildcard"), ("DISMAN-EXPRESSION-MIB", "expObjectEntryStatus"),)) if mibBuilder.loadTexts: dismanExpressionDefinitionGroup.setDescription('Expression definition.') dismanExpressionValueGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 90, 3, 2, 3)).setObjects(*(("DISMAN-EXPRESSION-MIB", "expValueCounter32Val"), ("DISMAN-EXPRESSION-MIB", "expValueUnsigned32Val"), ("DISMAN-EXPRESSION-MIB", "expValueTimeTicksVal"), ("DISMAN-EXPRESSION-MIB", "expValueInteger32Val"), ("DISMAN-EXPRESSION-MIB", "expValueIpAddressVal"), ("DISMAN-EXPRESSION-MIB", "expValueOctetStringVal"), ("DISMAN-EXPRESSION-MIB", "expValueOidVal"), ("DISMAN-EXPRESSION-MIB", "expValueCounter64Val"),)) if mibBuilder.loadTexts: dismanExpressionValueGroup.setDescription('Expression value.') mibBuilder.exportSymbols("DISMAN-EXPRESSION-MIB", dismanExpressionMIBCompliances=dismanExpressionMIBCompliances, expExpressionComment=expExpressionComment, expObjectDiscontinuityIDType=expObjectDiscontinuityIDType, expObjectDiscontinuityIDWildcard=expObjectDiscontinuityIDWildcard, expValueTable=expValueTable, expResource=expResource, expExpressionPrefix=expExpressionPrefix, expObjectTable=expObjectTable, expValueIpAddressVal=expValueIpAddressVal, expObjectDeltaDiscontinuityID=expObjectDeltaDiscontinuityID, expErrorInstance=expErrorInstance, expObjectEntry=expObjectEntry, dismanExpressionResourceGroup=dismanExpressionResourceGroup, expObjectConditional=expObjectConditional, expExpressionEntryStatus=expExpressionEntryStatus, expExpressionTable=expExpressionTable, expValueCounter32Val=expValueCounter32Val, expErrorTable=expErrorTable, PYSNMP_MODULE_ID=dismanExpressionMIB, expExpressionDeltaInterval=expExpressionDeltaInterval, expValueInstance=expValueInstance, expExpression=expExpression, expValueTimeTicksVal=expValueTimeTicksVal, expErrorTime=expErrorTime, expResourceDeltaWildcardInstanceResourceLacks=expResourceDeltaWildcardInstanceResourceLacks, expValueEntry=expValueEntry, dismanExpressionMIB=dismanExpressionMIB, dismanExpressionMIBGroups=dismanExpressionMIBGroups, expObjectIndex=expObjectIndex, expObjectConditionalWildcard=expObjectConditionalWildcard, dismanExpressionMIBObjects=dismanExpressionMIBObjects, expValueOidVal=expValueOidVal, dismanExpressionMIBConformance=dismanExpressionMIBConformance, expResourceDeltaMinimum=expResourceDeltaMinimum, sysUpTimeInstance=sysUpTimeInstance, expResourceDeltaWildcardInstances=expResourceDeltaWildcardInstances, expExpressionEntry=expExpressionEntry, expExpressionValueType=expExpressionValueType, expObjectSampleType=expObjectSampleType, expErrorCode=expErrorCode, expDefine=expDefine, expExpressionErrors=expExpressionErrors, expValueUnsigned32Val=expValueUnsigned32Val, expValueCounter64Val=expValueCounter64Val, expExpressionOwner=expExpressionOwner, dismanExpressionDefinitionGroup=dismanExpressionDefinitionGroup, dismanExpressionMIBCompliance=dismanExpressionMIBCompliance, expObjectID=expObjectID, expErrorIndex=expErrorIndex, expResourceDeltaWildcardInstancesHigh=expResourceDeltaWildcardInstancesHigh, expValueOctetStringVal=expValueOctetStringVal, expObjectEntryStatus=expObjectEntryStatus, dismanExpressionValueGroup=dismanExpressionValueGroup, expObjectIDWildcard=expObjectIDWildcard, expExpressionName=expExpressionName, expErrorEntry=expErrorEntry, expValueInteger32Val=expValueInteger32Val, expResourceDeltaWildcardInstanceMaximum=expResourceDeltaWildcardInstanceMaximum, expValue=expValue)
(object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, value_size_constraint, constraints_intersection, single_value_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ValueSizeConstraint', 'ConstraintsIntersection', 'SingleValueConstraint', 'ValueRangeConstraint') (snmp_admin_string,) = mibBuilder.importSymbols('SNMP-FRAMEWORK-MIB', 'SnmpAdminString') (module_compliance, notification_group, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup', 'ObjectGroup') (sys_up_time,) = mibBuilder.importSymbols('SNMPv2-MIB', 'sysUpTime') (gauge32, bits, unsigned32, counter64, object_identity, zero_dot_zero, time_ticks, module_identity, integer32, ip_address, counter32, mib_2, iso, notification_type, mib_identifier, mib_scalar, mib_table, mib_table_row, mib_table_column) = mibBuilder.importSymbols('SNMPv2-SMI', 'Gauge32', 'Bits', 'Unsigned32', 'Counter64', 'ObjectIdentity', 'zeroDotZero', 'TimeTicks', 'ModuleIdentity', 'Integer32', 'IpAddress', 'Counter32', 'mib-2', 'iso', 'NotificationType', 'MibIdentifier', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn') (display_string, truth_value, time_stamp, textual_convention, row_status) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TruthValue', 'TimeStamp', 'TextualConvention', 'RowStatus') disman_expression_mib = module_identity((1, 3, 6, 1, 2, 1, 90)).setRevisions(('2000-10-16 00:00',)) if mibBuilder.loadTexts: dismanExpressionMIB.setLastUpdated('200010160000Z') if mibBuilder.loadTexts: dismanExpressionMIB.setOrganization('IETF Distributed Management Working Group') if mibBuilder.loadTexts: dismanExpressionMIB.setContactInfo('Ramanathan Kavasseri\n Cisco Systems, Inc.\n 170 West Tasman Drive,\n San Jose CA 95134-1706.\n Phone: +1 408 527 2446\n Email: ramk@cisco.com') if mibBuilder.loadTexts: dismanExpressionMIB.setDescription('The MIB module for defining expressions of MIB objects for\n management purposes.') disman_expression_mib_objects = mib_identifier((1, 3, 6, 1, 2, 1, 90, 1)) exp_resource = mib_identifier((1, 3, 6, 1, 2, 1, 90, 1, 1)) exp_define = mib_identifier((1, 3, 6, 1, 2, 1, 90, 1, 2)) exp_value = mib_identifier((1, 3, 6, 1, 2, 1, 90, 1, 3)) exp_resource_delta_minimum = mib_scalar((1, 3, 6, 1, 2, 1, 90, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(-1, -1), value_range_constraint(1, 600)))).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: expResourceDeltaMinimum.setDescription("The minimum expExpressionDeltaInterval this system will\n accept. A system may use the larger values of this minimum to\n lessen the impact of constantly computing deltas. For larger\n delta sampling intervals the system samples less often and\n suffers less overhead. This object provides a way to enforce\n such lower overhead for all expressions created after it is\n set.\n\n The value -1 indicates that expResourceDeltaMinimum is\n irrelevant as the system will not accept 'deltaValue' as a\n value for expObjectSampleType.\n\n Unless explicitly resource limited, a system's value for\n this object should be 1, allowing as small as a 1 second\n interval for ongoing delta sampling.\n\n Changing this value will not invalidate an existing setting\n of expObjectSampleType.") exp_resource_delta_wildcard_instance_maximum = mib_scalar((1, 3, 6, 1, 2, 1, 90, 1, 1, 2), unsigned32()).setUnits('instances').setMaxAccess('readwrite') if mibBuilder.loadTexts: expResourceDeltaWildcardInstanceMaximum.setDescription("For every instance of a deltaValue object, one dynamic instance\n entry is needed for holding the instance value from the previous\n sample, i.e. to maintain state.\n\n This object limits maximum number of dynamic instance entries\n this system will support for wildcarded delta objects in\n expressions. For a given delta expression, the number of\n dynamic instances is the number of values that meet all criteria\n to exist times the number of delta values in the expression.\n\n A value of 0 indicates no preset limit, that is, the limit\n is dynamic based on system operation and resources.\n\n Unless explicitly resource limited, a system's value for\n this object should be 0.\n\n\n Changing this value will not eliminate or inhibit existing delta\n wildcard instance objects but will prevent the creation of more\n such objects.\n\n An attempt to allocate beyond the limit results in expErrorCode\n being tooManyWildcardValues for that evaluation attempt.") exp_resource_delta_wildcard_instances = mib_scalar((1, 3, 6, 1, 2, 1, 90, 1, 1, 3), gauge32()).setUnits('instances').setMaxAccess('readonly') if mibBuilder.loadTexts: expResourceDeltaWildcardInstances.setDescription('The number of currently active instance entries as\n defined for expResourceDeltaWildcardInstanceMaximum.') exp_resource_delta_wildcard_instances_high = mib_scalar((1, 3, 6, 1, 2, 1, 90, 1, 1, 4), gauge32()).setUnits('instances').setMaxAccess('readonly') if mibBuilder.loadTexts: expResourceDeltaWildcardInstancesHigh.setDescription('The highest value of expResourceDeltaWildcardInstances\n that has occurred since initialization of the managed\n system.') exp_resource_delta_wildcard_instance_resource_lacks = mib_scalar((1, 3, 6, 1, 2, 1, 90, 1, 1, 5), counter32()).setUnits('instances').setMaxAccess('readonly') if mibBuilder.loadTexts: expResourceDeltaWildcardInstanceResourceLacks.setDescription('The number of times this system could not evaluate an\n expression because that would have created a value instance in\n excess of expResourceDeltaWildcardInstanceMaximum.') exp_expression_table = mib_table((1, 3, 6, 1, 2, 1, 90, 1, 2, 1)) if mibBuilder.loadTexts: expExpressionTable.setDescription('A table of expression definitions.') exp_expression_entry = mib_table_row((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1)).setIndexNames((0, 'DISMAN-EXPRESSION-MIB', 'expExpressionOwner'), (0, 'DISMAN-EXPRESSION-MIB', 'expExpressionName')) if mibBuilder.loadTexts: expExpressionEntry.setDescription("Information about a single expression. New expressions\n can be created using expExpressionRowStatus.\n\n To create an expression first create the named entry in this\n table. Then use expExpressionName to populate expObjectTable.\n For expression evaluation to succeed all related entries in\n expExpressionTable and expObjectTable must be 'active'. If\n these conditions are not met the corresponding values in\n expValue simply are not instantiated.\n\n Deleting an entry deletes all related entries in expObjectTable\n and expErrorTable.\n\n Because of the relationships among the multiple tables for an\n expression (expExpressionTable, expObjectTable, and\n expValueTable) and the SNMP rules for independence in setting\n object values, it is necessary to do final error checking when\n an expression is evaluated, that is, when one of its instances\n in expValueTable is read or a delta interval expires. Earlier\n checking need not be done and an implementation may not impose\n any ordering on the creation of objects related to an\n expression.\n\n To maintain security of MIB information, when creating a new row in\n this table, the managed system must record the security credentials\n of the requester. These security credentials are the parameters\n necessary as inputs to isAccessAllowed from the Architecture for\n\n Describing SNMP Management Frameworks. When obtaining the objects\n that make up the expression, the system must (conceptually) use\n isAccessAllowed to ensure that it does not violate security.\n\n The evaluation of the expression takes place under the\n security credentials of the creator of its expExpressionEntry.\n\n Values of read-write objects in this table may be changed\n\n at any time.") exp_expression_owner = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 1), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(0, 32))) if mibBuilder.loadTexts: expExpressionOwner.setDescription('The owner of this entry. The exact semantics of this\n string are subject to the security policy defined by the\n security administrator.') exp_expression_name = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 2), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(1, 32))) if mibBuilder.loadTexts: expExpressionName.setDescription('The name of the expression. This is locally unique, within\n the scope of an expExpressionOwner.') exp_expression = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1024))).setMaxAccess('readcreate') if mibBuilder.loadTexts: expExpression.setDescription("The expression to be evaluated. This object is the same\n as a DisplayString (RFC 1903) except for its maximum length.\n\n Except for the variable names the expression is in ANSI C\n syntax. Only the subset of ANSI C operators and functions\n listed here is allowed.\n\n Variables are expressed as a dollar sign ('$') and an\n\n integer that corresponds to an expObjectIndex. An\n example of a valid expression is:\n\n ($1-$5)*100\n\n Expressions must not be recursive, that is although an expression\n may use the results of another expression, it must not contain\n any variable that is directly or indirectly a result of its own\n evaluation. The managed system must check for recursive\n expressions.\n\n The only allowed operators are:\n\n ( )\n - (unary)\n + - * / %\n & | ^ << >> ~\n ! && || == != > >= < <=\n\n Note the parentheses are included for parenthesizing the\n expression, not for casting data types.\n\n The only constant types defined are:\n\n int (32-bit signed)\n long (64-bit signed)\n unsigned int\n unsigned long\n hexadecimal\n character\n string\n oid\n\n The default type for a positive integer is int unless it is too\n large in which case it is long.\n\n All but oid are as defined for ANSI C. Note that a\n hexadecimal constant may end up as a scalar or an array of\n 8-bit integers. A string constant is enclosed in double\n quotes and may contain back-slashed individual characters\n as in ANSI C.\n\n An oid constant comprises 32-bit, unsigned integers and at\n least one period, for example:\n\n 0.\n .0\n 1.3.6.1\n\n No additional leading or trailing subidentifiers are automatically\n added to an OID constant. The constant is taken as expressed.\n\n Integer-typed objects are treated as 32- or 64-bit, signed\n or unsigned integers, as appropriate. The results of\n mixing them are as for ANSI C, including the type of the\n result. Note that a 32-bit value is thus promoted to 64 bits\n only in an operation with a 64-bit value. There is no\n provision for larger values to handle overflow.\n\n Relative to SNMP data types, a resulting value becomes\n unsigned when calculating it uses any unsigned value,\n including a counter. To force the final value to be of\n data type counter the expression must explicitly use the\n counter32() or counter64() function (defined below).\n\n OCTET STRINGS and OBJECT IDENTIFIERs are treated as\n one-dimensioned arrays of unsigned 8-bit integers and\n unsigned 32-bit integers, respectively.\n\n IpAddresses are treated as 32-bit, unsigned integers in\n network byte order, that is, the hex version of 255.0.0.0 is\n 0xff000000.\n\n Conditional expressions result in a 32-bit, unsigned integer\n of value 0 for false or 1 for true. When an arbitrary value\n is used as a boolean 0 is false and non-zero is true.\n\n Rules for the resulting data type from an operation, based on\n the operator:\n\n For << and >> the result is the same as the left hand operand.\n\n For &&, ||, ==, !=, <, <=, >, and >= the result is always\n Unsigned32.\n\n For unary - the result is always Integer32.\n\n For +, -, *, /, %, &, |, and ^ the result is promoted according\n to the following rules, in order from most to least preferred:\n\n If left hand and right hand operands are the same type,\n use that.\n\n If either side is Counter64, use that.\n\n If either side is IpAddress, use that.\n\n\n If either side is TimeTicks, use that.\n\n If either side is Counter32, use that.\n\n Otherwise use Unsigned32.\n\n The following rules say what operators apply with what data\n types. Any combination not explicitly defined does not work.\n\n For all operators any of the following can be the left hand or\n right hand operand: Integer32, Counter32, Unsigned32, Counter64.\n\n The operators +, -, *, /, %, <, <=, >, and >= work with\n TimeTicks.\n\n The operators &, |, and ^ work with IpAddress.\n\n The operators << and >> work with IpAddress but only as the\n left hand operand.\n\n The + operator performs a concatenation of two OCTET STRINGs or\n two OBJECT IDENTIFIERs.\n\n The operators &, | perform bitwise operations on OCTET STRINGs.\n If the OCTET STRING happens to be a DisplayString the results\n may be meaningless, but the agent system does not check this as\n some such systems do not have this information.\n\n The operators << and >> perform bitwise operations on OCTET\n STRINGs appearing as the left hand operand.\n\n The only functions defined are:\n\n counter32\n counter64\n arraySection\n stringBegins\n stringEnds\n stringContains\n oidBegins\n oidEnds\n oidContains\n average\n maximum\n minimum\n sum\n exists\n\n\n The following function definitions indicate their parameters by\n naming the data type of the parameter in the parameter's position\n in the parameter list. The parameter must be of the type indicated\n and generally may be a constant, a MIB object, a function, or an\n expression.\n\n counter32(integer) - wrapped around an integer value counter32\n forces Counter32 as a data type.\n\n counter64(integer) - similar to counter32 except that the\n resulting data type is 'counter64'.\n\n arraySection(array, integer, integer) - selects a piece of an\n array (i.e. part of an OCTET STRING or OBJECT IDENTIFIER). The\n integer arguments are in the range 0 to 4,294,967,295. The\n first is an initial array index (one-dimensioned) and the second\n is an ending array index. A value of 0 indicates first or last\n element, respectively. If the first element is larger than the\n array length the result is 0 length. If the second integer is\n less than or equal to the first, the result is 0 length. If the\n second is larger than the array length it indicates last\n element.\n\n stringBegins/Ends/Contains(octetString, octetString) - looks for\n the second string (which can be a string constant) in the first\n and returns the one-dimensioned arrayindex where the match began.\n A return value of 0 indicates no match (i.e. boolean false).\n\n oidBegins/Ends/Contains(oid, oid) - looks for the second OID\n (which can be an OID constant) in the first and returns the\n the one-dimensioned index where the match began. A return value\n of 0 indicates no match (i.e. boolean false).\n\n average/maximum/minimum(integer) - calculates the average,\n minimum, or maximum value of the integer valued object over\n multiple sample times. If the object disappears for any\n sample period, the accumulation and the resulting value object\n cease to exist until the object reappears at which point the\n calculation starts over.\n\n sum(integerObject*) - sums all available values of the\n wildcarded integer object, resulting in an integer scalar. Must\n be used with caution as it wraps on overflow with no\n notification.\n\n exists(anyTypeObject) - verifies the object instance exists. A\n return value of 0 indicates NoSuchInstance (i.e. boolean\n false).") exp_expression_value_type = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('counter32', 1), ('unsigned32', 2), ('timeTicks', 3), ('integer32', 4), ('ipAddress', 5), ('octetString', 6), ('objectId', 7), ('counter64', 8))).clone('counter32')).setMaxAccess('readcreate') if mibBuilder.loadTexts: expExpressionValueType.setDescription('The type of the expression value. One and only one of the\n value objects in expValueTable will be instantiated to match\n this type.\n\n If the result of the expression can not be made into this type,\n an invalidOperandType error will occur.') exp_expression_comment = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 5), snmp_admin_string().clone(hexValue='')).setMaxAccess('readcreate') if mibBuilder.loadTexts: expExpressionComment.setDescription('A comment to explain the use or meaning of the expression.') exp_expression_delta_interval = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 86400))).setUnits('seconds').setMaxAccess('readcreate') if mibBuilder.loadTexts: expExpressionDeltaInterval.setDescription("Sampling interval for objects in this expression with\n expObjectSampleType 'deltaValue'.\n\n This object has no effect if the the expression has no\n deltaValue objects.\n\n A value of 0 indicates no automated sampling. In this case\n the delta is the difference from the last time the expression\n was evaluated. Note that this is subject to unpredictable\n delta times in the face of retries or multiple managers.\n\n A value greater than zero is the number of seconds between\n automated samples.\n\n Until the delta interval has expired once the delta for the\n\n object is effectively not instantiated and evaluating\n the expression has results as if the object itself were not\n instantiated.\n\n Note that delta values potentially consume large amounts of\n system CPU and memory. Delta state and processing must\n continue constantly even if the expression is not being used.\n That is, the expression is being evaluated every delta interval,\n even if no application is reading those values. For wildcarded\n objects this can be substantial overhead.\n\n Note that delta intervals, external expression value sampling\n intervals and delta intervals for expressions within other\n expressions can have unusual interactions as they are impossible\n to synchronize accurately. In general one interval embedded\n below another must be enough shorter that the higher sample\n sees relatively smooth, predictable behavior. So, for example,\n to avoid the higher level getting the same sample twice, the\n lower level should sample at least twice as fast as the higher\n level does.") exp_expression_prefix = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 7), object_identifier()).setMaxAccess('readonly') if mibBuilder.loadTexts: expExpressionPrefix.setDescription('An object prefix to assist an application in determining\n the instance indexing to use in expValueTable, relieving the\n application of the need to scan the expObjectTable to\n determine such a prefix.\n\n See expObjectTable for information on wildcarded objects.\n\n If the expValueInstance portion of the value OID may\n be treated as a scalar (that is, normally, 0) the value of\n expExpressionPrefix is zero length, that is, no OID at all.\n Note that zero length implies a null OID, not the OID 0.0.\n\n Otherwise, the value of expExpressionPrefix is the expObjectID\n value of any one of the wildcarded objects for the expression.\n This is sufficient, as the remainder, that is, the instance\n fragment relevant to instancing the values, must be the same for\n all wildcarded objects in the expression.') exp_expression_errors = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: expExpressionErrors.setDescription('The number of errors encountered while evaluating this\n expression.\n\n Note that an object in the expression not being accessible,\n is not considered an error. An example of an inaccessible\n object is when the object is excluded from the view of the\n user whose security credentials are used in the expression\n evaluation. In such cases, it is a legitimate condition\n that causes the corresponding expression value not to be\n instantiated.') exp_expression_entry_status = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 9), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: expExpressionEntryStatus.setDescription('The control that allows creation and deletion of entries.') exp_error_table = mib_table((1, 3, 6, 1, 2, 1, 90, 1, 2, 2)) if mibBuilder.loadTexts: expErrorTable.setDescription('A table of expression errors.') exp_error_entry = mib_table_row((1, 3, 6, 1, 2, 1, 90, 1, 2, 2, 1)).setIndexNames((0, 'DISMAN-EXPRESSION-MIB', 'expExpressionOwner'), (0, 'DISMAN-EXPRESSION-MIB', 'expExpressionName')) if mibBuilder.loadTexts: expErrorEntry.setDescription('Information about errors in processing an expression.\n\n Entries appear in this table only when there is a matching\n expExpressionEntry and then only when there has been an\n error for that expression as reflected by the error codes\n defined for expErrorCode.') exp_error_time = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 2, 1, 1), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: expErrorTime.setDescription('The value of sysUpTime the last time an error caused a\n failure to evaluate this expression.') exp_error_index = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 2, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: expErrorIndex.setDescription('The one-dimensioned character array index into\n expExpression for where the error occurred. The value\n zero indicates irrelevance.') exp_error_code = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))).clone(namedValues=named_values(('invalidSyntax', 1), ('undefinedObjectIndex', 2), ('unrecognizedOperator', 3), ('unrecognizedFunction', 4), ('invalidOperandType', 5), ('unmatchedParenthesis', 6), ('tooManyWildcardValues', 7), ('recursion', 8), ('deltaTooShort', 9), ('resourceUnavailable', 10), ('divideByZero', 11)))).setMaxAccess('readonly') if mibBuilder.loadTexts: expErrorCode.setDescription("The error that occurred. In the following explanations the\n expected timing of the error is in parentheses. 'S' means\n the error occurs on a Set request. 'E' means the error\n\n occurs on the attempt to evaluate the expression either due to\n Get from expValueTable or in ongoing delta processing.\n\n invalidSyntax the value sent for expExpression is not\n valid Expression MIB expression syntax\n (S)\n undefinedObjectIndex an object reference ($n) in\n expExpression does not have a matching\n instance in expObjectTable (E)\n unrecognizedOperator the value sent for expExpression held an\n unrecognized operator (S)\n unrecognizedFunction the value sent for expExpression held an\n unrecognized function name (S)\n invalidOperandType an operand in expExpression is not the\n right type for the associated operator\n or result (SE)\n unmatchedParenthesis the value sent for expExpression is not\n correctly parenthesized (S)\n tooManyWildcardValues evaluating the expression exceeded the\n limit set by\n expResourceDeltaWildcardInstanceMaximum\n (E)\n recursion through some chain of embedded\n expressions the expression invokes itself\n (E)\n deltaTooShort the delta for the next evaluation passed\n before the system could evaluate the\n present sample (E)\n resourceUnavailable some resource, typically dynamic memory,\n was unavailable (SE)\n divideByZero an attempt to divide by zero occurred\n (E)\n\n For the errors that occur when the attempt is made to set\n expExpression Set request fails with the SNMP error code\n 'wrongValue'. Such failures refer to the most recent failure to\n Set expExpression, not to the present value of expExpression\n which must be either unset or syntactically correct.\n\n Errors that occur during evaluation for a Get* operation return\n the SNMP error code 'genErr' except for 'tooManyWildcardValues'\n and 'resourceUnavailable' which return the SNMP error code\n 'resourceUnavailable'.") exp_error_instance = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 2, 1, 4), object_identifier()).setMaxAccess('readonly') if mibBuilder.loadTexts: expErrorInstance.setDescription('The expValueInstance being evaluated when the error\n occurred. A zero-length indicates irrelevance.') exp_object_table = mib_table((1, 3, 6, 1, 2, 1, 90, 1, 2, 3)) if mibBuilder.loadTexts: expObjectTable.setDescription('A table of object definitions for each expExpression.\n\n Wildcarding instance IDs:\n\n It is legal to omit all or part of the instance portion for\n some or all of the objects in an expression. (See the\n DESCRIPTION of expObjectID for details. However, note that\n if more than one object in the same expression is wildcarded\n in this way, they all must be objects where that portion of\n the instance is the same. In other words, all objects may be\n in the same SEQUENCE or in different SEQUENCEs but with the\n same semantic index value (e.g., a value of ifIndex)\n for the wildcarded portion.') exp_object_entry = mib_table_row((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1)).setIndexNames((0, 'DISMAN-EXPRESSION-MIB', 'expExpressionOwner'), (0, 'DISMAN-EXPRESSION-MIB', 'expExpressionName'), (0, 'DISMAN-EXPRESSION-MIB', 'expObjectIndex')) if mibBuilder.loadTexts: expObjectEntry.setDescription('Information about an object. An application uses\n expObjectEntryStatus to create entries in this table while\n in the process of defining an expression.\n\n Values of read-create objects in this table may be\n changed at any time.') exp_object_index = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))) if mibBuilder.loadTexts: expObjectIndex.setDescription("Within an expression, a unique, numeric identification for an\n object. Prefixed with a dollar sign ('$') this is used to\n reference the object in the corresponding expExpression.") exp_object_id = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 2), object_identifier()).setMaxAccess('readcreate') if mibBuilder.loadTexts: expObjectID.setDescription('The OBJECT IDENTIFIER (OID) of this object. The OID may be\n fully qualified, meaning it includes a complete instance\n identifier part (e.g., ifInOctets.1 or sysUpTime.0), or it\n may not be fully qualified, meaning it may lack all or part\n of the instance identifier. If the expObjectID is not fully\n qualified, then expObjectWildcard must be set to true(1).\n The value of the expression will be multiple\n values, as if done for a GetNext sweep of the object.\n\n An object here may itself be the result of an expression but\n recursion is not allowed.\n\n NOTE: The simplest implementations of this MIB may not allow\n wildcards.') exp_object_id_wildcard = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 3), truth_value().clone('false')).setMaxAccess('readcreate') if mibBuilder.loadTexts: expObjectIDWildcard.setDescription('A true value indicates the expObjecID of this row is a wildcard\n object. False indicates that expObjectID is fully instanced.\n If all expObjectWildcard values for a given expression are FALSE,\n\n expExpressionPrefix will reflect a scalar object (i.e. will\n be 0.0).\n\n NOTE: The simplest implementations of this MIB may not allow\n wildcards.') exp_object_sample_type = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('absoluteValue', 1), ('deltaValue', 2), ('changedValue', 3))).clone('absoluteValue')).setMaxAccess('readcreate') if mibBuilder.loadTexts: expObjectSampleType.setDescription("The method of sampling the selected variable.\n\n An 'absoluteValue' is simply the present value of the object.\n\n A 'deltaValue' is the present value minus the previous value,\n which was sampled expExpressionDeltaInterval seconds ago.\n This is intended primarily for use with SNMP counters, which are\n meaningless as an 'absoluteValue', but may be used with any\n integer-based value.\n\n A 'changedValue' is a boolean for whether the present value is\n different from the previous value. It is applicable to any data\n type and results in an Unsigned32 with value 1 if the object's\n value is changed and 0 if not. In all other respects it is as a\n 'deltaValue' and all statements and operation regarding delta\n values apply to changed values.\n\n When an expression contains both delta and absolute values\n the absolute values are obtained at the end of the delta\n period.") sys_up_time_instance = mib_identifier((1, 3, 6, 1, 2, 1, 1, 3, 0)) exp_object_delta_discontinuity_id = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 5), object_identifier().clone((1, 3, 6, 1, 2, 1, 1, 3, 0))).setMaxAccess('readcreate') if mibBuilder.loadTexts: expObjectDeltaDiscontinuityID.setDescription("The OBJECT IDENTIFIER (OID) of a TimeTicks, TimeStamp, or\n DateAndTime object that indicates a discontinuity in the value\n at expObjectID.\n\n\n This object is instantiated only if expObjectSampleType is\n 'deltaValue' or 'changedValue'.\n\n The OID may be for a leaf object (e.g. sysUpTime.0) or may\n be wildcarded to match expObjectID.\n\n This object supports normal checking for a discontinuity in a\n counter. Note that if this object does not point to sysUpTime\n discontinuity checking must still check sysUpTime for an overall\n discontinuity.\n\n If the object identified is not accessible no discontinuity\n check will be made.") exp_object_discontinuity_id_wildcard = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 6), truth_value().clone('false')).setMaxAccess('readcreate') if mibBuilder.loadTexts: expObjectDiscontinuityIDWildcard.setDescription("A true value indicates the expObjectDeltaDiscontinuityID of\n this row is a wildcard object. False indicates that\n expObjectDeltaDiscontinuityID is fully instanced.\n\n This object is instantiated only if expObjectSampleType is\n 'deltaValue' or 'changedValue'.\n\n NOTE: The simplest implementations of this MIB may not allow\n wildcards.") exp_object_discontinuity_id_type = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('timeTicks', 1), ('timeStamp', 2), ('dateAndTime', 3))).clone('timeTicks')).setMaxAccess('readcreate') if mibBuilder.loadTexts: expObjectDiscontinuityIDType.setDescription("The value 'timeTicks' indicates the expObjectDeltaDiscontinuityID\n of this row is of syntax TimeTicks. The value 'timeStamp' indicates\n syntax TimeStamp. The value 'dateAndTime indicates syntax\n DateAndTime.\n\n This object is instantiated only if expObjectSampleType is\n 'deltaValue' or 'changedValue'.") exp_object_conditional = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 8), object_identifier().clone((0, 0))).setMaxAccess('readcreate') if mibBuilder.loadTexts: expObjectConditional.setDescription('The OBJECT IDENTIFIER (OID) of an object that overrides\n whether the instance of expObjectID is to be considered\n usable. If the value of the object at expObjectConditional\n is 0 or not instantiated, the object at expObjectID is\n treated as if it is not instantiated. In other words,\n expObjectConditional is a filter that controls whether or\n not to use the value at expObjectID.\n\n The OID may be for a leaf object (e.g. sysObjectID.0) or may be\n wildcarded to match expObjectID. If expObject is wildcarded and\n expObjectID in the same row is not, the wild portion of\n expObjectConditional must match the wildcarding of the rest of\n the expression. If no object in the expression is wildcarded\n but expObjectConditional is, use the lexically first instance\n (if any) of expObjectConditional.\n\n If the value of expObjectConditional is 0.0 operation is\n as if the value pointed to by expObjectConditional is a\n non-zero (true) value.\n\n Note that expObjectConditional can not trivially use an object\n of syntax TruthValue, since the underlying value is not 0 or 1.') exp_object_conditional_wildcard = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 9), truth_value().clone('false')).setMaxAccess('readcreate') if mibBuilder.loadTexts: expObjectConditionalWildcard.setDescription('A true value indicates the expObjectConditional of this row is\n a wildcard object. False indicates that expObjectConditional is\n fully instanced.\n\n NOTE: The simplest implementations of this MIB may not allow\n wildcards.') exp_object_entry_status = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 10), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: expObjectEntryStatus.setDescription('The control that allows creation/deletion of entries.\n\n Objects in this table may be changed while\n expObjectEntryStatus is in any state.') exp_value_table = mib_table((1, 3, 6, 1, 2, 1, 90, 1, 3, 1)) if mibBuilder.loadTexts: expValueTable.setDescription('A table of values from evaluated expressions.') exp_value_entry = mib_table_row((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1)).setIndexNames((0, 'DISMAN-EXPRESSION-MIB', 'expExpressionOwner'), (0, 'DISMAN-EXPRESSION-MIB', 'expExpressionName'), (1, 'DISMAN-EXPRESSION-MIB', 'expValueInstance')) if mibBuilder.loadTexts: expValueEntry.setDescription("A single value from an evaluated expression. For a given\n instance, only one 'Val' object in the conceptual row will be\n instantiated, that is, the one with the appropriate type for\n the value. For values that contain no objects of\n expObjectSampleType 'deltaValue' or 'changedValue', reading a\n value from the table causes the evaluation of the expression\n for that value. For those that contain a 'deltaValue' or\n 'changedValue' the value read is as of the last sampling\n interval.\n\n If in the attempt to evaluate the expression one or more\n of the necessary objects is not available, the corresponding\n entry in this table is effectively not instantiated.\n\n To maintain security of MIB information, when creating a new\n row in this table, the managed system must record the security\n credentials of the requester. These security credentials are\n the parameters necessary as inputs to isAccessAllowed from\n [RFC2571]. When obtaining the objects that make up the\n expression, the system must (conceptually) use isAccessAllowed to\n ensure that it does not violate security.\n\n The evaluation of that expression takes place under the\n\n security credentials of the creator of its expExpressionEntry.\n\n To maintain security of MIB information, expression evaluation must\n take place using security credentials for the implied Gets of the\n objects in the expression as inputs (conceptually) to\n isAccessAllowed from the Architecture for Describing SNMP\n Management Frameworks. These are the security credentials of the\n creator of the corresponding expExpressionEntry.") exp_value_instance = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 1), object_identifier()) if mibBuilder.loadTexts: expValueInstance.setDescription("The final instance portion of a value's OID according to\n the wildcarding in instances of expObjectID for the\n expression. The prefix of this OID fragment is 0.0,\n leading to the following behavior.\n\n If there is no wildcarding, the value is 0.0.0. In other\n words, there is one value which standing alone would have\n been a scalar with a 0 at the end of its OID.\n\n If there is wildcarding, the value is 0.0 followed by\n a value that the wildcard can take, thus defining one value\n instance for each real, possible value of the wildcard.\n So, for example, if the wildcard worked out to be an ifIndex,\n there is an expValueInstance for each applicable ifIndex.") exp_value_counter32_val = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: expValueCounter32Val.setDescription("The value when expExpressionValueType is 'counter32'.") exp_value_unsigned32_val = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 3), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: expValueUnsigned32Val.setDescription("The value when expExpressionValueType is 'unsigned32'.") exp_value_time_ticks_val = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 4), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: expValueTimeTicksVal.setDescription("The value when expExpressionValueType is 'timeTicks'.") exp_value_integer32_val = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: expValueInteger32Val.setDescription("The value when expExpressionValueType is 'integer32'.") exp_value_ip_address_val = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 6), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: expValueIpAddressVal.setDescription("The value when expExpressionValueType is 'ipAddress'.") exp_value_octet_string_val = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 7), octet_string().subtype(subtypeSpec=value_size_constraint(0, 65536))).setMaxAccess('readonly') if mibBuilder.loadTexts: expValueOctetStringVal.setDescription("The value when expExpressionValueType is 'octetString'.") exp_value_oid_val = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 8), object_identifier()).setMaxAccess('readonly') if mibBuilder.loadTexts: expValueOidVal.setDescription("The value when expExpressionValueType is 'objectId'.") exp_value_counter64_val = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 9), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: expValueCounter64Val.setDescription("The value when expExpressionValueType is 'counter64'.") disman_expression_mib_conformance = mib_identifier((1, 3, 6, 1, 2, 1, 90, 3)) disman_expression_mib_compliances = mib_identifier((1, 3, 6, 1, 2, 1, 90, 3, 1)) disman_expression_mib_groups = mib_identifier((1, 3, 6, 1, 2, 1, 90, 3, 2)) disman_expression_mib_compliance = module_compliance((1, 3, 6, 1, 2, 1, 90, 3, 1, 1)).setObjects(*(('DISMAN-EXPRESSION-MIB', 'dismanExpressionResourceGroup'), ('DISMAN-EXPRESSION-MIB', 'dismanExpressionDefinitionGroup'), ('DISMAN-EXPRESSION-MIB', 'dismanExpressionValueGroup'))) if mibBuilder.loadTexts: dismanExpressionMIBCompliance.setDescription('The compliance statement for entities which implement\n the Expression MIB.') disman_expression_resource_group = object_group((1, 3, 6, 1, 2, 1, 90, 3, 2, 1)).setObjects(*(('DISMAN-EXPRESSION-MIB', 'expResourceDeltaMinimum'), ('DISMAN-EXPRESSION-MIB', 'expResourceDeltaWildcardInstanceMaximum'), ('DISMAN-EXPRESSION-MIB', 'expResourceDeltaWildcardInstances'), ('DISMAN-EXPRESSION-MIB', 'expResourceDeltaWildcardInstancesHigh'), ('DISMAN-EXPRESSION-MIB', 'expResourceDeltaWildcardInstanceResourceLacks'))) if mibBuilder.loadTexts: dismanExpressionResourceGroup.setDescription('Expression definition resource management.') disman_expression_definition_group = object_group((1, 3, 6, 1, 2, 1, 90, 3, 2, 2)).setObjects(*(('DISMAN-EXPRESSION-MIB', 'expExpression'), ('DISMAN-EXPRESSION-MIB', 'expExpressionValueType'), ('DISMAN-EXPRESSION-MIB', 'expExpressionComment'), ('DISMAN-EXPRESSION-MIB', 'expExpressionDeltaInterval'), ('DISMAN-EXPRESSION-MIB', 'expExpressionPrefix'), ('DISMAN-EXPRESSION-MIB', 'expExpressionErrors'), ('DISMAN-EXPRESSION-MIB', 'expExpressionEntryStatus'), ('DISMAN-EXPRESSION-MIB', 'expErrorTime'), ('DISMAN-EXPRESSION-MIB', 'expErrorIndex'), ('DISMAN-EXPRESSION-MIB', 'expErrorCode'), ('DISMAN-EXPRESSION-MIB', 'expErrorInstance'), ('DISMAN-EXPRESSION-MIB', 'expObjectID'), ('DISMAN-EXPRESSION-MIB', 'expObjectIDWildcard'), ('DISMAN-EXPRESSION-MIB', 'expObjectSampleType'), ('DISMAN-EXPRESSION-MIB', 'expObjectDeltaDiscontinuityID'), ('DISMAN-EXPRESSION-MIB', 'expObjectDiscontinuityIDWildcard'), ('DISMAN-EXPRESSION-MIB', 'expObjectDiscontinuityIDType'), ('DISMAN-EXPRESSION-MIB', 'expObjectConditional'), ('DISMAN-EXPRESSION-MIB', 'expObjectConditionalWildcard'), ('DISMAN-EXPRESSION-MIB', 'expObjectEntryStatus'))) if mibBuilder.loadTexts: dismanExpressionDefinitionGroup.setDescription('Expression definition.') disman_expression_value_group = object_group((1, 3, 6, 1, 2, 1, 90, 3, 2, 3)).setObjects(*(('DISMAN-EXPRESSION-MIB', 'expValueCounter32Val'), ('DISMAN-EXPRESSION-MIB', 'expValueUnsigned32Val'), ('DISMAN-EXPRESSION-MIB', 'expValueTimeTicksVal'), ('DISMAN-EXPRESSION-MIB', 'expValueInteger32Val'), ('DISMAN-EXPRESSION-MIB', 'expValueIpAddressVal'), ('DISMAN-EXPRESSION-MIB', 'expValueOctetStringVal'), ('DISMAN-EXPRESSION-MIB', 'expValueOidVal'), ('DISMAN-EXPRESSION-MIB', 'expValueCounter64Val'))) if mibBuilder.loadTexts: dismanExpressionValueGroup.setDescription('Expression value.') mibBuilder.exportSymbols('DISMAN-EXPRESSION-MIB', dismanExpressionMIBCompliances=dismanExpressionMIBCompliances, expExpressionComment=expExpressionComment, expObjectDiscontinuityIDType=expObjectDiscontinuityIDType, expObjectDiscontinuityIDWildcard=expObjectDiscontinuityIDWildcard, expValueTable=expValueTable, expResource=expResource, expExpressionPrefix=expExpressionPrefix, expObjectTable=expObjectTable, expValueIpAddressVal=expValueIpAddressVal, expObjectDeltaDiscontinuityID=expObjectDeltaDiscontinuityID, expErrorInstance=expErrorInstance, expObjectEntry=expObjectEntry, dismanExpressionResourceGroup=dismanExpressionResourceGroup, expObjectConditional=expObjectConditional, expExpressionEntryStatus=expExpressionEntryStatus, expExpressionTable=expExpressionTable, expValueCounter32Val=expValueCounter32Val, expErrorTable=expErrorTable, PYSNMP_MODULE_ID=dismanExpressionMIB, expExpressionDeltaInterval=expExpressionDeltaInterval, expValueInstance=expValueInstance, expExpression=expExpression, expValueTimeTicksVal=expValueTimeTicksVal, expErrorTime=expErrorTime, expResourceDeltaWildcardInstanceResourceLacks=expResourceDeltaWildcardInstanceResourceLacks, expValueEntry=expValueEntry, dismanExpressionMIB=dismanExpressionMIB, dismanExpressionMIBGroups=dismanExpressionMIBGroups, expObjectIndex=expObjectIndex, expObjectConditionalWildcard=expObjectConditionalWildcard, dismanExpressionMIBObjects=dismanExpressionMIBObjects, expValueOidVal=expValueOidVal, dismanExpressionMIBConformance=dismanExpressionMIBConformance, expResourceDeltaMinimum=expResourceDeltaMinimum, sysUpTimeInstance=sysUpTimeInstance, expResourceDeltaWildcardInstances=expResourceDeltaWildcardInstances, expExpressionEntry=expExpressionEntry, expExpressionValueType=expExpressionValueType, expObjectSampleType=expObjectSampleType, expErrorCode=expErrorCode, expDefine=expDefine, expExpressionErrors=expExpressionErrors, expValueUnsigned32Val=expValueUnsigned32Val, expValueCounter64Val=expValueCounter64Val, expExpressionOwner=expExpressionOwner, dismanExpressionDefinitionGroup=dismanExpressionDefinitionGroup, dismanExpressionMIBCompliance=dismanExpressionMIBCompliance, expObjectID=expObjectID, expErrorIndex=expErrorIndex, expResourceDeltaWildcardInstancesHigh=expResourceDeltaWildcardInstancesHigh, expValueOctetStringVal=expValueOctetStringVal, expObjectEntryStatus=expObjectEntryStatus, dismanExpressionValueGroup=dismanExpressionValueGroup, expObjectIDWildcard=expObjectIDWildcard, expExpressionName=expExpressionName, expErrorEntry=expErrorEntry, expValueInteger32Val=expValueInteger32Val, expResourceDeltaWildcardInstanceMaximum=expResourceDeltaWildcardInstanceMaximum, expValue=expValue)
q = int(input()) for i in range(q): l1,r1,l2,r2 = map(int, input().split()) if l2 < l1 and r2 < r1: print(l1, l2) else: print(l1,r2)
q = int(input()) for i in range(q): (l1, r1, l2, r2) = map(int, input().split()) if l2 < l1 and r2 < r1: print(l1, l2) else: print(l1, r2)
"proto_scala_library.bzl provides a scala_library for proto files." load("@io_bazel_rules_scala//scala:scala.bzl", "scala_library") def proto_scala_library(**kwargs): scala_library(**kwargs)
"""proto_scala_library.bzl provides a scala_library for proto files.""" load('@io_bazel_rules_scala//scala:scala.bzl', 'scala_library') def proto_scala_library(**kwargs): scala_library(**kwargs)
isbn = input().split('-') offset = 0 weight = 1 for i in range(3): for j in isbn[i]: offset = offset + int(j) * weight weight += 1 offset = offset % 11 if offset == 10 and isbn[3] == 'X': print('Right') elif offset < 10 and str(offset) == isbn[3]: print('Right') else: if offset == 10: offset = 'X' print('-'.join([isbn[0], isbn[1], isbn[2], str(offset)]))
isbn = input().split('-') offset = 0 weight = 1 for i in range(3): for j in isbn[i]: offset = offset + int(j) * weight weight += 1 offset = offset % 11 if offset == 10 and isbn[3] == 'X': print('Right') elif offset < 10 and str(offset) == isbn[3]: print('Right') else: if offset == 10: offset = 'X' print('-'.join([isbn[0], isbn[1], isbn[2], str(offset)]))
def find_missing( current_list, target_list ): return [ x for x in target_list if x not in current_list ] def compare( current_list, target_list ): additions_list = find_missing( current_list, target_list ) deletions_list = find_missing( target_list, current_list ) return { 'additions': additions_list, 'deletions': deletions_list }
def find_missing(current_list, target_list): return [x for x in target_list if x not in current_list] def compare(current_list, target_list): additions_list = find_missing(current_list, target_list) deletions_list = find_missing(target_list, current_list) return {'additions': additions_list, 'deletions': deletions_list}
# # PySNMP MIB module Wellfleet-AT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Wellfleet-AT-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 21:32:44 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, SingleValueConstraint, ValueRangeConstraint, ConstraintsUnion, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsUnion", "ConstraintsIntersection") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") ObjectIdentity, MibIdentifier, ModuleIdentity, Bits, iso, MibScalar, MibTable, MibTableRow, MibTableColumn, Gauge32, TimeTicks, Integer32, Unsigned32, IpAddress, Counter64, NotificationType, Counter32 = mibBuilder.importSymbols("SNMPv2-SMI", "ObjectIdentity", "MibIdentifier", "ModuleIdentity", "Bits", "iso", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Gauge32", "TimeTicks", "Integer32", "Unsigned32", "IpAddress", "Counter64", "NotificationType", "Counter32") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") wfAppletalkGroup, = mibBuilder.importSymbols("Wellfleet-COMMON-MIB", "wfAppletalkGroup") wfAppleBase = MibIdentifier((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1)) wfAppleBaseDelete = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("created", 1), ("deleted", 2))).clone('created')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleBaseDelete.setStatus('mandatory') wfAppleBaseDisable = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('enabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleBaseDisable.setStatus('mandatory') wfAppleBaseState = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("init", 3), ("notpres", 4))).clone('down')).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleBaseState.setStatus('mandatory') wfAppleBaseDebugLevel = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 4), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleBaseDebugLevel.setStatus('mandatory') wfAppleBaseDdpQueLen = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(10, 2147483647)).clone(20)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleBaseDdpQueLen.setStatus('mandatory') wfAppleBaseHomedPort = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 6), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleBaseHomedPort.setStatus('mandatory') wfAppleBaseTotalNets = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleBaseTotalNets.setStatus('mandatory') wfAppleBaseTotalZones = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleBaseTotalZones.setStatus('mandatory') wfAppleBaseTotalZoneNames = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleBaseTotalZoneNames.setStatus('mandatory') wfAppleBaseTotalAarpEntries = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleBaseTotalAarpEntries.setStatus('mandatory') wfAppleBaseEstimatedNets = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 11), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleBaseEstimatedNets.setStatus('mandatory') wfAppleBaseEstimatedHosts = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 12), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleBaseEstimatedHosts.setStatus('mandatory') wfAppleMacIPBaseDelete = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("created", 1), ("deleted", 2))).clone('deleted')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleMacIPBaseDelete.setStatus('mandatory') wfAppleMacIPBaseDisable = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleMacIPBaseDisable.setStatus('mandatory') wfAppleMacIPBaseState = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("init", 3), ("notpres", 4))).clone('down')).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleMacIPBaseState.setStatus('mandatory') wfAppleMacIPZone = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 16), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleMacIPZone.setStatus('mandatory') wfMacIPAddress1 = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 17), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfMacIPAddress1.setStatus('mandatory') wfMacIPLowerIpAddress1 = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 18), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 254)).clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfMacIPLowerIpAddress1.setStatus('mandatory') wfMacIPUpperIpAddress1 = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 19), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 254)).clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfMacIPUpperIpAddress1.setStatus('mandatory') wfMacIPAddress2 = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 20), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfMacIPAddress2.setStatus('mandatory') wfMacIPLowerIpAddress2 = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 21), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 254)).clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfMacIPLowerIpAddress2.setStatus('mandatory') wfMacIPUpperIpAddress2 = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 22), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 254)).clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfMacIPUpperIpAddress2.setStatus('mandatory') wfMacIPAddress3 = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 23), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfMacIPAddress3.setStatus('mandatory') wfMacIPLowerIpAddress3 = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 24), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 254)).clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfMacIPLowerIpAddress3.setStatus('mandatory') wfMacIPUpperIpAddress3 = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 25), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 254)).clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfMacIPUpperIpAddress3.setStatus('mandatory') wfAppleMacIPAddressTimeOut = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 26), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255)).clone(5)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleMacIPAddressTimeOut.setStatus('mandatory') wfAppleMacIPServerRequests = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 27), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleMacIPServerRequests.setStatus('mandatory') wfAppleMacIPServerResponces = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 28), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleMacIPServerResponces.setStatus('mandatory') wfAppleRtmpTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2), ) if mibBuilder.loadTexts: wfAppleRtmpTable.setStatus('mandatory') wfAppleRtmpEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1), ).setIndexNames((0, "Wellfleet-AT-MIB", "wfAppleRtmpNetStart"), (0, "Wellfleet-AT-MIB", "wfAppleRtmpNetEnd")) if mibBuilder.loadTexts: wfAppleRtmpEntry.setStatus('mandatory') wfAppleRtmpNetStart = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleRtmpNetStart.setStatus('mandatory') wfAppleRtmpNetEnd = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleRtmpNetEnd.setStatus('mandatory') wfAppleRtmpPort = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleRtmpPort.setStatus('mandatory') wfAppleRtmpHops = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleRtmpHops.setStatus('mandatory') wfAppleRtmpNextHopNet = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleRtmpNextHopNet.setStatus('mandatory') wfAppleRtmpNextHopNode = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleRtmpNextHopNode.setStatus('mandatory') wfAppleRtmpState = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("good", 1), ("suspect", 2), ("goingbad", 3), ("bad", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleRtmpState.setStatus('mandatory') wfAppleRtmpProto = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("rtmp", 1), ("aurp", 2), ("static", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleRtmpProto.setStatus('mandatory') wfAppleRtmpAurpNextHopIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 9), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleRtmpAurpNextHopIpAddress.setStatus('mandatory') wfApplePortTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3), ) if mibBuilder.loadTexts: wfApplePortTable.setStatus('mandatory') wfApplePortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1), ).setIndexNames((0, "Wellfleet-AT-MIB", "wfApplePortCircuit")) if mibBuilder.loadTexts: wfApplePortEntry.setStatus('mandatory') wfApplePortDelete = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("created", 1), ("deleted", 2))).clone('created')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfApplePortDelete.setStatus('mandatory') wfApplePortDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('enabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfApplePortDisable.setStatus('mandatory') wfApplePortCircuit = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortCircuit.setStatus('mandatory') wfApplePortState = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("up", 1), ("down", 2))).clone('down')).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortState.setStatus('mandatory') wfApplePortType = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 5), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfApplePortType.setStatus('mandatory') wfApplePortCksumDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfApplePortCksumDisable.setStatus('mandatory') wfApplePortTrEndStation = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfApplePortTrEndStation.setStatus('mandatory') wfApplePortGniForever = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 8), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfApplePortGniForever.setStatus('obsolete') wfApplePortAarpFlush = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 9), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfApplePortAarpFlush.setStatus('mandatory') wfApplePortMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 10), OctetString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfApplePortMacAddress.setStatus('mandatory') wfApplePortNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 11), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfApplePortNodeId.setStatus('mandatory') wfApplePortNetwork = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 12), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfApplePortNetwork.setStatus('mandatory') wfApplePortNetStart = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 13), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfApplePortNetStart.setStatus('mandatory') wfApplePortNetEnd = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 14), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfApplePortNetEnd.setStatus('mandatory') wfApplePortDfltZone = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 15), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfApplePortDfltZone.setStatus('mandatory') wfApplePortCurMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 16), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortCurMacAddress.setStatus('mandatory') wfApplePortCurNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 17), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortCurNodeId.setStatus('mandatory') wfApplePortCurNetwork = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 18), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortCurNetwork.setStatus('mandatory') wfApplePortCurNetStart = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 19), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortCurNetStart.setStatus('mandatory') wfApplePortCurNetEnd = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 20), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortCurNetEnd.setStatus('mandatory') wfApplePortCurDfltZone = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 21), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortCurDfltZone.setStatus('mandatory') wfApplePortAarpProbeRxs = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 22), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortAarpProbeRxs.setStatus('mandatory') wfApplePortAarpProbeTxs = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 23), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortAarpProbeTxs.setStatus('mandatory') wfApplePortAarpReqRxs = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 24), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortAarpReqRxs.setStatus('mandatory') wfApplePortAarpReqTxs = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 25), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortAarpReqTxs.setStatus('mandatory') wfApplePortAarpRspRxs = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 26), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortAarpRspRxs.setStatus('mandatory') wfApplePortAarpRspTxs = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 27), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortAarpRspTxs.setStatus('mandatory') wfApplePortDdpOutRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 28), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortDdpOutRequests.setStatus('mandatory') wfApplePortDdpInReceives = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 29), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortDdpInReceives.setStatus('mandatory') wfApplePortDdpInLocalDatagrams = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 30), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortDdpInLocalDatagrams.setStatus('mandatory') wfApplePortDdpNoProtocolHandlers = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 31), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortDdpNoProtocolHandlers.setStatus('mandatory') wfApplePortDdpTooShortErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 32), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortDdpTooShortErrors.setStatus('mandatory') wfApplePortDdpTooLongErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 33), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortDdpTooLongErrors.setStatus('mandatory') wfApplePortDdpChecksumErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 34), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortDdpChecksumErrors.setStatus('mandatory') wfApplePortDdpForwRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 35), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortDdpForwRequests.setStatus('mandatory') wfApplePortDdpOutNoRoutes = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 36), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortDdpOutNoRoutes.setStatus('mandatory') wfApplePortDdpBroadcastErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 37), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortDdpBroadcastErrors.setStatus('mandatory') wfApplePortDdpHopCountErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 38), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortDdpHopCountErrors.setStatus('mandatory') wfApplePortRtmpInDataPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 39), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortRtmpInDataPkts.setStatus('mandatory') wfApplePortRtmpOutDataPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 40), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortRtmpOutDataPkts.setStatus('mandatory') wfApplePortRtmpInRequestPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 41), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortRtmpInRequestPkts.setStatus('mandatory') wfApplePortRtmpNextIREqualChanges = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 42), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortRtmpNextIREqualChanges.setStatus('mandatory') wfApplePortRtmpNextIRLessChanges = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 43), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortRtmpNextIRLessChanges.setStatus('mandatory') wfApplePortRtmpRouteDeletes = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 44), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortRtmpRouteDeletes.setStatus('mandatory') wfApplePortRtmpNetworkMismatchErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 45), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortRtmpNetworkMismatchErrors.setStatus('mandatory') wfApplePortRtmpRoutingTableOverflows = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 46), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortRtmpRoutingTableOverflows.setStatus('mandatory') wfApplePortZipInZipQueries = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 47), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipInZipQueries.setStatus('mandatory') wfApplePortZipInZipReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 48), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipInZipReplies.setStatus('mandatory') wfApplePortZipOutZipReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 49), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipOutZipReplies.setStatus('mandatory') wfApplePortZipInZipExtendedReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 50), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipInZipExtendedReplies.setStatus('mandatory') wfApplePortZipOutZipExtendedReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 51), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipOutZipExtendedReplies.setStatus('mandatory') wfApplePortZipInGetZoneLists = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 52), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipInGetZoneLists.setStatus('mandatory') wfApplePortZipOutGetZoneListReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 53), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipOutGetZoneListReplies.setStatus('mandatory') wfApplePortZipInGetLocalZones = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 54), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipInGetLocalZones.setStatus('mandatory') wfApplePortZipOutGetLocalZoneReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 55), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipOutGetLocalZoneReplies.setStatus('mandatory') wfApplePortZipInGetMyZones = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 56), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipInGetMyZones.setStatus('obsolete') wfApplePortZipOutGetMyZoneReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 57), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipOutGetMyZoneReplies.setStatus('obsolete') wfApplePortZipZoneConflictErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 58), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipZoneConflictErrors.setStatus('mandatory') wfApplePortZipInGetNetInfos = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 59), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipInGetNetInfos.setStatus('mandatory') wfApplePortZipOutGetNetInfoReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 60), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipOutGetNetInfoReplies.setStatus('mandatory') wfApplePortZipZoneOutInvalids = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 61), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipZoneOutInvalids.setStatus('mandatory') wfApplePortZipAddressInvalids = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 62), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipAddressInvalids.setStatus('mandatory') wfApplePortZipOutGetNetInfos = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 63), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipOutGetNetInfos.setStatus('mandatory') wfApplePortZipInGetNetInfoReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 64), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipInGetNetInfoReplies.setStatus('mandatory') wfApplePortZipOutZipQueries = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 65), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipOutZipQueries.setStatus('mandatory') wfApplePortZipInErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 66), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipInErrors.setStatus('mandatory') wfApplePortNbpInLookUpRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 67), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortNbpInLookUpRequests.setStatus('mandatory') wfApplePortNbpInLookUpReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 68), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortNbpInLookUpReplies.setStatus('mandatory') wfApplePortNbpInBroadcastRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 69), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortNbpInBroadcastRequests.setStatus('mandatory') wfApplePortNbpInForwardRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 70), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortNbpInForwardRequests.setStatus('mandatory') wfApplePortNbpOutLookUpRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 71), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortNbpOutLookUpRequests.setStatus('mandatory') wfApplePortNbpOutLookUpReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 72), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortNbpOutLookUpReplies.setStatus('mandatory') wfApplePortNbpOutBroadcastRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 73), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortNbpOutBroadcastRequests.setStatus('mandatory') wfApplePortNbpOutForwardRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 74), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortNbpOutForwardRequests.setStatus('mandatory') wfApplePortNbpRegistrationFailures = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 75), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortNbpRegistrationFailures.setStatus('mandatory') wfApplePortNbpInErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 76), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortNbpInErrors.setStatus('mandatory') wfApplePortEchoRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 77), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortEchoRequests.setStatus('mandatory') wfApplePortEchoReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 78), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortEchoReplies.setStatus('mandatory') wfApplePortInterfaceCost = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 79), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(15))).clone(namedValues=NamedValues(("cost", 15)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfApplePortInterfaceCost.setStatus('mandatory') wfApplePortWanBroadcastAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 80), OctetString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfApplePortWanBroadcastAddress.setStatus('mandatory') wfApplePortWanSplitHorizonDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 81), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('enabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfApplePortWanSplitHorizonDisable.setStatus('mandatory') wfApplePortZoneFilterType = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 82), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("allow", 1), ("deny", 2), ("partallow", 3), ("partdeny", 4))).clone('deny')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfApplePortZoneFilterType.setStatus('mandatory') wfApplePortMacIPDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 83), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfApplePortMacIPDisable.setStatus('mandatory') wfAppleLclZoneTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 4), ) if mibBuilder.loadTexts: wfAppleLclZoneTable.setStatus('mandatory') wfAppleLclZoneEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 4, 1), ).setIndexNames((0, "Wellfleet-AT-MIB", "wfAppleLclZonePortCircuit"), (0, "Wellfleet-AT-MIB", "wfAppleLclZoneIndex")) if mibBuilder.loadTexts: wfAppleLclZoneEntry.setStatus('mandatory') wfAppleLclZoneDelete = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 4, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("created", 1), ("deleted", 2))).clone('created')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleLclZoneDelete.setStatus('mandatory') wfAppleLclZonePortCircuit = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 4, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleLclZonePortCircuit.setStatus('mandatory') wfAppleLclZoneIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 4, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleLclZoneIndex.setStatus('mandatory') wfAppleLclZoneName = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 4, 1, 4), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleLclZoneName.setStatus('mandatory') wfAppleAarpTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 5), ) if mibBuilder.loadTexts: wfAppleAarpTable.setStatus('mandatory') wfAppleAarpEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 5, 1), ).setIndexNames((0, "Wellfleet-AT-MIB", "wfAppleAarpNet"), (0, "Wellfleet-AT-MIB", "wfAppleAarpNode"), (0, "Wellfleet-AT-MIB", "wfAppleAarpIfIndex")) if mibBuilder.loadTexts: wfAppleAarpEntry.setStatus('mandatory') wfAppleAarpIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 5, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAarpIfIndex.setStatus('mandatory') wfAppleAarpNet = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 5, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAarpNet.setStatus('mandatory') wfAppleAarpNode = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 5, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAarpNode.setStatus('mandatory') wfAppleAarpPhysAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 5, 1, 4), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAarpPhysAddress.setStatus('mandatory') wfAppleZipTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 6), ) if mibBuilder.loadTexts: wfAppleZipTable.setStatus('mandatory') wfAppleZipEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 6, 1), ).setIndexNames((0, "Wellfleet-AT-MIB", "wfAppleZipZoneNetStart"), (0, "Wellfleet-AT-MIB", "wfAppleZipIndex")) if mibBuilder.loadTexts: wfAppleZipEntry.setStatus('mandatory') wfAppleZipZoneNetStart = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 6, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleZipZoneNetStart.setStatus('mandatory') wfAppleZipZoneNetEnd = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 6, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleZipZoneNetEnd.setStatus('mandatory') wfAppleZipIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 6, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleZipIndex.setStatus('mandatory') wfAppleZipZoneName = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 6, 1, 4), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleZipZoneName.setStatus('mandatory') wfAppleZipZoneState = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 6, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("valid", 1), ("invalid", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleZipZoneState.setStatus('mandatory') wfAppleZoneFilterTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7), ) if mibBuilder.loadTexts: wfAppleZoneFilterTable.setStatus('mandatory') wfAppleZoneFilterEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7, 1), ).setIndexNames((0, "Wellfleet-AT-MIB", "wfAppleZoneFilterIndex")) if mibBuilder.loadTexts: wfAppleZoneFilterEntry.setStatus('mandatory') wfAppleZoneFilterDelete = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("created", 1), ("deleted", 2))).clone('created')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleZoneFilterDelete.setStatus('mandatory') wfAppleZoneFilterCircuit = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7, 1, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleZoneFilterCircuit.setStatus('mandatory') wfAppleZoneFilterIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7, 1, 3), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleZoneFilterIpAddress.setStatus('mandatory') wfAppleZoneFilterCircuitType = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("rtmp", 1), ("aurp", 2))).clone('rtmp')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleZoneFilterCircuitType.setStatus('mandatory') wfAppleZoneFilterIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleZoneFilterIndex.setStatus('mandatory') wfAppleZoneFilterName = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7, 1, 6), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleZoneFilterName.setStatus('mandatory') wfAppleAurpBase = MibIdentifier((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8)) wfAppleAurpBaseDelete = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("created", 1), ("deleted", 2))).clone('created')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleAurpBaseDelete.setStatus('mandatory') wfAppleAurpBaseDisable = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('enabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleAurpBaseDisable.setStatus('mandatory') wfAppleAurpBaseState = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("init", 3), ("notpres", 4))).clone('down')).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpBaseState.setStatus('mandatory') wfAppleAurpBaseDomain = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 4), OctetString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleAurpBaseDomain.setStatus('mandatory') wfAppleAurpBaseIpAddress = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 5), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleAurpBaseIpAddress.setStatus('mandatory') wfAppleAurpBasePromiscuous = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("notpromisc", 1), ("promisc", 2))).clone('notpromisc')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleAurpBasePromiscuous.setStatus('mandatory') wfAppleAurpBaseInAcceptedOpenReqs = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpBaseInAcceptedOpenReqs.setStatus('mandatory') wfAppleAurpBaseInRejectedOpenReqs = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpBaseInRejectedOpenReqs.setStatus('mandatory') wfAppleAurpBaseInRouterDowns = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpBaseInRouterDowns.setStatus('mandatory') wfAppleAurpBaseInPktsNoPeers = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpBaseInPktsNoPeers.setStatus('mandatory') wfAppleAurpBaseInInvalidVerions = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpBaseInInvalidVerions.setStatus('mandatory') wfAppleAurpTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9), ) if mibBuilder.loadTexts: wfAppleAurpTable.setStatus('mandatory') wfAppleAurpEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1), ).setIndexNames((0, "Wellfleet-AT-MIB", "wfAppleAurpEntryIpAddress")) if mibBuilder.loadTexts: wfAppleAurpEntry.setStatus('mandatory') wfAppleAurpEntryDelete = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("created", 1), ("deleted", 2))).clone('created')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleAurpEntryDelete.setStatus('mandatory') wfAppleAurpEntryDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('enabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleAurpEntryDisable.setStatus('mandatory') wfAppleAurpEntryState = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("up", 1), ("down", 2))).clone('down')).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryState.setStatus('mandatory') wfAppleAurpEntryIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 4), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryIpAddress.setStatus('mandatory') wfAppleAurpEntryZoneFilterType = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("allow", 1), ("deny", 2), ("partallow", 3), ("partdeny", 4))).clone('deny')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleAurpEntryZoneFilterType.setStatus('mandatory') wfAppleAurpEntryTimeoutCommand = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1000)).clone(3)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleAurpEntryTimeoutCommand.setStatus('mandatory') wfAppleAurpEntryRetryCommand = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 100)).clone(3)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleAurpEntryRetryCommand.setStatus('mandatory') wfAppleAurpEntryUpdateRate = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(10, 604800)).clone(30)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleAurpEntryUpdateRate.setStatus('mandatory') wfAppleAurpEntryLhfTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(30, 31536000)).clone(90)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleAurpEntryLhfTimeout.setStatus('mandatory') wfAppleAurpEntryHopCountReduction = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleAurpEntryHopCountReduction.setStatus('mandatory') wfAppleAurpEntryInterfaceCost = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 11), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleAurpEntryInterfaceCost.setStatus('mandatory') wfAppleAurpEntrySuiFlags = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(30720))).clone(namedValues=NamedValues(("all", 30720))).clone('all')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleAurpEntrySuiFlags.setStatus('mandatory') wfAppleAurpEntryType = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 13), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleAurpEntryType.setStatus('mandatory') wfAppleAurpEntryPeerDomainId = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 14), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryPeerDomainId.setStatus('mandatory') wfAppleAurpEntryPeerUpdateRate = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 15), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryPeerUpdateRate.setStatus('mandatory') wfAppleAurpEntryPeerEnvironment = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 16), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryPeerEnvironment.setStatus('mandatory') wfAppleAurpEntryPeerSuiFlags = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 17), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryPeerSuiFlags.setStatus('mandatory') wfAppleAurpEntryCliConnId = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 18), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryCliConnId.setStatus('mandatory') wfAppleAurpEntrySrvConnId = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 19), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntrySrvConnId.setStatus('mandatory') wfAppleAurpEntryCliSeqNum = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 20), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryCliSeqNum.setStatus('mandatory') wfAppleAurpEntrySrvSeqNum = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 21), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntrySrvSeqNum.setStatus('mandatory') wfAppleAurpEntryCommandRetries = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 22), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryCommandRetries.setStatus('mandatory') wfAppleAurpEntryInDelayedDuplicates = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 23), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInDelayedDuplicates.setStatus('mandatory') wfAppleAurpEntryInInvalidConnIds = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 24), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInInvalidConnIds.setStatus('mandatory') wfAppleAurpEntryInInvalidCommands = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 25), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInInvalidCommands.setStatus('mandatory') wfAppleAurpEntryInInvalidSubCodes = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 26), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInInvalidSubCodes.setStatus('mandatory') wfAppleAurpEntryInPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 27), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInPkts.setStatus('mandatory') wfAppleAurpEntryOutPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 28), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutPkts.setStatus('mandatory') wfAppleAurpEntryInDdpPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 29), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInDdpPkts.setStatus('mandatory') wfAppleAurpEntryOutDdpPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 30), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutDdpPkts.setStatus('mandatory') wfAppleAurpEntryOutNoRoutes = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 31), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutNoRoutes.setStatus('mandatory') wfAppleAurpEntryHopCountErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 32), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryHopCountErrors.setStatus('mandatory') wfAppleAurpEntryHopCountAdjustments = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 33), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryHopCountAdjustments.setStatus('mandatory') wfAppleAurpEntryInAurpPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 34), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInAurpPkts.setStatus('mandatory') wfAppleAurpEntryOutAurpPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 35), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutAurpPkts.setStatus('mandatory') wfAppleAurpEntryInOpenRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 36), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInOpenRequests.setStatus('mandatory') wfAppleAurpEntryOutOpenRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 37), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutOpenRequests.setStatus('mandatory') wfAppleAurpEntryInOpenResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 38), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInOpenResponses.setStatus('mandatory') wfAppleAurpEntryOutOpenResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 39), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutOpenResponses.setStatus('mandatory') wfAppleAurpEntryInRiRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 40), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInRiRequests.setStatus('mandatory') wfAppleAurpEntryOutRiRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 41), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutRiRequests.setStatus('mandatory') wfAppleAurpEntryInRiResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 42), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInRiResponses.setStatus('mandatory') wfAppleAurpEntryOutRiResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 43), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutRiResponses.setStatus('mandatory') wfAppleAurpEntryInRiAcks = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 44), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInRiAcks.setStatus('mandatory') wfAppleAurpEntryOutRiAcks = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 45), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutRiAcks.setStatus('mandatory') wfAppleAurpEntryInRiUpdates = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 46), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInRiUpdates.setStatus('mandatory') wfAppleAurpEntryOutRiUpdates = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 47), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutRiUpdates.setStatus('mandatory') wfAppleAurpEntryInUpdateNullEvents = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 48), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInUpdateNullEvents.setStatus('mandatory') wfAppleAurpEntryOutUpdateNullEvents = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 49), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutUpdateNullEvents.setStatus('mandatory') wfAppleAurpEntryInUpdateNetAdds = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 50), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInUpdateNetAdds.setStatus('mandatory') wfAppleAurpEntryOutUpdateNetAdds = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 51), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutUpdateNetAdds.setStatus('mandatory') wfAppleAurpEntryInUpdateNetDeletes = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 52), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInUpdateNetDeletes.setStatus('mandatory') wfAppleAurpEntryOutUpdateNetDeletes = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 53), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutUpdateNetDeletes.setStatus('mandatory') wfAppleAurpEntryInUpdateNetRouteChanges = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 54), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInUpdateNetRouteChanges.setStatus('mandatory') wfAppleAurpEntryOutUpdateNetRouteChanges = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 55), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutUpdateNetRouteChanges.setStatus('mandatory') wfAppleAurpEntryInUpdateNetDistanceChanges = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 56), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInUpdateNetDistanceChanges.setStatus('mandatory') wfAppleAurpEntryOutUpdateNetDistanceChanges = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 57), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutUpdateNetDistanceChanges.setStatus('mandatory') wfAppleAurpEntryInUpdateZoneChanges = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 58), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInUpdateZoneChanges.setStatus('mandatory') wfAppleAurpEntryOutUpdateZoneChanges = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 59), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutUpdateZoneChanges.setStatus('mandatory') wfAppleAurpEntryInUpdateInvalidEvents = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 60), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInUpdateInvalidEvents.setStatus('mandatory') wfAppleAurpEntryOutUpdateInvalidEvents = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 61), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutUpdateInvalidEvents.setStatus('mandatory') wfAppleAurpEntryInZiRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 62), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInZiRequests.setStatus('mandatory') wfAppleAurpEntryOutZiRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 63), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutZiRequests.setStatus('mandatory') wfAppleAurpEntryInZiResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 64), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInZiResponses.setStatus('mandatory') wfAppleAurpEntryOutZiResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 65), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutZiResponses.setStatus('mandatory') wfAppleAurpEntryInGdzlRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 66), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInGdzlRequests.setStatus('mandatory') wfAppleAurpEntryOutGdzlRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 67), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutGdzlRequests.setStatus('mandatory') wfAppleAurpEntryInGdzlResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 68), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInGdzlResponses.setStatus('mandatory') wfAppleAurpEntryOutGdzlResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 69), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutGdzlResponses.setStatus('mandatory') wfAppleAurpEntryInGznRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 70), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInGznRequests.setStatus('mandatory') wfAppleAurpEntryOutGznRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 71), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutGznRequests.setStatus('mandatory') wfAppleAurpEntryInGznResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 72), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInGznResponses.setStatus('mandatory') wfAppleAurpEntryOutGznResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 73), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutGznResponses.setStatus('mandatory') wfAppleAurpEntryInTickles = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 74), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInTickles.setStatus('mandatory') wfAppleAurpEntryOutTickles = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 75), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutTickles.setStatus('mandatory') wfAppleAurpEntryInTickleAcks = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 76), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInTickleAcks.setStatus('mandatory') wfAppleAurpEntryOutTickleAcks = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 77), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutTickleAcks.setStatus('mandatory') wfAppleAurpEntryInRouterDowns = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 78), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInRouterDowns.setStatus('mandatory') wfAppleAurpEntryOutRouterDowns = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 79), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutRouterDowns.setStatus('mandatory') wfAppleAurpEntryZoneFiltDfltZone = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 80), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleAurpEntryZoneFiltDfltZone.setStatus('mandatory') wfAppleAggrStats = MibIdentifier((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10)) wfAppleAggrInPkts = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAggrInPkts.setStatus('mandatory') wfAppleAggrOutPkts = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAggrOutPkts.setStatus('mandatory') wfAppleAggrFwdDatagrams = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAggrFwdDatagrams.setStatus('mandatory') wfAppleAggrInXsumErrs = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAggrInXsumErrs.setStatus('mandatory') wfAppleAggrInHopCountErrs = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAggrInHopCountErrs.setStatus('mandatory') wfAppleAggrInTooShorts = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAggrInTooShorts.setStatus('mandatory') wfAppleAggrInTooLongs = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAggrInTooLongs.setStatus('mandatory') wfAppleAggrOutNoRoutes = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAggrOutNoRoutes.setStatus('mandatory') wfAppleAggrInLocalDests = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAggrInLocalDests.setStatus('mandatory') wfAppleAggrInRtmps = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAggrInRtmps.setStatus('mandatory') wfAppleAggrOutRtmps = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAggrOutRtmps.setStatus('mandatory') mibBuilder.exportSymbols("Wellfleet-AT-MIB", wfAppleZipZoneNetStart=wfAppleZipZoneNetStart, wfAppleAurpEntryOutRiAcks=wfAppleAurpEntryOutRiAcks, wfAppleBaseEstimatedHosts=wfAppleBaseEstimatedHosts, wfApplePortAarpRspTxs=wfApplePortAarpRspTxs, wfAppleAurpBaseDomain=wfAppleAurpBaseDomain, wfAppleAurpEntryInRiUpdates=wfAppleAurpEntryInRiUpdates, wfAppleAurpEntryOutGznRequests=wfAppleAurpEntryOutGznRequests, wfAppleZoneFilterCircuitType=wfAppleZoneFilterCircuitType, wfApplePortZipInZipQueries=wfApplePortZipInZipQueries, wfApplePortNodeId=wfApplePortNodeId, wfApplePortAarpProbeTxs=wfApplePortAarpProbeTxs, wfAppleAurpEntryInUpdateNullEvents=wfAppleAurpEntryInUpdateNullEvents, wfAppleAurpEntryOutUpdateInvalidEvents=wfAppleAurpEntryOutUpdateInvalidEvents, wfApplePortWanBroadcastAddress=wfApplePortWanBroadcastAddress, wfAppleAurpBasePromiscuous=wfAppleAurpBasePromiscuous, wfApplePortEntry=wfApplePortEntry, wfApplePortNetStart=wfApplePortNetStart, wfAppleAurpEntryLhfTimeout=wfAppleAurpEntryLhfTimeout, wfAppleAurpEntryPeerUpdateRate=wfAppleAurpEntryPeerUpdateRate, wfAppleAarpNet=wfAppleAarpNet, wfAppleAurpEntryRetryCommand=wfAppleAurpEntryRetryCommand, wfAppleAurpEntryInDdpPkts=wfAppleAurpEntryInDdpPkts, wfAppleAurpEntryState=wfAppleAurpEntryState, wfAppleAggrInTooLongs=wfAppleAggrInTooLongs, wfMacIPLowerIpAddress2=wfMacIPLowerIpAddress2, wfAppleAurpEntryInTickleAcks=wfAppleAurpEntryInTickleAcks, wfApplePortZipInGetNetInfos=wfApplePortZipInGetNetInfos, wfAppleBaseState=wfAppleBaseState, wfAppleAggrInRtmps=wfAppleAggrInRtmps, wfAppleAurpBaseDelete=wfAppleAurpBaseDelete, wfAppleLclZoneIndex=wfAppleLclZoneIndex, wfApplePortAarpReqTxs=wfApplePortAarpReqTxs, wfAppleZoneFilterEntry=wfAppleZoneFilterEntry, wfApplePortDdpForwRequests=wfApplePortDdpForwRequests, wfAppleAurpEntry=wfAppleAurpEntry, wfApplePortInterfaceCost=wfApplePortInterfaceCost, wfAppleBaseTotalZones=wfAppleBaseTotalZones, wfAppleAurpEntryInUpdateInvalidEvents=wfAppleAurpEntryInUpdateInvalidEvents, wfApplePortCircuit=wfApplePortCircuit, wfAppleMacIPBaseDelete=wfAppleMacIPBaseDelete, wfAppleAurpEntryOutOpenRequests=wfAppleAurpEntryOutOpenRequests, wfAppleAggrOutNoRoutes=wfAppleAggrOutNoRoutes, wfAppleZoneFilterTable=wfAppleZoneFilterTable, wfApplePortGniForever=wfApplePortGniForever, wfApplePortNbpInBroadcastRequests=wfApplePortNbpInBroadcastRequests, wfAppleAurpEntryOutUpdateNullEvents=wfAppleAurpEntryOutUpdateNullEvents, wfApplePortZipOutGetNetInfos=wfApplePortZipOutGetNetInfos, wfAppleLclZoneTable=wfAppleLclZoneTable, wfMacIPAddress2=wfMacIPAddress2, wfAppleAurpEntryInInvalidCommands=wfAppleAurpEntryInInvalidCommands, wfAppleAurpEntryInAurpPkts=wfAppleAurpEntryInAurpPkts, wfAppleAurpEntryOutOpenResponses=wfAppleAurpEntryOutOpenResponses, wfAppleAurpEntryInGdzlResponses=wfAppleAurpEntryInGdzlResponses, wfApplePortDdpOutNoRoutes=wfApplePortDdpOutNoRoutes, wfAppleZipEntry=wfAppleZipEntry, wfAppleAurpBaseInRejectedOpenReqs=wfAppleAurpBaseInRejectedOpenReqs, wfApplePortDdpInLocalDatagrams=wfApplePortDdpInLocalDatagrams, wfApplePortCurNetEnd=wfApplePortCurNetEnd, wfAppleLclZoneName=wfAppleLclZoneName, wfAppleAurpBaseInInvalidVerions=wfAppleAurpBaseInInvalidVerions, wfAppleAurpEntryOutRiRequests=wfAppleAurpEntryOutRiRequests, wfAppleAggrOutRtmps=wfAppleAggrOutRtmps, wfApplePortDdpBroadcastErrors=wfApplePortDdpBroadcastErrors, wfAppleAurpBaseInRouterDowns=wfAppleAurpBaseInRouterDowns, wfAppleAurpBaseInPktsNoPeers=wfAppleAurpBaseInPktsNoPeers, wfApplePortZipAddressInvalids=wfApplePortZipAddressInvalids, wfAppleAurpEntryInGznResponses=wfAppleAurpEntryInGznResponses, wfApplePortRtmpRouteDeletes=wfApplePortRtmpRouteDeletes, wfAppleZipIndex=wfAppleZipIndex, wfApplePortDelete=wfApplePortDelete, wfAppleAurpEntryInRiResponses=wfAppleAurpEntryInRiResponses, wfApplePortTrEndStation=wfApplePortTrEndStation, wfAppleAurpEntryOutUpdateZoneChanges=wfAppleAurpEntryOutUpdateZoneChanges, wfAppleAurpEntryInGdzlRequests=wfAppleAurpEntryInGdzlRequests, wfApplePortDdpTooLongErrors=wfApplePortDdpTooLongErrors, wfAppleAarpNode=wfAppleAarpNode, wfAppleRtmpHops=wfAppleRtmpHops, wfAppleBaseTotalAarpEntries=wfAppleBaseTotalAarpEntries, wfApplePortRtmpInDataPkts=wfApplePortRtmpInDataPkts, wfAppleAurpBaseInAcceptedOpenReqs=wfAppleAurpBaseInAcceptedOpenReqs, wfAppleAurpEntryHopCountReduction=wfAppleAurpEntryHopCountReduction, wfApplePortDdpOutRequests=wfApplePortDdpOutRequests, wfApplePortNbpInLookUpRequests=wfApplePortNbpInLookUpRequests, wfAppleAurpEntryOutUpdateNetAdds=wfAppleAurpEntryOutUpdateNetAdds, wfApplePortZipOutZipReplies=wfApplePortZipOutZipReplies, wfAppleAurpEntryOutPkts=wfAppleAurpEntryOutPkts, wfApplePortZipInGetZoneLists=wfApplePortZipInGetZoneLists, wfAppleAurpEntryCliSeqNum=wfAppleAurpEntryCliSeqNum, wfAppleAurpEntryPeerDomainId=wfAppleAurpEntryPeerDomainId, wfAppleAurpEntryHopCountAdjustments=wfAppleAurpEntryHopCountAdjustments, wfApplePortRtmpNextIREqualChanges=wfApplePortRtmpNextIREqualChanges, wfAppleAurpEntryOutRiResponses=wfAppleAurpEntryOutRiResponses, wfAppleAarpEntry=wfAppleAarpEntry, wfApplePortRtmpNetworkMismatchErrors=wfApplePortRtmpNetworkMismatchErrors, wfAppleAurpEntryInUpdateZoneChanges=wfAppleAurpEntryInUpdateZoneChanges, wfApplePortZipInGetLocalZones=wfApplePortZipInGetLocalZones, wfAppleMacIPBaseDisable=wfAppleMacIPBaseDisable, wfAppleAurpBaseIpAddress=wfAppleAurpBaseIpAddress, wfAppleAurpEntryDisable=wfAppleAurpEntryDisable, wfAppleAurpEntryInOpenRequests=wfAppleAurpEntryInOpenRequests, wfApplePortState=wfApplePortState, wfMacIPAddress1=wfMacIPAddress1, wfAppleAggrStats=wfAppleAggrStats, wfMacIPUpperIpAddress3=wfMacIPUpperIpAddress3, wfApplePortRtmpRoutingTableOverflows=wfApplePortRtmpRoutingTableOverflows, wfAppleAurpEntryInRiAcks=wfAppleAurpEntryInRiAcks, wfAppleAurpEntryOutZiResponses=wfAppleAurpEntryOutZiResponses, wfApplePortAarpReqRxs=wfApplePortAarpReqRxs, wfApplePortCurNodeId=wfApplePortCurNodeId, wfApplePortDdpChecksumErrors=wfApplePortDdpChecksumErrors, wfAppleZipZoneName=wfAppleZipZoneName, wfApplePortEchoReplies=wfApplePortEchoReplies, wfMacIPAddress3=wfMacIPAddress3, wfApplePortMacAddress=wfApplePortMacAddress, wfAppleZoneFilterDelete=wfAppleZoneFilterDelete, wfApplePortRtmpInRequestPkts=wfApplePortRtmpInRequestPkts, wfApplePortNbpOutForwardRequests=wfApplePortNbpOutForwardRequests, wfAppleAurpEntryPeerSuiFlags=wfAppleAurpEntryPeerSuiFlags, wfAppleZoneFilterIpAddress=wfAppleZoneFilterIpAddress, wfAppleAurpEntryOutZiRequests=wfAppleAurpEntryOutZiRequests, wfAppleLclZoneDelete=wfAppleLclZoneDelete, wfAppleAurpEntryInUpdateNetAdds=wfAppleAurpEntryInUpdateNetAdds, wfAppleMacIPServerResponces=wfAppleMacIPServerResponces, wfApplePortCurNetStart=wfApplePortCurNetStart, wfApplePortZipOutZipExtendedReplies=wfApplePortZipOutZipExtendedReplies, wfApplePortCksumDisable=wfApplePortCksumDisable, wfAppleRtmpPort=wfAppleRtmpPort, wfAppleRtmpNetEnd=wfAppleRtmpNetEnd, wfApplePortNbpOutBroadcastRequests=wfApplePortNbpOutBroadcastRequests, wfAppleAurpEntryZoneFiltDfltZone=wfAppleAurpEntryZoneFiltDfltZone, wfAppleBaseTotalNets=wfAppleBaseTotalNets, wfAppleAurpEntryCliConnId=wfAppleAurpEntryCliConnId, wfAppleZoneFilterName=wfAppleZoneFilterName, wfAppleAurpEntrySrvSeqNum=wfAppleAurpEntrySrvSeqNum, wfAppleAurpEntryInInvalidConnIds=wfAppleAurpEntryInInvalidConnIds, wfApplePortDisable=wfApplePortDisable, wfApplePortZipOutZipQueries=wfApplePortZipOutZipQueries, wfApplePortType=wfApplePortType, wfApplePortNbpInLookUpReplies=wfApplePortNbpInLookUpReplies, wfApplePortWanSplitHorizonDisable=wfApplePortWanSplitHorizonDisable, wfAppleRtmpTable=wfAppleRtmpTable, wfAppleAurpBaseDisable=wfAppleAurpBaseDisable, wfAppleAurpEntryCommandRetries=wfAppleAurpEntryCommandRetries, wfAppleRtmpNetStart=wfAppleRtmpNetStart, wfApplePortZipZoneConflictErrors=wfApplePortZipZoneConflictErrors, wfAppleAurpEntryOutRiUpdates=wfAppleAurpEntryOutRiUpdates, wfApplePortEchoRequests=wfApplePortEchoRequests, wfAppleAurpEntryOutRouterDowns=wfAppleAurpEntryOutRouterDowns, wfApplePortAarpProbeRxs=wfApplePortAarpProbeRxs, wfAppleBaseDebugLevel=wfAppleBaseDebugLevel, wfAppleBaseDdpQueLen=wfAppleBaseDdpQueLen, wfAppleMacIPZone=wfAppleMacIPZone, wfApplePortTable=wfApplePortTable, wfMacIPLowerIpAddress1=wfMacIPLowerIpAddress1, wfAppleRtmpEntry=wfAppleRtmpEntry, wfAppleAurpEntryOutAurpPkts=wfAppleAurpEntryOutAurpPkts, wfAppleLclZonePortCircuit=wfAppleLclZonePortCircuit, wfAppleBaseDelete=wfAppleBaseDelete, wfApplePortZipZoneOutInvalids=wfApplePortZipZoneOutInvalids, wfAppleRtmpProto=wfAppleRtmpProto, wfApplePortZipInZipExtendedReplies=wfApplePortZipInZipExtendedReplies, wfApplePortMacIPDisable=wfApplePortMacIPDisable, wfAppleAurpEntryOutTickles=wfAppleAurpEntryOutTickles, wfAppleRtmpAurpNextHopIpAddress=wfAppleRtmpAurpNextHopIpAddress, wfAppleAurpEntryInZiResponses=wfAppleAurpEntryInZiResponses, wfApplePortDdpNoProtocolHandlers=wfApplePortDdpNoProtocolHandlers, wfMacIPUpperIpAddress1=wfMacIPUpperIpAddress1, wfAppleZipZoneNetEnd=wfAppleZipZoneNetEnd, wfAppleMacIPAddressTimeOut=wfAppleMacIPAddressTimeOut, wfAppleAurpEntryInDelayedDuplicates=wfAppleAurpEntryInDelayedDuplicates, wfAppleAggrInPkts=wfAppleAggrInPkts, wfAppleAurpBase=wfAppleAurpBase, wfAppleAurpEntryInZiRequests=wfAppleAurpEntryInZiRequests, wfApplePortNbpInForwardRequests=wfApplePortNbpInForwardRequests, wfApplePortNbpInErrors=wfApplePortNbpInErrors, wfAppleZoneFilterCircuit=wfAppleZoneFilterCircuit, wfAppleAurpEntryPeerEnvironment=wfAppleAurpEntryPeerEnvironment, wfAppleLclZoneEntry=wfAppleLclZoneEntry, wfAppleAurpEntryInTickles=wfAppleAurpEntryInTickles, wfAppleAurpEntryInUpdateNetDeletes=wfAppleAurpEntryInUpdateNetDeletes, wfAppleAurpEntryOutNoRoutes=wfAppleAurpEntryOutNoRoutes, wfApplePortDdpInReceives=wfApplePortDdpInReceives, wfAppleZoneFilterIndex=wfAppleZoneFilterIndex, wfAppleBaseHomedPort=wfAppleBaseHomedPort, wfApplePortZoneFilterType=wfApplePortZoneFilterType, wfAppleBaseTotalZoneNames=wfAppleBaseTotalZoneNames, wfApplePortCurMacAddress=wfApplePortCurMacAddress, wfAppleAurpEntryIpAddress=wfAppleAurpEntryIpAddress, wfAppleAggrInTooShorts=wfAppleAggrInTooShorts, wfApplePortZipInZipReplies=wfApplePortZipInZipReplies, wfApplePortZipOutGetLocalZoneReplies=wfApplePortZipOutGetLocalZoneReplies, wfMacIPUpperIpAddress2=wfMacIPUpperIpAddress2, wfAppleAurpEntryInUpdateNetRouteChanges=wfAppleAurpEntryInUpdateNetRouteChanges, wfAppleAggrInHopCountErrs=wfAppleAggrInHopCountErrs, wfAppleZipTable=wfAppleZipTable, wfAppleAurpEntryInPkts=wfAppleAurpEntryInPkts, wfAppleAurpBaseState=wfAppleAurpBaseState, wfApplePortNetwork=wfApplePortNetwork, wfApplePortZipInErrors=wfApplePortZipInErrors, wfAppleBase=wfAppleBase, wfApplePortAarpRspRxs=wfApplePortAarpRspRxs, wfAppleAurpEntryOutDdpPkts=wfAppleAurpEntryOutDdpPkts, wfMacIPLowerIpAddress3=wfMacIPLowerIpAddress3, wfAppleAurpTable=wfAppleAurpTable, wfAppleAurpEntryInRiRequests=wfAppleAurpEntryInRiRequests, wfAppleAggrInXsumErrs=wfAppleAggrInXsumErrs, wfApplePortCurNetwork=wfApplePortCurNetwork, wfApplePortZipOutGetZoneListReplies=wfApplePortZipOutGetZoneListReplies, wfApplePortZipOutGetMyZoneReplies=wfApplePortZipOutGetMyZoneReplies, wfAppleRtmpNextHopNet=wfAppleRtmpNextHopNet, wfAppleAggrInLocalDests=wfAppleAggrInLocalDests, wfApplePortNetEnd=wfApplePortNetEnd, wfAppleBaseEstimatedNets=wfAppleBaseEstimatedNets, wfAppleAurpEntryInterfaceCost=wfAppleAurpEntryInterfaceCost, wfAppleAurpEntryInOpenResponses=wfAppleAurpEntryInOpenResponses, wfAppleAurpEntryOutGdzlRequests=wfAppleAurpEntryOutGdzlRequests, wfAppleAurpEntryOutUpdateNetDistanceChanges=wfAppleAurpEntryOutUpdateNetDistanceChanges, wfAppleAurpEntryHopCountErrors=wfAppleAurpEntryHopCountErrors, wfAppleAurpEntrySrvConnId=wfAppleAurpEntrySrvConnId, wfAppleAarpTable=wfAppleAarpTable, wfAppleAggrOutPkts=wfAppleAggrOutPkts, wfAppleAurpEntryType=wfAppleAurpEntryType, wfAppleAurpEntryDelete=wfAppleAurpEntryDelete, wfApplePortRtmpNextIRLessChanges=wfApplePortRtmpNextIRLessChanges, wfApplePortRtmpOutDataPkts=wfApplePortRtmpOutDataPkts, wfAppleAarpPhysAddress=wfAppleAarpPhysAddress, wfAppleAurpEntryInUpdateNetDistanceChanges=wfAppleAurpEntryInUpdateNetDistanceChanges, wfApplePortDfltZone=wfApplePortDfltZone, wfAppleRtmpState=wfAppleRtmpState, wfAppleAurpEntryUpdateRate=wfAppleAurpEntryUpdateRate, wfAppleRtmpNextHopNode=wfAppleRtmpNextHopNode, wfApplePortZipInGetMyZones=wfApplePortZipInGetMyZones, wfAppleAurpEntryInGznRequests=wfAppleAurpEntryInGznRequests, wfApplePortZipOutGetNetInfoReplies=wfApplePortZipOutGetNetInfoReplies, wfApplePortCurDfltZone=wfApplePortCurDfltZone, wfAppleAurpEntryOutUpdateNetDeletes=wfAppleAurpEntryOutUpdateNetDeletes, wfAppleAurpEntryOutGdzlResponses=wfAppleAurpEntryOutGdzlResponses, wfAppleZipZoneState=wfAppleZipZoneState, wfApplePortAarpFlush=wfApplePortAarpFlush, wfApplePortDdpTooShortErrors=wfApplePortDdpTooShortErrors, wfApplePortZipInGetNetInfoReplies=wfApplePortZipInGetNetInfoReplies, wfAppleAurpEntryTimeoutCommand=wfAppleAurpEntryTimeoutCommand, wfAppleAurpEntryInInvalidSubCodes=wfAppleAurpEntryInInvalidSubCodes, wfAppleAurpEntryOutGznResponses=wfAppleAurpEntryOutGznResponses, wfApplePortNbpOutLookUpReplies=wfApplePortNbpOutLookUpReplies, wfAppleBaseDisable=wfAppleBaseDisable, wfAppleMacIPBaseState=wfAppleMacIPBaseState, wfAppleAurpEntryOutUpdateNetRouteChanges=wfAppleAurpEntryOutUpdateNetRouteChanges, wfAppleAurpEntryInRouterDowns=wfAppleAurpEntryInRouterDowns, wfAppleAarpIfIndex=wfAppleAarpIfIndex, wfAppleAurpEntryZoneFilterType=wfAppleAurpEntryZoneFilterType, wfApplePortDdpHopCountErrors=wfApplePortDdpHopCountErrors, wfAppleAurpEntrySuiFlags=wfAppleAurpEntrySuiFlags, wfApplePortNbpOutLookUpRequests=wfApplePortNbpOutLookUpRequests) mibBuilder.exportSymbols("Wellfleet-AT-MIB", wfAppleAurpEntryOutTickleAcks=wfAppleAurpEntryOutTickleAcks, wfAppleMacIPServerRequests=wfAppleMacIPServerRequests, wfAppleAggrFwdDatagrams=wfAppleAggrFwdDatagrams, wfApplePortNbpRegistrationFailures=wfApplePortNbpRegistrationFailures)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, single_value_constraint, value_range_constraint, constraints_union, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'SingleValueConstraint', 'ValueRangeConstraint', 'ConstraintsUnion', 'ConstraintsIntersection') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (object_identity, mib_identifier, module_identity, bits, iso, mib_scalar, mib_table, mib_table_row, mib_table_column, gauge32, time_ticks, integer32, unsigned32, ip_address, counter64, notification_type, counter32) = mibBuilder.importSymbols('SNMPv2-SMI', 'ObjectIdentity', 'MibIdentifier', 'ModuleIdentity', 'Bits', 'iso', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Gauge32', 'TimeTicks', 'Integer32', 'Unsigned32', 'IpAddress', 'Counter64', 'NotificationType', 'Counter32') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') (wf_appletalk_group,) = mibBuilder.importSymbols('Wellfleet-COMMON-MIB', 'wfAppletalkGroup') wf_apple_base = mib_identifier((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1)) wf_apple_base_delete = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('created', 1), ('deleted', 2))).clone('created')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfAppleBaseDelete.setStatus('mandatory') wf_apple_base_disable = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('enabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfAppleBaseDisable.setStatus('mandatory') wf_apple_base_state = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('up', 1), ('down', 2), ('init', 3), ('notpres', 4))).clone('down')).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleBaseState.setStatus('mandatory') wf_apple_base_debug_level = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 4), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfAppleBaseDebugLevel.setStatus('mandatory') wf_apple_base_ddp_que_len = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(10, 2147483647)).clone(20)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfAppleBaseDdpQueLen.setStatus('mandatory') wf_apple_base_homed_port = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 6), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfAppleBaseHomedPort.setStatus('mandatory') wf_apple_base_total_nets = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleBaseTotalNets.setStatus('mandatory') wf_apple_base_total_zones = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleBaseTotalZones.setStatus('mandatory') wf_apple_base_total_zone_names = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleBaseTotalZoneNames.setStatus('mandatory') wf_apple_base_total_aarp_entries = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleBaseTotalAarpEntries.setStatus('mandatory') wf_apple_base_estimated_nets = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 11), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfAppleBaseEstimatedNets.setStatus('mandatory') wf_apple_base_estimated_hosts = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 12), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfAppleBaseEstimatedHosts.setStatus('mandatory') wf_apple_mac_ip_base_delete = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('created', 1), ('deleted', 2))).clone('deleted')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfAppleMacIPBaseDelete.setStatus('mandatory') wf_apple_mac_ip_base_disable = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('disabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfAppleMacIPBaseDisable.setStatus('mandatory') wf_apple_mac_ip_base_state = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 15), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('up', 1), ('down', 2), ('init', 3), ('notpres', 4))).clone('down')).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleMacIPBaseState.setStatus('mandatory') wf_apple_mac_ip_zone = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 16), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfAppleMacIPZone.setStatus('mandatory') wf_mac_ip_address1 = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 17), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfMacIPAddress1.setStatus('mandatory') wf_mac_ip_lower_ip_address1 = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 18), integer32().subtype(subtypeSpec=value_range_constraint(1, 254)).clone(1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfMacIPLowerIpAddress1.setStatus('mandatory') wf_mac_ip_upper_ip_address1 = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 19), integer32().subtype(subtypeSpec=value_range_constraint(1, 254)).clone(1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfMacIPUpperIpAddress1.setStatus('mandatory') wf_mac_ip_address2 = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 20), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfMacIPAddress2.setStatus('mandatory') wf_mac_ip_lower_ip_address2 = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 21), integer32().subtype(subtypeSpec=value_range_constraint(1, 254)).clone(1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfMacIPLowerIpAddress2.setStatus('mandatory') wf_mac_ip_upper_ip_address2 = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 22), integer32().subtype(subtypeSpec=value_range_constraint(1, 254)).clone(1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfMacIPUpperIpAddress2.setStatus('mandatory') wf_mac_ip_address3 = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 23), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfMacIPAddress3.setStatus('mandatory') wf_mac_ip_lower_ip_address3 = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 24), integer32().subtype(subtypeSpec=value_range_constraint(1, 254)).clone(1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfMacIPLowerIpAddress3.setStatus('mandatory') wf_mac_ip_upper_ip_address3 = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 25), integer32().subtype(subtypeSpec=value_range_constraint(1, 254)).clone(1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfMacIPUpperIpAddress3.setStatus('mandatory') wf_apple_mac_ip_address_time_out = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 26), integer32().subtype(subtypeSpec=value_range_constraint(1, 255)).clone(5)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfAppleMacIPAddressTimeOut.setStatus('mandatory') wf_apple_mac_ip_server_requests = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 27), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleMacIPServerRequests.setStatus('mandatory') wf_apple_mac_ip_server_responces = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 28), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleMacIPServerResponces.setStatus('mandatory') wf_apple_rtmp_table = mib_table((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2)) if mibBuilder.loadTexts: wfAppleRtmpTable.setStatus('mandatory') wf_apple_rtmp_entry = mib_table_row((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1)).setIndexNames((0, 'Wellfleet-AT-MIB', 'wfAppleRtmpNetStart'), (0, 'Wellfleet-AT-MIB', 'wfAppleRtmpNetEnd')) if mibBuilder.loadTexts: wfAppleRtmpEntry.setStatus('mandatory') wf_apple_rtmp_net_start = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleRtmpNetStart.setStatus('mandatory') wf_apple_rtmp_net_end = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleRtmpNetEnd.setStatus('mandatory') wf_apple_rtmp_port = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleRtmpPort.setStatus('mandatory') wf_apple_rtmp_hops = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleRtmpHops.setStatus('mandatory') wf_apple_rtmp_next_hop_net = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleRtmpNextHopNet.setStatus('mandatory') wf_apple_rtmp_next_hop_node = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleRtmpNextHopNode.setStatus('mandatory') wf_apple_rtmp_state = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('good', 1), ('suspect', 2), ('goingbad', 3), ('bad', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleRtmpState.setStatus('mandatory') wf_apple_rtmp_proto = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('rtmp', 1), ('aurp', 2), ('static', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleRtmpProto.setStatus('mandatory') wf_apple_rtmp_aurp_next_hop_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 9), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleRtmpAurpNextHopIpAddress.setStatus('mandatory') wf_apple_port_table = mib_table((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3)) if mibBuilder.loadTexts: wfApplePortTable.setStatus('mandatory') wf_apple_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1)).setIndexNames((0, 'Wellfleet-AT-MIB', 'wfApplePortCircuit')) if mibBuilder.loadTexts: wfApplePortEntry.setStatus('mandatory') wf_apple_port_delete = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('created', 1), ('deleted', 2))).clone('created')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfApplePortDelete.setStatus('mandatory') wf_apple_port_disable = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('enabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfApplePortDisable.setStatus('mandatory') wf_apple_port_circuit = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortCircuit.setStatus('mandatory') wf_apple_port_state = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('up', 1), ('down', 2))).clone('down')).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortState.setStatus('mandatory') wf_apple_port_type = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 5), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfApplePortType.setStatus('mandatory') wf_apple_port_cksum_disable = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('disabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfApplePortCksumDisable.setStatus('mandatory') wf_apple_port_tr_end_station = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('disabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfApplePortTrEndStation.setStatus('mandatory') wf_apple_port_gni_forever = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 8), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfApplePortGniForever.setStatus('obsolete') wf_apple_port_aarp_flush = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 9), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfApplePortAarpFlush.setStatus('mandatory') wf_apple_port_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 10), octet_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfApplePortMacAddress.setStatus('mandatory') wf_apple_port_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 11), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfApplePortNodeId.setStatus('mandatory') wf_apple_port_network = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 12), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfApplePortNetwork.setStatus('mandatory') wf_apple_port_net_start = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 13), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfApplePortNetStart.setStatus('mandatory') wf_apple_port_net_end = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 14), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfApplePortNetEnd.setStatus('mandatory') wf_apple_port_dflt_zone = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 15), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfApplePortDfltZone.setStatus('mandatory') wf_apple_port_cur_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 16), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortCurMacAddress.setStatus('mandatory') wf_apple_port_cur_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 17), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortCurNodeId.setStatus('mandatory') wf_apple_port_cur_network = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 18), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortCurNetwork.setStatus('mandatory') wf_apple_port_cur_net_start = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 19), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortCurNetStart.setStatus('mandatory') wf_apple_port_cur_net_end = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 20), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortCurNetEnd.setStatus('mandatory') wf_apple_port_cur_dflt_zone = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 21), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortCurDfltZone.setStatus('mandatory') wf_apple_port_aarp_probe_rxs = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 22), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortAarpProbeRxs.setStatus('mandatory') wf_apple_port_aarp_probe_txs = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 23), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortAarpProbeTxs.setStatus('mandatory') wf_apple_port_aarp_req_rxs = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 24), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortAarpReqRxs.setStatus('mandatory') wf_apple_port_aarp_req_txs = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 25), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortAarpReqTxs.setStatus('mandatory') wf_apple_port_aarp_rsp_rxs = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 26), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortAarpRspRxs.setStatus('mandatory') wf_apple_port_aarp_rsp_txs = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 27), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortAarpRspTxs.setStatus('mandatory') wf_apple_port_ddp_out_requests = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 28), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortDdpOutRequests.setStatus('mandatory') wf_apple_port_ddp_in_receives = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 29), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortDdpInReceives.setStatus('mandatory') wf_apple_port_ddp_in_local_datagrams = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 30), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortDdpInLocalDatagrams.setStatus('mandatory') wf_apple_port_ddp_no_protocol_handlers = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 31), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortDdpNoProtocolHandlers.setStatus('mandatory') wf_apple_port_ddp_too_short_errors = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 32), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortDdpTooShortErrors.setStatus('mandatory') wf_apple_port_ddp_too_long_errors = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 33), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortDdpTooLongErrors.setStatus('mandatory') wf_apple_port_ddp_checksum_errors = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 34), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortDdpChecksumErrors.setStatus('mandatory') wf_apple_port_ddp_forw_requests = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 35), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortDdpForwRequests.setStatus('mandatory') wf_apple_port_ddp_out_no_routes = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 36), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortDdpOutNoRoutes.setStatus('mandatory') wf_apple_port_ddp_broadcast_errors = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 37), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortDdpBroadcastErrors.setStatus('mandatory') wf_apple_port_ddp_hop_count_errors = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 38), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortDdpHopCountErrors.setStatus('mandatory') wf_apple_port_rtmp_in_data_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 39), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortRtmpInDataPkts.setStatus('mandatory') wf_apple_port_rtmp_out_data_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 40), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortRtmpOutDataPkts.setStatus('mandatory') wf_apple_port_rtmp_in_request_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 41), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortRtmpInRequestPkts.setStatus('mandatory') wf_apple_port_rtmp_next_ir_equal_changes = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 42), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortRtmpNextIREqualChanges.setStatus('mandatory') wf_apple_port_rtmp_next_ir_less_changes = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 43), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortRtmpNextIRLessChanges.setStatus('mandatory') wf_apple_port_rtmp_route_deletes = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 44), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortRtmpRouteDeletes.setStatus('mandatory') wf_apple_port_rtmp_network_mismatch_errors = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 45), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortRtmpNetworkMismatchErrors.setStatus('mandatory') wf_apple_port_rtmp_routing_table_overflows = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 46), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortRtmpRoutingTableOverflows.setStatus('mandatory') wf_apple_port_zip_in_zip_queries = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 47), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortZipInZipQueries.setStatus('mandatory') wf_apple_port_zip_in_zip_replies = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 48), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortZipInZipReplies.setStatus('mandatory') wf_apple_port_zip_out_zip_replies = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 49), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortZipOutZipReplies.setStatus('mandatory') wf_apple_port_zip_in_zip_extended_replies = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 50), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortZipInZipExtendedReplies.setStatus('mandatory') wf_apple_port_zip_out_zip_extended_replies = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 51), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortZipOutZipExtendedReplies.setStatus('mandatory') wf_apple_port_zip_in_get_zone_lists = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 52), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortZipInGetZoneLists.setStatus('mandatory') wf_apple_port_zip_out_get_zone_list_replies = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 53), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortZipOutGetZoneListReplies.setStatus('mandatory') wf_apple_port_zip_in_get_local_zones = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 54), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortZipInGetLocalZones.setStatus('mandatory') wf_apple_port_zip_out_get_local_zone_replies = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 55), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortZipOutGetLocalZoneReplies.setStatus('mandatory') wf_apple_port_zip_in_get_my_zones = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 56), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortZipInGetMyZones.setStatus('obsolete') wf_apple_port_zip_out_get_my_zone_replies = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 57), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortZipOutGetMyZoneReplies.setStatus('obsolete') wf_apple_port_zip_zone_conflict_errors = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 58), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortZipZoneConflictErrors.setStatus('mandatory') wf_apple_port_zip_in_get_net_infos = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 59), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortZipInGetNetInfos.setStatus('mandatory') wf_apple_port_zip_out_get_net_info_replies = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 60), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortZipOutGetNetInfoReplies.setStatus('mandatory') wf_apple_port_zip_zone_out_invalids = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 61), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortZipZoneOutInvalids.setStatus('mandatory') wf_apple_port_zip_address_invalids = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 62), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortZipAddressInvalids.setStatus('mandatory') wf_apple_port_zip_out_get_net_infos = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 63), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortZipOutGetNetInfos.setStatus('mandatory') wf_apple_port_zip_in_get_net_info_replies = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 64), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortZipInGetNetInfoReplies.setStatus('mandatory') wf_apple_port_zip_out_zip_queries = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 65), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortZipOutZipQueries.setStatus('mandatory') wf_apple_port_zip_in_errors = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 66), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortZipInErrors.setStatus('mandatory') wf_apple_port_nbp_in_look_up_requests = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 67), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortNbpInLookUpRequests.setStatus('mandatory') wf_apple_port_nbp_in_look_up_replies = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 68), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortNbpInLookUpReplies.setStatus('mandatory') wf_apple_port_nbp_in_broadcast_requests = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 69), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortNbpInBroadcastRequests.setStatus('mandatory') wf_apple_port_nbp_in_forward_requests = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 70), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortNbpInForwardRequests.setStatus('mandatory') wf_apple_port_nbp_out_look_up_requests = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 71), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortNbpOutLookUpRequests.setStatus('mandatory') wf_apple_port_nbp_out_look_up_replies = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 72), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortNbpOutLookUpReplies.setStatus('mandatory') wf_apple_port_nbp_out_broadcast_requests = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 73), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortNbpOutBroadcastRequests.setStatus('mandatory') wf_apple_port_nbp_out_forward_requests = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 74), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortNbpOutForwardRequests.setStatus('mandatory') wf_apple_port_nbp_registration_failures = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 75), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortNbpRegistrationFailures.setStatus('mandatory') wf_apple_port_nbp_in_errors = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 76), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortNbpInErrors.setStatus('mandatory') wf_apple_port_echo_requests = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 77), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortEchoRequests.setStatus('mandatory') wf_apple_port_echo_replies = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 78), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfApplePortEchoReplies.setStatus('mandatory') wf_apple_port_interface_cost = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 79), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(15))).clone(namedValues=named_values(('cost', 15)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfApplePortInterfaceCost.setStatus('mandatory') wf_apple_port_wan_broadcast_address = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 80), octet_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfApplePortWanBroadcastAddress.setStatus('mandatory') wf_apple_port_wan_split_horizon_disable = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 81), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('enabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfApplePortWanSplitHorizonDisable.setStatus('mandatory') wf_apple_port_zone_filter_type = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 82), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('allow', 1), ('deny', 2), ('partallow', 3), ('partdeny', 4))).clone('deny')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfApplePortZoneFilterType.setStatus('mandatory') wf_apple_port_mac_ip_disable = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 83), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('disabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfApplePortMacIPDisable.setStatus('mandatory') wf_apple_lcl_zone_table = mib_table((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 4)) if mibBuilder.loadTexts: wfAppleLclZoneTable.setStatus('mandatory') wf_apple_lcl_zone_entry = mib_table_row((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 4, 1)).setIndexNames((0, 'Wellfleet-AT-MIB', 'wfAppleLclZonePortCircuit'), (0, 'Wellfleet-AT-MIB', 'wfAppleLclZoneIndex')) if mibBuilder.loadTexts: wfAppleLclZoneEntry.setStatus('mandatory') wf_apple_lcl_zone_delete = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 4, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('created', 1), ('deleted', 2))).clone('created')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfAppleLclZoneDelete.setStatus('mandatory') wf_apple_lcl_zone_port_circuit = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 4, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleLclZonePortCircuit.setStatus('mandatory') wf_apple_lcl_zone_index = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 4, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleLclZoneIndex.setStatus('mandatory') wf_apple_lcl_zone_name = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 4, 1, 4), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfAppleLclZoneName.setStatus('mandatory') wf_apple_aarp_table = mib_table((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 5)) if mibBuilder.loadTexts: wfAppleAarpTable.setStatus('mandatory') wf_apple_aarp_entry = mib_table_row((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 5, 1)).setIndexNames((0, 'Wellfleet-AT-MIB', 'wfAppleAarpNet'), (0, 'Wellfleet-AT-MIB', 'wfAppleAarpNode'), (0, 'Wellfleet-AT-MIB', 'wfAppleAarpIfIndex')) if mibBuilder.loadTexts: wfAppleAarpEntry.setStatus('mandatory') wf_apple_aarp_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 5, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAarpIfIndex.setStatus('mandatory') wf_apple_aarp_net = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 5, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAarpNet.setStatus('mandatory') wf_apple_aarp_node = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 5, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAarpNode.setStatus('mandatory') wf_apple_aarp_phys_address = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 5, 1, 4), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAarpPhysAddress.setStatus('mandatory') wf_apple_zip_table = mib_table((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 6)) if mibBuilder.loadTexts: wfAppleZipTable.setStatus('mandatory') wf_apple_zip_entry = mib_table_row((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 6, 1)).setIndexNames((0, 'Wellfleet-AT-MIB', 'wfAppleZipZoneNetStart'), (0, 'Wellfleet-AT-MIB', 'wfAppleZipIndex')) if mibBuilder.loadTexts: wfAppleZipEntry.setStatus('mandatory') wf_apple_zip_zone_net_start = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 6, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleZipZoneNetStart.setStatus('mandatory') wf_apple_zip_zone_net_end = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 6, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleZipZoneNetEnd.setStatus('mandatory') wf_apple_zip_index = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 6, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleZipIndex.setStatus('mandatory') wf_apple_zip_zone_name = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 6, 1, 4), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleZipZoneName.setStatus('mandatory') wf_apple_zip_zone_state = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 6, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('valid', 1), ('invalid', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleZipZoneState.setStatus('mandatory') wf_apple_zone_filter_table = mib_table((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7)) if mibBuilder.loadTexts: wfAppleZoneFilterTable.setStatus('mandatory') wf_apple_zone_filter_entry = mib_table_row((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7, 1)).setIndexNames((0, 'Wellfleet-AT-MIB', 'wfAppleZoneFilterIndex')) if mibBuilder.loadTexts: wfAppleZoneFilterEntry.setStatus('mandatory') wf_apple_zone_filter_delete = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('created', 1), ('deleted', 2))).clone('created')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfAppleZoneFilterDelete.setStatus('mandatory') wf_apple_zone_filter_circuit = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7, 1, 2), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfAppleZoneFilterCircuit.setStatus('mandatory') wf_apple_zone_filter_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7, 1, 3), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfAppleZoneFilterIpAddress.setStatus('mandatory') wf_apple_zone_filter_circuit_type = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('rtmp', 1), ('aurp', 2))).clone('rtmp')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfAppleZoneFilterCircuitType.setStatus('mandatory') wf_apple_zone_filter_index = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleZoneFilterIndex.setStatus('mandatory') wf_apple_zone_filter_name = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7, 1, 6), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfAppleZoneFilterName.setStatus('mandatory') wf_apple_aurp_base = mib_identifier((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8)) wf_apple_aurp_base_delete = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('created', 1), ('deleted', 2))).clone('created')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfAppleAurpBaseDelete.setStatus('mandatory') wf_apple_aurp_base_disable = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('enabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfAppleAurpBaseDisable.setStatus('mandatory') wf_apple_aurp_base_state = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('up', 1), ('down', 2), ('init', 3), ('notpres', 4))).clone('down')).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpBaseState.setStatus('mandatory') wf_apple_aurp_base_domain = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 4), octet_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfAppleAurpBaseDomain.setStatus('mandatory') wf_apple_aurp_base_ip_address = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 5), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfAppleAurpBaseIpAddress.setStatus('mandatory') wf_apple_aurp_base_promiscuous = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('notpromisc', 1), ('promisc', 2))).clone('notpromisc')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfAppleAurpBasePromiscuous.setStatus('mandatory') wf_apple_aurp_base_in_accepted_open_reqs = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpBaseInAcceptedOpenReqs.setStatus('mandatory') wf_apple_aurp_base_in_rejected_open_reqs = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpBaseInRejectedOpenReqs.setStatus('mandatory') wf_apple_aurp_base_in_router_downs = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpBaseInRouterDowns.setStatus('mandatory') wf_apple_aurp_base_in_pkts_no_peers = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpBaseInPktsNoPeers.setStatus('mandatory') wf_apple_aurp_base_in_invalid_verions = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 11), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpBaseInInvalidVerions.setStatus('mandatory') wf_apple_aurp_table = mib_table((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9)) if mibBuilder.loadTexts: wfAppleAurpTable.setStatus('mandatory') wf_apple_aurp_entry = mib_table_row((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1)).setIndexNames((0, 'Wellfleet-AT-MIB', 'wfAppleAurpEntryIpAddress')) if mibBuilder.loadTexts: wfAppleAurpEntry.setStatus('mandatory') wf_apple_aurp_entry_delete = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('created', 1), ('deleted', 2))).clone('created')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfAppleAurpEntryDelete.setStatus('mandatory') wf_apple_aurp_entry_disable = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('enabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfAppleAurpEntryDisable.setStatus('mandatory') wf_apple_aurp_entry_state = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('up', 1), ('down', 2))).clone('down')).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryState.setStatus('mandatory') wf_apple_aurp_entry_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 4), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryIpAddress.setStatus('mandatory') wf_apple_aurp_entry_zone_filter_type = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('allow', 1), ('deny', 2), ('partallow', 3), ('partdeny', 4))).clone('deny')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfAppleAurpEntryZoneFilterType.setStatus('mandatory') wf_apple_aurp_entry_timeout_command = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(1, 1000)).clone(3)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfAppleAurpEntryTimeoutCommand.setStatus('mandatory') wf_apple_aurp_entry_retry_command = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(1, 100)).clone(3)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfAppleAurpEntryRetryCommand.setStatus('mandatory') wf_apple_aurp_entry_update_rate = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(10, 604800)).clone(30)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfAppleAurpEntryUpdateRate.setStatus('mandatory') wf_apple_aurp_entry_lhf_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(30, 31536000)).clone(90)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfAppleAurpEntryLhfTimeout.setStatus('mandatory') wf_apple_aurp_entry_hop_count_reduction = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('disabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfAppleAurpEntryHopCountReduction.setStatus('mandatory') wf_apple_aurp_entry_interface_cost = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 11), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfAppleAurpEntryInterfaceCost.setStatus('mandatory') wf_apple_aurp_entry_sui_flags = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(30720))).clone(namedValues=named_values(('all', 30720))).clone('all')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfAppleAurpEntrySuiFlags.setStatus('mandatory') wf_apple_aurp_entry_type = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 13), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfAppleAurpEntryType.setStatus('mandatory') wf_apple_aurp_entry_peer_domain_id = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 14), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryPeerDomainId.setStatus('mandatory') wf_apple_aurp_entry_peer_update_rate = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 15), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryPeerUpdateRate.setStatus('mandatory') wf_apple_aurp_entry_peer_environment = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 16), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryPeerEnvironment.setStatus('mandatory') wf_apple_aurp_entry_peer_sui_flags = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 17), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryPeerSuiFlags.setStatus('mandatory') wf_apple_aurp_entry_cli_conn_id = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 18), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryCliConnId.setStatus('mandatory') wf_apple_aurp_entry_srv_conn_id = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 19), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntrySrvConnId.setStatus('mandatory') wf_apple_aurp_entry_cli_seq_num = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 20), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryCliSeqNum.setStatus('mandatory') wf_apple_aurp_entry_srv_seq_num = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 21), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntrySrvSeqNum.setStatus('mandatory') wf_apple_aurp_entry_command_retries = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 22), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryCommandRetries.setStatus('mandatory') wf_apple_aurp_entry_in_delayed_duplicates = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 23), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryInDelayedDuplicates.setStatus('mandatory') wf_apple_aurp_entry_in_invalid_conn_ids = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 24), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryInInvalidConnIds.setStatus('mandatory') wf_apple_aurp_entry_in_invalid_commands = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 25), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryInInvalidCommands.setStatus('mandatory') wf_apple_aurp_entry_in_invalid_sub_codes = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 26), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryInInvalidSubCodes.setStatus('mandatory') wf_apple_aurp_entry_in_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 27), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryInPkts.setStatus('mandatory') wf_apple_aurp_entry_out_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 28), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryOutPkts.setStatus('mandatory') wf_apple_aurp_entry_in_ddp_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 29), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryInDdpPkts.setStatus('mandatory') wf_apple_aurp_entry_out_ddp_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 30), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryOutDdpPkts.setStatus('mandatory') wf_apple_aurp_entry_out_no_routes = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 31), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryOutNoRoutes.setStatus('mandatory') wf_apple_aurp_entry_hop_count_errors = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 32), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryHopCountErrors.setStatus('mandatory') wf_apple_aurp_entry_hop_count_adjustments = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 33), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryHopCountAdjustments.setStatus('mandatory') wf_apple_aurp_entry_in_aurp_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 34), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryInAurpPkts.setStatus('mandatory') wf_apple_aurp_entry_out_aurp_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 35), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryOutAurpPkts.setStatus('mandatory') wf_apple_aurp_entry_in_open_requests = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 36), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryInOpenRequests.setStatus('mandatory') wf_apple_aurp_entry_out_open_requests = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 37), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryOutOpenRequests.setStatus('mandatory') wf_apple_aurp_entry_in_open_responses = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 38), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryInOpenResponses.setStatus('mandatory') wf_apple_aurp_entry_out_open_responses = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 39), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryOutOpenResponses.setStatus('mandatory') wf_apple_aurp_entry_in_ri_requests = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 40), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryInRiRequests.setStatus('mandatory') wf_apple_aurp_entry_out_ri_requests = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 41), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryOutRiRequests.setStatus('mandatory') wf_apple_aurp_entry_in_ri_responses = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 42), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryInRiResponses.setStatus('mandatory') wf_apple_aurp_entry_out_ri_responses = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 43), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryOutRiResponses.setStatus('mandatory') wf_apple_aurp_entry_in_ri_acks = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 44), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryInRiAcks.setStatus('mandatory') wf_apple_aurp_entry_out_ri_acks = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 45), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryOutRiAcks.setStatus('mandatory') wf_apple_aurp_entry_in_ri_updates = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 46), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryInRiUpdates.setStatus('mandatory') wf_apple_aurp_entry_out_ri_updates = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 47), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryOutRiUpdates.setStatus('mandatory') wf_apple_aurp_entry_in_update_null_events = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 48), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryInUpdateNullEvents.setStatus('mandatory') wf_apple_aurp_entry_out_update_null_events = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 49), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryOutUpdateNullEvents.setStatus('mandatory') wf_apple_aurp_entry_in_update_net_adds = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 50), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryInUpdateNetAdds.setStatus('mandatory') wf_apple_aurp_entry_out_update_net_adds = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 51), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryOutUpdateNetAdds.setStatus('mandatory') wf_apple_aurp_entry_in_update_net_deletes = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 52), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryInUpdateNetDeletes.setStatus('mandatory') wf_apple_aurp_entry_out_update_net_deletes = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 53), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryOutUpdateNetDeletes.setStatus('mandatory') wf_apple_aurp_entry_in_update_net_route_changes = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 54), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryInUpdateNetRouteChanges.setStatus('mandatory') wf_apple_aurp_entry_out_update_net_route_changes = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 55), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryOutUpdateNetRouteChanges.setStatus('mandatory') wf_apple_aurp_entry_in_update_net_distance_changes = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 56), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryInUpdateNetDistanceChanges.setStatus('mandatory') wf_apple_aurp_entry_out_update_net_distance_changes = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 57), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryOutUpdateNetDistanceChanges.setStatus('mandatory') wf_apple_aurp_entry_in_update_zone_changes = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 58), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryInUpdateZoneChanges.setStatus('mandatory') wf_apple_aurp_entry_out_update_zone_changes = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 59), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryOutUpdateZoneChanges.setStatus('mandatory') wf_apple_aurp_entry_in_update_invalid_events = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 60), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryInUpdateInvalidEvents.setStatus('mandatory') wf_apple_aurp_entry_out_update_invalid_events = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 61), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryOutUpdateInvalidEvents.setStatus('mandatory') wf_apple_aurp_entry_in_zi_requests = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 62), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryInZiRequests.setStatus('mandatory') wf_apple_aurp_entry_out_zi_requests = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 63), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryOutZiRequests.setStatus('mandatory') wf_apple_aurp_entry_in_zi_responses = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 64), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryInZiResponses.setStatus('mandatory') wf_apple_aurp_entry_out_zi_responses = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 65), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryOutZiResponses.setStatus('mandatory') wf_apple_aurp_entry_in_gdzl_requests = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 66), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryInGdzlRequests.setStatus('mandatory') wf_apple_aurp_entry_out_gdzl_requests = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 67), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryOutGdzlRequests.setStatus('mandatory') wf_apple_aurp_entry_in_gdzl_responses = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 68), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryInGdzlResponses.setStatus('mandatory') wf_apple_aurp_entry_out_gdzl_responses = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 69), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryOutGdzlResponses.setStatus('mandatory') wf_apple_aurp_entry_in_gzn_requests = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 70), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryInGznRequests.setStatus('mandatory') wf_apple_aurp_entry_out_gzn_requests = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 71), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryOutGznRequests.setStatus('mandatory') wf_apple_aurp_entry_in_gzn_responses = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 72), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryInGznResponses.setStatus('mandatory') wf_apple_aurp_entry_out_gzn_responses = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 73), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryOutGznResponses.setStatus('mandatory') wf_apple_aurp_entry_in_tickles = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 74), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryInTickles.setStatus('mandatory') wf_apple_aurp_entry_out_tickles = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 75), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryOutTickles.setStatus('mandatory') wf_apple_aurp_entry_in_tickle_acks = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 76), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryInTickleAcks.setStatus('mandatory') wf_apple_aurp_entry_out_tickle_acks = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 77), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryOutTickleAcks.setStatus('mandatory') wf_apple_aurp_entry_in_router_downs = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 78), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryInRouterDowns.setStatus('mandatory') wf_apple_aurp_entry_out_router_downs = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 79), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAurpEntryOutRouterDowns.setStatus('mandatory') wf_apple_aurp_entry_zone_filt_dflt_zone = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 80), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfAppleAurpEntryZoneFiltDfltZone.setStatus('mandatory') wf_apple_aggr_stats = mib_identifier((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10)) wf_apple_aggr_in_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 1), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAggrInPkts.setStatus('mandatory') wf_apple_aggr_out_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAggrOutPkts.setStatus('mandatory') wf_apple_aggr_fwd_datagrams = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAggrFwdDatagrams.setStatus('mandatory') wf_apple_aggr_in_xsum_errs = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAggrInXsumErrs.setStatus('mandatory') wf_apple_aggr_in_hop_count_errs = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAggrInHopCountErrs.setStatus('mandatory') wf_apple_aggr_in_too_shorts = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAggrInTooShorts.setStatus('mandatory') wf_apple_aggr_in_too_longs = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAggrInTooLongs.setStatus('mandatory') wf_apple_aggr_out_no_routes = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAggrOutNoRoutes.setStatus('mandatory') wf_apple_aggr_in_local_dests = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAggrInLocalDests.setStatus('mandatory') wf_apple_aggr_in_rtmps = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAggrInRtmps.setStatus('mandatory') wf_apple_aggr_out_rtmps = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 11), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfAppleAggrOutRtmps.setStatus('mandatory') mibBuilder.exportSymbols('Wellfleet-AT-MIB', wfAppleZipZoneNetStart=wfAppleZipZoneNetStart, wfAppleAurpEntryOutRiAcks=wfAppleAurpEntryOutRiAcks, wfAppleBaseEstimatedHosts=wfAppleBaseEstimatedHosts, wfApplePortAarpRspTxs=wfApplePortAarpRspTxs, wfAppleAurpBaseDomain=wfAppleAurpBaseDomain, wfAppleAurpEntryInRiUpdates=wfAppleAurpEntryInRiUpdates, wfAppleAurpEntryOutGznRequests=wfAppleAurpEntryOutGznRequests, wfAppleZoneFilterCircuitType=wfAppleZoneFilterCircuitType, wfApplePortZipInZipQueries=wfApplePortZipInZipQueries, wfApplePortNodeId=wfApplePortNodeId, wfApplePortAarpProbeTxs=wfApplePortAarpProbeTxs, wfAppleAurpEntryInUpdateNullEvents=wfAppleAurpEntryInUpdateNullEvents, wfAppleAurpEntryOutUpdateInvalidEvents=wfAppleAurpEntryOutUpdateInvalidEvents, wfApplePortWanBroadcastAddress=wfApplePortWanBroadcastAddress, wfAppleAurpBasePromiscuous=wfAppleAurpBasePromiscuous, wfApplePortEntry=wfApplePortEntry, wfApplePortNetStart=wfApplePortNetStart, wfAppleAurpEntryLhfTimeout=wfAppleAurpEntryLhfTimeout, wfAppleAurpEntryPeerUpdateRate=wfAppleAurpEntryPeerUpdateRate, wfAppleAarpNet=wfAppleAarpNet, wfAppleAurpEntryRetryCommand=wfAppleAurpEntryRetryCommand, wfAppleAurpEntryInDdpPkts=wfAppleAurpEntryInDdpPkts, wfAppleAurpEntryState=wfAppleAurpEntryState, wfAppleAggrInTooLongs=wfAppleAggrInTooLongs, wfMacIPLowerIpAddress2=wfMacIPLowerIpAddress2, wfAppleAurpEntryInTickleAcks=wfAppleAurpEntryInTickleAcks, wfApplePortZipInGetNetInfos=wfApplePortZipInGetNetInfos, wfAppleBaseState=wfAppleBaseState, wfAppleAggrInRtmps=wfAppleAggrInRtmps, wfAppleAurpBaseDelete=wfAppleAurpBaseDelete, wfAppleLclZoneIndex=wfAppleLclZoneIndex, wfApplePortAarpReqTxs=wfApplePortAarpReqTxs, wfAppleZoneFilterEntry=wfAppleZoneFilterEntry, wfApplePortDdpForwRequests=wfApplePortDdpForwRequests, wfAppleAurpEntry=wfAppleAurpEntry, wfApplePortInterfaceCost=wfApplePortInterfaceCost, wfAppleBaseTotalZones=wfAppleBaseTotalZones, wfAppleAurpEntryInUpdateInvalidEvents=wfAppleAurpEntryInUpdateInvalidEvents, wfApplePortCircuit=wfApplePortCircuit, wfAppleMacIPBaseDelete=wfAppleMacIPBaseDelete, wfAppleAurpEntryOutOpenRequests=wfAppleAurpEntryOutOpenRequests, wfAppleAggrOutNoRoutes=wfAppleAggrOutNoRoutes, wfAppleZoneFilterTable=wfAppleZoneFilterTable, wfApplePortGniForever=wfApplePortGniForever, wfApplePortNbpInBroadcastRequests=wfApplePortNbpInBroadcastRequests, wfAppleAurpEntryOutUpdateNullEvents=wfAppleAurpEntryOutUpdateNullEvents, wfApplePortZipOutGetNetInfos=wfApplePortZipOutGetNetInfos, wfAppleLclZoneTable=wfAppleLclZoneTable, wfMacIPAddress2=wfMacIPAddress2, wfAppleAurpEntryInInvalidCommands=wfAppleAurpEntryInInvalidCommands, wfAppleAurpEntryInAurpPkts=wfAppleAurpEntryInAurpPkts, wfAppleAurpEntryOutOpenResponses=wfAppleAurpEntryOutOpenResponses, wfAppleAurpEntryInGdzlResponses=wfAppleAurpEntryInGdzlResponses, wfApplePortDdpOutNoRoutes=wfApplePortDdpOutNoRoutes, wfAppleZipEntry=wfAppleZipEntry, wfAppleAurpBaseInRejectedOpenReqs=wfAppleAurpBaseInRejectedOpenReqs, wfApplePortDdpInLocalDatagrams=wfApplePortDdpInLocalDatagrams, wfApplePortCurNetEnd=wfApplePortCurNetEnd, wfAppleLclZoneName=wfAppleLclZoneName, wfAppleAurpBaseInInvalidVerions=wfAppleAurpBaseInInvalidVerions, wfAppleAurpEntryOutRiRequests=wfAppleAurpEntryOutRiRequests, wfAppleAggrOutRtmps=wfAppleAggrOutRtmps, wfApplePortDdpBroadcastErrors=wfApplePortDdpBroadcastErrors, wfAppleAurpBaseInRouterDowns=wfAppleAurpBaseInRouterDowns, wfAppleAurpBaseInPktsNoPeers=wfAppleAurpBaseInPktsNoPeers, wfApplePortZipAddressInvalids=wfApplePortZipAddressInvalids, wfAppleAurpEntryInGznResponses=wfAppleAurpEntryInGznResponses, wfApplePortRtmpRouteDeletes=wfApplePortRtmpRouteDeletes, wfAppleZipIndex=wfAppleZipIndex, wfApplePortDelete=wfApplePortDelete, wfAppleAurpEntryInRiResponses=wfAppleAurpEntryInRiResponses, wfApplePortTrEndStation=wfApplePortTrEndStation, wfAppleAurpEntryOutUpdateZoneChanges=wfAppleAurpEntryOutUpdateZoneChanges, wfAppleAurpEntryInGdzlRequests=wfAppleAurpEntryInGdzlRequests, wfApplePortDdpTooLongErrors=wfApplePortDdpTooLongErrors, wfAppleAarpNode=wfAppleAarpNode, wfAppleRtmpHops=wfAppleRtmpHops, wfAppleBaseTotalAarpEntries=wfAppleBaseTotalAarpEntries, wfApplePortRtmpInDataPkts=wfApplePortRtmpInDataPkts, wfAppleAurpBaseInAcceptedOpenReqs=wfAppleAurpBaseInAcceptedOpenReqs, wfAppleAurpEntryHopCountReduction=wfAppleAurpEntryHopCountReduction, wfApplePortDdpOutRequests=wfApplePortDdpOutRequests, wfApplePortNbpInLookUpRequests=wfApplePortNbpInLookUpRequests, wfAppleAurpEntryOutUpdateNetAdds=wfAppleAurpEntryOutUpdateNetAdds, wfApplePortZipOutZipReplies=wfApplePortZipOutZipReplies, wfAppleAurpEntryOutPkts=wfAppleAurpEntryOutPkts, wfApplePortZipInGetZoneLists=wfApplePortZipInGetZoneLists, wfAppleAurpEntryCliSeqNum=wfAppleAurpEntryCliSeqNum, wfAppleAurpEntryPeerDomainId=wfAppleAurpEntryPeerDomainId, wfAppleAurpEntryHopCountAdjustments=wfAppleAurpEntryHopCountAdjustments, wfApplePortRtmpNextIREqualChanges=wfApplePortRtmpNextIREqualChanges, wfAppleAurpEntryOutRiResponses=wfAppleAurpEntryOutRiResponses, wfAppleAarpEntry=wfAppleAarpEntry, wfApplePortRtmpNetworkMismatchErrors=wfApplePortRtmpNetworkMismatchErrors, wfAppleAurpEntryInUpdateZoneChanges=wfAppleAurpEntryInUpdateZoneChanges, wfApplePortZipInGetLocalZones=wfApplePortZipInGetLocalZones, wfAppleMacIPBaseDisable=wfAppleMacIPBaseDisable, wfAppleAurpBaseIpAddress=wfAppleAurpBaseIpAddress, wfAppleAurpEntryDisable=wfAppleAurpEntryDisable, wfAppleAurpEntryInOpenRequests=wfAppleAurpEntryInOpenRequests, wfApplePortState=wfApplePortState, wfMacIPAddress1=wfMacIPAddress1, wfAppleAggrStats=wfAppleAggrStats, wfMacIPUpperIpAddress3=wfMacIPUpperIpAddress3, wfApplePortRtmpRoutingTableOverflows=wfApplePortRtmpRoutingTableOverflows, wfAppleAurpEntryInRiAcks=wfAppleAurpEntryInRiAcks, wfAppleAurpEntryOutZiResponses=wfAppleAurpEntryOutZiResponses, wfApplePortAarpReqRxs=wfApplePortAarpReqRxs, wfApplePortCurNodeId=wfApplePortCurNodeId, wfApplePortDdpChecksumErrors=wfApplePortDdpChecksumErrors, wfAppleZipZoneName=wfAppleZipZoneName, wfApplePortEchoReplies=wfApplePortEchoReplies, wfMacIPAddress3=wfMacIPAddress3, wfApplePortMacAddress=wfApplePortMacAddress, wfAppleZoneFilterDelete=wfAppleZoneFilterDelete, wfApplePortRtmpInRequestPkts=wfApplePortRtmpInRequestPkts, wfApplePortNbpOutForwardRequests=wfApplePortNbpOutForwardRequests, wfAppleAurpEntryPeerSuiFlags=wfAppleAurpEntryPeerSuiFlags, wfAppleZoneFilterIpAddress=wfAppleZoneFilterIpAddress, wfAppleAurpEntryOutZiRequests=wfAppleAurpEntryOutZiRequests, wfAppleLclZoneDelete=wfAppleLclZoneDelete, wfAppleAurpEntryInUpdateNetAdds=wfAppleAurpEntryInUpdateNetAdds, wfAppleMacIPServerResponces=wfAppleMacIPServerResponces, wfApplePortCurNetStart=wfApplePortCurNetStart, wfApplePortZipOutZipExtendedReplies=wfApplePortZipOutZipExtendedReplies, wfApplePortCksumDisable=wfApplePortCksumDisable, wfAppleRtmpPort=wfAppleRtmpPort, wfAppleRtmpNetEnd=wfAppleRtmpNetEnd, wfApplePortNbpOutBroadcastRequests=wfApplePortNbpOutBroadcastRequests, wfAppleAurpEntryZoneFiltDfltZone=wfAppleAurpEntryZoneFiltDfltZone, wfAppleBaseTotalNets=wfAppleBaseTotalNets, wfAppleAurpEntryCliConnId=wfAppleAurpEntryCliConnId, wfAppleZoneFilterName=wfAppleZoneFilterName, wfAppleAurpEntrySrvSeqNum=wfAppleAurpEntrySrvSeqNum, wfAppleAurpEntryInInvalidConnIds=wfAppleAurpEntryInInvalidConnIds, wfApplePortDisable=wfApplePortDisable, wfApplePortZipOutZipQueries=wfApplePortZipOutZipQueries, wfApplePortType=wfApplePortType, wfApplePortNbpInLookUpReplies=wfApplePortNbpInLookUpReplies, wfApplePortWanSplitHorizonDisable=wfApplePortWanSplitHorizonDisable, wfAppleRtmpTable=wfAppleRtmpTable, wfAppleAurpBaseDisable=wfAppleAurpBaseDisable, wfAppleAurpEntryCommandRetries=wfAppleAurpEntryCommandRetries, wfAppleRtmpNetStart=wfAppleRtmpNetStart, wfApplePortZipZoneConflictErrors=wfApplePortZipZoneConflictErrors, wfAppleAurpEntryOutRiUpdates=wfAppleAurpEntryOutRiUpdates, wfApplePortEchoRequests=wfApplePortEchoRequests, wfAppleAurpEntryOutRouterDowns=wfAppleAurpEntryOutRouterDowns, wfApplePortAarpProbeRxs=wfApplePortAarpProbeRxs, wfAppleBaseDebugLevel=wfAppleBaseDebugLevel, wfAppleBaseDdpQueLen=wfAppleBaseDdpQueLen, wfAppleMacIPZone=wfAppleMacIPZone, wfApplePortTable=wfApplePortTable, wfMacIPLowerIpAddress1=wfMacIPLowerIpAddress1, wfAppleRtmpEntry=wfAppleRtmpEntry, wfAppleAurpEntryOutAurpPkts=wfAppleAurpEntryOutAurpPkts, wfAppleLclZonePortCircuit=wfAppleLclZonePortCircuit, wfAppleBaseDelete=wfAppleBaseDelete, wfApplePortZipZoneOutInvalids=wfApplePortZipZoneOutInvalids, wfAppleRtmpProto=wfAppleRtmpProto, wfApplePortZipInZipExtendedReplies=wfApplePortZipInZipExtendedReplies, wfApplePortMacIPDisable=wfApplePortMacIPDisable, wfAppleAurpEntryOutTickles=wfAppleAurpEntryOutTickles, wfAppleRtmpAurpNextHopIpAddress=wfAppleRtmpAurpNextHopIpAddress, wfAppleAurpEntryInZiResponses=wfAppleAurpEntryInZiResponses, wfApplePortDdpNoProtocolHandlers=wfApplePortDdpNoProtocolHandlers, wfMacIPUpperIpAddress1=wfMacIPUpperIpAddress1, wfAppleZipZoneNetEnd=wfAppleZipZoneNetEnd, wfAppleMacIPAddressTimeOut=wfAppleMacIPAddressTimeOut, wfAppleAurpEntryInDelayedDuplicates=wfAppleAurpEntryInDelayedDuplicates, wfAppleAggrInPkts=wfAppleAggrInPkts, wfAppleAurpBase=wfAppleAurpBase, wfAppleAurpEntryInZiRequests=wfAppleAurpEntryInZiRequests, wfApplePortNbpInForwardRequests=wfApplePortNbpInForwardRequests, wfApplePortNbpInErrors=wfApplePortNbpInErrors, wfAppleZoneFilterCircuit=wfAppleZoneFilterCircuit, wfAppleAurpEntryPeerEnvironment=wfAppleAurpEntryPeerEnvironment, wfAppleLclZoneEntry=wfAppleLclZoneEntry, wfAppleAurpEntryInTickles=wfAppleAurpEntryInTickles, wfAppleAurpEntryInUpdateNetDeletes=wfAppleAurpEntryInUpdateNetDeletes, wfAppleAurpEntryOutNoRoutes=wfAppleAurpEntryOutNoRoutes, wfApplePortDdpInReceives=wfApplePortDdpInReceives, wfAppleZoneFilterIndex=wfAppleZoneFilterIndex, wfAppleBaseHomedPort=wfAppleBaseHomedPort, wfApplePortZoneFilterType=wfApplePortZoneFilterType, wfAppleBaseTotalZoneNames=wfAppleBaseTotalZoneNames, wfApplePortCurMacAddress=wfApplePortCurMacAddress, wfAppleAurpEntryIpAddress=wfAppleAurpEntryIpAddress, wfAppleAggrInTooShorts=wfAppleAggrInTooShorts, wfApplePortZipInZipReplies=wfApplePortZipInZipReplies, wfApplePortZipOutGetLocalZoneReplies=wfApplePortZipOutGetLocalZoneReplies, wfMacIPUpperIpAddress2=wfMacIPUpperIpAddress2, wfAppleAurpEntryInUpdateNetRouteChanges=wfAppleAurpEntryInUpdateNetRouteChanges, wfAppleAggrInHopCountErrs=wfAppleAggrInHopCountErrs, wfAppleZipTable=wfAppleZipTable, wfAppleAurpEntryInPkts=wfAppleAurpEntryInPkts, wfAppleAurpBaseState=wfAppleAurpBaseState, wfApplePortNetwork=wfApplePortNetwork, wfApplePortZipInErrors=wfApplePortZipInErrors, wfAppleBase=wfAppleBase, wfApplePortAarpRspRxs=wfApplePortAarpRspRxs, wfAppleAurpEntryOutDdpPkts=wfAppleAurpEntryOutDdpPkts, wfMacIPLowerIpAddress3=wfMacIPLowerIpAddress3, wfAppleAurpTable=wfAppleAurpTable, wfAppleAurpEntryInRiRequests=wfAppleAurpEntryInRiRequests, wfAppleAggrInXsumErrs=wfAppleAggrInXsumErrs, wfApplePortCurNetwork=wfApplePortCurNetwork, wfApplePortZipOutGetZoneListReplies=wfApplePortZipOutGetZoneListReplies, wfApplePortZipOutGetMyZoneReplies=wfApplePortZipOutGetMyZoneReplies, wfAppleRtmpNextHopNet=wfAppleRtmpNextHopNet, wfAppleAggrInLocalDests=wfAppleAggrInLocalDests, wfApplePortNetEnd=wfApplePortNetEnd, wfAppleBaseEstimatedNets=wfAppleBaseEstimatedNets, wfAppleAurpEntryInterfaceCost=wfAppleAurpEntryInterfaceCost, wfAppleAurpEntryInOpenResponses=wfAppleAurpEntryInOpenResponses, wfAppleAurpEntryOutGdzlRequests=wfAppleAurpEntryOutGdzlRequests, wfAppleAurpEntryOutUpdateNetDistanceChanges=wfAppleAurpEntryOutUpdateNetDistanceChanges, wfAppleAurpEntryHopCountErrors=wfAppleAurpEntryHopCountErrors, wfAppleAurpEntrySrvConnId=wfAppleAurpEntrySrvConnId, wfAppleAarpTable=wfAppleAarpTable, wfAppleAggrOutPkts=wfAppleAggrOutPkts, wfAppleAurpEntryType=wfAppleAurpEntryType, wfAppleAurpEntryDelete=wfAppleAurpEntryDelete, wfApplePortRtmpNextIRLessChanges=wfApplePortRtmpNextIRLessChanges, wfApplePortRtmpOutDataPkts=wfApplePortRtmpOutDataPkts, wfAppleAarpPhysAddress=wfAppleAarpPhysAddress, wfAppleAurpEntryInUpdateNetDistanceChanges=wfAppleAurpEntryInUpdateNetDistanceChanges, wfApplePortDfltZone=wfApplePortDfltZone, wfAppleRtmpState=wfAppleRtmpState, wfAppleAurpEntryUpdateRate=wfAppleAurpEntryUpdateRate, wfAppleRtmpNextHopNode=wfAppleRtmpNextHopNode, wfApplePortZipInGetMyZones=wfApplePortZipInGetMyZones, wfAppleAurpEntryInGznRequests=wfAppleAurpEntryInGznRequests, wfApplePortZipOutGetNetInfoReplies=wfApplePortZipOutGetNetInfoReplies, wfApplePortCurDfltZone=wfApplePortCurDfltZone, wfAppleAurpEntryOutUpdateNetDeletes=wfAppleAurpEntryOutUpdateNetDeletes, wfAppleAurpEntryOutGdzlResponses=wfAppleAurpEntryOutGdzlResponses, wfAppleZipZoneState=wfAppleZipZoneState, wfApplePortAarpFlush=wfApplePortAarpFlush, wfApplePortDdpTooShortErrors=wfApplePortDdpTooShortErrors, wfApplePortZipInGetNetInfoReplies=wfApplePortZipInGetNetInfoReplies, wfAppleAurpEntryTimeoutCommand=wfAppleAurpEntryTimeoutCommand, wfAppleAurpEntryInInvalidSubCodes=wfAppleAurpEntryInInvalidSubCodes, wfAppleAurpEntryOutGznResponses=wfAppleAurpEntryOutGznResponses, wfApplePortNbpOutLookUpReplies=wfApplePortNbpOutLookUpReplies, wfAppleBaseDisable=wfAppleBaseDisable, wfAppleMacIPBaseState=wfAppleMacIPBaseState, wfAppleAurpEntryOutUpdateNetRouteChanges=wfAppleAurpEntryOutUpdateNetRouteChanges, wfAppleAurpEntryInRouterDowns=wfAppleAurpEntryInRouterDowns, wfAppleAarpIfIndex=wfAppleAarpIfIndex, wfAppleAurpEntryZoneFilterType=wfAppleAurpEntryZoneFilterType, wfApplePortDdpHopCountErrors=wfApplePortDdpHopCountErrors, wfAppleAurpEntrySuiFlags=wfAppleAurpEntrySuiFlags, wfApplePortNbpOutLookUpRequests=wfApplePortNbpOutLookUpRequests) mibBuilder.exportSymbols('Wellfleet-AT-MIB', wfAppleAurpEntryOutTickleAcks=wfAppleAurpEntryOutTickleAcks, wfAppleMacIPServerRequests=wfAppleMacIPServerRequests, wfAppleAggrFwdDatagrams=wfAppleAggrFwdDatagrams, wfApplePortNbpRegistrationFailures=wfApplePortNbpRegistrationFailures)
# https://paiza.jp/poh/hatsukoi/challenge/hatsukoi_hair4 def func1(des): count = 0 for [d, e] in des: if d == e: count += 1 if count >= 3: print('OK') else: print('NG') def func2(des): count = 0 for d,e in des: if d == e: count += 1 return 'OK' if count >= 3 else 'NG' def func3(des): is_same = lambda d, e: d == e count = len([[d, e] for d, e in des if is_same(d, e)]) return 'OK' if count >= 3 else 'NG' def display(s): print(s) if __name__ == '__main__': des = [input().split(' ') for _ in range(5)] display(func3(des))
def func1(des): count = 0 for [d, e] in des: if d == e: count += 1 if count >= 3: print('OK') else: print('NG') def func2(des): count = 0 for (d, e) in des: if d == e: count += 1 return 'OK' if count >= 3 else 'NG' def func3(des): is_same = lambda d, e: d == e count = len([[d, e] for (d, e) in des if is_same(d, e)]) return 'OK' if count >= 3 else 'NG' def display(s): print(s) if __name__ == '__main__': des = [input().split(' ') for _ in range(5)] display(func3(des))
class Solution: def interpret(self, command: str) -> str: result = "" for i in range(len(command)): if command[i] == 'G': result += command[i] elif command[i] == '(': if command[i+1] == ')': result += 'o' else: result += 'al' return result
class Solution: def interpret(self, command: str) -> str: result = '' for i in range(len(command)): if command[i] == 'G': result += command[i] elif command[i] == '(': if command[i + 1] == ')': result += 'o' else: result += 'al' return result
# cook your dish here for i in range(int(input())): x=int(input()) cars=x//4 left=x-(cars*4) bikes=left//2 leftafter=left-(bikes*2) if bikes>0: print("YES") else: print("NO")
for i in range(int(input())): x = int(input()) cars = x // 4 left = x - cars * 4 bikes = left // 2 leftafter = left - bikes * 2 if bikes > 0: print('YES') else: print('NO')
NUMBERS = (-10, -21, -4, -45, -66, -93, 11) def count_positives(lst: list[int] | tuple[int]) -> int: return len([num for num in lst if num >= 1]) # return len(list(filter(lambda x: x >= 0, lst))) POS_COUNT = count_positives(NUMBERS) if __name__ == "__main__": print(f"Positive numbers in the list: {POS_COUNT}.") print(f"Negative numbers in the list: {len(NUMBERS) - POS_COUNT}.")
numbers = (-10, -21, -4, -45, -66, -93, 11) def count_positives(lst: list[int] | tuple[int]) -> int: return len([num for num in lst if num >= 1]) pos_count = count_positives(NUMBERS) if __name__ == '__main__': print(f'Positive numbers in the list: {POS_COUNT}.') print(f'Negative numbers in the list: {len(NUMBERS) - POS_COUNT}.')
class train_config: datasets = {'glove':{'N':1183514,'d':100}, 'Sift-128':{'N':1000000, 'd':128} } dataset_name = 'glove' inp_dim = datasets[dataset_name]['d'] n_classes = datasets[dataset_name]['N'] #### n_cores = 1 # core count for TF REcord data loader B = 3000 R = 16 gpus = [4,5,6,7] num_gpus = len(gpus) batch_size = 256 hidden_dim = 1024 #### train_data_loc = '../../LTH/data/'+dataset_name+'/' tfrecord_loc = '../../LTH/data/'+dataset_name+'/tfrecords/' model_save_loc = '../saved_models/'+dataset_name+'/b_'+str(B)+'/' lookups_loc = '../lookups/'+dataset_name+'/b_'+str(B)+'/' logfolder = '../logs/'+dataset_name+'/b_'+str(B)+'/' # Only used if training multiple repetitions from the same script R_per_gpu = 2
class Train_Config: datasets = {'glove': {'N': 1183514, 'd': 100}, 'Sift-128': {'N': 1000000, 'd': 128}} dataset_name = 'glove' inp_dim = datasets[dataset_name]['d'] n_classes = datasets[dataset_name]['N'] n_cores = 1 b = 3000 r = 16 gpus = [4, 5, 6, 7] num_gpus = len(gpus) batch_size = 256 hidden_dim = 1024 train_data_loc = '../../LTH/data/' + dataset_name + '/' tfrecord_loc = '../../LTH/data/' + dataset_name + '/tfrecords/' model_save_loc = '../saved_models/' + dataset_name + '/b_' + str(B) + '/' lookups_loc = '../lookups/' + dataset_name + '/b_' + str(B) + '/' logfolder = '../logs/' + dataset_name + '/b_' + str(B) + '/' r_per_gpu = 2
def palindrome(s): l = len(s) if l == 0 or l == 1: return True return (s[0] == s[l-1]) and palindrome(s[1:l-1])
def palindrome(s): l = len(s) if l == 0 or l == 1: return True return s[0] == s[l - 1] and palindrome(s[1:l - 1])
n = int(input()) sum = 0 for i in range(n): num = int(input()) sum += num print(sum)
n = int(input()) sum = 0 for i in range(n): num = int(input()) sum += num print(sum)
# noqa: D104 # pylint: disable=missing-module-docstring __version__ = "0.0.18"
__version__ = '0.0.18'
class Node: def __init__(self, data): self.data = data self.left = None self.right = None def __repr__(self): return "{} => (l: {}, r: {})".format( self.data, self.left, self.right) def get_tree(seq): head = Node(seq[-1]) if len(seq) == 1: return head for i in range(len(seq) - 1): if seq[i] > head.data: sep_ind = i break leq, gt = seq[:sep_ind], seq[sep_ind:-1] head.left = get_tree(leq) if leq else None head.right = get_tree(gt) if gt else None return head # Tests tree = get_tree([2, 4, 3, 8, 7, 5]) assert tree.data == 5 assert tree.left.data == 3 assert tree.right.data == 7 assert tree.left.left.data == 2 assert tree.left.right.data == 4 assert tree.right.right.data == 8
class Node: def __init__(self, data): self.data = data self.left = None self.right = None def __repr__(self): return '{} => (l: {}, r: {})'.format(self.data, self.left, self.right) def get_tree(seq): head = node(seq[-1]) if len(seq) == 1: return head for i in range(len(seq) - 1): if seq[i] > head.data: sep_ind = i break (leq, gt) = (seq[:sep_ind], seq[sep_ind:-1]) head.left = get_tree(leq) if leq else None head.right = get_tree(gt) if gt else None return head tree = get_tree([2, 4, 3, 8, 7, 5]) assert tree.data == 5 assert tree.left.data == 3 assert tree.right.data == 7 assert tree.left.left.data == 2 assert tree.left.right.data == 4 assert tree.right.right.data == 8
#Definicion de variables y otros print("ajercicio 01: Area de un Trianfulo ") #Datos de entrada mediante dispositivos de entrada b=int(input("Ingrese Base:")) h=int(input("Ingrese altura:")) #preceso area=(b*h)/2 #datos de salida print("El area es:", area)
print('ajercicio 01: Area de un Trianfulo ') b = int(input('Ingrese Base:')) h = int(input('Ingrese altura:')) area = b * h / 2 print('El area es:', area)
def collatz ( n ): ''' collatz: According to Collatz Conjecture generates a sequence that terminates at 1. n: positive integer that starts the sequence ''' # recursion unrolling while n != 1: print(n) if n % 2 ==0: # n is even n //= 2 else: # n is odd n = n * 3 + 1 print(n) # recursive collatz conjecture def collatz ( n ): print(n) if n == 1: # base case return if n % 2 == 0: # n is even n = n // 2 else: # n is odd n = n * 3 + 1 return collatz(n) collatz(4)
def collatz(n): """ collatz: According to Collatz Conjecture generates a sequence that terminates at 1. n: positive integer that starts the sequence """ while n != 1: print(n) if n % 2 == 0: n //= 2 else: n = n * 3 + 1 print(n) def collatz(n): print(n) if n == 1: return if n % 2 == 0: n = n // 2 else: n = n * 3 + 1 return collatz(n) collatz(4)
# hello4.py def hello(): print("Hello, world!") def test(): hello() if __name__ == '__main__': test()
def hello(): print('Hello, world!') def test(): hello() if __name__ == '__main__': test()
#! python3 # aoc_07.py # Advent of code: # https://adventofcode.com/2021/day/7 # https://adventofcode.com/2021/day/7#part2 # def part_one(input) -> int: with open(input, 'r') as f: data = [[int(x) for x in line.strip()] for line in f.readlines()] return 0 def part_two(input) -> int: with open(input, 'r') as f: data = [[int(x) for x in line.strip()] for line in f.readlines()] return 0 if __name__ == "__main__": example_path = "./aoc_xx_example.txt" input_path = "./aoc_xx_input.txt" print("---Part One---") print(part_one(example_path)) print(part_one(input_path)) print("---Part Two---") print(part_two(input_path))
def part_one(input) -> int: with open(input, 'r') as f: data = [[int(x) for x in line.strip()] for line in f.readlines()] return 0 def part_two(input) -> int: with open(input, 'r') as f: data = [[int(x) for x in line.strip()] for line in f.readlines()] return 0 if __name__ == '__main__': example_path = './aoc_xx_example.txt' input_path = './aoc_xx_input.txt' print('---Part One---') print(part_one(example_path)) print(part_one(input_path)) print('---Part Two---') print(part_two(input_path))
# # Copyright 2021 Ocean Protocol Foundation # SPDX-License-Identifier: Apache-2.0 # ddo_dict = { "id": "did:op:e16a777d1f146dba369cf98d212f34c17d9de516fcda5c9546076cf043ba6e37", "version": "4.1.0", "chain_id": 8996, "metadata": { "created": "2021-12-29T13:34:27", "updated": "2021-12-29T13:34:27", "description": "Asset description", "copyrightHolder": "Asset copyright holder", "name": "Asset name", "author": "Asset Author", "license": "CC-0", "links": ["https://google.com"], "contentLanguage": "en-US", "categories": ["category 1"], "tags": ["tag 1"], "additionalInformation": {}, "type": "dataset", }, "services": [ { "index": 0, "id": "compute_1", "type": "compute", "name": "compute_1", "description": "compute_1", "datatokenAddress": "0x0951D2558F897317e5a68d1b9e743156D1681168", "serviceEndpoint": "http://172.15.0.4:8030/api/services", "files": "0x0442b53536ebb3f1ee0301288efc7a14b9f807e9d104647ca052b0fb67954440bf18f9b5143c94ac5e7dedbefacccbf38783728de2f4c8af8468dca630e1e92e5c7c03cb82b4956fcfecb9fe6f19771df19e7e8dd06b4d6665bbe5b3d5bf5dbf5781b4f3ee97c7864a98d903df4acea2ad39176aed782b3faad82808ca4709382ccd8fa42561830069293d7cd6685696a54fc752f6d78fe7b3ed598636c5447fa593ffe4929280f3e6720f159251474035a29bdc11ae73150d3871600010dd97bd7de63cb64b338d4f5c1a9b70c082df801864a7d4f6c19e5568361e3cf6a3e795f5ae7c8972019405c113a33b5ae09a4dd5cdeff0", "timeout": 3600, "compute": { "namespace": "test", "allowRawAlgorithm": True, "allowNetworkAccess": False, "publisherTrustedAlgorithmPublishers": [], "publisherTrustedAlgorithms": [ { "did": "did:op:706d7452b1a25b183051fe02f2ad902d54fc45a43fdcee26b20f21684b5dee72", "filesChecksum": "09903ddb8459c7ade1ea2bb639207c47f3474a060ae4ace9ba9581c71b9a3f54", "containerSectionChecksum": "743e3591b4c035906be7dbc9eb592089d096be3b2d752f8d8d52917dd609f31f", } ], }, }, { "index": 1, "id": "access_1", "type": "access", "name": "name doesn't affect tests", "description": "decription doesn't affect tests", "datatokenAddress": "0x12d1d7BaF6fE43805391097A63301ACfcF5f5720", "serviceEndpoint": "http://172.15.0.4:8030", "files": "0x0487db5b45655d0ce74cf6e4707c2dd40509cb4d8f80af76758790b4ab715d7658a1f71ee1ee744e7af87275113bd0fde5f8362431934407c8e8bd6f20b1216de4f94cb3d03b975b5c61c5c9e6ac3373e50fc2d181c1b2808f9bca18a59180b77baad213c4dda70ddd866e6cbb0d6eae1036b6e0e8e8c2e17ca0e55180b2afb00acaa27bc343117457bb8d56d670d1e42ed6834b52c4a7f2eb035cb4bd98e24e5ba28935b67071d77d0edcd914572da492c72d0c049ed47d37a84b56a6be311b27fde9aea893afe408d2e96ce330e46443c2ee02ba5ee8757c5d3ef917de9863d13f843fb37794accad4d029c960fe4a56c3cc3d70", "timeout": 3600, "compute_dict": None, }, ], "credentials": {"allow": [], "deny": []}, "nft": { "address": "0x7358776DACe83a4b48E698645F32B043481daCBA", "name": "Data NFT 1", "symbol": "DNFT1", "state": 0, "owner": "0xBE5449a6A97aD46c8558A3356267Ee5D2731ab5e", "created": "2021-12-29T13:34:28", }, "datatokens": [ { "address": "0x0951D2558F897317e5a68d1b9e743156D1681168", "name": "Datatoken 1", "symbol": "DT1", "serviceId": "compute_1", } ], "event": { "tx": "0xa73c332ba8d9615c438e7773d8f8db6a258cc615e43e47130e5500a9da729cea", "block": 121, "from": "0xBE5449a6A97aD46c8558A3356267Ee5D2731ab5e", "contract": "0x7358776DACe83a4b48E698645F32B043481daCBA", "datetime": "2021-12-29T13:34:28", }, "stats": {"consumes": -1, "isInPurgatory": "false"}, } alg_ddo_dict = { "id": "did:op:706d7452b1a25b183051fe02f2ad902d54fc45a43fdcee26b20f21684b5dee72", "version": "4.1.0", "chain_id": 8996, "metadata": { "created": "2021-12-29T13:34:18", "updated": "2021-12-29T13:34:18", "description": "Asset description", "copyrightHolder": "Asset copyright holder", "name": "Asset name", "author": "Asset Author", "license": "CC-0", "links": ["https://google.com"], "contentLanguage": "en-US", "categories": ["category 1"], "tags": ["tag 1"], "additionalInformation": {}, "type": "algorithm", "algorithm": { "language": "python", "version": "0.1.0", "container": { "entrypoint": "run.sh", "image": "my-docker-image", "tag": "latest", "checksum": "44e10daa6637893f4276bb8d7301eb35306ece50f61ca34dcab550", }, }, }, "services": [ { "index": 0, "id": "b4d208d6-0074-4002-9dd1-02d5d0ad352e", "type": "access", "name": "name doesn't affect tests", "description": "decription doesn't affect tests", "datatokenAddress": "0x12d1d7BaF6fE43805391097A63301ACfcF5f5720", "serviceEndpoint": "http://172.15.0.4:8030", "files": "0x0487db5b45655d0ce74cf6e4707c2dd40509cb4d8f80af76758790b4ab715d7658a1f71ee1ee744e7af87275113bd0fde5f8362431934407c8e8bd6f20b1216de4f94cb3d03b975b5c61c5c9e6ac3373e50fc2d181c1b2808f9bca18a59180b77baad213c4dda70ddd866e6cbb0d6eae1036b6e0e8e8c2e17ca0e55180b2afb00acaa27bc343117457bb8d56d670d1e42ed6834b52c4a7f2eb035cb4bd98e24e5ba28935b67071d77d0edcd914572da492c72d0c049ed47d37a84b56a6be311b27fde9aea893afe408d2e96ce330e46443c2ee02ba5ee8757c5d3ef917de9863d13f843fb37794accad4d029c960fe4a56c3cc3d70", "timeout": 3600, "compute_dict": None, }, { "index": 1, "id": "compute_1", "type": "compute", "name": "compute_1", "description": "compute_1", "datatokenAddress": "0x0951D2558F897317e5a68d1b9e743156D1681168", "serviceEndpoint": "http://172.15.0.4:8030/api/services", "files": "0x0442b53536ebb3f1ee0301288efc7a14b9f807e9d104647ca052b0fb67954440bf18f9b5143c94ac5e7dedbefacccbf38783728de2f4c8af8468dca630e1e92e5c7c03cb82b4956fcfecb9fe6f19771df19e7e8dd06b4d6665bbe5b3d5bf5dbf5781b4f3ee97c7864a98d903df4acea2ad39176aed782b3faad82808ca4709382ccd8fa42561830069293d7cd6685696a54fc752f6d78fe7b3ed598636c5447fa593ffe4929280f3e6720f159251474035a29bdc11ae73150d3871600010dd97bd7de63cb64b338d4f5c1a9b70c082df801864a7d4f6c19e5568361e3cf6a3e795f5ae7c8972019405c113a33b5ae09a4dd5cdeff0", "timeout": 3600, "compute": { "namespace": "test", "allowRawAlgorithm": True, "allowNetworkAccess": False, "publisherTrustedAlgorithmPublishers": [], "publisherTrustedAlgorithms": [ { "did": "did:op:706d7452b1a25b183051fe02f2ad902d54fc45a43fdcee26b20f21684b5dee72", "filesChecksum": "09903ddb8459c7ade1ea2bb639207c47f3474a060ae4ace9ba9581c71b9a3f54", "containerSectionChecksum": "743e3591b4c035906be7dbc9eb592089d096be3b2d752f8d8d52917dd609f31f", } ], }, }, ], "credentials": {"allow": [], "deny": []}, "nft": { "address": "0xa072B0D477fae1aBE3537Ff66A8389B184E18F4d", "name": "Data NFT 1", "symbol": "DNFT1", "state": 0, "owner": "0xBE5449a6A97aD46c8558A3356267Ee5D2731ab5e", "created": "2021-12-29T13:34:20", }, "datatokens": [ { "address": "0x12d1d7BaF6fE43805391097A63301ACfcF5f5720", "name": "Datatoken 1", "symbol": "DT1", "serviceId": "b4d208d6-0074-4002-9dd1-02d5d0ad352e", } ], "event": { "tx": "0x09366c3bf4b24eabbe6de4a1ee63c07fca82c768fcff76e18e8dd461197f2aba", "block": 116, "from": "0xBE5449a6A97aD46c8558A3356267Ee5D2731ab5e", "contract": "0xa072B0D477fae1aBE3537Ff66A8389B184E18F4d", "datetime": "2021-12-29T13:34:20", }, "stats": {"consumes": -1, "isInPurgatory": "false"}, }
ddo_dict = {'id': 'did:op:e16a777d1f146dba369cf98d212f34c17d9de516fcda5c9546076cf043ba6e37', 'version': '4.1.0', 'chain_id': 8996, 'metadata': {'created': '2021-12-29T13:34:27', 'updated': '2021-12-29T13:34:27', 'description': 'Asset description', 'copyrightHolder': 'Asset copyright holder', 'name': 'Asset name', 'author': 'Asset Author', 'license': 'CC-0', 'links': ['https://google.com'], 'contentLanguage': 'en-US', 'categories': ['category 1'], 'tags': ['tag 1'], 'additionalInformation': {}, 'type': 'dataset'}, 'services': [{'index': 0, 'id': 'compute_1', 'type': 'compute', 'name': 'compute_1', 'description': 'compute_1', 'datatokenAddress': '0x0951D2558F897317e5a68d1b9e743156D1681168', 'serviceEndpoint': 'http://172.15.0.4:8030/api/services', 'files': '0x0442b53536ebb3f1ee0301288efc7a14b9f807e9d104647ca052b0fb67954440bf18f9b5143c94ac5e7dedbefacccbf38783728de2f4c8af8468dca630e1e92e5c7c03cb82b4956fcfecb9fe6f19771df19e7e8dd06b4d6665bbe5b3d5bf5dbf5781b4f3ee97c7864a98d903df4acea2ad39176aed782b3faad82808ca4709382ccd8fa42561830069293d7cd6685696a54fc752f6d78fe7b3ed598636c5447fa593ffe4929280f3e6720f159251474035a29bdc11ae73150d3871600010dd97bd7de63cb64b338d4f5c1a9b70c082df801864a7d4f6c19e5568361e3cf6a3e795f5ae7c8972019405c113a33b5ae09a4dd5cdeff0', 'timeout': 3600, 'compute': {'namespace': 'test', 'allowRawAlgorithm': True, 'allowNetworkAccess': False, 'publisherTrustedAlgorithmPublishers': [], 'publisherTrustedAlgorithms': [{'did': 'did:op:706d7452b1a25b183051fe02f2ad902d54fc45a43fdcee26b20f21684b5dee72', 'filesChecksum': '09903ddb8459c7ade1ea2bb639207c47f3474a060ae4ace9ba9581c71b9a3f54', 'containerSectionChecksum': '743e3591b4c035906be7dbc9eb592089d096be3b2d752f8d8d52917dd609f31f'}]}}, {'index': 1, 'id': 'access_1', 'type': 'access', 'name': "name doesn't affect tests", 'description': "decription doesn't affect tests", 'datatokenAddress': '0x12d1d7BaF6fE43805391097A63301ACfcF5f5720', 'serviceEndpoint': 'http://172.15.0.4:8030', 'files': '0x0487db5b45655d0ce74cf6e4707c2dd40509cb4d8f80af76758790b4ab715d7658a1f71ee1ee744e7af87275113bd0fde5f8362431934407c8e8bd6f20b1216de4f94cb3d03b975b5c61c5c9e6ac3373e50fc2d181c1b2808f9bca18a59180b77baad213c4dda70ddd866e6cbb0d6eae1036b6e0e8e8c2e17ca0e55180b2afb00acaa27bc343117457bb8d56d670d1e42ed6834b52c4a7f2eb035cb4bd98e24e5ba28935b67071d77d0edcd914572da492c72d0c049ed47d37a84b56a6be311b27fde9aea893afe408d2e96ce330e46443c2ee02ba5ee8757c5d3ef917de9863d13f843fb37794accad4d029c960fe4a56c3cc3d70', 'timeout': 3600, 'compute_dict': None}], 'credentials': {'allow': [], 'deny': []}, 'nft': {'address': '0x7358776DACe83a4b48E698645F32B043481daCBA', 'name': 'Data NFT 1', 'symbol': 'DNFT1', 'state': 0, 'owner': '0xBE5449a6A97aD46c8558A3356267Ee5D2731ab5e', 'created': '2021-12-29T13:34:28'}, 'datatokens': [{'address': '0x0951D2558F897317e5a68d1b9e743156D1681168', 'name': 'Datatoken 1', 'symbol': 'DT1', 'serviceId': 'compute_1'}], 'event': {'tx': '0xa73c332ba8d9615c438e7773d8f8db6a258cc615e43e47130e5500a9da729cea', 'block': 121, 'from': '0xBE5449a6A97aD46c8558A3356267Ee5D2731ab5e', 'contract': '0x7358776DACe83a4b48E698645F32B043481daCBA', 'datetime': '2021-12-29T13:34:28'}, 'stats': {'consumes': -1, 'isInPurgatory': 'false'}} alg_ddo_dict = {'id': 'did:op:706d7452b1a25b183051fe02f2ad902d54fc45a43fdcee26b20f21684b5dee72', 'version': '4.1.0', 'chain_id': 8996, 'metadata': {'created': '2021-12-29T13:34:18', 'updated': '2021-12-29T13:34:18', 'description': 'Asset description', 'copyrightHolder': 'Asset copyright holder', 'name': 'Asset name', 'author': 'Asset Author', 'license': 'CC-0', 'links': ['https://google.com'], 'contentLanguage': 'en-US', 'categories': ['category 1'], 'tags': ['tag 1'], 'additionalInformation': {}, 'type': 'algorithm', 'algorithm': {'language': 'python', 'version': '0.1.0', 'container': {'entrypoint': 'run.sh', 'image': 'my-docker-image', 'tag': 'latest', 'checksum': '44e10daa6637893f4276bb8d7301eb35306ece50f61ca34dcab550'}}}, 'services': [{'index': 0, 'id': 'b4d208d6-0074-4002-9dd1-02d5d0ad352e', 'type': 'access', 'name': "name doesn't affect tests", 'description': "decription doesn't affect tests", 'datatokenAddress': '0x12d1d7BaF6fE43805391097A63301ACfcF5f5720', 'serviceEndpoint': 'http://172.15.0.4:8030', 'files': '0x0487db5b45655d0ce74cf6e4707c2dd40509cb4d8f80af76758790b4ab715d7658a1f71ee1ee744e7af87275113bd0fde5f8362431934407c8e8bd6f20b1216de4f94cb3d03b975b5c61c5c9e6ac3373e50fc2d181c1b2808f9bca18a59180b77baad213c4dda70ddd866e6cbb0d6eae1036b6e0e8e8c2e17ca0e55180b2afb00acaa27bc343117457bb8d56d670d1e42ed6834b52c4a7f2eb035cb4bd98e24e5ba28935b67071d77d0edcd914572da492c72d0c049ed47d37a84b56a6be311b27fde9aea893afe408d2e96ce330e46443c2ee02ba5ee8757c5d3ef917de9863d13f843fb37794accad4d029c960fe4a56c3cc3d70', 'timeout': 3600, 'compute_dict': None}, {'index': 1, 'id': 'compute_1', 'type': 'compute', 'name': 'compute_1', 'description': 'compute_1', 'datatokenAddress': '0x0951D2558F897317e5a68d1b9e743156D1681168', 'serviceEndpoint': 'http://172.15.0.4:8030/api/services', 'files': '0x0442b53536ebb3f1ee0301288efc7a14b9f807e9d104647ca052b0fb67954440bf18f9b5143c94ac5e7dedbefacccbf38783728de2f4c8af8468dca630e1e92e5c7c03cb82b4956fcfecb9fe6f19771df19e7e8dd06b4d6665bbe5b3d5bf5dbf5781b4f3ee97c7864a98d903df4acea2ad39176aed782b3faad82808ca4709382ccd8fa42561830069293d7cd6685696a54fc752f6d78fe7b3ed598636c5447fa593ffe4929280f3e6720f159251474035a29bdc11ae73150d3871600010dd97bd7de63cb64b338d4f5c1a9b70c082df801864a7d4f6c19e5568361e3cf6a3e795f5ae7c8972019405c113a33b5ae09a4dd5cdeff0', 'timeout': 3600, 'compute': {'namespace': 'test', 'allowRawAlgorithm': True, 'allowNetworkAccess': False, 'publisherTrustedAlgorithmPublishers': [], 'publisherTrustedAlgorithms': [{'did': 'did:op:706d7452b1a25b183051fe02f2ad902d54fc45a43fdcee26b20f21684b5dee72', 'filesChecksum': '09903ddb8459c7ade1ea2bb639207c47f3474a060ae4ace9ba9581c71b9a3f54', 'containerSectionChecksum': '743e3591b4c035906be7dbc9eb592089d096be3b2d752f8d8d52917dd609f31f'}]}}], 'credentials': {'allow': [], 'deny': []}, 'nft': {'address': '0xa072B0D477fae1aBE3537Ff66A8389B184E18F4d', 'name': 'Data NFT 1', 'symbol': 'DNFT1', 'state': 0, 'owner': '0xBE5449a6A97aD46c8558A3356267Ee5D2731ab5e', 'created': '2021-12-29T13:34:20'}, 'datatokens': [{'address': '0x12d1d7BaF6fE43805391097A63301ACfcF5f5720', 'name': 'Datatoken 1', 'symbol': 'DT1', 'serviceId': 'b4d208d6-0074-4002-9dd1-02d5d0ad352e'}], 'event': {'tx': '0x09366c3bf4b24eabbe6de4a1ee63c07fca82c768fcff76e18e8dd461197f2aba', 'block': 116, 'from': '0xBE5449a6A97aD46c8558A3356267Ee5D2731ab5e', 'contract': '0xa072B0D477fae1aBE3537Ff66A8389B184E18F4d', 'datetime': '2021-12-29T13:34:20'}, 'stats': {'consumes': -1, 'isInPurgatory': 'false'}}
def solve(n, ss): inp_arr_unsorted = [int(k) for k in ss.split(' ')] inp_arr = sorted(inp_arr_unsorted)[::-1] flag = False counter = 0 n_fix = n candidate_ans = 0 while not flag: if inp_arr[counter] <= n: flag = True candidate_ans = n else: counter += 1 n -= 1 flag = (counter == n_fix) candidate_ans += 1 return candidate_ans t = int(input()) for ___ in range(t): n = int(input()) if n == 1: if int(input()) == 1: answer = 2 else: answer = 1 else: inp_str = input() answer = solve(n, inp_str) print(answer)
def solve(n, ss): inp_arr_unsorted = [int(k) for k in ss.split(' ')] inp_arr = sorted(inp_arr_unsorted)[::-1] flag = False counter = 0 n_fix = n candidate_ans = 0 while not flag: if inp_arr[counter] <= n: flag = True candidate_ans = n else: counter += 1 n -= 1 flag = counter == n_fix candidate_ans += 1 return candidate_ans t = int(input()) for ___ in range(t): n = int(input()) if n == 1: if int(input()) == 1: answer = 2 else: answer = 1 else: inp_str = input() answer = solve(n, inp_str) print(answer)
# # PySNMP MIB module ALVARION-AAA-CLIENT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ALVARION-AAA-CLIENT-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:21: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) # alvarionMgmtV2, = mibBuilder.importSymbols("ALVARION-SMI", "alvarionMgmtV2") AlvarionServerIndex, AlvarionProfileIndex, AlvarionServerIndexOrZero = mibBuilder.importSymbols("ALVARION-TC", "AlvarionServerIndex", "AlvarionProfileIndex", "AlvarionServerIndexOrZero") OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint") ModuleCompliance, ObjectGroup, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "ObjectGroup", "NotificationGroup") TimeTicks, ObjectIdentity, IpAddress, iso, MibIdentifier, Counter32, Counter64, NotificationType, MibScalar, MibTable, MibTableRow, MibTableColumn, Unsigned32, Gauge32, Integer32, ModuleIdentity, Bits = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "ObjectIdentity", "IpAddress", "iso", "MibIdentifier", "Counter32", "Counter64", "NotificationType", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Unsigned32", "Gauge32", "Integer32", "ModuleIdentity", "Bits") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") alvarionAAAClientMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5)) if mibBuilder.loadTexts: alvarionAAAClientMIB.setLastUpdated('200710310000Z') if mibBuilder.loadTexts: alvarionAAAClientMIB.setOrganization('Alvarion Ltd.') if mibBuilder.loadTexts: alvarionAAAClientMIB.setContactInfo('Alvarion Ltd. Postal: 21a HaBarzel St. P.O. Box 13139 Tel-Aviv 69710 Israel Phone: +972 3 645 6262') if mibBuilder.loadTexts: alvarionAAAClientMIB.setDescription('Alvarion AAA Client MIB file.') alvarionAAAClientObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1)) alvarionAAAProfileGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 1)) alvarionAAAServerGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2)) alvarionAAAProfileTable = MibTable((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 1, 1), ) if mibBuilder.loadTexts: alvarionAAAProfileTable.setStatus('current') if mibBuilder.loadTexts: alvarionAAAProfileTable.setDescription('A table defining the AAA server profiles currently configured on the device.') alvarionAAAProfileEntry = MibTableRow((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 1, 1, 1), ).setIndexNames((0, "ALVARION-AAA-CLIENT-MIB", "alvarionAAAProfileIndex")) if mibBuilder.loadTexts: alvarionAAAProfileEntry.setStatus('current') if mibBuilder.loadTexts: alvarionAAAProfileEntry.setDescription('A AAA server profile configured in the device. alvarionAAAProfileIndex - Uniquely identifies the profile within the profile table.') alvarionAAAProfileIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 1, 1, 1, 1), AlvarionProfileIndex()) if mibBuilder.loadTexts: alvarionAAAProfileIndex.setStatus('current') if mibBuilder.loadTexts: alvarionAAAProfileIndex.setDescription('Specifies the index of the AAA server profile.') alvarionAAAProfileName = MibTableColumn((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 1, 1, 1, 2), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: alvarionAAAProfileName.setStatus('current') if mibBuilder.loadTexts: alvarionAAAProfileName.setDescription('Specifies the name of the AAA server profile.') alvarionAAAProfilePrimaryServerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 1, 1, 1, 3), AlvarionServerIndexOrZero()).setMaxAccess("readonly") if mibBuilder.loadTexts: alvarionAAAProfilePrimaryServerIndex.setStatus('current') if mibBuilder.loadTexts: alvarionAAAProfilePrimaryServerIndex.setDescription('Indicates the index number of the primary server profile in the table. A value of zero indicates that no AAA server is defined.') alvarionAAAProfileSecondaryServerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 1, 1, 1, 4), AlvarionServerIndexOrZero()).setMaxAccess("readonly") if mibBuilder.loadTexts: alvarionAAAProfileSecondaryServerIndex.setStatus('current') if mibBuilder.loadTexts: alvarionAAAProfileSecondaryServerIndex.setDescription('Indicates the index number of the secondary server profile in the table. A value of zero indicates that no AAA server is defined.') alvarionAAAServerTable = MibTable((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1), ) if mibBuilder.loadTexts: alvarionAAAServerTable.setStatus('current') if mibBuilder.loadTexts: alvarionAAAServerTable.setDescription('A table containing the AAA servers currently configured on the device.') alvarionAAAServerEntry = MibTableRow((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1), ).setIndexNames((0, "ALVARION-AAA-CLIENT-MIB", "alvarionAAAServerIndex")) if mibBuilder.loadTexts: alvarionAAAServerEntry.setStatus('current') if mibBuilder.loadTexts: alvarionAAAServerEntry.setDescription('An AAA server configured on the device. alvarionAAAServerIndex - Uniquely identifies a server inside the server table.') alvarionAAAServerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1, 1), AlvarionServerIndex()) if mibBuilder.loadTexts: alvarionAAAServerIndex.setStatus('current') if mibBuilder.loadTexts: alvarionAAAServerIndex.setDescription('Specifies the index of the AAA server in the table.') alvarionAAAAuthenProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("radius", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: alvarionAAAAuthenProtocol.setStatus('current') if mibBuilder.loadTexts: alvarionAAAAuthenProtocol.setDescription('Indicates the protocol used by the AAA client to communicate with the AAA server.') alvarionAAAAuthenMethod = MibTableColumn((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("pap", 1), ("chap", 2), ("mschap", 3), ("mschapv2", 4), ("eapMd5", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: alvarionAAAAuthenMethod.setStatus('current') if mibBuilder.loadTexts: alvarionAAAAuthenMethod.setDescription('Indicates the authentication method used by the AAA client to authenticate users via the AAA server.') alvarionAAAServerName = MibTableColumn((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 15))).setMaxAccess("readwrite") if mibBuilder.loadTexts: alvarionAAAServerName.setStatus('current') if mibBuilder.loadTexts: alvarionAAAServerName.setDescription("Specifies the IP address of the AAA server. The string must be a valid IP address in the format 'nnn.nnn.nnn.nnn' Where 'nnn' is a number in the range [0..255]. The '.' character is mandatory between the fields.") alvarionAAASharedSecret = MibTableColumn((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1, 5), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: alvarionAAASharedSecret.setStatus('current') if mibBuilder.loadTexts: alvarionAAASharedSecret.setDescription('Specifies the shared secret used by the AAA client and the AAA server. This attribute should only be set if AAA traffic between the AAA client and server is sent through a VPN tunnel. Reading this attribute will always return a zero-length string.') alvarionAAAAuthenticationPort = MibTableColumn((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: alvarionAAAAuthenticationPort.setStatus('current') if mibBuilder.loadTexts: alvarionAAAAuthenticationPort.setDescription('Indicates the port number used by the AAA client to send authentication requests to the AAA server.') alvarionAAAAccountingPort = MibTableColumn((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: alvarionAAAAccountingPort.setStatus('current') if mibBuilder.loadTexts: alvarionAAAAccountingPort.setDescription('Indicates the port number used by the AAA client to send accounting information to the AAA server.') alvarionAAATimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(3, 100))).setUnits('seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: alvarionAAATimeout.setStatus('current') if mibBuilder.loadTexts: alvarionAAATimeout.setDescription('Indicates how long the AAA client will wait for an answer to an authentication request.') alvarionAAANASId = MibTableColumn((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1, 9), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 253))).setMaxAccess("readonly") if mibBuilder.loadTexts: alvarionAAANASId.setStatus('current') if mibBuilder.loadTexts: alvarionAAANASId.setDescription('Indicates the network access server ID to be sent by the AAA client in each authentication request sent to the AAA server.') alvarionAAAClientMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 2)) alvarionAAAClientMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 2, 1)) alvarionAAAClientMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 2, 2)) alvarionAAAClientMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 2, 1, 1)).setObjects(("ALVARION-AAA-CLIENT-MIB", "alvarionAAAProfileMIBGroup"), ("ALVARION-AAA-CLIENT-MIB", "alvarionAAAClientMIBGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alvarionAAAClientMIBCompliance = alvarionAAAClientMIBCompliance.setStatus('current') if mibBuilder.loadTexts: alvarionAAAClientMIBCompliance.setDescription('The compliance statement for entities which implement the Alvarion AAA client MIB.') alvarionAAAProfileMIBGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 2, 2, 1)).setObjects(("ALVARION-AAA-CLIENT-MIB", "alvarionAAAProfileName"), ("ALVARION-AAA-CLIENT-MIB", "alvarionAAAProfilePrimaryServerIndex"), ("ALVARION-AAA-CLIENT-MIB", "alvarionAAAProfileSecondaryServerIndex")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alvarionAAAProfileMIBGroup = alvarionAAAProfileMIBGroup.setStatus('current') if mibBuilder.loadTexts: alvarionAAAProfileMIBGroup.setDescription('A collection of objects providing the AAA profile capability.') alvarionAAAClientMIBGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 2, 2, 2)).setObjects(("ALVARION-AAA-CLIENT-MIB", "alvarionAAAAuthenProtocol"), ("ALVARION-AAA-CLIENT-MIB", "alvarionAAAAuthenMethod"), ("ALVARION-AAA-CLIENT-MIB", "alvarionAAAServerName"), ("ALVARION-AAA-CLIENT-MIB", "alvarionAAASharedSecret"), ("ALVARION-AAA-CLIENT-MIB", "alvarionAAAAuthenticationPort"), ("ALVARION-AAA-CLIENT-MIB", "alvarionAAAAccountingPort"), ("ALVARION-AAA-CLIENT-MIB", "alvarionAAATimeout"), ("ALVARION-AAA-CLIENT-MIB", "alvarionAAANASId")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alvarionAAAClientMIBGroup = alvarionAAAClientMIBGroup.setStatus('current') if mibBuilder.loadTexts: alvarionAAAClientMIBGroup.setDescription('A collection of objects providing the AAA client MIB capability.') mibBuilder.exportSymbols("ALVARION-AAA-CLIENT-MIB", alvarionAAAProfilePrimaryServerIndex=alvarionAAAProfilePrimaryServerIndex, alvarionAAAServerTable=alvarionAAAServerTable, alvarionAAAClientMIBGroup=alvarionAAAClientMIBGroup, alvarionAAAAuthenMethod=alvarionAAAAuthenMethod, alvarionAAAAuthenticationPort=alvarionAAAAuthenticationPort, alvarionAAAClientObjects=alvarionAAAClientObjects, PYSNMP_MODULE_ID=alvarionAAAClientMIB, alvarionAAAAccountingPort=alvarionAAAAccountingPort, alvarionAAAServerIndex=alvarionAAAServerIndex, alvarionAAANASId=alvarionAAANASId, alvarionAAAClientMIBConformance=alvarionAAAClientMIBConformance, alvarionAAAClientMIB=alvarionAAAClientMIB, alvarionAAAProfileIndex=alvarionAAAProfileIndex, alvarionAAASharedSecret=alvarionAAASharedSecret, alvarionAAAClientMIBCompliance=alvarionAAAClientMIBCompliance, alvarionAAAClientMIBGroups=alvarionAAAClientMIBGroups, alvarionAAAClientMIBCompliances=alvarionAAAClientMIBCompliances, alvarionAAAProfileEntry=alvarionAAAProfileEntry, alvarionAAAAuthenProtocol=alvarionAAAAuthenProtocol, alvarionAAAProfileTable=alvarionAAAProfileTable, alvarionAAAProfileName=alvarionAAAProfileName, alvarionAAAServerEntry=alvarionAAAServerEntry, alvarionAAAServerName=alvarionAAAServerName, alvarionAAATimeout=alvarionAAATimeout, alvarionAAAProfileMIBGroup=alvarionAAAProfileMIBGroup, alvarionAAAProfileGroup=alvarionAAAProfileGroup, alvarionAAAServerGroup=alvarionAAAServerGroup, alvarionAAAProfileSecondaryServerIndex=alvarionAAAProfileSecondaryServerIndex)
(alvarion_mgmt_v2,) = mibBuilder.importSymbols('ALVARION-SMI', 'alvarionMgmtV2') (alvarion_server_index, alvarion_profile_index, alvarion_server_index_or_zero) = mibBuilder.importSymbols('ALVARION-TC', 'AlvarionServerIndex', 'AlvarionProfileIndex', 'AlvarionServerIndexOrZero') (octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, single_value_constraint, constraints_intersection, value_size_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint', 'ValueRangeConstraint') (module_compliance, object_group, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'ObjectGroup', 'NotificationGroup') (time_ticks, object_identity, ip_address, iso, mib_identifier, counter32, counter64, notification_type, mib_scalar, mib_table, mib_table_row, mib_table_column, unsigned32, gauge32, integer32, module_identity, bits) = mibBuilder.importSymbols('SNMPv2-SMI', 'TimeTicks', 'ObjectIdentity', 'IpAddress', 'iso', 'MibIdentifier', 'Counter32', 'Counter64', 'NotificationType', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Unsigned32', 'Gauge32', 'Integer32', 'ModuleIdentity', 'Bits') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') alvarion_aaa_client_mib = module_identity((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5)) if mibBuilder.loadTexts: alvarionAAAClientMIB.setLastUpdated('200710310000Z') if mibBuilder.loadTexts: alvarionAAAClientMIB.setOrganization('Alvarion Ltd.') if mibBuilder.loadTexts: alvarionAAAClientMIB.setContactInfo('Alvarion Ltd. Postal: 21a HaBarzel St. P.O. Box 13139 Tel-Aviv 69710 Israel Phone: +972 3 645 6262') if mibBuilder.loadTexts: alvarionAAAClientMIB.setDescription('Alvarion AAA Client MIB file.') alvarion_aaa_client_objects = mib_identifier((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1)) alvarion_aaa_profile_group = mib_identifier((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 1)) alvarion_aaa_server_group = mib_identifier((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2)) alvarion_aaa_profile_table = mib_table((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 1, 1)) if mibBuilder.loadTexts: alvarionAAAProfileTable.setStatus('current') if mibBuilder.loadTexts: alvarionAAAProfileTable.setDescription('A table defining the AAA server profiles currently configured on the device.') alvarion_aaa_profile_entry = mib_table_row((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 1, 1, 1)).setIndexNames((0, 'ALVARION-AAA-CLIENT-MIB', 'alvarionAAAProfileIndex')) if mibBuilder.loadTexts: alvarionAAAProfileEntry.setStatus('current') if mibBuilder.loadTexts: alvarionAAAProfileEntry.setDescription('A AAA server profile configured in the device. alvarionAAAProfileIndex - Uniquely identifies the profile within the profile table.') alvarion_aaa_profile_index = mib_table_column((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 1, 1, 1, 1), alvarion_profile_index()) if mibBuilder.loadTexts: alvarionAAAProfileIndex.setStatus('current') if mibBuilder.loadTexts: alvarionAAAProfileIndex.setDescription('Specifies the index of the AAA server profile.') alvarion_aaa_profile_name = mib_table_column((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 1, 1, 1, 2), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: alvarionAAAProfileName.setStatus('current') if mibBuilder.loadTexts: alvarionAAAProfileName.setDescription('Specifies the name of the AAA server profile.') alvarion_aaa_profile_primary_server_index = mib_table_column((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 1, 1, 1, 3), alvarion_server_index_or_zero()).setMaxAccess('readonly') if mibBuilder.loadTexts: alvarionAAAProfilePrimaryServerIndex.setStatus('current') if mibBuilder.loadTexts: alvarionAAAProfilePrimaryServerIndex.setDescription('Indicates the index number of the primary server profile in the table. A value of zero indicates that no AAA server is defined.') alvarion_aaa_profile_secondary_server_index = mib_table_column((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 1, 1, 1, 4), alvarion_server_index_or_zero()).setMaxAccess('readonly') if mibBuilder.loadTexts: alvarionAAAProfileSecondaryServerIndex.setStatus('current') if mibBuilder.loadTexts: alvarionAAAProfileSecondaryServerIndex.setDescription('Indicates the index number of the secondary server profile in the table. A value of zero indicates that no AAA server is defined.') alvarion_aaa_server_table = mib_table((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1)) if mibBuilder.loadTexts: alvarionAAAServerTable.setStatus('current') if mibBuilder.loadTexts: alvarionAAAServerTable.setDescription('A table containing the AAA servers currently configured on the device.') alvarion_aaa_server_entry = mib_table_row((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1)).setIndexNames((0, 'ALVARION-AAA-CLIENT-MIB', 'alvarionAAAServerIndex')) if mibBuilder.loadTexts: alvarionAAAServerEntry.setStatus('current') if mibBuilder.loadTexts: alvarionAAAServerEntry.setDescription('An AAA server configured on the device. alvarionAAAServerIndex - Uniquely identifies a server inside the server table.') alvarion_aaa_server_index = mib_table_column((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1, 1), alvarion_server_index()) if mibBuilder.loadTexts: alvarionAAAServerIndex.setStatus('current') if mibBuilder.loadTexts: alvarionAAAServerIndex.setDescription('Specifies the index of the AAA server in the table.') alvarion_aaa_authen_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('radius', 1)))).setMaxAccess('readonly') if mibBuilder.loadTexts: alvarionAAAAuthenProtocol.setStatus('current') if mibBuilder.loadTexts: alvarionAAAAuthenProtocol.setDescription('Indicates the protocol used by the AAA client to communicate with the AAA server.') alvarion_aaa_authen_method = mib_table_column((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('pap', 1), ('chap', 2), ('mschap', 3), ('mschapv2', 4), ('eapMd5', 5)))).setMaxAccess('readonly') if mibBuilder.loadTexts: alvarionAAAAuthenMethod.setStatus('current') if mibBuilder.loadTexts: alvarionAAAAuthenMethod.setDescription('Indicates the authentication method used by the AAA client to authenticate users via the AAA server.') alvarion_aaa_server_name = mib_table_column((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(0, 15))).setMaxAccess('readwrite') if mibBuilder.loadTexts: alvarionAAAServerName.setStatus('current') if mibBuilder.loadTexts: alvarionAAAServerName.setDescription("Specifies the IP address of the AAA server. The string must be a valid IP address in the format 'nnn.nnn.nnn.nnn' Where 'nnn' is a number in the range [0..255]. The '.' character is mandatory between the fields.") alvarion_aaa_shared_secret = mib_table_column((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1, 5), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: alvarionAAASharedSecret.setStatus('current') if mibBuilder.loadTexts: alvarionAAASharedSecret.setDescription('Specifies the shared secret used by the AAA client and the AAA server. This attribute should only be set if AAA traffic between the AAA client and server is sent through a VPN tunnel. Reading this attribute will always return a zero-length string.') alvarion_aaa_authentication_port = mib_table_column((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: alvarionAAAAuthenticationPort.setStatus('current') if mibBuilder.loadTexts: alvarionAAAAuthenticationPort.setDescription('Indicates the port number used by the AAA client to send authentication requests to the AAA server.') alvarion_aaa_accounting_port = mib_table_column((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: alvarionAAAAccountingPort.setStatus('current') if mibBuilder.loadTexts: alvarionAAAAccountingPort.setDescription('Indicates the port number used by the AAA client to send accounting information to the AAA server.') alvarion_aaa_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(3, 100))).setUnits('seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: alvarionAAATimeout.setStatus('current') if mibBuilder.loadTexts: alvarionAAATimeout.setDescription('Indicates how long the AAA client will wait for an answer to an authentication request.') alvarion_aaanas_id = mib_table_column((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1, 9), octet_string().subtype(subtypeSpec=value_size_constraint(0, 253))).setMaxAccess('readonly') if mibBuilder.loadTexts: alvarionAAANASId.setStatus('current') if mibBuilder.loadTexts: alvarionAAANASId.setDescription('Indicates the network access server ID to be sent by the AAA client in each authentication request sent to the AAA server.') alvarion_aaa_client_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 2)) alvarion_aaa_client_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 2, 1)) alvarion_aaa_client_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 2, 2)) alvarion_aaa_client_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 2, 1, 1)).setObjects(('ALVARION-AAA-CLIENT-MIB', 'alvarionAAAProfileMIBGroup'), ('ALVARION-AAA-CLIENT-MIB', 'alvarionAAAClientMIBGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alvarion_aaa_client_mib_compliance = alvarionAAAClientMIBCompliance.setStatus('current') if mibBuilder.loadTexts: alvarionAAAClientMIBCompliance.setDescription('The compliance statement for entities which implement the Alvarion AAA client MIB.') alvarion_aaa_profile_mib_group = object_group((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 2, 2, 1)).setObjects(('ALVARION-AAA-CLIENT-MIB', 'alvarionAAAProfileName'), ('ALVARION-AAA-CLIENT-MIB', 'alvarionAAAProfilePrimaryServerIndex'), ('ALVARION-AAA-CLIENT-MIB', 'alvarionAAAProfileSecondaryServerIndex')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alvarion_aaa_profile_mib_group = alvarionAAAProfileMIBGroup.setStatus('current') if mibBuilder.loadTexts: alvarionAAAProfileMIBGroup.setDescription('A collection of objects providing the AAA profile capability.') alvarion_aaa_client_mib_group = object_group((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 2, 2, 2)).setObjects(('ALVARION-AAA-CLIENT-MIB', 'alvarionAAAAuthenProtocol'), ('ALVARION-AAA-CLIENT-MIB', 'alvarionAAAAuthenMethod'), ('ALVARION-AAA-CLIENT-MIB', 'alvarionAAAServerName'), ('ALVARION-AAA-CLIENT-MIB', 'alvarionAAASharedSecret'), ('ALVARION-AAA-CLIENT-MIB', 'alvarionAAAAuthenticationPort'), ('ALVARION-AAA-CLIENT-MIB', 'alvarionAAAAccountingPort'), ('ALVARION-AAA-CLIENT-MIB', 'alvarionAAATimeout'), ('ALVARION-AAA-CLIENT-MIB', 'alvarionAAANASId')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alvarion_aaa_client_mib_group = alvarionAAAClientMIBGroup.setStatus('current') if mibBuilder.loadTexts: alvarionAAAClientMIBGroup.setDescription('A collection of objects providing the AAA client MIB capability.') mibBuilder.exportSymbols('ALVARION-AAA-CLIENT-MIB', alvarionAAAProfilePrimaryServerIndex=alvarionAAAProfilePrimaryServerIndex, alvarionAAAServerTable=alvarionAAAServerTable, alvarionAAAClientMIBGroup=alvarionAAAClientMIBGroup, alvarionAAAAuthenMethod=alvarionAAAAuthenMethod, alvarionAAAAuthenticationPort=alvarionAAAAuthenticationPort, alvarionAAAClientObjects=alvarionAAAClientObjects, PYSNMP_MODULE_ID=alvarionAAAClientMIB, alvarionAAAAccountingPort=alvarionAAAAccountingPort, alvarionAAAServerIndex=alvarionAAAServerIndex, alvarionAAANASId=alvarionAAANASId, alvarionAAAClientMIBConformance=alvarionAAAClientMIBConformance, alvarionAAAClientMIB=alvarionAAAClientMIB, alvarionAAAProfileIndex=alvarionAAAProfileIndex, alvarionAAASharedSecret=alvarionAAASharedSecret, alvarionAAAClientMIBCompliance=alvarionAAAClientMIBCompliance, alvarionAAAClientMIBGroups=alvarionAAAClientMIBGroups, alvarionAAAClientMIBCompliances=alvarionAAAClientMIBCompliances, alvarionAAAProfileEntry=alvarionAAAProfileEntry, alvarionAAAAuthenProtocol=alvarionAAAAuthenProtocol, alvarionAAAProfileTable=alvarionAAAProfileTable, alvarionAAAProfileName=alvarionAAAProfileName, alvarionAAAServerEntry=alvarionAAAServerEntry, alvarionAAAServerName=alvarionAAAServerName, alvarionAAATimeout=alvarionAAATimeout, alvarionAAAProfileMIBGroup=alvarionAAAProfileMIBGroup, alvarionAAAProfileGroup=alvarionAAAProfileGroup, alvarionAAAServerGroup=alvarionAAAServerGroup, alvarionAAAProfileSecondaryServerIndex=alvarionAAAProfileSecondaryServerIndex)
chosenNumber = int(input("Number? ")) rangeNumber = 100 previousNumber = 0 count = 0 while count != 10: count += 1 rangeNumber = (100 - previousNumber) // 2 previousNumber = rangeNumber + previousNumber print("rangeNumber: %i; previousNumber: %i; try: %i" % (rangeNumber, previousNumber, count)) if previousNumber == chosenNumber: exit()
chosen_number = int(input('Number? ')) range_number = 100 previous_number = 0 count = 0 while count != 10: count += 1 range_number = (100 - previousNumber) // 2 previous_number = rangeNumber + previousNumber print('rangeNumber: %i; previousNumber: %i; try: %i' % (rangeNumber, previousNumber, count)) if previousNumber == chosenNumber: exit()
''' Copyright (c) 2012-2017, Agora Games, LLC All rights reserved. https://github.com/agoragames/kairos/blob/master/LICENSE.txt ''' class KairosException(Exception): '''Base class for all kairos exceptions''' class UnknownInterval(KairosException): '''The requested interval is not configured.'''
""" Copyright (c) 2012-2017, Agora Games, LLC All rights reserved. https://github.com/agoragames/kairos/blob/master/LICENSE.txt """ class Kairosexception(Exception): """Base class for all kairos exceptions""" class Unknowninterval(KairosException): """The requested interval is not configured."""
#!/usr/bin/env python # -*- coding: UTF-8 -*- def test1(): letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g'] print(letters) letters[2:5] = ['C', 'D', 'E'] print(letters) letters[2:5] = [] print(letters) letters[:] = [] print(letters) def test2(): print('\ntest2') a = ['a', 'b', 'c'] n = [1, 2, 3] x = [a, n] print(x) print(x[0]) print(x[0][1]) def main(): test1() test2() if __name__ == "__main__": main()
def test1(): letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g'] print(letters) letters[2:5] = ['C', 'D', 'E'] print(letters) letters[2:5] = [] print(letters) letters[:] = [] print(letters) def test2(): print('\ntest2') a = ['a', 'b', 'c'] n = [1, 2, 3] x = [a, n] print(x) print(x[0]) print(x[0][1]) def main(): test1() test2() if __name__ == '__main__': main()
DEFAULT_DOMAIN = "messages" DEFAULT_LOCALE_DIR_NAME = "locale" DEFAULT_IGNORE_PATTERNS = [ ".*", "*~", "CVS", "__pycache__", "*.pyc", ] DEFAULT_KEYWORDS = [ "_", "gettext", "L_", "gettext_lazy", "N_:1,2", "ngettext:1,2", "LN_:1,2", "ngettext_lazy:1,2", "P_:1c,2", "pgettext:1c,2", "LP_:1c,2", "pgettext_lazy:1c,2", "NP_:1c,2,3", "npgettext:1c,2,3", "LNP_:1c,2,3", "npgettext_lazy:1c,2,3", ]
default_domain = 'messages' default_locale_dir_name = 'locale' default_ignore_patterns = ['.*', '*~', 'CVS', '__pycache__', '*.pyc'] default_keywords = ['_', 'gettext', 'L_', 'gettext_lazy', 'N_:1,2', 'ngettext:1,2', 'LN_:1,2', 'ngettext_lazy:1,2', 'P_:1c,2', 'pgettext:1c,2', 'LP_:1c,2', 'pgettext_lazy:1c,2', 'NP_:1c,2,3', 'npgettext:1c,2,3', 'LNP_:1c,2,3', 'npgettext_lazy:1c,2,3']
X_threads = 16*2 Y_threads = 1 Invoc_count = 2 start_index = 0 end_index = 0 src_list = ["needle_kernel.cu", "needle.h"] SHARED_MEM_USE = True total_shared_mem_size = 2.18*1024 domi_list = [233] domi_val = [0]
x_threads = 16 * 2 y_threads = 1 invoc_count = 2 start_index = 0 end_index = 0 src_list = ['needle_kernel.cu', 'needle.h'] shared_mem_use = True total_shared_mem_size = 2.18 * 1024 domi_list = [233] domi_val = [0]