content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
def increment(a): return a+1 def decrement(a): return a-1
def increment(a): return a + 1 def decrement(a): return a - 1
class Referee: def __init__(self, json_referee_info: dict) -> None: self.id = json_referee_info.get("id") self.bonuses = json_referee_info.get("bonuses") self.bonuses_total = json_referee_info.get("bonuses_total") self.email = json_referee_info.get("email") class Referrals: def __init__(self, json_referees_info) -> None: self.referrals = [] self.referral_earnings = 0 self.total_referral_earnings = 0 for referee in json_referees_info: self.referrals.append(Referee(referee)) self.number_of_referrals = len(self.referrals) for referee in self.referrals: self.referral_earnings += referee.bonuses self.total_referral_earnings += referee.bonuses_total
class Referee: def __init__(self, json_referee_info: dict) -> None: self.id = json_referee_info.get('id') self.bonuses = json_referee_info.get('bonuses') self.bonuses_total = json_referee_info.get('bonuses_total') self.email = json_referee_info.get('email') class Referrals: def __init__(self, json_referees_info) -> None: self.referrals = [] self.referral_earnings = 0 self.total_referral_earnings = 0 for referee in json_referees_info: self.referrals.append(referee(referee)) self.number_of_referrals = len(self.referrals) for referee in self.referrals: self.referral_earnings += referee.bonuses self.total_referral_earnings += referee.bonuses_total
def find_the_max_sum_of_subarray(arr, K): # Input: [2, 1, 5, 1, 3, 2], k=3 # Output: 9 start_index = 0 sum_index = 0 target_sum = 0 for index, value in enumerate(arr): sum_index += value if index >= K-1: if sum_index > target_sum: target_sum = sum_index sum_index -= arr[start_index] start_index +=1 return target_sum v = find_the_max_sum_of_subarray([2, 1, 20, 1, 3, 2], 3) print(v)
def find_the_max_sum_of_subarray(arr, K): start_index = 0 sum_index = 0 target_sum = 0 for (index, value) in enumerate(arr): sum_index += value if index >= K - 1: if sum_index > target_sum: target_sum = sum_index sum_index -= arr[start_index] start_index += 1 return target_sum v = find_the_max_sum_of_subarray([2, 1, 20, 1, 3, 2], 3) print(v)
for i in range(10000000): str_i = str(i) s1 = 'ABCDEFH' + str_i s2 = '123456789' + str_i result = '' x = 0 if len(s1) < len(s2): while x < len(s1): result += s1[x] + s2[x] x += 1 result += s2[x:] else: while x < len(s2): result += s1[x] + s2[x] x += 1 result += s1[x:] if i == 0: print(result)
for i in range(10000000): str_i = str(i) s1 = 'ABCDEFH' + str_i s2 = '123456789' + str_i result = '' x = 0 if len(s1) < len(s2): while x < len(s1): result += s1[x] + s2[x] x += 1 result += s2[x:] else: while x < len(s2): result += s1[x] + s2[x] x += 1 result += s1[x:] if i == 0: print(result)
class parent: counter=10 hit=15 def __init__(self): print("Parent class initialized.") def SetCounter(self, num): self.counter= num class child(parent): # child is the child class of Parent def __init__(self): print("Child class being initialized.") def SetHit(self, num2): self.hit=num2 c= child() print(c.counter) c.SetCounter(20) print(c.counter) print(c.hit) c.SetHit(30) print(c.hit)
class Parent: counter = 10 hit = 15 def __init__(self): print('Parent class initialized.') def set_counter(self, num): self.counter = num class Child(parent): def __init__(self): print('Child class being initialized.') def set_hit(self, num2): self.hit = num2 c = child() print(c.counter) c.SetCounter(20) print(c.counter) print(c.hit) c.SetHit(30) print(c.hit)
class Node: def __init__(self, data=None , next_ref=None): self.data = data self.next = next_ref class Stack: def __init__(self, data=None): self.__top= None self.__size = 0 if data: node = Node(data) self.__top = node self.__size = 1 def push(self, data): node = Node(data,self.__top) self.__top = node self.__size += 1 def pop(self): if self.__top: value = self.__top.data self.__top = self.__top.next self.__size -= 1 return value else: raise IndexError('Stack is Empty') def peek(self): return self._Stack__top def search(self, value): # current = self.__top # while current: # if current.data == value: # return True # current = current.next # return False for data in self.iter(): if data == value: return True return False def get_size(self): return self.__size def iter(self): current = self.__top while current: value = current.data current = current.next yield value def clear(self): self.__top = None self.__size = 0 def test(): print('Creating a Empty with first value as 1') my_stack = Stack(1) print('Adding vlaue 2 3 4 5 6 7 respectively to my_stack') my_stack.push(2) my_stack.push(3) my_stack.push(4) my_stack.push(5) my_stack.push(6) my_stack.push(7) assert my_stack.get_size() == 7 print('-'*60) print('print the stack from top to bottom with top being considered as index 1') i = 0 for value in my_stack.iter(): i +=1 print('Index is %d and value is -> %d'%(i,value)) print('-'*60) print('Performing the pop opeartion over the stack') print(my_stack.pop()) assert my_stack.get_size() == 6 print('-'*60) print('RE-print the stack after one pop operation, with top being considered as index 1') i = 0 for value in my_stack.iter(): i +=1 print('Index is %d and value is -> %d'%(i,value)) print('-'*60) print('search a value or to check the presence of a element in stack') print(my_stack.search(5)) assert my_stack.search(5) assert not my_stack.search(15) print('-'*60) print('Get the size/length / number of element in a stack') print(my_stack.get_size()) assert my_stack.get_size() == 6 print('-'*60) print('Clear the stack') my_stack.clear() # assert my_stack._Stack__top is None assert my_stack.get_size() == 0 # Must return our Assert Error of stack is Empty # print(my_stack.pop()) # test()
class Node: def __init__(self, data=None, next_ref=None): self.data = data self.next = next_ref class Stack: def __init__(self, data=None): self.__top = None self.__size = 0 if data: node = node(data) self.__top = node self.__size = 1 def push(self, data): node = node(data, self.__top) self.__top = node self.__size += 1 def pop(self): if self.__top: value = self.__top.data self.__top = self.__top.next self.__size -= 1 return value else: raise index_error('Stack is Empty') def peek(self): return self._Stack__top def search(self, value): for data in self.iter(): if data == value: return True return False def get_size(self): return self.__size def iter(self): current = self.__top while current: value = current.data current = current.next yield value def clear(self): self.__top = None self.__size = 0 def test(): print('Creating a Empty with first value as 1') my_stack = stack(1) print('Adding vlaue 2 3 4 5 6 7 respectively to my_stack') my_stack.push(2) my_stack.push(3) my_stack.push(4) my_stack.push(5) my_stack.push(6) my_stack.push(7) assert my_stack.get_size() == 7 print('-' * 60) print('print the stack from top to bottom with top being considered as index 1') i = 0 for value in my_stack.iter(): i += 1 print('Index is %d and value is -> %d' % (i, value)) print('-' * 60) print('Performing the pop opeartion over the stack') print(my_stack.pop()) assert my_stack.get_size() == 6 print('-' * 60) print('RE-print the stack after one pop operation, with top being considered as index 1') i = 0 for value in my_stack.iter(): i += 1 print('Index is %d and value is -> %d' % (i, value)) print('-' * 60) print('search a value or to check the presence of a element in stack') print(my_stack.search(5)) assert my_stack.search(5) assert not my_stack.search(15) print('-' * 60) print('Get the size/length / number of element in a stack') print(my_stack.get_size()) assert my_stack.get_size() == 6 print('-' * 60) print('Clear the stack') my_stack.clear() assert my_stack.get_size() == 0
class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: def reverseBetween(self, head: ListNode) -> ListNode: value = 0 currentNode = head while currentNode!=None : node = currentNode while node.next!=None: if node.next.value == currentNode.value: node.next = node.next.next else:node = node.next currentNode = currentNode.next return head
class Listnode: def __init__(self, x): self.val = x self.next = None class Solution: def reverse_between(self, head: ListNode) -> ListNode: value = 0 current_node = head while currentNode != None: node = currentNode while node.next != None: if node.next.value == currentNode.value: node.next = node.next.next else: node = node.next current_node = currentNode.next return head
__title__ = 'ki' __version__ = '1.1.0' __author__ = 'Joshua Scott & Caleb Pina' __description__ = 'Python bindings and extensions for libki'
__title__ = 'ki' __version__ = '1.1.0' __author__ = 'Joshua Scott & Caleb Pina' __description__ = 'Python bindings and extensions for libki'
# filename : Graph.py # ------------------------------------------------------------------------------------ class Graph: def __init__(self, number_of_vertex, number_of_edges, is_directed = False, is_weighted = False): self.number_of_vertices = number_of_vertex self.number_of_edges = number_of_edges self.is_directed = is_directed self.is_weighted = is_weighted self.graph_list = [[] for i in range(self.number_of_vertices)] self.initGraph() # initlize the Graph. def initGraph(self): for egde in range(self.number_of_edges): edge_data = list(map(input("").split(" "), int())) if not self.is_weighted: start = edge_data[0] end = edge_data[1] self.graph_list[start-1].append(end - 1) else: # TODO : Work on Weighted Graph or make a seprate class for it, with different initGraph method. pass # ------------------------------------------------------------------------------------------- class GraphNode: def __init__(self): self.start = None self.end = None self.weight = None
class Graph: def __init__(self, number_of_vertex, number_of_edges, is_directed=False, is_weighted=False): self.number_of_vertices = number_of_vertex self.number_of_edges = number_of_edges self.is_directed = is_directed self.is_weighted = is_weighted self.graph_list = [[] for i in range(self.number_of_vertices)] self.initGraph() def init_graph(self): for egde in range(self.number_of_edges): edge_data = list(map(input('').split(' '), int())) if not self.is_weighted: start = edge_data[0] end = edge_data[1] self.graph_list[start - 1].append(end - 1) else: pass class Graphnode: def __init__(self): self.start = None self.end = None self.weight = None
class SimulationNotFinished(Exception): def __init__(self, keyword): super().__init__( "Run simulation first before using `{}` method.".format(keyword) ) class DailyReturnsNotRegistered(Exception): def __init__(self): super().__init__("Daily returns data have not yet registered.")
class Simulationnotfinished(Exception): def __init__(self, keyword): super().__init__('Run simulation first before using `{}` method.'.format(keyword)) class Dailyreturnsnotregistered(Exception): def __init__(self): super().__init__('Daily returns data have not yet registered.')
class FilterGroupController: def __init__(self, filterGroups): self.filterGroups = filterGroups def sendCoT(self, CoT): pass def addUser(self, clientInformation): pass def removeUser(self, clientInformation): pass
class Filtergroupcontroller: def __init__(self, filterGroups): self.filterGroups = filterGroups def send_co_t(self, CoT): pass def add_user(self, clientInformation): pass def remove_user(self, clientInformation): pass
class Solution: def maxSumTwoNoOverlap(self, A: List[int], L: int, M: int) -> int: prefix, n, res, left = [0 for _ in range(len(A) + 1)], len(A) + 1, 0, 0 for i in range(1, n): prefix[i] = prefix[i - 1] + A[i - 1] for i in range(L + M, n): left = max(left, prefix[i - M] - prefix[i - M - L]) res = max(res, left + prefix[i] - prefix[i - M]) left = 0 for i in range(L + M, n): left = max(left, prefix[i - L] - prefix[i - M - L]) res = max(res, left + prefix[i] - prefix[i - L]) return res
class Solution: def max_sum_two_no_overlap(self, A: List[int], L: int, M: int) -> int: (prefix, n, res, left) = ([0 for _ in range(len(A) + 1)], len(A) + 1, 0, 0) for i in range(1, n): prefix[i] = prefix[i - 1] + A[i - 1] for i in range(L + M, n): left = max(left, prefix[i - M] - prefix[i - M - L]) res = max(res, left + prefix[i] - prefix[i - M]) left = 0 for i in range(L + M, n): left = max(left, prefix[i - L] - prefix[i - M - L]) res = max(res, left + prefix[i] - prefix[i - L]) return res
valores = input().split() valores = list(map(int,valores)) A, B = valores if (B%A == 0) or (A%B == 0): print('Sao Multiplos') else: print('Nao sao Multiplos')
valores = input().split() valores = list(map(int, valores)) (a, b) = valores if B % A == 0 or A % B == 0: print('Sao Multiplos') else: print('Nao sao Multiplos')
def search(str, lst, size): for i in range(0, size): if lst[i] == str: return i return -1 print(search("a", ["a", "b", "c"], 3)) print(search("b", ["a", "b", "c"], 3)) print(search("c", ["a", "b", "c"], 3)) print(search("d", ["a", "b", "c"], 3))
def search(str, lst, size): for i in range(0, size): if lst[i] == str: return i return -1 print(search('a', ['a', 'b', 'c'], 3)) print(search('b', ['a', 'b', 'c'], 3)) print(search('c', ['a', 'b', 'c'], 3)) print(search('d', ['a', 'b', 'c'], 3))
#!/usr/bin/env python3 def divisor(n): num = 0 i = 1 while i * i <= n: if n % i == 0: num += 2 i += 1 if i * i == n: num -= 1 return num def main(): i = 1 sum = 0 while True: sum = divisor(i*(i+1)/2) if sum >= 500: print((sum, i*(i+1)/2)) break i += 1 if __name__ == "__main__": main()
def divisor(n): num = 0 i = 1 while i * i <= n: if n % i == 0: num += 2 i += 1 if i * i == n: num -= 1 return num def main(): i = 1 sum = 0 while True: sum = divisor(i * (i + 1) / 2) if sum >= 500: print((sum, i * (i + 1) / 2)) break i += 1 if __name__ == '__main__': main()
# Individuals Script Runs Y = True N = False topics_run = Y groups_run = Y events_and_members_run = Y events_run = Y members_run = Y rsvps_run = Y # Topics searches by keyword query # topics = ['innovation'] topics = ['startups','entrepreneurship','innovation'] topics_per_page=20 # topics_offset=0 n/a # How many topics are returned for group search topic_order = 'ASC' #ASC or DESC topic_limit = 100 groups_order = 'DESC' groups_limit=1000 groups_per_page=200 groups_offset=0 #city,state,country, lat, lon, radius(miles) # cities =[ # ["Vancouver","BC","CA",49.28,-123.11,10], # # ["Calgary","AB","CA",51.05,-114.07,10], # # ["Montreal","QC","CA",45.50,-73.57,10], # # ["Toronto","ON","CA",43.65,-79.38,10], # ] event_statuses = ["past","upcoming"] events_per_page=200 events_offset=0 members_per_page=100 members_offset=0 rsvps_per_page=200 rsvps_offset=0
y = True n = False topics_run = Y groups_run = Y events_and_members_run = Y events_run = Y members_run = Y rsvps_run = Y topics = ['startups', 'entrepreneurship', 'innovation'] topics_per_page = 20 topic_order = 'ASC' topic_limit = 100 groups_order = 'DESC' groups_limit = 1000 groups_per_page = 200 groups_offset = 0 event_statuses = ['past', 'upcoming'] events_per_page = 200 events_offset = 0 members_per_page = 100 members_offset = 0 rsvps_per_page = 200 rsvps_offset = 0
class A: def __init__(self, a): self.a = a a = A(0) b = a print(b.a) b = A(5) print(a.a) print(b.a)
class A: def __init__(self, a): self.a = a a = a(0) b = a print(b.a) b = a(5) print(a.a) print(b.a)
class Solution: def numRescueBoats(self, people: List[int], limit: int) -> int: people.sort() i, j, boats = 0, len(people) - 1, 0 while i <= j: boats += 1 if people[i] + people[j] <= limit: i += 1 j -= 1 return boats
class Solution: def num_rescue_boats(self, people: List[int], limit: int) -> int: people.sort() (i, j, boats) = (0, len(people) - 1, 0) while i <= j: boats += 1 if people[i] + people[j] <= limit: i += 1 j -= 1 return boats
class Solution: def findTheDifference(self, s: str, t: str) -> str: count = Counter(s) for i, c in enumerate(t): count[c] -= 1 if count[c] == -1: return c
class Solution: def find_the_difference(self, s: str, t: str) -> str: count = counter(s) for (i, c) in enumerate(t): count[c] -= 1 if count[c] == -1: return c
#!/usr/bin/env python class Empire(dict): ''' Methods for updating/viewing Empirees ''' def __init__(self, Empire_dict): super(Empire, self).__init__() self.update(Empire_dict)
class Empire(dict): """ Methods for updating/viewing Empirees """ def __init__(self, Empire_dict): super(Empire, self).__init__() self.update(Empire_dict)
class ParserError(Exception): pass class ReceiptNotFound(ParserError): pass
class Parsererror(Exception): pass class Receiptnotfound(ParserError): pass
text = input().split(", ") valid_names = "" for word in text: if 3 <= len(word) <= 16: if word.isalnum() or "-" in word or "_" in word: valid_names = word print(valid_names)
text = input().split(', ') valid_names = '' for word in text: if 3 <= len(word) <= 16: if word.isalnum() or '-' in word or '_' in word: valid_names = word print(valid_names)
class Solution: def lengthOfLongestSubstring(self, s: str) -> int: if len(s) == 0: return 0 temp = dict() i = 0 max_dis = 0 for k in range(len(s)): if s[k] in temp: i = max(temp[s[k]] + 1, i) temp[s[k]] = k max_dis = max(k - i + 1, max_dis) return max_dis
class Solution: def length_of_longest_substring(self, s: str) -> int: if len(s) == 0: return 0 temp = dict() i = 0 max_dis = 0 for k in range(len(s)): if s[k] in temp: i = max(temp[s[k]] + 1, i) temp[s[k]] = k max_dis = max(k - i + 1, max_dis) return max_dis
#!/usr/bin/env python3 sum = 0 prod = 1 for i in range(1,11): sum += i prod *= i print('sum: %d' % sum) print('prod: %d' % prod)
sum = 0 prod = 1 for i in range(1, 11): sum += i prod *= i print('sum: %d' % sum) print('prod: %d' % prod)
#No job instantiation, just an interface that could be implemented with a priority queue or map. class Executor(): def __init__(self, IP, port): self.server_info = (IP, port) #server stores info of jobs in centralized location, so should manage encoding def submit(self, job_name, size, priority = 1, retries = 0, send_data = True): #just as fn denotes the callable in futures, the submit(job_name....) should schedule the callable #gets the Futures object according to the name??? NOT the job and the processing itself, rather its a supervisor new_future = Future(function_name, self.server_info) #the object doesn't have the job specifications itself #determine in what format you should send to server #will have job_name, priority, retries, and send_data sent directly to server, not the future object self.server_info #this portion would facilitate communication of job specifications: job_name, size, priority, retries, send_data #send w http or json #the future object should hold the info to know the status of the job #get the results from that future object to assess the info return new_future def shutdown(self, wait = True): #grab server info and try to assess if job is done or not args = True #get result from Future.running() to see if the jobs can be shut down if wait: args = False return args #this is all about the references to the actual job object, a means to reference from client #the future object is responsible for getting inquiries from the client about the server #the future object should keep all the info for the server and name, and facilitate communication between server and client class Future(): def __init__(self, job_name, server_info): self.job_name = job_name def cancel(self): return False def cancelled(self): return True def running(self): return True def done(self): return True def result(self): success = False if success: return success else: return success def exception(self, timeout = None): #check for successful run without any exceptions return None def add_done_callback(self, function_name): function_name
class Executor: def __init__(self, IP, port): self.server_info = (IP, port) def submit(self, job_name, size, priority=1, retries=0, send_data=True): new_future = future(function_name, self.server_info) self.server_info return new_future def shutdown(self, wait=True): args = True if wait: args = False return args class Future: def __init__(self, job_name, server_info): self.job_name = job_name def cancel(self): return False def cancelled(self): return True def running(self): return True def done(self): return True def result(self): success = False if success: return success else: return success def exception(self, timeout=None): return None def add_done_callback(self, function_name): function_name
def binary_search(target, num_list): if not target: raise Exception if not num_list: raise Exception left, right = 0, len(num_list)-1 mid = left + (right - left)//2 while left <= right: mid = left + (right - left)//2 if num_list[mid] == target: return True elif num_list[mid] < target: left = mid + 1 else: right = mid return False
def binary_search(target, num_list): if not target: raise Exception if not num_list: raise Exception (left, right) = (0, len(num_list) - 1) mid = left + (right - left) // 2 while left <= right: mid = left + (right - left) // 2 if num_list[mid] == target: return True elif num_list[mid] < target: left = mid + 1 else: right = mid return False
def rotateMatrixby90(ipMat, size): opMat = [[0 for i in range(size)] for j in range(size)] for i in range(size): for j in range(size): opMat[j][i] = ipMat[i][j] return opMat def reverseMatrix(ipMat, size): opMat = [[0 for i in range(size)] for j in range(size)] for i in range(size): for j in range(size): opMat[abs(i-(size-1))][j] = ipMat[i][j] return opMat def rotateMatrixby180(ipMat, size): mat_1 = rotateMatrixby90(ipMat, size) mat_2 = reverseMatrix(mat_1, len(mat_1)) mat_3 = rotateMatrixby90(mat_2, len(mat_2)) mat_4 = reverseMatrix(mat_3, len(mat_3)) return mat_4 def printMatrix(ipMat, size): for i in range(size): for j in range(size): print(ipMat[i][j], end=" ") print('\n') matA = [[1,2,3,4],[5,6,7,8],[9,10,11,12],[13,14,15,16]] print("Original-Matrix" + '\n') printMatrix(matA, len(matA)) print("Rotated-Matrix" + '\n') rotatedMat = rotateMatrixby90(matA, len(matA)) printMatrix(rotatedMat, len(rotatedMat)) matB = [[1, 5, 9, 13], [2, 6, 10, 14], [3, 7, 11, 15], [4, 8, 12, 16]] reverseMat = reverseMatrix(matB, len(matB)) print("Reverse-Matrix" + '\n') printMatrix(reverseMat, len(reverseMat)) print("Rotated-180-Matrix" + '\n') rotatedMat180 = rotateMatrixby180(matA, len(matA)) printMatrix(rotatedMat180, len(rotatedMat180))
def rotate_matrixby90(ipMat, size): op_mat = [[0 for i in range(size)] for j in range(size)] for i in range(size): for j in range(size): opMat[j][i] = ipMat[i][j] return opMat def reverse_matrix(ipMat, size): op_mat = [[0 for i in range(size)] for j in range(size)] for i in range(size): for j in range(size): opMat[abs(i - (size - 1))][j] = ipMat[i][j] return opMat def rotate_matrixby180(ipMat, size): mat_1 = rotate_matrixby90(ipMat, size) mat_2 = reverse_matrix(mat_1, len(mat_1)) mat_3 = rotate_matrixby90(mat_2, len(mat_2)) mat_4 = reverse_matrix(mat_3, len(mat_3)) return mat_4 def print_matrix(ipMat, size): for i in range(size): for j in range(size): print(ipMat[i][j], end=' ') print('\n') mat_a = [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 16]] print('Original-Matrix' + '\n') print_matrix(matA, len(matA)) print('Rotated-Matrix' + '\n') rotated_mat = rotate_matrixby90(matA, len(matA)) print_matrix(rotatedMat, len(rotatedMat)) mat_b = [[1, 5, 9, 13], [2, 6, 10, 14], [3, 7, 11, 15], [4, 8, 12, 16]] reverse_mat = reverse_matrix(matB, len(matB)) print('Reverse-Matrix' + '\n') print_matrix(reverseMat, len(reverseMat)) print('Rotated-180-Matrix' + '\n') rotated_mat180 = rotate_matrixby180(matA, len(matA)) print_matrix(rotatedMat180, len(rotatedMat180))
#!/usr/bin/env python #Modify once acccording to your setup WORKSPACE = "/Users/Gautam/AndroidStudioProjects/AndroidGPSTracking" #Modify the below lines for each project PROJECT_NAME = "AndroidGPSTracking" #Modify if using DB DB_NAME = "mainTuple" TABLE_NAME = "footRecords" MAIN_ACTIVITY = "TrackActivity" #DO NOT MODIFY PREFIX = "com.example.gpstracking" #PROJECT_EXT = PROJECT_NAME.lower()
workspace = '/Users/Gautam/AndroidStudioProjects/AndroidGPSTracking' project_name = 'AndroidGPSTracking' db_name = 'mainTuple' table_name = 'footRecords' main_activity = 'TrackActivity' prefix = 'com.example.gpstracking'
class Solution(object): def removeKdigits(self, num, k): if len(num) <= k: return "0" ret = [] for i in range(len(num)): while k > 0 and ret and ret[-1] > num[i]: ret.pop() k-=1 ret.append(num[i]) while k > 0 and ret: ret.pop() k -= 1 s = "".join(ret).lstrip("0") return s if s else "0" num = "1432219" k = 3 res = Solution().removeKdigits(num, k) print(res)
class Solution(object): def remove_kdigits(self, num, k): if len(num) <= k: return '0' ret = [] for i in range(len(num)): while k > 0 and ret and (ret[-1] > num[i]): ret.pop() k -= 1 ret.append(num[i]) while k > 0 and ret: ret.pop() k -= 1 s = ''.join(ret).lstrip('0') return s if s else '0' num = '1432219' k = 3 res = solution().removeKdigits(num, k) print(res)
class TooShort(Exception): pass class Stale(Exception): pass class Incomplete(Exception): pass class Boring(Exception): pass
class Tooshort(Exception): pass class Stale(Exception): pass class Incomplete(Exception): pass class Boring(Exception): pass
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. class ExampleData(object): def __init__( self, question: str = None, is_multi_select: bool = False, option1: str = None, option2: str = None, option3: str = None, ): self.question = question self.is_multi_select = is_multi_select self.option1 = option1 self.option2 = option2 self.option3 = option3
class Exampledata(object): def __init__(self, question: str=None, is_multi_select: bool=False, option1: str=None, option2: str=None, option3: str=None): self.question = question self.is_multi_select = is_multi_select self.option1 = option1 self.option2 = option2 self.option3 = option3
# # PySNMP MIB module CISCO-CEF-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-CEF-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:53:12 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, ValueRangeConstraint, ConstraintsIntersection, ValueSizeConstraint, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueRangeConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "SingleValueConstraint") CefAdminStatus, CefCCAction, CefForwardingElementSpecialType, CefAdjacencySource, CefPathType, CefFailureReason, CefOperStatus, CefIpVersion, CefAdjLinkType, CefCCStatus, CefMplsLabelList, CefPrefixSearchState, CefCCType = mibBuilder.importSymbols("CISCO-CEF-TC", "CefAdminStatus", "CefCCAction", "CefForwardingElementSpecialType", "CefAdjacencySource", "CefPathType", "CefFailureReason", "CefOperStatus", "CefIpVersion", "CefAdjLinkType", "CefCCStatus", "CefMplsLabelList", "CefPrefixSearchState", "CefCCType") ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt") EntPhysicalIndexOrZero, = mibBuilder.importSymbols("CISCO-TC", "EntPhysicalIndexOrZero") entPhysicalIndex, PhysicalIndex = mibBuilder.importSymbols("ENTITY-MIB", "entPhysicalIndex", "PhysicalIndex") CounterBasedGauge64, = mibBuilder.importSymbols("HCNUM-TC", "CounterBasedGauge64") InterfaceIndexOrZero, ifIndex = mibBuilder.importSymbols("IF-MIB", "InterfaceIndexOrZero", "ifIndex") InetAddress, InetAddressPrefixLength, InetAddressType = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddress", "InetAddressPrefixLength", "InetAddressType") MplsVpnId, = mibBuilder.importSymbols("MPLS-VPN-MIB", "MplsVpnId") SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString") ModuleCompliance, NotificationGroup, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup", "ObjectGroup") TimeTicks, IpAddress, Counter32, MibIdentifier, Counter64, Unsigned32, iso, ObjectIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, Integer32, ModuleIdentity, Bits, Gauge32 = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "IpAddress", "Counter32", "MibIdentifier", "Counter64", "Unsigned32", "iso", "ObjectIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "Integer32", "ModuleIdentity", "Bits", "Gauge32") TimeStamp, TextualConvention, TruthValue, TestAndIncr, RowStatus, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TimeStamp", "TextualConvention", "TruthValue", "TestAndIncr", "RowStatus", "DisplayString") ciscoCefMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 492)) ciscoCefMIB.setRevisions(('2006-01-30 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: ciscoCefMIB.setRevisionsDescriptions(('Initial version of this MIB module.',)) if mibBuilder.loadTexts: ciscoCefMIB.setLastUpdated('200601300000Z') if mibBuilder.loadTexts: ciscoCefMIB.setOrganization('Cisco System, Inc.') if mibBuilder.loadTexts: ciscoCefMIB.setContactInfo('Postal: Cisco Systems, Inc. 170 West Tasman Drive San Jose, CA 95134-1706 USA Tel: +1 800 553-NETS E-mail: [email protected]') if mibBuilder.loadTexts: ciscoCefMIB.setDescription('Cisco Express Forwarding (CEF) describes a high speed switching mechanism that a router uses to forward packets from the inbound to the outbound interface. CEF uses two sets of data structures or tables, which it stores in router memory: Forwarding information base (FIB) - Describes a database of information used to make forwarding decisions. It is conceptually similar to a routing table or route-cache, although its implementation is different. Adjacency - Two nodes in the network are said to be adjacent if they can reach each other via a single hop across a link layer. CEF path is a valid route to reach to a destination IP prefix. Multiple paths may exist out of a router to the same destination prefix. CEF Load balancing capability share the traffic to the destination IP prefix over all the active paths. After obtaining the prefix in the CEF table with the longest match, output forwarding follows the chain of forwarding elements. Forwarding element (FE) may process the packet, forward the packet, drop or punt the packet or it may also pass the packet to the next forwarding element in the chain for further processing. Forwarding Elements are of various types but this MIB only represents the forwarding elements of adjacency and label types. Hence a forwarding element chain will be represented as a list of labels and adjacency. The adjacency may point to a forwarding element list again, if it is not the last forwarding element in this chain. For the simplest IP forwarding case, the prefix entry will point at an adjacency forwarding element. The IP adjacency processing function will apply the output features, add the encapsulation (performing any required fixups), and may send the packet out. If loadbalancing is configured, the prefix entry will point to lists of forwarding elements. One of these lists will be selected to forward the packet. Each forwarding element list dictates which of a set of possible packet transformations to apply on the way to the same neighbour. The following diagram represents relationship between three of the core tables in this MIB module. cefPrefixTable cefFESelectionTable +---------------+ points +--------------+ | | | | a set +----> | | | | | |---------------| of FE | |--------------| | | | | Selection | | | | | | |---------------| Entries | |--------------| | | | |------------+ | |<----+ |---------------| |--------------| | | | +--------------| | | | | | +---------------+ | +--------------+ | | | points to an | adjacency entry | | | | cefAdjTable | | +---------------+ may point | +->| | | | to a set | |---------------| of FE | | | | | Selection | |---------------| Entries | | | | |----------------+ |---------------| | | +---------------+ Some of the Cisco series routers (e.g. 7500 & 12000) support distributed CEF (dCEF), in which the line cards (LCs) make the packet forwarding decisions using locally stored copies of the same Forwarding information base (FIB) and adjacency tables as the Routing Processor (RP). Inter-Process Communication (IPC) is the protocol used by routers that support distributed packet forwarding. CEF updates are encoded as external Data Representation (XDR) information elements inside IPC messages. This MIB reflects the distributed nature of CEF, e.g. CEF has different instances running on the RP and the line cards. There may be instances of inconsistency between the CEF forwarding databases(i.e between CEF forwarding database on line cards and the CEF forwarding database on the RP). CEF consistency checkers (CC) detects this inconsistency. When two databases are compared by a consistency checker, a set of records from the first (master) database is looked up in the second (slave). There are two types of consistency checkers, active and passive. Active consistency checkers are invoked in response to some stimulus, i.e. when a packet cannot be forwarded because the prefix is not in the forwarding table or in response to a Management Station request. Passive consistency checkers operate in the background, scanning portions of the databases on a periodic basis. The full-scan checkers are active consistency checkers which are invoked in response to a Management Station Request. If 64-bit counter objects in this MIB are supported, then their associated 32-bit counter objects must also be supported. The 32-bit counters will report the low 32-bits of the associated 64-bit counter count (e.g., cefPrefixPkts will report the least significant 32 bits of cefPrefixHCPkts). The same rule should be applied for the 64-bit gauge objects and their assocaited 32-bit gauge objects. If 64-bit counters in this MIB are not supported, then an agent MUST NOT instantiate the corresponding objects with an incorrect value; rather, it MUST respond with the appropriate error/exception condition (e.g., noSuchInstance or noSuchName). Counters related to CEF accounting (e.g., cefPrefixPkts) MUST NOT be instantiated if the corresponding accounting method has been disabled. This MIB allows configuration and monitoring of CEF related objects.') ciscoCefMIBNotifs = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 492, 0)) ciscoCefMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 492, 1)) ciscoCefMIBConform = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 492, 2)) cefFIB = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1)) cefAdj = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2)) cefFE = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 3)) cefGlobal = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 4)) cefInterface = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 5)) cefPeer = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 6)) cefCC = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7)) cefStats = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8)) cefNotifCntl = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 9)) cefFIBSummary = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 1)) cefFIBSummaryTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 1, 1), ) if mibBuilder.loadTexts: cefFIBSummaryTable.setStatus('current') if mibBuilder.loadTexts: cefFIBSummaryTable.setDescription('This table contains the summary information for the cefPrefixTable.') cefFIBSummaryEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 1, 1, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex"), (0, "CISCO-CEF-MIB", "cefFIBIpVersion")) if mibBuilder.loadTexts: cefFIBSummaryEntry.setStatus('current') if mibBuilder.loadTexts: cefFIBSummaryEntry.setDescription("If CEF is enabled on the Managed device, each entry contains the FIB summary related attributes for the managed entity. A row may exist for each IP version type (v4 and v6) depending upon the IP version supported on the device. entPhysicalIndex is also an index for this table which represents entities of 'module' entPhysicalClass which are capable of running CEF.") cefFIBIpVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 1, 1, 1, 1), CefIpVersion()) if mibBuilder.loadTexts: cefFIBIpVersion.setStatus('current') if mibBuilder.loadTexts: cefFIBIpVersion.setDescription('The version of IP forwarding.') cefFIBSummaryFwdPrefixes = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 1, 1, 1, 2), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefFIBSummaryFwdPrefixes.setStatus('current') if mibBuilder.loadTexts: cefFIBSummaryFwdPrefixes.setDescription('Total number of forwarding Prefixes in FIB for the IP version specified by cefFIBIpVersion object.') cefPrefixTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 2), ) if mibBuilder.loadTexts: cefPrefixTable.setStatus('current') if mibBuilder.loadTexts: cefPrefixTable.setDescription('A list of CEF forwarding prefixes.') cefPrefixEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 2, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex"), (0, "CISCO-CEF-MIB", "cefPrefixType"), (0, "CISCO-CEF-MIB", "cefPrefixAddr"), (0, "CISCO-CEF-MIB", "cefPrefixLen")) if mibBuilder.loadTexts: cefPrefixEntry.setStatus('current') if mibBuilder.loadTexts: cefPrefixEntry.setDescription("If CEF is enabled on the Managed device, each entry contains the forwarding prefix attributes. CEF prefix based non-recursive stats are maintained in internal and external buckets (depending upon the value of cefIntNonrecursiveAccouting object in the CefIntEntry). entPhysicalIndex is also an index for this table which represents entities of 'module' entPhysicalClass which are capable of running CEF.") cefPrefixType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 2, 1, 1), InetAddressType()) if mibBuilder.loadTexts: cefPrefixType.setStatus('current') if mibBuilder.loadTexts: cefPrefixType.setDescription('The Network Prefix Type. This object specifies the address type used for cefPrefixAddr. Prefix entries are only valid for the address type of ipv4(1) and ipv6(2).') cefPrefixAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 2, 1, 2), InetAddress()) if mibBuilder.loadTexts: cefPrefixAddr.setStatus('current') if mibBuilder.loadTexts: cefPrefixAddr.setDescription('The Network Prefix Address. The type of this address is determined by the value of the cefPrefixType object. This object is a Prefix Address containing the prefix with length specified by cefPrefixLen. Any bits beyond the length specified by cefPrefixLen are zeroed.') cefPrefixLen = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 2, 1, 3), InetAddressPrefixLength()) if mibBuilder.loadTexts: cefPrefixLen.setStatus('current') if mibBuilder.loadTexts: cefPrefixLen.setDescription('Length in bits of the FIB Address prefix.') cefPrefixForwardingInfo = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 2, 1, 4), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefPrefixForwardingInfo.setStatus('current') if mibBuilder.loadTexts: cefPrefixForwardingInfo.setDescription('This object indicates the associated forwarding element selection entries in cefFESelectionTable. The value of this object is index value (cefFESelectionName) of cefFESelectionTable.') cefPrefixPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 2, 1, 5), Counter32()).setUnits('packets').setMaxAccess("readonly") if mibBuilder.loadTexts: cefPrefixPkts.setStatus('current') if mibBuilder.loadTexts: cefPrefixPkts.setDescription("If CEF accounting is set to enable per prefix accounting (value of cefCfgAccountingMap object in the cefCfgEntry is set to enable 'perPrefix' accounting), then this object represents the number of packets switched to this prefix.") cefPrefixHCPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 2, 1, 6), Counter64()).setUnits('packets').setMaxAccess("readonly") if mibBuilder.loadTexts: cefPrefixHCPkts.setStatus('current') if mibBuilder.loadTexts: cefPrefixHCPkts.setDescription("If CEF accounting is set to enable per prefix accounting (value of cefCfgAccountingMap object in the cefCfgEntry is set to enable 'perPrefix' accounting), then this object represents the number of packets switched to this prefix. This object is a 64-bit version of cefPrefixPkts.") cefPrefixBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 2, 1, 7), Counter32()).setUnits('bytes').setMaxAccess("readonly") if mibBuilder.loadTexts: cefPrefixBytes.setStatus('current') if mibBuilder.loadTexts: cefPrefixBytes.setDescription("If CEF accounting is set to enable per prefix accounting (value of cefCfgAccountingMap object in the cefCfgEntry is set to enable 'perPrefix' accounting), then this object represents the number of bytes switched to this prefix.") cefPrefixHCBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 2, 1, 8), Counter64()).setUnits('bytes').setMaxAccess("readonly") if mibBuilder.loadTexts: cefPrefixHCBytes.setStatus('current') if mibBuilder.loadTexts: cefPrefixHCBytes.setDescription("If CEF accounting is set to enable per prefix accounting (value of cefCfgAccountingMap object in the cefCfgEntry is set to enable 'perPrefix' accounting), then this object represents the number of bytes switched to this prefix. This object is a 64-bit version of cefPrefixBytes.") cefPrefixInternalNRPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 2, 1, 9), Counter32()).setUnits('packets').setMaxAccess("readonly") if mibBuilder.loadTexts: cefPrefixInternalNRPkts.setStatus('current') if mibBuilder.loadTexts: cefPrefixInternalNRPkts.setDescription("If CEF accounting is set to enable non-recursive accounting (value of cefCfgAccountingMap object in the cefCfgEntry is set to enable 'nonRecursive' accounting), then this object represents the number of non-recursive packets in the internal bucket switched using this prefix.") cefPrefixInternalNRHCPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 2, 1, 10), Counter64()).setUnits('packets').setMaxAccess("readonly") if mibBuilder.loadTexts: cefPrefixInternalNRHCPkts.setStatus('current') if mibBuilder.loadTexts: cefPrefixInternalNRHCPkts.setDescription("If CEF accounting is set to enable non-recursive accounting (value of cefCfgAccountingMap object in the cefCfgEntry is set to enable 'nonRecursive' accounting), then this object represents the number of non-recursive packets in the internal bucket switched using this prefix. This object is a 64-bit version of cefPrefixInternalNRPkts.") cefPrefixInternalNRBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 2, 1, 11), Counter32()).setUnits('bytes').setMaxAccess("readonly") if mibBuilder.loadTexts: cefPrefixInternalNRBytes.setStatus('current') if mibBuilder.loadTexts: cefPrefixInternalNRBytes.setDescription("If CEF accounting is set to enable nonRecursive accounting (value of cefCfgAccountingMap object in the cefCfgEntry is set to enable 'nonRecursive' accounting), then this object represents the number of non-recursive bytes in the internal bucket switched using this prefix.") cefPrefixInternalNRHCBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 2, 1, 12), Counter64()).setUnits('bytes').setMaxAccess("readonly") if mibBuilder.loadTexts: cefPrefixInternalNRHCBytes.setStatus('current') if mibBuilder.loadTexts: cefPrefixInternalNRHCBytes.setDescription("If CEF accounting is set to enable nonRecursive accounting (value of cefCfgAccountingMap object in the cefCfgEntry is set to enable 'nonRecursive' accounting), then this object represents the number of non-recursive bytes in the internal bucket switched using this prefix. This object is a 64-bit version of cefPrefixInternalNRBytes.") cefPrefixExternalNRPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 2, 1, 13), Counter32()).setUnits('packets').setMaxAccess("readonly") if mibBuilder.loadTexts: cefPrefixExternalNRPkts.setStatus('current') if mibBuilder.loadTexts: cefPrefixExternalNRPkts.setDescription("If CEF accounting is set to enable non-recursive accounting (value of cefCfgAccountingMap object in the cefCfgEntry is set to enable 'nonRecursive' accounting), then this object represents the number of non-recursive packets in the external bucket switched using this prefix.") cefPrefixExternalNRHCPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 2, 1, 14), Counter64()).setUnits('packets').setMaxAccess("readonly") if mibBuilder.loadTexts: cefPrefixExternalNRHCPkts.setStatus('current') if mibBuilder.loadTexts: cefPrefixExternalNRHCPkts.setDescription("If CEF accounting is set to enable non-recursive accounting (value of cefCfgAccountingMap object in the cefCfgEntry is set to enable 'nonRecursive' accounting), then this object represents the number of non-recursive packets in the external bucket switched using this prefix. This object is a 64-bit version of cefPrefixExternalNRPkts.") cefPrefixExternalNRBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 2, 1, 15), Counter32()).setUnits('bytes').setMaxAccess("readonly") if mibBuilder.loadTexts: cefPrefixExternalNRBytes.setStatus('current') if mibBuilder.loadTexts: cefPrefixExternalNRBytes.setDescription("If CEF accounting is set to enable nonRecursive accounting (value of cefCfgAccountingMap object in the cefCfgEntry is set to enable 'nonRecursive' accounting), then this object represents the number of non-recursive bytes in the external bucket switched using this prefix.") cefPrefixExternalNRHCBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 2, 1, 16), Counter64()).setUnits('bytes').setMaxAccess("readonly") if mibBuilder.loadTexts: cefPrefixExternalNRHCBytes.setStatus('current') if mibBuilder.loadTexts: cefPrefixExternalNRHCBytes.setDescription("If CEF accounting is set to enable nonRecursive accounting (value of cefCfgAccountingMap object in the cefCfgEntry is set to enable 'nonRecursive' accounting), then this object represents the number of non-recursive bytes in the external bucket switched using this prefix. This object is a 64-bit version of cefPrefixExternalNRBytes.") cefLMPrefixSpinLock = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 3), TestAndIncr()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cefLMPrefixSpinLock.setStatus('current') if mibBuilder.loadTexts: cefLMPrefixSpinLock.setDescription("An advisory lock used to allow cooperating SNMP Command Generator applications to coordinate their use of the Set operation in creating Longest Match Prefix Entries in cefLMPrefixTable. When creating a new longest prefix match entry, the value of cefLMPrefixSpinLock should be retrieved. The destination address should be determined to be unique by the SNMP Command Generator application by consulting the cefLMPrefixTable. Finally, the longest prefix entry may be created (Set), including the advisory lock. If another SNMP Command Generator application has altered the longest prefix entry in the meantime, then the spin lock's value will have changed, and so this creation will fail because it will specify the wrong value for the spin lock. Since this is an advisory lock, the use of this lock is not enforced, but not using this lock may lead to conflict with the another SNMP command responder application which may also be acting on the cefLMPrefixTable.") cefLMPrefixTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 4), ) if mibBuilder.loadTexts: cefLMPrefixTable.setStatus('current') if mibBuilder.loadTexts: cefLMPrefixTable.setDescription('A table of Longest Match Prefix Query requests. Generator application should utilize the cefLMPrefixSpinLock to try to avoid collisions. See DESCRIPTION clause of cefLMPrefixSpinLock.') cefLMPrefixEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 4, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex"), (0, "CISCO-CEF-MIB", "cefLMPrefixDestAddrType"), (0, "CISCO-CEF-MIB", "cefLMPrefixDestAddr")) if mibBuilder.loadTexts: cefLMPrefixEntry.setStatus('current') if mibBuilder.loadTexts: cefLMPrefixEntry.setDescription("If CEF is enabled on the managed device, then each entry represents a longest Match Prefix request. A management station wishing to get the longest Match prefix for a given destination address should create the associate instance of the row status. The row status should be set to active(1) to initiate the request. Note that this entire procedure may be initiated via a single set request which specifies a row status of createAndGo(4). Once the request completes, the management station should retrieve the values of the objects of interest, and should then delete the entry. In order to prevent old entries from clogging the table, entries will be aged out, but an entry will never be deleted within 5 minutes of completion. Entries are lost after an agent restart. I.e. to find out the longest prefix match for destination address of A.B.C.D on entity whose entityPhysicalIndex is 1, the Management station will create an entry in cefLMPrefixTable with cefLMPrefixRowStatus.1(entPhysicalIndex).1(ipv4).A.B.C.D set to createAndGo(4). Management Station may query the value of objects cefLMPrefix and cefLMPrefixLen to find out the corresponding prefix entry from the cefPrefixTable once the value of cefLMPrefixState is set to matchFound(2). entPhysicalIndex is also an index for this table which represents entities of 'module' entPhysicalClass which are capable of running CEF. ") cefLMPrefixDestAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 4, 1, 1), InetAddressType()) if mibBuilder.loadTexts: cefLMPrefixDestAddrType.setStatus('current') if mibBuilder.loadTexts: cefLMPrefixDestAddrType.setDescription('The Destination Address Type. This object specifies the address type used for cefLMPrefixDestAddr. Longest Match Prefix entries are only valid for the address type of ipv4(1) and ipv6(2).') cefLMPrefixDestAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 4, 1, 2), InetAddress()) if mibBuilder.loadTexts: cefLMPrefixDestAddr.setStatus('current') if mibBuilder.loadTexts: cefLMPrefixDestAddr.setDescription('The Destination Address. The type of this address is determined by the value of the cefLMPrefixDestAddrType object.') cefLMPrefixState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 4, 1, 3), CefPrefixSearchState()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefLMPrefixState.setStatus('current') if mibBuilder.loadTexts: cefLMPrefixState.setDescription('Indicates the state of this prefix search request.') cefLMPrefixAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 4, 1, 4), InetAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefLMPrefixAddr.setStatus('current') if mibBuilder.loadTexts: cefLMPrefixAddr.setDescription('The Network Prefix Address. Index to the cefPrefixTable. The type of this address is determined by the value of the cefLMPrefixDestAddrType object.') cefLMPrefixLen = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 4, 1, 5), InetAddressPrefixLength()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefLMPrefixLen.setStatus('current') if mibBuilder.loadTexts: cefLMPrefixLen.setDescription('The Network Prefix Length. Index to the cefPrefixTable.') cefLMPrefixRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 4, 1, 6), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cefLMPrefixRowStatus.setStatus('current') if mibBuilder.loadTexts: cefLMPrefixRowStatus.setDescription('The status of this table entry. Once the entry status is set to active(1), the associated entry cannot be modified until the request completes (cefLMPrefixState transitions to matchFound(2) or noMatchFound(3)). Once the longest match request has been created (i.e. the cefLMPrefixRowStatus has been made active), the entry cannot be modified - the only operation possible after this is to delete the row.') cefPathTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 5), ) if mibBuilder.loadTexts: cefPathTable.setStatus('current') if mibBuilder.loadTexts: cefPathTable.setDescription('CEF prefix path is a valid route to reach to a destination IP prefix. Multiple paths may exist out of a router to the same destination prefix. This table specify lists of CEF paths.') cefPathEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 5, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex"), (0, "CISCO-CEF-MIB", "cefPrefixType"), (0, "CISCO-CEF-MIB", "cefPrefixAddr"), (0, "CISCO-CEF-MIB", "cefPrefixLen"), (0, "CISCO-CEF-MIB", "cefPathId")) if mibBuilder.loadTexts: cefPathEntry.setStatus('current') if mibBuilder.loadTexts: cefPathEntry.setDescription("If CEF is enabled on the Managed device, each entry contain a CEF prefix path. entPhysicalIndex is also an index for this table which represents entities of 'module' entPhysicalClass which are capable of running CEF.") cefPathId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 5, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))) if mibBuilder.loadTexts: cefPathId.setStatus('current') if mibBuilder.loadTexts: cefPathId.setDescription('The locally arbitrary, but unique identifier associated with this prefix path entry.') cefPathType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 5, 1, 2), CefPathType()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefPathType.setStatus('current') if mibBuilder.loadTexts: cefPathType.setDescription('Type for this CEF Path.') cefPathInterface = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 5, 1, 3), InterfaceIndexOrZero()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefPathInterface.setStatus('current') if mibBuilder.loadTexts: cefPathInterface.setDescription('Interface associated with this CEF path. A value of zero for this object will indicate that no interface is associated with this path entry.') cefPathNextHopAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 5, 1, 4), InetAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefPathNextHopAddr.setStatus('current') if mibBuilder.loadTexts: cefPathNextHopAddr.setDescription('Next hop address associated with this CEF path. The value of this object is only relevant for attached next hop and recursive next hop path types (when the object cefPathType is set to attachedNexthop(4) or recursiveNexthop(5)). and will be set to zero for other path types. The type of this address is determined by the value of the cefPrefixType object.') cefPathRecurseVrfName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 5, 1, 5), MplsVpnId()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefPathRecurseVrfName.setStatus('current') if mibBuilder.loadTexts: cefPathRecurseVrfName.setDescription("The recursive vrf name associated with this path. The value of this object is only relevant for recursive next hop path types (when the object cefPathType is set to recursiveNexthop(5)), and '0x00' will be returned for other path types.") cefAdjSummary = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 1)) cefAdjSummaryTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 1, 1), ) if mibBuilder.loadTexts: cefAdjSummaryTable.setStatus('current') if mibBuilder.loadTexts: cefAdjSummaryTable.setDescription('This table contains the summary information for the cefAdjTable.') cefAdjSummaryEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 1, 1, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex"), (0, "CISCO-CEF-MIB", "cefAdjSummaryLinkType")) if mibBuilder.loadTexts: cefAdjSummaryEntry.setStatus('current') if mibBuilder.loadTexts: cefAdjSummaryEntry.setDescription("If CEF is enabled on the Managed device, each entry contains the CEF Adjacency summary related attributes for the Managed entity. A row exists for each adjacency link type. entPhysicalIndex is also an index for this table which represents entities of 'module' entPhysicalClass which are capable of running CEF.") cefAdjSummaryLinkType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 1, 1, 1, 1), CefAdjLinkType()) if mibBuilder.loadTexts: cefAdjSummaryLinkType.setStatus('current') if mibBuilder.loadTexts: cefAdjSummaryLinkType.setDescription('The link type of the adjacency.') cefAdjSummaryComplete = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 1, 1, 1, 2), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefAdjSummaryComplete.setStatus('current') if mibBuilder.loadTexts: cefAdjSummaryComplete.setDescription('The total number of complete adjacencies. The total number of adjacencies which can be used to switch traffic to a neighbour.') cefAdjSummaryIncomplete = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 1, 1, 1, 3), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefAdjSummaryIncomplete.setStatus('current') if mibBuilder.loadTexts: cefAdjSummaryIncomplete.setDescription('The total number of incomplete adjacencies. The total number of adjacencies which cannot be used to switch traffic in their current state.') cefAdjSummaryFixup = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 1, 1, 1, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefAdjSummaryFixup.setStatus('current') if mibBuilder.loadTexts: cefAdjSummaryFixup.setDescription('The total number of adjacencies for which the Layer 2 encapsulation string (header) may be updated (fixed up) at packet switch time.') cefAdjSummaryRedirect = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 1, 1, 1, 5), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefAdjSummaryRedirect.setReference('1. Internet Architecture Extensions for Shared Media, RFC 1620, May 1994.') if mibBuilder.loadTexts: cefAdjSummaryRedirect.setStatus('current') if mibBuilder.loadTexts: cefAdjSummaryRedirect.setDescription('The total number of adjacencies for which ip redirect (or icmp redirection) is enabled. The value of this object is only relevant for ipv4 and ipv6 link type (when the index object cefAdjSummaryLinkType value is ipv4(1) or ipv6(2)) and will be set to zero for other link types. ') cefAdjTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 2), ) if mibBuilder.loadTexts: cefAdjTable.setStatus('current') if mibBuilder.loadTexts: cefAdjTable.setDescription('A list of CEF adjacencies.') cefAdjEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 2, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex"), (0, "IF-MIB", "ifIndex"), (0, "CISCO-CEF-MIB", "cefAdjNextHopAddrType"), (0, "CISCO-CEF-MIB", "cefAdjNextHopAddr"), (0, "CISCO-CEF-MIB", "cefAdjConnId"), (0, "CISCO-CEF-MIB", "cefAdjSummaryLinkType")) if mibBuilder.loadTexts: cefAdjEntry.setStatus('current') if mibBuilder.loadTexts: cefAdjEntry.setDescription("If CEF is enabled on the Managed device, each entry contains the adjacency attributes. Adjacency entries may exist for all the interfaces on which packets can be switched out of the device. The interface is instantiated by ifIndex. Therefore, the interface index must have been assigned, according to the applicable procedures, before it can be meaningfully used. Generally, this means that the interface must exist. entPhysicalIndex is also an index for this table which represents entities of 'module' entPhysicalClass which are capable of running CEF.") cefAdjNextHopAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 2, 1, 1), InetAddressType()) if mibBuilder.loadTexts: cefAdjNextHopAddrType.setStatus('current') if mibBuilder.loadTexts: cefAdjNextHopAddrType.setDescription('Address type for the cefAdjNextHopAddr. This object specifies the address type used for cefAdjNextHopAddr. Adjacency entries are only valid for the address type of ipv4(1) and ipv6(2).') cefAdjNextHopAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 2, 1, 2), InetAddress()) if mibBuilder.loadTexts: cefAdjNextHopAddr.setStatus('current') if mibBuilder.loadTexts: cefAdjNextHopAddr.setDescription('The next Hop address for this adjacency. The type of this address is determined by the value of the cefAdjNextHopAddrType object.') cefAdjConnId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 2, 1, 3), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 4294967295), ))) if mibBuilder.loadTexts: cefAdjConnId.setStatus('current') if mibBuilder.loadTexts: cefAdjConnId.setDescription('In cases where cefLinkType, interface and the next hop address are not able to uniquely define an adjacency entry (e.g. ATM and Frame Relay Bundles), this object is a unique identifier to differentiate between these adjacency entries. In all the other cases the value of this index object will be 0.') cefAdjSource = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 2, 1, 4), CefAdjacencySource()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefAdjSource.setStatus('current') if mibBuilder.loadTexts: cefAdjSource.setDescription('If the adjacency is created because some neighbour discovery mechanism has discovered a neighbour and all the information required to build a frame header to encapsulate traffic to the neighbour is available then the source of adjacency is set to the mechanism by which the adjacency is learned.') cefAdjEncap = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 2, 1, 5), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefAdjEncap.setStatus('current') if mibBuilder.loadTexts: cefAdjEncap.setDescription('The layer 2 encapsulation string to be used for sending the packet out using this adjacency.') cefAdjFixup = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 2, 1, 6), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefAdjFixup.setStatus('current') if mibBuilder.loadTexts: cefAdjFixup.setDescription("For the cases, where the encapsulation string is decided at packet switch time, the adjacency encapsulation string specified by object cefAdjEncap require a fixup. I.e. for the adjacencies out of IP Tunnels, the string prepended is an IP header which has fields which can only be setup at packet switch time. The value of this object represent the kind of fixup applied to the packet. If the encapsulation string doesn't require any fixup, then the value of this object will be of zero length.") cefAdjMTU = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 2, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setUnits('bytes').setMaxAccess("readonly") if mibBuilder.loadTexts: cefAdjMTU.setStatus('current') if mibBuilder.loadTexts: cefAdjMTU.setDescription('The Layer 3 MTU which can be transmitted using this adjacency.') cefAdjForwardingInfo = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 2, 1, 8), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefAdjForwardingInfo.setStatus('current') if mibBuilder.loadTexts: cefAdjForwardingInfo.setDescription('This object selects a forwarding info entry defined in the cefFESelectionTable. The selected target is defined by an entry in the cefFESelectionTable whose index value (cefFESelectionName) is equal to this object. The value of this object will be of zero length if this adjacency entry is the last forwarding element in the forwarding path.') cefAdjPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 2, 1, 9), Counter32()).setUnits('packets').setMaxAccess("readonly") if mibBuilder.loadTexts: cefAdjPkts.setStatus('current') if mibBuilder.loadTexts: cefAdjPkts.setDescription('Number of pkts transmitted using this adjacency.') cefAdjHCPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 2, 1, 10), Counter64()).setUnits('packets').setMaxAccess("readonly") if mibBuilder.loadTexts: cefAdjHCPkts.setStatus('current') if mibBuilder.loadTexts: cefAdjHCPkts.setDescription('Number of pkts transmitted using this adjacency. This object is a 64-bit version of cefAdjPkts.') cefAdjBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 2, 1, 11), Counter32()).setUnits('bytes').setMaxAccess("readonly") if mibBuilder.loadTexts: cefAdjBytes.setStatus('current') if mibBuilder.loadTexts: cefAdjBytes.setDescription('Number of bytes transmitted using this adjacency.') cefAdjHCBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 2, 1, 12), Counter64()).setUnits('bytes').setMaxAccess("readonly") if mibBuilder.loadTexts: cefAdjHCBytes.setStatus('current') if mibBuilder.loadTexts: cefAdjHCBytes.setDescription('Number of bytes transmitted using this adjacency. This object is a 64-bit version of cefAdjBytes.') cefFESelectionTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 3, 1), ) if mibBuilder.loadTexts: cefFESelectionTable.setStatus('current') if mibBuilder.loadTexts: cefFESelectionTable.setDescription('A list of forwarding element selection entries.') cefFESelectionEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 3, 1, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex"), (0, "CISCO-CEF-MIB", "cefFESelectionName"), (0, "CISCO-CEF-MIB", "cefFESelectionId")) if mibBuilder.loadTexts: cefFESelectionEntry.setStatus('current') if mibBuilder.loadTexts: cefFESelectionEntry.setDescription("If CEF is enabled on the Managed device, each entry contain a CEF forwarding element selection list. entPhysicalIndex is also an index for this table which represents entities of 'module' entPhysicalClass which are capable of running CEF.") cefFESelectionName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 3, 1, 1, 1), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))) if mibBuilder.loadTexts: cefFESelectionName.setStatus('current') if mibBuilder.loadTexts: cefFESelectionName.setDescription('The locally arbitrary, but unique identifier used to select a set of forwarding element lists.') cefFESelectionId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 3, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))) if mibBuilder.loadTexts: cefFESelectionId.setStatus('current') if mibBuilder.loadTexts: cefFESelectionId.setDescription('Secondary index to identify a forwarding elements List in this Table.') cefFESelectionSpecial = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 3, 1, 1, 3), CefForwardingElementSpecialType()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefFESelectionSpecial.setStatus('current') if mibBuilder.loadTexts: cefFESelectionSpecial.setDescription('Special processing for a destination is indicated through the use of special forwarding element. If the forwarding element list contains the special forwarding element, then this object represents the type of special forwarding element.') cefFESelectionLabels = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 3, 1, 1, 4), CefMplsLabelList()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefFESelectionLabels.setStatus('current') if mibBuilder.loadTexts: cefFESelectionLabels.setDescription("This object represent the MPLS Labels associated with this forwarding Element List. The value of this object will be irrelevant and will be set to zero length if the forwarding element list doesn't contain a label forwarding element. A zero length label list will indicate that there is no label forwarding element associated with this selection entry.") cefFESelectionAdjLinkType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 3, 1, 1, 5), CefAdjLinkType()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefFESelectionAdjLinkType.setStatus('current') if mibBuilder.loadTexts: cefFESelectionAdjLinkType.setDescription("This object represent the link type for the adjacency associated with this forwarding Element List. The value of this object will be irrelevant and will be set to unknown(5) if the forwarding element list doesn't contain an adjacency forwarding element.") cefFESelectionAdjInterface = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 3, 1, 1, 6), InterfaceIndexOrZero()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefFESelectionAdjInterface.setStatus('current') if mibBuilder.loadTexts: cefFESelectionAdjInterface.setDescription("This object represent the interface for the adjacency associated with this forwarding Element List. The value of this object will be irrelevant and will be set to zero if the forwarding element list doesn't contain an adjacency forwarding element.") cefFESelectionAdjNextHopAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 3, 1, 1, 7), InetAddressType()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefFESelectionAdjNextHopAddrType.setStatus('current') if mibBuilder.loadTexts: cefFESelectionAdjNextHopAddrType.setDescription("This object represent the next hop address type for the adjacency associated with this forwarding Element List. The value of this object will be irrelevant and will be set to unknown(0) if the forwarding element list doesn't contain an adjacency forwarding element.") cefFESelectionAdjNextHopAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 3, 1, 1, 8), InetAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefFESelectionAdjNextHopAddr.setStatus('current') if mibBuilder.loadTexts: cefFESelectionAdjNextHopAddr.setDescription("This object represent the next hop address for the adjacency associated with this forwarding Element List. The value of this object will be irrelevant and will be set to zero if the forwarding element list doesn't contain an adjacency forwarding element.") cefFESelectionAdjConnId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 3, 1, 1, 9), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 4294967295), ))).setMaxAccess("readonly") if mibBuilder.loadTexts: cefFESelectionAdjConnId.setStatus('current') if mibBuilder.loadTexts: cefFESelectionAdjConnId.setDescription("This object represent the connection id for the adjacency associated with this forwarding Element List. The value of this object will be irrelevant and will be set to zero if the forwarding element list doesn't contain an adjacency forwarding element. In cases where cefFESelectionAdjLinkType, interface and the next hop address are not able to uniquely define an adjacency entry (e.g. ATM and Frame Relay Bundles), this object is a unique identifier to differentiate between these adjacency entries.") cefFESelectionVrfName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 3, 1, 1, 10), MplsVpnId()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefFESelectionVrfName.setStatus('current') if mibBuilder.loadTexts: cefFESelectionVrfName.setDescription("This object represent the Vrf name for the lookup associated with this forwarding Element List. The value of this object will be irrelevant and will be set to a string containing the single octet 0x00 if the forwarding element list doesn't contain a lookup forwarding element.") cefFESelectionWeight = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 3, 1, 1, 11), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 4294967295), ))).setMaxAccess("readonly") if mibBuilder.loadTexts: cefFESelectionWeight.setStatus('current') if mibBuilder.loadTexts: cefFESelectionWeight.setDescription('This object represent the weighting for load balancing between multiple Forwarding Element Lists. The value of this object will be zero if load balancing is associated with this selection entry.') cefCfgTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 4, 1), ) if mibBuilder.loadTexts: cefCfgTable.setStatus('current') if mibBuilder.loadTexts: cefCfgTable.setDescription('This table contains global config parameter of CEF on the Managed device.') cefCfgEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 4, 1, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex"), (0, "CISCO-CEF-MIB", "cefFIBIpVersion")) if mibBuilder.loadTexts: cefCfgEntry.setStatus('current') if mibBuilder.loadTexts: cefCfgEntry.setDescription("If the Managed device supports CEF, each entry contains the CEF config parameter for the managed entity. A row may exist for each IP version type (v4 and v6) depending upon the IP version supported on the device. entPhysicalIndex is also an index for this table which represents entities of 'module' entPhysicalClass which are capable of running CEF.") cefCfgAdminState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 4, 1, 1, 1), CefAdminStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cefCfgAdminState.setStatus('current') if mibBuilder.loadTexts: cefCfgAdminState.setDescription('The desired state of CEF.') cefCfgOperState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 4, 1, 1, 2), CefOperStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefCfgOperState.setStatus('current') if mibBuilder.loadTexts: cefCfgOperState.setDescription('The current operational state of CEF. If the cefCfgAdminState is disabled(2), then cefOperState will eventually go to the down(2) state unless some error has occurred. If cefCfgAdminState is changed to enabled(1) then cefCfgOperState should change to up(1) only if the CEF entity is ready to forward the packets using Cisco Express Forwarding (CEF) else it should remain in the down(2) state. The up(1) state for this object indicates that CEF entity is forwarding the packet using Cisco Express Forwarding.') cefCfgDistributionAdminState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 4, 1, 1, 3), CefAdminStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cefCfgDistributionAdminState.setStatus('current') if mibBuilder.loadTexts: cefCfgDistributionAdminState.setDescription('The desired state of CEF distribution.') cefCfgDistributionOperState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 4, 1, 1, 4), CefOperStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefCfgDistributionOperState.setStatus('current') if mibBuilder.loadTexts: cefCfgDistributionOperState.setDescription('The current operational state of CEF distribution. If the cefCfgDistributionAdminState is disabled(2), then cefDistributionOperState will eventually go to the down(2) state unless some error has occurred. If cefCfgDistributionAdminState is changed to enabled(1) then cefCfgDistributionOperState should change to up(1) only if the CEF entity is ready to forward the packets using Distributed Cisco Express Forwarding (dCEF) else it should remain in the down(2) state. The up(1) state for this object indicates that CEF entity is forwarding the packet using Distributed Cisco Express Forwarding.') cefCfgAccountingMap = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 4, 1, 1, 5), Bits().clone(namedValues=NamedValues(("nonRecursive", 0), ("perPrefix", 1), ("prefixLength", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cefCfgAccountingMap.setStatus('current') if mibBuilder.loadTexts: cefCfgAccountingMap.setDescription('This object represents a bitmap of network accounting options. CEF network accounting is disabled by default. CEF network accounting can be enabled by selecting one or more of the following CEF accounting option for the value of this object. nonRecursive(0): enables accounting through nonrecursive prefixes. perPrefix(1): enables the collection of the numbers of pkts and bytes express forwarded to a destination (prefix) prefixLength(2): enables accounting through prefixlength. Once the accounting is enabled, the corresponding stats can be retrieved from the cefPrefixTable and cefStatsPrefixLenTable. ') cefCfgLoadSharingAlgorithm = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 4, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("original", 2), ("tunnel", 3), ("universal", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cefCfgLoadSharingAlgorithm.setStatus('current') if mibBuilder.loadTexts: cefCfgLoadSharingAlgorithm.setDescription("Indicates the CEF Load balancing algorithm. Setting this object to none(1) will disable the Load sharing for the specified entry. CEF load balancing can be enabled by setting this object to one of following Algorithms: original(2) : This algorithm is based on a source and destination hash tunnel(3) : This algorithm is used in tunnels environments or in environments where there are only a few source universal(4) : This algorithm uses a source and destination and ID hash If the value of this object is set to 'tunnel' or 'universal', then the FIXED ID for these algorithms may be specified by the managed object cefLoadSharingID. ") cefCfgLoadSharingID = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 4, 1, 1, 7), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 4294967295), ))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cefCfgLoadSharingID.setStatus('current') if mibBuilder.loadTexts: cefCfgLoadSharingID.setDescription('The Fixed ID associated with the managed object cefCfgLoadSharingAlgorithm. The hash of this object value may be used by the Load Sharing Algorithm. The value of this object is not relevant and will be set to zero if the value of managed object cefCfgLoadSharingAlgorithm is set to none(1) or original(2). The default value of this object is calculated by the device at the time of initialization.') cefCfgTrafficStatsLoadInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 4, 1, 1, 8), Unsigned32()).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: cefCfgTrafficStatsLoadInterval.setStatus('current') if mibBuilder.loadTexts: cefCfgTrafficStatsLoadInterval.setDescription('The interval time over which the CEF traffic statistics are collected.') cefCfgTrafficStatsUpdateRate = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 4, 1, 1, 9), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 65535), ))).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: cefCfgTrafficStatsUpdateRate.setStatus('current') if mibBuilder.loadTexts: cefCfgTrafficStatsUpdateRate.setDescription('The frequency with which the line card sends the traffic load statistics to the Router Processor. Setting the value of this object to 0 will disable the CEF traffic statistics collection.') cefResourceTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 4, 2), ) if mibBuilder.loadTexts: cefResourceTable.setStatus('current') if mibBuilder.loadTexts: cefResourceTable.setDescription('This table contains global resource information of CEF on the Managed device.') cefResourceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 4, 2, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex")) if mibBuilder.loadTexts: cefResourceEntry.setStatus('current') if mibBuilder.loadTexts: cefResourceEntry.setDescription("If the Managed device supports CEF, each entry contains the CEF Resource parameters for the managed entity. entPhysicalIndex is also an index for this table which represents entities of 'module' entPhysicalClass which are capable of running CEF.") cefResourceMemoryUsed = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 4, 2, 1, 1), Gauge32()).setUnits('bytes').setMaxAccess("readonly") if mibBuilder.loadTexts: cefResourceMemoryUsed.setStatus('current') if mibBuilder.loadTexts: cefResourceMemoryUsed.setDescription('Indicates the number of bytes from the Processor Memory Pool that are currently in use by CEF on the managed entity.') cefResourceFailureReason = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 4, 2, 1, 2), CefFailureReason()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefResourceFailureReason.setStatus('current') if mibBuilder.loadTexts: cefResourceFailureReason.setDescription('The CEF resource failure reason which may lead to CEF being disabled on the managed entity.') cefIntTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 5, 1), ) if mibBuilder.loadTexts: cefIntTable.setStatus('current') if mibBuilder.loadTexts: cefIntTable.setDescription('This Table contains interface specific information of CEF on the Managed device.') cefIntEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 5, 1, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex"), (0, "CISCO-CEF-MIB", "cefFIBIpVersion"), (0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: cefIntEntry.setStatus('current') if mibBuilder.loadTexts: cefIntEntry.setDescription("If CEF is enabled on the Managed device, each entry contains the CEF attributes associated with an interface. The interface is instantiated by ifIndex. Therefore, the interface index must have been assigned, according to the applicable procedures, before it can be meaningfully used. Generally, this means that the interface must exist. A row may exist for each IP version type (v4 and v6) depending upon the IP version supported on the device. entPhysicalIndex is also an index for this table which represents entities of 'module' entPhysicalClass which are capable of running CEF.") cefIntSwitchingState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 5, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("cefEnabled", 1), ("distCefEnabled", 2), ("cefDisabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cefIntSwitchingState.setStatus('current') if mibBuilder.loadTexts: cefIntSwitchingState.setDescription('The CEF switching State for the interface. If CEF is enabled but distributed CEF(dCEF) is disabled then CEF is in cefEnabled(1) state. If distributed CEF is enabled, then CEF is in distCefEnabled(2) state. The cefDisabled(3) state indicates that CEF is disabled. The CEF switching state is only applicable to the received packet on the interface.') cefIntLoadSharing = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 5, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("perPacket", 1), ("perDestination", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cefIntLoadSharing.setStatus('current') if mibBuilder.loadTexts: cefIntLoadSharing.setDescription('The status of load sharing on the interface. perPacket(1) : Router to send data packets over successive equal-cost paths without regard to individual hosts or user sessions. perDestination(2) : Router to use multiple, equal-cost paths to achieve load sharing Load sharing is enabled by default for an interface when CEF is enabled.') cefIntNonrecursiveAccouting = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 5, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("internal", 1), ("external", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cefIntNonrecursiveAccouting.setStatus('current') if mibBuilder.loadTexts: cefIntNonrecursiveAccouting.setDescription('The CEF accounting mode for the interface. CEF prefix based non-recursive accounting on an interface can be configured to store the stats for non-recursive prefixes in a internal or external bucket. internal(1) : Count input traffic in the nonrecursive internal bucket external(2) : Count input traffic in the nonrecursive external bucket The value of this object will only be effective if value of the object cefAccountingMap is set to enable nonRecursive(1) accounting.') cefPeerTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 6, 1), ) if mibBuilder.loadTexts: cefPeerTable.setStatus('current') if mibBuilder.loadTexts: cefPeerTable.setDescription('Entity acting as RP (Routing Processor) keeps the CEF states for the line card entities and communicates with the line card entities using XDR. This Table contains the CEF information related to peer entities on the managed device.') cefPeerEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 6, 1, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex"), (0, "CISCO-CEF-MIB", "entPeerPhysicalIndex")) if mibBuilder.loadTexts: cefPeerEntry.setStatus('current') if mibBuilder.loadTexts: cefPeerEntry.setDescription("If CEF is enabled on the Managed device, each entry contains the CEF related attributes associated with a CEF peer entity. entPhysicalIndex and entPeerPhysicalIndex are also indexes for this table which represents entities of 'module' entPhysicalClass which are capable of running CEF.") entPeerPhysicalIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 6, 1, 1, 1), PhysicalIndex()) if mibBuilder.loadTexts: entPeerPhysicalIndex.setStatus('current') if mibBuilder.loadTexts: entPeerPhysicalIndex.setDescription("The entity index for the CEF peer entity. Only the entities of 'module' entPhysicalClass are included here.") cefPeerOperState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 6, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("peerDisabled", 1), ("peerUp", 2), ("peerHold", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cefPeerOperState.setStatus('current') if mibBuilder.loadTexts: cefPeerOperState.setDescription('The current CEF operational state of the CEF peer entity. Cef peer entity oper state will be peerDisabled(1) in the following condition: : Cef Peer entity encounters fatal error i.e. resource allocation failure, ipc failure etc : When a reload/delete request is received from the Cef Peer Entity Once the peer entity is up and no fatal error is encountered, then the value of this object will transits to the peerUp(3) state. If the Cef Peer entity is in held stage, then the value of this object will be peerHold(3). Cef peer entity can only transit to peerDisabled(1) state from the peerHold(3) state.') cefPeerNumberOfResets = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 6, 1, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefPeerNumberOfResets.setStatus('current') if mibBuilder.loadTexts: cefPeerNumberOfResets.setDescription('Number of times the session with CEF peer entity has been reset.') cefPeerFIBTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 6, 2), ) if mibBuilder.loadTexts: cefPeerFIBTable.setStatus('current') if mibBuilder.loadTexts: cefPeerFIBTable.setDescription('Entity acting as RP (Routing Processor) keep the CEF FIB states for the line card entities and communicate with the line card entities using XDR. This Table contains the CEF FIB State related to peer entities on the managed device.') cefPeerFIBEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 6, 2, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex"), (0, "CISCO-CEF-MIB", "entPeerPhysicalIndex"), (0, "CISCO-CEF-MIB", "cefFIBIpVersion")) if mibBuilder.loadTexts: cefPeerFIBEntry.setStatus('current') if mibBuilder.loadTexts: cefPeerFIBEntry.setDescription("If CEF is enabled on the Managed device, each entry contains the CEF FIB State associated a CEF peer entity. entPhysicalIndex and entPeerPhysicalIndex are also indexes for this table which represents entities of 'module' entPhysicalClass which are capable of running CEF.") cefPeerFIBOperState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 6, 2, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("peerFIBDown", 1), ("peerFIBUp", 2), ("peerFIBReloadRequest", 3), ("peerFIBReloading", 4), ("peerFIBSynced", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cefPeerFIBOperState.setStatus('current') if mibBuilder.loadTexts: cefPeerFIBOperState.setDescription('The current CEF FIB Operational State for the CEF peer entity. ') cefStatsPrefixLenTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 1), ) if mibBuilder.loadTexts: cefStatsPrefixLenTable.setStatus('current') if mibBuilder.loadTexts: cefStatsPrefixLenTable.setDescription('This table specifies the CEF stats based on the Prefix Length.') cefStatsPrefixLenEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 1, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex"), (0, "CISCO-CEF-MIB", "cefFIBIpVersion"), (0, "CISCO-CEF-MIB", "cefStatsPrefixLen")) if mibBuilder.loadTexts: cefStatsPrefixLenEntry.setStatus('current') if mibBuilder.loadTexts: cefStatsPrefixLenEntry.setDescription("If CEF is enabled on the Managed device and if CEF accounting is set to enable prefix length based accounting (value of cefCfgAccountingMap object in the cefCfgEntry is set to enable 'prefixLength' accounting), each entry contains the traffic statistics for a prefix length. A row may exist for each IP version type (v4 and v6) depending upon the IP version supported on the device. entPhysicalIndex is also an index for this table which represents entities of 'module' entPhysicalClass which are capable of running CEF.") cefStatsPrefixLen = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 1, 1, 1), InetAddressPrefixLength()) if mibBuilder.loadTexts: cefStatsPrefixLen.setStatus('current') if mibBuilder.loadTexts: cefStatsPrefixLen.setDescription('Length in bits of the Destination IP prefix. As 0.0.0.0/0 is a valid prefix, hence 0 is a valid prefix length.') cefStatsPrefixQueries = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 1, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefStatsPrefixQueries.setStatus('current') if mibBuilder.loadTexts: cefStatsPrefixQueries.setDescription('Number of queries received in the FIB database for the specified IP prefix length.') cefStatsPrefixHCQueries = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 1, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefStatsPrefixHCQueries.setStatus('current') if mibBuilder.loadTexts: cefStatsPrefixHCQueries.setDescription('Number of queries received in the FIB database for the specified IP prefix length. This object is a 64-bit version of cefStatsPrefixQueries.') cefStatsPrefixInserts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 1, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefStatsPrefixInserts.setStatus('current') if mibBuilder.loadTexts: cefStatsPrefixInserts.setDescription('Number of insert operations performed to the FIB database for the specified IP prefix length.') cefStatsPrefixHCInserts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 1, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefStatsPrefixHCInserts.setStatus('current') if mibBuilder.loadTexts: cefStatsPrefixHCInserts.setDescription('Number of insert operations performed to the FIB database for the specified IP prefix length. This object is a 64-bit version of cefStatsPrefixInsert.') cefStatsPrefixDeletes = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 1, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefStatsPrefixDeletes.setStatus('current') if mibBuilder.loadTexts: cefStatsPrefixDeletes.setDescription('Number of delete operations performed to the FIB database for the specified IP prefix length.') cefStatsPrefixHCDeletes = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 1, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefStatsPrefixHCDeletes.setStatus('current') if mibBuilder.loadTexts: cefStatsPrefixHCDeletes.setDescription('Number of delete operations performed to the FIB database for the specified IP prefix length. This object is a 64-bit version of cefStatsPrefixDelete.') cefStatsPrefixElements = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 1, 1, 8), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefStatsPrefixElements.setStatus('current') if mibBuilder.loadTexts: cefStatsPrefixElements.setDescription('Total number of elements in the FIB database for the specified IP prefix length.') cefStatsPrefixHCElements = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 1, 1, 9), CounterBasedGauge64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefStatsPrefixHCElements.setStatus('current') if mibBuilder.loadTexts: cefStatsPrefixHCElements.setDescription('Total number of elements in the FIB database for the specified IP prefix length. This object is a 64-bit version of cefStatsPrefixElements.') cefSwitchingStatsTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 2), ) if mibBuilder.loadTexts: cefSwitchingStatsTable.setStatus('current') if mibBuilder.loadTexts: cefSwitchingStatsTable.setDescription('This table specifies the CEF switch stats.') cefSwitchingStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 2, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex"), (0, "CISCO-CEF-MIB", "cefFIBIpVersion"), (0, "CISCO-CEF-MIB", "cefSwitchingIndex")) if mibBuilder.loadTexts: cefSwitchingStatsEntry.setStatus('current') if mibBuilder.loadTexts: cefSwitchingStatsEntry.setDescription("If CEF is enabled on the Managed device, each entry specifies the switching stats. A row may exist for each IP version type (v4 and v6) depending upon the IP version supported on the device. entPhysicalIndex is also an index for this table which represents entities of 'module' entPhysicalClass which are capable of running CEF.") cefSwitchingIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))) if mibBuilder.loadTexts: cefSwitchingIndex.setStatus('current') if mibBuilder.loadTexts: cefSwitchingIndex.setDescription('The locally arbitrary, but unique identifier associated with this switching stats entry.') cefSwitchingPath = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 2, 1, 2), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: cefSwitchingPath.setStatus('current') if mibBuilder.loadTexts: cefSwitchingPath.setDescription('Switch path where the feature was executed. Available switch paths are platform-dependent. Following are the examples of switching paths: RIB : switching with CEF assistance Low-end switching (LES) : CEF switch path PAS : CEF turbo switch path. ') cefSwitchingDrop = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 2, 1, 3), Counter32()).setUnits('packets').setMaxAccess("readonly") if mibBuilder.loadTexts: cefSwitchingDrop.setStatus('current') if mibBuilder.loadTexts: cefSwitchingDrop.setDescription('Number of packets dropped by CEF.') cefSwitchingHCDrop = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 2, 1, 4), Counter64()).setUnits('packets').setMaxAccess("readonly") if mibBuilder.loadTexts: cefSwitchingHCDrop.setStatus('current') if mibBuilder.loadTexts: cefSwitchingHCDrop.setDescription('Number of packets dropped by CEF. This object is a 64-bit version of cefSwitchingDrop.') cefSwitchingPunt = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 2, 1, 5), Counter32()).setUnits('packets').setMaxAccess("readonly") if mibBuilder.loadTexts: cefSwitchingPunt.setStatus('current') if mibBuilder.loadTexts: cefSwitchingPunt.setDescription('Number of packets that could not be switched in the normal path and were punted to the next-fastest switching vector.') cefSwitchingHCPunt = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 2, 1, 6), Counter64()).setUnits('packets').setMaxAccess("readonly") if mibBuilder.loadTexts: cefSwitchingHCPunt.setStatus('current') if mibBuilder.loadTexts: cefSwitchingHCPunt.setDescription('Number of packets that could not be switched in the normal path and were punted to the next-fastest switching vector. This object is a 64-bit version of cefSwitchingPunt.') cefSwitchingPunt2Host = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 2, 1, 7), Counter32()).setUnits('packets').setMaxAccess("readonly") if mibBuilder.loadTexts: cefSwitchingPunt2Host.setStatus('current') if mibBuilder.loadTexts: cefSwitchingPunt2Host.setDescription('Number of packets that could not be switched in the normal path and were punted to the host (process switching path). For most of the switching paths, the value of this object may be similar to cefSwitchingPunt.') cefSwitchingHCPunt2Host = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 2, 1, 8), Counter64()).setUnits('packets').setMaxAccess("readonly") if mibBuilder.loadTexts: cefSwitchingHCPunt2Host.setStatus('current') if mibBuilder.loadTexts: cefSwitchingHCPunt2Host.setDescription('Number of packets that could not be switched in the normal path and were punted to the host (process switching path). For most of the switching paths, the value of this object may be similar to cefSwitchingPunt. This object is a 64-bit version of cefSwitchingPunt2Host.') cefCCGlobalTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 1), ) if mibBuilder.loadTexts: cefCCGlobalTable.setStatus('current') if mibBuilder.loadTexts: cefCCGlobalTable.setDescription('This table contains CEF consistency checker (CC) global parameters for the managed device.') cefCCGlobalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 1, 1), ).setIndexNames((0, "CISCO-CEF-MIB", "cefFIBIpVersion")) if mibBuilder.loadTexts: cefCCGlobalEntry.setStatus('current') if mibBuilder.loadTexts: cefCCGlobalEntry.setDescription('If the managed device supports CEF, each entry contains the global consistency checker parameter for the managed device. A row may exist for each IP version type (v4 and v6) depending upon the IP version supported on the device.') cefCCGlobalAutoRepairEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 1, 1, 1), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cefCCGlobalAutoRepairEnabled.setStatus('current') if mibBuilder.loadTexts: cefCCGlobalAutoRepairEnabled.setDescription('Once an inconsistency has been detected, CEF has the ability to repair the problem. This object indicates the status of auto-repair function for the consistency checkers.') cefCCGlobalAutoRepairDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 1, 1, 2), Unsigned32()).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: cefCCGlobalAutoRepairDelay.setStatus('current') if mibBuilder.loadTexts: cefCCGlobalAutoRepairDelay.setDescription("Indiactes how long the consistency checker waits to fix an inconsistency. The value of this object has no effect when the value of object cefCCGlobalAutoRepairEnabled is 'false'.") cefCCGlobalAutoRepairHoldDown = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 1, 1, 3), Unsigned32()).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: cefCCGlobalAutoRepairHoldDown.setStatus('current') if mibBuilder.loadTexts: cefCCGlobalAutoRepairHoldDown.setDescription("Indicates how long the consistency checker waits to re-enable auto-repair after auto-repair runs. The value of this object has no effect when the value of object cefCCGlobalAutoRepairEnabled is 'false'.") cefCCGlobalErrorMsgEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 1, 1, 4), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cefCCGlobalErrorMsgEnabled.setStatus('current') if mibBuilder.loadTexts: cefCCGlobalErrorMsgEnabled.setDescription('Enables the consistency checker to generate an error message when it detects an inconsistency.') cefCCGlobalFullScanAction = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 1, 1, 5), CefCCAction().clone('ccActionNone')).setMaxAccess("readwrite") if mibBuilder.loadTexts: cefCCGlobalFullScanAction.setStatus('current') if mibBuilder.loadTexts: cefCCGlobalFullScanAction.setDescription("Setting the value of this object to ccActionStart(1) will start the full scan consistency checkers. The Management station should poll the cefCCGlobalFullScanStatus object to get the state of full-scan operation. Once the full-scan operation completes (value of cefCCGlobalFullScanStatus object is ccStatusDone(3)), the Management station should retrieve the values of the related stats object from the cefCCTypeTable. Setting the value of this object to ccActionAbort(2) will abort the full-scan operation. The value of this object can't be set to ccActionStart(1), if the value of object cefCCGlobalFullScanStatus is ccStatusRunning(2). The value of this object will be set to cefActionNone(1) when the full scan consistency checkers have never been activated. A Management Station cannot set the value of this object to cefActionNone(1).") cefCCGlobalFullScanStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 1, 1, 6), CefCCStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefCCGlobalFullScanStatus.setStatus('current') if mibBuilder.loadTexts: cefCCGlobalFullScanStatus.setDescription('Indicates the status of the full scan consistency checker request.') cefCCTypeTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 2), ) if mibBuilder.loadTexts: cefCCTypeTable.setStatus('current') if mibBuilder.loadTexts: cefCCTypeTable.setDescription('This table contains CEF consistency checker types specific parameters on the managed device. All detected inconsistency are signaled to the Management Station via cefInconsistencyDetection notification. ') cefCCTypeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 2, 1), ).setIndexNames((0, "CISCO-CEF-MIB", "cefFIBIpVersion"), (0, "CISCO-CEF-MIB", "cefCCType")) if mibBuilder.loadTexts: cefCCTypeEntry.setStatus('current') if mibBuilder.loadTexts: cefCCTypeEntry.setDescription('If the managed device supports CEF, each entry contains the consistency checker statistics for a consistency checker type. A row may exist for each IP version type (v4 and v6) depending upon the IP version supported on the device.') cefCCType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 2, 1, 1), CefCCType()) if mibBuilder.loadTexts: cefCCType.setStatus('current') if mibBuilder.loadTexts: cefCCType.setDescription('Type of the consistency checker.') cefCCEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 2, 1, 2), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cefCCEnabled.setStatus('current') if mibBuilder.loadTexts: cefCCEnabled.setDescription("Enables the passive consistency checker. Passive consistency checkers are disabled by default. Full-scan consistency checkers are always enabled. An attempt to set this object to 'false' for an active consistency checker will result in 'wrongValue' error.") cefCCCount = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 2, 1, 3), Unsigned32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cefCCCount.setStatus('current') if mibBuilder.loadTexts: cefCCCount.setDescription('The maximum number of prefixes to check per scan. The default value for this object depends upon the consistency checker type. The value of this object will be irrelevant for some of the consistency checkers and will be set to 0. A Management Station cannot set the value of this object to 0.') cefCCPeriod = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 2, 1, 4), Unsigned32()).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: cefCCPeriod.setStatus('current') if mibBuilder.loadTexts: cefCCPeriod.setDescription('The period between scans for the consistency checker.') cefCCQueriesSent = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 2, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefCCQueriesSent.setStatus('current') if mibBuilder.loadTexts: cefCCQueriesSent.setDescription('Number of prefix consistency queries sent to CEF forwarding databases by this consistency checker.') cefCCQueriesIgnored = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 2, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefCCQueriesIgnored.setStatus('current') if mibBuilder.loadTexts: cefCCQueriesIgnored.setDescription('Number of prefix consistency queries for which the consistency checks were not performed by this consistency checker. This may be because of some internal error or resource failure.') cefCCQueriesChecked = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 2, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefCCQueriesChecked.setStatus('current') if mibBuilder.loadTexts: cefCCQueriesChecked.setDescription('Number of prefix consistency queries processed by this consistency checker.') cefCCQueriesIterated = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 2, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefCCQueriesIterated.setStatus('current') if mibBuilder.loadTexts: cefCCQueriesIterated.setDescription('Number of prefix consistency queries iterated back to the master database by this consistency checker.') cefInconsistencyRecordTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 3), ) if mibBuilder.loadTexts: cefInconsistencyRecordTable.setStatus('current') if mibBuilder.loadTexts: cefInconsistencyRecordTable.setDescription('This table contains CEF inconsistency records.') cefInconsistencyRecordEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 3, 1), ).setIndexNames((0, "CISCO-CEF-MIB", "cefFIBIpVersion"), (0, "CISCO-CEF-MIB", "cefInconsistencyRecId")) if mibBuilder.loadTexts: cefInconsistencyRecordEntry.setStatus('current') if mibBuilder.loadTexts: cefInconsistencyRecordEntry.setDescription('If the managed device supports CEF, each entry contains the inconsistency record.') cefInconsistencyRecId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))) if mibBuilder.loadTexts: cefInconsistencyRecId.setStatus('current') if mibBuilder.loadTexts: cefInconsistencyRecId.setDescription('The locally arbitrary, but unique identifier associated with this inconsistency record entry.') cefInconsistencyPrefixType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 3, 1, 2), InetAddressType()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefInconsistencyPrefixType.setStatus('current') if mibBuilder.loadTexts: cefInconsistencyPrefixType.setDescription('The network prefix type associated with this inconsistency record.') cefInconsistencyPrefixAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 3, 1, 3), InetAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefInconsistencyPrefixAddr.setStatus('current') if mibBuilder.loadTexts: cefInconsistencyPrefixAddr.setDescription('The network prefix address associated with this inconsistency record. The type of this address is determined by the value of the cefInconsistencyPrefixType object.') cefInconsistencyPrefixLen = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 3, 1, 4), InetAddressPrefixLength()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefInconsistencyPrefixLen.setStatus('current') if mibBuilder.loadTexts: cefInconsistencyPrefixLen.setDescription('Length in bits of the inconsistency address prefix.') cefInconsistencyVrfName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 3, 1, 5), MplsVpnId()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefInconsistencyVrfName.setStatus('current') if mibBuilder.loadTexts: cefInconsistencyVrfName.setDescription('Vrf name associated with this inconsistency record.') cefInconsistencyCCType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 3, 1, 6), CefCCType()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefInconsistencyCCType.setStatus('current') if mibBuilder.loadTexts: cefInconsistencyCCType.setDescription('The type of consistency checker who generated this inconsistency record.') cefInconsistencyEntity = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 3, 1, 7), EntPhysicalIndexOrZero()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefInconsistencyEntity.setStatus('current') if mibBuilder.loadTexts: cefInconsistencyEntity.setDescription('The entity for which this inconsistency record was generated. The value of this object will be irrelevant and will be set to 0 when the inconsisency record is applicable for all the entities.') cefInconsistencyReason = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 3, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("missing", 1), ("checksumErr", 2), ("unknown", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cefInconsistencyReason.setStatus('current') if mibBuilder.loadTexts: cefInconsistencyReason.setDescription('The reason for generating this inconsistency record. missing(1): the prefix is missing checksumErr(2): checksum error was found unknown(3): reason is unknown ') entLastInconsistencyDetectTime = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 4), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: entLastInconsistencyDetectTime.setStatus('current') if mibBuilder.loadTexts: entLastInconsistencyDetectTime.setDescription('The value of sysUpTime at the time an inconsistency is detecetd.') cefInconsistencyReset = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 5), CefCCAction().clone('ccActionNone')).setMaxAccess("readwrite") if mibBuilder.loadTexts: cefInconsistencyReset.setStatus('current') if mibBuilder.loadTexts: cefInconsistencyReset.setDescription("Setting the value of this object to ccActionStart(1) will reset all the active consistency checkers. The Management station should poll the cefInconsistencyResetStatus object to get the state of inconsistency reset operation. This operation once started, cannot be aborted. Hence, the value of this object cannot be set to ccActionAbort(2). The value of this object can't be set to ccActionStart(1), if the value of object cefInconsistencyResetStatus is ccStatusRunning(2). ") cefInconsistencyResetStatus = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 6), CefCCStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: cefInconsistencyResetStatus.setStatus('current') if mibBuilder.loadTexts: cefInconsistencyResetStatus.setDescription('Indicates the status of the consistency reset request.') cefResourceFailureNotifEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 9, 1), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cefResourceFailureNotifEnable.setStatus('current') if mibBuilder.loadTexts: cefResourceFailureNotifEnable.setDescription('Indicates whether or not a notification should be generated on the detection of CEF resource Failure.') cefPeerStateChangeNotifEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 9, 2), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cefPeerStateChangeNotifEnable.setStatus('current') if mibBuilder.loadTexts: cefPeerStateChangeNotifEnable.setDescription('Indicates whether or not a notification should be generated on the detection of CEF peer state change.') cefPeerFIBStateChangeNotifEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 9, 3), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cefPeerFIBStateChangeNotifEnable.setStatus('current') if mibBuilder.loadTexts: cefPeerFIBStateChangeNotifEnable.setDescription('Indicates whether or not a notification should be generated on the detection of CEF FIB peer state change.') cefNotifThrottlingInterval = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 9, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 3600), ))).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: cefNotifThrottlingInterval.setStatus('current') if mibBuilder.loadTexts: cefNotifThrottlingInterval.setDescription("This object controls the generation of the cefInconsistencyDetection notification. If this object has a value of zero, then the throttle control is disabled. If this object has a non-zero value, then the agent must not generate more than one cefInconsistencyDetection 'notification-event' in the indicated period, where a 'notification-event' is the transmission of a single trap or inform PDU to a list of notification destinations. If additional inconsistency is detected within the throttling period, then notification-events for these inconsistencies should be suppressed by the agent until the current throttling period expires. At the end of a throttling period, one notification-event should be generated if any inconsistency was detected since the start of the throttling period. In such a case, another throttling period is started right away. An NMS should periodically poll cefInconsistencyRecordTable to detect any missed cefInconsistencyDetection notification-events, e.g., due to throttling or transmission loss. If cefNotifThrottlingInterval notification generation is enabled, the suggested default throttling period is 60 seconds, but generation of the cefInconsistencyDetection notification should be disabled by default. If the agent is capable of storing non-volatile configuration, then the value of this object must be restored after a re-initialization of the management system. The actual transmission of notifications is controlled via the MIB modules in RFC 3413.") cefInconsistencyNotifEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 9, 5), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cefInconsistencyNotifEnable.setStatus('current') if mibBuilder.loadTexts: cefInconsistencyNotifEnable.setDescription('Indicates whether cefInconsistencyDetection notification should be generated for this managed device.') cefResourceFailure = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 492, 0, 1)).setObjects(("CISCO-CEF-MIB", "cefResourceFailureReason")) if mibBuilder.loadTexts: cefResourceFailure.setStatus('current') if mibBuilder.loadTexts: cefResourceFailure.setDescription('A cefResourceFailure notification is generated when CEF resource failure on the managed entity is detected. The reason for this failure is indicated by cefResourcefFailureReason.') cefPeerStateChange = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 492, 0, 2)).setObjects(("CISCO-CEF-MIB", "cefPeerOperState")) if mibBuilder.loadTexts: cefPeerStateChange.setStatus('current') if mibBuilder.loadTexts: cefPeerStateChange.setDescription('A cefPeerStateChange notification is generated if change in cefPeerOperState is detected for the peer entity.') cefPeerFIBStateChange = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 492, 0, 3)).setObjects(("CISCO-CEF-MIB", "cefPeerFIBOperState")) if mibBuilder.loadTexts: cefPeerFIBStateChange.setStatus('current') if mibBuilder.loadTexts: cefPeerFIBStateChange.setDescription('A cefPeerFIBStateChange notification is generated if change in cefPeerFIBOperState is detected for the peer entity.') cefInconsistencyDetection = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 492, 0, 4)).setObjects(("CISCO-CEF-MIB", "entLastInconsistencyDetectTime")) if mibBuilder.loadTexts: cefInconsistencyDetection.setStatus('current') if mibBuilder.loadTexts: cefInconsistencyDetection.setDescription("A cefInconsistencyDetection notification is generated when CEF consistency checkers detects an inconsistent prefix in one of the CEF forwarding databases. Note that the generation of cefInconsistencyDetection notifications is throttled by the agent, as specified by the 'cefNotifThrottlingInterval' object.") cefMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 492, 2, 1)) cefMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 492, 2, 2)) cefMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 492, 2, 2, 1)).setObjects(("CISCO-CEF-MIB", "cefGroup"), ("CISCO-CEF-MIB", "cefNotifCntlGroup"), ("CISCO-CEF-MIB", "cefNotificationGroup"), ("CISCO-CEF-MIB", "cefDistributedGroup"), ("CISCO-CEF-MIB", "cefHCStatsGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cefMIBCompliance = cefMIBCompliance.setStatus('current') if mibBuilder.loadTexts: cefMIBCompliance.setDescription('The compliance statement for SNMP Agents which implement this MIB.') cefGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 492, 2, 1, 1)).setObjects(("CISCO-CEF-MIB", "cefFIBSummaryFwdPrefixes"), ("CISCO-CEF-MIB", "cefPrefixForwardingInfo"), ("CISCO-CEF-MIB", "cefPrefixPkts"), ("CISCO-CEF-MIB", "cefPrefixBytes"), ("CISCO-CEF-MIB", "cefPrefixInternalNRPkts"), ("CISCO-CEF-MIB", "cefPrefixInternalNRBytes"), ("CISCO-CEF-MIB", "cefPrefixExternalNRPkts"), ("CISCO-CEF-MIB", "cefPrefixExternalNRBytes"), ("CISCO-CEF-MIB", "cefLMPrefixSpinLock"), ("CISCO-CEF-MIB", "cefLMPrefixState"), ("CISCO-CEF-MIB", "cefLMPrefixAddr"), ("CISCO-CEF-MIB", "cefLMPrefixLen"), ("CISCO-CEF-MIB", "cefLMPrefixRowStatus"), ("CISCO-CEF-MIB", "cefPathType"), ("CISCO-CEF-MIB", "cefPathInterface"), ("CISCO-CEF-MIB", "cefPathNextHopAddr"), ("CISCO-CEF-MIB", "cefPathRecurseVrfName"), ("CISCO-CEF-MIB", "cefAdjSummaryComplete"), ("CISCO-CEF-MIB", "cefAdjSummaryIncomplete"), ("CISCO-CEF-MIB", "cefAdjSummaryFixup"), ("CISCO-CEF-MIB", "cefAdjSummaryRedirect"), ("CISCO-CEF-MIB", "cefAdjSource"), ("CISCO-CEF-MIB", "cefAdjEncap"), ("CISCO-CEF-MIB", "cefAdjFixup"), ("CISCO-CEF-MIB", "cefAdjMTU"), ("CISCO-CEF-MIB", "cefAdjForwardingInfo"), ("CISCO-CEF-MIB", "cefAdjPkts"), ("CISCO-CEF-MIB", "cefAdjBytes"), ("CISCO-CEF-MIB", "cefFESelectionSpecial"), ("CISCO-CEF-MIB", "cefFESelectionLabels"), ("CISCO-CEF-MIB", "cefFESelectionAdjLinkType"), ("CISCO-CEF-MIB", "cefFESelectionAdjInterface"), ("CISCO-CEF-MIB", "cefFESelectionAdjNextHopAddrType"), ("CISCO-CEF-MIB", "cefFESelectionAdjNextHopAddr"), ("CISCO-CEF-MIB", "cefFESelectionAdjConnId"), ("CISCO-CEF-MIB", "cefFESelectionVrfName"), ("CISCO-CEF-MIB", "cefFESelectionWeight"), ("CISCO-CEF-MIB", "cefCfgAdminState"), ("CISCO-CEF-MIB", "cefCfgOperState"), ("CISCO-CEF-MIB", "cefCfgAccountingMap"), ("CISCO-CEF-MIB", "cefCfgLoadSharingAlgorithm"), ("CISCO-CEF-MIB", "cefCfgLoadSharingID"), ("CISCO-CEF-MIB", "cefCfgTrafficStatsLoadInterval"), ("CISCO-CEF-MIB", "cefCfgTrafficStatsUpdateRate"), ("CISCO-CEF-MIB", "cefResourceMemoryUsed"), ("CISCO-CEF-MIB", "cefResourceFailureReason"), ("CISCO-CEF-MIB", "cefIntSwitchingState"), ("CISCO-CEF-MIB", "cefIntLoadSharing"), ("CISCO-CEF-MIB", "cefIntNonrecursiveAccouting"), ("CISCO-CEF-MIB", "cefStatsPrefixQueries"), ("CISCO-CEF-MIB", "cefStatsPrefixInserts"), ("CISCO-CEF-MIB", "cefStatsPrefixDeletes"), ("CISCO-CEF-MIB", "cefStatsPrefixElements"), ("CISCO-CEF-MIB", "cefSwitchingPath"), ("CISCO-CEF-MIB", "cefSwitchingDrop"), ("CISCO-CEF-MIB", "cefSwitchingPunt"), ("CISCO-CEF-MIB", "cefSwitchingPunt2Host")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cefGroup = cefGroup.setStatus('current') if mibBuilder.loadTexts: cefGroup.setDescription('This group consists of all the managed objects which are applicable to CEF irrespective of the value of object cefDistributionOperState.') cefDistributedGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 492, 2, 1, 2)).setObjects(("CISCO-CEF-MIB", "cefCfgDistributionAdminState"), ("CISCO-CEF-MIB", "cefCfgDistributionOperState"), ("CISCO-CEF-MIB", "cefPeerOperState"), ("CISCO-CEF-MIB", "cefPeerNumberOfResets"), ("CISCO-CEF-MIB", "cefPeerFIBOperState"), ("CISCO-CEF-MIB", "cefCCGlobalAutoRepairEnabled"), ("CISCO-CEF-MIB", "cefCCGlobalAutoRepairDelay"), ("CISCO-CEF-MIB", "cefCCGlobalAutoRepairHoldDown"), ("CISCO-CEF-MIB", "cefCCGlobalErrorMsgEnabled"), ("CISCO-CEF-MIB", "cefCCGlobalFullScanStatus"), ("CISCO-CEF-MIB", "cefCCGlobalFullScanAction"), ("CISCO-CEF-MIB", "cefCCEnabled"), ("CISCO-CEF-MIB", "cefCCCount"), ("CISCO-CEF-MIB", "cefCCPeriod"), ("CISCO-CEF-MIB", "cefCCQueriesSent"), ("CISCO-CEF-MIB", "cefCCQueriesIgnored"), ("CISCO-CEF-MIB", "cefCCQueriesChecked"), ("CISCO-CEF-MIB", "cefCCQueriesIterated"), ("CISCO-CEF-MIB", "entLastInconsistencyDetectTime"), ("CISCO-CEF-MIB", "cefInconsistencyPrefixType"), ("CISCO-CEF-MIB", "cefInconsistencyPrefixAddr"), ("CISCO-CEF-MIB", "cefInconsistencyPrefixLen"), ("CISCO-CEF-MIB", "cefInconsistencyVrfName"), ("CISCO-CEF-MIB", "cefInconsistencyCCType"), ("CISCO-CEF-MIB", "cefInconsistencyEntity"), ("CISCO-CEF-MIB", "cefInconsistencyReason"), ("CISCO-CEF-MIB", "cefInconsistencyReset"), ("CISCO-CEF-MIB", "cefInconsistencyResetStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cefDistributedGroup = cefDistributedGroup.setStatus('current') if mibBuilder.loadTexts: cefDistributedGroup.setDescription("This group consists of all the Managed objects which are only applicable to CEF is the value of object cefDistributionOperState is 'up'.") cefHCStatsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 492, 2, 1, 3)).setObjects(("CISCO-CEF-MIB", "cefPrefixHCPkts"), ("CISCO-CEF-MIB", "cefPrefixHCBytes"), ("CISCO-CEF-MIB", "cefPrefixInternalNRHCPkts"), ("CISCO-CEF-MIB", "cefPrefixInternalNRHCBytes"), ("CISCO-CEF-MIB", "cefPrefixExternalNRHCPkts"), ("CISCO-CEF-MIB", "cefPrefixExternalNRHCBytes"), ("CISCO-CEF-MIB", "cefAdjHCPkts"), ("CISCO-CEF-MIB", "cefAdjHCBytes"), ("CISCO-CEF-MIB", "cefStatsPrefixHCQueries"), ("CISCO-CEF-MIB", "cefStatsPrefixHCInserts"), ("CISCO-CEF-MIB", "cefStatsPrefixHCDeletes"), ("CISCO-CEF-MIB", "cefStatsPrefixHCElements"), ("CISCO-CEF-MIB", "cefSwitchingHCDrop"), ("CISCO-CEF-MIB", "cefSwitchingHCPunt"), ("CISCO-CEF-MIB", "cefSwitchingHCPunt2Host")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cefHCStatsGroup = cefHCStatsGroup.setStatus('current') if mibBuilder.loadTexts: cefHCStatsGroup.setDescription('This group consists of all the 64-bit counter objects which are applicable to CEF irrespective of the value of object cefDistributionOperState.') cefNotifCntlGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 492, 2, 1, 5)).setObjects(("CISCO-CEF-MIB", "cefResourceFailureNotifEnable"), ("CISCO-CEF-MIB", "cefPeerStateChangeNotifEnable"), ("CISCO-CEF-MIB", "cefPeerFIBStateChangeNotifEnable"), ("CISCO-CEF-MIB", "cefNotifThrottlingInterval"), ("CISCO-CEF-MIB", "cefInconsistencyNotifEnable")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cefNotifCntlGroup = cefNotifCntlGroup.setStatus('current') if mibBuilder.loadTexts: cefNotifCntlGroup.setDescription('This group of objects controls the sending of CEF Notifications.') cefNotificationGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 9, 9, 492, 2, 1, 6)).setObjects(("CISCO-CEF-MIB", "cefResourceFailure"), ("CISCO-CEF-MIB", "cefPeerStateChange"), ("CISCO-CEF-MIB", "cefPeerFIBStateChange"), ("CISCO-CEF-MIB", "cefInconsistencyDetection")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cefNotificationGroup = cefNotificationGroup.setStatus('current') if mibBuilder.loadTexts: cefNotificationGroup.setDescription('This group contains the notifications for the CEF MIB.') mibBuilder.exportSymbols("CISCO-CEF-MIB", ciscoCefMIBObjects=ciscoCefMIBObjects, cefInconsistencyDetection=cefInconsistencyDetection, cefAdjConnId=cefAdjConnId, cefCCQueriesIgnored=cefCCQueriesIgnored, cefFESelectionAdjConnId=cefFESelectionAdjConnId, cefFESelectionEntry=cefFESelectionEntry, cefLMPrefixLen=cefLMPrefixLen, cefResourceMemoryUsed=cefResourceMemoryUsed, cefFIBSummaryEntry=cefFIBSummaryEntry, cefCfgTable=cefCfgTable, cefCfgTrafficStatsLoadInterval=cefCfgTrafficStatsLoadInterval, ciscoCefMIBNotifs=ciscoCefMIBNotifs, cefFIBSummaryTable=cefFIBSummaryTable, cefCCCount=cefCCCount, cefInconsistencyRecordTable=cefInconsistencyRecordTable, cefCCTypeEntry=cefCCTypeEntry, cefPeerStateChange=cefPeerStateChange, cefLMPrefixDestAddrType=cefLMPrefixDestAddrType, cefPathType=cefPathType, cefAdjSource=cefAdjSource, cefSwitchingPath=cefSwitchingPath, cefAdjTable=cefAdjTable, cefCCPeriod=cefCCPeriod, cefFESelectionLabels=cefFESelectionLabels, cefStatsPrefixInserts=cefStatsPrefixInserts, cefAdjBytes=cefAdjBytes, cefIntLoadSharing=cefIntLoadSharing, cefStatsPrefixHCDeletes=cefStatsPrefixHCDeletes, cefLMPrefixTable=cefLMPrefixTable, cefSwitchingDrop=cefSwitchingDrop, entLastInconsistencyDetectTime=entLastInconsistencyDetectTime, cefInconsistencyNotifEnable=cefInconsistencyNotifEnable, cefCfgAdminState=cefCfgAdminState, cefCCGlobalAutoRepairHoldDown=cefCCGlobalAutoRepairHoldDown, cefResourceFailureNotifEnable=cefResourceFailureNotifEnable, cefFESelectionWeight=cefFESelectionWeight, cefPrefixAddr=cefPrefixAddr, cefPrefixLen=cefPrefixLen, cefCfgLoadSharingAlgorithm=cefCfgLoadSharingAlgorithm, cefInconsistencyPrefixAddr=cefInconsistencyPrefixAddr, cefSwitchingStatsEntry=cefSwitchingStatsEntry, cefPrefixType=cefPrefixType, cefPrefixInternalNRPkts=cefPrefixInternalNRPkts, cefAdjSummaryLinkType=cefAdjSummaryLinkType, cefAdjMTU=cefAdjMTU, cefPrefixExternalNRHCPkts=cefPrefixExternalNRHCPkts, cefAdjFixup=cefAdjFixup, cefFESelectionSpecial=cefFESelectionSpecial, cefFESelectionAdjLinkType=cefFESelectionAdjLinkType, cefPathRecurseVrfName=cefPathRecurseVrfName, cefNotificationGroup=cefNotificationGroup, cefCfgEntry=cefCfgEntry, cefCCQueriesSent=cefCCQueriesSent, cefPathNextHopAddr=cefPathNextHopAddr, cefLMPrefixEntry=cefLMPrefixEntry, cefPrefixEntry=cefPrefixEntry, cefPrefixInternalNRHCPkts=cefPrefixInternalNRHCPkts, cefFESelectionName=cefFESelectionName, cefInconsistencyVrfName=cefInconsistencyVrfName, cefLMPrefixRowStatus=cefLMPrefixRowStatus, cefCCType=cefCCType, cefFESelectionAdjNextHopAddrType=cefFESelectionAdjNextHopAddrType, cefMIBCompliance=cefMIBCompliance, cefPathId=cefPathId, cefPrefixHCBytes=cefPrefixHCBytes, cefSwitchingHCPunt2Host=cefSwitchingHCPunt2Host, cefPeerFIBEntry=cefPeerFIBEntry, cefInconsistencyReset=cefInconsistencyReset, cefStats=cefStats, cefResourceFailureReason=cefResourceFailureReason, cefStatsPrefixLenTable=cefStatsPrefixLenTable, cefPeer=cefPeer, cefCCEnabled=cefCCEnabled, cefAdjNextHopAddr=cefAdjNextHopAddr, cefStatsPrefixElements=cefStatsPrefixElements, cefCCGlobalErrorMsgEnabled=cefCCGlobalErrorMsgEnabled, cefFE=cefFE, cefAdjNextHopAddrType=cefAdjNextHopAddrType, cefInconsistencyResetStatus=cefInconsistencyResetStatus, cefCCQueriesChecked=cefCCQueriesChecked, cefCCGlobalAutoRepairDelay=cefCCGlobalAutoRepairDelay, cefAdjSummaryIncomplete=cefAdjSummaryIncomplete, cefAdjSummary=cefAdjSummary, cefResourceTable=cefResourceTable, cefNotifCntl=cefNotifCntl, cefFIBSummaryFwdPrefixes=cefFIBSummaryFwdPrefixes, cefPeerTable=cefPeerTable, cefGroup=cefGroup, cefAdjSummaryComplete=cefAdjSummaryComplete, cefFESelectionTable=cefFESelectionTable, cefCfgDistributionOperState=cefCfgDistributionOperState, cefInconsistencyRecordEntry=cefInconsistencyRecordEntry, cefPathTable=cefPathTable, cefPeerNumberOfResets=cefPeerNumberOfResets, cefCCGlobalFullScanAction=cefCCGlobalFullScanAction, cefFESelectionId=cefFESelectionId, cefPrefixHCPkts=cefPrefixHCPkts, cefSwitchingPunt=cefSwitchingPunt, cefIntTable=cefIntTable, cefCCGlobalFullScanStatus=cefCCGlobalFullScanStatus, cefSwitchingIndex=cefSwitchingIndex, cefSwitchingHCDrop=cefSwitchingHCDrop, cefGlobal=cefGlobal, cefCCGlobalTable=cefCCGlobalTable, cefInconsistencyPrefixType=cefInconsistencyPrefixType, cefDistributedGroup=cefDistributedGroup, cefResourceFailure=cefResourceFailure, cefAdjHCBytes=cefAdjHCBytes, cefAdjSummaryEntry=cefAdjSummaryEntry, cefAdjSummaryRedirect=cefAdjSummaryRedirect, cefPrefixBytes=cefPrefixBytes, cefInconsistencyPrefixLen=cefInconsistencyPrefixLen, cefHCStatsGroup=cefHCStatsGroup, cefFIBSummary=cefFIBSummary, cefInconsistencyCCType=cefInconsistencyCCType, cefCfgOperState=cefCfgOperState, cefIntEntry=cefIntEntry, cefPrefixForwardingInfo=cefPrefixForwardingInfo, cefInconsistencyEntity=cefInconsistencyEntity, cefCCTypeTable=cefCCTypeTable, cefCC=cefCC, cefStatsPrefixDeletes=cefStatsPrefixDeletes, cefPeerOperState=cefPeerOperState, cefStatsPrefixLenEntry=cefStatsPrefixLenEntry, cefPrefixExternalNRBytes=cefPrefixExternalNRBytes, entPeerPhysicalIndex=entPeerPhysicalIndex, cefPrefixInternalNRHCBytes=cefPrefixInternalNRHCBytes, cefCfgTrafficStatsUpdateRate=cefCfgTrafficStatsUpdateRate, ciscoCefMIB=ciscoCefMIB, cefPrefixExternalNRPkts=cefPrefixExternalNRPkts, cefAdj=cefAdj, cefAdjSummaryFixup=cefAdjSummaryFixup, cefStatsPrefixQueries=cefStatsPrefixQueries, cefMIBCompliances=cefMIBCompliances, cefFESelectionVrfName=cefFESelectionVrfName, cefLMPrefixSpinLock=cefLMPrefixSpinLock, cefPrefixTable=cefPrefixTable, cefFIB=cefFIB, cefPrefixInternalNRBytes=cefPrefixInternalNRBytes, cefLMPrefixState=cefLMPrefixState, PYSNMP_MODULE_ID=ciscoCefMIB, cefCfgAccountingMap=cefCfgAccountingMap, cefSwitchingStatsTable=cefSwitchingStatsTable, cefSwitchingPunt2Host=cefSwitchingPunt2Host, cefPrefixExternalNRHCBytes=cefPrefixExternalNRHCBytes, cefFIBIpVersion=cefFIBIpVersion, cefStatsPrefixHCQueries=cefStatsPrefixHCQueries, cefIntNonrecursiveAccouting=cefIntNonrecursiveAccouting, cefFESelectionAdjInterface=cefFESelectionAdjInterface, cefCCGlobalAutoRepairEnabled=cefCCGlobalAutoRepairEnabled, cefPathEntry=cefPathEntry, cefPathInterface=cefPathInterface, cefCCQueriesIterated=cefCCQueriesIterated, cefAdjForwardingInfo=cefAdjForwardingInfo, cefResourceEntry=cefResourceEntry, cefStatsPrefixLen=cefStatsPrefixLen, cefAdjSummaryTable=cefAdjSummaryTable, cefStatsPrefixHCElements=cefStatsPrefixHCElements, cefPeerFIBStateChange=cefPeerFIBStateChange, cefInconsistencyRecId=cefInconsistencyRecId, cefPeerStateChangeNotifEnable=cefPeerStateChangeNotifEnable, cefLMPrefixAddr=cefLMPrefixAddr, cefAdjEncap=cefAdjEncap, cefAdjEntry=cefAdjEntry, cefPeerEntry=cefPeerEntry, cefNotifCntlGroup=cefNotifCntlGroup, cefPeerFIBTable=cefPeerFIBTable, cefAdjHCPkts=cefAdjHCPkts, cefInterface=cefInterface, cefIntSwitchingState=cefIntSwitchingState, cefNotifThrottlingInterval=cefNotifThrottlingInterval, cefFESelectionAdjNextHopAddr=cefFESelectionAdjNextHopAddr, cefInconsistencyReason=cefInconsistencyReason, cefLMPrefixDestAddr=cefLMPrefixDestAddr, cefCCGlobalEntry=cefCCGlobalEntry, cefPeerFIBStateChangeNotifEnable=cefPeerFIBStateChangeNotifEnable, cefMIBGroups=cefMIBGroups, cefPeerFIBOperState=cefPeerFIBOperState, ciscoCefMIBConform=ciscoCefMIBConform, cefPrefixPkts=cefPrefixPkts, cefCfgLoadSharingID=cefCfgLoadSharingID, cefCfgDistributionAdminState=cefCfgDistributionAdminState, cefAdjPkts=cefAdjPkts, cefStatsPrefixHCInserts=cefStatsPrefixHCInserts, cefSwitchingHCPunt=cefSwitchingHCPunt)
(octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, value_range_constraint, constraints_intersection, value_size_constraint, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ValueRangeConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint', 'SingleValueConstraint') (cef_admin_status, cef_cc_action, cef_forwarding_element_special_type, cef_adjacency_source, cef_path_type, cef_failure_reason, cef_oper_status, cef_ip_version, cef_adj_link_type, cef_cc_status, cef_mpls_label_list, cef_prefix_search_state, cef_cc_type) = mibBuilder.importSymbols('CISCO-CEF-TC', 'CefAdminStatus', 'CefCCAction', 'CefForwardingElementSpecialType', 'CefAdjacencySource', 'CefPathType', 'CefFailureReason', 'CefOperStatus', 'CefIpVersion', 'CefAdjLinkType', 'CefCCStatus', 'CefMplsLabelList', 'CefPrefixSearchState', 'CefCCType') (cisco_mgmt,) = mibBuilder.importSymbols('CISCO-SMI', 'ciscoMgmt') (ent_physical_index_or_zero,) = mibBuilder.importSymbols('CISCO-TC', 'EntPhysicalIndexOrZero') (ent_physical_index, physical_index) = mibBuilder.importSymbols('ENTITY-MIB', 'entPhysicalIndex', 'PhysicalIndex') (counter_based_gauge64,) = mibBuilder.importSymbols('HCNUM-TC', 'CounterBasedGauge64') (interface_index_or_zero, if_index) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndexOrZero', 'ifIndex') (inet_address, inet_address_prefix_length, inet_address_type) = mibBuilder.importSymbols('INET-ADDRESS-MIB', 'InetAddress', 'InetAddressPrefixLength', 'InetAddressType') (mpls_vpn_id,) = mibBuilder.importSymbols('MPLS-VPN-MIB', 'MplsVpnId') (snmp_admin_string,) = mibBuilder.importSymbols('SNMP-FRAMEWORK-MIB', 'SnmpAdminString') (module_compliance, notification_group, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup', 'ObjectGroup') (time_ticks, ip_address, counter32, mib_identifier, counter64, unsigned32, iso, object_identity, mib_scalar, mib_table, mib_table_row, mib_table_column, notification_type, integer32, module_identity, bits, gauge32) = mibBuilder.importSymbols('SNMPv2-SMI', 'TimeTicks', 'IpAddress', 'Counter32', 'MibIdentifier', 'Counter64', 'Unsigned32', 'iso', 'ObjectIdentity', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'NotificationType', 'Integer32', 'ModuleIdentity', 'Bits', 'Gauge32') (time_stamp, textual_convention, truth_value, test_and_incr, row_status, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TimeStamp', 'TextualConvention', 'TruthValue', 'TestAndIncr', 'RowStatus', 'DisplayString') cisco_cef_mib = module_identity((1, 3, 6, 1, 4, 1, 9, 9, 492)) ciscoCefMIB.setRevisions(('2006-01-30 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: ciscoCefMIB.setRevisionsDescriptions(('Initial version of this MIB module.',)) if mibBuilder.loadTexts: ciscoCefMIB.setLastUpdated('200601300000Z') if mibBuilder.loadTexts: ciscoCefMIB.setOrganization('Cisco System, Inc.') if mibBuilder.loadTexts: ciscoCefMIB.setContactInfo('Postal: Cisco Systems, Inc. 170 West Tasman Drive San Jose, CA 95134-1706 USA Tel: +1 800 553-NETS E-mail: [email protected]') if mibBuilder.loadTexts: ciscoCefMIB.setDescription('Cisco Express Forwarding (CEF) describes a high speed switching mechanism that a router uses to forward packets from the inbound to the outbound interface. CEF uses two sets of data structures or tables, which it stores in router memory: Forwarding information base (FIB) - Describes a database of information used to make forwarding decisions. It is conceptually similar to a routing table or route-cache, although its implementation is different. Adjacency - Two nodes in the network are said to be adjacent if they can reach each other via a single hop across a link layer. CEF path is a valid route to reach to a destination IP prefix. Multiple paths may exist out of a router to the same destination prefix. CEF Load balancing capability share the traffic to the destination IP prefix over all the active paths. After obtaining the prefix in the CEF table with the longest match, output forwarding follows the chain of forwarding elements. Forwarding element (FE) may process the packet, forward the packet, drop or punt the packet or it may also pass the packet to the next forwarding element in the chain for further processing. Forwarding Elements are of various types but this MIB only represents the forwarding elements of adjacency and label types. Hence a forwarding element chain will be represented as a list of labels and adjacency. The adjacency may point to a forwarding element list again, if it is not the last forwarding element in this chain. For the simplest IP forwarding case, the prefix entry will point at an adjacency forwarding element. The IP adjacency processing function will apply the output features, add the encapsulation (performing any required fixups), and may send the packet out. If loadbalancing is configured, the prefix entry will point to lists of forwarding elements. One of these lists will be selected to forward the packet. Each forwarding element list dictates which of a set of possible packet transformations to apply on the way to the same neighbour. The following diagram represents relationship between three of the core tables in this MIB module. cefPrefixTable cefFESelectionTable +---------------+ points +--------------+ | | | | a set +----> | | | | | |---------------| of FE | |--------------| | | | | Selection | | | | | | |---------------| Entries | |--------------| | | | |------------+ | |<----+ |---------------| |--------------| | | | +--------------| | | | | | +---------------+ | +--------------+ | | | points to an | adjacency entry | | | | cefAdjTable | | +---------------+ may point | +->| | | | to a set | |---------------| of FE | | | | | Selection | |---------------| Entries | | | | |----------------+ |---------------| | | +---------------+ Some of the Cisco series routers (e.g. 7500 & 12000) support distributed CEF (dCEF), in which the line cards (LCs) make the packet forwarding decisions using locally stored copies of the same Forwarding information base (FIB) and adjacency tables as the Routing Processor (RP). Inter-Process Communication (IPC) is the protocol used by routers that support distributed packet forwarding. CEF updates are encoded as external Data Representation (XDR) information elements inside IPC messages. This MIB reflects the distributed nature of CEF, e.g. CEF has different instances running on the RP and the line cards. There may be instances of inconsistency between the CEF forwarding databases(i.e between CEF forwarding database on line cards and the CEF forwarding database on the RP). CEF consistency checkers (CC) detects this inconsistency. When two databases are compared by a consistency checker, a set of records from the first (master) database is looked up in the second (slave). There are two types of consistency checkers, active and passive. Active consistency checkers are invoked in response to some stimulus, i.e. when a packet cannot be forwarded because the prefix is not in the forwarding table or in response to a Management Station request. Passive consistency checkers operate in the background, scanning portions of the databases on a periodic basis. The full-scan checkers are active consistency checkers which are invoked in response to a Management Station Request. If 64-bit counter objects in this MIB are supported, then their associated 32-bit counter objects must also be supported. The 32-bit counters will report the low 32-bits of the associated 64-bit counter count (e.g., cefPrefixPkts will report the least significant 32 bits of cefPrefixHCPkts). The same rule should be applied for the 64-bit gauge objects and their assocaited 32-bit gauge objects. If 64-bit counters in this MIB are not supported, then an agent MUST NOT instantiate the corresponding objects with an incorrect value; rather, it MUST respond with the appropriate error/exception condition (e.g., noSuchInstance or noSuchName). Counters related to CEF accounting (e.g., cefPrefixPkts) MUST NOT be instantiated if the corresponding accounting method has been disabled. This MIB allows configuration and monitoring of CEF related objects.') cisco_cef_mib_notifs = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 492, 0)) cisco_cef_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 492, 1)) cisco_cef_mib_conform = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 492, 2)) cef_fib = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1)) cef_adj = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2)) cef_fe = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 3)) cef_global = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 4)) cef_interface = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 5)) cef_peer = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 6)) cef_cc = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7)) cef_stats = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8)) cef_notif_cntl = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 9)) cef_fib_summary = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 1)) cef_fib_summary_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 1, 1)) if mibBuilder.loadTexts: cefFIBSummaryTable.setStatus('current') if mibBuilder.loadTexts: cefFIBSummaryTable.setDescription('This table contains the summary information for the cefPrefixTable.') cef_fib_summary_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 1, 1, 1)).setIndexNames((0, 'ENTITY-MIB', 'entPhysicalIndex'), (0, 'CISCO-CEF-MIB', 'cefFIBIpVersion')) if mibBuilder.loadTexts: cefFIBSummaryEntry.setStatus('current') if mibBuilder.loadTexts: cefFIBSummaryEntry.setDescription("If CEF is enabled on the Managed device, each entry contains the FIB summary related attributes for the managed entity. A row may exist for each IP version type (v4 and v6) depending upon the IP version supported on the device. entPhysicalIndex is also an index for this table which represents entities of 'module' entPhysicalClass which are capable of running CEF.") cef_fib_ip_version = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 1, 1, 1, 1), cef_ip_version()) if mibBuilder.loadTexts: cefFIBIpVersion.setStatus('current') if mibBuilder.loadTexts: cefFIBIpVersion.setDescription('The version of IP forwarding.') cef_fib_summary_fwd_prefixes = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 1, 1, 1, 2), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefFIBSummaryFwdPrefixes.setStatus('current') if mibBuilder.loadTexts: cefFIBSummaryFwdPrefixes.setDescription('Total number of forwarding Prefixes in FIB for the IP version specified by cefFIBIpVersion object.') cef_prefix_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 2)) if mibBuilder.loadTexts: cefPrefixTable.setStatus('current') if mibBuilder.loadTexts: cefPrefixTable.setDescription('A list of CEF forwarding prefixes.') cef_prefix_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 2, 1)).setIndexNames((0, 'ENTITY-MIB', 'entPhysicalIndex'), (0, 'CISCO-CEF-MIB', 'cefPrefixType'), (0, 'CISCO-CEF-MIB', 'cefPrefixAddr'), (0, 'CISCO-CEF-MIB', 'cefPrefixLen')) if mibBuilder.loadTexts: cefPrefixEntry.setStatus('current') if mibBuilder.loadTexts: cefPrefixEntry.setDescription("If CEF is enabled on the Managed device, each entry contains the forwarding prefix attributes. CEF prefix based non-recursive stats are maintained in internal and external buckets (depending upon the value of cefIntNonrecursiveAccouting object in the CefIntEntry). entPhysicalIndex is also an index for this table which represents entities of 'module' entPhysicalClass which are capable of running CEF.") cef_prefix_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 2, 1, 1), inet_address_type()) if mibBuilder.loadTexts: cefPrefixType.setStatus('current') if mibBuilder.loadTexts: cefPrefixType.setDescription('The Network Prefix Type. This object specifies the address type used for cefPrefixAddr. Prefix entries are only valid for the address type of ipv4(1) and ipv6(2).') cef_prefix_addr = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 2, 1, 2), inet_address()) if mibBuilder.loadTexts: cefPrefixAddr.setStatus('current') if mibBuilder.loadTexts: cefPrefixAddr.setDescription('The Network Prefix Address. The type of this address is determined by the value of the cefPrefixType object. This object is a Prefix Address containing the prefix with length specified by cefPrefixLen. Any bits beyond the length specified by cefPrefixLen are zeroed.') cef_prefix_len = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 2, 1, 3), inet_address_prefix_length()) if mibBuilder.loadTexts: cefPrefixLen.setStatus('current') if mibBuilder.loadTexts: cefPrefixLen.setDescription('Length in bits of the FIB Address prefix.') cef_prefix_forwarding_info = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 2, 1, 4), snmp_admin_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefPrefixForwardingInfo.setStatus('current') if mibBuilder.loadTexts: cefPrefixForwardingInfo.setDescription('This object indicates the associated forwarding element selection entries in cefFESelectionTable. The value of this object is index value (cefFESelectionName) of cefFESelectionTable.') cef_prefix_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 2, 1, 5), counter32()).setUnits('packets').setMaxAccess('readonly') if mibBuilder.loadTexts: cefPrefixPkts.setStatus('current') if mibBuilder.loadTexts: cefPrefixPkts.setDescription("If CEF accounting is set to enable per prefix accounting (value of cefCfgAccountingMap object in the cefCfgEntry is set to enable 'perPrefix' accounting), then this object represents the number of packets switched to this prefix.") cef_prefix_hc_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 2, 1, 6), counter64()).setUnits('packets').setMaxAccess('readonly') if mibBuilder.loadTexts: cefPrefixHCPkts.setStatus('current') if mibBuilder.loadTexts: cefPrefixHCPkts.setDescription("If CEF accounting is set to enable per prefix accounting (value of cefCfgAccountingMap object in the cefCfgEntry is set to enable 'perPrefix' accounting), then this object represents the number of packets switched to this prefix. This object is a 64-bit version of cefPrefixPkts.") cef_prefix_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 2, 1, 7), counter32()).setUnits('bytes').setMaxAccess('readonly') if mibBuilder.loadTexts: cefPrefixBytes.setStatus('current') if mibBuilder.loadTexts: cefPrefixBytes.setDescription("If CEF accounting is set to enable per prefix accounting (value of cefCfgAccountingMap object in the cefCfgEntry is set to enable 'perPrefix' accounting), then this object represents the number of bytes switched to this prefix.") cef_prefix_hc_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 2, 1, 8), counter64()).setUnits('bytes').setMaxAccess('readonly') if mibBuilder.loadTexts: cefPrefixHCBytes.setStatus('current') if mibBuilder.loadTexts: cefPrefixHCBytes.setDescription("If CEF accounting is set to enable per prefix accounting (value of cefCfgAccountingMap object in the cefCfgEntry is set to enable 'perPrefix' accounting), then this object represents the number of bytes switched to this prefix. This object is a 64-bit version of cefPrefixBytes.") cef_prefix_internal_nr_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 2, 1, 9), counter32()).setUnits('packets').setMaxAccess('readonly') if mibBuilder.loadTexts: cefPrefixInternalNRPkts.setStatus('current') if mibBuilder.loadTexts: cefPrefixInternalNRPkts.setDescription("If CEF accounting is set to enable non-recursive accounting (value of cefCfgAccountingMap object in the cefCfgEntry is set to enable 'nonRecursive' accounting), then this object represents the number of non-recursive packets in the internal bucket switched using this prefix.") cef_prefix_internal_nrhc_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 2, 1, 10), counter64()).setUnits('packets').setMaxAccess('readonly') if mibBuilder.loadTexts: cefPrefixInternalNRHCPkts.setStatus('current') if mibBuilder.loadTexts: cefPrefixInternalNRHCPkts.setDescription("If CEF accounting is set to enable non-recursive accounting (value of cefCfgAccountingMap object in the cefCfgEntry is set to enable 'nonRecursive' accounting), then this object represents the number of non-recursive packets in the internal bucket switched using this prefix. This object is a 64-bit version of cefPrefixInternalNRPkts.") cef_prefix_internal_nr_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 2, 1, 11), counter32()).setUnits('bytes').setMaxAccess('readonly') if mibBuilder.loadTexts: cefPrefixInternalNRBytes.setStatus('current') if mibBuilder.loadTexts: cefPrefixInternalNRBytes.setDescription("If CEF accounting is set to enable nonRecursive accounting (value of cefCfgAccountingMap object in the cefCfgEntry is set to enable 'nonRecursive' accounting), then this object represents the number of non-recursive bytes in the internal bucket switched using this prefix.") cef_prefix_internal_nrhc_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 2, 1, 12), counter64()).setUnits('bytes').setMaxAccess('readonly') if mibBuilder.loadTexts: cefPrefixInternalNRHCBytes.setStatus('current') if mibBuilder.loadTexts: cefPrefixInternalNRHCBytes.setDescription("If CEF accounting is set to enable nonRecursive accounting (value of cefCfgAccountingMap object in the cefCfgEntry is set to enable 'nonRecursive' accounting), then this object represents the number of non-recursive bytes in the internal bucket switched using this prefix. This object is a 64-bit version of cefPrefixInternalNRBytes.") cef_prefix_external_nr_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 2, 1, 13), counter32()).setUnits('packets').setMaxAccess('readonly') if mibBuilder.loadTexts: cefPrefixExternalNRPkts.setStatus('current') if mibBuilder.loadTexts: cefPrefixExternalNRPkts.setDescription("If CEF accounting is set to enable non-recursive accounting (value of cefCfgAccountingMap object in the cefCfgEntry is set to enable 'nonRecursive' accounting), then this object represents the number of non-recursive packets in the external bucket switched using this prefix.") cef_prefix_external_nrhc_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 2, 1, 14), counter64()).setUnits('packets').setMaxAccess('readonly') if mibBuilder.loadTexts: cefPrefixExternalNRHCPkts.setStatus('current') if mibBuilder.loadTexts: cefPrefixExternalNRHCPkts.setDescription("If CEF accounting is set to enable non-recursive accounting (value of cefCfgAccountingMap object in the cefCfgEntry is set to enable 'nonRecursive' accounting), then this object represents the number of non-recursive packets in the external bucket switched using this prefix. This object is a 64-bit version of cefPrefixExternalNRPkts.") cef_prefix_external_nr_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 2, 1, 15), counter32()).setUnits('bytes').setMaxAccess('readonly') if mibBuilder.loadTexts: cefPrefixExternalNRBytes.setStatus('current') if mibBuilder.loadTexts: cefPrefixExternalNRBytes.setDescription("If CEF accounting is set to enable nonRecursive accounting (value of cefCfgAccountingMap object in the cefCfgEntry is set to enable 'nonRecursive' accounting), then this object represents the number of non-recursive bytes in the external bucket switched using this prefix.") cef_prefix_external_nrhc_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 2, 1, 16), counter64()).setUnits('bytes').setMaxAccess('readonly') if mibBuilder.loadTexts: cefPrefixExternalNRHCBytes.setStatus('current') if mibBuilder.loadTexts: cefPrefixExternalNRHCBytes.setDescription("If CEF accounting is set to enable nonRecursive accounting (value of cefCfgAccountingMap object in the cefCfgEntry is set to enable 'nonRecursive' accounting), then this object represents the number of non-recursive bytes in the external bucket switched using this prefix. This object is a 64-bit version of cefPrefixExternalNRBytes.") cef_lm_prefix_spin_lock = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 3), test_and_incr()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cefLMPrefixSpinLock.setStatus('current') if mibBuilder.loadTexts: cefLMPrefixSpinLock.setDescription("An advisory lock used to allow cooperating SNMP Command Generator applications to coordinate their use of the Set operation in creating Longest Match Prefix Entries in cefLMPrefixTable. When creating a new longest prefix match entry, the value of cefLMPrefixSpinLock should be retrieved. The destination address should be determined to be unique by the SNMP Command Generator application by consulting the cefLMPrefixTable. Finally, the longest prefix entry may be created (Set), including the advisory lock. If another SNMP Command Generator application has altered the longest prefix entry in the meantime, then the spin lock's value will have changed, and so this creation will fail because it will specify the wrong value for the spin lock. Since this is an advisory lock, the use of this lock is not enforced, but not using this lock may lead to conflict with the another SNMP command responder application which may also be acting on the cefLMPrefixTable.") cef_lm_prefix_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 4)) if mibBuilder.loadTexts: cefLMPrefixTable.setStatus('current') if mibBuilder.loadTexts: cefLMPrefixTable.setDescription('A table of Longest Match Prefix Query requests. Generator application should utilize the cefLMPrefixSpinLock to try to avoid collisions. See DESCRIPTION clause of cefLMPrefixSpinLock.') cef_lm_prefix_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 4, 1)).setIndexNames((0, 'ENTITY-MIB', 'entPhysicalIndex'), (0, 'CISCO-CEF-MIB', 'cefLMPrefixDestAddrType'), (0, 'CISCO-CEF-MIB', 'cefLMPrefixDestAddr')) if mibBuilder.loadTexts: cefLMPrefixEntry.setStatus('current') if mibBuilder.loadTexts: cefLMPrefixEntry.setDescription("If CEF is enabled on the managed device, then each entry represents a longest Match Prefix request. A management station wishing to get the longest Match prefix for a given destination address should create the associate instance of the row status. The row status should be set to active(1) to initiate the request. Note that this entire procedure may be initiated via a single set request which specifies a row status of createAndGo(4). Once the request completes, the management station should retrieve the values of the objects of interest, and should then delete the entry. In order to prevent old entries from clogging the table, entries will be aged out, but an entry will never be deleted within 5 minutes of completion. Entries are lost after an agent restart. I.e. to find out the longest prefix match for destination address of A.B.C.D on entity whose entityPhysicalIndex is 1, the Management station will create an entry in cefLMPrefixTable with cefLMPrefixRowStatus.1(entPhysicalIndex).1(ipv4).A.B.C.D set to createAndGo(4). Management Station may query the value of objects cefLMPrefix and cefLMPrefixLen to find out the corresponding prefix entry from the cefPrefixTable once the value of cefLMPrefixState is set to matchFound(2). entPhysicalIndex is also an index for this table which represents entities of 'module' entPhysicalClass which are capable of running CEF. ") cef_lm_prefix_dest_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 4, 1, 1), inet_address_type()) if mibBuilder.loadTexts: cefLMPrefixDestAddrType.setStatus('current') if mibBuilder.loadTexts: cefLMPrefixDestAddrType.setDescription('The Destination Address Type. This object specifies the address type used for cefLMPrefixDestAddr. Longest Match Prefix entries are only valid for the address type of ipv4(1) and ipv6(2).') cef_lm_prefix_dest_addr = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 4, 1, 2), inet_address()) if mibBuilder.loadTexts: cefLMPrefixDestAddr.setStatus('current') if mibBuilder.loadTexts: cefLMPrefixDestAddr.setDescription('The Destination Address. The type of this address is determined by the value of the cefLMPrefixDestAddrType object.') cef_lm_prefix_state = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 4, 1, 3), cef_prefix_search_state()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefLMPrefixState.setStatus('current') if mibBuilder.loadTexts: cefLMPrefixState.setDescription('Indicates the state of this prefix search request.') cef_lm_prefix_addr = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 4, 1, 4), inet_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefLMPrefixAddr.setStatus('current') if mibBuilder.loadTexts: cefLMPrefixAddr.setDescription('The Network Prefix Address. Index to the cefPrefixTable. The type of this address is determined by the value of the cefLMPrefixDestAddrType object.') cef_lm_prefix_len = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 4, 1, 5), inet_address_prefix_length()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefLMPrefixLen.setStatus('current') if mibBuilder.loadTexts: cefLMPrefixLen.setDescription('The Network Prefix Length. Index to the cefPrefixTable.') cef_lm_prefix_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 4, 1, 6), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: cefLMPrefixRowStatus.setStatus('current') if mibBuilder.loadTexts: cefLMPrefixRowStatus.setDescription('The status of this table entry. Once the entry status is set to active(1), the associated entry cannot be modified until the request completes (cefLMPrefixState transitions to matchFound(2) or noMatchFound(3)). Once the longest match request has been created (i.e. the cefLMPrefixRowStatus has been made active), the entry cannot be modified - the only operation possible after this is to delete the row.') cef_path_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 5)) if mibBuilder.loadTexts: cefPathTable.setStatus('current') if mibBuilder.loadTexts: cefPathTable.setDescription('CEF prefix path is a valid route to reach to a destination IP prefix. Multiple paths may exist out of a router to the same destination prefix. This table specify lists of CEF paths.') cef_path_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 5, 1)).setIndexNames((0, 'ENTITY-MIB', 'entPhysicalIndex'), (0, 'CISCO-CEF-MIB', 'cefPrefixType'), (0, 'CISCO-CEF-MIB', 'cefPrefixAddr'), (0, 'CISCO-CEF-MIB', 'cefPrefixLen'), (0, 'CISCO-CEF-MIB', 'cefPathId')) if mibBuilder.loadTexts: cefPathEntry.setStatus('current') if mibBuilder.loadTexts: cefPathEntry.setDescription("If CEF is enabled on the Managed device, each entry contain a CEF prefix path. entPhysicalIndex is also an index for this table which represents entities of 'module' entPhysicalClass which are capable of running CEF.") cef_path_id = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 5, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))) if mibBuilder.loadTexts: cefPathId.setStatus('current') if mibBuilder.loadTexts: cefPathId.setDescription('The locally arbitrary, but unique identifier associated with this prefix path entry.') cef_path_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 5, 1, 2), cef_path_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefPathType.setStatus('current') if mibBuilder.loadTexts: cefPathType.setDescription('Type for this CEF Path.') cef_path_interface = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 5, 1, 3), interface_index_or_zero()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefPathInterface.setStatus('current') if mibBuilder.loadTexts: cefPathInterface.setDescription('Interface associated with this CEF path. A value of zero for this object will indicate that no interface is associated with this path entry.') cef_path_next_hop_addr = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 5, 1, 4), inet_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefPathNextHopAddr.setStatus('current') if mibBuilder.loadTexts: cefPathNextHopAddr.setDescription('Next hop address associated with this CEF path. The value of this object is only relevant for attached next hop and recursive next hop path types (when the object cefPathType is set to attachedNexthop(4) or recursiveNexthop(5)). and will be set to zero for other path types. The type of this address is determined by the value of the cefPrefixType object.') cef_path_recurse_vrf_name = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 1, 5, 1, 5), mpls_vpn_id()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefPathRecurseVrfName.setStatus('current') if mibBuilder.loadTexts: cefPathRecurseVrfName.setDescription("The recursive vrf name associated with this path. The value of this object is only relevant for recursive next hop path types (when the object cefPathType is set to recursiveNexthop(5)), and '0x00' will be returned for other path types.") cef_adj_summary = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 1)) cef_adj_summary_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 1, 1)) if mibBuilder.loadTexts: cefAdjSummaryTable.setStatus('current') if mibBuilder.loadTexts: cefAdjSummaryTable.setDescription('This table contains the summary information for the cefAdjTable.') cef_adj_summary_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 1, 1, 1)).setIndexNames((0, 'ENTITY-MIB', 'entPhysicalIndex'), (0, 'CISCO-CEF-MIB', 'cefAdjSummaryLinkType')) if mibBuilder.loadTexts: cefAdjSummaryEntry.setStatus('current') if mibBuilder.loadTexts: cefAdjSummaryEntry.setDescription("If CEF is enabled on the Managed device, each entry contains the CEF Adjacency summary related attributes for the Managed entity. A row exists for each adjacency link type. entPhysicalIndex is also an index for this table which represents entities of 'module' entPhysicalClass which are capable of running CEF.") cef_adj_summary_link_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 1, 1, 1, 1), cef_adj_link_type()) if mibBuilder.loadTexts: cefAdjSummaryLinkType.setStatus('current') if mibBuilder.loadTexts: cefAdjSummaryLinkType.setDescription('The link type of the adjacency.') cef_adj_summary_complete = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 1, 1, 1, 2), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefAdjSummaryComplete.setStatus('current') if mibBuilder.loadTexts: cefAdjSummaryComplete.setDescription('The total number of complete adjacencies. The total number of adjacencies which can be used to switch traffic to a neighbour.') cef_adj_summary_incomplete = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 1, 1, 1, 3), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefAdjSummaryIncomplete.setStatus('current') if mibBuilder.loadTexts: cefAdjSummaryIncomplete.setDescription('The total number of incomplete adjacencies. The total number of adjacencies which cannot be used to switch traffic in their current state.') cef_adj_summary_fixup = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 1, 1, 1, 4), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefAdjSummaryFixup.setStatus('current') if mibBuilder.loadTexts: cefAdjSummaryFixup.setDescription('The total number of adjacencies for which the Layer 2 encapsulation string (header) may be updated (fixed up) at packet switch time.') cef_adj_summary_redirect = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 1, 1, 1, 5), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefAdjSummaryRedirect.setReference('1. Internet Architecture Extensions for Shared Media, RFC 1620, May 1994.') if mibBuilder.loadTexts: cefAdjSummaryRedirect.setStatus('current') if mibBuilder.loadTexts: cefAdjSummaryRedirect.setDescription('The total number of adjacencies for which ip redirect (or icmp redirection) is enabled. The value of this object is only relevant for ipv4 and ipv6 link type (when the index object cefAdjSummaryLinkType value is ipv4(1) or ipv6(2)) and will be set to zero for other link types. ') cef_adj_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 2)) if mibBuilder.loadTexts: cefAdjTable.setStatus('current') if mibBuilder.loadTexts: cefAdjTable.setDescription('A list of CEF adjacencies.') cef_adj_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 2, 1)).setIndexNames((0, 'ENTITY-MIB', 'entPhysicalIndex'), (0, 'IF-MIB', 'ifIndex'), (0, 'CISCO-CEF-MIB', 'cefAdjNextHopAddrType'), (0, 'CISCO-CEF-MIB', 'cefAdjNextHopAddr'), (0, 'CISCO-CEF-MIB', 'cefAdjConnId'), (0, 'CISCO-CEF-MIB', 'cefAdjSummaryLinkType')) if mibBuilder.loadTexts: cefAdjEntry.setStatus('current') if mibBuilder.loadTexts: cefAdjEntry.setDescription("If CEF is enabled on the Managed device, each entry contains the adjacency attributes. Adjacency entries may exist for all the interfaces on which packets can be switched out of the device. The interface is instantiated by ifIndex. Therefore, the interface index must have been assigned, according to the applicable procedures, before it can be meaningfully used. Generally, this means that the interface must exist. entPhysicalIndex is also an index for this table which represents entities of 'module' entPhysicalClass which are capable of running CEF.") cef_adj_next_hop_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 2, 1, 1), inet_address_type()) if mibBuilder.loadTexts: cefAdjNextHopAddrType.setStatus('current') if mibBuilder.loadTexts: cefAdjNextHopAddrType.setDescription('Address type for the cefAdjNextHopAddr. This object specifies the address type used for cefAdjNextHopAddr. Adjacency entries are only valid for the address type of ipv4(1) and ipv6(2).') cef_adj_next_hop_addr = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 2, 1, 2), inet_address()) if mibBuilder.loadTexts: cefAdjNextHopAddr.setStatus('current') if mibBuilder.loadTexts: cefAdjNextHopAddr.setDescription('The next Hop address for this adjacency. The type of this address is determined by the value of the cefAdjNextHopAddrType object.') cef_adj_conn_id = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 2, 1, 3), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(1, 4294967295)))) if mibBuilder.loadTexts: cefAdjConnId.setStatus('current') if mibBuilder.loadTexts: cefAdjConnId.setDescription('In cases where cefLinkType, interface and the next hop address are not able to uniquely define an adjacency entry (e.g. ATM and Frame Relay Bundles), this object is a unique identifier to differentiate between these adjacency entries. In all the other cases the value of this index object will be 0.') cef_adj_source = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 2, 1, 4), cef_adjacency_source()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefAdjSource.setStatus('current') if mibBuilder.loadTexts: cefAdjSource.setDescription('If the adjacency is created because some neighbour discovery mechanism has discovered a neighbour and all the information required to build a frame header to encapsulate traffic to the neighbour is available then the source of adjacency is set to the mechanism by which the adjacency is learned.') cef_adj_encap = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 2, 1, 5), snmp_admin_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefAdjEncap.setStatus('current') if mibBuilder.loadTexts: cefAdjEncap.setDescription('The layer 2 encapsulation string to be used for sending the packet out using this adjacency.') cef_adj_fixup = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 2, 1, 6), snmp_admin_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefAdjFixup.setStatus('current') if mibBuilder.loadTexts: cefAdjFixup.setDescription("For the cases, where the encapsulation string is decided at packet switch time, the adjacency encapsulation string specified by object cefAdjEncap require a fixup. I.e. for the adjacencies out of IP Tunnels, the string prepended is an IP header which has fields which can only be setup at packet switch time. The value of this object represent the kind of fixup applied to the packet. If the encapsulation string doesn't require any fixup, then the value of this object will be of zero length.") cef_adj_mtu = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 2, 1, 7), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setUnits('bytes').setMaxAccess('readonly') if mibBuilder.loadTexts: cefAdjMTU.setStatus('current') if mibBuilder.loadTexts: cefAdjMTU.setDescription('The Layer 3 MTU which can be transmitted using this adjacency.') cef_adj_forwarding_info = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 2, 1, 8), snmp_admin_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefAdjForwardingInfo.setStatus('current') if mibBuilder.loadTexts: cefAdjForwardingInfo.setDescription('This object selects a forwarding info entry defined in the cefFESelectionTable. The selected target is defined by an entry in the cefFESelectionTable whose index value (cefFESelectionName) is equal to this object. The value of this object will be of zero length if this adjacency entry is the last forwarding element in the forwarding path.') cef_adj_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 2, 1, 9), counter32()).setUnits('packets').setMaxAccess('readonly') if mibBuilder.loadTexts: cefAdjPkts.setStatus('current') if mibBuilder.loadTexts: cefAdjPkts.setDescription('Number of pkts transmitted using this adjacency.') cef_adj_hc_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 2, 1, 10), counter64()).setUnits('packets').setMaxAccess('readonly') if mibBuilder.loadTexts: cefAdjHCPkts.setStatus('current') if mibBuilder.loadTexts: cefAdjHCPkts.setDescription('Number of pkts transmitted using this adjacency. This object is a 64-bit version of cefAdjPkts.') cef_adj_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 2, 1, 11), counter32()).setUnits('bytes').setMaxAccess('readonly') if mibBuilder.loadTexts: cefAdjBytes.setStatus('current') if mibBuilder.loadTexts: cefAdjBytes.setDescription('Number of bytes transmitted using this adjacency.') cef_adj_hc_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 2, 2, 1, 12), counter64()).setUnits('bytes').setMaxAccess('readonly') if mibBuilder.loadTexts: cefAdjHCBytes.setStatus('current') if mibBuilder.loadTexts: cefAdjHCBytes.setDescription('Number of bytes transmitted using this adjacency. This object is a 64-bit version of cefAdjBytes.') cef_fe_selection_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 3, 1)) if mibBuilder.loadTexts: cefFESelectionTable.setStatus('current') if mibBuilder.loadTexts: cefFESelectionTable.setDescription('A list of forwarding element selection entries.') cef_fe_selection_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 3, 1, 1)).setIndexNames((0, 'ENTITY-MIB', 'entPhysicalIndex'), (0, 'CISCO-CEF-MIB', 'cefFESelectionName'), (0, 'CISCO-CEF-MIB', 'cefFESelectionId')) if mibBuilder.loadTexts: cefFESelectionEntry.setStatus('current') if mibBuilder.loadTexts: cefFESelectionEntry.setDescription("If CEF is enabled on the Managed device, each entry contain a CEF forwarding element selection list. entPhysicalIndex is also an index for this table which represents entities of 'module' entPhysicalClass which are capable of running CEF.") cef_fe_selection_name = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 3, 1, 1, 1), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(1, 32))) if mibBuilder.loadTexts: cefFESelectionName.setStatus('current') if mibBuilder.loadTexts: cefFESelectionName.setDescription('The locally arbitrary, but unique identifier used to select a set of forwarding element lists.') cef_fe_selection_id = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 3, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))) if mibBuilder.loadTexts: cefFESelectionId.setStatus('current') if mibBuilder.loadTexts: cefFESelectionId.setDescription('Secondary index to identify a forwarding elements List in this Table.') cef_fe_selection_special = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 3, 1, 1, 3), cef_forwarding_element_special_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefFESelectionSpecial.setStatus('current') if mibBuilder.loadTexts: cefFESelectionSpecial.setDescription('Special processing for a destination is indicated through the use of special forwarding element. If the forwarding element list contains the special forwarding element, then this object represents the type of special forwarding element.') cef_fe_selection_labels = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 3, 1, 1, 4), cef_mpls_label_list()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefFESelectionLabels.setStatus('current') if mibBuilder.loadTexts: cefFESelectionLabels.setDescription("This object represent the MPLS Labels associated with this forwarding Element List. The value of this object will be irrelevant and will be set to zero length if the forwarding element list doesn't contain a label forwarding element. A zero length label list will indicate that there is no label forwarding element associated with this selection entry.") cef_fe_selection_adj_link_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 3, 1, 1, 5), cef_adj_link_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefFESelectionAdjLinkType.setStatus('current') if mibBuilder.loadTexts: cefFESelectionAdjLinkType.setDescription("This object represent the link type for the adjacency associated with this forwarding Element List. The value of this object will be irrelevant and will be set to unknown(5) if the forwarding element list doesn't contain an adjacency forwarding element.") cef_fe_selection_adj_interface = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 3, 1, 1, 6), interface_index_or_zero()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefFESelectionAdjInterface.setStatus('current') if mibBuilder.loadTexts: cefFESelectionAdjInterface.setDescription("This object represent the interface for the adjacency associated with this forwarding Element List. The value of this object will be irrelevant and will be set to zero if the forwarding element list doesn't contain an adjacency forwarding element.") cef_fe_selection_adj_next_hop_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 3, 1, 1, 7), inet_address_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefFESelectionAdjNextHopAddrType.setStatus('current') if mibBuilder.loadTexts: cefFESelectionAdjNextHopAddrType.setDescription("This object represent the next hop address type for the adjacency associated with this forwarding Element List. The value of this object will be irrelevant and will be set to unknown(0) if the forwarding element list doesn't contain an adjacency forwarding element.") cef_fe_selection_adj_next_hop_addr = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 3, 1, 1, 8), inet_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefFESelectionAdjNextHopAddr.setStatus('current') if mibBuilder.loadTexts: cefFESelectionAdjNextHopAddr.setDescription("This object represent the next hop address for the adjacency associated with this forwarding Element List. The value of this object will be irrelevant and will be set to zero if the forwarding element list doesn't contain an adjacency forwarding element.") cef_fe_selection_adj_conn_id = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 3, 1, 1, 9), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(1, 4294967295)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cefFESelectionAdjConnId.setStatus('current') if mibBuilder.loadTexts: cefFESelectionAdjConnId.setDescription("This object represent the connection id for the adjacency associated with this forwarding Element List. The value of this object will be irrelevant and will be set to zero if the forwarding element list doesn't contain an adjacency forwarding element. In cases where cefFESelectionAdjLinkType, interface and the next hop address are not able to uniquely define an adjacency entry (e.g. ATM and Frame Relay Bundles), this object is a unique identifier to differentiate between these adjacency entries.") cef_fe_selection_vrf_name = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 3, 1, 1, 10), mpls_vpn_id()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefFESelectionVrfName.setStatus('current') if mibBuilder.loadTexts: cefFESelectionVrfName.setDescription("This object represent the Vrf name for the lookup associated with this forwarding Element List. The value of this object will be irrelevant and will be set to a string containing the single octet 0x00 if the forwarding element list doesn't contain a lookup forwarding element.") cef_fe_selection_weight = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 3, 1, 1, 11), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(1, 4294967295)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cefFESelectionWeight.setStatus('current') if mibBuilder.loadTexts: cefFESelectionWeight.setDescription('This object represent the weighting for load balancing between multiple Forwarding Element Lists. The value of this object will be zero if load balancing is associated with this selection entry.') cef_cfg_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 4, 1)) if mibBuilder.loadTexts: cefCfgTable.setStatus('current') if mibBuilder.loadTexts: cefCfgTable.setDescription('This table contains global config parameter of CEF on the Managed device.') cef_cfg_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 4, 1, 1)).setIndexNames((0, 'ENTITY-MIB', 'entPhysicalIndex'), (0, 'CISCO-CEF-MIB', 'cefFIBIpVersion')) if mibBuilder.loadTexts: cefCfgEntry.setStatus('current') if mibBuilder.loadTexts: cefCfgEntry.setDescription("If the Managed device supports CEF, each entry contains the CEF config parameter for the managed entity. A row may exist for each IP version type (v4 and v6) depending upon the IP version supported on the device. entPhysicalIndex is also an index for this table which represents entities of 'module' entPhysicalClass which are capable of running CEF.") cef_cfg_admin_state = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 4, 1, 1, 1), cef_admin_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cefCfgAdminState.setStatus('current') if mibBuilder.loadTexts: cefCfgAdminState.setDescription('The desired state of CEF.') cef_cfg_oper_state = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 4, 1, 1, 2), cef_oper_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefCfgOperState.setStatus('current') if mibBuilder.loadTexts: cefCfgOperState.setDescription('The current operational state of CEF. If the cefCfgAdminState is disabled(2), then cefOperState will eventually go to the down(2) state unless some error has occurred. If cefCfgAdminState is changed to enabled(1) then cefCfgOperState should change to up(1) only if the CEF entity is ready to forward the packets using Cisco Express Forwarding (CEF) else it should remain in the down(2) state. The up(1) state for this object indicates that CEF entity is forwarding the packet using Cisco Express Forwarding.') cef_cfg_distribution_admin_state = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 4, 1, 1, 3), cef_admin_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cefCfgDistributionAdminState.setStatus('current') if mibBuilder.loadTexts: cefCfgDistributionAdminState.setDescription('The desired state of CEF distribution.') cef_cfg_distribution_oper_state = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 4, 1, 1, 4), cef_oper_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefCfgDistributionOperState.setStatus('current') if mibBuilder.loadTexts: cefCfgDistributionOperState.setDescription('The current operational state of CEF distribution. If the cefCfgDistributionAdminState is disabled(2), then cefDistributionOperState will eventually go to the down(2) state unless some error has occurred. If cefCfgDistributionAdminState is changed to enabled(1) then cefCfgDistributionOperState should change to up(1) only if the CEF entity is ready to forward the packets using Distributed Cisco Express Forwarding (dCEF) else it should remain in the down(2) state. The up(1) state for this object indicates that CEF entity is forwarding the packet using Distributed Cisco Express Forwarding.') cef_cfg_accounting_map = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 4, 1, 1, 5), bits().clone(namedValues=named_values(('nonRecursive', 0), ('perPrefix', 1), ('prefixLength', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cefCfgAccountingMap.setStatus('current') if mibBuilder.loadTexts: cefCfgAccountingMap.setDescription('This object represents a bitmap of network accounting options. CEF network accounting is disabled by default. CEF network accounting can be enabled by selecting one or more of the following CEF accounting option for the value of this object. nonRecursive(0): enables accounting through nonrecursive prefixes. perPrefix(1): enables the collection of the numbers of pkts and bytes express forwarded to a destination (prefix) prefixLength(2): enables accounting through prefixlength. Once the accounting is enabled, the corresponding stats can be retrieved from the cefPrefixTable and cefStatsPrefixLenTable. ') cef_cfg_load_sharing_algorithm = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 4, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('none', 1), ('original', 2), ('tunnel', 3), ('universal', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cefCfgLoadSharingAlgorithm.setStatus('current') if mibBuilder.loadTexts: cefCfgLoadSharingAlgorithm.setDescription("Indicates the CEF Load balancing algorithm. Setting this object to none(1) will disable the Load sharing for the specified entry. CEF load balancing can be enabled by setting this object to one of following Algorithms: original(2) : This algorithm is based on a source and destination hash tunnel(3) : This algorithm is used in tunnels environments or in environments where there are only a few source universal(4) : This algorithm uses a source and destination and ID hash If the value of this object is set to 'tunnel' or 'universal', then the FIXED ID for these algorithms may be specified by the managed object cefLoadSharingID. ") cef_cfg_load_sharing_id = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 4, 1, 1, 7), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(1, 4294967295)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cefCfgLoadSharingID.setStatus('current') if mibBuilder.loadTexts: cefCfgLoadSharingID.setDescription('The Fixed ID associated with the managed object cefCfgLoadSharingAlgorithm. The hash of this object value may be used by the Load Sharing Algorithm. The value of this object is not relevant and will be set to zero if the value of managed object cefCfgLoadSharingAlgorithm is set to none(1) or original(2). The default value of this object is calculated by the device at the time of initialization.') cef_cfg_traffic_stats_load_interval = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 4, 1, 1, 8), unsigned32()).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: cefCfgTrafficStatsLoadInterval.setStatus('current') if mibBuilder.loadTexts: cefCfgTrafficStatsLoadInterval.setDescription('The interval time over which the CEF traffic statistics are collected.') cef_cfg_traffic_stats_update_rate = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 4, 1, 1, 9), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(1, 65535)))).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: cefCfgTrafficStatsUpdateRate.setStatus('current') if mibBuilder.loadTexts: cefCfgTrafficStatsUpdateRate.setDescription('The frequency with which the line card sends the traffic load statistics to the Router Processor. Setting the value of this object to 0 will disable the CEF traffic statistics collection.') cef_resource_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 4, 2)) if mibBuilder.loadTexts: cefResourceTable.setStatus('current') if mibBuilder.loadTexts: cefResourceTable.setDescription('This table contains global resource information of CEF on the Managed device.') cef_resource_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 4, 2, 1)).setIndexNames((0, 'ENTITY-MIB', 'entPhysicalIndex')) if mibBuilder.loadTexts: cefResourceEntry.setStatus('current') if mibBuilder.loadTexts: cefResourceEntry.setDescription("If the Managed device supports CEF, each entry contains the CEF Resource parameters for the managed entity. entPhysicalIndex is also an index for this table which represents entities of 'module' entPhysicalClass which are capable of running CEF.") cef_resource_memory_used = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 4, 2, 1, 1), gauge32()).setUnits('bytes').setMaxAccess('readonly') if mibBuilder.loadTexts: cefResourceMemoryUsed.setStatus('current') if mibBuilder.loadTexts: cefResourceMemoryUsed.setDescription('Indicates the number of bytes from the Processor Memory Pool that are currently in use by CEF on the managed entity.') cef_resource_failure_reason = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 4, 2, 1, 2), cef_failure_reason()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefResourceFailureReason.setStatus('current') if mibBuilder.loadTexts: cefResourceFailureReason.setDescription('The CEF resource failure reason which may lead to CEF being disabled on the managed entity.') cef_int_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 5, 1)) if mibBuilder.loadTexts: cefIntTable.setStatus('current') if mibBuilder.loadTexts: cefIntTable.setDescription('This Table contains interface specific information of CEF on the Managed device.') cef_int_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 5, 1, 1)).setIndexNames((0, 'ENTITY-MIB', 'entPhysicalIndex'), (0, 'CISCO-CEF-MIB', 'cefFIBIpVersion'), (0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: cefIntEntry.setStatus('current') if mibBuilder.loadTexts: cefIntEntry.setDescription("If CEF is enabled on the Managed device, each entry contains the CEF attributes associated with an interface. The interface is instantiated by ifIndex. Therefore, the interface index must have been assigned, according to the applicable procedures, before it can be meaningfully used. Generally, this means that the interface must exist. A row may exist for each IP version type (v4 and v6) depending upon the IP version supported on the device. entPhysicalIndex is also an index for this table which represents entities of 'module' entPhysicalClass which are capable of running CEF.") cef_int_switching_state = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 5, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('cefEnabled', 1), ('distCefEnabled', 2), ('cefDisabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cefIntSwitchingState.setStatus('current') if mibBuilder.loadTexts: cefIntSwitchingState.setDescription('The CEF switching State for the interface. If CEF is enabled but distributed CEF(dCEF) is disabled then CEF is in cefEnabled(1) state. If distributed CEF is enabled, then CEF is in distCefEnabled(2) state. The cefDisabled(3) state indicates that CEF is disabled. The CEF switching state is only applicable to the received packet on the interface.') cef_int_load_sharing = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 5, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('perPacket', 1), ('perDestination', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cefIntLoadSharing.setStatus('current') if mibBuilder.loadTexts: cefIntLoadSharing.setDescription('The status of load sharing on the interface. perPacket(1) : Router to send data packets over successive equal-cost paths without regard to individual hosts or user sessions. perDestination(2) : Router to use multiple, equal-cost paths to achieve load sharing Load sharing is enabled by default for an interface when CEF is enabled.') cef_int_nonrecursive_accouting = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 5, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('internal', 1), ('external', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cefIntNonrecursiveAccouting.setStatus('current') if mibBuilder.loadTexts: cefIntNonrecursiveAccouting.setDescription('The CEF accounting mode for the interface. CEF prefix based non-recursive accounting on an interface can be configured to store the stats for non-recursive prefixes in a internal or external bucket. internal(1) : Count input traffic in the nonrecursive internal bucket external(2) : Count input traffic in the nonrecursive external bucket The value of this object will only be effective if value of the object cefAccountingMap is set to enable nonRecursive(1) accounting.') cef_peer_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 6, 1)) if mibBuilder.loadTexts: cefPeerTable.setStatus('current') if mibBuilder.loadTexts: cefPeerTable.setDescription('Entity acting as RP (Routing Processor) keeps the CEF states for the line card entities and communicates with the line card entities using XDR. This Table contains the CEF information related to peer entities on the managed device.') cef_peer_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 6, 1, 1)).setIndexNames((0, 'ENTITY-MIB', 'entPhysicalIndex'), (0, 'CISCO-CEF-MIB', 'entPeerPhysicalIndex')) if mibBuilder.loadTexts: cefPeerEntry.setStatus('current') if mibBuilder.loadTexts: cefPeerEntry.setDescription("If CEF is enabled on the Managed device, each entry contains the CEF related attributes associated with a CEF peer entity. entPhysicalIndex and entPeerPhysicalIndex are also indexes for this table which represents entities of 'module' entPhysicalClass which are capable of running CEF.") ent_peer_physical_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 6, 1, 1, 1), physical_index()) if mibBuilder.loadTexts: entPeerPhysicalIndex.setStatus('current') if mibBuilder.loadTexts: entPeerPhysicalIndex.setDescription("The entity index for the CEF peer entity. Only the entities of 'module' entPhysicalClass are included here.") cef_peer_oper_state = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 6, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('peerDisabled', 1), ('peerUp', 2), ('peerHold', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cefPeerOperState.setStatus('current') if mibBuilder.loadTexts: cefPeerOperState.setDescription('The current CEF operational state of the CEF peer entity. Cef peer entity oper state will be peerDisabled(1) in the following condition: : Cef Peer entity encounters fatal error i.e. resource allocation failure, ipc failure etc : When a reload/delete request is received from the Cef Peer Entity Once the peer entity is up and no fatal error is encountered, then the value of this object will transits to the peerUp(3) state. If the Cef Peer entity is in held stage, then the value of this object will be peerHold(3). Cef peer entity can only transit to peerDisabled(1) state from the peerHold(3) state.') cef_peer_number_of_resets = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 6, 1, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefPeerNumberOfResets.setStatus('current') if mibBuilder.loadTexts: cefPeerNumberOfResets.setDescription('Number of times the session with CEF peer entity has been reset.') cef_peer_fib_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 6, 2)) if mibBuilder.loadTexts: cefPeerFIBTable.setStatus('current') if mibBuilder.loadTexts: cefPeerFIBTable.setDescription('Entity acting as RP (Routing Processor) keep the CEF FIB states for the line card entities and communicate with the line card entities using XDR. This Table contains the CEF FIB State related to peer entities on the managed device.') cef_peer_fib_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 6, 2, 1)).setIndexNames((0, 'ENTITY-MIB', 'entPhysicalIndex'), (0, 'CISCO-CEF-MIB', 'entPeerPhysicalIndex'), (0, 'CISCO-CEF-MIB', 'cefFIBIpVersion')) if mibBuilder.loadTexts: cefPeerFIBEntry.setStatus('current') if mibBuilder.loadTexts: cefPeerFIBEntry.setDescription("If CEF is enabled on the Managed device, each entry contains the CEF FIB State associated a CEF peer entity. entPhysicalIndex and entPeerPhysicalIndex are also indexes for this table which represents entities of 'module' entPhysicalClass which are capable of running CEF.") cef_peer_fib_oper_state = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 6, 2, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('peerFIBDown', 1), ('peerFIBUp', 2), ('peerFIBReloadRequest', 3), ('peerFIBReloading', 4), ('peerFIBSynced', 5)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cefPeerFIBOperState.setStatus('current') if mibBuilder.loadTexts: cefPeerFIBOperState.setDescription('The current CEF FIB Operational State for the CEF peer entity. ') cef_stats_prefix_len_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 1)) if mibBuilder.loadTexts: cefStatsPrefixLenTable.setStatus('current') if mibBuilder.loadTexts: cefStatsPrefixLenTable.setDescription('This table specifies the CEF stats based on the Prefix Length.') cef_stats_prefix_len_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 1, 1)).setIndexNames((0, 'ENTITY-MIB', 'entPhysicalIndex'), (0, 'CISCO-CEF-MIB', 'cefFIBIpVersion'), (0, 'CISCO-CEF-MIB', 'cefStatsPrefixLen')) if mibBuilder.loadTexts: cefStatsPrefixLenEntry.setStatus('current') if mibBuilder.loadTexts: cefStatsPrefixLenEntry.setDescription("If CEF is enabled on the Managed device and if CEF accounting is set to enable prefix length based accounting (value of cefCfgAccountingMap object in the cefCfgEntry is set to enable 'prefixLength' accounting), each entry contains the traffic statistics for a prefix length. A row may exist for each IP version type (v4 and v6) depending upon the IP version supported on the device. entPhysicalIndex is also an index for this table which represents entities of 'module' entPhysicalClass which are capable of running CEF.") cef_stats_prefix_len = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 1, 1, 1), inet_address_prefix_length()) if mibBuilder.loadTexts: cefStatsPrefixLen.setStatus('current') if mibBuilder.loadTexts: cefStatsPrefixLen.setDescription('Length in bits of the Destination IP prefix. As 0.0.0.0/0 is a valid prefix, hence 0 is a valid prefix length.') cef_stats_prefix_queries = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 1, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefStatsPrefixQueries.setStatus('current') if mibBuilder.loadTexts: cefStatsPrefixQueries.setDescription('Number of queries received in the FIB database for the specified IP prefix length.') cef_stats_prefix_hc_queries = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 1, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefStatsPrefixHCQueries.setStatus('current') if mibBuilder.loadTexts: cefStatsPrefixHCQueries.setDescription('Number of queries received in the FIB database for the specified IP prefix length. This object is a 64-bit version of cefStatsPrefixQueries.') cef_stats_prefix_inserts = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 1, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefStatsPrefixInserts.setStatus('current') if mibBuilder.loadTexts: cefStatsPrefixInserts.setDescription('Number of insert operations performed to the FIB database for the specified IP prefix length.') cef_stats_prefix_hc_inserts = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 1, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefStatsPrefixHCInserts.setStatus('current') if mibBuilder.loadTexts: cefStatsPrefixHCInserts.setDescription('Number of insert operations performed to the FIB database for the specified IP prefix length. This object is a 64-bit version of cefStatsPrefixInsert.') cef_stats_prefix_deletes = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 1, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefStatsPrefixDeletes.setStatus('current') if mibBuilder.loadTexts: cefStatsPrefixDeletes.setDescription('Number of delete operations performed to the FIB database for the specified IP prefix length.') cef_stats_prefix_hc_deletes = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 1, 1, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefStatsPrefixHCDeletes.setStatus('current') if mibBuilder.loadTexts: cefStatsPrefixHCDeletes.setDescription('Number of delete operations performed to the FIB database for the specified IP prefix length. This object is a 64-bit version of cefStatsPrefixDelete.') cef_stats_prefix_elements = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 1, 1, 8), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefStatsPrefixElements.setStatus('current') if mibBuilder.loadTexts: cefStatsPrefixElements.setDescription('Total number of elements in the FIB database for the specified IP prefix length.') cef_stats_prefix_hc_elements = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 1, 1, 9), counter_based_gauge64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefStatsPrefixHCElements.setStatus('current') if mibBuilder.loadTexts: cefStatsPrefixHCElements.setDescription('Total number of elements in the FIB database for the specified IP prefix length. This object is a 64-bit version of cefStatsPrefixElements.') cef_switching_stats_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 2)) if mibBuilder.loadTexts: cefSwitchingStatsTable.setStatus('current') if mibBuilder.loadTexts: cefSwitchingStatsTable.setDescription('This table specifies the CEF switch stats.') cef_switching_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 2, 1)).setIndexNames((0, 'ENTITY-MIB', 'entPhysicalIndex'), (0, 'CISCO-CEF-MIB', 'cefFIBIpVersion'), (0, 'CISCO-CEF-MIB', 'cefSwitchingIndex')) if mibBuilder.loadTexts: cefSwitchingStatsEntry.setStatus('current') if mibBuilder.loadTexts: cefSwitchingStatsEntry.setDescription("If CEF is enabled on the Managed device, each entry specifies the switching stats. A row may exist for each IP version type (v4 and v6) depending upon the IP version supported on the device. entPhysicalIndex is also an index for this table which represents entities of 'module' entPhysicalClass which are capable of running CEF.") cef_switching_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))) if mibBuilder.loadTexts: cefSwitchingIndex.setStatus('current') if mibBuilder.loadTexts: cefSwitchingIndex.setDescription('The locally arbitrary, but unique identifier associated with this switching stats entry.') cef_switching_path = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 2, 1, 2), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(1, 32))).setMaxAccess('readonly') if mibBuilder.loadTexts: cefSwitchingPath.setStatus('current') if mibBuilder.loadTexts: cefSwitchingPath.setDescription('Switch path where the feature was executed. Available switch paths are platform-dependent. Following are the examples of switching paths: RIB : switching with CEF assistance Low-end switching (LES) : CEF switch path PAS : CEF turbo switch path. ') cef_switching_drop = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 2, 1, 3), counter32()).setUnits('packets').setMaxAccess('readonly') if mibBuilder.loadTexts: cefSwitchingDrop.setStatus('current') if mibBuilder.loadTexts: cefSwitchingDrop.setDescription('Number of packets dropped by CEF.') cef_switching_hc_drop = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 2, 1, 4), counter64()).setUnits('packets').setMaxAccess('readonly') if mibBuilder.loadTexts: cefSwitchingHCDrop.setStatus('current') if mibBuilder.loadTexts: cefSwitchingHCDrop.setDescription('Number of packets dropped by CEF. This object is a 64-bit version of cefSwitchingDrop.') cef_switching_punt = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 2, 1, 5), counter32()).setUnits('packets').setMaxAccess('readonly') if mibBuilder.loadTexts: cefSwitchingPunt.setStatus('current') if mibBuilder.loadTexts: cefSwitchingPunt.setDescription('Number of packets that could not be switched in the normal path and were punted to the next-fastest switching vector.') cef_switching_hc_punt = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 2, 1, 6), counter64()).setUnits('packets').setMaxAccess('readonly') if mibBuilder.loadTexts: cefSwitchingHCPunt.setStatus('current') if mibBuilder.loadTexts: cefSwitchingHCPunt.setDescription('Number of packets that could not be switched in the normal path and were punted to the next-fastest switching vector. This object is a 64-bit version of cefSwitchingPunt.') cef_switching_punt2_host = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 2, 1, 7), counter32()).setUnits('packets').setMaxAccess('readonly') if mibBuilder.loadTexts: cefSwitchingPunt2Host.setStatus('current') if mibBuilder.loadTexts: cefSwitchingPunt2Host.setDescription('Number of packets that could not be switched in the normal path and were punted to the host (process switching path). For most of the switching paths, the value of this object may be similar to cefSwitchingPunt.') cef_switching_hc_punt2_host = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 8, 2, 1, 8), counter64()).setUnits('packets').setMaxAccess('readonly') if mibBuilder.loadTexts: cefSwitchingHCPunt2Host.setStatus('current') if mibBuilder.loadTexts: cefSwitchingHCPunt2Host.setDescription('Number of packets that could not be switched in the normal path and were punted to the host (process switching path). For most of the switching paths, the value of this object may be similar to cefSwitchingPunt. This object is a 64-bit version of cefSwitchingPunt2Host.') cef_cc_global_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 1)) if mibBuilder.loadTexts: cefCCGlobalTable.setStatus('current') if mibBuilder.loadTexts: cefCCGlobalTable.setDescription('This table contains CEF consistency checker (CC) global parameters for the managed device.') cef_cc_global_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 1, 1)).setIndexNames((0, 'CISCO-CEF-MIB', 'cefFIBIpVersion')) if mibBuilder.loadTexts: cefCCGlobalEntry.setStatus('current') if mibBuilder.loadTexts: cefCCGlobalEntry.setDescription('If the managed device supports CEF, each entry contains the global consistency checker parameter for the managed device. A row may exist for each IP version type (v4 and v6) depending upon the IP version supported on the device.') cef_cc_global_auto_repair_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 1, 1, 1), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cefCCGlobalAutoRepairEnabled.setStatus('current') if mibBuilder.loadTexts: cefCCGlobalAutoRepairEnabled.setDescription('Once an inconsistency has been detected, CEF has the ability to repair the problem. This object indicates the status of auto-repair function for the consistency checkers.') cef_cc_global_auto_repair_delay = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 1, 1, 2), unsigned32()).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: cefCCGlobalAutoRepairDelay.setStatus('current') if mibBuilder.loadTexts: cefCCGlobalAutoRepairDelay.setDescription("Indiactes how long the consistency checker waits to fix an inconsistency. The value of this object has no effect when the value of object cefCCGlobalAutoRepairEnabled is 'false'.") cef_cc_global_auto_repair_hold_down = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 1, 1, 3), unsigned32()).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: cefCCGlobalAutoRepairHoldDown.setStatus('current') if mibBuilder.loadTexts: cefCCGlobalAutoRepairHoldDown.setDescription("Indicates how long the consistency checker waits to re-enable auto-repair after auto-repair runs. The value of this object has no effect when the value of object cefCCGlobalAutoRepairEnabled is 'false'.") cef_cc_global_error_msg_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 1, 1, 4), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cefCCGlobalErrorMsgEnabled.setStatus('current') if mibBuilder.loadTexts: cefCCGlobalErrorMsgEnabled.setDescription('Enables the consistency checker to generate an error message when it detects an inconsistency.') cef_cc_global_full_scan_action = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 1, 1, 5), cef_cc_action().clone('ccActionNone')).setMaxAccess('readwrite') if mibBuilder.loadTexts: cefCCGlobalFullScanAction.setStatus('current') if mibBuilder.loadTexts: cefCCGlobalFullScanAction.setDescription("Setting the value of this object to ccActionStart(1) will start the full scan consistency checkers. The Management station should poll the cefCCGlobalFullScanStatus object to get the state of full-scan operation. Once the full-scan operation completes (value of cefCCGlobalFullScanStatus object is ccStatusDone(3)), the Management station should retrieve the values of the related stats object from the cefCCTypeTable. Setting the value of this object to ccActionAbort(2) will abort the full-scan operation. The value of this object can't be set to ccActionStart(1), if the value of object cefCCGlobalFullScanStatus is ccStatusRunning(2). The value of this object will be set to cefActionNone(1) when the full scan consistency checkers have never been activated. A Management Station cannot set the value of this object to cefActionNone(1).") cef_cc_global_full_scan_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 1, 1, 6), cef_cc_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefCCGlobalFullScanStatus.setStatus('current') if mibBuilder.loadTexts: cefCCGlobalFullScanStatus.setDescription('Indicates the status of the full scan consistency checker request.') cef_cc_type_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 2)) if mibBuilder.loadTexts: cefCCTypeTable.setStatus('current') if mibBuilder.loadTexts: cefCCTypeTable.setDescription('This table contains CEF consistency checker types specific parameters on the managed device. All detected inconsistency are signaled to the Management Station via cefInconsistencyDetection notification. ') cef_cc_type_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 2, 1)).setIndexNames((0, 'CISCO-CEF-MIB', 'cefFIBIpVersion'), (0, 'CISCO-CEF-MIB', 'cefCCType')) if mibBuilder.loadTexts: cefCCTypeEntry.setStatus('current') if mibBuilder.loadTexts: cefCCTypeEntry.setDescription('If the managed device supports CEF, each entry contains the consistency checker statistics for a consistency checker type. A row may exist for each IP version type (v4 and v6) depending upon the IP version supported on the device.') cef_cc_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 2, 1, 1), cef_cc_type()) if mibBuilder.loadTexts: cefCCType.setStatus('current') if mibBuilder.loadTexts: cefCCType.setDescription('Type of the consistency checker.') cef_cc_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 2, 1, 2), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cefCCEnabled.setStatus('current') if mibBuilder.loadTexts: cefCCEnabled.setDescription("Enables the passive consistency checker. Passive consistency checkers are disabled by default. Full-scan consistency checkers are always enabled. An attempt to set this object to 'false' for an active consistency checker will result in 'wrongValue' error.") cef_cc_count = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 2, 1, 3), unsigned32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cefCCCount.setStatus('current') if mibBuilder.loadTexts: cefCCCount.setDescription('The maximum number of prefixes to check per scan. The default value for this object depends upon the consistency checker type. The value of this object will be irrelevant for some of the consistency checkers and will be set to 0. A Management Station cannot set the value of this object to 0.') cef_cc_period = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 2, 1, 4), unsigned32()).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: cefCCPeriod.setStatus('current') if mibBuilder.loadTexts: cefCCPeriod.setDescription('The period between scans for the consistency checker.') cef_cc_queries_sent = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 2, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefCCQueriesSent.setStatus('current') if mibBuilder.loadTexts: cefCCQueriesSent.setDescription('Number of prefix consistency queries sent to CEF forwarding databases by this consistency checker.') cef_cc_queries_ignored = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 2, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefCCQueriesIgnored.setStatus('current') if mibBuilder.loadTexts: cefCCQueriesIgnored.setDescription('Number of prefix consistency queries for which the consistency checks were not performed by this consistency checker. This may be because of some internal error or resource failure.') cef_cc_queries_checked = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 2, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefCCQueriesChecked.setStatus('current') if mibBuilder.loadTexts: cefCCQueriesChecked.setDescription('Number of prefix consistency queries processed by this consistency checker.') cef_cc_queries_iterated = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 2, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefCCQueriesIterated.setStatus('current') if mibBuilder.loadTexts: cefCCQueriesIterated.setDescription('Number of prefix consistency queries iterated back to the master database by this consistency checker.') cef_inconsistency_record_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 3)) if mibBuilder.loadTexts: cefInconsistencyRecordTable.setStatus('current') if mibBuilder.loadTexts: cefInconsistencyRecordTable.setDescription('This table contains CEF inconsistency records.') cef_inconsistency_record_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 3, 1)).setIndexNames((0, 'CISCO-CEF-MIB', 'cefFIBIpVersion'), (0, 'CISCO-CEF-MIB', 'cefInconsistencyRecId')) if mibBuilder.loadTexts: cefInconsistencyRecordEntry.setStatus('current') if mibBuilder.loadTexts: cefInconsistencyRecordEntry.setDescription('If the managed device supports CEF, each entry contains the inconsistency record.') cef_inconsistency_rec_id = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))) if mibBuilder.loadTexts: cefInconsistencyRecId.setStatus('current') if mibBuilder.loadTexts: cefInconsistencyRecId.setDescription('The locally arbitrary, but unique identifier associated with this inconsistency record entry.') cef_inconsistency_prefix_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 3, 1, 2), inet_address_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefInconsistencyPrefixType.setStatus('current') if mibBuilder.loadTexts: cefInconsistencyPrefixType.setDescription('The network prefix type associated with this inconsistency record.') cef_inconsistency_prefix_addr = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 3, 1, 3), inet_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefInconsistencyPrefixAddr.setStatus('current') if mibBuilder.loadTexts: cefInconsistencyPrefixAddr.setDescription('The network prefix address associated with this inconsistency record. The type of this address is determined by the value of the cefInconsistencyPrefixType object.') cef_inconsistency_prefix_len = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 3, 1, 4), inet_address_prefix_length()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefInconsistencyPrefixLen.setStatus('current') if mibBuilder.loadTexts: cefInconsistencyPrefixLen.setDescription('Length in bits of the inconsistency address prefix.') cef_inconsistency_vrf_name = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 3, 1, 5), mpls_vpn_id()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefInconsistencyVrfName.setStatus('current') if mibBuilder.loadTexts: cefInconsistencyVrfName.setDescription('Vrf name associated with this inconsistency record.') cef_inconsistency_cc_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 3, 1, 6), cef_cc_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefInconsistencyCCType.setStatus('current') if mibBuilder.loadTexts: cefInconsistencyCCType.setDescription('The type of consistency checker who generated this inconsistency record.') cef_inconsistency_entity = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 3, 1, 7), ent_physical_index_or_zero()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefInconsistencyEntity.setStatus('current') if mibBuilder.loadTexts: cefInconsistencyEntity.setDescription('The entity for which this inconsistency record was generated. The value of this object will be irrelevant and will be set to 0 when the inconsisency record is applicable for all the entities.') cef_inconsistency_reason = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 3, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('missing', 1), ('checksumErr', 2), ('unknown', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cefInconsistencyReason.setStatus('current') if mibBuilder.loadTexts: cefInconsistencyReason.setDescription('The reason for generating this inconsistency record. missing(1): the prefix is missing checksumErr(2): checksum error was found unknown(3): reason is unknown ') ent_last_inconsistency_detect_time = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 4), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: entLastInconsistencyDetectTime.setStatus('current') if mibBuilder.loadTexts: entLastInconsistencyDetectTime.setDescription('The value of sysUpTime at the time an inconsistency is detecetd.') cef_inconsistency_reset = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 5), cef_cc_action().clone('ccActionNone')).setMaxAccess('readwrite') if mibBuilder.loadTexts: cefInconsistencyReset.setStatus('current') if mibBuilder.loadTexts: cefInconsistencyReset.setDescription("Setting the value of this object to ccActionStart(1) will reset all the active consistency checkers. The Management station should poll the cefInconsistencyResetStatus object to get the state of inconsistency reset operation. This operation once started, cannot be aborted. Hence, the value of this object cannot be set to ccActionAbort(2). The value of this object can't be set to ccActionStart(1), if the value of object cefInconsistencyResetStatus is ccStatusRunning(2). ") cef_inconsistency_reset_status = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 7, 6), cef_cc_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: cefInconsistencyResetStatus.setStatus('current') if mibBuilder.loadTexts: cefInconsistencyResetStatus.setDescription('Indicates the status of the consistency reset request.') cef_resource_failure_notif_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 9, 1), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cefResourceFailureNotifEnable.setStatus('current') if mibBuilder.loadTexts: cefResourceFailureNotifEnable.setDescription('Indicates whether or not a notification should be generated on the detection of CEF resource Failure.') cef_peer_state_change_notif_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 9, 2), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cefPeerStateChangeNotifEnable.setStatus('current') if mibBuilder.loadTexts: cefPeerStateChangeNotifEnable.setDescription('Indicates whether or not a notification should be generated on the detection of CEF peer state change.') cef_peer_fib_state_change_notif_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 9, 3), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cefPeerFIBStateChangeNotifEnable.setStatus('current') if mibBuilder.loadTexts: cefPeerFIBStateChangeNotifEnable.setDescription('Indicates whether or not a notification should be generated on the detection of CEF FIB peer state change.') cef_notif_throttling_interval = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 9, 4), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(1, 3600)))).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: cefNotifThrottlingInterval.setStatus('current') if mibBuilder.loadTexts: cefNotifThrottlingInterval.setDescription("This object controls the generation of the cefInconsistencyDetection notification. If this object has a value of zero, then the throttle control is disabled. If this object has a non-zero value, then the agent must not generate more than one cefInconsistencyDetection 'notification-event' in the indicated period, where a 'notification-event' is the transmission of a single trap or inform PDU to a list of notification destinations. If additional inconsistency is detected within the throttling period, then notification-events for these inconsistencies should be suppressed by the agent until the current throttling period expires. At the end of a throttling period, one notification-event should be generated if any inconsistency was detected since the start of the throttling period. In such a case, another throttling period is started right away. An NMS should periodically poll cefInconsistencyRecordTable to detect any missed cefInconsistencyDetection notification-events, e.g., due to throttling or transmission loss. If cefNotifThrottlingInterval notification generation is enabled, the suggested default throttling period is 60 seconds, but generation of the cefInconsistencyDetection notification should be disabled by default. If the agent is capable of storing non-volatile configuration, then the value of this object must be restored after a re-initialization of the management system. The actual transmission of notifications is controlled via the MIB modules in RFC 3413.") cef_inconsistency_notif_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 492, 1, 9, 5), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cefInconsistencyNotifEnable.setStatus('current') if mibBuilder.loadTexts: cefInconsistencyNotifEnable.setDescription('Indicates whether cefInconsistencyDetection notification should be generated for this managed device.') cef_resource_failure = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 492, 0, 1)).setObjects(('CISCO-CEF-MIB', 'cefResourceFailureReason')) if mibBuilder.loadTexts: cefResourceFailure.setStatus('current') if mibBuilder.loadTexts: cefResourceFailure.setDescription('A cefResourceFailure notification is generated when CEF resource failure on the managed entity is detected. The reason for this failure is indicated by cefResourcefFailureReason.') cef_peer_state_change = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 492, 0, 2)).setObjects(('CISCO-CEF-MIB', 'cefPeerOperState')) if mibBuilder.loadTexts: cefPeerStateChange.setStatus('current') if mibBuilder.loadTexts: cefPeerStateChange.setDescription('A cefPeerStateChange notification is generated if change in cefPeerOperState is detected for the peer entity.') cef_peer_fib_state_change = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 492, 0, 3)).setObjects(('CISCO-CEF-MIB', 'cefPeerFIBOperState')) if mibBuilder.loadTexts: cefPeerFIBStateChange.setStatus('current') if mibBuilder.loadTexts: cefPeerFIBStateChange.setDescription('A cefPeerFIBStateChange notification is generated if change in cefPeerFIBOperState is detected for the peer entity.') cef_inconsistency_detection = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 492, 0, 4)).setObjects(('CISCO-CEF-MIB', 'entLastInconsistencyDetectTime')) if mibBuilder.loadTexts: cefInconsistencyDetection.setStatus('current') if mibBuilder.loadTexts: cefInconsistencyDetection.setDescription("A cefInconsistencyDetection notification is generated when CEF consistency checkers detects an inconsistent prefix in one of the CEF forwarding databases. Note that the generation of cefInconsistencyDetection notifications is throttled by the agent, as specified by the 'cefNotifThrottlingInterval' object.") cef_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 492, 2, 1)) cef_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 492, 2, 2)) cef_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 492, 2, 2, 1)).setObjects(('CISCO-CEF-MIB', 'cefGroup'), ('CISCO-CEF-MIB', 'cefNotifCntlGroup'), ('CISCO-CEF-MIB', 'cefNotificationGroup'), ('CISCO-CEF-MIB', 'cefDistributedGroup'), ('CISCO-CEF-MIB', 'cefHCStatsGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cef_mib_compliance = cefMIBCompliance.setStatus('current') if mibBuilder.loadTexts: cefMIBCompliance.setDescription('The compliance statement for SNMP Agents which implement this MIB.') cef_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 492, 2, 1, 1)).setObjects(('CISCO-CEF-MIB', 'cefFIBSummaryFwdPrefixes'), ('CISCO-CEF-MIB', 'cefPrefixForwardingInfo'), ('CISCO-CEF-MIB', 'cefPrefixPkts'), ('CISCO-CEF-MIB', 'cefPrefixBytes'), ('CISCO-CEF-MIB', 'cefPrefixInternalNRPkts'), ('CISCO-CEF-MIB', 'cefPrefixInternalNRBytes'), ('CISCO-CEF-MIB', 'cefPrefixExternalNRPkts'), ('CISCO-CEF-MIB', 'cefPrefixExternalNRBytes'), ('CISCO-CEF-MIB', 'cefLMPrefixSpinLock'), ('CISCO-CEF-MIB', 'cefLMPrefixState'), ('CISCO-CEF-MIB', 'cefLMPrefixAddr'), ('CISCO-CEF-MIB', 'cefLMPrefixLen'), ('CISCO-CEF-MIB', 'cefLMPrefixRowStatus'), ('CISCO-CEF-MIB', 'cefPathType'), ('CISCO-CEF-MIB', 'cefPathInterface'), ('CISCO-CEF-MIB', 'cefPathNextHopAddr'), ('CISCO-CEF-MIB', 'cefPathRecurseVrfName'), ('CISCO-CEF-MIB', 'cefAdjSummaryComplete'), ('CISCO-CEF-MIB', 'cefAdjSummaryIncomplete'), ('CISCO-CEF-MIB', 'cefAdjSummaryFixup'), ('CISCO-CEF-MIB', 'cefAdjSummaryRedirect'), ('CISCO-CEF-MIB', 'cefAdjSource'), ('CISCO-CEF-MIB', 'cefAdjEncap'), ('CISCO-CEF-MIB', 'cefAdjFixup'), ('CISCO-CEF-MIB', 'cefAdjMTU'), ('CISCO-CEF-MIB', 'cefAdjForwardingInfo'), ('CISCO-CEF-MIB', 'cefAdjPkts'), ('CISCO-CEF-MIB', 'cefAdjBytes'), ('CISCO-CEF-MIB', 'cefFESelectionSpecial'), ('CISCO-CEF-MIB', 'cefFESelectionLabels'), ('CISCO-CEF-MIB', 'cefFESelectionAdjLinkType'), ('CISCO-CEF-MIB', 'cefFESelectionAdjInterface'), ('CISCO-CEF-MIB', 'cefFESelectionAdjNextHopAddrType'), ('CISCO-CEF-MIB', 'cefFESelectionAdjNextHopAddr'), ('CISCO-CEF-MIB', 'cefFESelectionAdjConnId'), ('CISCO-CEF-MIB', 'cefFESelectionVrfName'), ('CISCO-CEF-MIB', 'cefFESelectionWeight'), ('CISCO-CEF-MIB', 'cefCfgAdminState'), ('CISCO-CEF-MIB', 'cefCfgOperState'), ('CISCO-CEF-MIB', 'cefCfgAccountingMap'), ('CISCO-CEF-MIB', 'cefCfgLoadSharingAlgorithm'), ('CISCO-CEF-MIB', 'cefCfgLoadSharingID'), ('CISCO-CEF-MIB', 'cefCfgTrafficStatsLoadInterval'), ('CISCO-CEF-MIB', 'cefCfgTrafficStatsUpdateRate'), ('CISCO-CEF-MIB', 'cefResourceMemoryUsed'), ('CISCO-CEF-MIB', 'cefResourceFailureReason'), ('CISCO-CEF-MIB', 'cefIntSwitchingState'), ('CISCO-CEF-MIB', 'cefIntLoadSharing'), ('CISCO-CEF-MIB', 'cefIntNonrecursiveAccouting'), ('CISCO-CEF-MIB', 'cefStatsPrefixQueries'), ('CISCO-CEF-MIB', 'cefStatsPrefixInserts'), ('CISCO-CEF-MIB', 'cefStatsPrefixDeletes'), ('CISCO-CEF-MIB', 'cefStatsPrefixElements'), ('CISCO-CEF-MIB', 'cefSwitchingPath'), ('CISCO-CEF-MIB', 'cefSwitchingDrop'), ('CISCO-CEF-MIB', 'cefSwitchingPunt'), ('CISCO-CEF-MIB', 'cefSwitchingPunt2Host')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cef_group = cefGroup.setStatus('current') if mibBuilder.loadTexts: cefGroup.setDescription('This group consists of all the managed objects which are applicable to CEF irrespective of the value of object cefDistributionOperState.') cef_distributed_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 492, 2, 1, 2)).setObjects(('CISCO-CEF-MIB', 'cefCfgDistributionAdminState'), ('CISCO-CEF-MIB', 'cefCfgDistributionOperState'), ('CISCO-CEF-MIB', 'cefPeerOperState'), ('CISCO-CEF-MIB', 'cefPeerNumberOfResets'), ('CISCO-CEF-MIB', 'cefPeerFIBOperState'), ('CISCO-CEF-MIB', 'cefCCGlobalAutoRepairEnabled'), ('CISCO-CEF-MIB', 'cefCCGlobalAutoRepairDelay'), ('CISCO-CEF-MIB', 'cefCCGlobalAutoRepairHoldDown'), ('CISCO-CEF-MIB', 'cefCCGlobalErrorMsgEnabled'), ('CISCO-CEF-MIB', 'cefCCGlobalFullScanStatus'), ('CISCO-CEF-MIB', 'cefCCGlobalFullScanAction'), ('CISCO-CEF-MIB', 'cefCCEnabled'), ('CISCO-CEF-MIB', 'cefCCCount'), ('CISCO-CEF-MIB', 'cefCCPeriod'), ('CISCO-CEF-MIB', 'cefCCQueriesSent'), ('CISCO-CEF-MIB', 'cefCCQueriesIgnored'), ('CISCO-CEF-MIB', 'cefCCQueriesChecked'), ('CISCO-CEF-MIB', 'cefCCQueriesIterated'), ('CISCO-CEF-MIB', 'entLastInconsistencyDetectTime'), ('CISCO-CEF-MIB', 'cefInconsistencyPrefixType'), ('CISCO-CEF-MIB', 'cefInconsistencyPrefixAddr'), ('CISCO-CEF-MIB', 'cefInconsistencyPrefixLen'), ('CISCO-CEF-MIB', 'cefInconsistencyVrfName'), ('CISCO-CEF-MIB', 'cefInconsistencyCCType'), ('CISCO-CEF-MIB', 'cefInconsistencyEntity'), ('CISCO-CEF-MIB', 'cefInconsistencyReason'), ('CISCO-CEF-MIB', 'cefInconsistencyReset'), ('CISCO-CEF-MIB', 'cefInconsistencyResetStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cef_distributed_group = cefDistributedGroup.setStatus('current') if mibBuilder.loadTexts: cefDistributedGroup.setDescription("This group consists of all the Managed objects which are only applicable to CEF is the value of object cefDistributionOperState is 'up'.") cef_hc_stats_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 492, 2, 1, 3)).setObjects(('CISCO-CEF-MIB', 'cefPrefixHCPkts'), ('CISCO-CEF-MIB', 'cefPrefixHCBytes'), ('CISCO-CEF-MIB', 'cefPrefixInternalNRHCPkts'), ('CISCO-CEF-MIB', 'cefPrefixInternalNRHCBytes'), ('CISCO-CEF-MIB', 'cefPrefixExternalNRHCPkts'), ('CISCO-CEF-MIB', 'cefPrefixExternalNRHCBytes'), ('CISCO-CEF-MIB', 'cefAdjHCPkts'), ('CISCO-CEF-MIB', 'cefAdjHCBytes'), ('CISCO-CEF-MIB', 'cefStatsPrefixHCQueries'), ('CISCO-CEF-MIB', 'cefStatsPrefixHCInserts'), ('CISCO-CEF-MIB', 'cefStatsPrefixHCDeletes'), ('CISCO-CEF-MIB', 'cefStatsPrefixHCElements'), ('CISCO-CEF-MIB', 'cefSwitchingHCDrop'), ('CISCO-CEF-MIB', 'cefSwitchingHCPunt'), ('CISCO-CEF-MIB', 'cefSwitchingHCPunt2Host')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cef_hc_stats_group = cefHCStatsGroup.setStatus('current') if mibBuilder.loadTexts: cefHCStatsGroup.setDescription('This group consists of all the 64-bit counter objects which are applicable to CEF irrespective of the value of object cefDistributionOperState.') cef_notif_cntl_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 492, 2, 1, 5)).setObjects(('CISCO-CEF-MIB', 'cefResourceFailureNotifEnable'), ('CISCO-CEF-MIB', 'cefPeerStateChangeNotifEnable'), ('CISCO-CEF-MIB', 'cefPeerFIBStateChangeNotifEnable'), ('CISCO-CEF-MIB', 'cefNotifThrottlingInterval'), ('CISCO-CEF-MIB', 'cefInconsistencyNotifEnable')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cef_notif_cntl_group = cefNotifCntlGroup.setStatus('current') if mibBuilder.loadTexts: cefNotifCntlGroup.setDescription('This group of objects controls the sending of CEF Notifications.') cef_notification_group = notification_group((1, 3, 6, 1, 4, 1, 9, 9, 492, 2, 1, 6)).setObjects(('CISCO-CEF-MIB', 'cefResourceFailure'), ('CISCO-CEF-MIB', 'cefPeerStateChange'), ('CISCO-CEF-MIB', 'cefPeerFIBStateChange'), ('CISCO-CEF-MIB', 'cefInconsistencyDetection')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cef_notification_group = cefNotificationGroup.setStatus('current') if mibBuilder.loadTexts: cefNotificationGroup.setDescription('This group contains the notifications for the CEF MIB.') mibBuilder.exportSymbols('CISCO-CEF-MIB', ciscoCefMIBObjects=ciscoCefMIBObjects, cefInconsistencyDetection=cefInconsistencyDetection, cefAdjConnId=cefAdjConnId, cefCCQueriesIgnored=cefCCQueriesIgnored, cefFESelectionAdjConnId=cefFESelectionAdjConnId, cefFESelectionEntry=cefFESelectionEntry, cefLMPrefixLen=cefLMPrefixLen, cefResourceMemoryUsed=cefResourceMemoryUsed, cefFIBSummaryEntry=cefFIBSummaryEntry, cefCfgTable=cefCfgTable, cefCfgTrafficStatsLoadInterval=cefCfgTrafficStatsLoadInterval, ciscoCefMIBNotifs=ciscoCefMIBNotifs, cefFIBSummaryTable=cefFIBSummaryTable, cefCCCount=cefCCCount, cefInconsistencyRecordTable=cefInconsistencyRecordTable, cefCCTypeEntry=cefCCTypeEntry, cefPeerStateChange=cefPeerStateChange, cefLMPrefixDestAddrType=cefLMPrefixDestAddrType, cefPathType=cefPathType, cefAdjSource=cefAdjSource, cefSwitchingPath=cefSwitchingPath, cefAdjTable=cefAdjTable, cefCCPeriod=cefCCPeriod, cefFESelectionLabels=cefFESelectionLabels, cefStatsPrefixInserts=cefStatsPrefixInserts, cefAdjBytes=cefAdjBytes, cefIntLoadSharing=cefIntLoadSharing, cefStatsPrefixHCDeletes=cefStatsPrefixHCDeletes, cefLMPrefixTable=cefLMPrefixTable, cefSwitchingDrop=cefSwitchingDrop, entLastInconsistencyDetectTime=entLastInconsistencyDetectTime, cefInconsistencyNotifEnable=cefInconsistencyNotifEnable, cefCfgAdminState=cefCfgAdminState, cefCCGlobalAutoRepairHoldDown=cefCCGlobalAutoRepairHoldDown, cefResourceFailureNotifEnable=cefResourceFailureNotifEnable, cefFESelectionWeight=cefFESelectionWeight, cefPrefixAddr=cefPrefixAddr, cefPrefixLen=cefPrefixLen, cefCfgLoadSharingAlgorithm=cefCfgLoadSharingAlgorithm, cefInconsistencyPrefixAddr=cefInconsistencyPrefixAddr, cefSwitchingStatsEntry=cefSwitchingStatsEntry, cefPrefixType=cefPrefixType, cefPrefixInternalNRPkts=cefPrefixInternalNRPkts, cefAdjSummaryLinkType=cefAdjSummaryLinkType, cefAdjMTU=cefAdjMTU, cefPrefixExternalNRHCPkts=cefPrefixExternalNRHCPkts, cefAdjFixup=cefAdjFixup, cefFESelectionSpecial=cefFESelectionSpecial, cefFESelectionAdjLinkType=cefFESelectionAdjLinkType, cefPathRecurseVrfName=cefPathRecurseVrfName, cefNotificationGroup=cefNotificationGroup, cefCfgEntry=cefCfgEntry, cefCCQueriesSent=cefCCQueriesSent, cefPathNextHopAddr=cefPathNextHopAddr, cefLMPrefixEntry=cefLMPrefixEntry, cefPrefixEntry=cefPrefixEntry, cefPrefixInternalNRHCPkts=cefPrefixInternalNRHCPkts, cefFESelectionName=cefFESelectionName, cefInconsistencyVrfName=cefInconsistencyVrfName, cefLMPrefixRowStatus=cefLMPrefixRowStatus, cefCCType=cefCCType, cefFESelectionAdjNextHopAddrType=cefFESelectionAdjNextHopAddrType, cefMIBCompliance=cefMIBCompliance, cefPathId=cefPathId, cefPrefixHCBytes=cefPrefixHCBytes, cefSwitchingHCPunt2Host=cefSwitchingHCPunt2Host, cefPeerFIBEntry=cefPeerFIBEntry, cefInconsistencyReset=cefInconsistencyReset, cefStats=cefStats, cefResourceFailureReason=cefResourceFailureReason, cefStatsPrefixLenTable=cefStatsPrefixLenTable, cefPeer=cefPeer, cefCCEnabled=cefCCEnabled, cefAdjNextHopAddr=cefAdjNextHopAddr, cefStatsPrefixElements=cefStatsPrefixElements, cefCCGlobalErrorMsgEnabled=cefCCGlobalErrorMsgEnabled, cefFE=cefFE, cefAdjNextHopAddrType=cefAdjNextHopAddrType, cefInconsistencyResetStatus=cefInconsistencyResetStatus, cefCCQueriesChecked=cefCCQueriesChecked, cefCCGlobalAutoRepairDelay=cefCCGlobalAutoRepairDelay, cefAdjSummaryIncomplete=cefAdjSummaryIncomplete, cefAdjSummary=cefAdjSummary, cefResourceTable=cefResourceTable, cefNotifCntl=cefNotifCntl, cefFIBSummaryFwdPrefixes=cefFIBSummaryFwdPrefixes, cefPeerTable=cefPeerTable, cefGroup=cefGroup, cefAdjSummaryComplete=cefAdjSummaryComplete, cefFESelectionTable=cefFESelectionTable, cefCfgDistributionOperState=cefCfgDistributionOperState, cefInconsistencyRecordEntry=cefInconsistencyRecordEntry, cefPathTable=cefPathTable, cefPeerNumberOfResets=cefPeerNumberOfResets, cefCCGlobalFullScanAction=cefCCGlobalFullScanAction, cefFESelectionId=cefFESelectionId, cefPrefixHCPkts=cefPrefixHCPkts, cefSwitchingPunt=cefSwitchingPunt, cefIntTable=cefIntTable, cefCCGlobalFullScanStatus=cefCCGlobalFullScanStatus, cefSwitchingIndex=cefSwitchingIndex, cefSwitchingHCDrop=cefSwitchingHCDrop, cefGlobal=cefGlobal, cefCCGlobalTable=cefCCGlobalTable, cefInconsistencyPrefixType=cefInconsistencyPrefixType, cefDistributedGroup=cefDistributedGroup, cefResourceFailure=cefResourceFailure, cefAdjHCBytes=cefAdjHCBytes, cefAdjSummaryEntry=cefAdjSummaryEntry, cefAdjSummaryRedirect=cefAdjSummaryRedirect, cefPrefixBytes=cefPrefixBytes, cefInconsistencyPrefixLen=cefInconsistencyPrefixLen, cefHCStatsGroup=cefHCStatsGroup, cefFIBSummary=cefFIBSummary, cefInconsistencyCCType=cefInconsistencyCCType, cefCfgOperState=cefCfgOperState, cefIntEntry=cefIntEntry, cefPrefixForwardingInfo=cefPrefixForwardingInfo, cefInconsistencyEntity=cefInconsistencyEntity, cefCCTypeTable=cefCCTypeTable, cefCC=cefCC, cefStatsPrefixDeletes=cefStatsPrefixDeletes, cefPeerOperState=cefPeerOperState, cefStatsPrefixLenEntry=cefStatsPrefixLenEntry, cefPrefixExternalNRBytes=cefPrefixExternalNRBytes, entPeerPhysicalIndex=entPeerPhysicalIndex, cefPrefixInternalNRHCBytes=cefPrefixInternalNRHCBytes, cefCfgTrafficStatsUpdateRate=cefCfgTrafficStatsUpdateRate, ciscoCefMIB=ciscoCefMIB, cefPrefixExternalNRPkts=cefPrefixExternalNRPkts, cefAdj=cefAdj, cefAdjSummaryFixup=cefAdjSummaryFixup, cefStatsPrefixQueries=cefStatsPrefixQueries, cefMIBCompliances=cefMIBCompliances, cefFESelectionVrfName=cefFESelectionVrfName, cefLMPrefixSpinLock=cefLMPrefixSpinLock, cefPrefixTable=cefPrefixTable, cefFIB=cefFIB, cefPrefixInternalNRBytes=cefPrefixInternalNRBytes, cefLMPrefixState=cefLMPrefixState, PYSNMP_MODULE_ID=ciscoCefMIB, cefCfgAccountingMap=cefCfgAccountingMap, cefSwitchingStatsTable=cefSwitchingStatsTable, cefSwitchingPunt2Host=cefSwitchingPunt2Host, cefPrefixExternalNRHCBytes=cefPrefixExternalNRHCBytes, cefFIBIpVersion=cefFIBIpVersion, cefStatsPrefixHCQueries=cefStatsPrefixHCQueries, cefIntNonrecursiveAccouting=cefIntNonrecursiveAccouting, cefFESelectionAdjInterface=cefFESelectionAdjInterface, cefCCGlobalAutoRepairEnabled=cefCCGlobalAutoRepairEnabled, cefPathEntry=cefPathEntry, cefPathInterface=cefPathInterface, cefCCQueriesIterated=cefCCQueriesIterated, cefAdjForwardingInfo=cefAdjForwardingInfo, cefResourceEntry=cefResourceEntry, cefStatsPrefixLen=cefStatsPrefixLen, cefAdjSummaryTable=cefAdjSummaryTable, cefStatsPrefixHCElements=cefStatsPrefixHCElements, cefPeerFIBStateChange=cefPeerFIBStateChange, cefInconsistencyRecId=cefInconsistencyRecId, cefPeerStateChangeNotifEnable=cefPeerStateChangeNotifEnable, cefLMPrefixAddr=cefLMPrefixAddr, cefAdjEncap=cefAdjEncap, cefAdjEntry=cefAdjEntry, cefPeerEntry=cefPeerEntry, cefNotifCntlGroup=cefNotifCntlGroup, cefPeerFIBTable=cefPeerFIBTable, cefAdjHCPkts=cefAdjHCPkts, cefInterface=cefInterface, cefIntSwitchingState=cefIntSwitchingState, cefNotifThrottlingInterval=cefNotifThrottlingInterval, cefFESelectionAdjNextHopAddr=cefFESelectionAdjNextHopAddr, cefInconsistencyReason=cefInconsistencyReason, cefLMPrefixDestAddr=cefLMPrefixDestAddr, cefCCGlobalEntry=cefCCGlobalEntry, cefPeerFIBStateChangeNotifEnable=cefPeerFIBStateChangeNotifEnable, cefMIBGroups=cefMIBGroups, cefPeerFIBOperState=cefPeerFIBOperState, ciscoCefMIBConform=ciscoCefMIBConform, cefPrefixPkts=cefPrefixPkts, cefCfgLoadSharingID=cefCfgLoadSharingID, cefCfgDistributionAdminState=cefCfgDistributionAdminState, cefAdjPkts=cefAdjPkts, cefStatsPrefixHCInserts=cefStatsPrefixHCInserts, cefSwitchingHCPunt=cefSwitchingHCPunt)
arr = [[1, 2, 3, 12], [4, 5, 6, 45], [7, 8, 9, 78]] x = 3 print("start") w = len(arr) h = len(arr[0]) i = 0 j = 0 while i < w and j < h and arr[i][j] < x: ib = i ie = w - 1 i2 = -1 while ib < ie: i2n = (ie - ib) // 2 if i2 == i2n: break i2 = i2n print("i2 ", i2, ib, ie) if arr[i2][j] < x: ib = i2 elif arr[i2][j] == x: print("present") break else: ie = i2 while arr[i2][j] > x and i2 >= i: print("i back") i2 -= 1 if arr[i2][j] == x: print("present") break elif arr[i2][j] > x: print("not present") i = i2 print("i ", i) jb = j je = h - 1 j2 = -1 while jb < je: j2n = (je - jb) // 2 print("j2n ", j2n) if j2 == j2n: print("b") break j2 = j2n print("j2 ", j2, jb, je) if arr[i][j2] < x: jb = j2 elif arr[i][j2] == x: print("present") break else: je = j2 while arr[i][j2] > x and j2 >= j: print("j back") j2 -= 1 if arr[i][j2] == x: print("present") elif arr[i][j2] > x: print("not present") j = j2 print("j ", j2) print("present" if arr[i][j] == x else "not present")
arr = [[1, 2, 3, 12], [4, 5, 6, 45], [7, 8, 9, 78]] x = 3 print('start') w = len(arr) h = len(arr[0]) i = 0 j = 0 while i < w and j < h and (arr[i][j] < x): ib = i ie = w - 1 i2 = -1 while ib < ie: i2n = (ie - ib) // 2 if i2 == i2n: break i2 = i2n print('i2 ', i2, ib, ie) if arr[i2][j] < x: ib = i2 elif arr[i2][j] == x: print('present') break else: ie = i2 while arr[i2][j] > x and i2 >= i: print('i back') i2 -= 1 if arr[i2][j] == x: print('present') break elif arr[i2][j] > x: print('not present') i = i2 print('i ', i) jb = j je = h - 1 j2 = -1 while jb < je: j2n = (je - jb) // 2 print('j2n ', j2n) if j2 == j2n: print('b') break j2 = j2n print('j2 ', j2, jb, je) if arr[i][j2] < x: jb = j2 elif arr[i][j2] == x: print('present') break else: je = j2 while arr[i][j2] > x and j2 >= j: print('j back') j2 -= 1 if arr[i][j2] == x: print('present') elif arr[i][j2] > x: print('not present') j = j2 print('j ', j2) print('present' if arr[i][j] == x else 'not present')
''' Min Depth of Binary Tree Asked in: Facebook, Amazon https://www.interviewbit.com/problems/min-depth-of-binary-tree/ Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf node. NOTE : The path has to end on a leaf node. Example : 1 / 2 min depth = 2. ''' # Definition for a binary tree node # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None def minDepth(A): if not A: return 0 min_depth = None stack = [(A, 1)] while stack: n, d = stack.pop() if not n.left and not n.right: if min_depth is None or min_depth>d: min_depth = d if n.right: stack.append((n.right, d+1)) if n.left: stack.append((n.left, d+1)) return min_depth
""" Min Depth of Binary Tree Asked in: Facebook, Amazon https://www.interviewbit.com/problems/min-depth-of-binary-tree/ Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf node. NOTE : The path has to end on a leaf node. Example : 1 / 2 min depth = 2. """ def min_depth(A): if not A: return 0 min_depth = None stack = [(A, 1)] while stack: (n, d) = stack.pop() if not n.left and (not n.right): if min_depth is None or min_depth > d: min_depth = d if n.right: stack.append((n.right, d + 1)) if n.left: stack.append((n.left, d + 1)) return min_depth
def selection_sort(nums): # This value of i corresponds to how many values were sorted for i in range(len(nums)): # We assume that the first item of the unsorted segment is the smallest lowest_value_index = i # This loop iterates over the unsorted items for j in range(i + 1, len(nums)): if nums[j] < nums[lowest_value_index]: lowest_value_index = j # Swap values of the lowest unsorted element with the first unsorted # element nums[i], nums[lowest_value_index] = nums[lowest_value_index], nums[i] # Verify it works random_list_of_nums = [12, 8, 3, 20, 11] selection_sort(random_list_of_nums) print(random_list_of_nums)
def selection_sort(nums): for i in range(len(nums)): lowest_value_index = i for j in range(i + 1, len(nums)): if nums[j] < nums[lowest_value_index]: lowest_value_index = j (nums[i], nums[lowest_value_index]) = (nums[lowest_value_index], nums[i]) random_list_of_nums = [12, 8, 3, 20, 11] selection_sort(random_list_of_nums) print(random_list_of_nums)
# Q: A Pythagorean triplet is a set of three natural numbers, a < b < c, for which, a^2 + b^2 = c^2 # For example, 32 + 42 = 9 + 16 = 25 = 52. # # There exists exactly one Pythagorean triplet for which a + b + c = 1000, Find the product abc. def main(): print (find_abc(1000)) # We do this in a function to avoid breaking from nested loops and instead just return def find_abc(total): # since a, b, c are natural numbers and a+b+c = 1000, they all cannot be larger than 998 or less than 1 for a in range(1, total - 2): # -2 bc the minimum value for b and c is 1 (natural numbers) for b in range(a, total - 2): c = total - a - b if a * a + b * b == c * c: return (a*b*c) # the question specifies there exists exactly one case so we can return at this point if __name__ == '__main__': main()
def main(): print(find_abc(1000)) def find_abc(total): for a in range(1, total - 2): for b in range(a, total - 2): c = total - a - b if a * a + b * b == c * c: return a * b * c if __name__ == '__main__': main()
annual_salary = float(input('Enter your annual salary: ')) portion_saved = float(input('Enter the percent of your salary to save, as a ' 'decimal: ')) total_cost = float(input('Enter cost of your dream home: ')) portion_down_payment = 0.25 current_savings = 0 r = 0.04 months = 0 portion_monthly_salary = portion_saved * annual_salary / 12 while current_savings < portion_down_payment * total_cost: return_on_investment = current_savings * r / 12 current_savings += return_on_investment + portion_monthly_salary months += 1 print('Number of months: %d' % months)
annual_salary = float(input('Enter your annual salary: ')) portion_saved = float(input('Enter the percent of your salary to save, as a decimal: ')) total_cost = float(input('Enter cost of your dream home: ')) portion_down_payment = 0.25 current_savings = 0 r = 0.04 months = 0 portion_monthly_salary = portion_saved * annual_salary / 12 while current_savings < portion_down_payment * total_cost: return_on_investment = current_savings * r / 12 current_savings += return_on_investment + portion_monthly_salary months += 1 print('Number of months: %d' % months)
def greet(name): get_greet = f"Hi, {name}" return get_greet greeting = greet("Ahmed") print(greeting)
def greet(name): get_greet = f'Hi, {name}' return get_greet greeting = greet('Ahmed') print(greeting)
def removeElement(nums, val): newArray = [n for n in nums if n != val] print(newArray) print(len(newArray))
def remove_element(nums, val): new_array = [n for n in nums if n != val] print(newArray) print(len(newArray))
class Node: # Constructor to create a new node def __init__(self, data): self.data = data # Pointer to data self.next = None # Initialize next as null def deleteNode(head, position): if head is None: return head elif position == 0: return head.next prev_node = head current_node = head current_position = 0 while current_position < position: current_position = current_position + 1 prev_node = current_node current_node = current_node.next prev_node.next = current_node.next return head
class Node: def __init__(self, data): self.data = data self.next = None def delete_node(head, position): if head is None: return head elif position == 0: return head.next prev_node = head current_node = head current_position = 0 while current_position < position: current_position = current_position + 1 prev_node = current_node current_node = current_node.next prev_node.next = current_node.next return head
# -*- coding: utf-8 -*- L = [ ['Apple', 'Google', 'Microsoft'], ['Java', 'Python', 'Ruby', 'PHP'], ['Adam', 'Bart', 'Lisa'] ] print(L[0][0]) print(L[1][1]) print(L[2][2]) sum = 0 for x in range(101): sum = sum + x print(sum) sum1 = 0 n = 99 while n>0: sum1 = sum1 + n n = n -2 print(sum1) L = ['Bart', 'Lisa', 'Adam'] for name in L: print('Hello , %s !'%(name)) n1 = 255 n2 = 1000 print(hex(n1)) print(hex(n2))
l = [['Apple', 'Google', 'Microsoft'], ['Java', 'Python', 'Ruby', 'PHP'], ['Adam', 'Bart', 'Lisa']] print(L[0][0]) print(L[1][1]) print(L[2][2]) sum = 0 for x in range(101): sum = sum + x print(sum) sum1 = 0 n = 99 while n > 0: sum1 = sum1 + n n = n - 2 print(sum1) l = ['Bart', 'Lisa', 'Adam'] for name in L: print('Hello , %s !' % name) n1 = 255 n2 = 1000 print(hex(n1)) print(hex(n2))
ori_file = '/home/unaguo/hanson/data/landmark/WFLW191104/train_data/300W_LP.txt' save_file = '/home/unaguo/hanson/data/landmark/WFLW191104/train_data/300W_LP1.txt' lable = '0' ori_lines = [] with open(ori_file, 'r')as f: ori_lines = f.readlines() with open(save_file, 'w')as f: for line in ori_lines: line = line.strip() new_line = '{} {}\n'.format(line, lable) f.write(new_line)
ori_file = '/home/unaguo/hanson/data/landmark/WFLW191104/train_data/300W_LP.txt' save_file = '/home/unaguo/hanson/data/landmark/WFLW191104/train_data/300W_LP1.txt' lable = '0' ori_lines = [] with open(ori_file, 'r') as f: ori_lines = f.readlines() with open(save_file, 'w') as f: for line in ori_lines: line = line.strip() new_line = '{} {}\n'.format(line, lable) f.write(new_line)
class QueryParams: def _append_query_list(query_list, key, values): if isinstance(values, list): for value in values: QueryParams._append_query_list(query_list, key, value) elif isinstance(values, bool): if values == True: QueryParams._append_query_list(query_list, key, "true") else: QueryParams._append_query_list(query_list, key, "false") else: query_list.append((key, values)) def process_kwargs(**kwargs): query_list = [] for key in kwargs.keys(): values = kwargs[key] QueryParams._append_query_list(query_list, key, values) return query_list
class Queryparams: def _append_query_list(query_list, key, values): if isinstance(values, list): for value in values: QueryParams._append_query_list(query_list, key, value) elif isinstance(values, bool): if values == True: QueryParams._append_query_list(query_list, key, 'true') else: QueryParams._append_query_list(query_list, key, 'false') else: query_list.append((key, values)) def process_kwargs(**kwargs): query_list = [] for key in kwargs.keys(): values = kwargs[key] QueryParams._append_query_list(query_list, key, values) return query_list
def partition(arr, low, high): i = low -1 pivot = arr[high] for j in range(low, high): if arr[j] < pivot: i+=1 arr[i], arr[j] =arr[j], arr[i] arr[i+1], arr[high] = arr[high], arr[i+1] return i+1 def quicksort(arr, low,high): if low < high: pi = partition(arr, low,high) quickSort(arr, low, pi-1) quickSort(arr, pi+1, high)
def partition(arr, low, high): i = low - 1 pivot = arr[high] for j in range(low, high): if arr[j] < pivot: i += 1 (arr[i], arr[j]) = (arr[j], arr[i]) (arr[i + 1], arr[high]) = (arr[high], arr[i + 1]) return i + 1 def quicksort(arr, low, high): if low < high: pi = partition(arr, low, high) quick_sort(arr, low, pi - 1) quick_sort(arr, pi + 1, high)
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2019-07-07 12:07:46 # @Author : Lewis Tian ([email protected]) # @Link : github.com/taseikyo # @Version : Python3.7 # https://projecteuler.net/problem=1 def main(): return sum([i for i in range(1, 1000) if (i % 3 == 0) or (i % 5 == 0)]) if __name__ == "__main__": # 233168 print(main())
def main(): return sum([i for i in range(1, 1000) if i % 3 == 0 or i % 5 == 0]) if __name__ == '__main__': print(main())
def line(a, b): def para(x): return a * x + b return para def count(x=0): def incre(): nonlocal x x += 1 return x return incre def my_avg(): data = list() def add(num): data.append(num) return sum(data)/len(data) return add if __name__ == '__main__': line1 = line(-2, 1) line2 = line(3, 6) c1 = count(5) c2 = count(50) avg = my_avg() print([line1(x) for x in range(-10, 10)]) print([line2(x) for x in range(-10, 10)]) for i in range(20): print(c1(), end=" ") print(c2(), end=" ") print(avg(line2(i)))
def line(a, b): def para(x): return a * x + b return para def count(x=0): def incre(): nonlocal x x += 1 return x return incre def my_avg(): data = list() def add(num): data.append(num) return sum(data) / len(data) return add if __name__ == '__main__': line1 = line(-2, 1) line2 = line(3, 6) c1 = count(5) c2 = count(50) avg = my_avg() print([line1(x) for x in range(-10, 10)]) print([line2(x) for x in range(-10, 10)]) for i in range(20): print(c1(), end=' ') print(c2(), end=' ') print(avg(line2(i)))
class Solution: def monotoneIncreasingDigits(self, n: int) -> int: if n < 10: return n break_point = None digits = [int(el) for el in str(n)] for i in range(len(digits) - 1): if digits[i] > digits[i + 1]: break_point = i break if break_point is None: return n # if break point is in a consecutive series of numbers, move it to the # index of first element of the abovesaid series of numbers while i > 0 and digits[i] == digits[i - 1]: break_point -= 1 i -= 1 digits[break_point] -= 1 digits[break_point + 1:] = [9] * (len(digits) - break_point - 1) return int("".join(map(str, digits)))
class Solution: def monotone_increasing_digits(self, n: int) -> int: if n < 10: return n break_point = None digits = [int(el) for el in str(n)] for i in range(len(digits) - 1): if digits[i] > digits[i + 1]: break_point = i break if break_point is None: return n while i > 0 and digits[i] == digits[i - 1]: break_point -= 1 i -= 1 digits[break_point] -= 1 digits[break_point + 1:] = [9] * (len(digits) - break_point - 1) return int(''.join(map(str, digits)))
crypt_words = input().split() for word in crypt_words: first_number = "" second_part = "" for letter in word: if 48 <= ord(letter) <= 57: first_number += letter else: second_part += letter first_letter = chr(int(first_number)) half = first_letter + second_part current_list = [value for index, value in enumerate(half)] current_list[1], current_list[-1] = current_list[-1], current_list[1] print(''.join(current_list), end=" ")
crypt_words = input().split() for word in crypt_words: first_number = '' second_part = '' for letter in word: if 48 <= ord(letter) <= 57: first_number += letter else: second_part += letter first_letter = chr(int(first_number)) half = first_letter + second_part current_list = [value for (index, value) in enumerate(half)] (current_list[1], current_list[-1]) = (current_list[-1], current_list[1]) print(''.join(current_list), end=' ')
PDAC_MODES = { "debug" : { "session-id" : "debug", "sources" : { "audio" : { "active" : False }, "video" : { "active" : True }, "heartrate" : { "active" : False }, }, "inference" : None, "transform" : False, "sinks" : { "rstp" : { "active" : True }, "file" : { "active" : False }, "window" : { "active" : False }, } }, "rtsp-only" : { "session-id" : "live", "sources" : { "audio" : { "active" : False }, "video" : { "active" : True }, "heartrate" : { "active" : False }, }, "inference" : None, "transform" : False, "sinks" : { "rstp" : { "active" : True }, "file" : { "active" : False }, "window" : { "active" : False }, } }, "face-extraction-rtsp" : { "session-id" : "face-extraction", "sources" : { "audio" : { "active" : False }, "video" : { "active" : True }, "heartrate" : { "active" : False }, }, "inference" : "face-extraction", "transform" : True, "sinks" : { "rstp" : { "active" : True }, "file" : { "active" : False }, "window" : { "active" : False }, } }, "pose-detection-rtsp" : { "session-id" : "pose-detection", "sources" : { "audio" : { "active" : False }, "video" : { "active" : True }, "heartrate" : { "active" : False }, }, "inference" : "pose-detection", "transform" : None, "sinks" : { "rstp" : { "active" : True }, "file" : { "active" : False }, "window" : { "active" : False }, } } }
pdac_modes = {'debug': {'session-id': 'debug', 'sources': {'audio': {'active': False}, 'video': {'active': True}, 'heartrate': {'active': False}}, 'inference': None, 'transform': False, 'sinks': {'rstp': {'active': True}, 'file': {'active': False}, 'window': {'active': False}}}, 'rtsp-only': {'session-id': 'live', 'sources': {'audio': {'active': False}, 'video': {'active': True}, 'heartrate': {'active': False}}, 'inference': None, 'transform': False, 'sinks': {'rstp': {'active': True}, 'file': {'active': False}, 'window': {'active': False}}}, 'face-extraction-rtsp': {'session-id': 'face-extraction', 'sources': {'audio': {'active': False}, 'video': {'active': True}, 'heartrate': {'active': False}}, 'inference': 'face-extraction', 'transform': True, 'sinks': {'rstp': {'active': True}, 'file': {'active': False}, 'window': {'active': False}}}, 'pose-detection-rtsp': {'session-id': 'pose-detection', 'sources': {'audio': {'active': False}, 'video': {'active': True}, 'heartrate': {'active': False}}, 'inference': 'pose-detection', 'transform': None, 'sinks': {'rstp': {'active': True}, 'file': {'active': False}, 'window': {'active': False}}}}
# error lib? def typeError(expected, value): raise TypeError('expected \n |> %s \n but found \n |> %s' % (expected, type(value)))
def type_error(expected, value): raise type_error('expected \n |> %s \n but found \n |> %s' % (expected, type(value)))
n = int(input()) ar = list(map(int, input().split())) print(ar.count(max(ar)))
n = int(input()) ar = list(map(int, input().split())) print(ar.count(max(ar)))
def main(): name = "John Doe" age = 40 print("The user's name is", name, "and his/her age is", age, end=".\n") print("Next year he/she will be", age+1, "years old.", end="\n\n") print("The characters of the user's name are:") for i in range(len(name)): print(name[i].upper(), end=" ") print("\nand the squared age is", age**2) print("\nIf we replace the user's character O by A we get", name.upper().replace("O","A")) if __name__ == '__main__': main()
def main(): name = 'John Doe' age = 40 print("The user's name is", name, 'and his/her age is', age, end='.\n') print('Next year he/she will be', age + 1, 'years old.', end='\n\n') print("The characters of the user's name are:") for i in range(len(name)): print(name[i].upper(), end=' ') print('\nand the squared age is', age ** 2) print("\nIf we replace the user's character O by A we get", name.upper().replace('O', 'A')) if __name__ == '__main__': main()
a = input() b = int(input()) def calculate_price(product, qty): PRICE_LIST = { "coffee": 1.50, "water": 1.00, "coke": 1.40, "snacks": 2.00 } return '{:.2f}'.format(PRICE_LIST[product] * qty) print(calculate_price(a, b))
a = input() b = int(input()) def calculate_price(product, qty): price_list = {'coffee': 1.5, 'water': 1.0, 'coke': 1.4, 'snacks': 2.0} return '{:.2f}'.format(PRICE_LIST[product] * qty) print(calculate_price(a, b))
class JsonRPCError(Exception): def __init__(self, request_id, code, message, data, is_notification=False): super().__init__(message) self.request_id = request_id self.code = code self.message = message self.data = data self.is_notification = is_notification def format(self, request=None): if request: if 'id' not in request: self.is_notification = True else: self.request_id = request['id'] # if the request was a notification, return nothing if self.is_notification: return None return { "jsonrpc": "2.0", "error": { "code": self.code, "message": self.message, "data": self.data, }, "id": self.request_id } def __repr__(self): return "Json RPC Error ({}): {}".format(self.code, self.message) class JsonRPCInvalidParamsError(JsonRPCError): def __init__(self, *, request=None, data=None): super().__init__(request.get('id') if request else None, -32602, "Invalid params", data, 'id' not in request if request else False) class JsonRPCInternalError(JsonRPCError): def __init__(self, *, request=None, data=None): super().__init__(request.get('id') if request else None, -32603, "Internal Error", data, 'id' not in request if request else False)
class Jsonrpcerror(Exception): def __init__(self, request_id, code, message, data, is_notification=False): super().__init__(message) self.request_id = request_id self.code = code self.message = message self.data = data self.is_notification = is_notification def format(self, request=None): if request: if 'id' not in request: self.is_notification = True else: self.request_id = request['id'] if self.is_notification: return None return {'jsonrpc': '2.0', 'error': {'code': self.code, 'message': self.message, 'data': self.data}, 'id': self.request_id} def __repr__(self): return 'Json RPC Error ({}): {}'.format(self.code, self.message) class Jsonrpcinvalidparamserror(JsonRPCError): def __init__(self, *, request=None, data=None): super().__init__(request.get('id') if request else None, -32602, 'Invalid params', data, 'id' not in request if request else False) class Jsonrpcinternalerror(JsonRPCError): def __init__(self, *, request=None, data=None): super().__init__(request.get('id') if request else None, -32603, 'Internal Error', data, 'id' not in request if request else False)
# # Sets (kopas) # # unordered # # unique items # # use: get rid of duplicates, membership testing # # https://docs.python.org/3/tutorial/datastructures.html#sets # # https://realpython.com/python-sets/ # chars = set("abracadabra") # you pass an iterable to set(iterablehere) # print(chars) # print(len(chars)) # print('a' in chars) # set membership check will be faster than in lists and tuples # print('e' in chars) # # # # 'bl' in chars # print("".join(chars)) # so with join we will create a string from set # print(sorted("".join(chars))) # print("".join(sorted(chars))) # # # print(list(chars)) # # # # # recipe to sort characters unique characters into a list an then make a string # print("".join(sorted(set("abraValdiscadbra")))) # # str(chars) # not much point in this one # words = ['potato', 'potatoes', 'tomato', 'Valdis', 'potato'] # unique_words = set(words) # print(unique_words) # # # unique_words[1] # 'set' object is not subscriptable # # list_unique_words = list(unique_words) # # print(list_unique_words) # # # difference between set() and {setitem} # new_set = {'kartupelis'} # so not a dictionary but set # print(new_set) # food_item_set = set(['kartupelis']) # print(food_item_set) # chars = set("kartupelis") # you pass an iterable to set(iterablehere) # print(chars) # print(new_set == food_item_set) # # above two sets are equal # # food_set = set('katrupelis') # # print(food_set, sorted(food_set)) numbers = set(range(12)) print(numbers) n3_7 = set(range(3, 8)) print(n3_7) # # 4 in numbers # # 4 in n3_7 # # # below two are equal # print(n3_7.issubset(numbers)) # print(n3_7 <= numbers) # this lets you have equal sets # print(n3_7 < numbers )# this will be false if both sets are equal # # numbers <= numbers # # numbers < numbers # # # below two are euqal # # numbers.issuperset(n3_7) # # numbers >= n3_7 # # numbers > n3_7 n5_9 = set(range(5, 10)) print(n5_9) # # # below two are equal print(n3_7 | n5_9) print(n3_7.union(n5_9)) n3_9 = n3_7 | n5_9 # i could chain union more sets here print(n3_9) # # n3_7 | n5_9 | set(range(30, 35)) # # # below two are equal n5_7 = n3_7 & n5_9 print(n3_7.intersection(n5_9)) print(n5_7) n3_4 = n3_7 - n5_9 # this is not simmetrical print(n3_4) n8_9 = n5_9 - n3_7 # this is not simmetrical print(n8_9, n5_9.difference(n3_7)) # # # simmetrical difference n_sim = n3_7 ^ n5_9 print(n_sim, n3_7.symmetric_difference(n5_9)) # # n3_4.isdisjoint(n8_9) # # print(n_sim) n_sim.update([4, 1, 6, 1, 6, 13, 2]) print(n_sim) n_sim.update([-5, 5, 3, 6, 6, 8, 99, 9, 9]) print(n_sim) n_sim.remove(13) # Raises KeyError if you try to remove nonexistant value print(n_sim) n_sim.discard(13) # No error print(n_sim) new_set = n3_4 | n3_9 | set([45,7,4,7,6]) | n_sim print(new_set) unsorted_list = list(new_set) print(unsorted_list) new_list = sorted(new_set) print(new_list) # # random_pop = n_sim.pop() # # print(random_pop, n_sim) # # random_pop = n_sim.pop() # # print(random_pop, n_sim) # # n_sim.clear() # # print(n_sim) # # there is also a frozenset which is just like set, but immutable
numbers = set(range(12)) print(numbers) n3_7 = set(range(3, 8)) print(n3_7) n5_9 = set(range(5, 10)) print(n5_9) print(n3_7 | n5_9) print(n3_7.union(n5_9)) n3_9 = n3_7 | n5_9 print(n3_9) n5_7 = n3_7 & n5_9 print(n3_7.intersection(n5_9)) print(n5_7) n3_4 = n3_7 - n5_9 print(n3_4) n8_9 = n5_9 - n3_7 print(n8_9, n5_9.difference(n3_7)) n_sim = n3_7 ^ n5_9 print(n_sim, n3_7.symmetric_difference(n5_9)) n_sim.update([4, 1, 6, 1, 6, 13, 2]) print(n_sim) n_sim.update([-5, 5, 3, 6, 6, 8, 99, 9, 9]) print(n_sim) n_sim.remove(13) print(n_sim) n_sim.discard(13) print(n_sim) new_set = n3_4 | n3_9 | set([45, 7, 4, 7, 6]) | n_sim print(new_set) unsorted_list = list(new_set) print(unsorted_list) new_list = sorted(new_set) print(new_list)
class Skill: def __init__(self, skill_data: dict): self.id = skill_data['id'] self.name = skill_data['skill_name'] self.explain = skill_data['explain'] self.en_explain = skill_data['explain_en'] self.skill_type = skill_data['skill_type'] self.judge_type = skill_data['judge_type'] self.trigger_type = skill_data['skill_trigger_type'] self.trigger_value = skill_data['skill_trigger_value'] self.cutin_type = skill_data['cutin_type'] self.condition = skill_data['condition'] self.value = skill_data['value'] self.value_2 = skill_data['value_2'] self.max_chance = skill_data['max_chance'] self.max_duration = skill_data['max_duration'] self.skill_type_id = skill_data['skill_type_id'] self.effect_length = skill_data['effect_length'] self.proc_chance = skill_data['proc_chance'] class LeadSkill: def __init__(self, skill_data: dict): self.id = skill_data['id'] self.name = skill_data['name'] self.explain = skill_data['explain'] self.en_explain = skill_data['explain_en'] self.type = skill_data['type'] self.need_cute = bool(skill_data['need_cute']) self.need_cool = bool(skill_data['need_cool']) self.need_passion = bool(skill_data['need_passion']) self.target_attribute = skill_data['target_attribute'] self.target_attribute_2 = skill_data['target_attribute_2'] self.target_param = skill_data['target_param'] self.target_param_2 = skill_data['target_param_2'] self.up_type = skill_data['up_type'] self.up_type_2 = skill_data['up_type_2'] self.up_value = skill_data['up_value'] self.up_value_2 = skill_data['up_value_2'] self.special_id = skill_data['special_id'] self.need_chara = skill_data['need_chara']
class Skill: def __init__(self, skill_data: dict): self.id = skill_data['id'] self.name = skill_data['skill_name'] self.explain = skill_data['explain'] self.en_explain = skill_data['explain_en'] self.skill_type = skill_data['skill_type'] self.judge_type = skill_data['judge_type'] self.trigger_type = skill_data['skill_trigger_type'] self.trigger_value = skill_data['skill_trigger_value'] self.cutin_type = skill_data['cutin_type'] self.condition = skill_data['condition'] self.value = skill_data['value'] self.value_2 = skill_data['value_2'] self.max_chance = skill_data['max_chance'] self.max_duration = skill_data['max_duration'] self.skill_type_id = skill_data['skill_type_id'] self.effect_length = skill_data['effect_length'] self.proc_chance = skill_data['proc_chance'] class Leadskill: def __init__(self, skill_data: dict): self.id = skill_data['id'] self.name = skill_data['name'] self.explain = skill_data['explain'] self.en_explain = skill_data['explain_en'] self.type = skill_data['type'] self.need_cute = bool(skill_data['need_cute']) self.need_cool = bool(skill_data['need_cool']) self.need_passion = bool(skill_data['need_passion']) self.target_attribute = skill_data['target_attribute'] self.target_attribute_2 = skill_data['target_attribute_2'] self.target_param = skill_data['target_param'] self.target_param_2 = skill_data['target_param_2'] self.up_type = skill_data['up_type'] self.up_type_2 = skill_data['up_type_2'] self.up_value = skill_data['up_value'] self.up_value_2 = skill_data['up_value_2'] self.special_id = skill_data['special_id'] self.need_chara = skill_data['need_chara']
#!/usr/bin/env python # -*- coding: utf-8 -*- spinMultiplicity = 2 energy = { 'BMK/cbsb7': GaussianLog('CH3bmk.log'), 'CCSD(T)-F12/cc-pVTZ-F12': MolproLog('CH3bmk_f12.out'), } frequencies = GaussianLog('CH3bmkfreq.log') rotors = []
spin_multiplicity = 2 energy = {'BMK/cbsb7': gaussian_log('CH3bmk.log'), 'CCSD(T)-F12/cc-pVTZ-F12': molpro_log('CH3bmk_f12.out')} frequencies = gaussian_log('CH3bmkfreq.log') rotors = []
class Solution: def largestRectangleArea(self, heights: list[int]) -> int: heights.append(0) stack: list[int] = [-1] ans = 0 for i, h in enumerate(heights): while stack and h <= heights[stack[-1]]: curH = heights[stack.pop()] if not stack: break curW = i-stack[-1]-1 ans = max(ans, curW*curH) stack.append(i) return ans
class Solution: def largest_rectangle_area(self, heights: list[int]) -> int: heights.append(0) stack: list[int] = [-1] ans = 0 for (i, h) in enumerate(heights): while stack and h <= heights[stack[-1]]: cur_h = heights[stack.pop()] if not stack: break cur_w = i - stack[-1] - 1 ans = max(ans, curW * curH) stack.append(i) return ans
def solve(x: int) -> int: x = y # err z = x + 1 return y # err
def solve(x: int) -> int: x = y z = x + 1 return y
number = int(input()) counter = int(input()) number_add = number list_numbers = [number] for i in range(counter - 1): number_add += number list_numbers.append(number_add) print(list_numbers)
number = int(input()) counter = int(input()) number_add = number list_numbers = [number] for i in range(counter - 1): number_add += number list_numbers.append(number_add) print(list_numbers)
def plot_data(data, ax, keys=None, width=0.5, colors=None): if keys is None: keys = ['Latent Test error', 'Test Information Loss'] if colors is None: colors = ['blue', 'red'] for i, entry in enumerate(data): h1 = entry[keys[0]] h2 = h1 + entry[keys[1]] ax.fill_between([i - width / 2.0, i + width / 2.0], [0, 0], [h1] * 2, label=keys[0] if i == 0 else None, color=colors[0]) ax.fill_between([i - width / 2.0, i + width / 2.0], [h1] * 2, [h2] * 2, label=keys[1] if i == 0 else None, color=colors[1]) ax.set_ylim(0) ax.set_xticks(range(len(data))) ax.set_xticklabels([entry['Model'] for entry in data], rotation=90) ax.set_xlim(-1, 10) ax.set_ylabel('Test error', size=15) ax.legend()
def plot_data(data, ax, keys=None, width=0.5, colors=None): if keys is None: keys = ['Latent Test error', 'Test Information Loss'] if colors is None: colors = ['blue', 'red'] for (i, entry) in enumerate(data): h1 = entry[keys[0]] h2 = h1 + entry[keys[1]] ax.fill_between([i - width / 2.0, i + width / 2.0], [0, 0], [h1] * 2, label=keys[0] if i == 0 else None, color=colors[0]) ax.fill_between([i - width / 2.0, i + width / 2.0], [h1] * 2, [h2] * 2, label=keys[1] if i == 0 else None, color=colors[1]) ax.set_ylim(0) ax.set_xticks(range(len(data))) ax.set_xticklabels([entry['Model'] for entry in data], rotation=90) ax.set_xlim(-1, 10) ax.set_ylabel('Test error', size=15) ax.legend()
#!/usr/bin/env python3 # SPDX-License-Identifier: BSD-3-Clause # # Constants for MIDI notes. # # For example: # F# in Octave 3: O3.Fs # C# in Octave -2: On2.Cs # D-flat in Octave 1: O1.Db # D in Octave 0: O0.D # E in Octave 2: O2.E class Octave: def __init__(self, base): self.C = base self.Cs = base + 1 self.Db = base + 1 self.D = base + 2 self.Ds = base + 3 self.Eb = base + 3 self.E = base + 4 self.F = base + 5 self.Fs = base + 6 self.Gb = base + 6 self.G = base + 7 self.Gs = base + 8 self.Ab = base + 8 self.A = base + 9 self.As = base + 10 self.Bb = base + 10 self.B = base + 11 On5 = Octave(0) # Octave -5 On4 = Octave(12) # Octave -4 On3 = Octave(24) # Octave -3 On2 = Octave(36) # Octave -2 On1 = Octave(48) # Octave -1 O0 = Octave(60) # Octave 0 O1 = Octave(72) # Octave 1 O2 = Octave(84) # Octave 2 O3 = Octave(96) # Octave 3 O4 = Octave(108) # Octave 4 O5 = Octave(120) # Octave 5 # Given a MIDI note number, return a note definition in terms of the # constants above. def def_for_note(note): OCTAVES = [ "On5", "On4", "On3", "On2", "On1", "O0", "O1", "O2", "O3", "O4", "O5", ] NOTES = ["C", "Cs", "D", "Ds", "E", "F", "Fs", "G", "Gs", "A", "As", "B"] return "%s.%s" % (OCTAVES[note // 12], NOTES[note % 12])
class Octave: def __init__(self, base): self.C = base self.Cs = base + 1 self.Db = base + 1 self.D = base + 2 self.Ds = base + 3 self.Eb = base + 3 self.E = base + 4 self.F = base + 5 self.Fs = base + 6 self.Gb = base + 6 self.G = base + 7 self.Gs = base + 8 self.Ab = base + 8 self.A = base + 9 self.As = base + 10 self.Bb = base + 10 self.B = base + 11 on5 = octave(0) on4 = octave(12) on3 = octave(24) on2 = octave(36) on1 = octave(48) o0 = octave(60) o1 = octave(72) o2 = octave(84) o3 = octave(96) o4 = octave(108) o5 = octave(120) def def_for_note(note): octaves = ['On5', 'On4', 'On3', 'On2', 'On1', 'O0', 'O1', 'O2', 'O3', 'O4', 'O5'] notes = ['C', 'Cs', 'D', 'Ds', 'E', 'F', 'Fs', 'G', 'Gs', 'A', 'As', 'B'] return '%s.%s' % (OCTAVES[note // 12], NOTES[note % 12])
class Task: def __init__(self, id, title): self.title = title self.id = id self.status = "new"
class Task: def __init__(self, id, title): self.title = title self.id = id self.status = 'new'
def problem(a): try: return float(a) * 50 + 6 except ValueError: return "Error"
def problem(a): try: return float(a) * 50 + 6 except ValueError: return 'Error'
class AccountInfo(): def __init__(self, row_id, email, password, cookies, status_id): self.row_id = row_id self.email = email self.password = password self.cookies = cookies self.status_id = status_id def __repr__(self): return f"id: {self.row_id}, email: {self.email}, password: {self.password}, status_id: {self.status_id}"
class Accountinfo: def __init__(self, row_id, email, password, cookies, status_id): self.row_id = row_id self.email = email self.password = password self.cookies = cookies self.status_id = status_id def __repr__(self): return f'id: {self.row_id}, email: {self.email}, password: {self.password}, status_id: {self.status_id}'
class ssdict: def __init__(self, ss, param, collectiontype): factory = { 'projects': self.getProjects, 'reviews': self.getReviews, 'items': self.getItems, 'comments': self.getComments, } func = factory[collectiontype] self.collection = func(ss, param) def getProjects(self, ss, accountid): self.intro = '\nProjects in this account:\n' return ss.getProjects(accountid)['objects'] def getReviews(self, ss, projectid): self.intro = '\nReviews in the Project Under Test:\n' return ss.get_reviews_by_project_id(projectid)['objects'] def getItems(self, ss, reviewid): self.intro = '\nItems in the Review Under Test:\n' return ss.get_media_by_review_id(reviewid)['objects'] def getComments(self, ss, itemid): self.intro = '\nComments in the Item Under Test:\n' return ss.get_annotations(itemid)['objects'] def getCatalogue(self): catalogue = self.intro for item in self.collection: catalogue +='\t' for prop in ['id','name','text']: if prop in item: catalogue += str(item[prop]) + ' ' catalogue += '\n' catalogue += '\n' return catalogue
class Ssdict: def __init__(self, ss, param, collectiontype): factory = {'projects': self.getProjects, 'reviews': self.getReviews, 'items': self.getItems, 'comments': self.getComments} func = factory[collectiontype] self.collection = func(ss, param) def get_projects(self, ss, accountid): self.intro = '\nProjects in this account:\n' return ss.getProjects(accountid)['objects'] def get_reviews(self, ss, projectid): self.intro = '\nReviews in the Project Under Test:\n' return ss.get_reviews_by_project_id(projectid)['objects'] def get_items(self, ss, reviewid): self.intro = '\nItems in the Review Under Test:\n' return ss.get_media_by_review_id(reviewid)['objects'] def get_comments(self, ss, itemid): self.intro = '\nComments in the Item Under Test:\n' return ss.get_annotations(itemid)['objects'] def get_catalogue(self): catalogue = self.intro for item in self.collection: catalogue += '\t' for prop in ['id', 'name', 'text']: if prop in item: catalogue += str(item[prop]) + ' ' catalogue += '\n' catalogue += '\n' return catalogue
# # PySNMP MIB module CISCOSB-ippreflist-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCOSB-ippreflist-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 18:08:08 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") ConstraintsUnion, ConstraintsIntersection, SingleValueConstraint, ValueSizeConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ConstraintsIntersection", "SingleValueConstraint", "ValueSizeConstraint", "ValueRangeConstraint") switch001, = mibBuilder.importSymbols("CISCOSB-MIB", "switch001") InetVersion, InetAddressType, InetAddress, InetZoneIndex, InetAddressPrefixLength = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetVersion", "InetAddressType", "InetAddress", "InetZoneIndex", "InetAddressPrefixLength") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Integer32, TimeTicks, NotificationType, ModuleIdentity, Gauge32, Bits, IpAddress, ObjectIdentity, Counter32, iso, MibIdentifier, Unsigned32, Counter64, MibScalar, MibTable, MibTableRow, MibTableColumn = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "TimeTicks", "NotificationType", "ModuleIdentity", "Gauge32", "Bits", "IpAddress", "ObjectIdentity", "Counter32", "iso", "MibIdentifier", "Unsigned32", "Counter64", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn") DateAndTime, TruthValue, TimeStamp, TextualConvention, DisplayString, RowStatus = mibBuilder.importSymbols("SNMPv2-TC", "DateAndTime", "TruthValue", "TimeStamp", "TextualConvention", "DisplayString", "RowStatus") rlIpPrefList = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212)) class RlIpPrefListEntryType(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("rule", 1), ("description", 2)) class RlIpPrefListActionType(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("drop", 1), ("permit", 2)) class RlIpPrefListType(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("ipv4", 1), ("ipv6", 2)) rlIpPrefListTable = MibTable((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1), ) if mibBuilder.loadTexts: rlIpPrefListTable.setStatus('current') rlIpPrefListEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1), ).setIndexNames((0, "CISCOSB-ippreflist-MIB", "rlIpPrefListType"), (0, "CISCOSB-ippreflist-MIB", "rlIpPrefListName"), (0, "CISCOSB-ippreflist-MIB", "rlIpPrefListEntryIndex")) if mibBuilder.loadTexts: rlIpPrefListEntry.setStatus('current') rlIpPrefListType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 1), RlIpPrefListType()) if mibBuilder.loadTexts: rlIpPrefListType.setStatus('current') rlIpPrefListName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))) if mibBuilder.loadTexts: rlIpPrefListName.setStatus('current') rlIpPrefListEntryIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967294))) if mibBuilder.loadTexts: rlIpPrefListEntryIndex.setStatus('current') rlIpPrefListEntryType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 4), RlIpPrefListEntryType()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlIpPrefListEntryType.setStatus('current') rlIpPrefListInetAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 5), InetAddressType()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlIpPrefListInetAddrType.setStatus('current') rlIpPrefListInetAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 6), InetAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlIpPrefListInetAddr.setStatus('current') rlIpPrefListPrefixLength = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 128))).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlIpPrefListPrefixLength.setStatus('current') rlIpPrefListAction = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 8), RlIpPrefListActionType()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlIpPrefListAction.setStatus('current') rlIpPrefListGeLength = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 128))).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlIpPrefListGeLength.setStatus('current') rlIpPrefListLeLength = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 128))).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlIpPrefListLeLength.setStatus('current') rlIpPrefListDescription = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 11), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlIpPrefListDescription.setStatus('current') rlIpPrefListHitCount = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 12), Integer32()) if mibBuilder.loadTexts: rlIpPrefListHitCount.setStatus('current') rlIpPrefListRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 13), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlIpPrefListRowStatus.setStatus('current') rlIpPrefListInfoTable = MibTable((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 2), ) if mibBuilder.loadTexts: rlIpPrefListInfoTable.setStatus('current') rlIpPrefListInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 2, 1), ).setIndexNames((0, "CISCOSB-ippreflist-MIB", "rlIpPrefListInfoType"), (0, "CISCOSB-ippreflist-MIB", "rlIpPrefListInfoName")) if mibBuilder.loadTexts: rlIpPrefListInfoEntry.setStatus('current') rlIpPrefListInfoType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 2, 1, 1), RlIpPrefListType()) if mibBuilder.loadTexts: rlIpPrefListInfoType.setStatus('current') rlIpPrefListInfoName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))) if mibBuilder.loadTexts: rlIpPrefListInfoName.setStatus('current') rlIpPrefListInfoEntriesNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 2, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlIpPrefListInfoEntriesNumber.setStatus('current') rlIpPrefListInfoRangeEntries = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 2, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlIpPrefListInfoRangeEntries.setStatus('current') rlIpPrefListInfoNextFreeIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 2, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlIpPrefListInfoNextFreeIndex.setStatus('current') mibBuilder.exportSymbols("CISCOSB-ippreflist-MIB", rlIpPrefListEntryType=rlIpPrefListEntryType, rlIpPrefListType=rlIpPrefListType, RlIpPrefListEntryType=RlIpPrefListEntryType, rlIpPrefListInfoRangeEntries=rlIpPrefListInfoRangeEntries, RlIpPrefListActionType=RlIpPrefListActionType, RlIpPrefListType=RlIpPrefListType, rlIpPrefListInfoNextFreeIndex=rlIpPrefListInfoNextFreeIndex, rlIpPrefListInfoTable=rlIpPrefListInfoTable, rlIpPrefListInfoType=rlIpPrefListInfoType, rlIpPrefListAction=rlIpPrefListAction, rlIpPrefListInfoName=rlIpPrefListInfoName, rlIpPrefListDescription=rlIpPrefListDescription, rlIpPrefList=rlIpPrefList, rlIpPrefListInetAddrType=rlIpPrefListInetAddrType, rlIpPrefListInfoEntry=rlIpPrefListInfoEntry, rlIpPrefListHitCount=rlIpPrefListHitCount, rlIpPrefListPrefixLength=rlIpPrefListPrefixLength, rlIpPrefListInetAddr=rlIpPrefListInetAddr, rlIpPrefListEntry=rlIpPrefListEntry, rlIpPrefListName=rlIpPrefListName, rlIpPrefListLeLength=rlIpPrefListLeLength, rlIpPrefListEntryIndex=rlIpPrefListEntryIndex, rlIpPrefListTable=rlIpPrefListTable, rlIpPrefListInfoEntriesNumber=rlIpPrefListInfoEntriesNumber, rlIpPrefListRowStatus=rlIpPrefListRowStatus, rlIpPrefListGeLength=rlIpPrefListGeLength)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, constraints_intersection, single_value_constraint, value_size_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ConstraintsIntersection', 'SingleValueConstraint', 'ValueSizeConstraint', 'ValueRangeConstraint') (switch001,) = mibBuilder.importSymbols('CISCOSB-MIB', 'switch001') (inet_version, inet_address_type, inet_address, inet_zone_index, inet_address_prefix_length) = mibBuilder.importSymbols('INET-ADDRESS-MIB', 'InetVersion', 'InetAddressType', 'InetAddress', 'InetZoneIndex', 'InetAddressPrefixLength') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (integer32, time_ticks, notification_type, module_identity, gauge32, bits, ip_address, object_identity, counter32, iso, mib_identifier, unsigned32, counter64, mib_scalar, mib_table, mib_table_row, mib_table_column) = mibBuilder.importSymbols('SNMPv2-SMI', 'Integer32', 'TimeTicks', 'NotificationType', 'ModuleIdentity', 'Gauge32', 'Bits', 'IpAddress', 'ObjectIdentity', 'Counter32', 'iso', 'MibIdentifier', 'Unsigned32', 'Counter64', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn') (date_and_time, truth_value, time_stamp, textual_convention, display_string, row_status) = mibBuilder.importSymbols('SNMPv2-TC', 'DateAndTime', 'TruthValue', 'TimeStamp', 'TextualConvention', 'DisplayString', 'RowStatus') rl_ip_pref_list = mib_identifier((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212)) class Rlippreflistentrytype(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('rule', 1), ('description', 2)) class Rlippreflistactiontype(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('drop', 1), ('permit', 2)) class Rlippreflisttype(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('ipv4', 1), ('ipv6', 2)) rl_ip_pref_list_table = mib_table((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1)) if mibBuilder.loadTexts: rlIpPrefListTable.setStatus('current') rl_ip_pref_list_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1)).setIndexNames((0, 'CISCOSB-ippreflist-MIB', 'rlIpPrefListType'), (0, 'CISCOSB-ippreflist-MIB', 'rlIpPrefListName'), (0, 'CISCOSB-ippreflist-MIB', 'rlIpPrefListEntryIndex')) if mibBuilder.loadTexts: rlIpPrefListEntry.setStatus('current') rl_ip_pref_list_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 1), rl_ip_pref_list_type()) if mibBuilder.loadTexts: rlIpPrefListType.setStatus('current') rl_ip_pref_list_name = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(1, 32))) if mibBuilder.loadTexts: rlIpPrefListName.setStatus('current') rl_ip_pref_list_entry_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4294967294))) if mibBuilder.loadTexts: rlIpPrefListEntryIndex.setStatus('current') rl_ip_pref_list_entry_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 4), rl_ip_pref_list_entry_type()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlIpPrefListEntryType.setStatus('current') rl_ip_pref_list_inet_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 5), inet_address_type()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlIpPrefListInetAddrType.setStatus('current') rl_ip_pref_list_inet_addr = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 6), inet_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlIpPrefListInetAddr.setStatus('current') rl_ip_pref_list_prefix_length = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 128))).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlIpPrefListPrefixLength.setStatus('current') rl_ip_pref_list_action = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 8), rl_ip_pref_list_action_type()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlIpPrefListAction.setStatus('current') rl_ip_pref_list_ge_length = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 128))).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlIpPrefListGeLength.setStatus('current') rl_ip_pref_list_le_length = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 128))).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlIpPrefListLeLength.setStatus('current') rl_ip_pref_list_description = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 11), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlIpPrefListDescription.setStatus('current') rl_ip_pref_list_hit_count = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 12), integer32()) if mibBuilder.loadTexts: rlIpPrefListHitCount.setStatus('current') rl_ip_pref_list_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 13), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlIpPrefListRowStatus.setStatus('current') rl_ip_pref_list_info_table = mib_table((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 2)) if mibBuilder.loadTexts: rlIpPrefListInfoTable.setStatus('current') rl_ip_pref_list_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 2, 1)).setIndexNames((0, 'CISCOSB-ippreflist-MIB', 'rlIpPrefListInfoType'), (0, 'CISCOSB-ippreflist-MIB', 'rlIpPrefListInfoName')) if mibBuilder.loadTexts: rlIpPrefListInfoEntry.setStatus('current') rl_ip_pref_list_info_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 2, 1, 1), rl_ip_pref_list_type()) if mibBuilder.loadTexts: rlIpPrefListInfoType.setStatus('current') rl_ip_pref_list_info_name = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(1, 32))) if mibBuilder.loadTexts: rlIpPrefListInfoName.setStatus('current') rl_ip_pref_list_info_entries_number = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 2, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlIpPrefListInfoEntriesNumber.setStatus('current') rl_ip_pref_list_info_range_entries = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 2, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlIpPrefListInfoRangeEntries.setStatus('current') rl_ip_pref_list_info_next_free_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 2, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlIpPrefListInfoNextFreeIndex.setStatus('current') mibBuilder.exportSymbols('CISCOSB-ippreflist-MIB', rlIpPrefListEntryType=rlIpPrefListEntryType, rlIpPrefListType=rlIpPrefListType, RlIpPrefListEntryType=RlIpPrefListEntryType, rlIpPrefListInfoRangeEntries=rlIpPrefListInfoRangeEntries, RlIpPrefListActionType=RlIpPrefListActionType, RlIpPrefListType=RlIpPrefListType, rlIpPrefListInfoNextFreeIndex=rlIpPrefListInfoNextFreeIndex, rlIpPrefListInfoTable=rlIpPrefListInfoTable, rlIpPrefListInfoType=rlIpPrefListInfoType, rlIpPrefListAction=rlIpPrefListAction, rlIpPrefListInfoName=rlIpPrefListInfoName, rlIpPrefListDescription=rlIpPrefListDescription, rlIpPrefList=rlIpPrefList, rlIpPrefListInetAddrType=rlIpPrefListInetAddrType, rlIpPrefListInfoEntry=rlIpPrefListInfoEntry, rlIpPrefListHitCount=rlIpPrefListHitCount, rlIpPrefListPrefixLength=rlIpPrefListPrefixLength, rlIpPrefListInetAddr=rlIpPrefListInetAddr, rlIpPrefListEntry=rlIpPrefListEntry, rlIpPrefListName=rlIpPrefListName, rlIpPrefListLeLength=rlIpPrefListLeLength, rlIpPrefListEntryIndex=rlIpPrefListEntryIndex, rlIpPrefListTable=rlIpPrefListTable, rlIpPrefListInfoEntriesNumber=rlIpPrefListInfoEntriesNumber, rlIpPrefListRowStatus=rlIpPrefListRowStatus, rlIpPrefListGeLength=rlIpPrefListGeLength)
class c_iterateur(object): def __init__(self, obj): self.obj = obj self.length = len(obj) self.count = 0 def __iter__(self): return self def next(self): if self.count > self.length: raise StopIteration else: result = self.obj[self.count] self.count += 1 return result if __name__ == "__main__": chaine = [ [ ['hello-1.0',' My Beautifull-1.0 ','world-1.0'], ['hello-1.1',' My Beautifull-1.1 ','world-1.1'], ['hello-1.2',' My Beautifull-1.2 ','world-1.2'] ], [ ['hello-2.0',' My Beautifull-2.0 ','world-2.0'], ['hello-2.1',' My Beautifull-2.1 ','world-2.1'], ['hello-2.2',' My Beautifull-2.2 ','world-2.2'] ], [ ['hello-3.2',' My Beautifull-3.0 ','world-3.0'], ['hello-3.2',' My Beautifull-3.1 ','world-3.1'], ['hello-3.2',' My Beautifull-3.2 ','world-3.2'] ] ] iter1 =c_iterateur(chaine).__iter__() try: for i in range(len(chaine)): print("Idx 1D: " + str(i) + " : " + str(iter1.next())) iter2 =c_iterateur(chaine[i]).__iter__() try: for j in range(len(chaine[i])): print("___Idx 2D: " + str(j) + " : " + str(iter2.next())) iter3 = c_iterateur(chaine[j]).__iter__() try: for k in range(len(chaine[j])): print("______Idx 3D: " + str(k) + " : " + str(iter3.next())) except StopIteration: print("fin d'iteration 3") except StopIteration: print("fin d'iteration 2") except StopIteration: print("fin d'iteration 1")
class C_Iterateur(object): def __init__(self, obj): self.obj = obj self.length = len(obj) self.count = 0 def __iter__(self): return self def next(self): if self.count > self.length: raise StopIteration else: result = self.obj[self.count] self.count += 1 return result if __name__ == '__main__': chaine = [[['hello-1.0', ' My Beautifull-1.0 ', 'world-1.0'], ['hello-1.1', ' My Beautifull-1.1 ', 'world-1.1'], ['hello-1.2', ' My Beautifull-1.2 ', 'world-1.2']], [['hello-2.0', ' My Beautifull-2.0 ', 'world-2.0'], ['hello-2.1', ' My Beautifull-2.1 ', 'world-2.1'], ['hello-2.2', ' My Beautifull-2.2 ', 'world-2.2']], [['hello-3.2', ' My Beautifull-3.0 ', 'world-3.0'], ['hello-3.2', ' My Beautifull-3.1 ', 'world-3.1'], ['hello-3.2', ' My Beautifull-3.2 ', 'world-3.2']]] iter1 = c_iterateur(chaine).__iter__() try: for i in range(len(chaine)): print('Idx 1D: ' + str(i) + ' : ' + str(iter1.next())) iter2 = c_iterateur(chaine[i]).__iter__() try: for j in range(len(chaine[i])): print('___Idx 2D: ' + str(j) + ' : ' + str(iter2.next())) iter3 = c_iterateur(chaine[j]).__iter__() try: for k in range(len(chaine[j])): print('______Idx 3D: ' + str(k) + ' : ' + str(iter3.next())) except StopIteration: print("fin d'iteration 3") except StopIteration: print("fin d'iteration 2") except StopIteration: print("fin d'iteration 1")
# input number of strings in the set N = int(input()) trie = {} end = object() # input the strings for _ in range(N): s = input() t = trie for c in s[:-1]: if c in t: t = t[c] else: t[c] = {} t = t[c] # Print GOOD SET if the set is valid else, output BAD SET # followed by the first string for which the condition fails if t is end: print("BAD SET") print(s) exit() if s[-1] in t: print("BAD SET") print(s) exit() else: t[s[-1]] = end print("GOOD SET")
n = int(input()) trie = {} end = object() for _ in range(N): s = input() t = trie for c in s[:-1]: if c in t: t = t[c] else: t[c] = {} t = t[c] if t is end: print('BAD SET') print(s) exit() if s[-1] in t: print('BAD SET') print(s) exit() else: t[s[-1]] = end print('GOOD SET')
# Google Kickstart 2019 Round: Practice def solution(N, K, x1, y1, C, D, E1, E2, F): alarmList = [] alarmPowermap = [[] for i in range(K)] alarmPower = 0 # Calculate alarmList element = (x1 + y1) % F xPrev, yPrev = x1, y1 alarmList.append(element) for _ in range(N-1): xi = (C*xPrev + D*yPrev + E1) % F yi = (D*xPrev + C*yPrev + E2) % F element = (xi + yi) % F xPrev, yPrev = xi, yi alarmList.append(element) # Calculate Alarm Subsets alarmSubset = [] for i in range(1, N+1): for j in range(N-i+1): alarmSubset.append(alarmList[j:j+i]) # Calculate alarmPowermap for kthElement in range(K): for indexElement in range(1, N+1): alarmPowermap[kthElement].append(indexElement**(kthElement+1)) # Calculate alarmPowerList for kthElement in range(K): for subset in alarmSubset: for index, element in enumerate(subset): alarmPower += element*alarmPowermap[kthElement][index] return str(alarmPower % 1000000007) def kickstartAlarm(): T = int(input()) N, K, x1, y1, C, D, E1, E2, F = [0]*T, [0]*T, [0] * \ T, [0]*T, [0]*T, [0]*T, [0]*T, [0]*T, [0]*T for i in range(T): N[i], K[i], x1[i], y1[i], C[i], D[i], E1[i], E2[i], F[i] = map( int, input().split()) for i in range(T): print("Case #" + str(i+1) + ": " + solution(N[i], K[i], x1[i], y1[i], C[i], D[i], E1[i], E2[i], F[i])) kickstartAlarm() # solution(2, 3, 1, 2, 1, 2, 1, 1, 9) # solution(10, 10, 10001, 10002, 10003, 10004, 10005, 10006, 89273)
def solution(N, K, x1, y1, C, D, E1, E2, F): alarm_list = [] alarm_powermap = [[] for i in range(K)] alarm_power = 0 element = (x1 + y1) % F (x_prev, y_prev) = (x1, y1) alarmList.append(element) for _ in range(N - 1): xi = (C * xPrev + D * yPrev + E1) % F yi = (D * xPrev + C * yPrev + E2) % F element = (xi + yi) % F (x_prev, y_prev) = (xi, yi) alarmList.append(element) alarm_subset = [] for i in range(1, N + 1): for j in range(N - i + 1): alarmSubset.append(alarmList[j:j + i]) for kth_element in range(K): for index_element in range(1, N + 1): alarmPowermap[kthElement].append(indexElement ** (kthElement + 1)) for kth_element in range(K): for subset in alarmSubset: for (index, element) in enumerate(subset): alarm_power += element * alarmPowermap[kthElement][index] return str(alarmPower % 1000000007) def kickstart_alarm(): t = int(input()) (n, k, x1, y1, c, d, e1, e2, f) = ([0] * T, [0] * T, [0] * T, [0] * T, [0] * T, [0] * T, [0] * T, [0] * T, [0] * T) for i in range(T): (N[i], K[i], x1[i], y1[i], C[i], D[i], E1[i], E2[i], F[i]) = map(int, input().split()) for i in range(T): print('Case #' + str(i + 1) + ': ' + solution(N[i], K[i], x1[i], y1[i], C[i], D[i], E1[i], E2[i], F[i])) kickstart_alarm()
thistuple = ("apple", "banana", "cherry") print(thistuple) thistuple = ("apple", "banana", "cherry") print(thistuple[1]) thistuple = ("apple", "banana", "cherry") print(thistuple[-1]) thistuple = ("apple", "banana", "cherry", "orange", "kiwi", "melon", "mango") print(thistuple[2:5]) x = ("apple", "banana", "cherry") y = list(x) y[1] = "kiwi" x = tuple(y) print(x) thistuple = ("apple", "banana", "cherry") for x in thistuple: print(x) thistuple1 = (1,2,4,5,6,7,9,0,5) x = thistuple1.count(5) print(x)
thistuple = ('apple', 'banana', 'cherry') print(thistuple) thistuple = ('apple', 'banana', 'cherry') print(thistuple[1]) thistuple = ('apple', 'banana', 'cherry') print(thistuple[-1]) thistuple = ('apple', 'banana', 'cherry', 'orange', 'kiwi', 'melon', 'mango') print(thistuple[2:5]) x = ('apple', 'banana', 'cherry') y = list(x) y[1] = 'kiwi' x = tuple(y) print(x) thistuple = ('apple', 'banana', 'cherry') for x in thistuple: print(x) thistuple1 = (1, 2, 4, 5, 6, 7, 9, 0, 5) x = thistuple1.count(5) print(x)
def test_response_protocol_with_http1_0_request_(): pass def test_response_protocol_with_http1_1_request_(): pass def test_response_protocol_with_http1_1_request_and_http1_0_server(): pass def test_response_protocol_with_http0_9_request_(): pass def test_response_protocol_with_http2_0_request_(): pass
def test_response_protocol_with_http1_0_request_(): pass def test_response_protocol_with_http1_1_request_(): pass def test_response_protocol_with_http1_1_request_and_http1_0_server(): pass def test_response_protocol_with_http0_9_request_(): pass def test_response_protocol_with_http2_0_request_(): pass
plain_text = list(input("Enter plain text:\n")) encrypted_text = [] original_text = [] for char in plain_text: encrypted_text.append(chr(ord(char)+5)) for char in encrypted_text: original_text.append(chr(ord(char)-5)) print(encrypted_text) print(original_text)
plain_text = list(input('Enter plain text:\n')) encrypted_text = [] original_text = [] for char in plain_text: encrypted_text.append(chr(ord(char) + 5)) for char in encrypted_text: original_text.append(chr(ord(char) - 5)) print(encrypted_text) print(original_text)
''' Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. Example: Input: [-2,1,-3,4,-1,2,1,-5,4], Output: 6 Explanation: [4,-1,2,1] has the largest sum = 6. Follow up: If you have figured out the O(n) solution, try coding another solution using the divide and conquer approach, which is more subtle. ''' class Solution: def maxSubArray(self, nums: List[int]) -> int: dp = [0 for x in range(len(nums))] dp[0] = nums[0] for x in range(len(nums) - 1): dp[x + 1] = max(nums[x + 1], dp[x] + nums[x + 1]) return max(dp)
""" Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. Example: Input: [-2,1,-3,4,-1,2,1,-5,4], Output: 6 Explanation: [4,-1,2,1] has the largest sum = 6. Follow up: If you have figured out the O(n) solution, try coding another solution using the divide and conquer approach, which is more subtle. """ class Solution: def max_sub_array(self, nums: List[int]) -> int: dp = [0 for x in range(len(nums))] dp[0] = nums[0] for x in range(len(nums) - 1): dp[x + 1] = max(nums[x + 1], dp[x] + nums[x + 1]) return max(dp)
POSSIBLE_MARKS = ( ("4", "4"), ("5", "5"), ("6", "6"), ("7", "7"), ("8", "8"), ("9", "9"), ("10", "10"), )
possible_marks = (('4', '4'), ('5', '5'), ('6', '6'), ('7', '7'), ('8', '8'), ('9', '9'), ('10', '10'))
# # PySNMP MIB module IPAD-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/IPAD-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:44:34 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, ValueRangeConstraint, ValueSizeConstraint, SingleValueConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueRangeConstraint", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsUnion") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") MibScalar, MibTable, MibTableRow, MibTableColumn, ModuleIdentity, TimeTicks, Counter32, Counter64, NotificationType, Gauge32, iso, Bits, enterprises, MibIdentifier, ObjectIdentity, Unsigned32, Integer32, IpAddress, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ModuleIdentity", "TimeTicks", "Counter32", "Counter64", "NotificationType", "Gauge32", "iso", "Bits", "enterprises", "MibIdentifier", "ObjectIdentity", "Unsigned32", "Integer32", "IpAddress", "NotificationType") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") verilink = MibIdentifier((1, 3, 6, 1, 4, 1, 321)) hbu = MibIdentifier((1, 3, 6, 1, 4, 1, 321, 100)) ipad = MibIdentifier((1, 3, 6, 1, 4, 1, 321, 100, 1)) ipadFrPort = MibIdentifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 1)) ipadService = MibIdentifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 2)) ipadChannel = MibIdentifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 3)) ipadDLCI = MibIdentifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 4)) ipadEndpoint = MibIdentifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 5)) ipadUser = MibIdentifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 6)) ipadPPP = MibIdentifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 7)) ipadModem = MibIdentifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 8)) ipadSvcAware = MibIdentifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 9)) ipadPktSwitch = MibIdentifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 10)) ipadTrapDest = MibIdentifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 11)) ipadMisc = MibIdentifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 12)) ipadRouter = MibIdentifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 13)) ipadSoftKey = MibIdentifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 14)) ipadFrPortTable = MibTable((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1), ) if mibBuilder.loadTexts: ipadFrPortTable.setStatus('optional') ipadFrPortTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1), ).setIndexNames((0, "IPAD-MIB", "ipadFrPortService")) if mibBuilder.loadTexts: ipadFrPortTableEntry.setStatus('mandatory') ipadFrPortService = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadFrPortService.setStatus('mandatory') ipadFrPortActive = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadFrPortActive.setStatus('mandatory') ipadFrPortLMIType = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("ccitt", 2), ("ansi", 3), ("lmi", 4), ("none", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadFrPortLMIType.setStatus('mandatory') ipadFrPortLMIMode = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("sourcing", 2), ("monitoring", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadFrPortLMIMode.setStatus('mandatory') ipadFrPortRxInvAlmThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 5), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadFrPortRxInvAlmThreshold.setStatus('mandatory') ipadFrPortRxInvAlmAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("noAlarm", 2), ("thresholdExceeded", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadFrPortRxInvAlmAlarm.setStatus('mandatory') ipadFrPortTxAlmThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadFrPortTxAlmThreshold.setStatus('mandatory') ipadFrPortTxAlmAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("noAlarm", 2), ("thresholdExceeded", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadFrPortTxAlmAlarm.setStatus('mandatory') ipadFrPortRxAlmThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 9), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadFrPortRxAlmThreshold.setStatus('mandatory') ipadFrPortRxAlmAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("noAlarm", 2), ("thresholdExceeded", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadFrPortRxAlmAlarm.setStatus('mandatory') ipadServiceTable = MibTable((1, 3, 6, 1, 4, 1, 321, 100, 1, 2, 1), ) if mibBuilder.loadTexts: ipadServiceTable.setStatus('optional') ipadServiceTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 100, 1, 2, 1, 1), ).setIndexNames((0, "IPAD-MIB", "ipadServiceIndex")) if mibBuilder.loadTexts: ipadServiceTableEntry.setStatus('mandatory') ipadServiceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadServiceIndex.setStatus('mandatory') ipadServiceifIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("disabled", 0), ("supervisor", 1), ("network1", 2), ("network2", 3), ("user1", 4), ("user2", 5), ("ethernet", 6)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadServiceifIndex.setStatus('mandatory') ipadServiceType = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("other", 1), ("tdm", 2), ("ppp", 3), ("pppMonitor", 4), ("frameRelay", 5), ("frameRelayMonitor", 6), ("ip", 7), ("serial", 8), ("tty", 9)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadServiceType.setStatus('mandatory') ipadServicePair = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 2, 1, 1, 4), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadServicePair.setStatus('mandatory') ipadServiceAddService = MibScalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 2, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("addService", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadServiceAddService.setStatus('mandatory') ipadServiceDeleteService = MibScalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 2, 3), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadServiceDeleteService.setStatus('mandatory') ipadChannelTable = MibTable((1, 3, 6, 1, 4, 1, 321, 100, 1, 3, 1), ) if mibBuilder.loadTexts: ipadChannelTable.setStatus('optional') ipadChannelTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 100, 1, 3, 1, 1), ).setIndexNames((0, "IPAD-MIB", "ipadChannelifIndex"), (0, "IPAD-MIB", "ipadChannelIndex")) if mibBuilder.loadTexts: ipadChannelTableEntry.setStatus('mandatory') ipadChannelifIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 3, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("supervisor", 1), ("network1", 2), ("network2", 3), ("user1", 4), ("user2", 5), ("ethernet", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadChannelifIndex.setStatus('mandatory') ipadChannelIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 3, 1, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadChannelIndex.setStatus('mandatory') ipadChannelService = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 3, 1, 1, 3), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadChannelService.setStatus('mandatory') ipadChannelPair = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 3, 1, 1, 4), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadChannelPair.setStatus('mandatory') ipadChannelRate = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 3, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("rate56", 2), ("rate64", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadChannelRate.setStatus('mandatory') ipadDLCITable = MibTable((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1), ) if mibBuilder.loadTexts: ipadDLCITable.setStatus('optional') ipadDLCITableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1), ).setIndexNames((0, "IPAD-MIB", "ipadDLCIservice"), (0, "IPAD-MIB", "ipadDLCInumber")) if mibBuilder.loadTexts: ipadDLCITableEntry.setStatus('mandatory') ipadDLCIservice = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadDLCIservice.setStatus('mandatory') ipadDLCInumber = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadDLCInumber.setStatus('mandatory') ipadDLCIactive = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3), ("pending", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadDLCIactive.setStatus('mandatory') ipadDLCIcongestion = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadDLCIcongestion.setStatus('mandatory') ipadDLCIremote = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadDLCIremote.setStatus('mandatory') ipadDLCIremoteUnit = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 11))).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadDLCIremoteUnit.setStatus('mandatory') ipadDLCIremoteEquipActive = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("inactive", 2), ("active", 3), ("sosAlarm", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadDLCIremoteEquipActive.setStatus('mandatory') ipadDLCIencapsulation = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("rfc1490", 2), ("proprietary", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadDLCIencapsulation.setStatus('mandatory') ipadDLCIproprietary = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("ip", 2), ("ipx", 3), ("ethertype", 4), ("none", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadDLCIproprietary.setStatus('mandatory') ipadDLCIpropOffset = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 10), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadDLCIpropOffset.setStatus('mandatory') ipadDLCIinBand = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadDLCIinBand.setStatus('mandatory') ipadDLCICIR = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 12), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadDLCICIR.setStatus('mandatory') ipadDLCIBe = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 13), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadDLCIBe.setStatus('mandatory') ipadDLCIminBC = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 14), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadDLCIminBC.setStatus('mandatory') ipadDLCIrxMon = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadDLCIrxMon.setStatus('mandatory') ipadDLCIdEctrl = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadDLCIdEctrl.setStatus('mandatory') ipadDLCIenableDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disable", 2), ("enable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadDLCIenableDelay.setStatus('mandatory') ipadDLCItxExCIRThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 18), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadDLCItxExCIRThreshold.setStatus('mandatory') ipadDLCItxExCIRAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("noAlarm", 2), ("thresholdExceeded", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadDLCItxExCIRAlarm.setStatus('mandatory') ipadDLCItxExBeThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 20), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadDLCItxExBeThreshold.setStatus('mandatory') ipadDLCItxExBeAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 21), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("noAlarm", 2), ("thresholdExceeded", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadDLCItxExBeAlarm.setStatus('mandatory') ipadDLCIrxCongThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 22), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadDLCIrxCongThreshold.setStatus('mandatory') ipadDLCIrxCongAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 23), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("noAlarm", 2), ("thresholdExceeded", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadDLCIrxCongAlarm.setStatus('mandatory') ipadDLCIrxBECNinCIR = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 24), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("noAlarm", 2), ("alarmCondition", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadDLCIrxBECNinCIR.setStatus('mandatory') ipadDLCIUASThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 25), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadDLCIUASThreshold.setStatus('mandatory') ipadDLCIUASAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 26), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("noAlarm", 2), ("thresholdExceeded", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadDLCIUASAlarm.setStatus('mandatory') ipadDLCILastChange = MibScalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 2), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadDLCILastChange.setStatus('mandatory') ipadEndpointTable = MibTable((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1), ) if mibBuilder.loadTexts: ipadEndpointTable.setStatus('optional') ipadEndpointTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1), ).setIndexNames((0, "IPAD-MIB", "ipadEndpointIndex")) if mibBuilder.loadTexts: ipadEndpointTableEntry.setStatus('mandatory') ipadEndpointIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadEndpointIndex.setStatus('mandatory') ipadEndpointName = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 11))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadEndpointName.setStatus('mandatory') ipadEndpointService = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 3), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadEndpointService.setStatus('mandatory') ipadEndpointDLCInumber = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 4), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadEndpointDLCInumber.setStatus('mandatory') ipadEndpointType = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("local", 2), ("switched", 3), ("ipRoute", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadEndpointType.setStatus('mandatory') ipadEndpointForward = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 6), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadEndpointForward.setStatus('mandatory') ipadEndpointBackup = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadEndpointBackup.setStatus('mandatory') ipadEndpointRefSLP = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 8), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadEndpointRefSLP.setStatus('mandatory') ipadEndpointRemoteIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 9), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadEndpointRemoteIpAddr.setStatus('mandatory') ipadEndpointRemoteIpMask = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 10), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadEndpointRemoteIpMask.setStatus('mandatory') ipadEndpointAddEndpoint = MibScalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 11))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadEndpointAddEndpoint.setStatus('mandatory') ipadEndpointDeleteEndpoint = MibScalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 11))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadEndpointDeleteEndpoint.setStatus('mandatory') ipadEndpointLastChange = MibScalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 4), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadEndpointLastChange.setStatus('mandatory') ipadUserTable = MibTable((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1), ) if mibBuilder.loadTexts: ipadUserTable.setStatus('optional') ipadUserTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1), ).setIndexNames((0, "IPAD-MIB", "ipadUserIndex")) if mibBuilder.loadTexts: ipadUserTableEntry.setStatus('mandatory') ipadUserIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadUserIndex.setStatus('mandatory') ipadUserFilterByDLCI = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadUserFilterByDLCI.setStatus('mandatory') ipadUserService = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 3), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadUserService.setStatus('mandatory') ipadUserDLCI = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 4), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadUserDLCI.setStatus('mandatory') ipadUserFilterByIPAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadUserFilterByIPAddress.setStatus('mandatory') ipadUserIPAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 6), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadUserIPAddress.setStatus('mandatory') ipadUserIPMask = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 7), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadUserIPMask.setStatus('mandatory') ipadUserFilterByIPPort = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadUserFilterByIPPort.setStatus('mandatory') ipadUserIPPort = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(5, 7, 11, 17, 20, 21, 23, 25, 31, 37, 42, 53, 66, 69, 70, 79, 80, 88, 92, 101, 107, 109, 110, 111, 113, 119, 137, 138, 139, 153, 161, 162, 163, 164, 169, 179, 194, 201, 202, 204, 206, 213, 395, 396, 444, 494, 533, 540, 541, 600, 749))).clone(namedValues=NamedValues(("rje", 5), ("echo", 7), ("systat", 11), ("qotd", 17), ("ftpdata", 20), ("ftp", 21), ("telnet", 23), ("smtp", 25), ("msgauth", 31), ("time", 37), ("nameserver", 42), ("domain", 53), ("sqlnet", 66), ("tftp", 69), ("gopher", 70), ("finger", 79), ("http", 80), ("kerberos", 88), ("npp", 92), ("hostname", 101), ("rtelnet", 107), ("pop2", 109), ("pop3", 110), ("sunrpc", 111), ("auth", 113), ("nntp", 119), ("netbiosns", 137), ("netbiosdgm", 138), ("netbiosssn", 139), ("sgmp", 153), ("snmp", 161), ("snmptrap", 162), ("cmipman", 163), ("cmipagent", 164), ("send", 169), ("bgp", 179), ("irc", 194), ("atrtmp", 201), ("atnbp", 202), ("atecho", 204), ("atzis", 206), ("ipx", 213), ("netcp", 395), ("netwareip", 396), ("snpp", 444), ("povray", 494), ("netwall", 533), ("uucp", 540), ("uucprlogin", 541), ("ipcserver", 600), ("kerberosadm", 749)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadUserIPPort.setStatus('mandatory') ipadUserTxAlmThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 10), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadUserTxAlmThreshold.setStatus('mandatory') ipadUserTxAlmAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("noAlarm", 2), ("thresholdExceeded", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadUserTxAlmAlarm.setStatus('mandatory') ipadUserIPStatTimeRemaining = MibScalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadUserIPStatTimeRemaining.setStatus('mandatory') ipadUserIPStatTimeDuration = MibScalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadUserIPStatTimeDuration.setStatus('mandatory') ipadUserIPStatStartTime = MibScalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 4), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadUserIPStatStartTime.setStatus('mandatory') ipadUserIPStatRequestedReportSize = MibScalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 5), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadUserIPStatRequestedReportSize.setStatus('mandatory') ipadUserIPStatGrantedReportSize = MibScalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadUserIPStatGrantedReportSize.setStatus('mandatory') ipadUserIPStatReportNumber = MibScalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadUserIPStatReportNumber.setStatus('mandatory') ipadUserIPStatDiscardType = MibScalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("byTime", 1), ("byFrames", 2), ("byOctets", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadUserIPStatDiscardType.setStatus('mandatory') ipadPPPCfgTable = MibTable((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1), ) if mibBuilder.loadTexts: ipadPPPCfgTable.setStatus('optional') ipadPPPCfgTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1), ).setIndexNames((0, "IPAD-MIB", "ipadPPPCfgService")) if mibBuilder.loadTexts: ipadPPPCfgTableEntry.setStatus('mandatory') ipadPPPCfgService = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadPPPCfgService.setStatus('mandatory') ipadPPPCfgDialMode = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("direct", 2), ("dialup", 3), ("demanddial", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPPPCfgDialMode.setStatus('mandatory') ipadPPPCfgInactivityTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 3), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPPPCfgInactivityTimer.setStatus('mandatory') ipadPPPCfgNegotiationInit = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPPPCfgNegotiationInit.setStatus('mandatory') ipadPPPCfgMRU = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 5), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPPPCfgMRU.setStatus('mandatory') ipadPPPCfgACCM = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 6), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPPPCfgACCM.setStatus('mandatory') ipadPPPCfgNegMRU = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPPPCfgNegMRU.setStatus('mandatory') ipadPPPCfgNegACCM = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPPPCfgNegACCM.setStatus('mandatory') ipadPPPCfgNegMagic = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPPPCfgNegMagic.setStatus('mandatory') ipadPPPCfgNegCompression = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPPPCfgNegCompression.setStatus('mandatory') ipadPPPCfgNegAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPPPCfgNegAddress.setStatus('mandatory') ipadPPPCfgNegPAP = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPPPCfgNegPAP.setStatus('mandatory') ipadPPPCfgNegCHAP = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPPPCfgNegCHAP.setStatus('mandatory') ipadPPPCfgAllowPAP = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPPPCfgAllowPAP.setStatus('mandatory') ipadPPPCfgAllowCHAP = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPPPCfgAllowCHAP.setStatus('mandatory') ipadPPPCfgPAPUsername = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 16), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 30))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPPPCfgPAPUsername.setStatus('mandatory') ipadPPPCfgPAPPassword = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 17), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 30))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPPPCfgPAPPassword.setStatus('mandatory') ipadPPPCfgCHAPUsername = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 18), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 30))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPPPCfgCHAPUsername.setStatus('mandatory') ipadPPPCfgCHAPSecret = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 19), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 30))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPPPCfgCHAPSecret.setStatus('mandatory') ipadPPPCfgPortIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 20), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPPPCfgPortIpAddress.setStatus('mandatory') ipadPPPCfgPeerIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 21), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPPPCfgPeerIpAddress.setStatus('mandatory') ipadPPPCfgNegIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 22), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPPPCfgNegIpAddress.setStatus('mandatory') ipadPPPCfgNegIPCPCompression = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 23), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPPPCfgNegIPCPCompression.setStatus('mandatory') ipadPPPCfgSubnetMask = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 24), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPPPCfgSubnetMask.setStatus('mandatory') ipadPPPCfgAuthChallengeInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 25), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPPPCfgAuthChallengeInterval.setStatus('mandatory') ipadPPPPAPTable = MibTable((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 2), ) if mibBuilder.loadTexts: ipadPPPPAPTable.setStatus('optional') ipadPPPPAPTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 2, 1), ).setIndexNames((0, "IPAD-MIB", "ipadPPPPAPTableIndex")) if mibBuilder.loadTexts: ipadPPPPAPTableEntry.setStatus('mandatory') ipadPPPPAPTableIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadPPPPAPTableIndex.setStatus('mandatory') ipadPPPPAPTableUsername = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 30))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPPPPAPTableUsername.setStatus('mandatory') ipadPPPPAPTablePassword = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 30))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPPPPAPTablePassword.setStatus('mandatory') ipadPPPCHAPTable = MibTable((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 3), ) if mibBuilder.loadTexts: ipadPPPCHAPTable.setStatus('optional') ipadPPPCHAPTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 3, 1), ).setIndexNames((0, "IPAD-MIB", "ipadPPPCHAPTableIndex")) if mibBuilder.loadTexts: ipadPPPCHAPTableEntry.setStatus('mandatory') ipadPPPCHAPTableIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 3, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadPPPCHAPTableIndex.setStatus('mandatory') ipadPPPCHAPTableUsername = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 3, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 30))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPPPCHAPTableUsername.setStatus('mandatory') ipadPPPCHAPTableSecret = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 3, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 30))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPPPCHAPTableSecret.setStatus('mandatory') ipadModemDialTable = MibTable((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1), ) if mibBuilder.loadTexts: ipadModemDialTable.setStatus('optional') ipadModemDialTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1), ).setIndexNames((0, "IPAD-MIB", "ipadModemDialTableIndex")) if mibBuilder.loadTexts: ipadModemDialTableEntry.setStatus('mandatory') ipadModemDialTableIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("supervisor", 1), ("network1", 2), ("network2", 3), ("user1", 4), ("user2", 5), ("ethernet", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadModemDialTableIndex.setStatus('mandatory') ipadModemDialDataIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadModemDialDataIndex.setStatus('mandatory') ipadModemDialNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 30))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadModemDialNumber.setStatus('mandatory') ipadModemDialAbortTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1, 4), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadModemDialAbortTimer.setStatus('mandatory') ipadModemDialRedialAttempts = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1, 5), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadModemDialRedialAttempts.setStatus('mandatory') ipadModemDialDelayBeforeRedial = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1, 6), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadModemDialDelayBeforeRedial.setStatus('mandatory') ipadModemDialLoginScript = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 50))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadModemDialLoginScript.setStatus('mandatory') ipadModemDialUsername = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 30))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadModemDialUsername.setStatus('mandatory') ipadModemDialPassword = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1, 9), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 30))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadModemDialPassword.setStatus('mandatory') ipadModemDataTable = MibTable((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 2), ) if mibBuilder.loadTexts: ipadModemDataTable.setStatus('optional') ipadModemDataTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 2, 1), ).setIndexNames((0, "IPAD-MIB", "ipadModemDataTableIndex")) if mibBuilder.loadTexts: ipadModemDataTableEntry.setStatus('mandatory') ipadModemDataTableIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadModemDataTableIndex.setStatus('mandatory') ipadModemDataModemName = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 10))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadModemDataModemName.setStatus('mandatory') ipadModemDataSetupScript = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 50))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadModemDataSetupScript.setStatus('mandatory') ipadModemDataDialingScript = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 2, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 50))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadModemDataDialingScript.setStatus('mandatory') ipadModemDataAnswerScript = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 2, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 50))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadModemDataAnswerScript.setStatus('mandatory') ipadModemDataHangupScript = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 2, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 50))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadModemDataHangupScript.setStatus('mandatory') ipadFrPortStatsTable = MibTable((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1), ) if mibBuilder.loadTexts: ipadFrPortStatsTable.setStatus('optional') ipadFrPortStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1), ).setIndexNames((0, "IPAD-MIB", "ipadFrPortStatsService"), (0, "IPAD-MIB", "ipadFrPortStatsPeriod")) if mibBuilder.loadTexts: ipadFrPortStatsEntry.setStatus('mandatory') ipadFrPortStatsService = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadFrPortStatsService.setStatus('mandatory') ipadFrPortStatsPeriod = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98))).clone(namedValues=NamedValues(("portStatsSummary", 1), ("portStatsCurrent", 2), ("portStatsperiod1", 3), ("portStatsperiod2", 4), ("portStatsperiod3", 5), ("portStatsperiod4", 6), ("portStatsperiod5", 7), ("portStatsperiod6", 8), ("portStatsperiod7", 9), ("portStatsperiod8", 10), ("portStatsperiod9", 11), ("portStatsperiod10", 12), ("portStatsperiod11", 13), ("portStatsperiod12", 14), ("portStatsperiod13", 15), ("portStatsperiod14", 16), ("portStatsperiod15", 17), ("portStatsperiod16", 18), ("portStatsperiod17", 19), ("portStatsperiod18", 20), ("portStatsperiod19", 21), ("portStatsperiod20", 22), ("portStatsperiod21", 23), ("portStatsperiod22", 24), ("portStatsperiod23", 25), ("portStatsperiod24", 26), ("portStatsperiod25", 27), ("portStatsperiod26", 28), ("portStatsperiod27", 29), ("portStatsperiod28", 30), ("portStatsperiod29", 31), ("portStatsperiod30", 32), ("portStatsperiod31", 33), ("portStatsperiod32", 34), ("portStatsperiod33", 35), ("portStatsperiod34", 36), ("portStatsperiod35", 37), ("portStatsperiod36", 38), ("portStatsperiod37", 39), ("portStatsperiod38", 40), ("portStatsperiod39", 41), ("portStatsperiod40", 42), ("portStatsperiod41", 43), ("portStatsperiod42", 44), ("portStatsperiod43", 45), ("portStatsperiod44", 46), ("portStatsperiod45", 47), ("portStatsperiod46", 48), ("portStatsperiod47", 49), ("portStatsperiod48", 50), ("portStatsperiod49", 51), ("portStatsperiod50", 52), ("portStatsperiod51", 53), ("portStatsperiod52", 54), ("portStatsperiod53", 55), ("portStatsperiod54", 56), ("portStatsperiod55", 57), ("portStatsperiod56", 58), ("portStatsperiod57", 59), ("portStatsperiod58", 60), ("portStatsperiod59", 61), ("portStatsperiod60", 62), ("portStatsperiod61", 63), ("portStatsperiod62", 64), ("portStatsperiod63", 65), ("portStatsperiod64", 66), ("portStatsperiod65", 67), ("portStatsperiod66", 68), ("portStatsperiod67", 69), ("portStatsperiod68", 70), ("portStatsperiod69", 71), ("portStatsperiod70", 72), ("portStatsperiod71", 73), ("portStatsperiod72", 74), ("portStatsperiod73", 75), ("portStatsperiod74", 76), ("portStatsperiod75", 77), ("portStatsperiod76", 78), ("portStatsperiod77", 79), ("portStatsperiod78", 80), ("portStatsperiod79", 81), ("portStatsperiod80", 82), ("portStatsperiod81", 83), ("portStatsperiod82", 84), ("portStatsperiod83", 85), ("portStatsperiod84", 86), ("portStatsperiod85", 87), ("portStatsperiod86", 88), ("portStatsperiod87", 89), ("portStatsperiod88", 90), ("portStatsperiod89", 91), ("portStatsperiod90", 92), ("portStatsperiod91", 93), ("portStatsperiod92", 94), ("portStatsperiod93", 95), ("portStatsperiod94", 96), ("portStatsperiod95", 97), ("portStatsperiod96", 98)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadFrPortStatsPeriod.setStatus('mandatory') ipadFrPortStatsTxFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadFrPortStatsTxFrames.setStatus('mandatory') ipadFrPortStatsRxFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadFrPortStatsRxFrames.setStatus('mandatory') ipadFrPortStatsTxOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadFrPortStatsTxOctets.setStatus('mandatory') ipadFrPortStatsRxOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadFrPortStatsRxOctets.setStatus('mandatory') ipadFrPortStatsTxMgmtFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadFrPortStatsTxMgmtFrames.setStatus('mandatory') ipadFrPortStatsRxMgmtFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadFrPortStatsRxMgmtFrames.setStatus('mandatory') ipadFrPortStatsTxMgmtOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadFrPortStatsTxMgmtOctets.setStatus('mandatory') ipadFrPortStatsRxMgmtOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadFrPortStatsRxMgmtOctets.setStatus('mandatory') ipadFrPortStatsRxFECN = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 11), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadFrPortStatsRxFECN.setStatus('mandatory') ipadFrPortStatsRxBECN = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 12), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadFrPortStatsRxBECN.setStatus('mandatory') ipadFrPortStatsRxInvalid = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 13), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadFrPortStatsRxInvalid.setStatus('mandatory') ipadFrPortStatsTxStatInq = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 14), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadFrPortStatsTxStatInq.setStatus('mandatory') ipadFrPortStatsRxStatInq = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 15), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadFrPortStatsRxStatInq.setStatus('mandatory') ipadFrPortStatsTxStatResp = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 16), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadFrPortStatsTxStatResp.setStatus('mandatory') ipadFrPortStatsRxStatResp = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 17), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadFrPortStatsRxStatResp.setStatus('mandatory') ipadFrPortStatsRxInvLMI = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 18), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadFrPortStatsRxInvLMI.setStatus('mandatory') ipadFrPortStatsPeak = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 19), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadFrPortStatsPeak.setStatus('mandatory') ipadFrPortStatsAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 20), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadFrPortStatsAverage.setStatus('mandatory') ipadDLCIstatsTable = MibTable((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2), ) if mibBuilder.loadTexts: ipadDLCIstatsTable.setStatus('optional') ipadDLCIstatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1), ).setIndexNames((0, "IPAD-MIB", "ipadDLCIstatsService"), (0, "IPAD-MIB", "ipadDLCIstatsDLCI"), (0, "IPAD-MIB", "ipadDLCIstatsPeriod")) if mibBuilder.loadTexts: ipadDLCIstatsEntry.setStatus('mandatory') ipadDLCIstatsService = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadDLCIstatsService.setStatus('mandatory') ipadDLCIstatsDLCI = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadDLCIstatsDLCI.setStatus('mandatory') ipadDLCIstatsPeriod = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98))).clone(namedValues=NamedValues(("dlciStatsSummary", 1), ("dlciStatsCurrent", 2), ("dlciStatsperiod1", 3), ("dlciStatsperiod2", 4), ("dlciStatsperiod3", 5), ("dlciStatsperiod4", 6), ("dlciStatsperiod5", 7), ("dlciStatsperiod6", 8), ("dlciStatsperiod7", 9), ("dlciStatsperiod8", 10), ("dlciStatsperiod9", 11), ("dlciStatsperiod10", 12), ("dlciStatsperiod11", 13), ("dlciStatsperiod12", 14), ("dlciStatsperiod13", 15), ("dlciStatsperiod14", 16), ("dlciStatsperiod15", 17), ("dlciStatsperiod16", 18), ("dlciStatsperiod17", 19), ("dlciStatsperiod18", 20), ("dlciStatsperiod19", 21), ("dlciStatsperiod20", 22), ("dlciStatsperiod21", 23), ("dlciStatsperiod22", 24), ("dlciStatsperiod23", 25), ("dlciStatsperiod24", 26), ("dlciStatsperiod25", 27), ("dlciStatsperiod26", 28), ("dlciStatsperiod27", 29), ("dlciStatsperiod28", 30), ("dlciStatsperiod29", 31), ("dlciStatsperiod30", 32), ("dlciStatsperiod31", 33), ("dlciStatsperiod32", 34), ("dlciStatsperiod33", 35), ("dlciStatsperiod34", 36), ("dlciStatsperiod35", 37), ("dlciStatsperiod36", 38), ("dlciStatsperiod37", 39), ("dlciStatsperiod38", 40), ("dlciStatsperiod39", 41), ("dlciStatsperiod40", 42), ("dlciStatsperiod41", 43), ("dlciStatsperiod42", 44), ("dlciStatsperiod43", 45), ("dlciStatsperiod44", 46), ("dlciStatsperiod45", 47), ("dlciStatsperiod46", 48), ("dlciStatsperiod47", 49), ("dlciStatsperiod48", 50), ("dlciStatsperiod49", 51), ("dlciStatsperiod50", 52), ("dlciStatsperiod51", 53), ("dlciStatsperiod52", 54), ("dlciStatsperiod53", 55), ("dlciStatsperiod54", 56), ("dlciStatsperiod55", 57), ("dlciStatsperiod56", 58), ("dlciStatsperiod57", 59), ("dlciStatsperiod58", 60), ("dlciStatsperiod59", 61), ("dlciStatsperiod60", 62), ("dlciStatsperiod61", 63), ("dlciStatsperiod62", 64), ("dlciStatsperiod63", 65), ("dlciStatsperiod64", 66), ("dlciStatsperiod65", 67), ("dlciStatsperiod66", 68), ("dlciStatsperiod67", 69), ("dlciStatsperiod68", 70), ("dlciStatsperiod69", 71), ("dlciStatsperiod70", 72), ("dlciStatsperiod71", 73), ("dlciStatsperiod72", 74), ("dlciStatsperiod73", 75), ("dlciStatsperiod74", 76), ("dlciStatsperiod75", 77), ("dlciStatsperiod76", 78), ("dlciStatsperiod77", 79), ("dlciStatsperiod78", 80), ("dlciStatsperiod79", 81), ("dlciStatsperiod80", 82), ("dlciStatsperiod81", 83), ("dlciStatsperiod82", 84), ("dlciStatsperiod83", 85), ("dlciStatsperiod84", 86), ("dlciStatsperiod85", 87), ("dlciStatsperiod86", 88), ("dlciStatsperiod87", 89), ("dlciStatsperiod88", 90), ("dlciStatsperiod89", 91), ("dlciStatsperiod90", 92), ("dlciStatsperiod91", 93), ("dlciStatsperiod92", 94), ("dlciStatsperiod93", 95), ("dlciStatsperiod94", 96), ("dlciStatsperiod95", 97), ("dlciStatsperiod96", 98)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadDLCIstatsPeriod.setStatus('mandatory') ipadDLCIstatsTxFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadDLCIstatsTxFrames.setStatus('mandatory') ipadDLCIstatsRxFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadDLCIstatsRxFrames.setStatus('mandatory') ipadDLCIstatsTxOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadDLCIstatsTxOctets.setStatus('mandatory') ipadDLCIstatsRxOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadDLCIstatsRxOctets.setStatus('mandatory') ipadDLCIstatsRxFECN = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadDLCIstatsRxFECN.setStatus('mandatory') ipadDLCIstatsRxBECN = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadDLCIstatsRxBECN.setStatus('mandatory') ipadDLCIstatsRxDE = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadDLCIstatsRxDE.setStatus('mandatory') ipadDLCIstatsTxExcessCIR = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 11), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadDLCIstatsTxExcessCIR.setStatus('mandatory') ipadDLCIstatsTxExcessBe = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 12), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadDLCIstatsTxExcessBe.setStatus('mandatory') ipadDLCIstatsTxMgmtFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 13), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadDLCIstatsTxMgmtFrames.setStatus('mandatory') ipadDLCIstatsRxMgmtFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 14), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadDLCIstatsRxMgmtFrames.setStatus('mandatory') ipadDLCIstatsTxMgmtOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 15), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadDLCIstatsTxMgmtOctets.setStatus('mandatory') ipadDLCIstatsRxMgmtOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 16), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadDLCIstatsRxMgmtOctets.setStatus('mandatory') ipadDLCIstatsPeak = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 17), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadDLCIstatsPeak.setStatus('mandatory') ipadDLCIstatsAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 18), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadDLCIstatsAverage.setStatus('mandatory') ipadDLCIstatsDelayPeak = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 19), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadDLCIstatsDelayPeak.setStatus('mandatory') ipadDLCIstatsDelayAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 20), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadDLCIstatsDelayAverage.setStatus('mandatory') ipadDLCIstatsRoundTripTimeouts = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 21), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadDLCIstatsRoundTripTimeouts.setStatus('mandatory') ipadDLCIstatsUAS = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 22), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadDLCIstatsUAS.setStatus('mandatory') ipadUserStatsTable = MibTable((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3), ) if mibBuilder.loadTexts: ipadUserStatsTable.setStatus('optional') ipadUserStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3, 1), ).setIndexNames((0, "IPAD-MIB", "ipadUserStatsIndex"), (0, "IPAD-MIB", "ipadUserStatsPeriod")) if mibBuilder.loadTexts: ipadUserStatsEntry.setStatus('mandatory') ipadUserStatsIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadUserStatsIndex.setStatus('mandatory') ipadUserStatsPeriod = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98))).clone(namedValues=NamedValues(("userStatsSummary", 1), ("userStatsCurrent", 2), ("userStatsperiod1", 3), ("userStatsperiod2", 4), ("userStatsperiod3", 5), ("userStatsperiod4", 6), ("userStatsperiod5", 7), ("userStatsperiod6", 8), ("userStatsperiod7", 9), ("userStatsperiod8", 10), ("userStatsperiod9", 11), ("userStatsperiod10", 12), ("userStatsperiod11", 13), ("userStatsperiod12", 14), ("userStatsperiod13", 15), ("userStatsperiod14", 16), ("userStatsperiod15", 17), ("userStatsperiod16", 18), ("userStatsperiod17", 19), ("userStatsperiod18", 20), ("userStatsperiod19", 21), ("userStatsperiod20", 22), ("userStatsperiod21", 23), ("userStatsperiod22", 24), ("userStatsperiod23", 25), ("userStatsperiod24", 26), ("userStatsperiod25", 27), ("userStatsperiod26", 28), ("userStatsperiod27", 29), ("userStatsperiod28", 30), ("userStatsperiod29", 31), ("userStatsperiod30", 32), ("userStatsperiod31", 33), ("userStatsperiod32", 34), ("userStatsperiod33", 35), ("userStatsperiod34", 36), ("userStatsperiod35", 37), ("userStatsperiod36", 38), ("userStatsperiod37", 39), ("userStatsperiod38", 40), ("userStatsperiod39", 41), ("userStatsperiod40", 42), ("userStatsperiod41", 43), ("userStatsperiod42", 44), ("userStatsperiod43", 45), ("userStatsperiod44", 46), ("userStatsperiod45", 47), ("userStatsperiod46", 48), ("userStatsperiod47", 49), ("userStatsperiod48", 50), ("userStatsperiod49", 51), ("userStatsperiod50", 52), ("userStatsperiod51", 53), ("userStatsperiod52", 54), ("userStatsperiod53", 55), ("userStatsperiod54", 56), ("userStatsperiod55", 57), ("userStatsperiod56", 58), ("userStatsperiod57", 59), ("userStatsperiod58", 60), ("userStatsperiod59", 61), ("userStatsperiod60", 62), ("userStatsperiod61", 63), ("userStatsperiod62", 64), ("userStatsperiod63", 65), ("userStatsperiod64", 66), ("userStatsperiod65", 67), ("userStatsperiod66", 68), ("userStatsperiod67", 69), ("userStatsperiod68", 70), ("userStatsperiod69", 71), ("userStatsperiod70", 72), ("userStatsperiod71", 73), ("userStatsperiod72", 74), ("userStatsperiod73", 75), ("userStatsperiod74", 76), ("userStatsperiod75", 77), ("userStatsperiod76", 78), ("userStatsperiod77", 79), ("userStatsperiod78", 80), ("userStatsperiod79", 81), ("userStatsperiod80", 82), ("userStatsperiod81", 83), ("userStatsperiod82", 84), ("userStatsperiod83", 85), ("userStatsperiod84", 86), ("userStatsperiod85", 87), ("userStatsperiod86", 88), ("userStatsperiod87", 89), ("userStatsperiod88", 90), ("userStatsperiod89", 91), ("userStatsperiod90", 92), ("userStatsperiod91", 93), ("userStatsperiod92", 94), ("userStatsperiod93", 95), ("userStatsperiod94", 96), ("userStatsperiod95", 97), ("userStatsperiod96", 98)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadUserStatsPeriod.setStatus('mandatory') ipadUserStatsTxFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadUserStatsTxFrames.setStatus('mandatory') ipadUserStatsRxFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadUserStatsRxFrames.setStatus('mandatory') ipadUserStatsTxOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadUserStatsTxOctets.setStatus('mandatory') ipadUserStatsRxOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadUserStatsRxOctets.setStatus('mandatory') ipadUserStatsTxRatePeak = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadUserStatsTxRatePeak.setStatus('mandatory') ipadUserStatsTxRateAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadUserStatsTxRateAverage.setStatus('mandatory') ipadIPTopNStatsTable = MibTable((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 4), ) if mibBuilder.loadTexts: ipadIPTopNStatsTable.setStatus('optional') ipadIPTopNStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 4, 1), ).setIndexNames((0, "IPAD-MIB", "ipadIPTopNStatsIndex")) if mibBuilder.loadTexts: ipadIPTopNStatsEntry.setStatus('mandatory') ipadIPTopNStatsIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 4, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadIPTopNStatsIndex.setStatus('mandatory') ipadIPTopNStatsAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 4, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadIPTopNStatsAddress.setStatus('mandatory') ipadIPTopNStatsTimestamp = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 4, 1, 3), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadIPTopNStatsTimestamp.setStatus('mandatory') ipadIPTopNStatsRxFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 4, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadIPTopNStatsRxFrames.setStatus('mandatory') ipadIPTopNStatsRxOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 4, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadIPTopNStatsRxOctets.setStatus('mandatory') ipadIPTopNStatsTxFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 4, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadIPTopNStatsTxFrames.setStatus('mandatory') ipadIPTopNStatsTxOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 4, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadIPTopNStatsTxOctets.setStatus('mandatory') ipadPktSwOperatingMode = MibScalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("tdm", 2), ("monitor", 3), ("packet", 4), ("remoteConfig", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPktSwOperatingMode.setStatus('mandatory') ipadPktSwCfgTable = MibTable((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2), ) if mibBuilder.loadTexts: ipadPktSwCfgTable.setStatus('optional') ipadPktSwCfgTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1), ).setIndexNames((0, "IPAD-MIB", "ipadPktSwCfgService")) if mibBuilder.loadTexts: ipadPktSwCfgTableEntry.setStatus('mandatory') ipadPktSwCfgService = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadPktSwCfgService.setStatus('mandatory') ipadPktSwCfgInterfaceType = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("uni", 1), ("ni", 2), ("nni", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPktSwCfgInterfaceType.setStatus('mandatory') ipadPktSwCfgLnkMgmtType = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("other", 1), ("auto", 2), ("ccitt", 3), ("ansi", 4), ("lmi", 5), ("none", 6)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPktSwCfgLnkMgmtType.setStatus('mandatory') ipadPktSwCfgMaxFrameSize = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 4), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPktSwCfgMaxFrameSize.setStatus('mandatory') ipadPktSwCfgnN1 = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 5), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPktSwCfgnN1.setStatus('mandatory') ipadPktSwCfgnN2 = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 6), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPktSwCfgnN2.setStatus('mandatory') ipadPktSwCfgnN3 = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPktSwCfgnN3.setStatus('mandatory') ipadPktSwCfgnT1 = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 8), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPktSwCfgnT1.setStatus('mandatory') ipadPktSwCfgDefCIR = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 9), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPktSwCfgDefCIR.setStatus('mandatory') ipadPktSwCfgDefExBurst = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 10), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPktSwCfgDefExBurst.setStatus('mandatory') ipadPktSwCfgCIREE = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPktSwCfgCIREE.setStatus('mandatory') ipadPktSwCfgLinkInjection = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("standard", 2), ("buffered", 3), ("forced", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPktSwCfgLinkInjection.setStatus('mandatory') ipadPktSwCfgAutoDiagnostic = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPktSwCfgAutoDiagnostic.setStatus('mandatory') ipadPktSwCfgAutoDiscovery = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPktSwCfgAutoDiscovery.setStatus('mandatory') ipadPktSwCfgMgmtDLCI = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4096))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadPktSwCfgMgmtDLCI.setStatus('mandatory') ipadTrapDestTable = MibTable((1, 3, 6, 1, 4, 1, 321, 100, 1, 11, 1), ) if mibBuilder.loadTexts: ipadTrapDestTable.setStatus('optional') ipadTrapDestTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 100, 1, 11, 1, 1), ).setIndexNames((0, "IPAD-MIB", "ipadTrapDestIndex")) if mibBuilder.loadTexts: ipadTrapDestTableEntry.setStatus('mandatory') ipadTrapDestIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 11, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadTrapDestIndex.setStatus('mandatory') ipadTrapDestination = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 11, 1, 1, 2), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadTrapDestination.setStatus('mandatory') ipadFrPortRxInvalidFramesExceeded = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25000)) ipadFrPortRxThroughputExceeded = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25001)) ipadFrPortTxThroughputExceeded = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25002)) ipadDLCItxCIRexceeded = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25003)) ipadDLCItxBEexceeded = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25004)) ipadDLCIRxCongestionExceeded = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25005)) ipadUserTxExceeded = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25006)) ipadDlciRxBECNinCIRAlarm = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25007)) ipadDlciUASExceeded = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25008)) ipadserialDteDTRAlarmExists = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25009)) ipadt1e1ESAlarmDeclared = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25010)) ipadt1e1SESAlarmDeclared = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25011)) ipadt1e1LOSSAlarmDeclared = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25012)) ipadt1e1UASAlarmDeclared = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25013)) ipadt1e1CSSAlarmDeclared = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25014)) ipadt1e1BPVSAlarmDeclared = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25015)) ipadt1e1OOFSAlarmDeclared = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25016)) ipadt1e1AISAlarmExists = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25017)) ipadt1e1RASAlarmExists = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25018)) ipadDLCIremoteSOSAlarm = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25019)) ipadMiscPortSettings = MibTable((1, 3, 6, 1, 4, 1, 321, 100, 1, 12, 1), ) if mibBuilder.loadTexts: ipadMiscPortSettings.setStatus('optional') ipadMiscPortSettingsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 100, 1, 12, 1, 1), ).setIndexNames((0, "IPAD-MIB", "ipadMiscPortSettingsIndex")) if mibBuilder.loadTexts: ipadMiscPortSettingsEntry.setStatus('mandatory') ipadMiscPortSettingsIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 12, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("supervisor", 1), ("network1", 2), ("network2", 3), ("user1", 4), ("user2", 5), ("ethernet", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadMiscPortSettingsIndex.setStatus('mandatory') ipadMiscPortSettingsSerialType = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 12, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("dce", 2), ("dte", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadMiscPortSettingsSerialType.setStatus('mandatory') ipadMiscClearStatusCounts = MibScalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 12, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("other", 1), ("clear", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadMiscClearStatusCounts.setStatus('mandatory') ipadSoftKeyTable = MibTable((1, 3, 6, 1, 4, 1, 321, 100, 1, 14, 1), ) if mibBuilder.loadTexts: ipadSoftKeyTable.setStatus('mandatory') ipadSoftKeyTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 100, 1, 14, 1, 1), ).setIndexNames((0, "IPAD-MIB", "ipadSoftKeyIndex")) if mibBuilder.loadTexts: ipadSoftKeyTableEntry.setStatus('mandatory') ipadSoftKeyIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 14, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadSoftKeyIndex.setStatus('mandatory') ipadSoftKeyAcronym = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 14, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 3))).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadSoftKeyAcronym.setStatus('mandatory') ipadSoftKeyDescription = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 14, 1, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadSoftKeyDescription.setStatus('mandatory') ipadSoftKeyExpirationDate = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 14, 1, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 8))).setMaxAccess("readonly") if mibBuilder.loadTexts: ipadSoftKeyExpirationDate.setStatus('mandatory') ipadSoftKeyEntry = MibScalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 14, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipadSoftKeyEntry.setStatus('mandatory') mibBuilder.exportSymbols("IPAD-MIB", ipadFrPortStatsService=ipadFrPortStatsService, ipadt1e1SESAlarmDeclared=ipadt1e1SESAlarmDeclared, ipadDLCIrxCongAlarm=ipadDLCIrxCongAlarm, ipadTrapDest=ipadTrapDest, ipadPPPPAPTable=ipadPPPPAPTable, ipadEndpointDLCInumber=ipadEndpointDLCInumber, ipadDLCIstatsRxDE=ipadDLCIstatsRxDE, ipadPktSwCfgLinkInjection=ipadPktSwCfgLinkInjection, ipadPPPCHAPTable=ipadPPPCHAPTable, ipadDLCItxCIRexceeded=ipadDLCItxCIRexceeded, ipadPktSwCfgMaxFrameSize=ipadPktSwCfgMaxFrameSize, ipadFrPortStatsPeriod=ipadFrPortStatsPeriod, ipadIPTopNStatsRxOctets=ipadIPTopNStatsRxOctets, ipadEndpointType=ipadEndpointType, ipadFrPortStatsRxInvalid=ipadFrPortStatsRxInvalid, ipadPPPCfgAllowCHAP=ipadPPPCfgAllowCHAP, ipadFrPortStatsRxMgmtOctets=ipadFrPortStatsRxMgmtOctets, ipadDLCIstatsDelayAverage=ipadDLCIstatsDelayAverage, ipadPPPCfgAllowPAP=ipadPPPCfgAllowPAP, ipadDlciUASExceeded=ipadDlciUASExceeded, ipadUserTable=ipadUserTable, ipadDLCIstatsDelayPeak=ipadDLCIstatsDelayPeak, ipadMiscPortSettings=ipadMiscPortSettings, ipadDLCIBe=ipadDLCIBe, ipadFrPort=ipadFrPort, ipadFrPortStatsRxFECN=ipadFrPortStatsRxFECN, ipadModemDialNumber=ipadModemDialNumber, ipadIPTopNStatsAddress=ipadIPTopNStatsAddress, ipadChannelTableEntry=ipadChannelTableEntry, ipadDLCItxExCIRThreshold=ipadDLCItxExCIRThreshold, ipadModemDataDialingScript=ipadModemDataDialingScript, ipadChannelRate=ipadChannelRate, ipadDLCIremoteSOSAlarm=ipadDLCIremoteSOSAlarm, ipadUserIPStatGrantedReportSize=ipadUserIPStatGrantedReportSize, ipadModemDialUsername=ipadModemDialUsername, ipadPPPPAPTablePassword=ipadPPPPAPTablePassword, ipadUserStatsTxRateAverage=ipadUserStatsTxRateAverage, ipadDLCITableEntry=ipadDLCITableEntry, ipadDLCIcongestion=ipadDLCIcongestion, ipadDLCIstatsAverage=ipadDLCIstatsAverage, ipadPktSwCfgLnkMgmtType=ipadPktSwCfgLnkMgmtType, ipadServiceifIndex=ipadServiceifIndex, ipadTrapDestTableEntry=ipadTrapDestTableEntry, ipadUserFilterByDLCI=ipadUserFilterByDLCI, ipadUserIPPort=ipadUserIPPort, hbu=hbu, ipadFrPortActive=ipadFrPortActive, ipadUserStatsTxRatePeak=ipadUserStatsTxRatePeak, ipadUserStatsTable=ipadUserStatsTable, ipadChannelTable=ipadChannelTable, ipadDLCIrxBECNinCIR=ipadDLCIrxBECNinCIR, ipadFrPortRxInvAlmThreshold=ipadFrPortRxInvAlmThreshold, ipadDLCICIR=ipadDLCICIR, ipadFrPortStatsTxFrames=ipadFrPortStatsTxFrames, ipadPktSwCfgnT1=ipadPktSwCfgnT1, ipadFrPortService=ipadFrPortService, ipadDLCIrxMon=ipadDLCIrxMon, ipadEndpointTableEntry=ipadEndpointTableEntry, ipadModem=ipadModem, ipadChannelifIndex=ipadChannelifIndex, ipadEndpointRefSLP=ipadEndpointRefSLP, ipadPPPCHAPTableSecret=ipadPPPCHAPTableSecret, ipadUserStatsRxOctets=ipadUserStatsRxOctets, ipadMiscPortSettingsIndex=ipadMiscPortSettingsIndex, ipadChannelService=ipadChannelService, ipadModemDataSetupScript=ipadModemDataSetupScript, ipadDLCItxExCIRAlarm=ipadDLCItxExCIRAlarm, ipadPPPCfgNegMagic=ipadPPPCfgNegMagic, ipadPPPCfgNegIpAddress=ipadPPPCfgNegIpAddress, ipadModemDialDataIndex=ipadModemDialDataIndex, ipadDLCIstatsTxOctets=ipadDLCIstatsTxOctets, ipadEndpointService=ipadEndpointService, ipadUserFilterByIPAddress=ipadUserFilterByIPAddress, ipadDLCIstatsRxFrames=ipadDLCIstatsRxFrames, verilink=verilink, ipadDLCIenableDelay=ipadDLCIenableDelay, ipadDLCIremoteEquipActive=ipadDLCIremoteEquipActive, ipadDlciRxBECNinCIRAlarm=ipadDlciRxBECNinCIRAlarm, ipadPPPCfgNegPAP=ipadPPPCfgNegPAP, ipadDLCIUASThreshold=ipadDLCIUASThreshold, ipadPPPCfgAuthChallengeInterval=ipadPPPCfgAuthChallengeInterval, ipadDLCItxExBeThreshold=ipadDLCItxExBeThreshold, ipadDLCInumber=ipadDLCInumber, ipadPktSwCfgnN1=ipadPktSwCfgnN1, ipadModemDataTable=ipadModemDataTable, ipadPPPCfgDialMode=ipadPPPCfgDialMode, ipadPPPCfgCHAPSecret=ipadPPPCfgCHAPSecret, ipadModemDialAbortTimer=ipadModemDialAbortTimer, ipadPPPCfgNegCompression=ipadPPPCfgNegCompression, ipadDLCIstatsTxMgmtOctets=ipadDLCIstatsTxMgmtOctets, ipadPPPCfgCHAPUsername=ipadPPPCfgCHAPUsername, ipadModemDataTableIndex=ipadModemDataTableIndex, ipadDLCIstatsRxBECN=ipadDLCIstatsRxBECN, ipadPktSwCfgnN2=ipadPktSwCfgnN2, ipadIPTopNStatsTxOctets=ipadIPTopNStatsTxOctets, ipadFrPortTable=ipadFrPortTable, ipadDLCIstatsTxMgmtFrames=ipadDLCIstatsTxMgmtFrames, ipadDLCIstatsService=ipadDLCIstatsService, ipadPktSwCfgAutoDiscovery=ipadPktSwCfgAutoDiscovery, ipadPktSwCfgService=ipadPktSwCfgService, ipadFrPortStatsRxFrames=ipadFrPortStatsRxFrames, ipadPPPCfgNegIPCPCompression=ipadPPPCfgNegIPCPCompression, ipadModemDialDelayBeforeRedial=ipadModemDialDelayBeforeRedial, ipadFrPortStatsRxMgmtFrames=ipadFrPortStatsRxMgmtFrames, ipadUserIPStatStartTime=ipadUserIPStatStartTime, ipadEndpointRemoteIpMask=ipadEndpointRemoteIpMask, ipadEndpointName=ipadEndpointName, ipadUserTxAlmThreshold=ipadUserTxAlmThreshold, ipadPPPCfgACCM=ipadPPPCfgACCM, ipadTrapDestination=ipadTrapDestination, ipadMiscPortSettingsEntry=ipadMiscPortSettingsEntry, ipadUserIPStatDiscardType=ipadUserIPStatDiscardType, ipadFrPortStatsTxOctets=ipadFrPortStatsTxOctets, ipadFrPortStatsTxMgmtOctets=ipadFrPortStatsTxMgmtOctets, ipadEndpointDeleteEndpoint=ipadEndpointDeleteEndpoint, ipadRouter=ipadRouter, ipadUserDLCI=ipadUserDLCI, ipadDLCIencapsulation=ipadDLCIencapsulation, ipadModemDataAnswerScript=ipadModemDataAnswerScript, ipadPPPCfgPeerIpAddress=ipadPPPCfgPeerIpAddress, ipadEndpoint=ipadEndpoint, ipadServiceTableEntry=ipadServiceTableEntry, ipadFrPortRxInvAlmAlarm=ipadFrPortRxInvAlmAlarm, ipadFrPortTxAlmThreshold=ipadFrPortTxAlmThreshold, ipadFrPortRxAlmAlarm=ipadFrPortRxAlmAlarm, ipadEndpointBackup=ipadEndpointBackup, ipadUserTxAlmAlarm=ipadUserTxAlmAlarm, ipadDLCIstatsTable=ipadDLCIstatsTable, ipadTrapDestIndex=ipadTrapDestIndex, ipadDLCIstatsRxOctets=ipadDLCIstatsRxOctets, ipadDLCIstatsTxExcessBe=ipadDLCIstatsTxExcessBe, ipad=ipad, ipadServicePair=ipadServicePair, ipadPPPCfgSubnetMask=ipadPPPCfgSubnetMask, ipadPktSwCfgCIREE=ipadPktSwCfgCIREE, ipadSoftKeyExpirationDate=ipadSoftKeyExpirationDate, ipadPPPCfgInactivityTimer=ipadPPPCfgInactivityTimer, ipadUserIPMask=ipadUserIPMask, ipadPPPCHAPTableIndex=ipadPPPCHAPTableIndex, ipadIPTopNStatsIndex=ipadIPTopNStatsIndex, ipadDLCIstatsRxMgmtOctets=ipadDLCIstatsRxMgmtOctets, ipadFrPortLMIType=ipadFrPortLMIType, ipadModemDialTableEntry=ipadModemDialTableEntry, ipadDLCIstatsTxFrames=ipadDLCIstatsTxFrames, ipadt1e1CSSAlarmDeclared=ipadt1e1CSSAlarmDeclared, ipadModemDataTableEntry=ipadModemDataTableEntry, ipadPktSwCfgDefExBurst=ipadPktSwCfgDefExBurst, ipadUserTxExceeded=ipadUserTxExceeded, ipadSoftKeyAcronym=ipadSoftKeyAcronym, ipadDLCItxExBeAlarm=ipadDLCItxExBeAlarm, ipadChannelPair=ipadChannelPair, ipadPktSwCfgnN3=ipadPktSwCfgnN3, ipadSoftKeyEntry=ipadSoftKeyEntry, ipadEndpointLastChange=ipadEndpointLastChange, ipadPPPCfgTableEntry=ipadPPPCfgTableEntry, ipadDLCIstatsPeriod=ipadDLCIstatsPeriod, ipadDLCIstatsUAS=ipadDLCIstatsUAS, ipadFrPortStatsRxStatResp=ipadFrPortStatsRxStatResp, ipadUser=ipadUser, ipadFrPortStatsAverage=ipadFrPortStatsAverage, ipadPktSwOperatingMode=ipadPktSwOperatingMode, ipadModemDialLoginScript=ipadModemDialLoginScript, ipadDLCIUASAlarm=ipadDLCIUASAlarm, ipadUserStatsTxOctets=ipadUserStatsTxOctets, ipadDLCIactive=ipadDLCIactive, ipadUserIndex=ipadUserIndex, ipadEndpointRemoteIpAddr=ipadEndpointRemoteIpAddr, ipadDLCIremoteUnit=ipadDLCIremoteUnit, ipadServiceType=ipadServiceType, ipadPPPCfgNegMRU=ipadPPPCfgNegMRU, ipadUserFilterByIPPort=ipadUserFilterByIPPort, ipadFrPortStatsPeak=ipadFrPortStatsPeak, ipadDLCIstatsRxFECN=ipadDLCIstatsRxFECN, ipadFrPortStatsTxMgmtFrames=ipadFrPortStatsTxMgmtFrames, ipadPktSwitch=ipadPktSwitch, ipadDLCIpropOffset=ipadDLCIpropOffset, ipadPPPCfgService=ipadPPPCfgService, ipadPPPCfgNegCHAP=ipadPPPCfgNegCHAP, ipadService=ipadService, ipadPPPPAPTableEntry=ipadPPPPAPTableEntry, ipadIPTopNStatsTable=ipadIPTopNStatsTable, ipadDLCItxBEexceeded=ipadDLCItxBEexceeded, ipadChannel=ipadChannel, ipadPPPCfgNegAddress=ipadPPPCfgNegAddress, ipadIPTopNStatsRxFrames=ipadIPTopNStatsRxFrames, ipadDLCIstatsDLCI=ipadDLCIstatsDLCI, ipadt1e1RASAlarmExists=ipadt1e1RASAlarmExists, ipadPktSwCfgTable=ipadPktSwCfgTable, ipadUserIPStatTimeRemaining=ipadUserIPStatTimeRemaining, ipadModemDialPassword=ipadModemDialPassword, ipadUserStatsTxFrames=ipadUserStatsTxFrames, ipadModemDataHangupScript=ipadModemDataHangupScript, ipadt1e1ESAlarmDeclared=ipadt1e1ESAlarmDeclared, ipadEndpointTable=ipadEndpointTable, ipadDLCIstatsRxMgmtFrames=ipadDLCIstatsRxMgmtFrames, ipadt1e1AISAlarmExists=ipadt1e1AISAlarmExists, ipadPPPCfgPortIpAddress=ipadPPPCfgPortIpAddress, ipadUserIPStatRequestedReportSize=ipadUserIPStatRequestedReportSize, ipadDLCIminBC=ipadDLCIminBC, ipadt1e1BPVSAlarmDeclared=ipadt1e1BPVSAlarmDeclared, ipadserialDteDTRAlarmExists=ipadserialDteDTRAlarmExists, ipadMisc=ipadMisc, ipadPPPPAPTableIndex=ipadPPPPAPTableIndex, ipadDLCITable=ipadDLCITable, ipadServiceIndex=ipadServiceIndex, ipadDLCIinBand=ipadDLCIinBand, ipadDLCI=ipadDLCI, ipadPktSwCfgMgmtDLCI=ipadPktSwCfgMgmtDLCI, ipadFrPortStatsTxStatResp=ipadFrPortStatsTxStatResp, ipadEndpointForward=ipadEndpointForward, ipadUserStatsEntry=ipadUserStatsEntry, ipadPktSwCfgAutoDiagnostic=ipadPktSwCfgAutoDiagnostic, ipadTrapDestTable=ipadTrapDestTable, ipadModemDataModemName=ipadModemDataModemName, ipadMiscPortSettingsSerialType=ipadMiscPortSettingsSerialType, ipadPPPCfgTable=ipadPPPCfgTable, ipadUserIPStatReportNumber=ipadUserIPStatReportNumber, ipadDLCIproprietary=ipadDLCIproprietary, ipadIPTopNStatsTimestamp=ipadIPTopNStatsTimestamp, ipadServiceAddService=ipadServiceAddService, ipadUserService=ipadUserService, ipadFrPortTxThroughputExceeded=ipadFrPortTxThroughputExceeded, ipadPPPCfgPAPPassword=ipadPPPCfgPAPPassword, ipadIPTopNStatsTxFrames=ipadIPTopNStatsTxFrames, ipadPktSwCfgInterfaceType=ipadPktSwCfgInterfaceType, ipadFrPortRxInvalidFramesExceeded=ipadFrPortRxInvalidFramesExceeded, ipadModemDialTableIndex=ipadModemDialTableIndex, ipadFrPortStatsTxStatInq=ipadFrPortStatsTxStatInq, ipadFrPortTableEntry=ipadFrPortTableEntry, ipadPPPCfgNegACCM=ipadPPPCfgNegACCM, ipadPPPCfgPAPUsername=ipadPPPCfgPAPUsername, ipadModemDialRedialAttempts=ipadModemDialRedialAttempts, ipadFrPortStatsEntry=ipadFrPortStatsEntry, ipadDLCIservice=ipadDLCIservice, ipadDLCIRxCongestionExceeded=ipadDLCIRxCongestionExceeded, ipadSvcAware=ipadSvcAware, ipadDLCIremote=ipadDLCIremote, ipadEndpointAddEndpoint=ipadEndpointAddEndpoint, ipadModemDialTable=ipadModemDialTable, ipadIPTopNStatsEntry=ipadIPTopNStatsEntry, ipadPPPCHAPTableUsername=ipadPPPCHAPTableUsername, ipadUserIPStatTimeDuration=ipadUserIPStatTimeDuration, ipadPPPCfgMRU=ipadPPPCfgMRU, ipadDLCIstatsRoundTripTimeouts=ipadDLCIstatsRoundTripTimeouts, ipadDLCILastChange=ipadDLCILastChange, ipadt1e1UASAlarmDeclared=ipadt1e1UASAlarmDeclared, ipadDLCIdEctrl=ipadDLCIdEctrl, ipadDLCIstatsEntry=ipadDLCIstatsEntry, ipadSoftKey=ipadSoftKey, ipadSoftKeyDescription=ipadSoftKeyDescription, ipadFrPortStatsRxStatInq=ipadFrPortStatsRxStatInq, ipadFrPortStatsTable=ipadFrPortStatsTable, ipadPPP=ipadPPP, ipadUserStatsPeriod=ipadUserStatsPeriod) mibBuilder.exportSymbols("IPAD-MIB", ipadFrPortRxAlmThreshold=ipadFrPortRxAlmThreshold, ipadPPPPAPTableUsername=ipadPPPPAPTableUsername, ipadFrPortStatsRxBECN=ipadFrPortStatsRxBECN, ipadFrPortStatsRxInvLMI=ipadFrPortStatsRxInvLMI, ipadDLCIstatsPeak=ipadDLCIstatsPeak, ipadFrPortStatsRxOctets=ipadFrPortStatsRxOctets, ipadt1e1OOFSAlarmDeclared=ipadt1e1OOFSAlarmDeclared, ipadSoftKeyIndex=ipadSoftKeyIndex, ipadUserTableEntry=ipadUserTableEntry, ipadDLCIrxCongThreshold=ipadDLCIrxCongThreshold, ipadServiceTable=ipadServiceTable, ipadUserStatsRxFrames=ipadUserStatsRxFrames, ipadUserIPAddress=ipadUserIPAddress, ipadPPPCfgNegotiationInit=ipadPPPCfgNegotiationInit, ipadPktSwCfgDefCIR=ipadPktSwCfgDefCIR, ipadFrPortRxThroughputExceeded=ipadFrPortRxThroughputExceeded, ipadSoftKeyTableEntry=ipadSoftKeyTableEntry, ipadEndpointIndex=ipadEndpointIndex, ipadPktSwCfgTableEntry=ipadPktSwCfgTableEntry, ipadChannelIndex=ipadChannelIndex, ipadServiceDeleteService=ipadServiceDeleteService, ipadt1e1LOSSAlarmDeclared=ipadt1e1LOSSAlarmDeclared, ipadSoftKeyTable=ipadSoftKeyTable, ipadMiscClearStatusCounts=ipadMiscClearStatusCounts, ipadFrPortLMIMode=ipadFrPortLMIMode, ipadFrPortTxAlmAlarm=ipadFrPortTxAlmAlarm, ipadDLCIstatsTxExcessCIR=ipadDLCIstatsTxExcessCIR, ipadUserStatsIndex=ipadUserStatsIndex, ipadPPPCHAPTableEntry=ipadPPPCHAPTableEntry)
(object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_intersection, value_range_constraint, value_size_constraint, single_value_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ValueRangeConstraint', 'ValueSizeConstraint', 'SingleValueConstraint', 'ConstraintsUnion') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (mib_scalar, mib_table, mib_table_row, mib_table_column, module_identity, time_ticks, counter32, counter64, notification_type, gauge32, iso, bits, enterprises, mib_identifier, object_identity, unsigned32, integer32, ip_address, notification_type) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ModuleIdentity', 'TimeTicks', 'Counter32', 'Counter64', 'NotificationType', 'Gauge32', 'iso', 'Bits', 'enterprises', 'MibIdentifier', 'ObjectIdentity', 'Unsigned32', 'Integer32', 'IpAddress', 'NotificationType') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') verilink = mib_identifier((1, 3, 6, 1, 4, 1, 321)) hbu = mib_identifier((1, 3, 6, 1, 4, 1, 321, 100)) ipad = mib_identifier((1, 3, 6, 1, 4, 1, 321, 100, 1)) ipad_fr_port = mib_identifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 1)) ipad_service = mib_identifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 2)) ipad_channel = mib_identifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 3)) ipad_dlci = mib_identifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 4)) ipad_endpoint = mib_identifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 5)) ipad_user = mib_identifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 6)) ipad_ppp = mib_identifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 7)) ipad_modem = mib_identifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 8)) ipad_svc_aware = mib_identifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 9)) ipad_pkt_switch = mib_identifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 10)) ipad_trap_dest = mib_identifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 11)) ipad_misc = mib_identifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 12)) ipad_router = mib_identifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 13)) ipad_soft_key = mib_identifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 14)) ipad_fr_port_table = mib_table((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1)) if mibBuilder.loadTexts: ipadFrPortTable.setStatus('optional') ipad_fr_port_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1)).setIndexNames((0, 'IPAD-MIB', 'ipadFrPortService')) if mibBuilder.loadTexts: ipadFrPortTableEntry.setStatus('mandatory') ipad_fr_port_service = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadFrPortService.setStatus('mandatory') ipad_fr_port_active = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadFrPortActive.setStatus('mandatory') ipad_fr_port_lmi_type = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('ccitt', 2), ('ansi', 3), ('lmi', 4), ('none', 5)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadFrPortLMIType.setStatus('mandatory') ipad_fr_port_lmi_mode = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('sourcing', 2), ('monitoring', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadFrPortLMIMode.setStatus('mandatory') ipad_fr_port_rx_inv_alm_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 5), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadFrPortRxInvAlmThreshold.setStatus('mandatory') ipad_fr_port_rx_inv_alm_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('noAlarm', 2), ('thresholdExceeded', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadFrPortRxInvAlmAlarm.setStatus('mandatory') ipad_fr_port_tx_alm_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 7), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadFrPortTxAlmThreshold.setStatus('mandatory') ipad_fr_port_tx_alm_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('noAlarm', 2), ('thresholdExceeded', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadFrPortTxAlmAlarm.setStatus('mandatory') ipad_fr_port_rx_alm_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 9), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadFrPortRxAlmThreshold.setStatus('mandatory') ipad_fr_port_rx_alm_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('noAlarm', 2), ('thresholdExceeded', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadFrPortRxAlmAlarm.setStatus('mandatory') ipad_service_table = mib_table((1, 3, 6, 1, 4, 1, 321, 100, 1, 2, 1)) if mibBuilder.loadTexts: ipadServiceTable.setStatus('optional') ipad_service_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 100, 1, 2, 1, 1)).setIndexNames((0, 'IPAD-MIB', 'ipadServiceIndex')) if mibBuilder.loadTexts: ipadServiceTableEntry.setStatus('mandatory') ipad_service_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 2, 1, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadServiceIndex.setStatus('mandatory') ipad_serviceif_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 2, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('disabled', 0), ('supervisor', 1), ('network1', 2), ('network2', 3), ('user1', 4), ('user2', 5), ('ethernet', 6)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadServiceifIndex.setStatus('mandatory') ipad_service_type = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 2, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('other', 1), ('tdm', 2), ('ppp', 3), ('pppMonitor', 4), ('frameRelay', 5), ('frameRelayMonitor', 6), ('ip', 7), ('serial', 8), ('tty', 9)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadServiceType.setStatus('mandatory') ipad_service_pair = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 2, 1, 1, 4), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadServicePair.setStatus('mandatory') ipad_service_add_service = mib_scalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 2, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('addService', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadServiceAddService.setStatus('mandatory') ipad_service_delete_service = mib_scalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 2, 3), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadServiceDeleteService.setStatus('mandatory') ipad_channel_table = mib_table((1, 3, 6, 1, 4, 1, 321, 100, 1, 3, 1)) if mibBuilder.loadTexts: ipadChannelTable.setStatus('optional') ipad_channel_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 100, 1, 3, 1, 1)).setIndexNames((0, 'IPAD-MIB', 'ipadChannelifIndex'), (0, 'IPAD-MIB', 'ipadChannelIndex')) if mibBuilder.loadTexts: ipadChannelTableEntry.setStatus('mandatory') ipad_channelif_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 3, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('supervisor', 1), ('network1', 2), ('network2', 3), ('user1', 4), ('user2', 5), ('ethernet', 6)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadChannelifIndex.setStatus('mandatory') ipad_channel_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 3, 1, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadChannelIndex.setStatus('mandatory') ipad_channel_service = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 3, 1, 1, 3), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadChannelService.setStatus('mandatory') ipad_channel_pair = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 3, 1, 1, 4), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadChannelPair.setStatus('mandatory') ipad_channel_rate = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 3, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('rate56', 2), ('rate64', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadChannelRate.setStatus('mandatory') ipad_dlci_table = mib_table((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1)) if mibBuilder.loadTexts: ipadDLCITable.setStatus('optional') ipad_dlci_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1)).setIndexNames((0, 'IPAD-MIB', 'ipadDLCIservice'), (0, 'IPAD-MIB', 'ipadDLCInumber')) if mibBuilder.loadTexts: ipadDLCITableEntry.setStatus('mandatory') ipad_dlc_iservice = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadDLCIservice.setStatus('mandatory') ipad_dlc_inumber = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadDLCInumber.setStatus('mandatory') ipad_dlc_iactive = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3), ('pending', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadDLCIactive.setStatus('mandatory') ipad_dlc_icongestion = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadDLCIcongestion.setStatus('mandatory') ipad_dlc_iremote = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadDLCIremote.setStatus('mandatory') ipad_dlc_iremote_unit = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 11))).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadDLCIremoteUnit.setStatus('mandatory') ipad_dlc_iremote_equip_active = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('inactive', 2), ('active', 3), ('sosAlarm', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadDLCIremoteEquipActive.setStatus('mandatory') ipad_dlc_iencapsulation = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('rfc1490', 2), ('proprietary', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadDLCIencapsulation.setStatus('mandatory') ipad_dlc_iproprietary = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('ip', 2), ('ipx', 3), ('ethertype', 4), ('none', 5)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadDLCIproprietary.setStatus('mandatory') ipad_dlc_iprop_offset = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 10), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadDLCIpropOffset.setStatus('mandatory') ipad_dlc_iin_band = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadDLCIinBand.setStatus('mandatory') ipad_dlcicir = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 12), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadDLCICIR.setStatus('mandatory') ipad_dlci_be = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 13), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadDLCIBe.setStatus('mandatory') ipad_dlc_imin_bc = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 14), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadDLCIminBC.setStatus('mandatory') ipad_dlc_irx_mon = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 15), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadDLCIrxMon.setStatus('mandatory') ipad_dlc_id_ectrl = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 16), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadDLCIdEctrl.setStatus('mandatory') ipad_dlc_ienable_delay = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disable', 2), ('enable', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadDLCIenableDelay.setStatus('mandatory') ipad_dlc_itx_ex_cir_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 18), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadDLCItxExCIRThreshold.setStatus('mandatory') ipad_dlc_itx_ex_cir_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 19), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('noAlarm', 2), ('thresholdExceeded', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadDLCItxExCIRAlarm.setStatus('mandatory') ipad_dlc_itx_ex_be_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 20), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadDLCItxExBeThreshold.setStatus('mandatory') ipad_dlc_itx_ex_be_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 21), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('noAlarm', 2), ('thresholdExceeded', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadDLCItxExBeAlarm.setStatus('mandatory') ipad_dlc_irx_cong_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 22), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadDLCIrxCongThreshold.setStatus('mandatory') ipad_dlc_irx_cong_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 23), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('noAlarm', 2), ('thresholdExceeded', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadDLCIrxCongAlarm.setStatus('mandatory') ipad_dlc_irx_bec_nin_cir = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 24), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('noAlarm', 2), ('alarmCondition', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadDLCIrxBECNinCIR.setStatus('mandatory') ipad_dlciuas_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 25), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadDLCIUASThreshold.setStatus('mandatory') ipad_dlciuas_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 26), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('noAlarm', 2), ('thresholdExceeded', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadDLCIUASAlarm.setStatus('mandatory') ipad_dlci_last_change = mib_scalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 2), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadDLCILastChange.setStatus('mandatory') ipad_endpoint_table = mib_table((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1)) if mibBuilder.loadTexts: ipadEndpointTable.setStatus('optional') ipad_endpoint_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1)).setIndexNames((0, 'IPAD-MIB', 'ipadEndpointIndex')) if mibBuilder.loadTexts: ipadEndpointTableEntry.setStatus('mandatory') ipad_endpoint_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadEndpointIndex.setStatus('mandatory') ipad_endpoint_name = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 11))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadEndpointName.setStatus('mandatory') ipad_endpoint_service = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 3), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadEndpointService.setStatus('mandatory') ipad_endpoint_dlc_inumber = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 4), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadEndpointDLCInumber.setStatus('mandatory') ipad_endpoint_type = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('local', 2), ('switched', 3), ('ipRoute', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadEndpointType.setStatus('mandatory') ipad_endpoint_forward = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 6), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadEndpointForward.setStatus('mandatory') ipad_endpoint_backup = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 7), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadEndpointBackup.setStatus('mandatory') ipad_endpoint_ref_slp = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 8), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadEndpointRefSLP.setStatus('mandatory') ipad_endpoint_remote_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 9), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadEndpointRemoteIpAddr.setStatus('mandatory') ipad_endpoint_remote_ip_mask = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 10), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadEndpointRemoteIpMask.setStatus('mandatory') ipad_endpoint_add_endpoint = mib_scalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 11))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadEndpointAddEndpoint.setStatus('mandatory') ipad_endpoint_delete_endpoint = mib_scalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 11))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadEndpointDeleteEndpoint.setStatus('mandatory') ipad_endpoint_last_change = mib_scalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 4), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadEndpointLastChange.setStatus('mandatory') ipad_user_table = mib_table((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1)) if mibBuilder.loadTexts: ipadUserTable.setStatus('optional') ipad_user_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1)).setIndexNames((0, 'IPAD-MIB', 'ipadUserIndex')) if mibBuilder.loadTexts: ipadUserTableEntry.setStatus('mandatory') ipad_user_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadUserIndex.setStatus('mandatory') ipad_user_filter_by_dlci = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadUserFilterByDLCI.setStatus('mandatory') ipad_user_service = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 3), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadUserService.setStatus('mandatory') ipad_user_dlci = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 4), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadUserDLCI.setStatus('mandatory') ipad_user_filter_by_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadUserFilterByIPAddress.setStatus('mandatory') ipad_user_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 6), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadUserIPAddress.setStatus('mandatory') ipad_user_ip_mask = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 7), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadUserIPMask.setStatus('mandatory') ipad_user_filter_by_ip_port = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadUserFilterByIPPort.setStatus('mandatory') ipad_user_ip_port = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(5, 7, 11, 17, 20, 21, 23, 25, 31, 37, 42, 53, 66, 69, 70, 79, 80, 88, 92, 101, 107, 109, 110, 111, 113, 119, 137, 138, 139, 153, 161, 162, 163, 164, 169, 179, 194, 201, 202, 204, 206, 213, 395, 396, 444, 494, 533, 540, 541, 600, 749))).clone(namedValues=named_values(('rje', 5), ('echo', 7), ('systat', 11), ('qotd', 17), ('ftpdata', 20), ('ftp', 21), ('telnet', 23), ('smtp', 25), ('msgauth', 31), ('time', 37), ('nameserver', 42), ('domain', 53), ('sqlnet', 66), ('tftp', 69), ('gopher', 70), ('finger', 79), ('http', 80), ('kerberos', 88), ('npp', 92), ('hostname', 101), ('rtelnet', 107), ('pop2', 109), ('pop3', 110), ('sunrpc', 111), ('auth', 113), ('nntp', 119), ('netbiosns', 137), ('netbiosdgm', 138), ('netbiosssn', 139), ('sgmp', 153), ('snmp', 161), ('snmptrap', 162), ('cmipman', 163), ('cmipagent', 164), ('send', 169), ('bgp', 179), ('irc', 194), ('atrtmp', 201), ('atnbp', 202), ('atecho', 204), ('atzis', 206), ('ipx', 213), ('netcp', 395), ('netwareip', 396), ('snpp', 444), ('povray', 494), ('netwall', 533), ('uucp', 540), ('uucprlogin', 541), ('ipcserver', 600), ('kerberosadm', 749)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadUserIPPort.setStatus('mandatory') ipad_user_tx_alm_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 10), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadUserTxAlmThreshold.setStatus('mandatory') ipad_user_tx_alm_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('noAlarm', 2), ('thresholdExceeded', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadUserTxAlmAlarm.setStatus('mandatory') ipad_user_ip_stat_time_remaining = mib_scalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 2), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadUserIPStatTimeRemaining.setStatus('mandatory') ipad_user_ip_stat_time_duration = mib_scalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadUserIPStatTimeDuration.setStatus('mandatory') ipad_user_ip_stat_start_time = mib_scalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 4), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadUserIPStatStartTime.setStatus('mandatory') ipad_user_ip_stat_requested_report_size = mib_scalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 5), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadUserIPStatRequestedReportSize.setStatus('mandatory') ipad_user_ip_stat_granted_report_size = mib_scalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadUserIPStatGrantedReportSize.setStatus('mandatory') ipad_user_ip_stat_report_number = mib_scalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadUserIPStatReportNumber.setStatus('mandatory') ipad_user_ip_stat_discard_type = mib_scalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('byTime', 1), ('byFrames', 2), ('byOctets', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadUserIPStatDiscardType.setStatus('mandatory') ipad_ppp_cfg_table = mib_table((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1)) if mibBuilder.loadTexts: ipadPPPCfgTable.setStatus('optional') ipad_ppp_cfg_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1)).setIndexNames((0, 'IPAD-MIB', 'ipadPPPCfgService')) if mibBuilder.loadTexts: ipadPPPCfgTableEntry.setStatus('mandatory') ipad_ppp_cfg_service = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadPPPCfgService.setStatus('mandatory') ipad_ppp_cfg_dial_mode = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('direct', 2), ('dialup', 3), ('demanddial', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPPPCfgDialMode.setStatus('mandatory') ipad_ppp_cfg_inactivity_timer = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 3), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPPPCfgInactivityTimer.setStatus('mandatory') ipad_ppp_cfg_negotiation_init = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPPPCfgNegotiationInit.setStatus('mandatory') ipad_ppp_cfg_mru = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 5), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPPPCfgMRU.setStatus('mandatory') ipad_ppp_cfg_accm = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 6), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPPPCfgACCM.setStatus('mandatory') ipad_ppp_cfg_neg_mru = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPPPCfgNegMRU.setStatus('mandatory') ipad_ppp_cfg_neg_accm = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPPPCfgNegACCM.setStatus('mandatory') ipad_ppp_cfg_neg_magic = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPPPCfgNegMagic.setStatus('mandatory') ipad_ppp_cfg_neg_compression = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPPPCfgNegCompression.setStatus('mandatory') ipad_ppp_cfg_neg_address = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPPPCfgNegAddress.setStatus('mandatory') ipad_ppp_cfg_neg_pap = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPPPCfgNegPAP.setStatus('mandatory') ipad_ppp_cfg_neg_chap = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPPPCfgNegCHAP.setStatus('mandatory') ipad_ppp_cfg_allow_pap = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPPPCfgAllowPAP.setStatus('mandatory') ipad_ppp_cfg_allow_chap = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 15), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPPPCfgAllowCHAP.setStatus('mandatory') ipad_ppp_cfg_pap_username = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 16), display_string().subtype(subtypeSpec=value_size_constraint(0, 30))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPPPCfgPAPUsername.setStatus('mandatory') ipad_ppp_cfg_pap_password = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 17), display_string().subtype(subtypeSpec=value_size_constraint(0, 30))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPPPCfgPAPPassword.setStatus('mandatory') ipad_ppp_cfg_chap_username = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 18), display_string().subtype(subtypeSpec=value_size_constraint(0, 30))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPPPCfgCHAPUsername.setStatus('mandatory') ipad_ppp_cfg_chap_secret = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 19), display_string().subtype(subtypeSpec=value_size_constraint(0, 30))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPPPCfgCHAPSecret.setStatus('mandatory') ipad_ppp_cfg_port_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 20), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPPPCfgPortIpAddress.setStatus('mandatory') ipad_ppp_cfg_peer_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 21), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPPPCfgPeerIpAddress.setStatus('mandatory') ipad_ppp_cfg_neg_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 22), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPPPCfgNegIpAddress.setStatus('mandatory') ipad_ppp_cfg_neg_ipcp_compression = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 23), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPPPCfgNegIPCPCompression.setStatus('mandatory') ipad_ppp_cfg_subnet_mask = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 24), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPPPCfgSubnetMask.setStatus('mandatory') ipad_ppp_cfg_auth_challenge_interval = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 25), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPPPCfgAuthChallengeInterval.setStatus('mandatory') ipad_ppppap_table = mib_table((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 2)) if mibBuilder.loadTexts: ipadPPPPAPTable.setStatus('optional') ipad_ppppap_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 2, 1)).setIndexNames((0, 'IPAD-MIB', 'ipadPPPPAPTableIndex')) if mibBuilder.loadTexts: ipadPPPPAPTableEntry.setStatus('mandatory') ipad_ppppap_table_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadPPPPAPTableIndex.setStatus('mandatory') ipad_ppppap_table_username = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 30))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPPPPAPTableUsername.setStatus('mandatory') ipad_ppppap_table_password = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 2, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 30))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPPPPAPTablePassword.setStatus('mandatory') ipad_pppchap_table = mib_table((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 3)) if mibBuilder.loadTexts: ipadPPPCHAPTable.setStatus('optional') ipad_pppchap_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 3, 1)).setIndexNames((0, 'IPAD-MIB', 'ipadPPPCHAPTableIndex')) if mibBuilder.loadTexts: ipadPPPCHAPTableEntry.setStatus('mandatory') ipad_pppchap_table_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 3, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadPPPCHAPTableIndex.setStatus('mandatory') ipad_pppchap_table_username = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 3, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 30))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPPPCHAPTableUsername.setStatus('mandatory') ipad_pppchap_table_secret = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 3, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 30))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPPPCHAPTableSecret.setStatus('mandatory') ipad_modem_dial_table = mib_table((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1)) if mibBuilder.loadTexts: ipadModemDialTable.setStatus('optional') ipad_modem_dial_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1)).setIndexNames((0, 'IPAD-MIB', 'ipadModemDialTableIndex')) if mibBuilder.loadTexts: ipadModemDialTableEntry.setStatus('mandatory') ipad_modem_dial_table_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('supervisor', 1), ('network1', 2), ('network2', 3), ('user1', 4), ('user2', 5), ('ethernet', 6)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadModemDialTableIndex.setStatus('mandatory') ipad_modem_dial_data_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1, 2), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadModemDialDataIndex.setStatus('mandatory') ipad_modem_dial_number = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 30))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadModemDialNumber.setStatus('mandatory') ipad_modem_dial_abort_timer = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1, 4), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadModemDialAbortTimer.setStatus('mandatory') ipad_modem_dial_redial_attempts = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1, 5), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadModemDialRedialAttempts.setStatus('mandatory') ipad_modem_dial_delay_before_redial = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1, 6), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadModemDialDelayBeforeRedial.setStatus('mandatory') ipad_modem_dial_login_script = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1, 7), display_string().subtype(subtypeSpec=value_size_constraint(0, 50))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadModemDialLoginScript.setStatus('mandatory') ipad_modem_dial_username = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1, 8), display_string().subtype(subtypeSpec=value_size_constraint(0, 30))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadModemDialUsername.setStatus('mandatory') ipad_modem_dial_password = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1, 9), display_string().subtype(subtypeSpec=value_size_constraint(0, 30))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadModemDialPassword.setStatus('mandatory') ipad_modem_data_table = mib_table((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 2)) if mibBuilder.loadTexts: ipadModemDataTable.setStatus('optional') ipad_modem_data_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 2, 1)).setIndexNames((0, 'IPAD-MIB', 'ipadModemDataTableIndex')) if mibBuilder.loadTexts: ipadModemDataTableEntry.setStatus('mandatory') ipad_modem_data_table_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadModemDataTableIndex.setStatus('mandatory') ipad_modem_data_modem_name = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 10))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadModemDataModemName.setStatus('mandatory') ipad_modem_data_setup_script = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 2, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 50))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadModemDataSetupScript.setStatus('mandatory') ipad_modem_data_dialing_script = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 2, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 50))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadModemDataDialingScript.setStatus('mandatory') ipad_modem_data_answer_script = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 2, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 50))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadModemDataAnswerScript.setStatus('mandatory') ipad_modem_data_hangup_script = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 2, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 50))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadModemDataHangupScript.setStatus('mandatory') ipad_fr_port_stats_table = mib_table((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1)) if mibBuilder.loadTexts: ipadFrPortStatsTable.setStatus('optional') ipad_fr_port_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1)).setIndexNames((0, 'IPAD-MIB', 'ipadFrPortStatsService'), (0, 'IPAD-MIB', 'ipadFrPortStatsPeriod')) if mibBuilder.loadTexts: ipadFrPortStatsEntry.setStatus('mandatory') ipad_fr_port_stats_service = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadFrPortStatsService.setStatus('mandatory') ipad_fr_port_stats_period = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98))).clone(namedValues=named_values(('portStatsSummary', 1), ('portStatsCurrent', 2), ('portStatsperiod1', 3), ('portStatsperiod2', 4), ('portStatsperiod3', 5), ('portStatsperiod4', 6), ('portStatsperiod5', 7), ('portStatsperiod6', 8), ('portStatsperiod7', 9), ('portStatsperiod8', 10), ('portStatsperiod9', 11), ('portStatsperiod10', 12), ('portStatsperiod11', 13), ('portStatsperiod12', 14), ('portStatsperiod13', 15), ('portStatsperiod14', 16), ('portStatsperiod15', 17), ('portStatsperiod16', 18), ('portStatsperiod17', 19), ('portStatsperiod18', 20), ('portStatsperiod19', 21), ('portStatsperiod20', 22), ('portStatsperiod21', 23), ('portStatsperiod22', 24), ('portStatsperiod23', 25), ('portStatsperiod24', 26), ('portStatsperiod25', 27), ('portStatsperiod26', 28), ('portStatsperiod27', 29), ('portStatsperiod28', 30), ('portStatsperiod29', 31), ('portStatsperiod30', 32), ('portStatsperiod31', 33), ('portStatsperiod32', 34), ('portStatsperiod33', 35), ('portStatsperiod34', 36), ('portStatsperiod35', 37), ('portStatsperiod36', 38), ('portStatsperiod37', 39), ('portStatsperiod38', 40), ('portStatsperiod39', 41), ('portStatsperiod40', 42), ('portStatsperiod41', 43), ('portStatsperiod42', 44), ('portStatsperiod43', 45), ('portStatsperiod44', 46), ('portStatsperiod45', 47), ('portStatsperiod46', 48), ('portStatsperiod47', 49), ('portStatsperiod48', 50), ('portStatsperiod49', 51), ('portStatsperiod50', 52), ('portStatsperiod51', 53), ('portStatsperiod52', 54), ('portStatsperiod53', 55), ('portStatsperiod54', 56), ('portStatsperiod55', 57), ('portStatsperiod56', 58), ('portStatsperiod57', 59), ('portStatsperiod58', 60), ('portStatsperiod59', 61), ('portStatsperiod60', 62), ('portStatsperiod61', 63), ('portStatsperiod62', 64), ('portStatsperiod63', 65), ('portStatsperiod64', 66), ('portStatsperiod65', 67), ('portStatsperiod66', 68), ('portStatsperiod67', 69), ('portStatsperiod68', 70), ('portStatsperiod69', 71), ('portStatsperiod70', 72), ('portStatsperiod71', 73), ('portStatsperiod72', 74), ('portStatsperiod73', 75), ('portStatsperiod74', 76), ('portStatsperiod75', 77), ('portStatsperiod76', 78), ('portStatsperiod77', 79), ('portStatsperiod78', 80), ('portStatsperiod79', 81), ('portStatsperiod80', 82), ('portStatsperiod81', 83), ('portStatsperiod82', 84), ('portStatsperiod83', 85), ('portStatsperiod84', 86), ('portStatsperiod85', 87), ('portStatsperiod86', 88), ('portStatsperiod87', 89), ('portStatsperiod88', 90), ('portStatsperiod89', 91), ('portStatsperiod90', 92), ('portStatsperiod91', 93), ('portStatsperiod92', 94), ('portStatsperiod93', 95), ('portStatsperiod94', 96), ('portStatsperiod95', 97), ('portStatsperiod96', 98)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadFrPortStatsPeriod.setStatus('mandatory') ipad_fr_port_stats_tx_frames = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadFrPortStatsTxFrames.setStatus('mandatory') ipad_fr_port_stats_rx_frames = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadFrPortStatsRxFrames.setStatus('mandatory') ipad_fr_port_stats_tx_octets = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadFrPortStatsTxOctets.setStatus('mandatory') ipad_fr_port_stats_rx_octets = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadFrPortStatsRxOctets.setStatus('mandatory') ipad_fr_port_stats_tx_mgmt_frames = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadFrPortStatsTxMgmtFrames.setStatus('mandatory') ipad_fr_port_stats_rx_mgmt_frames = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadFrPortStatsRxMgmtFrames.setStatus('mandatory') ipad_fr_port_stats_tx_mgmt_octets = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadFrPortStatsTxMgmtOctets.setStatus('mandatory') ipad_fr_port_stats_rx_mgmt_octets = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadFrPortStatsRxMgmtOctets.setStatus('mandatory') ipad_fr_port_stats_rx_fecn = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 11), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadFrPortStatsRxFECN.setStatus('mandatory') ipad_fr_port_stats_rx_becn = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 12), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadFrPortStatsRxBECN.setStatus('mandatory') ipad_fr_port_stats_rx_invalid = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 13), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadFrPortStatsRxInvalid.setStatus('mandatory') ipad_fr_port_stats_tx_stat_inq = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 14), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadFrPortStatsTxStatInq.setStatus('mandatory') ipad_fr_port_stats_rx_stat_inq = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 15), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadFrPortStatsRxStatInq.setStatus('mandatory') ipad_fr_port_stats_tx_stat_resp = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 16), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadFrPortStatsTxStatResp.setStatus('mandatory') ipad_fr_port_stats_rx_stat_resp = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 17), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadFrPortStatsRxStatResp.setStatus('mandatory') ipad_fr_port_stats_rx_inv_lmi = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 18), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadFrPortStatsRxInvLMI.setStatus('mandatory') ipad_fr_port_stats_peak = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 19), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadFrPortStatsPeak.setStatus('mandatory') ipad_fr_port_stats_average = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 20), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadFrPortStatsAverage.setStatus('mandatory') ipad_dlc_istats_table = mib_table((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2)) if mibBuilder.loadTexts: ipadDLCIstatsTable.setStatus('optional') ipad_dlc_istats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1)).setIndexNames((0, 'IPAD-MIB', 'ipadDLCIstatsService'), (0, 'IPAD-MIB', 'ipadDLCIstatsDLCI'), (0, 'IPAD-MIB', 'ipadDLCIstatsPeriod')) if mibBuilder.loadTexts: ipadDLCIstatsEntry.setStatus('mandatory') ipad_dlc_istats_service = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadDLCIstatsService.setStatus('mandatory') ipad_dlc_istats_dlci = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadDLCIstatsDLCI.setStatus('mandatory') ipad_dlc_istats_period = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98))).clone(namedValues=named_values(('dlciStatsSummary', 1), ('dlciStatsCurrent', 2), ('dlciStatsperiod1', 3), ('dlciStatsperiod2', 4), ('dlciStatsperiod3', 5), ('dlciStatsperiod4', 6), ('dlciStatsperiod5', 7), ('dlciStatsperiod6', 8), ('dlciStatsperiod7', 9), ('dlciStatsperiod8', 10), ('dlciStatsperiod9', 11), ('dlciStatsperiod10', 12), ('dlciStatsperiod11', 13), ('dlciStatsperiod12', 14), ('dlciStatsperiod13', 15), ('dlciStatsperiod14', 16), ('dlciStatsperiod15', 17), ('dlciStatsperiod16', 18), ('dlciStatsperiod17', 19), ('dlciStatsperiod18', 20), ('dlciStatsperiod19', 21), ('dlciStatsperiod20', 22), ('dlciStatsperiod21', 23), ('dlciStatsperiod22', 24), ('dlciStatsperiod23', 25), ('dlciStatsperiod24', 26), ('dlciStatsperiod25', 27), ('dlciStatsperiod26', 28), ('dlciStatsperiod27', 29), ('dlciStatsperiod28', 30), ('dlciStatsperiod29', 31), ('dlciStatsperiod30', 32), ('dlciStatsperiod31', 33), ('dlciStatsperiod32', 34), ('dlciStatsperiod33', 35), ('dlciStatsperiod34', 36), ('dlciStatsperiod35', 37), ('dlciStatsperiod36', 38), ('dlciStatsperiod37', 39), ('dlciStatsperiod38', 40), ('dlciStatsperiod39', 41), ('dlciStatsperiod40', 42), ('dlciStatsperiod41', 43), ('dlciStatsperiod42', 44), ('dlciStatsperiod43', 45), ('dlciStatsperiod44', 46), ('dlciStatsperiod45', 47), ('dlciStatsperiod46', 48), ('dlciStatsperiod47', 49), ('dlciStatsperiod48', 50), ('dlciStatsperiod49', 51), ('dlciStatsperiod50', 52), ('dlciStatsperiod51', 53), ('dlciStatsperiod52', 54), ('dlciStatsperiod53', 55), ('dlciStatsperiod54', 56), ('dlciStatsperiod55', 57), ('dlciStatsperiod56', 58), ('dlciStatsperiod57', 59), ('dlciStatsperiod58', 60), ('dlciStatsperiod59', 61), ('dlciStatsperiod60', 62), ('dlciStatsperiod61', 63), ('dlciStatsperiod62', 64), ('dlciStatsperiod63', 65), ('dlciStatsperiod64', 66), ('dlciStatsperiod65', 67), ('dlciStatsperiod66', 68), ('dlciStatsperiod67', 69), ('dlciStatsperiod68', 70), ('dlciStatsperiod69', 71), ('dlciStatsperiod70', 72), ('dlciStatsperiod71', 73), ('dlciStatsperiod72', 74), ('dlciStatsperiod73', 75), ('dlciStatsperiod74', 76), ('dlciStatsperiod75', 77), ('dlciStatsperiod76', 78), ('dlciStatsperiod77', 79), ('dlciStatsperiod78', 80), ('dlciStatsperiod79', 81), ('dlciStatsperiod80', 82), ('dlciStatsperiod81', 83), ('dlciStatsperiod82', 84), ('dlciStatsperiod83', 85), ('dlciStatsperiod84', 86), ('dlciStatsperiod85', 87), ('dlciStatsperiod86', 88), ('dlciStatsperiod87', 89), ('dlciStatsperiod88', 90), ('dlciStatsperiod89', 91), ('dlciStatsperiod90', 92), ('dlciStatsperiod91', 93), ('dlciStatsperiod92', 94), ('dlciStatsperiod93', 95), ('dlciStatsperiod94', 96), ('dlciStatsperiod95', 97), ('dlciStatsperiod96', 98)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadDLCIstatsPeriod.setStatus('mandatory') ipad_dlc_istats_tx_frames = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadDLCIstatsTxFrames.setStatus('mandatory') ipad_dlc_istats_rx_frames = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadDLCIstatsRxFrames.setStatus('mandatory') ipad_dlc_istats_tx_octets = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadDLCIstatsTxOctets.setStatus('mandatory') ipad_dlc_istats_rx_octets = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadDLCIstatsRxOctets.setStatus('mandatory') ipad_dlc_istats_rx_fecn = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadDLCIstatsRxFECN.setStatus('mandatory') ipad_dlc_istats_rx_becn = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadDLCIstatsRxBECN.setStatus('mandatory') ipad_dlc_istats_rx_de = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadDLCIstatsRxDE.setStatus('mandatory') ipad_dlc_istats_tx_excess_cir = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 11), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadDLCIstatsTxExcessCIR.setStatus('mandatory') ipad_dlc_istats_tx_excess_be = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 12), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadDLCIstatsTxExcessBe.setStatus('mandatory') ipad_dlc_istats_tx_mgmt_frames = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 13), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadDLCIstatsTxMgmtFrames.setStatus('mandatory') ipad_dlc_istats_rx_mgmt_frames = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 14), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadDLCIstatsRxMgmtFrames.setStatus('mandatory') ipad_dlc_istats_tx_mgmt_octets = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 15), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadDLCIstatsTxMgmtOctets.setStatus('mandatory') ipad_dlc_istats_rx_mgmt_octets = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 16), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadDLCIstatsRxMgmtOctets.setStatus('mandatory') ipad_dlc_istats_peak = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 17), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadDLCIstatsPeak.setStatus('mandatory') ipad_dlc_istats_average = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 18), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadDLCIstatsAverage.setStatus('mandatory') ipad_dlc_istats_delay_peak = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 19), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadDLCIstatsDelayPeak.setStatus('mandatory') ipad_dlc_istats_delay_average = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 20), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadDLCIstatsDelayAverage.setStatus('mandatory') ipad_dlc_istats_round_trip_timeouts = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 21), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadDLCIstatsRoundTripTimeouts.setStatus('mandatory') ipad_dlc_istats_uas = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 22), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadDLCIstatsUAS.setStatus('mandatory') ipad_user_stats_table = mib_table((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3)) if mibBuilder.loadTexts: ipadUserStatsTable.setStatus('optional') ipad_user_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3, 1)).setIndexNames((0, 'IPAD-MIB', 'ipadUserStatsIndex'), (0, 'IPAD-MIB', 'ipadUserStatsPeriod')) if mibBuilder.loadTexts: ipadUserStatsEntry.setStatus('mandatory') ipad_user_stats_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadUserStatsIndex.setStatus('mandatory') ipad_user_stats_period = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98))).clone(namedValues=named_values(('userStatsSummary', 1), ('userStatsCurrent', 2), ('userStatsperiod1', 3), ('userStatsperiod2', 4), ('userStatsperiod3', 5), ('userStatsperiod4', 6), ('userStatsperiod5', 7), ('userStatsperiod6', 8), ('userStatsperiod7', 9), ('userStatsperiod8', 10), ('userStatsperiod9', 11), ('userStatsperiod10', 12), ('userStatsperiod11', 13), ('userStatsperiod12', 14), ('userStatsperiod13', 15), ('userStatsperiod14', 16), ('userStatsperiod15', 17), ('userStatsperiod16', 18), ('userStatsperiod17', 19), ('userStatsperiod18', 20), ('userStatsperiod19', 21), ('userStatsperiod20', 22), ('userStatsperiod21', 23), ('userStatsperiod22', 24), ('userStatsperiod23', 25), ('userStatsperiod24', 26), ('userStatsperiod25', 27), ('userStatsperiod26', 28), ('userStatsperiod27', 29), ('userStatsperiod28', 30), ('userStatsperiod29', 31), ('userStatsperiod30', 32), ('userStatsperiod31', 33), ('userStatsperiod32', 34), ('userStatsperiod33', 35), ('userStatsperiod34', 36), ('userStatsperiod35', 37), ('userStatsperiod36', 38), ('userStatsperiod37', 39), ('userStatsperiod38', 40), ('userStatsperiod39', 41), ('userStatsperiod40', 42), ('userStatsperiod41', 43), ('userStatsperiod42', 44), ('userStatsperiod43', 45), ('userStatsperiod44', 46), ('userStatsperiod45', 47), ('userStatsperiod46', 48), ('userStatsperiod47', 49), ('userStatsperiod48', 50), ('userStatsperiod49', 51), ('userStatsperiod50', 52), ('userStatsperiod51', 53), ('userStatsperiod52', 54), ('userStatsperiod53', 55), ('userStatsperiod54', 56), ('userStatsperiod55', 57), ('userStatsperiod56', 58), ('userStatsperiod57', 59), ('userStatsperiod58', 60), ('userStatsperiod59', 61), ('userStatsperiod60', 62), ('userStatsperiod61', 63), ('userStatsperiod62', 64), ('userStatsperiod63', 65), ('userStatsperiod64', 66), ('userStatsperiod65', 67), ('userStatsperiod66', 68), ('userStatsperiod67', 69), ('userStatsperiod68', 70), ('userStatsperiod69', 71), ('userStatsperiod70', 72), ('userStatsperiod71', 73), ('userStatsperiod72', 74), ('userStatsperiod73', 75), ('userStatsperiod74', 76), ('userStatsperiod75', 77), ('userStatsperiod76', 78), ('userStatsperiod77', 79), ('userStatsperiod78', 80), ('userStatsperiod79', 81), ('userStatsperiod80', 82), ('userStatsperiod81', 83), ('userStatsperiod82', 84), ('userStatsperiod83', 85), ('userStatsperiod84', 86), ('userStatsperiod85', 87), ('userStatsperiod86', 88), ('userStatsperiod87', 89), ('userStatsperiod88', 90), ('userStatsperiod89', 91), ('userStatsperiod90', 92), ('userStatsperiod91', 93), ('userStatsperiod92', 94), ('userStatsperiod93', 95), ('userStatsperiod94', 96), ('userStatsperiod95', 97), ('userStatsperiod96', 98)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadUserStatsPeriod.setStatus('mandatory') ipad_user_stats_tx_frames = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadUserStatsTxFrames.setStatus('mandatory') ipad_user_stats_rx_frames = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadUserStatsRxFrames.setStatus('mandatory') ipad_user_stats_tx_octets = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadUserStatsTxOctets.setStatus('mandatory') ipad_user_stats_rx_octets = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadUserStatsRxOctets.setStatus('mandatory') ipad_user_stats_tx_rate_peak = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadUserStatsTxRatePeak.setStatus('mandatory') ipad_user_stats_tx_rate_average = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadUserStatsTxRateAverage.setStatus('mandatory') ipad_ip_top_n_stats_table = mib_table((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 4)) if mibBuilder.loadTexts: ipadIPTopNStatsTable.setStatus('optional') ipad_ip_top_n_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 4, 1)).setIndexNames((0, 'IPAD-MIB', 'ipadIPTopNStatsIndex')) if mibBuilder.loadTexts: ipadIPTopNStatsEntry.setStatus('mandatory') ipad_ip_top_n_stats_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 4, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadIPTopNStatsIndex.setStatus('mandatory') ipad_ip_top_n_stats_address = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 4, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(1, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadIPTopNStatsAddress.setStatus('mandatory') ipad_ip_top_n_stats_timestamp = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 4, 1, 3), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadIPTopNStatsTimestamp.setStatus('mandatory') ipad_ip_top_n_stats_rx_frames = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 4, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadIPTopNStatsRxFrames.setStatus('mandatory') ipad_ip_top_n_stats_rx_octets = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 4, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadIPTopNStatsRxOctets.setStatus('mandatory') ipad_ip_top_n_stats_tx_frames = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 4, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadIPTopNStatsTxFrames.setStatus('mandatory') ipad_ip_top_n_stats_tx_octets = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 4, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadIPTopNStatsTxOctets.setStatus('mandatory') ipad_pkt_sw_operating_mode = mib_scalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('tdm', 2), ('monitor', 3), ('packet', 4), ('remoteConfig', 5)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPktSwOperatingMode.setStatus('mandatory') ipad_pkt_sw_cfg_table = mib_table((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2)) if mibBuilder.loadTexts: ipadPktSwCfgTable.setStatus('optional') ipad_pkt_sw_cfg_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1)).setIndexNames((0, 'IPAD-MIB', 'ipadPktSwCfgService')) if mibBuilder.loadTexts: ipadPktSwCfgTableEntry.setStatus('mandatory') ipad_pkt_sw_cfg_service = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadPktSwCfgService.setStatus('mandatory') ipad_pkt_sw_cfg_interface_type = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('uni', 1), ('ni', 2), ('nni', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPktSwCfgInterfaceType.setStatus('mandatory') ipad_pkt_sw_cfg_lnk_mgmt_type = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('other', 1), ('auto', 2), ('ccitt', 3), ('ansi', 4), ('lmi', 5), ('none', 6)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPktSwCfgLnkMgmtType.setStatus('mandatory') ipad_pkt_sw_cfg_max_frame_size = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 4), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPktSwCfgMaxFrameSize.setStatus('mandatory') ipad_pkt_sw_cfgn_n1 = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 5), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPktSwCfgnN1.setStatus('mandatory') ipad_pkt_sw_cfgn_n2 = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 6), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPktSwCfgnN2.setStatus('mandatory') ipad_pkt_sw_cfgn_n3 = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 7), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPktSwCfgnN3.setStatus('mandatory') ipad_pkt_sw_cfgn_t1 = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 8), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPktSwCfgnT1.setStatus('mandatory') ipad_pkt_sw_cfg_def_cir = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 9), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPktSwCfgDefCIR.setStatus('mandatory') ipad_pkt_sw_cfg_def_ex_burst = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 10), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPktSwCfgDefExBurst.setStatus('mandatory') ipad_pkt_sw_cfg_ciree = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPktSwCfgCIREE.setStatus('mandatory') ipad_pkt_sw_cfg_link_injection = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('standard', 2), ('buffered', 3), ('forced', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPktSwCfgLinkInjection.setStatus('mandatory') ipad_pkt_sw_cfg_auto_diagnostic = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPktSwCfgAutoDiagnostic.setStatus('mandatory') ipad_pkt_sw_cfg_auto_discovery = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPktSwCfgAutoDiscovery.setStatus('mandatory') ipad_pkt_sw_cfg_mgmt_dlci = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 15), integer32().subtype(subtypeSpec=value_range_constraint(0, 4096))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadPktSwCfgMgmtDLCI.setStatus('mandatory') ipad_trap_dest_table = mib_table((1, 3, 6, 1, 4, 1, 321, 100, 1, 11, 1)) if mibBuilder.loadTexts: ipadTrapDestTable.setStatus('optional') ipad_trap_dest_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 100, 1, 11, 1, 1)).setIndexNames((0, 'IPAD-MIB', 'ipadTrapDestIndex')) if mibBuilder.loadTexts: ipadTrapDestTableEntry.setStatus('mandatory') ipad_trap_dest_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 11, 1, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadTrapDestIndex.setStatus('mandatory') ipad_trap_destination = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 11, 1, 1, 2), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadTrapDestination.setStatus('mandatory') ipad_fr_port_rx_invalid_frames_exceeded = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25000)) ipad_fr_port_rx_throughput_exceeded = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25001)) ipad_fr_port_tx_throughput_exceeded = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25002)) ipad_dlc_itx_ci_rexceeded = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25003)) ipad_dlc_itx_b_eexceeded = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25004)) ipad_dlci_rx_congestion_exceeded = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25005)) ipad_user_tx_exceeded = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25006)) ipad_dlci_rx_bec_nin_cir_alarm = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25007)) ipad_dlci_uas_exceeded = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25008)) ipadserial_dte_dtr_alarm_exists = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25009)) ipadt1e1_es_alarm_declared = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25010)) ipadt1e1_ses_alarm_declared = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25011)) ipadt1e1_loss_alarm_declared = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25012)) ipadt1e1_uas_alarm_declared = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25013)) ipadt1e1_css_alarm_declared = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25014)) ipadt1e1_bpvs_alarm_declared = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25015)) ipadt1e1_oofs_alarm_declared = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25016)) ipadt1e1_ais_alarm_exists = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25017)) ipadt1e1_ras_alarm_exists = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25018)) ipad_dlc_iremote_sos_alarm = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25019)) ipad_misc_port_settings = mib_table((1, 3, 6, 1, 4, 1, 321, 100, 1, 12, 1)) if mibBuilder.loadTexts: ipadMiscPortSettings.setStatus('optional') ipad_misc_port_settings_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 100, 1, 12, 1, 1)).setIndexNames((0, 'IPAD-MIB', 'ipadMiscPortSettingsIndex')) if mibBuilder.loadTexts: ipadMiscPortSettingsEntry.setStatus('mandatory') ipad_misc_port_settings_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 12, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('supervisor', 1), ('network1', 2), ('network2', 3), ('user1', 4), ('user2', 5), ('ethernet', 6)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadMiscPortSettingsIndex.setStatus('mandatory') ipad_misc_port_settings_serial_type = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 12, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('dce', 2), ('dte', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadMiscPortSettingsSerialType.setStatus('mandatory') ipad_misc_clear_status_counts = mib_scalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 12, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('other', 1), ('clear', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadMiscClearStatusCounts.setStatus('mandatory') ipad_soft_key_table = mib_table((1, 3, 6, 1, 4, 1, 321, 100, 1, 14, 1)) if mibBuilder.loadTexts: ipadSoftKeyTable.setStatus('mandatory') ipad_soft_key_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 100, 1, 14, 1, 1)).setIndexNames((0, 'IPAD-MIB', 'ipadSoftKeyIndex')) if mibBuilder.loadTexts: ipadSoftKeyTableEntry.setStatus('mandatory') ipad_soft_key_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 14, 1, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadSoftKeyIndex.setStatus('mandatory') ipad_soft_key_acronym = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 14, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 3))).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadSoftKeyAcronym.setStatus('mandatory') ipad_soft_key_description = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 14, 1, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadSoftKeyDescription.setStatus('mandatory') ipad_soft_key_expiration_date = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 14, 1, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 8))).setMaxAccess('readonly') if mibBuilder.loadTexts: ipadSoftKeyExpirationDate.setStatus('mandatory') ipad_soft_key_entry = mib_scalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 14, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipadSoftKeyEntry.setStatus('mandatory') mibBuilder.exportSymbols('IPAD-MIB', ipadFrPortStatsService=ipadFrPortStatsService, ipadt1e1SESAlarmDeclared=ipadt1e1SESAlarmDeclared, ipadDLCIrxCongAlarm=ipadDLCIrxCongAlarm, ipadTrapDest=ipadTrapDest, ipadPPPPAPTable=ipadPPPPAPTable, ipadEndpointDLCInumber=ipadEndpointDLCInumber, ipadDLCIstatsRxDE=ipadDLCIstatsRxDE, ipadPktSwCfgLinkInjection=ipadPktSwCfgLinkInjection, ipadPPPCHAPTable=ipadPPPCHAPTable, ipadDLCItxCIRexceeded=ipadDLCItxCIRexceeded, ipadPktSwCfgMaxFrameSize=ipadPktSwCfgMaxFrameSize, ipadFrPortStatsPeriod=ipadFrPortStatsPeriod, ipadIPTopNStatsRxOctets=ipadIPTopNStatsRxOctets, ipadEndpointType=ipadEndpointType, ipadFrPortStatsRxInvalid=ipadFrPortStatsRxInvalid, ipadPPPCfgAllowCHAP=ipadPPPCfgAllowCHAP, ipadFrPortStatsRxMgmtOctets=ipadFrPortStatsRxMgmtOctets, ipadDLCIstatsDelayAverage=ipadDLCIstatsDelayAverage, ipadPPPCfgAllowPAP=ipadPPPCfgAllowPAP, ipadDlciUASExceeded=ipadDlciUASExceeded, ipadUserTable=ipadUserTable, ipadDLCIstatsDelayPeak=ipadDLCIstatsDelayPeak, ipadMiscPortSettings=ipadMiscPortSettings, ipadDLCIBe=ipadDLCIBe, ipadFrPort=ipadFrPort, ipadFrPortStatsRxFECN=ipadFrPortStatsRxFECN, ipadModemDialNumber=ipadModemDialNumber, ipadIPTopNStatsAddress=ipadIPTopNStatsAddress, ipadChannelTableEntry=ipadChannelTableEntry, ipadDLCItxExCIRThreshold=ipadDLCItxExCIRThreshold, ipadModemDataDialingScript=ipadModemDataDialingScript, ipadChannelRate=ipadChannelRate, ipadDLCIremoteSOSAlarm=ipadDLCIremoteSOSAlarm, ipadUserIPStatGrantedReportSize=ipadUserIPStatGrantedReportSize, ipadModemDialUsername=ipadModemDialUsername, ipadPPPPAPTablePassword=ipadPPPPAPTablePassword, ipadUserStatsTxRateAverage=ipadUserStatsTxRateAverage, ipadDLCITableEntry=ipadDLCITableEntry, ipadDLCIcongestion=ipadDLCIcongestion, ipadDLCIstatsAverage=ipadDLCIstatsAverage, ipadPktSwCfgLnkMgmtType=ipadPktSwCfgLnkMgmtType, ipadServiceifIndex=ipadServiceifIndex, ipadTrapDestTableEntry=ipadTrapDestTableEntry, ipadUserFilterByDLCI=ipadUserFilterByDLCI, ipadUserIPPort=ipadUserIPPort, hbu=hbu, ipadFrPortActive=ipadFrPortActive, ipadUserStatsTxRatePeak=ipadUserStatsTxRatePeak, ipadUserStatsTable=ipadUserStatsTable, ipadChannelTable=ipadChannelTable, ipadDLCIrxBECNinCIR=ipadDLCIrxBECNinCIR, ipadFrPortRxInvAlmThreshold=ipadFrPortRxInvAlmThreshold, ipadDLCICIR=ipadDLCICIR, ipadFrPortStatsTxFrames=ipadFrPortStatsTxFrames, ipadPktSwCfgnT1=ipadPktSwCfgnT1, ipadFrPortService=ipadFrPortService, ipadDLCIrxMon=ipadDLCIrxMon, ipadEndpointTableEntry=ipadEndpointTableEntry, ipadModem=ipadModem, ipadChannelifIndex=ipadChannelifIndex, ipadEndpointRefSLP=ipadEndpointRefSLP, ipadPPPCHAPTableSecret=ipadPPPCHAPTableSecret, ipadUserStatsRxOctets=ipadUserStatsRxOctets, ipadMiscPortSettingsIndex=ipadMiscPortSettingsIndex, ipadChannelService=ipadChannelService, ipadModemDataSetupScript=ipadModemDataSetupScript, ipadDLCItxExCIRAlarm=ipadDLCItxExCIRAlarm, ipadPPPCfgNegMagic=ipadPPPCfgNegMagic, ipadPPPCfgNegIpAddress=ipadPPPCfgNegIpAddress, ipadModemDialDataIndex=ipadModemDialDataIndex, ipadDLCIstatsTxOctets=ipadDLCIstatsTxOctets, ipadEndpointService=ipadEndpointService, ipadUserFilterByIPAddress=ipadUserFilterByIPAddress, ipadDLCIstatsRxFrames=ipadDLCIstatsRxFrames, verilink=verilink, ipadDLCIenableDelay=ipadDLCIenableDelay, ipadDLCIremoteEquipActive=ipadDLCIremoteEquipActive, ipadDlciRxBECNinCIRAlarm=ipadDlciRxBECNinCIRAlarm, ipadPPPCfgNegPAP=ipadPPPCfgNegPAP, ipadDLCIUASThreshold=ipadDLCIUASThreshold, ipadPPPCfgAuthChallengeInterval=ipadPPPCfgAuthChallengeInterval, ipadDLCItxExBeThreshold=ipadDLCItxExBeThreshold, ipadDLCInumber=ipadDLCInumber, ipadPktSwCfgnN1=ipadPktSwCfgnN1, ipadModemDataTable=ipadModemDataTable, ipadPPPCfgDialMode=ipadPPPCfgDialMode, ipadPPPCfgCHAPSecret=ipadPPPCfgCHAPSecret, ipadModemDialAbortTimer=ipadModemDialAbortTimer, ipadPPPCfgNegCompression=ipadPPPCfgNegCompression, ipadDLCIstatsTxMgmtOctets=ipadDLCIstatsTxMgmtOctets, ipadPPPCfgCHAPUsername=ipadPPPCfgCHAPUsername, ipadModemDataTableIndex=ipadModemDataTableIndex, ipadDLCIstatsRxBECN=ipadDLCIstatsRxBECN, ipadPktSwCfgnN2=ipadPktSwCfgnN2, ipadIPTopNStatsTxOctets=ipadIPTopNStatsTxOctets, ipadFrPortTable=ipadFrPortTable, ipadDLCIstatsTxMgmtFrames=ipadDLCIstatsTxMgmtFrames, ipadDLCIstatsService=ipadDLCIstatsService, ipadPktSwCfgAutoDiscovery=ipadPktSwCfgAutoDiscovery, ipadPktSwCfgService=ipadPktSwCfgService, ipadFrPortStatsRxFrames=ipadFrPortStatsRxFrames, ipadPPPCfgNegIPCPCompression=ipadPPPCfgNegIPCPCompression, ipadModemDialDelayBeforeRedial=ipadModemDialDelayBeforeRedial, ipadFrPortStatsRxMgmtFrames=ipadFrPortStatsRxMgmtFrames, ipadUserIPStatStartTime=ipadUserIPStatStartTime, ipadEndpointRemoteIpMask=ipadEndpointRemoteIpMask, ipadEndpointName=ipadEndpointName, ipadUserTxAlmThreshold=ipadUserTxAlmThreshold, ipadPPPCfgACCM=ipadPPPCfgACCM, ipadTrapDestination=ipadTrapDestination, ipadMiscPortSettingsEntry=ipadMiscPortSettingsEntry, ipadUserIPStatDiscardType=ipadUserIPStatDiscardType, ipadFrPortStatsTxOctets=ipadFrPortStatsTxOctets, ipadFrPortStatsTxMgmtOctets=ipadFrPortStatsTxMgmtOctets, ipadEndpointDeleteEndpoint=ipadEndpointDeleteEndpoint, ipadRouter=ipadRouter, ipadUserDLCI=ipadUserDLCI, ipadDLCIencapsulation=ipadDLCIencapsulation, ipadModemDataAnswerScript=ipadModemDataAnswerScript, ipadPPPCfgPeerIpAddress=ipadPPPCfgPeerIpAddress, ipadEndpoint=ipadEndpoint, ipadServiceTableEntry=ipadServiceTableEntry, ipadFrPortRxInvAlmAlarm=ipadFrPortRxInvAlmAlarm, ipadFrPortTxAlmThreshold=ipadFrPortTxAlmThreshold, ipadFrPortRxAlmAlarm=ipadFrPortRxAlmAlarm, ipadEndpointBackup=ipadEndpointBackup, ipadUserTxAlmAlarm=ipadUserTxAlmAlarm, ipadDLCIstatsTable=ipadDLCIstatsTable, ipadTrapDestIndex=ipadTrapDestIndex, ipadDLCIstatsRxOctets=ipadDLCIstatsRxOctets, ipadDLCIstatsTxExcessBe=ipadDLCIstatsTxExcessBe, ipad=ipad, ipadServicePair=ipadServicePair, ipadPPPCfgSubnetMask=ipadPPPCfgSubnetMask, ipadPktSwCfgCIREE=ipadPktSwCfgCIREE, ipadSoftKeyExpirationDate=ipadSoftKeyExpirationDate, ipadPPPCfgInactivityTimer=ipadPPPCfgInactivityTimer, ipadUserIPMask=ipadUserIPMask, ipadPPPCHAPTableIndex=ipadPPPCHAPTableIndex, ipadIPTopNStatsIndex=ipadIPTopNStatsIndex, ipadDLCIstatsRxMgmtOctets=ipadDLCIstatsRxMgmtOctets, ipadFrPortLMIType=ipadFrPortLMIType, ipadModemDialTableEntry=ipadModemDialTableEntry, ipadDLCIstatsTxFrames=ipadDLCIstatsTxFrames, ipadt1e1CSSAlarmDeclared=ipadt1e1CSSAlarmDeclared, ipadModemDataTableEntry=ipadModemDataTableEntry, ipadPktSwCfgDefExBurst=ipadPktSwCfgDefExBurst, ipadUserTxExceeded=ipadUserTxExceeded, ipadSoftKeyAcronym=ipadSoftKeyAcronym, ipadDLCItxExBeAlarm=ipadDLCItxExBeAlarm, ipadChannelPair=ipadChannelPair, ipadPktSwCfgnN3=ipadPktSwCfgnN3, ipadSoftKeyEntry=ipadSoftKeyEntry, ipadEndpointLastChange=ipadEndpointLastChange, ipadPPPCfgTableEntry=ipadPPPCfgTableEntry, ipadDLCIstatsPeriod=ipadDLCIstatsPeriod, ipadDLCIstatsUAS=ipadDLCIstatsUAS, ipadFrPortStatsRxStatResp=ipadFrPortStatsRxStatResp, ipadUser=ipadUser, ipadFrPortStatsAverage=ipadFrPortStatsAverage, ipadPktSwOperatingMode=ipadPktSwOperatingMode, ipadModemDialLoginScript=ipadModemDialLoginScript, ipadDLCIUASAlarm=ipadDLCIUASAlarm, ipadUserStatsTxOctets=ipadUserStatsTxOctets, ipadDLCIactive=ipadDLCIactive, ipadUserIndex=ipadUserIndex, ipadEndpointRemoteIpAddr=ipadEndpointRemoteIpAddr, ipadDLCIremoteUnit=ipadDLCIremoteUnit, ipadServiceType=ipadServiceType, ipadPPPCfgNegMRU=ipadPPPCfgNegMRU, ipadUserFilterByIPPort=ipadUserFilterByIPPort, ipadFrPortStatsPeak=ipadFrPortStatsPeak, ipadDLCIstatsRxFECN=ipadDLCIstatsRxFECN, ipadFrPortStatsTxMgmtFrames=ipadFrPortStatsTxMgmtFrames, ipadPktSwitch=ipadPktSwitch, ipadDLCIpropOffset=ipadDLCIpropOffset, ipadPPPCfgService=ipadPPPCfgService, ipadPPPCfgNegCHAP=ipadPPPCfgNegCHAP, ipadService=ipadService, ipadPPPPAPTableEntry=ipadPPPPAPTableEntry, ipadIPTopNStatsTable=ipadIPTopNStatsTable, ipadDLCItxBEexceeded=ipadDLCItxBEexceeded, ipadChannel=ipadChannel, ipadPPPCfgNegAddress=ipadPPPCfgNegAddress, ipadIPTopNStatsRxFrames=ipadIPTopNStatsRxFrames, ipadDLCIstatsDLCI=ipadDLCIstatsDLCI, ipadt1e1RASAlarmExists=ipadt1e1RASAlarmExists, ipadPktSwCfgTable=ipadPktSwCfgTable, ipadUserIPStatTimeRemaining=ipadUserIPStatTimeRemaining, ipadModemDialPassword=ipadModemDialPassword, ipadUserStatsTxFrames=ipadUserStatsTxFrames, ipadModemDataHangupScript=ipadModemDataHangupScript, ipadt1e1ESAlarmDeclared=ipadt1e1ESAlarmDeclared, ipadEndpointTable=ipadEndpointTable, ipadDLCIstatsRxMgmtFrames=ipadDLCIstatsRxMgmtFrames, ipadt1e1AISAlarmExists=ipadt1e1AISAlarmExists, ipadPPPCfgPortIpAddress=ipadPPPCfgPortIpAddress, ipadUserIPStatRequestedReportSize=ipadUserIPStatRequestedReportSize, ipadDLCIminBC=ipadDLCIminBC, ipadt1e1BPVSAlarmDeclared=ipadt1e1BPVSAlarmDeclared, ipadserialDteDTRAlarmExists=ipadserialDteDTRAlarmExists, ipadMisc=ipadMisc, ipadPPPPAPTableIndex=ipadPPPPAPTableIndex, ipadDLCITable=ipadDLCITable, ipadServiceIndex=ipadServiceIndex, ipadDLCIinBand=ipadDLCIinBand, ipadDLCI=ipadDLCI, ipadPktSwCfgMgmtDLCI=ipadPktSwCfgMgmtDLCI, ipadFrPortStatsTxStatResp=ipadFrPortStatsTxStatResp, ipadEndpointForward=ipadEndpointForward, ipadUserStatsEntry=ipadUserStatsEntry, ipadPktSwCfgAutoDiagnostic=ipadPktSwCfgAutoDiagnostic, ipadTrapDestTable=ipadTrapDestTable, ipadModemDataModemName=ipadModemDataModemName, ipadMiscPortSettingsSerialType=ipadMiscPortSettingsSerialType, ipadPPPCfgTable=ipadPPPCfgTable, ipadUserIPStatReportNumber=ipadUserIPStatReportNumber, ipadDLCIproprietary=ipadDLCIproprietary, ipadIPTopNStatsTimestamp=ipadIPTopNStatsTimestamp, ipadServiceAddService=ipadServiceAddService, ipadUserService=ipadUserService, ipadFrPortTxThroughputExceeded=ipadFrPortTxThroughputExceeded, ipadPPPCfgPAPPassword=ipadPPPCfgPAPPassword, ipadIPTopNStatsTxFrames=ipadIPTopNStatsTxFrames, ipadPktSwCfgInterfaceType=ipadPktSwCfgInterfaceType, ipadFrPortRxInvalidFramesExceeded=ipadFrPortRxInvalidFramesExceeded, ipadModemDialTableIndex=ipadModemDialTableIndex, ipadFrPortStatsTxStatInq=ipadFrPortStatsTxStatInq, ipadFrPortTableEntry=ipadFrPortTableEntry, ipadPPPCfgNegACCM=ipadPPPCfgNegACCM, ipadPPPCfgPAPUsername=ipadPPPCfgPAPUsername, ipadModemDialRedialAttempts=ipadModemDialRedialAttempts, ipadFrPortStatsEntry=ipadFrPortStatsEntry, ipadDLCIservice=ipadDLCIservice, ipadDLCIRxCongestionExceeded=ipadDLCIRxCongestionExceeded, ipadSvcAware=ipadSvcAware, ipadDLCIremote=ipadDLCIremote, ipadEndpointAddEndpoint=ipadEndpointAddEndpoint, ipadModemDialTable=ipadModemDialTable, ipadIPTopNStatsEntry=ipadIPTopNStatsEntry, ipadPPPCHAPTableUsername=ipadPPPCHAPTableUsername, ipadUserIPStatTimeDuration=ipadUserIPStatTimeDuration, ipadPPPCfgMRU=ipadPPPCfgMRU, ipadDLCIstatsRoundTripTimeouts=ipadDLCIstatsRoundTripTimeouts, ipadDLCILastChange=ipadDLCILastChange, ipadt1e1UASAlarmDeclared=ipadt1e1UASAlarmDeclared, ipadDLCIdEctrl=ipadDLCIdEctrl, ipadDLCIstatsEntry=ipadDLCIstatsEntry, ipadSoftKey=ipadSoftKey, ipadSoftKeyDescription=ipadSoftKeyDescription, ipadFrPortStatsRxStatInq=ipadFrPortStatsRxStatInq, ipadFrPortStatsTable=ipadFrPortStatsTable, ipadPPP=ipadPPP, ipadUserStatsPeriod=ipadUserStatsPeriod) mibBuilder.exportSymbols('IPAD-MIB', ipadFrPortRxAlmThreshold=ipadFrPortRxAlmThreshold, ipadPPPPAPTableUsername=ipadPPPPAPTableUsername, ipadFrPortStatsRxBECN=ipadFrPortStatsRxBECN, ipadFrPortStatsRxInvLMI=ipadFrPortStatsRxInvLMI, ipadDLCIstatsPeak=ipadDLCIstatsPeak, ipadFrPortStatsRxOctets=ipadFrPortStatsRxOctets, ipadt1e1OOFSAlarmDeclared=ipadt1e1OOFSAlarmDeclared, ipadSoftKeyIndex=ipadSoftKeyIndex, ipadUserTableEntry=ipadUserTableEntry, ipadDLCIrxCongThreshold=ipadDLCIrxCongThreshold, ipadServiceTable=ipadServiceTable, ipadUserStatsRxFrames=ipadUserStatsRxFrames, ipadUserIPAddress=ipadUserIPAddress, ipadPPPCfgNegotiationInit=ipadPPPCfgNegotiationInit, ipadPktSwCfgDefCIR=ipadPktSwCfgDefCIR, ipadFrPortRxThroughputExceeded=ipadFrPortRxThroughputExceeded, ipadSoftKeyTableEntry=ipadSoftKeyTableEntry, ipadEndpointIndex=ipadEndpointIndex, ipadPktSwCfgTableEntry=ipadPktSwCfgTableEntry, ipadChannelIndex=ipadChannelIndex, ipadServiceDeleteService=ipadServiceDeleteService, ipadt1e1LOSSAlarmDeclared=ipadt1e1LOSSAlarmDeclared, ipadSoftKeyTable=ipadSoftKeyTable, ipadMiscClearStatusCounts=ipadMiscClearStatusCounts, ipadFrPortLMIMode=ipadFrPortLMIMode, ipadFrPortTxAlmAlarm=ipadFrPortTxAlmAlarm, ipadDLCIstatsTxExcessCIR=ipadDLCIstatsTxExcessCIR, ipadUserStatsIndex=ipadUserStatsIndex, ipadPPPCHAPTableEntry=ipadPPPCHAPTableEntry)
distancia = float(input('Digite a distancia em KM da viagem: ')) passag1 = distancia * 0.5 passag2 = distancia * 0.45 if distancia <= 200: print('Sua passagem vai custar R${:.2f}'.format(passag1)) else: print('Sua passagem vai custar R${:.2f}'.format(passag2))
distancia = float(input('Digite a distancia em KM da viagem: ')) passag1 = distancia * 0.5 passag2 = distancia * 0.45 if distancia <= 200: print('Sua passagem vai custar R${:.2f}'.format(passag1)) else: print('Sua passagem vai custar R${:.2f}'.format(passag2))
f=float(8.11) print(f) i=int(f) print(i) j=7 print(type(j)) j=f print(j) print(type(j)) print(int(8.6))
f = float(8.11) print(f) i = int(f) print(i) j = 7 print(type(j)) j = f print(j) print(type(j)) print(int(8.6))
def _impl(ctx): name = ctx.attr.name deps = ctx.attr.deps suites = ctx.attr.suites visibility = None # ctx.attr.visibility suites_mangled = [s.partition(".")[0].rpartition("/")[2] for s in suites] for s in suites_mangled: native.cc_test( name = "{}-{}".format(name, s), deps = deps, visibility = visibility, args = [s] ) native.test_suite( name = name, tests = [":{}-{}".format(name, s) for s in suites_mangled] ) persuite_bake_tests = rule( implementation = _impl, attrs = { "deps": attr.label_list(), "suites": attr.string_list(), }, )
def _impl(ctx): name = ctx.attr.name deps = ctx.attr.deps suites = ctx.attr.suites visibility = None suites_mangled = [s.partition('.')[0].rpartition('/')[2] for s in suites] for s in suites_mangled: native.cc_test(name='{}-{}'.format(name, s), deps=deps, visibility=visibility, args=[s]) native.test_suite(name=name, tests=[':{}-{}'.format(name, s) for s in suites_mangled]) persuite_bake_tests = rule(implementation=_impl, attrs={'deps': attr.label_list(), 'suites': attr.string_list()})
while True: budget = float(input("Enter your budget : ")) available=budget break d ={"name":[], "quantity":[], "price":[]} l= list(d.values()) name = l[0] quantity= l[1] price = l[2] while True: ch = int(input("1.ADD\n2.EXIT\nEnter your choice : ")) if ch == 1 and available>0: pn = input("Enter product name : ") q = int(input("Enter quantity : ")) p = float(input("Enter price of the product : ")) if p>available: print("canot by product") continue else: if pn in name: ind = na.index(pn) price.remove(price[ind]) quantity.insert(ind, q) price.insert(ind, p) available = budget-sum(price) print("\namount left", available) else: name.append(pn) quantity.append(q) price.append(p) available= budget-sum(price) print("\namount left", available) elif available<= 0: print("no amount left") else: break print("\nAmount left : Rs.", available) if available in price: print("\nyou an buy", na[price.index(available)]) print("\n\n\nGROCERY LIST") for i in range(len(name)): print(name[i],quantity[i],price[i])
while True: budget = float(input('Enter your budget : ')) available = budget break d = {'name': [], 'quantity': [], 'price': []} l = list(d.values()) name = l[0] quantity = l[1] price = l[2] while True: ch = int(input('1.ADD\n2.EXIT\nEnter your choice : ')) if ch == 1 and available > 0: pn = input('Enter product name : ') q = int(input('Enter quantity : ')) p = float(input('Enter price of the product : ')) if p > available: print('canot by product') continue elif pn in name: ind = na.index(pn) price.remove(price[ind]) quantity.insert(ind, q) price.insert(ind, p) available = budget - sum(price) print('\namount left', available) else: name.append(pn) quantity.append(q) price.append(p) available = budget - sum(price) print('\namount left', available) elif available <= 0: print('no amount left') else: break print('\nAmount left : Rs.', available) if available in price: print('\nyou an buy', na[price.index(available)]) print('\n\n\nGROCERY LIST') for i in range(len(name)): print(name[i], quantity[i], price[i])
data="7.dat" s=0.0 c=0 with open(data) as fp: for line in fp: words=line.split(':') if(words[0]=="RMSE"): c+=1 # print(words[1]) s+=float(words[1]) # print(s) print("average:") print(s/c)
data = '7.dat' s = 0.0 c = 0 with open(data) as fp: for line in fp: words = line.split(':') if words[0] == 'RMSE': c += 1 s += float(words[1]) print('average:') print(s / c)
if __name__ == '__main__': n = int(input()) for num in range(n): print(num * num)
if __name__ == '__main__': n = int(input()) for num in range(n): print(num * num)
# # PySNMP MIB module ONEACCESS-CONFIGMGMT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ONEACCESS-CONFIGMGMT-MIB # Produced by pysmi-0.3.4 at Wed May 1 14:34:15 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueRangeConstraint, ValueSizeConstraint, SingleValueConstraint, ConstraintsIntersection, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsIntersection", "ConstraintsUnion") oacExpIMManagement, oacRequirements, oacMIBModules = mibBuilder.importSymbols("ONEACCESS-GLOBAL-REG", "oacExpIMManagement", "oacRequirements", "oacMIBModules") NotificationGroup, ObjectGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ObjectGroup", "ModuleCompliance") Counter32, NotificationType, ObjectIdentity, Bits, Counter64, iso, ModuleIdentity, Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, MibIdentifier, Unsigned32, Gauge32, IpAddress, TimeTicks = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "NotificationType", "ObjectIdentity", "Bits", "Counter64", "iso", "ModuleIdentity", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "MibIdentifier", "Unsigned32", "Gauge32", "IpAddress", "TimeTicks") DisplayString, TextualConvention, DateAndTime = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention", "DateAndTime") oacConfigMgmtMIBModule = ModuleIdentity((1, 3, 6, 1, 4, 1, 13191, 1, 100, 2001)) oacConfigMgmtMIBModule.setRevisions(('2011-10-27 00:00', '2010-07-08 10:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: oacConfigMgmtMIBModule.setRevisionsDescriptions(('Added MODULE-COMPLIANCE AND OBJECT GROUP, fixed some minor corrections.', "This MIB module describes a MIB for keeping track of changes on equipment's configuration.",)) if mibBuilder.loadTexts: oacConfigMgmtMIBModule.setLastUpdated('201110270000Z') if mibBuilder.loadTexts: oacConfigMgmtMIBModule.setOrganization(' OneAccess ') if mibBuilder.loadTexts: oacConfigMgmtMIBModule.setContactInfo('Pascal KESTELOOT Postal: ONE ACCESS 381 Avenue du Gnral de Gaulle 92140 Clamart, France FRANCE Tel: (+33) 01 41 87 70 00 Fax: (+33) 01 41 87 74 00 E-mail: [email protected]') if mibBuilder.loadTexts: oacConfigMgmtMIBModule.setDescription('Contact updated') oacExpIMConfigMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6)) oacConfigMgmtObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1)) oacCMHistory = MibIdentifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 1)) oacCMCopy = MibIdentifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 2)) oacConfigMgmtNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 3)) oacCMHistoryRunningLastChanged = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 1, 1), DateAndTime()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacCMHistoryRunningLastChanged.setStatus('current') if mibBuilder.loadTexts: oacCMHistoryRunningLastChanged.setDescription('The time when the running configuration was last changed.') oacCMHistoryRunningLastSaved = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 1, 2), DateAndTime()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacCMHistoryRunningLastSaved.setStatus('current') if mibBuilder.loadTexts: oacCMHistoryRunningLastSaved.setDescription('The time when the running configuration was last saved (written).') oacCMHistoryStartupLastChanged = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 1, 3), DateAndTime()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacCMHistoryStartupLastChanged.setStatus('current') if mibBuilder.loadTexts: oacCMHistoryStartupLastChanged.setDescription('The time when the startup configuration was last written to.') oacCMCopyIndex = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 2, 1), IpAddress()) if mibBuilder.loadTexts: oacCMCopyIndex.setStatus('current') if mibBuilder.loadTexts: oacCMCopyIndex.setDescription('IP address used for configuration copy.') oacCMCopyTftpRunTable = MibTable((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 2, 2), ) if mibBuilder.loadTexts: oacCMCopyTftpRunTable.setStatus('current') if mibBuilder.loadTexts: oacCMCopyTftpRunTable.setDescription('Config Table for TFTP copy of running config.') oacCMCopyTftpRunEntry = MibTableRow((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 2, 2, 1), ).setIndexNames((0, "ONEACCESS-CONFIGMGMT-MIB", "oacCMCopyIndex")) if mibBuilder.loadTexts: oacCMCopyTftpRunEntry.setStatus('current') if mibBuilder.loadTexts: oacCMCopyTftpRunEntry.setDescription('List of objects defining a conceptual copy tftp entry.') oacCMCopyTftpRun = MibTableColumn((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 2, 2, 1, 1), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: oacCMCopyTftpRun.setStatus('current') if mibBuilder.loadTexts: oacCMCopyTftpRun.setDescription('Name of the file on the server where the configuration script is located. This variable is in effect a write-only variable. Attempts to read this variable will result in a no-such-object response.') oacCMCopyRunTftpTable = MibTable((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 2, 3), ) if mibBuilder.loadTexts: oacCMCopyRunTftpTable.setStatus('current') if mibBuilder.loadTexts: oacCMCopyRunTftpTable.setDescription('Config Table for copy of running config to tftp.') oacCMCopyRunTftpEntry = MibTableRow((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 2, 3, 1), ).setIndexNames((0, "ONEACCESS-CONFIGMGMT-MIB", "oacCMCopyIndex")) if mibBuilder.loadTexts: oacCMCopyRunTftpEntry.setStatus('current') if mibBuilder.loadTexts: oacCMCopyRunTftpEntry.setDescription('List of objects defining a conceptual copy tftp entry.') oacCMCopyRunTftp = MibTableColumn((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 2, 3, 1, 1), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: oacCMCopyRunTftp.setStatus('current') if mibBuilder.loadTexts: oacCMCopyRunTftp.setDescription('Name of the file on the server where the configuration script will be stored. This variable is in effect a write-only variable. Attempts to read this variable will result in a no-such-object response.') oacCMRunningConfigSaved = NotificationType((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 3, 1)) if mibBuilder.loadTexts: oacCMRunningConfigSaved.setStatus('current') if mibBuilder.loadTexts: oacCMRunningConfigSaved.setDescription('The running configuration has been saved.') oacCMConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 13191, 5, 2001)) oacCMGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 13191, 5, 2001, 1)) oacCMCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 13191, 5, 2001, 2)) oacCMCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 13191, 5, 2001, 2, 1)).setObjects(("ONEACCESS-CONFIGMGMT-MIB", "oacCMGeneralGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): oacCMCompliance = oacCMCompliance.setStatus('current') if mibBuilder.loadTexts: oacCMCompliance.setDescription('The compliance statement for agents that support the ONEACCESS-CONFIGMGMT-MIB.') oacCMGeneralGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 13191, 5, 2001, 1, 1)).setObjects(("ONEACCESS-CONFIGMGMT-MIB", "oacCMHistoryRunningLastChanged"), ("ONEACCESS-CONFIGMGMT-MIB", "oacCMHistoryRunningLastSaved"), ("ONEACCESS-CONFIGMGMT-MIB", "oacCMHistoryStartupLastChanged")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): oacCMGeneralGroup = oacCMGeneralGroup.setStatus('current') if mibBuilder.loadTexts: oacCMGeneralGroup.setDescription('This group is mandatory for Configuration Management entity.') mibBuilder.exportSymbols("ONEACCESS-CONFIGMGMT-MIB", oacCMCompliances=oacCMCompliances, oacCMConformance=oacCMConformance, oacCMHistory=oacCMHistory, oacCMHistoryRunningLastChanged=oacCMHistoryRunningLastChanged, oacConfigMgmtMIBModule=oacConfigMgmtMIBModule, oacCMHistoryStartupLastChanged=oacCMHistoryStartupLastChanged, oacExpIMConfigMgmt=oacExpIMConfigMgmt, oacCMCopyRunTftp=oacCMCopyRunTftp, oacCMCopyTftpRunTable=oacCMCopyTftpRunTable, oacCMCopyTftpRunEntry=oacCMCopyTftpRunEntry, oacCMCopyRunTftpEntry=oacCMCopyRunTftpEntry, oacCMCopy=oacCMCopy, oacConfigMgmtObjects=oacConfigMgmtObjects, oacCMRunningConfigSaved=oacCMRunningConfigSaved, oacCMCopyIndex=oacCMCopyIndex, PYSNMP_MODULE_ID=oacConfigMgmtMIBModule, oacCMGroups=oacCMGroups, oacConfigMgmtNotifications=oacConfigMgmtNotifications, oacCMCopyTftpRun=oacCMCopyTftpRun, oacCMGeneralGroup=oacCMGeneralGroup, oacCMCompliance=oacCMCompliance, oacCMCopyRunTftpTable=oacCMCopyRunTftpTable, oacCMHistoryRunningLastSaved=oacCMHistoryRunningLastSaved)
(octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_range_constraint, value_size_constraint, single_value_constraint, constraints_intersection, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'ValueSizeConstraint', 'SingleValueConstraint', 'ConstraintsIntersection', 'ConstraintsUnion') (oac_exp_im_management, oac_requirements, oac_mib_modules) = mibBuilder.importSymbols('ONEACCESS-GLOBAL-REG', 'oacExpIMManagement', 'oacRequirements', 'oacMIBModules') (notification_group, object_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ObjectGroup', 'ModuleCompliance') (counter32, notification_type, object_identity, bits, counter64, iso, module_identity, integer32, mib_scalar, mib_table, mib_table_row, mib_table_column, mib_identifier, unsigned32, gauge32, ip_address, time_ticks) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter32', 'NotificationType', 'ObjectIdentity', 'Bits', 'Counter64', 'iso', 'ModuleIdentity', 'Integer32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'MibIdentifier', 'Unsigned32', 'Gauge32', 'IpAddress', 'TimeTicks') (display_string, textual_convention, date_and_time) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention', 'DateAndTime') oac_config_mgmt_mib_module = module_identity((1, 3, 6, 1, 4, 1, 13191, 1, 100, 2001)) oacConfigMgmtMIBModule.setRevisions(('2011-10-27 00:00', '2010-07-08 10:00')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: oacConfigMgmtMIBModule.setRevisionsDescriptions(('Added MODULE-COMPLIANCE AND OBJECT GROUP, fixed some minor corrections.', "This MIB module describes a MIB for keeping track of changes on equipment's configuration.")) if mibBuilder.loadTexts: oacConfigMgmtMIBModule.setLastUpdated('201110270000Z') if mibBuilder.loadTexts: oacConfigMgmtMIBModule.setOrganization(' OneAccess ') if mibBuilder.loadTexts: oacConfigMgmtMIBModule.setContactInfo('Pascal KESTELOOT Postal: ONE ACCESS 381 Avenue du Gnral de Gaulle 92140 Clamart, France FRANCE Tel: (+33) 01 41 87 70 00 Fax: (+33) 01 41 87 74 00 E-mail: [email protected]') if mibBuilder.loadTexts: oacConfigMgmtMIBModule.setDescription('Contact updated') oac_exp_im_config_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6)) oac_config_mgmt_objects = mib_identifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1)) oac_cm_history = mib_identifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 1)) oac_cm_copy = mib_identifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 2)) oac_config_mgmt_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 3)) oac_cm_history_running_last_changed = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 1, 1), date_and_time()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacCMHistoryRunningLastChanged.setStatus('current') if mibBuilder.loadTexts: oacCMHistoryRunningLastChanged.setDescription('The time when the running configuration was last changed.') oac_cm_history_running_last_saved = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 1, 2), date_and_time()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacCMHistoryRunningLastSaved.setStatus('current') if mibBuilder.loadTexts: oacCMHistoryRunningLastSaved.setDescription('The time when the running configuration was last saved (written).') oac_cm_history_startup_last_changed = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 1, 3), date_and_time()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacCMHistoryStartupLastChanged.setStatus('current') if mibBuilder.loadTexts: oacCMHistoryStartupLastChanged.setDescription('The time when the startup configuration was last written to.') oac_cm_copy_index = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 2, 1), ip_address()) if mibBuilder.loadTexts: oacCMCopyIndex.setStatus('current') if mibBuilder.loadTexts: oacCMCopyIndex.setDescription('IP address used for configuration copy.') oac_cm_copy_tftp_run_table = mib_table((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 2, 2)) if mibBuilder.loadTexts: oacCMCopyTftpRunTable.setStatus('current') if mibBuilder.loadTexts: oacCMCopyTftpRunTable.setDescription('Config Table for TFTP copy of running config.') oac_cm_copy_tftp_run_entry = mib_table_row((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 2, 2, 1)).setIndexNames((0, 'ONEACCESS-CONFIGMGMT-MIB', 'oacCMCopyIndex')) if mibBuilder.loadTexts: oacCMCopyTftpRunEntry.setStatus('current') if mibBuilder.loadTexts: oacCMCopyTftpRunEntry.setDescription('List of objects defining a conceptual copy tftp entry.') oac_cm_copy_tftp_run = mib_table_column((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 2, 2, 1, 1), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: oacCMCopyTftpRun.setStatus('current') if mibBuilder.loadTexts: oacCMCopyTftpRun.setDescription('Name of the file on the server where the configuration script is located. This variable is in effect a write-only variable. Attempts to read this variable will result in a no-such-object response.') oac_cm_copy_run_tftp_table = mib_table((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 2, 3)) if mibBuilder.loadTexts: oacCMCopyRunTftpTable.setStatus('current') if mibBuilder.loadTexts: oacCMCopyRunTftpTable.setDescription('Config Table for copy of running config to tftp.') oac_cm_copy_run_tftp_entry = mib_table_row((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 2, 3, 1)).setIndexNames((0, 'ONEACCESS-CONFIGMGMT-MIB', 'oacCMCopyIndex')) if mibBuilder.loadTexts: oacCMCopyRunTftpEntry.setStatus('current') if mibBuilder.loadTexts: oacCMCopyRunTftpEntry.setDescription('List of objects defining a conceptual copy tftp entry.') oac_cm_copy_run_tftp = mib_table_column((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 2, 3, 1, 1), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: oacCMCopyRunTftp.setStatus('current') if mibBuilder.loadTexts: oacCMCopyRunTftp.setDescription('Name of the file on the server where the configuration script will be stored. This variable is in effect a write-only variable. Attempts to read this variable will result in a no-such-object response.') oac_cm_running_config_saved = notification_type((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 3, 1)) if mibBuilder.loadTexts: oacCMRunningConfigSaved.setStatus('current') if mibBuilder.loadTexts: oacCMRunningConfigSaved.setDescription('The running configuration has been saved.') oac_cm_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 13191, 5, 2001)) oac_cm_groups = mib_identifier((1, 3, 6, 1, 4, 1, 13191, 5, 2001, 1)) oac_cm_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 13191, 5, 2001, 2)) oac_cm_compliance = module_compliance((1, 3, 6, 1, 4, 1, 13191, 5, 2001, 2, 1)).setObjects(('ONEACCESS-CONFIGMGMT-MIB', 'oacCMGeneralGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): oac_cm_compliance = oacCMCompliance.setStatus('current') if mibBuilder.loadTexts: oacCMCompliance.setDescription('The compliance statement for agents that support the ONEACCESS-CONFIGMGMT-MIB.') oac_cm_general_group = object_group((1, 3, 6, 1, 4, 1, 13191, 5, 2001, 1, 1)).setObjects(('ONEACCESS-CONFIGMGMT-MIB', 'oacCMHistoryRunningLastChanged'), ('ONEACCESS-CONFIGMGMT-MIB', 'oacCMHistoryRunningLastSaved'), ('ONEACCESS-CONFIGMGMT-MIB', 'oacCMHistoryStartupLastChanged')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): oac_cm_general_group = oacCMGeneralGroup.setStatus('current') if mibBuilder.loadTexts: oacCMGeneralGroup.setDescription('This group is mandatory for Configuration Management entity.') mibBuilder.exportSymbols('ONEACCESS-CONFIGMGMT-MIB', oacCMCompliances=oacCMCompliances, oacCMConformance=oacCMConformance, oacCMHistory=oacCMHistory, oacCMHistoryRunningLastChanged=oacCMHistoryRunningLastChanged, oacConfigMgmtMIBModule=oacConfigMgmtMIBModule, oacCMHistoryStartupLastChanged=oacCMHistoryStartupLastChanged, oacExpIMConfigMgmt=oacExpIMConfigMgmt, oacCMCopyRunTftp=oacCMCopyRunTftp, oacCMCopyTftpRunTable=oacCMCopyTftpRunTable, oacCMCopyTftpRunEntry=oacCMCopyTftpRunEntry, oacCMCopyRunTftpEntry=oacCMCopyRunTftpEntry, oacCMCopy=oacCMCopy, oacConfigMgmtObjects=oacConfigMgmtObjects, oacCMRunningConfigSaved=oacCMRunningConfigSaved, oacCMCopyIndex=oacCMCopyIndex, PYSNMP_MODULE_ID=oacConfigMgmtMIBModule, oacCMGroups=oacCMGroups, oacConfigMgmtNotifications=oacConfigMgmtNotifications, oacCMCopyTftpRun=oacCMCopyTftpRun, oacCMGeneralGroup=oacCMGeneralGroup, oacCMCompliance=oacCMCompliance, oacCMCopyRunTftpTable=oacCMCopyRunTftpTable, oacCMHistoryRunningLastSaved=oacCMHistoryRunningLastSaved)
coco_keypoints = [ "nose", # 0 "left_eye", # 1 "right_eye", # 2 "left_ear", # 3 "right_ear", # 4 "left_shoulder", # 5 "right_shoulder", # 6 "left_elbow", # 7 "right_elbow", # 8 "left_wrist", # 9 "right_wrist", # 10 "left_hip", # 11 "right_hip", # 12 "left_knee", # 13 "right_knee", # 14 "left_ankle", # 15 "right_ankle" # 16 ] coco_pairs = [ (0,1), # 0 nose to left_eye (0,2), # 1 nose to right_eye (1,3), # 2 left_eye to left_ear (2,4), # 3 right_eye to right_ear (5,6), # 4 left_shoulder to right_shoulder (5,7), # 5 left_shoulder to left_elbow (6,8), # 6 right_shoulder to right_elbow (7,9), # 7 left_elbow to left_wrist (8,10), # 8 right_elbow to right_wrist (11,12), # 9 left_hip to right_hip (11,13), # 10 left_hip to left_knee (12,14), # 11 right_hip to right_knee (13,15), # 12 left_knee to left_ankle (14,16) # 13 right_knee to right_ankle ]
coco_keypoints = ['nose', 'left_eye', 'right_eye', 'left_ear', 'right_ear', 'left_shoulder', 'right_shoulder', 'left_elbow', 'right_elbow', 'left_wrist', 'right_wrist', 'left_hip', 'right_hip', 'left_knee', 'right_knee', 'left_ankle', 'right_ankle'] coco_pairs = [(0, 1), (0, 2), (1, 3), (2, 4), (5, 6), (5, 7), (6, 8), (7, 9), (8, 10), (11, 12), (11, 13), (12, 14), (13, 15), (14, 16)]
# Return tracebacks with OperationOutcomes when an exceprion occurs DEBUG = False # How many items should we include in budles whwn count is not specified DEFAULT_BUNDLE_SIZE = 20 # Limit bundles to this size even if more are requested # TODO: Disable limiting when set to 0 MAX_BUNDLE_SIZE = 100 # Path to the models module MODELS_PATH = "models" # Which DB backend should be used # SQLAlchemy | DjangoORM | PyMODM DB_BACKEND = "SQLAlchemy" # Various settings related to how strictly the application handles # some situation. A value of True normally means that an error will be thrown STRICT_MODE = { # Throw or ignore attempts to set an attribute without having defined a setter func 'set_attribute_without_setter': False, # Throw when attempting to create a reference to an object that does not exist on the server 'set_non_existent_reference': False, }
debug = False default_bundle_size = 20 max_bundle_size = 100 models_path = 'models' db_backend = 'SQLAlchemy' strict_mode = {'set_attribute_without_setter': False, 'set_non_existent_reference': False}
peso = float(input('Digite o peso da pessoa \t')) engorda = peso + (peso*0.15) emagrece = peso - (peso*0.20) print('Se engordar , peso = ',engorda) print('Se emagrece , peso = ',emagrece)
peso = float(input('Digite o peso da pessoa \t')) engorda = peso + peso * 0.15 emagrece = peso - peso * 0.2 print('Se engordar , peso = ', engorda) print('Se emagrece , peso = ', emagrece)
#conditional tests- testing for equalities sanrio_1 = 'keroppi' print("Is sanrio == 'keroppi'? I predict True.") print(sanrio_1 == 'keroppi') sanrio_2 = 'hello kitty' print("Is sanrio == 'Hello Kitty'? I predict True.") print(sanrio_2 == 'hello kitty') sanrio_3 = 'pochacco' print("Is sanrio == 'Pochacco'? I predict True.") print(sanrio_3 == 'pochacco') sanrio_4 = 'chococat' print("Is sanrio == 'Chococat'? I predict True.") print(sanrio_4 == 'chococat') sanrio_5 = 'badtzmaru' print("Is sanrio == 'Badtzmaru'? I predict True.") print(sanrio_5 == 'badtzmaru') sanrio_6 = 'cinnamoroll' print("Is sanrio == 'Cinnamoroll'? I predict True.") print(sanrio_6 == 'cinnamoroll') sanrio_7 = 'gudetama' print("Is sanrio == 'Gudetama'? I predict True.") print(sanrio_7 == 'gudetama') sanrio_8 = 'my melody' print("Is sanrio == 'My Melody'? I predict True.") print(sanrio_8 == 'my melody') sanrio_9 = 'kuromi' print("Is sanrio == 'Kuromi'? I predict True.") print(sanrio_9 == 'kuromi') sanrio_10 = 'pompompurin' print("Is sanrio == 'Pompompurin'? I predict True.") print(sanrio_10 == 'pompompurin') #finding a false print("Is sanrio == 'Mickey'? I predict False.") print(sanrio_1 == 'mickey') print("Is sanrio == 'Minnie'? I predict False.") print(sanrio_2 == 'minnie') print("Is sanrio == 'Goffy'? I predict False.") print(sanrio_3 == 'goofy') print("Is sanrio == 'Donald'? I predict False.") print(sanrio_4 == 'donald') print("Is sanrio == 'Dasiy'? I predict False.") print(sanrio_5 == 'daisy') #testing for inequality sanrio_11 = 'aggretsuko' if sanrio_11 != 'pluto': print("\nThat is not a Sanrio character") #using the lower() method print(sanrio_11 == 'Aggretsuko') print(sanrio_11.lower() == 'aggretsuko') #checking if an item is on a list sanrio_friends = ['hello kitty', 'pochacco', 'keroppi'] friend = 'pickachu' if friend not in sanrio_friends: print(f"\n{friend.title()} is not part of the Sanrio friends.") #adult ages my_age = 28 print(my_age == 28) print(my_age < 50) print(my_age > 75) print(my_age <= 25) print(my_age >= 15) #if and else statements alien_colors = ['green', 'blue', 'yellow'] if 'green' in alien_colors: print("\n5 points for the green alien!") if 'blue' in alien_colors: print("10 points for a blue alien!") if 'yellow' in alien_colors: print("15 points for the yellow alien!") else: print("Looser!") favorite_fruits = ['strawberries', 'bananas', 'watermelon'] if 'strawberries' in favorite_fruits: print("\nStrawberry feilds forever!") if 'bananas' in favorite_fruits: print("\nThis ish is BANANAS!") if 'watermelon' in favorite_fruits: print("\nWatermelon-Sugar-HIGH!") else: print("\nThat is not a musically based fruit.") #if and elif statements with numbers dinseyland_guest_age = 28 if dinseyland_guest_age < 2: print("\nBabies are free of admission") elif dinseyland_guest_age < 4: print("\nToddlers are $25 for admission") elif dinseyland_guest_age < 13: print("\nChildren are $50 for admission") elif dinseyland_guest_age < 20: print("\nTeens are $75 for admission") elif dinseyland_guest_age < 65: print("\nAdults are $100 for admission") elif dinseyland_guest_age < 66: print("\nSeniors are $50 for admission") else: print("\nThe dead are not allowed.") #if statements with lists usernames = ['admin', 'assistant', 'supervisor'] for username in usernames: if username == 'admin': print("\nWelcome Admin. Would you like to see a status report?") else: print("\nHello, thank you for loggin in again.") #empty if statements logins = [] if logins: for login in logins: print(f"\nWe need to find some users") print("\nUser is here") else: print("\nUser failed to login.") #checking usernames- ensuring unique names within a list current_users = ['user1', 'user2', 'user3', 'user4', 'user5'] new_users = ['new1', 'new2', 'user3', 'new4', 'new5'] for new_user in new_users: if new_user in current_users: print("\nSorry, that username is taken. Please try again.") elif new_users == 'New1': print("\nUsername cannot be accepted as is. Try again") elif new_users == 'New2': print("\nUsername cannot be accepted as is. Try again") elif new_users == 'New4': print("\nUsername cannot be accepted as is. Try again") elif new_users == 'New5': print("\nUsername cannot be accepted as is. Try again") else: print("\nThis username is avaliable.") #ordinal numbers numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9] for number in numbers: if number == 1: print("1st") elif number == 2: print("2nd") elif number == 3: print("3rd") elif number == 4: print("4th") elif number == 5: print("5th") elif number == 6: print("6th") elif number == 7: print("7th") elif number == 8: print("8th") elif number == 9: print("9th") else: print("ERROR")
sanrio_1 = 'keroppi' print("Is sanrio == 'keroppi'? I predict True.") print(sanrio_1 == 'keroppi') sanrio_2 = 'hello kitty' print("Is sanrio == 'Hello Kitty'? I predict True.") print(sanrio_2 == 'hello kitty') sanrio_3 = 'pochacco' print("Is sanrio == 'Pochacco'? I predict True.") print(sanrio_3 == 'pochacco') sanrio_4 = 'chococat' print("Is sanrio == 'Chococat'? I predict True.") print(sanrio_4 == 'chococat') sanrio_5 = 'badtzmaru' print("Is sanrio == 'Badtzmaru'? I predict True.") print(sanrio_5 == 'badtzmaru') sanrio_6 = 'cinnamoroll' print("Is sanrio == 'Cinnamoroll'? I predict True.") print(sanrio_6 == 'cinnamoroll') sanrio_7 = 'gudetama' print("Is sanrio == 'Gudetama'? I predict True.") print(sanrio_7 == 'gudetama') sanrio_8 = 'my melody' print("Is sanrio == 'My Melody'? I predict True.") print(sanrio_8 == 'my melody') sanrio_9 = 'kuromi' print("Is sanrio == 'Kuromi'? I predict True.") print(sanrio_9 == 'kuromi') sanrio_10 = 'pompompurin' print("Is sanrio == 'Pompompurin'? I predict True.") print(sanrio_10 == 'pompompurin') print("Is sanrio == 'Mickey'? I predict False.") print(sanrio_1 == 'mickey') print("Is sanrio == 'Minnie'? I predict False.") print(sanrio_2 == 'minnie') print("Is sanrio == 'Goffy'? I predict False.") print(sanrio_3 == 'goofy') print("Is sanrio == 'Donald'? I predict False.") print(sanrio_4 == 'donald') print("Is sanrio == 'Dasiy'? I predict False.") print(sanrio_5 == 'daisy') sanrio_11 = 'aggretsuko' if sanrio_11 != 'pluto': print('\nThat is not a Sanrio character') print(sanrio_11 == 'Aggretsuko') print(sanrio_11.lower() == 'aggretsuko') sanrio_friends = ['hello kitty', 'pochacco', 'keroppi'] friend = 'pickachu' if friend not in sanrio_friends: print(f'\n{friend.title()} is not part of the Sanrio friends.') my_age = 28 print(my_age == 28) print(my_age < 50) print(my_age > 75) print(my_age <= 25) print(my_age >= 15) alien_colors = ['green', 'blue', 'yellow'] if 'green' in alien_colors: print('\n5 points for the green alien!') if 'blue' in alien_colors: print('10 points for a blue alien!') if 'yellow' in alien_colors: print('15 points for the yellow alien!') else: print('Looser!') favorite_fruits = ['strawberries', 'bananas', 'watermelon'] if 'strawberries' in favorite_fruits: print('\nStrawberry feilds forever!') if 'bananas' in favorite_fruits: print('\nThis ish is BANANAS!') if 'watermelon' in favorite_fruits: print('\nWatermelon-Sugar-HIGH!') else: print('\nThat is not a musically based fruit.') dinseyland_guest_age = 28 if dinseyland_guest_age < 2: print('\nBabies are free of admission') elif dinseyland_guest_age < 4: print('\nToddlers are $25 for admission') elif dinseyland_guest_age < 13: print('\nChildren are $50 for admission') elif dinseyland_guest_age < 20: print('\nTeens are $75 for admission') elif dinseyland_guest_age < 65: print('\nAdults are $100 for admission') elif dinseyland_guest_age < 66: print('\nSeniors are $50 for admission') else: print('\nThe dead are not allowed.') usernames = ['admin', 'assistant', 'supervisor'] for username in usernames: if username == 'admin': print('\nWelcome Admin. Would you like to see a status report?') else: print('\nHello, thank you for loggin in again.') logins = [] if logins: for login in logins: print(f'\nWe need to find some users') print('\nUser is here') else: print('\nUser failed to login.') current_users = ['user1', 'user2', 'user3', 'user4', 'user5'] new_users = ['new1', 'new2', 'user3', 'new4', 'new5'] for new_user in new_users: if new_user in current_users: print('\nSorry, that username is taken. Please try again.') elif new_users == 'New1': print('\nUsername cannot be accepted as is. Try again') elif new_users == 'New2': print('\nUsername cannot be accepted as is. Try again') elif new_users == 'New4': print('\nUsername cannot be accepted as is. Try again') elif new_users == 'New5': print('\nUsername cannot be accepted as is. Try again') else: print('\nThis username is avaliable.') numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9] for number in numbers: if number == 1: print('1st') elif number == 2: print('2nd') elif number == 3: print('3rd') elif number == 4: print('4th') elif number == 5: print('5th') elif number == 6: print('6th') elif number == 7: print('7th') elif number == 8: print('8th') elif number == 9: print('9th') else: print('ERROR')
num =int(input(" Input a Number: ")) def factorsOf(num): factors=[] for i in range(1,num+1): if num%i==0: factors.append(i) print(factors) factorsOf(num)
num = int(input(' Input a Number: ')) def factors_of(num): factors = [] for i in range(1, num + 1): if num % i == 0: factors.append(i) print(factors) factors_of(num)
# A non-empty array A consisting of N integers is given. The array contains an odd number of elements, and each element of the array can be paired with another element that has the same value, except for one element that is left unpaired. # Write a function: that, given an array A consisting of N integers fulfilling the above conditions, returns the value of the unpaired element. def oddOccurancesInArray(A): if len(A) == 1: return A[0] A = sorted(A) # sort list # iterate through every other index for i in range(0 , len (A) , 2): # if next element is outside list, return last element if i+1 == len(A): return A[i] # if element doesnt match next element, return element if A[i] != A[i+1]: return A[i] print(oddOccurancesInArray([9, 3, 9, 3, 9, 7, 9]))
def odd_occurances_in_array(A): if len(A) == 1: return A[0] a = sorted(A) for i in range(0, len(A), 2): if i + 1 == len(A): return A[i] if A[i] != A[i + 1]: return A[i] print(odd_occurances_in_array([9, 3, 9, 3, 9, 7, 9]))
# Find which triangle numbers and which square numbers are the same # Written: 13 Jul 2016 by Alex Vear # Public domain. No rights reserved. STARTVALUE = 1 # set the start value for the program to test ENDVALUE = 1000000 # set the end value for the program to test for num in range(STARTVALUE, ENDVALUE): sqr = num*num for i in range(STARTVALUE, ENDVALUE): tri = ((i*(i+1))/2) if sqr == tri: print('Square Number:', sqr, ' ', 'Triangle Number:', tri, ' ', \ 'Squared:', num, ' ', 'Triangled:', i) else: continue
startvalue = 1 endvalue = 1000000 for num in range(STARTVALUE, ENDVALUE): sqr = num * num for i in range(STARTVALUE, ENDVALUE): tri = i * (i + 1) / 2 if sqr == tri: print('Square Number:', sqr, ' ', 'Triangle Number:', tri, ' ', 'Squared:', num, ' ', 'Triangled:', i) else: continue
class Solution: def missingNumber(self, nums: List[int]) -> int: l = len(nums) return l * (1 + l) // 2 - sum(nums)
class Solution: def missing_number(self, nums: List[int]) -> int: l = len(nums) return l * (1 + l) // 2 - sum(nums)
def quick_sort(data: list, first: int, last: int): if not isinstance(data, list): print(f'The data {data} MUST be of type list') return if not isinstance(first, int) or not isinstance(last, int): print(f'The args {first}, and {last} MUST be an index') return if first < last: # pi: Pivote Index pi = partitions(data, first, last) quick_sort(data, first, pi - 1) quick_sort(data, pi + 1, last) def partitions(data: list, first: int, last: int): if not isinstance(data, list): print(f'The data {data} MUST be of type list') return if not isinstance(first, int) or not isinstance(last, int): print(f'The args {first}, and {last} MUST be an index') return #pv: Pivot Value pv = data[first] lower = first + 1 upper = last done = False while not done: while lower <= upper and data[lower] <= pv: lower += 1 while data[upper] >= pv and upper >= lower: upper -= 1 if lower > upper: done = True else: data[lower], data[upper] = data[upper], data[lower] data[first], data[upper] = data[upper], data[first] return upper data = [87, 47, 23, 53, 20, 56, 6, 19, 8, 41] print(data) print( quick_sort(data, 0, len(data) - 1) ) print(data)
def quick_sort(data: list, first: int, last: int): if not isinstance(data, list): print(f'The data {data} MUST be of type list') return if not isinstance(first, int) or not isinstance(last, int): print(f'The args {first}, and {last} MUST be an index') return if first < last: pi = partitions(data, first, last) quick_sort(data, first, pi - 1) quick_sort(data, pi + 1, last) def partitions(data: list, first: int, last: int): if not isinstance(data, list): print(f'The data {data} MUST be of type list') return if not isinstance(first, int) or not isinstance(last, int): print(f'The args {first}, and {last} MUST be an index') return pv = data[first] lower = first + 1 upper = last done = False while not done: while lower <= upper and data[lower] <= pv: lower += 1 while data[upper] >= pv and upper >= lower: upper -= 1 if lower > upper: done = True else: (data[lower], data[upper]) = (data[upper], data[lower]) (data[first], data[upper]) = (data[upper], data[first]) return upper data = [87, 47, 23, 53, 20, 56, 6, 19, 8, 41] print(data) print(quick_sort(data, 0, len(data) - 1)) print(data)
# ------------------------------ # 42. Trapping Rain Water # # Description: # Given n non-negative integers representing an elevation map where the width of each # bar is 1, compute how much water it is able to trap after raining. # (see picture on the website) # # Example: # Input: [0,1,0,2,1,0,1,3,2,1,2,1] # Output: 6 # # Version: 2.0 # 11/09/19 by Jianfa # ------------------------------ class Solution: def trap(self, height: List[int]) -> int: res = 0 current = 0 stack = [] while current < len(height): while stack and height[current] > height[stack[-1]]: last = stack.pop() if not stack: # if stack is empty after popping last out break distance = current - stack[-1] - 1 # get horizontal distance between current and left bar of the last height_diff = min(height[stack[-1]], height[current]) - height[last] # get the height distance between a lower bar and height[last] res += distance * height_diff stack.append(current) current += 1 return res # Used for testing if __name__ == "__main__": test = Solution() # ------------------------------ # Summary: # Stack solution from https://leetcode.com/problems/trapping-rain-water/solution/ # More concise than mine. It leverage the status of stack. If stack is empty, that means # current bar is the only higher bar than last bar so far. Otherwise, there must be a # left higher bar so that form a trap between it and current bar. # Repeat this until there is no lower bar than current one. # # O(n) time and O(n) space
class Solution: def trap(self, height: List[int]) -> int: res = 0 current = 0 stack = [] while current < len(height): while stack and height[current] > height[stack[-1]]: last = stack.pop() if not stack: break distance = current - stack[-1] - 1 height_diff = min(height[stack[-1]], height[current]) - height[last] res += distance * height_diff stack.append(current) current += 1 return res if __name__ == '__main__': test = solution()
# Scaler problem def solve(s, queries): left_most = [-1] * len(s) index = -1 for i in range(len(s) - 1, -1, -1): if s[i] == '1': index = i left_most[i] = index right_most = [-1] * len(s) index = -1 for i in range(len(s)): if s[i] == '1': index = i right_most[i] = index ones_count = [0] * len(s) count = 0 for i, ch in enumerate(s): if ch == '1': count += 1 ones_count[i] = count result = [] for left, right in queries: left = left_most[left - 1] right = right_most[right - 1] if -1 in (left, right) or left > right: result.append(0) continue total_bits = right - left + 1 ones = ones_count[right] - (0 if left == 0 else ones_count[left - 1]) result.append(total_bits - ones) return result res = solve("101010", [ [2, 2] ]) print(res)
def solve(s, queries): left_most = [-1] * len(s) index = -1 for i in range(len(s) - 1, -1, -1): if s[i] == '1': index = i left_most[i] = index right_most = [-1] * len(s) index = -1 for i in range(len(s)): if s[i] == '1': index = i right_most[i] = index ones_count = [0] * len(s) count = 0 for (i, ch) in enumerate(s): if ch == '1': count += 1 ones_count[i] = count result = [] for (left, right) in queries: left = left_most[left - 1] right = right_most[right - 1] if -1 in (left, right) or left > right: result.append(0) continue total_bits = right - left + 1 ones = ones_count[right] - (0 if left == 0 else ones_count[left - 1]) result.append(total_bits - ones) return result res = solve('101010', [[2, 2]]) print(res)
def getime(date): list1=[] for hour in range(8): for minute in range(0,56,5): if minute<10: time=str(date)+'-0'+str(hour)+':0'+str(minute)+':01' else: time=str(date)+'-0'+str(hour)+':'+str(minute)+':01' list1.append(time) for hour in range(8,24): if hour<10: for minute in range(0,60): if minute<10: time=str(date)+'-0'+str(hour)+':0'+str(minute)+':01' else: time=str(date)+'-0'+str(hour)+':'+str(minute)+':01' list1.append(time) else: for minute in range(0,60): if minute<10: time=str(date)+'-'+str(hour)+':0'+str(minute)+':01' else: time=str(date)+'-'+str(hour)+':'+str(minute)+':01' list1.append(time) return list1
def getime(date): list1 = [] for hour in range(8): for minute in range(0, 56, 5): if minute < 10: time = str(date) + '-0' + str(hour) + ':0' + str(minute) + ':01' else: time = str(date) + '-0' + str(hour) + ':' + str(minute) + ':01' list1.append(time) for hour in range(8, 24): if hour < 10: for minute in range(0, 60): if minute < 10: time = str(date) + '-0' + str(hour) + ':0' + str(minute) + ':01' else: time = str(date) + '-0' + str(hour) + ':' + str(minute) + ':01' list1.append(time) else: for minute in range(0, 60): if minute < 10: time = str(date) + '-' + str(hour) + ':0' + str(minute) + ':01' else: time = str(date) + '-' + str(hour) + ':' + str(minute) + ':01' list1.append(time) return list1
HASH_KEY = 55 WORDS_LENGTH = 5 REQUIRED_WORDS = 365 MAX_GAME_ATTEMPTS = 6 WORDS_PATH = 'out/palabras5.txt' GAME_HISTORY_PATH = 'out/partidas.json' GAME_WORDS_PATH = 'out/palabras_por_fecha.json'
hash_key = 55 words_length = 5 required_words = 365 max_game_attempts = 6 words_path = 'out/palabras5.txt' game_history_path = 'out/partidas.json' game_words_path = 'out/palabras_por_fecha.json'
#hyperparameter hidden_size = 256 # hidden size of model layer_size = 3 # number of layers of model dropout = 0.2 # dropout rate in training bidirectional = True # use bidirectional RNN for encoder use_attention = True # use attention between encoder-decoder batch_size = 8 # batch size in training workers = 4 # number of workers in dataset loader max_epochs = 10 # number of max epochs in training lr = 1e-04 # learning rate teacher_forcing = 0.9 # teacher forcing ratio in decoder max_len = 80 # maximum characters of sentence seed = 1 # random seed mode = 'train' data_csv_path = './dataset/train/train_data/data_list.csv' DATASET_PATH = './dataset/train' # audio params SAMPLE_RATE = 16000 WINDOW_SIZE = 0.02 WINDOW_STRIDE = 0.01 WINDOW = 'hamming' # audio loader params SR = 22050 NUM_WORKERS = 4 BATCH_SIZE = 100 #600 #NUM_SAMPLES = 59049 # optimizer LR = 0.0001 WEIGHT_DECAY = 1e-5 EPS = 1e-8 # epoch MAX_EPOCH = 500 SEED = 123456 DEVICE_IDS=[0,1,2,3] # train params DROPOUT = 0.5 NUM_EPOCHS = 300
hidden_size = 256 layer_size = 3 dropout = 0.2 bidirectional = True use_attention = True batch_size = 8 workers = 4 max_epochs = 10 lr = 0.0001 teacher_forcing = 0.9 max_len = 80 seed = 1 mode = 'train' data_csv_path = './dataset/train/train_data/data_list.csv' dataset_path = './dataset/train' sample_rate = 16000 window_size = 0.02 window_stride = 0.01 window = 'hamming' sr = 22050 num_workers = 4 batch_size = 100 lr = 0.0001 weight_decay = 1e-05 eps = 1e-08 max_epoch = 500 seed = 123456 device_ids = [0, 1, 2, 3] dropout = 0.5 num_epochs = 300
''' write a function to sort a given list and return sorted list using sort() or sorted() functions''' def sorted_list(alist): return sorted(alist) sorted_me = sorted_list([5,2,1,7,8,3,2,9,4]) print(sorted_me) def sort_list(alist): return alist.sort() sort_me = sort_list([5,2,1,7,8,3,2,9,4]) print(sort_me)
""" write a function to sort a given list and return sorted list using sort() or sorted() functions""" def sorted_list(alist): return sorted(alist) sorted_me = sorted_list([5, 2, 1, 7, 8, 3, 2, 9, 4]) print(sorted_me) def sort_list(alist): return alist.sort() sort_me = sort_list([5, 2, 1, 7, 8, 3, 2, 9, 4]) print(sort_me)
def solution(A): h = set(A) l = len(h) for i in range(1, l+1): if i not in h: return i return -1 # final check print(solution([1, 2, 3, 4, 6]))
def solution(A): h = set(A) l = len(h) for i in range(1, l + 1): if i not in h: return i return -1 print(solution([1, 2, 3, 4, 6]))
class BitmaskPrinter: bitmask_object_template = '''/* Autogenerated Code - do not edit directly */ #pragma once #include <stdint.h> #include <jude/core/c/jude_enum.h> #ifdef __cplusplus extern "C" { #endif typedef uint%SIZE%_t %BITMASK%_t; extern const jude_bitmask_map_t %BITMASK%_bitmask_map[]; #ifdef __cplusplus } #include <jude/jude.h> namespace jude { class %BITMASK% : public BitMask { public: enum Value { %VALUES%, __INVALID_VALUE }; %BITMASK%(Object& parent, jude_size_t fieldIndex, jude_size_t arrayIndex = 0) : BitMask(%BITMASK%_bitmask_map[0], parent, fieldIndex, arrayIndex) {} static const char* GetString(Value value); static const char* GetDescription(Value value); static const Value* FindValue(const char* name); static Value GetValue(const char* name); // Backwards compatibility static auto AsText(Value value) { return GetString(value); }; %BIT_ACCESSORS% }; } /* namespace jude */ #endif ''' bitmask_accessors_template = ''' bool Is_%BIT%() const { return BitMask::IsBitSet(%BIT%); } void Set_%BIT%() { return BitMask::SetBit(%BIT%); } void Clear_%BIT%() { return BitMask::ClearBit(%BIT%); } ''' bitmask_source_template = ''' #include "%BITMASK%.h" extern "C" const jude_bitmask_map_t %BITMASK%_bitmask_map[] = { %VALUES%, JUDE_ENUM_MAP_END }; namespace jude { const jude_size_t %BITMASK%_COUNT = (jude_size_t)(sizeof(%BITMASK%_bitmask_map) / sizeof(%BITMASK%_bitmask_map[0])); const char* %BITMASK%::GetString(%BITMASK%::Value value) { return jude_enum_find_string(%BITMASK%_bitmask_map, value); } const char* %BITMASK%::GetDescription(%BITMASK%::Value value) { return jude_enum_find_description(%BITMASK%_bitmask_map, value); } const %BITMASK%::Value* %BITMASK%::FindValue(const char* name) { return (const %BITMASK%::Value*)jude_enum_find_value(%BITMASK%_bitmask_map, name); } %BITMASK%::Value %BITMASK%::GetValue(const char* name) { return (%BITMASK%::Value)jude_enum_get_value(%BITMASK%_bitmask_map, name); } } ''' def __init__(self, importPrefix, name, bitmask_def): print("Parsing bitmask: ", name, "...") self.name = name self.importPrefix = importPrefix self.bits = [] self.size = 8 for label, data in bitmask_def.items(): bit = 0 description = '' if isinstance(data,dict): if not data.__contains__('bit'): raise SyntaxError("bitmask bit defined as dictionary but no 'bit' given: " + data) bit = int(data['bit']) if data.__contains__('description'): description = data['description'] elif isinstance(data,int): bit = data else: raise SyntaxError("bitmask element not defined as dictionary or int: " + bit) if bit < 0 or bit > 63: raise SyntaxError("bitmask bit value %d is not allowed, should be in range [0,63]" % bit) if bit > 7 and self.size < 16: self.size = 16 elif bit > 15 and self.size < 32: self.size = 32 if bit > 31: self.size = 64 self.bits.append((label, bit, description)) # sort list by the bit values self.bits = sorted(self.bits, key=lambda x: x[1]) def create_object(self): c_values = ',\n'.join([" %s = %d" % (x, y) for (x,y,z) in self.bits]) bit_accessors = ''.join([self.bitmask_accessors_template \ .replace("%BITMASK%", str(self.name))\ .replace("%BIT%", str(x)) for (x,y,z) in self.bits]) return self.bitmask_object_template.replace("%VALUES%", str(c_values)) \ .replace("%SIZE%", str(self.size)) \ .replace("%BITMASK%", str(self.name)) \ .replace("%BIT_ACCESSORS%", str(bit_accessors)) \ .replace("%FILE%", str(self.name).upper()) def create_source(self): values = ',\n'.join([' JUDE_ENUM_MAP_ENTRY(%s, %s, "%s")' % (x,y,z) for (x,y,z) in self.bits]) return self.bitmask_source_template.replace("%VALUES%", str(values)) \ .replace("%BITMASK%", str(self.name)) \ .replace("%FILE%", str(self.name).upper())
class Bitmaskprinter: bitmask_object_template = '/* Autogenerated Code - do not edit directly */\n#pragma once\n\n#include <stdint.h>\n#include <jude/core/c/jude_enum.h>\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\ntypedef uint%SIZE%_t %BITMASK%_t;\nextern const jude_bitmask_map_t %BITMASK%_bitmask_map[];\n\n#ifdef __cplusplus\n}\n\n#include <jude/jude.h>\n\nnamespace jude \n{\n\nclass %BITMASK% : public BitMask\n{\npublic:\n enum Value\n {\n%VALUES%,\n __INVALID_VALUE\n };\n\n %BITMASK%(Object& parent, jude_size_t fieldIndex, jude_size_t arrayIndex = 0)\n : BitMask(%BITMASK%_bitmask_map[0], parent, fieldIndex, arrayIndex)\n {}\n\n static const char* GetString(Value value);\n static const char* GetDescription(Value value);\n static const Value* FindValue(const char* name);\n static Value GetValue(const char* name);\n\n // Backwards compatibility\n static auto AsText(Value value) { return GetString(value); };\n\n%BIT_ACCESSORS%\n};\n\n} /* namespace jude */\n\n#endif\n\n' bitmask_accessors_template = '\n bool Is_%BIT%() const { return BitMask::IsBitSet(%BIT%); }\n void Set_%BIT%() { return BitMask::SetBit(%BIT%); }\n void Clear_%BIT%() { return BitMask::ClearBit(%BIT%); }\n' bitmask_source_template = '\n#include "%BITMASK%.h"\n\nextern "C" const jude_bitmask_map_t %BITMASK%_bitmask_map[] = \n{\n%VALUES%,\n JUDE_ENUM_MAP_END\n};\n\nnamespace jude\n{\n const jude_size_t %BITMASK%_COUNT = (jude_size_t)(sizeof(%BITMASK%_bitmask_map) / sizeof(%BITMASK%_bitmask_map[0]));\n\n const char* %BITMASK%::GetString(%BITMASK%::Value value)\n {\n return jude_enum_find_string(%BITMASK%_bitmask_map, value);\n }\n\n const char* %BITMASK%::GetDescription(%BITMASK%::Value value)\n {\n return jude_enum_find_description(%BITMASK%_bitmask_map, value);\n }\n\n const %BITMASK%::Value* %BITMASK%::FindValue(const char* name)\n {\n return (const %BITMASK%::Value*)jude_enum_find_value(%BITMASK%_bitmask_map, name);\n }\n\n %BITMASK%::Value %BITMASK%::GetValue(const char* name)\n {\n return (%BITMASK%::Value)jude_enum_get_value(%BITMASK%_bitmask_map, name);\n }\n}\n' def __init__(self, importPrefix, name, bitmask_def): print('Parsing bitmask: ', name, '...') self.name = name self.importPrefix = importPrefix self.bits = [] self.size = 8 for (label, data) in bitmask_def.items(): bit = 0 description = '' if isinstance(data, dict): if not data.__contains__('bit'): raise syntax_error("bitmask bit defined as dictionary but no 'bit' given: " + data) bit = int(data['bit']) if data.__contains__('description'): description = data['description'] elif isinstance(data, int): bit = data else: raise syntax_error('bitmask element not defined as dictionary or int: ' + bit) if bit < 0 or bit > 63: raise syntax_error('bitmask bit value %d is not allowed, should be in range [0,63]' % bit) if bit > 7 and self.size < 16: self.size = 16 elif bit > 15 and self.size < 32: self.size = 32 if bit > 31: self.size = 64 self.bits.append((label, bit, description)) self.bits = sorted(self.bits, key=lambda x: x[1]) def create_object(self): c_values = ',\n'.join([' %s = %d' % (x, y) for (x, y, z) in self.bits]) bit_accessors = ''.join([self.bitmask_accessors_template.replace('%BITMASK%', str(self.name)).replace('%BIT%', str(x)) for (x, y, z) in self.bits]) return self.bitmask_object_template.replace('%VALUES%', str(c_values)).replace('%SIZE%', str(self.size)).replace('%BITMASK%', str(self.name)).replace('%BIT_ACCESSORS%', str(bit_accessors)).replace('%FILE%', str(self.name).upper()) def create_source(self): values = ',\n'.join([' JUDE_ENUM_MAP_ENTRY(%s, %s, "%s")' % (x, y, z) for (x, y, z) in self.bits]) return self.bitmask_source_template.replace('%VALUES%', str(values)).replace('%BITMASK%', str(self.name)).replace('%FILE%', str(self.name).upper())