content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
class FightInfo: def __init__(self, fighter1_ref, fighter2_ref, event_ref, outcome, method, round, time): self.fighter1_ref = fighter1_ref self.fighter2_ref = fighter2_ref self.event_ref = event_ref self.outcome = outcome self.method = method self.round = round self.time = time def __repr__(self): return "FightInfo({},{},{},{},{},{},{})".format( self.fighter1_ref, self.fighter2_ref, self.event_ref, self.outcome, self.method, self.round, self.time )
class Fightinfo: def __init__(self, fighter1_ref, fighter2_ref, event_ref, outcome, method, round, time): self.fighter1_ref = fighter1_ref self.fighter2_ref = fighter2_ref self.event_ref = event_ref self.outcome = outcome self.method = method self.round = round self.time = time def __repr__(self): return 'FightInfo({},{},{},{},{},{},{})'.format(self.fighter1_ref, self.fighter2_ref, self.event_ref, self.outcome, self.method, self.round, self.time)
# Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def reverseBetween(self, head: Optional[ListNode], left: int, right: int) -> Optional[ListNode]: if left == 1: return self.reverseN(head, right) head.next = self.reverseBetween(head.next, left - 1, right - 1) return head succ = None def reverseN(self, head, n): if n == 1: self.succ = head.next return head last = self.reverseN(head.next, n-1) head.next.next = head head.next = self.succ return last
class Solution: def reverse_between(self, head: Optional[ListNode], left: int, right: int) -> Optional[ListNode]: if left == 1: return self.reverseN(head, right) head.next = self.reverseBetween(head.next, left - 1, right - 1) return head succ = None def reverse_n(self, head, n): if n == 1: self.succ = head.next return head last = self.reverseN(head.next, n - 1) head.next.next = head head.next = self.succ return last
# output from elife00270.xml expected = [ { "type": "author", "corresp": "yes", "id": "author-1032", "role": "Editor-in-Chief", "email": ["editorial@elifesciences.org"], "surname": "Schekman", "given-names": "Randy", "references": {"competing-interest": ["conf1"]}, "person_id": 1032, "author": "Randy Schekman", "notes-fn": [ "Competing interests:RS receives funding from the Howard Hughes Medical Institute" ], "article_doi": "10.7554/eLife.00270", "position": 1, }, { "type": "author", "id": "author-1002", "role": "Managing Executive Editor", "surname": "Patterson", "given-names": "Mark", "person_id": 1002, "author": "Mark Patterson", "article_doi": "10.7554/eLife.00270", "position": 2, }, { "type": "author", "id": "author-1031", "role": "Deputy Editor", "surname": "Watt", "given-names": "Fiona", "references": {"competing-interest": ["conf2"]}, "person_id": 1031, "author": "Fiona Watt", "notes-fn": ["FW receives funding from the Wellcome Trust"], "article_doi": "10.7554/eLife.00270", "position": 3, }, { "type": "author", "id": "author-1030", "role": "Deputy Editor", "surname": "Weigel", "given-names": "Detlef", "references": {"competing-interest": ["conf3"]}, "person_id": 1030, "author": "Detlef Weigel", "notes-fn": ["DW is employed by the Max Planck Society"], "article_doi": "10.7554/eLife.00270", "position": 4, }, ]
expected = [{'type': 'author', 'corresp': 'yes', 'id': 'author-1032', 'role': 'Editor-in-Chief', 'email': ['editorial@elifesciences.org'], 'surname': 'Schekman', 'given-names': 'Randy', 'references': {'competing-interest': ['conf1']}, 'person_id': 1032, 'author': 'Randy Schekman', 'notes-fn': ['Competing interests:RS receives funding from the Howard Hughes Medical Institute'], 'article_doi': '10.7554/eLife.00270', 'position': 1}, {'type': 'author', 'id': 'author-1002', 'role': 'Managing Executive Editor', 'surname': 'Patterson', 'given-names': 'Mark', 'person_id': 1002, 'author': 'Mark Patterson', 'article_doi': '10.7554/eLife.00270', 'position': 2}, {'type': 'author', 'id': 'author-1031', 'role': 'Deputy Editor', 'surname': 'Watt', 'given-names': 'Fiona', 'references': {'competing-interest': ['conf2']}, 'person_id': 1031, 'author': 'Fiona Watt', 'notes-fn': ['FW receives funding from the Wellcome Trust'], 'article_doi': '10.7554/eLife.00270', 'position': 3}, {'type': 'author', 'id': 'author-1030', 'role': 'Deputy Editor', 'surname': 'Weigel', 'given-names': 'Detlef', 'references': {'competing-interest': ['conf3']}, 'person_id': 1030, 'author': 'Detlef Weigel', 'notes-fn': ['DW is employed by the Max Planck Society'], 'article_doi': '10.7554/eLife.00270', 'position': 4}]
win = 0 p, j1, j2, r, a = map(int, input().split()) sum = j1 + j2 if (sum % 2 == 0 and p == 1) or (sum %2 != 0 and p == 0): win = 1 else: win = 2 if (r == 1 and a == 0) or (r == 0 and a ==1): win = 1 if r == 1 and a == 1: win = 2 print('Jogador %d ganha!' %win)
win = 0 (p, j1, j2, r, a) = map(int, input().split()) sum = j1 + j2 if sum % 2 == 0 and p == 1 or (sum % 2 != 0 and p == 0): win = 1 else: win = 2 if r == 1 and a == 0 or (r == 0 and a == 1): win = 1 if r == 1 and a == 1: win = 2 print('Jogador %d ganha!' % win)
T = int(input()) for _ in range(T): N = int(input()) print(int(N**0.5))
t = int(input()) for _ in range(T): n = int(input()) print(int(N ** 0.5))
#!/usr/bin/env python3 #Fonction qui va gerer les limites #ajout ligne pour push lim = { "x_min":0.0, "x_max":200.0, "y_min":0.0, "y_max":200.0, "z_min":0.0, "z_max":200.0, "q1_min":-45.0, "q1_max":45.0, "q2_min":30.0, "q2_max":130.0, "q3_min":-15.0, "q3_max":60.0 } def verify_limits(array, mode): is_good_angle = True is_good_position = True if mode: #Position x,y,z dans array (Inverse kinematic) #array[0] = x ; array[1] = y ; array[2] = z if array[0] <= lim['x_min'] or array[0] >= lim['x_max'] or array[1] <= lim['y_min'] or array[1] >= lim['y_max'] or array[2] <= lim['z_min'] or array[2] >= lim['z_max']: is_good_position = False return is_good_position else: return is_good_position else: #Verification des valeurs d'angle dans l'array #array[0] = q1 ; array[1] = q2 ; array[2] = q3 if array[0] <= lim['q1_min'] or array[0] >= lim['q1_max'] or array[1] <= lim['q2_min'] or array[1] >= lim['q2_max'] or array[2] <= lim['q3_min'] or array[2] >= lim['q3_max']: is_good_angle = False return is_good_angle else: return is_good_angle
lim = {'x_min': 0.0, 'x_max': 200.0, 'y_min': 0.0, 'y_max': 200.0, 'z_min': 0.0, 'z_max': 200.0, 'q1_min': -45.0, 'q1_max': 45.0, 'q2_min': 30.0, 'q2_max': 130.0, 'q3_min': -15.0, 'q3_max': 60.0} def verify_limits(array, mode): is_good_angle = True is_good_position = True if mode: if array[0] <= lim['x_min'] or array[0] >= lim['x_max'] or array[1] <= lim['y_min'] or (array[1] >= lim['y_max']) or (array[2] <= lim['z_min']) or (array[2] >= lim['z_max']): is_good_position = False return is_good_position else: return is_good_position elif array[0] <= lim['q1_min'] or array[0] >= lim['q1_max'] or array[1] <= lim['q2_min'] or (array[1] >= lim['q2_max']) or (array[2] <= lim['q3_min']) or (array[2] >= lim['q3_max']): is_good_angle = False return is_good_angle else: return is_good_angle
a, b = input().split() a = int(a) b = int(b) print("Sun Mon Tue Wed Thr Fri Sat") print(" " * (a*3 -1 + a-1),end="") count = a c = 1 for p in range(b): if count == 8: print("\n",end="") if c <= 9: print(" ",end="") else: print(" ",end="") count = 1 print(c, end="") if c <= 8 and count!=7 and c!=b: print(" " * 3,end="") elif count !=7 and c!=b: print(" " * 2,end="") c += 1 count += 1 print("\n",end="")
(a, b) = input().split() a = int(a) b = int(b) print('Sun Mon Tue Wed Thr Fri Sat') print(' ' * (a * 3 - 1 + a - 1), end='') count = a c = 1 for p in range(b): if count == 8: print('\n', end='') if c <= 9: print(' ', end='') else: print(' ', end='') count = 1 print(c, end='') if c <= 8 and count != 7 and (c != b): print(' ' * 3, end='') elif count != 7 and c != b: print(' ' * 2, end='') c += 1 count += 1 print('\n', end='')
class RootLevel: def __init__(self, obj): self.input_id = obj.get("input_id", None) self.organization = obj.get("organization", None) self.address1 = obj.get("address1", None) self.address2 = obj.get("address2", None) self.address3 = obj.get("address3", None) self.address4 = obj.get("address4", None) self.address5 = obj.get("address5", None) self.address6 = obj.get("address6", None) self.address7 = obj.get("address7", None) self.address8 = obj.get("address8", None) self.address9 = obj.get("address9", None) self.address10 = obj.get("address10", None) self.address11 = obj.get("address11", None) self.address12 = obj.get("address12", None)
class Rootlevel: def __init__(self, obj): self.input_id = obj.get('input_id', None) self.organization = obj.get('organization', None) self.address1 = obj.get('address1', None) self.address2 = obj.get('address2', None) self.address3 = obj.get('address3', None) self.address4 = obj.get('address4', None) self.address5 = obj.get('address5', None) self.address6 = obj.get('address6', None) self.address7 = obj.get('address7', None) self.address8 = obj.get('address8', None) self.address9 = obj.get('address9', None) self.address10 = obj.get('address10', None) self.address11 = obj.get('address11', None) self.address12 = obj.get('address12', None)
def radix_sort(to_be_sorted): maximum_value = max(to_be_sorted) max_exponent = len(str(maximum_value)) # Create copy of to_be_sorted being_sorted = to_be_sorted[:] # Loop over all exponents for exponent in range(max_exponent): index = - (exponent + 1) digits = [[] for digit in range(10)] # Bucket numbers for number in being_sorted: number_as_a_string = str(number) try: digit = number_as_a_string[index] except IndexError: digit = 0 digit = int(digit) digits[digit].append(number) # Reassign being_sorted being_sorted = [] for numeral in digits: being_sorted.extend(numeral) return being_sorted # TEST CASE unsorted_list = [830, 921, 163, 373, 961, 559, 89, 199, 535, 959, 40, 641, 355, 689, 621, 183, 182, 524, 1] print(f"PRE-SORT: {unsorted_list}") print(f"POST-SORT: {radix_sort(unsorted_list)}")
def radix_sort(to_be_sorted): maximum_value = max(to_be_sorted) max_exponent = len(str(maximum_value)) being_sorted = to_be_sorted[:] for exponent in range(max_exponent): index = -(exponent + 1) digits = [[] for digit in range(10)] for number in being_sorted: number_as_a_string = str(number) try: digit = number_as_a_string[index] except IndexError: digit = 0 digit = int(digit) digits[digit].append(number) being_sorted = [] for numeral in digits: being_sorted.extend(numeral) return being_sorted unsorted_list = [830, 921, 163, 373, 961, 559, 89, 199, 535, 959, 40, 641, 355, 689, 621, 183, 182, 524, 1] print(f'PRE-SORT: {unsorted_list}') print(f'POST-SORT: {radix_sort(unsorted_list)}')
n = int(input()) num = [int(input()) for i in range(n)] res = 0 aux = sum([v*v for v in num]) aux2 = 0 for i in range(n-1, 0, -1): aux -= num[i]*num[i] aux2 += num[i] res = max(res, aux*aux2) print(res)
n = int(input()) num = [int(input()) for i in range(n)] res = 0 aux = sum([v * v for v in num]) aux2 = 0 for i in range(n - 1, 0, -1): aux -= num[i] * num[i] aux2 += num[i] res = max(res, aux * aux2) print(res)
# advent of code # response to the challenge by geir owe # day8 - challenge: https://adventofcode.com/2020/day/8 #start function def get_all_instructions(boot_file): allInstruct = [] #move all instructions in the boot file into a list for instruction in boot_file: instruction = instruction.strip() allInstruct.append(instruction) return allInstruct #end get_all_instructions function #start function def check_if_about_to_loop(newPos, visitedPos, aboutToLoop): #check if the position for he instruction has been visited before #if so, we are about to loop theSet = set(visitedPos) if newPos in theSet: print() print('------ about to loop -------') aboutToLoop = True else: visitedPos.append(newPos) #store what position we are at; and validate aginst it later return visitedPos, aboutToLoop #end check_if_about_to_loop function #start function def jump_around(theInstruction, currentPos, theAccumulator): #split at ' ' - the right part cotnains the jump " # the left part contains the instruction splitInstr = theInstruction.split(' ') theAccContent = splitInstr[0].strip() theJump = int(splitInstr[1].strip()) #nop stands for No OPeration - it does nothing. The instruction immediately below it # is executed next if (theAccContent == 'nop'): theJump = 1 #check if the accumulator value is to be increased #if so, increase the accumulator and move to next line if theAccContent == 'acc': theAccumulator = theAccumulator + theJump theJump = 1 #move on to next instruction #calculate new position due to the jump newPos = currentPos + theJump if newPos < 0: # if this happen it is a bug in the puzle input newPos = 0 return newPos, theAccumulator #end jump_around function #read the test puzzle input #boot_file = open('day8_test_puzzle_input.txt', 'r') #read the puzzle input boot_file = open('day8_puzzle_input2.txt', 'r') #the challenge: # The moment the program tries to run any instruction a second time, you know it will never terminate. # Run your copy of the boot code. Immediately before any instruction # is executed a second time, what value is in the accumulator? aboutToLoop = False theAccumulator = 0 calcPos = [] #get all instructions from boot file allInstructions = get_all_instructions(boot_file) newPos=0 #execute instructions until loop is detected while aboutToLoop != True: #check if we are about to loop calcPos, aboutToLoop = check_if_about_to_loop(newPos, calcPos, aboutToLoop) if aboutToLoop: print('... what value is in the accumulator? ', theAccumulator) print() print('... where we have been: ') print(calcPos) print() else: #jump to position as specified in instruction and collect accumulator value when relevant currentPos = newPos newPos, theAccumulator = jump_around(allInstructions[newPos], currentPos, theAccumulator)
def get_all_instructions(boot_file): all_instruct = [] for instruction in boot_file: instruction = instruction.strip() allInstruct.append(instruction) return allInstruct def check_if_about_to_loop(newPos, visitedPos, aboutToLoop): the_set = set(visitedPos) if newPos in theSet: print() print('------ about to loop -------') about_to_loop = True else: visitedPos.append(newPos) return (visitedPos, aboutToLoop) def jump_around(theInstruction, currentPos, theAccumulator): split_instr = theInstruction.split(' ') the_acc_content = splitInstr[0].strip() the_jump = int(splitInstr[1].strip()) if theAccContent == 'nop': the_jump = 1 if theAccContent == 'acc': the_accumulator = theAccumulator + theJump the_jump = 1 new_pos = currentPos + theJump if newPos < 0: new_pos = 0 return (newPos, theAccumulator) boot_file = open('day8_puzzle_input2.txt', 'r') about_to_loop = False the_accumulator = 0 calc_pos = [] all_instructions = get_all_instructions(boot_file) new_pos = 0 while aboutToLoop != True: (calc_pos, about_to_loop) = check_if_about_to_loop(newPos, calcPos, aboutToLoop) if aboutToLoop: print('... what value is in the accumulator? ', theAccumulator) print() print('... where we have been: ') print(calcPos) print() else: current_pos = newPos (new_pos, the_accumulator) = jump_around(allInstructions[newPos], currentPos, theAccumulator)
# 463. Island Perimeter Easy # You are given a map in form of a two-dimensional integer grid where 1 represents land and 0 represents water. # # Grid cells are connected horizontally/vertically (not diagonally). The grid is completely surrounded by water, and there is exactly one island (i.e., one or more connected land cells). # # The island doesn't have "lakes" (water inside that isn't connected to the water around the island). One cell is a square with side length 1. The grid is rectangular, width and height don't exceed 100. Determine the perimeter of the island. # # # # Example: # # Input: # [[0,1,0,0], # [1,1,1,0], # [0,1,0,0], # [1,1,0,0]] # # Output: 16 # # Explanation: The perimeter is the 16 yellow stripes in the image below: # https://leetcode.com/problems/island-perimeter/ def islandPerimeter(self, grid: List[List[int]]) -> int: ''' Runtime: 248 ms, faster than 53.89% of Python3 online submissions for Island Perimeter. Memory Usage: 13.6 MB, less than 22.38% of Python3 online submissions for Island Perimeter. ''' edge_count = 0 for j in range(0, len(grid)): for i in range(0, len(grid[0])): if grid[j][i] == 1: if i == 0: edge_count += 1 if i == len(grid[0]) - 1: edge_count += 1 if j == 0: edge_count += 1 if j == len(grid) - 1: edge_count += 1 if 0 <= i <= len(grid[0]) - 2: if grid[j][i + 1] == 0: edge_count += 1 if 1 <= i <= len(grid[0]) - 1: if grid[j][i - 1] == 0: edge_count += 1 if 0 <= j <= len(grid) - 2: if grid[j + 1][i] == 0: edge_count += 1 if 1 <= j <= len(grid) - 1: if grid[j - 1][i] == 0: edge_count += 1 return edge_count
def island_perimeter(self, grid: List[List[int]]) -> int: """ Runtime: 248 ms, faster than 53.89% of Python3 online submissions for Island Perimeter. Memory Usage: 13.6 MB, less than 22.38% of Python3 online submissions for Island Perimeter. """ edge_count = 0 for j in range(0, len(grid)): for i in range(0, len(grid[0])): if grid[j][i] == 1: if i == 0: edge_count += 1 if i == len(grid[0]) - 1: edge_count += 1 if j == 0: edge_count += 1 if j == len(grid) - 1: edge_count += 1 if 0 <= i <= len(grid[0]) - 2: if grid[j][i + 1] == 0: edge_count += 1 if 1 <= i <= len(grid[0]) - 1: if grid[j][i - 1] == 0: edge_count += 1 if 0 <= j <= len(grid) - 2: if grid[j + 1][i] == 0: edge_count += 1 if 1 <= j <= len(grid) - 1: if grid[j - 1][i] == 0: edge_count += 1 return edge_count
#!/usr/bin/env python3 weight = int(input()) height = int(input()) bmi = (weight / (height * height)) * 10000 if bmi < 18.5: print("underweight") elif bmi > 18.5 and bmi < 25: print("normal") elif bmi > 25 and bmi < 30: print("overweight") else: print("obese")
weight = int(input()) height = int(input()) bmi = weight / (height * height) * 10000 if bmi < 18.5: print('underweight') elif bmi > 18.5 and bmi < 25: print('normal') elif bmi > 25 and bmi < 30: print('overweight') else: print('obese')
class ValidationResult(object): def __init__(self, is_valid=False): self.is_valid = is_valid self.errors = [] self.warnings = []
class Validationresult(object): def __init__(self, is_valid=False): self.is_valid = is_valid self.errors = [] self.warnings = []
class User: def __init__(self, id, email=None): self.id = id self.email = email @property def is_active(self): return True @property def is_authenticated(self): return True @property def is_anonymous(self): return False def get_id(self): return self.id
class User: def __init__(self, id, email=None): self.id = id self.email = email @property def is_active(self): return True @property def is_authenticated(self): return True @property def is_anonymous(self): return False def get_id(self): return self.id
# pylint: disable=invalid-name, missing-docstring IYELIK_EKI = 1 YONELME_EKI = 2 BULUNMA_EKI = 3 AYRILMA_EKI = 4 def ekle_aykiri(ek_tipi, kelime, ayir): ayirma_eki = "'" if ayir else "" if ek_tipi is IYELIK_EKI: sonuc = kelime + ayirma_eki + "nin" elif ek_tipi is YONELME_EKI: sonuc = kelime + ayirma_eki + "ye" elif ek_tipi is BULUNMA_EKI: sonuc = kelime + ayirma_eki + "de" else: sonuc = kelime + ayirma_eki + "den" return sonuc
iyelik_eki = 1 yonelme_eki = 2 bulunma_eki = 3 ayrilma_eki = 4 def ekle_aykiri(ek_tipi, kelime, ayir): ayirma_eki = "'" if ayir else '' if ek_tipi is IYELIK_EKI: sonuc = kelime + ayirma_eki + 'nin' elif ek_tipi is YONELME_EKI: sonuc = kelime + ayirma_eki + 'ye' elif ek_tipi is BULUNMA_EKI: sonuc = kelime + ayirma_eki + 'de' else: sonuc = kelime + ayirma_eki + 'den' return sonuc
class Solution: def hitBricks(self, grid, hits): m, n, ret = len(grid), len(grid[0]), [0]*len(hits) # Connect unconnected bricks and def dfs(i, j): if not (0 <= i <m and 0 <= j <n) or grid[i][j] != 1: return 0 grid[i][j] = 2 return 1 + sum(dfs(x, y) for x, y in ((i - 1, j), (i + 1, j), (i, j - 1), (i, j + 1))) # Check whether (i, j) is connected to Not Falling Bricks def is_connected(i, j): return not i or any(0 <= x < m and 0 <= y < n and grid[x][y] == 2 for x, y in ((i - 1, j), (i + 1, j), (i, j - 1), (i, j + 1))) # Mark whether there is a brick at the each hit for i, j in hits: grid[i][j] -= 1 # Get grid after all hits for i in range(n): dfs(0, i) # Reversely add the block of each hits and get count of newly add bricks for k in reversed(range(len(hits))): i, j = hits[k] grid[i][j] += 1 if grid[i][j] and is_connected(i, j): ret[k] = dfs(i, j) - 1 return ret
class Solution: def hit_bricks(self, grid, hits): (m, n, ret) = (len(grid), len(grid[0]), [0] * len(hits)) def dfs(i, j): if not (0 <= i < m and 0 <= j < n) or grid[i][j] != 1: return 0 grid[i][j] = 2 return 1 + sum((dfs(x, y) for (x, y) in ((i - 1, j), (i + 1, j), (i, j - 1), (i, j + 1)))) def is_connected(i, j): return not i or any((0 <= x < m and 0 <= y < n and (grid[x][y] == 2) for (x, y) in ((i - 1, j), (i + 1, j), (i, j - 1), (i, j + 1)))) for (i, j) in hits: grid[i][j] -= 1 for i in range(n): dfs(0, i) for k in reversed(range(len(hits))): (i, j) = hits[k] grid[i][j] += 1 if grid[i][j] and is_connected(i, j): ret[k] = dfs(i, j) - 1 return ret
# List Comprehension # [new_item for item in list] # [new_item for item in list if condition] # Create new list with incrementing each value by 1 list1 = [1, 2, 3] new_list1 = [n + 1 for n in list1] print(new_list1) # Print letter of the name name = "Steve" letter_list = [n for n in name] print(letter_list) # Doubled every number from the range doubled_list = [n * 2 for n in range(1, 5)] print(doubled_list) # Create a new list of odd number list2 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] new_list2 = [n for n in list2 if n % 2 != 0] print(new_list2) # Squared list numbers = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55] squared_list = [n * n for n in numbers] print(squared_list)
list1 = [1, 2, 3] new_list1 = [n + 1 for n in list1] print(new_list1) name = 'Steve' letter_list = [n for n in name] print(letter_list) doubled_list = [n * 2 for n in range(1, 5)] print(doubled_list) list2 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] new_list2 = [n for n in list2 if n % 2 != 0] print(new_list2) numbers = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55] squared_list = [n * n for n in numbers] print(squared_list)
# Definition for singly-linked list. class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: # def getIntersectionNode(self, A, B): # myset = set() # tmp = A # while tmp.next is not None: # myset.add(tmp) # tmp = tmp.next # tmp = B # while tmp.next is not None: # if tmp in myset: # return tmp # tmp = tmp.next # return None def getIntersectionNode(self, A, B): hasher = {} found_at = None if A is None or B is None: return None while A is not None: hasher[A] = True A = A.next while B is not None: if B in hasher: return B B = B.next return found_at a_5 = ListNode(5) a_8 = ListNode(8) a_26 = ListNode(20) b_4 = ListNode(4) b_11 = ListNode(11) b_15 = ListNode(15) c_23 = ListNode(23) c_25 = ListNode(25) c_27 = ListNode(27) a_5.next = a_8 a_8.next = a_26 a_26.next = c_23 b_4.next = b_11 b_11.next = b_15 b_15.next = c_23 c_23.next = c_25 c_25.next = c_27 c_27.next = None a_1 = ListNode(1) a_2 = ListNode(2) b_3 = ListNode(3) c_4 = ListNode(4) a_1.next = a_2 a_2.next = c_4 b_3.next = c_4 c_4.next = None sol = Solution() inter = sol.getIntersectionNode(a_1, b_3) print(inter.val)
class Listnode: def __init__(self, x): self.val = x self.next = None class Solution: def get_intersection_node(self, A, B): hasher = {} found_at = None if A is None or B is None: return None while A is not None: hasher[A] = True a = A.next while B is not None: if B in hasher: return B b = B.next return found_at a_5 = list_node(5) a_8 = list_node(8) a_26 = list_node(20) b_4 = list_node(4) b_11 = list_node(11) b_15 = list_node(15) c_23 = list_node(23) c_25 = list_node(25) c_27 = list_node(27) a_5.next = a_8 a_8.next = a_26 a_26.next = c_23 b_4.next = b_11 b_11.next = b_15 b_15.next = c_23 c_23.next = c_25 c_25.next = c_27 c_27.next = None a_1 = list_node(1) a_2 = list_node(2) b_3 = list_node(3) c_4 = list_node(4) a_1.next = a_2 a_2.next = c_4 b_3.next = c_4 c_4.next = None sol = solution() inter = sol.getIntersectionNode(a_1, b_3) print(inter.val)
# https://practice.geeksforgeeks.org/problems/count-possible-triangles-1587115620/1 #User function Template for python3 class Solution: #Function to count the number of possible triangles. def findNumberOfTriangles(self, arr, n): #code here # Sort array and initialize count as 0 n = len(arr) arr.sort() count = 0 # Fix the first element. We need to run till n-3 as # the other two elements are selected from arr[i + 1...n-1] for i in range(0, n-2): # Initialize index of the rightmost third element k = i + 2 # Fix the second element for j in range(i + 1, n): # Find the rightmost element which is smaller # than the sum of two fixed elements # The important thing to note here is, we use # the previous value of k. If value of arr[i] + # arr[j-1] was greater than arr[k], then arr[i] + # arr[j] must be greater than k, because the array # is sorted. #Note that this loop will run just once for each i, so #its not O(n^3) loop. while (k < n and arr[i] + arr[j] > arr[k]): k += 1 # Total number of possible triangles that can be # formed with the two fixed elements is k - j - 1. # The two fixed elements are arr[i] and arr[j]. All # elements between arr[j + 1] to arr[k-1] can form a # triangle with arr[i] and arr[j]. One is subtracted # from k because k is incremented one extra in above # while loop. k will always be greater than j. If j # becomes equal to k, then above loop will increment k, # because arr[k] + arr[i] is always greater than arr[k] if(k>j): count += k - j - 1 return count #{ # Driver Code Starts #Initial Template for Python 3 if __name__ == '__main__': t = int (input ()) for _ in range (t): n = int(input()) arr = list(map(int, input().strip().split())) ob = Solution() print(ob.findNumberOfTriangles(arr,n)) # } Driver Code Ends
class Solution: def find_number_of_triangles(self, arr, n): n = len(arr) arr.sort() count = 0 for i in range(0, n - 2): k = i + 2 for j in range(i + 1, n): while k < n and arr[i] + arr[j] > arr[k]: k += 1 if k > j: count += k - j - 1 return count if __name__ == '__main__': t = int(input()) for _ in range(t): n = int(input()) arr = list(map(int, input().strip().split())) ob = solution() print(ob.findNumberOfTriangles(arr, n))
class Solution: def shiftingLetters(self, s: str, shifts: List[int]) -> str: ans = [] for i in reversed(range(len(shifts) - 1)): shifts[i] += shifts[i + 1] for c, shift in zip(s, shifts): ans.append(chr((ord(c) - ord('a') + shift) % 26 + ord('a'))) return ''.join(ans)
class Solution: def shifting_letters(self, s: str, shifts: List[int]) -> str: ans = [] for i in reversed(range(len(shifts) - 1)): shifts[i] += shifts[i + 1] for (c, shift) in zip(s, shifts): ans.append(chr((ord(c) - ord('a') + shift) % 26 + ord('a'))) return ''.join(ans)
#!/usr/bin/env python3 with open("facts.txt", "r") as dead_language1: latin_1 = dead_language1.read() print("Following was read from the file:", latin_1)
with open('facts.txt', 'r') as dead_language1: latin_1 = dead_language1.read() print('Following was read from the file:', latin_1)
################################################### # header_dialogs.py # This file contains declarations for dialogs # DO NOT EDIT THIS FILE! ################################################### speaker_pos = 0 ipt_token_pos = 1 sentence_conditions_pos = 2 text_pos = 3 opt_token_pos = 4 sentence_consequences_pos = 5 anyone = 0x00000fff repeat_for_factions = 0x00001000 repeat_for_parties = 0x00002000 repeat_for_troops = 0x00003000 repeat_for_100 = 0x00004000 repeat_for_1000 = 0x00005000 plyr = 0x00010000 party_tpl = 0x00020000 auto_proceed = 0x00040000 multi_line = 0x00080000 suf_other_bits = 20 def other(other_troop_id): return other_troop_id << suf_other_bits
speaker_pos = 0 ipt_token_pos = 1 sentence_conditions_pos = 2 text_pos = 3 opt_token_pos = 4 sentence_consequences_pos = 5 anyone = 4095 repeat_for_factions = 4096 repeat_for_parties = 8192 repeat_for_troops = 12288 repeat_for_100 = 16384 repeat_for_1000 = 20480 plyr = 65536 party_tpl = 131072 auto_proceed = 262144 multi_line = 524288 suf_other_bits = 20 def other(other_troop_id): return other_troop_id << suf_other_bits
n = int(input()) l = [] for _ in range(n): e = list(map(int, input().split())) l.append(e) c = 1 l = sorted(l) for i in range(n-1): if l[i][0] != l[i+1][0]: c = c+1 print(c)
n = int(input()) l = [] for _ in range(n): e = list(map(int, input().split())) l.append(e) c = 1 l = sorted(l) for i in range(n - 1): if l[i][0] != l[i + 1][0]: c = c + 1 print(c)
# # PySNMP MIB module Juniper-ISIS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Juniper-ISIS-MIB # Produced by pysmi-0.3.4 at Wed May 1 14:03: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, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueRangeConstraint, ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsIntersection", "ConstraintsUnion", "SingleValueConstraint", "ValueSizeConstraint") InterfaceIndexOrZero, = mibBuilder.importSymbols("IF-MIB", "InterfaceIndexOrZero") juniMibs, = mibBuilder.importSymbols("Juniper-MIBs", "juniMibs") NotificationGroup, ModuleCompliance, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup") TimeTicks, ObjectIdentity, NotificationType, Counter64, Unsigned32, Integer32, Gauge32, iso, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, MibIdentifier, ModuleIdentity, Counter32, IpAddress = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "ObjectIdentity", "NotificationType", "Counter64", "Unsigned32", "Integer32", "Gauge32", "iso", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "MibIdentifier", "ModuleIdentity", "Counter32", "IpAddress") TextualConvention, RowStatus, DisplayString, TruthValue = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "RowStatus", "DisplayString", "TruthValue") juniIsisMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38)) juniIsisMIB.setRevisions(('2006-12-13 13:30', '2006-03-01 14:30', '2006-03-01 14:30', '2005-12-26 14:30', '2005-10-21 08:10', '2005-03-29 14:30', '2005-01-17 08:10', '2005-01-06 05:04', '2004-11-02 05:04', '2004-10-18 14:14', '2002-09-16 21:44', '2001-12-10 21:29', '2001-12-07 15:22', '2001-04-17 21:26', '2000-02-22 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: juniIsisMIB.setRevisionsDescriptions(('Modifiled width of juniIsisMplsTeTunnelName from 32 to 40', 'Added juniIsisSysReferenceBandwidth and juniIsisSysHighReferenceBandwidth to juniIsisSysEntry', 'Added juniIsisSysMplsTeSpfUseAnyBestPath to juniIsisSysEntry. Added juniIsisMplsTeTunnelTable to juniIsisSystemGroup', 'Default value for juniIsisSysLSPIgnoreErrors is changed from false to true. Default value for juniIsisCircMeshGroup =1 is removed', 'L2 Buffer Size is added and is made obsolete.', 'Updated the SystemID TEXTUAL-CONVENTION to be inline with standard - SystemID should now be exactly 6 bytes. - SystemID description modified. All zeros are invalid.', 'Updated the upper bound for Max Split Paths and removed the L2 Buffer Size', 'Modified the default value for the juniIsisSysSetOverloadBitStartupDuration object. This object has a meaning only if the ISIS overload bit is set.', 'Updated the upper bound for Authentication Key Id in Area Authentication, Domain Authentication, L1 Circuit and L2 Circuit Tables.', 'Changed the lower bound value & default value of juniIsisSysSetOverloadBitStartupDuration from 0 to 5.', 'Replaced Unisphere names with Juniper names.', 'Added MPLS support.', 'Added support for simple password protection.', 'Add circuit state object.', 'Initial version of this MIB module, based on draft-ietf-isis-wg-mib.',)) if mibBuilder.loadTexts: juniIsisMIB.setLastUpdated('200603131430Z') if mibBuilder.loadTexts: juniIsisMIB.setOrganization('Juniper Networks, Inc.') if mibBuilder.loadTexts: juniIsisMIB.setContactInfo(' Juniper Networks, Inc. Postal: 10 Technology Park Drive Westford, MA 01886-3146 USA Tel: +1 978 589 5800 Email: mib@Juniper.net') if mibBuilder.loadTexts: juniIsisMIB.setDescription('The intermediate system to intermediate system (IS-IS) routing protocol MIB for Juniper Networks E-series products. This MIB provides objects for management of the IS-IS Routing protocol, as described in ISO 10589, when it is used to construct routing tables for IP networks, as described in RFC 1195.') class OSINSAddress(TextualConvention, OctetString): description = 'OSI Network Service Address, e.g. NSAP, Network Entity Title' status = 'current' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 20) class SystemID(TextualConvention, OctetString): description = 'A system ID of exactly six bytes. Must not be all zeros.' status = 'current' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(6, 6) fixedLength = 6 class OperState(TextualConvention, Integer32): description = 'Type used in enabling and disabling a row.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("off", 1), ("on", 2)) class AuthTime(TextualConvention, Integer32): description = 'Then number of seconds since Jan. 1 1970.' status = 'current' class LSPBuffSize(TextualConvention, Integer32): description = 'Integer sub range for LSP size.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(512, 9180) class LevelState(TextualConvention, Integer32): description = 'States of the ISIS protocol.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3)) namedValues = NamedValues(("off", 1), ("on", 2), ("waiting", 3)) class SupportedProtocol(TextualConvention, Integer32): description = 'Types of network protocol supported by Integrated ISIS. The values for ISO8473 and IP are those registered for these protocols in ISO TR9577.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(129, 204, 205)) namedValues = NamedValues(("iso8473", 129), ("ip", 204), ("ipV6", 205)) class JuniDefaultMetric(TextualConvention, Integer32): description = 'Integer sub-range for default metric for single hop. The value is truncated to 63 when the juniIsisSysL1MetricStyle or juniIsisSysL2MetricStyle is set to juniIsisMetricStyleNarrow ' status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 16777215) class OtherMetric(TextualConvention, Integer32): description = 'Integer sub-range for metrics other than the default metric for single hop.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 63) class CircuitID(TextualConvention, OctetString): description = 'ID for a circuit.' status = 'current' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(2, 9) class ISPriority(TextualConvention, Integer32): description = 'Integer sub-range for ISIS priority.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(1, 127) juniIsisObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1)) juniIsisTrapGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 2)) juniIsisConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 3)) juniIsisSystemGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1)) juniIsisCircuitGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2)) juniIsisSysTable = MibTable((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1), ) if mibBuilder.loadTexts: juniIsisSysTable.setStatus('current') if mibBuilder.loadTexts: juniIsisSysTable.setDescription('The set of instances of the Integrated IS-IS protocol existing on the system.') juniIsisSysEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1), ).setIndexNames((0, "Juniper-ISIS-MIB", "juniIsisSysInstance")) if mibBuilder.loadTexts: juniIsisSysEntry.setReference('ISIS.poi cLNSISISBasic-P (1)') if mibBuilder.loadTexts: juniIsisSysEntry.setStatus('current') if mibBuilder.loadTexts: juniIsisSysEntry.setDescription('Each row defines information specific to a single instance of the protocol existing on the system.') juniIsisSysInstance = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))) if mibBuilder.loadTexts: juniIsisSysInstance.setStatus('current') if mibBuilder.loadTexts: juniIsisSysInstance.setDescription('The unique identifier of the Integrated IS-IS instance to which this row corresponds. This object follows the index behaviour.') juniIsisSysVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 24))).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisSysVersion.setReference('ISIS.aoi version (1)') if mibBuilder.loadTexts: juniIsisSysVersion.setStatus('current') if mibBuilder.loadTexts: juniIsisSysVersion.setDescription('The version number of the IS-IS protocol to which this instance conforms. This value must be set by the implementation when the row is valid.') juniIsisSysType = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("level1IS", 1), ("level1l2IS", 2), ("level2Only", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysType.setReference('ISIS.aoi iSType (2)') if mibBuilder.loadTexts: juniIsisSysType.setStatus('current') if mibBuilder.loadTexts: juniIsisSysType.setDescription('The type of this instance of the Integrated IS-IS protocol. This object follows the replaceOnlyWhileDisabled behaviour.') juniIsisSysID = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 4), SystemID()).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysID.setReference('ISIS.aoi systemId (119)') if mibBuilder.loadTexts: juniIsisSysID.setStatus('current') if mibBuilder.loadTexts: juniIsisSysID.setDescription("The ID for this instance of the Integrated IS-IS protocol. This value is appended to each of the instance's area addresses to form the Network Entity Titles valid for this instance. The derivation of a value for this object is implementation-specific. Some implementations may assign values and not permit write MAX-ACCESS, others may require the value to be set manually.") juniIsisSysMaxPathSplits = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16)).clone(4)).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysMaxPathSplits.setReference('ISIS.aoi maximumPathSplits (3)') if mibBuilder.loadTexts: juniIsisSysMaxPathSplits.setStatus('current') if mibBuilder.loadTexts: juniIsisSysMaxPathSplits.setDescription('Maximum number of paths with equal routing metric value which it is permitted to split between. This object follows the replaceOnlyWhileDisabled behaviour.') juniIsisSysMaxLSPGenInt = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)).clone(900)).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysMaxLSPGenInt.setReference('ISIS.aoi maximumLSPGenerationInterval (6)') if mibBuilder.loadTexts: juniIsisSysMaxLSPGenInt.setStatus('current') if mibBuilder.loadTexts: juniIsisSysMaxLSPGenInt.setDescription('Maximum interval, in seconds, between generated LSPs by this instance. This object follows the resettingTimer behaviour.') juniIsisSysOrigLSPBuffSize = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 7), LSPBuffSize().clone(1497)).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysOrigLSPBuffSize.setReference('ISIS.aoi originatingLSPBufferSize (9)') if mibBuilder.loadTexts: juniIsisSysOrigLSPBuffSize.setStatus('current') if mibBuilder.loadTexts: juniIsisSysOrigLSPBuffSize.setDescription('The maximum size of LSPs and SNPs originated by this instance. This object follows the replaceOnlyWhileDisabled behaviour.') juniIsisSysMaxAreaAddresses = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 254)).clone(3)).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisSysMaxAreaAddresses.setReference('ISIS.aoi maximumAreaAddresses (4)') if mibBuilder.loadTexts: juniIsisSysMaxAreaAddresses.setStatus('current') if mibBuilder.loadTexts: juniIsisSysMaxAreaAddresses.setDescription('The maximum number of area addresses to be permitted for the area in which this instance exists. Note that all Intermediate Systems in the same area must have the same value configured for this attribute if correct operation is to be assumed. This object follows the replaceOnlyWhileDisabled behaviour.') juniIsisSysMinL1LSPGenInt = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 120)).clone(5)).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysMinL1LSPGenInt.setReference('ISIS.aoi minimumLSPGenerationInterval (11)') if mibBuilder.loadTexts: juniIsisSysMinL1LSPGenInt.setStatus('current') if mibBuilder.loadTexts: juniIsisSysMinL1LSPGenInt.setDescription('Minimum interval, in seconds, between successive generation of L1 LSPs with the same LSPID by this instance. This object follows the resettingTimer behaviour.') juniIsisSysMinL2LSPGenInt = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 120)).clone(5)).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysMinL2LSPGenInt.setReference('ISIS.aoi minimumLSPGenerationInterval (11)') if mibBuilder.loadTexts: juniIsisSysMinL2LSPGenInt.setStatus('current') if mibBuilder.loadTexts: juniIsisSysMinL2LSPGenInt.setDescription('Minimum interval, in seconds, between successive generation of L2 LSPs with the same LSPID by this instance. This object follows the resettingTimer behaviour.') juniIsisSysPollESHelloRate = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)).clone(10)).setUnits('seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisSysPollESHelloRate.setReference('ISIS.aoi pollESHelloRate (13)') if mibBuilder.loadTexts: juniIsisSysPollESHelloRate.setStatus('current') if mibBuilder.loadTexts: juniIsisSysPollESHelloRate.setDescription('The value, in seconds, to be used for the suggested ES configuration timer in ISH PDUs when soliciting the ES configuration.') juniIsisSysWaitTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)).clone(60)).setUnits('seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisSysWaitTime.setReference('ISIS.aoi waitingTime (15)') if mibBuilder.loadTexts: juniIsisSysWaitTime.setStatus('current') if mibBuilder.loadTexts: juniIsisSysWaitTime.setDescription('Number of seconds to delay in waiting state before entering on state. This object follows the resettingTimer behaviour.') juniIsisSysOperState = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 13), OperState().clone('off')).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysOperState.setStatus('current') if mibBuilder.loadTexts: juniIsisSysOperState.setDescription('The operational state of this instance of the Integrated IS-IS protocol. Setting this object to the value on when its current value is off enables operation of this instance of the Integrated IS-IS protocol.') juniIsisSysL1State = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 14), LevelState()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisSysL1State.setReference('ISIS.aoi l1State (17)') if mibBuilder.loadTexts: juniIsisSysL1State.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL1State.setDescription('The state of the Level 1 database.') juniIsisSysCorrLSPs = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisSysCorrLSPs.setReference('ISIS.aoi corruptedLSPsDetected (19)') if mibBuilder.loadTexts: juniIsisSysCorrLSPs.setStatus('current') if mibBuilder.loadTexts: juniIsisSysCorrLSPs.setDescription('Number of corrupted LSPs detected.') juniIsisSysLSPL1DbaseOloads = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisSysLSPL1DbaseOloads.setReference('ISIS.aoi lSPL1DatabaseOverloads (20)') if mibBuilder.loadTexts: juniIsisSysLSPL1DbaseOloads.setStatus('current') if mibBuilder.loadTexts: juniIsisSysLSPL1DbaseOloads.setDescription('Number of times the LSP L1 database has become overloaded.') juniIsisSysManAddrDropFromAreas = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisSysManAddrDropFromAreas.setReference('ISIS.aoi manualAddressesDroppedFromArea (21)') if mibBuilder.loadTexts: juniIsisSysManAddrDropFromAreas.setStatus('current') if mibBuilder.loadTexts: juniIsisSysManAddrDropFromAreas.setDescription('Number of times a manual address has been dropped from the area.') juniIsisSysAttmptToExMaxSeqNums = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 18), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisSysAttmptToExMaxSeqNums.setReference('ISIS.aoi attemptsToExceedmaximumSequenceNumber (22)') if mibBuilder.loadTexts: juniIsisSysAttmptToExMaxSeqNums.setStatus('current') if mibBuilder.loadTexts: juniIsisSysAttmptToExMaxSeqNums.setDescription('Number of times the IS has attempted to exceed the maximum sequence number.') juniIsisSysSeqNumSkips = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 19), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisSysSeqNumSkips.setReference('ISIS.aoi sequenceNumberSkips (23)') if mibBuilder.loadTexts: juniIsisSysSeqNumSkips.setStatus('current') if mibBuilder.loadTexts: juniIsisSysSeqNumSkips.setDescription('Number of times a sequence number skip has occurred.') juniIsisSysOwnLSPPurges = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 20), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisSysOwnLSPPurges.setReference('ISIS.aoi ownLSPPurges (24)') if mibBuilder.loadTexts: juniIsisSysOwnLSPPurges.setStatus('current') if mibBuilder.loadTexts: juniIsisSysOwnLSPPurges.setDescription("Number of times a zero-aged copy of the system's own LSP is received from some other node.") juniIsisSysIDFieldLenMismatches = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 21), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisSysIDFieldLenMismatches.setReference('ISIS.aoi iDFieldLengthMismatches (25)') if mibBuilder.loadTexts: juniIsisSysIDFieldLenMismatches.setStatus('current') if mibBuilder.loadTexts: juniIsisSysIDFieldLenMismatches.setDescription('Number of times a PDU is received with a different value for ID field length to that of the receiving system.') juniIsisSysMaxAreaAddrMismatches = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 22), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisSysMaxAreaAddrMismatches.setReference('ISIS.aoi MaximumAreaAddressesMismatches (118)') if mibBuilder.loadTexts: juniIsisSysMaxAreaAddrMismatches.setStatus('current') if mibBuilder.loadTexts: juniIsisSysMaxAreaAddrMismatches.setDescription('Number of times a PDU is received with a different value for MaximumAreaAddresses from that of the receiving system.') juniIsisSysOrigL2LSPBuffSize = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 23), LSPBuffSize().clone(1497)).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysOrigL2LSPBuffSize.setReference('ISIS.aoi originatingL2LSPBufferSize (26)') if mibBuilder.loadTexts: juniIsisSysOrigL2LSPBuffSize.setStatus('obsolete') if mibBuilder.loadTexts: juniIsisSysOrigL2LSPBuffSize.setDescription('The maximum size of Level 2 LSPs and SNPs originated by this system. This object follows the replaceOnlyWhileDisabled behaviour.') juniIsisSysL2State = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 24), LevelState()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisSysL2State.setReference('ISIS.aoi l2State (28)') if mibBuilder.loadTexts: juniIsisSysL2State.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL2State.setDescription('The state of the Level 2 database.') juniIsisSysLSPL2DbaseOloads = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 25), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisSysLSPL2DbaseOloads.setReference('ISIS.aoi lSPL2DatabaseOverloads (32)') if mibBuilder.loadTexts: juniIsisSysLSPL2DbaseOloads.setStatus('current') if mibBuilder.loadTexts: juniIsisSysLSPL2DbaseOloads.setDescription('Number of times the Level 2 LSP database has become overloaded.') juniIsisSysAuthFails = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 26), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisSysAuthFails.setStatus('current') if mibBuilder.loadTexts: juniIsisSysAuthFails.setDescription('The number of authentication failures recognized by this instance of the protocol.') juniIsisSysLSPIgnoreErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 27), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysLSPIgnoreErrors.setStatus('current') if mibBuilder.loadTexts: juniIsisSysLSPIgnoreErrors.setDescription('If true, allow the router to ignore IS-IS link state packets (LSPs) that are received with internal checksum errors rather than purging the LSPs.') juniIsisSysMaxAreaCheck = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 28), TruthValue().clone('true')).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisSysMaxAreaCheck.setStatus('current') if mibBuilder.loadTexts: juniIsisSysMaxAreaCheck.setDescription('When on, enables checking of maximum area addresses per IS version of ISO10589.') juniIsisSysSetOverloadBit = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 29), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysSetOverloadBit.setStatus('current') if mibBuilder.loadTexts: juniIsisSysSetOverloadBit.setDescription('Isis overload bit') juniIsisSysSetOverloadBitStartupDuration = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 30), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(5, 86400), ))).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysSetOverloadBitStartupDuration.setStatus('current') if mibBuilder.loadTexts: juniIsisSysSetOverloadBitStartupDuration.setDescription('Specifies the length in time of seconds to set the overload bit from startup. This object must be set together with juniIsisSysSetOverloadBit, otherwise the agent will return zero. Zero value for this object implies that the overload bit is not set. Zero value does not have any meaning for this object.') juniIsisSysMaxLspLifetime = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 31), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)).clone(1200)).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysMaxLspLifetime.setStatus('current') if mibBuilder.loadTexts: juniIsisSysMaxLspLifetime.setDescription('Specifies the maximum time (in seconds) a LSP will remain in the box without being refreshed before being considered invalid.') juniIsisSysL1SpfInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 32), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 120)).clone(5)).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysL1SpfInterval.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL1SpfInterval.setDescription('Minimum interval, in seconds, between level 1 SPF calculations.') juniIsisSysL2SpfInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 33), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 120)).clone(5)).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysL2SpfInterval.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL2SpfInterval.setDescription('Minimum interval, in seconds, between level 2 SPF calculations.') juniIsisSysIshHoldTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 34), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)).clone(30)).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysIshHoldTime.setStatus('current') if mibBuilder.loadTexts: juniIsisSysIshHoldTime.setDescription('Specify a holdtime advertised in ESH/ISH PDUs.') juniIsisSysIshConfigTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 35), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)).clone(10)).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysIshConfigTimer.setStatus('current') if mibBuilder.loadTexts: juniIsisSysIshConfigTimer.setDescription('Specify the rate of transmission for ESH and ISH packets.') juniIsisSysDistributeDomainWide = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 36), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysDistributeDomainWide.setStatus('current') if mibBuilder.loadTexts: juniIsisSysDistributeDomainWide.setDescription('When on, enables distribution of prefixes throughout a multi-level domain.') juniIsisSysDistance = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 37), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255)).clone(115)).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysDistance.setStatus('current') if mibBuilder.loadTexts: juniIsisSysDistance.setDescription('The weight applied to IS-IS routes.') juniIsisSysL1MetricStyle = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 38), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("juniIsisMetricStyleNarrow", 2), ("juniIsisMetricStyleNarrowTransition", 3), ("juniIsisMetricStyleTransition", 4), ("juniIsisMetricStyleWide", 5), ("juniIsisMetricStyleWideTransition", 6))).clone('juniIsisMetricStyleNarrow')).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysL1MetricStyle.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL1MetricStyle.setDescription('Specifies the type of IP reachability TLV to advertise in level 1 LSPs.') juniIsisSysL2MetricStyle = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 39), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("juniIsisMetricStyleNarrow", 2), ("juniIsisMetricStyleNarrowTransition", 3), ("juniIsisMetricStyleTransition", 4), ("juniIsisMetricStyleWide", 5), ("juniIsisMetricStyleWideTransition", 6))).clone('juniIsisMetricStyleNarrow')).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysL2MetricStyle.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL2MetricStyle.setDescription('Specifies the type of IP reachability TLV to advertise in level 2 LSPs.') juniIsisSysIsoRouteTag = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 40), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 19))).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysIsoRouteTag.setStatus('current') if mibBuilder.loadTexts: juniIsisSysIsoRouteTag.setDescription('The ISO routing area tag.') juniIsisSysMplsTeLevel = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 41), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("levelNone", 0), ("level1", 1), ("level2", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysMplsTeLevel.setStatus('current') if mibBuilder.loadTexts: juniIsisSysMplsTeLevel.setDescription('Select flooding of MPLS traffic engineering link information into the specified ISIS level.') juniIsisSysMplsTeRtrIdIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 42), InterfaceIndexOrZero()).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysMplsTeRtrIdIfIndex.setStatus('current') if mibBuilder.loadTexts: juniIsisSysMplsTeRtrIdIfIndex.setDescription('Configure the stable router interface ID to designate it as TE capable. A value of zero is used to remove any configured router interface ID.') juniIsisSysMplsTeSpfUseAnyBestPath = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 43), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysMplsTeSpfUseAnyBestPath.setStatus('current') if mibBuilder.loadTexts: juniIsisSysMplsTeSpfUseAnyBestPath.setDescription('Configure whether or not to consider spf paths when alternate tunnel path exists') juniIsisSysReferenceBandwidth = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 44), Gauge32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysReferenceBandwidth.setStatus('current') if mibBuilder.loadTexts: juniIsisSysReferenceBandwidth.setDescription('Configure the reference bandwitdth used to calculate the link cost in bits per second.If the reference bandwidth is greater than the maximum value reportable by this object then this object should report its maximum value (4,294,967,295) and juniIsisSysHighReferenceBandwidth must be used to report the reference bandwidth. ') juniIsisSysHighReferenceBandwidth = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 45), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(1, 1000000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysHighReferenceBandwidth.setStatus('current') if mibBuilder.loadTexts: juniIsisSysHighReferenceBandwidth.setDescription('Configure the reference bandwitdth in mega bits per second. It is used to calculate the link cost.') juniIsisManAreaAddrTable = MibTable((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 2), ) if mibBuilder.loadTexts: juniIsisManAreaAddrTable.setReference('ISIS.aoi manualAreaAddresses (10)') if mibBuilder.loadTexts: juniIsisManAreaAddrTable.setStatus('current') if mibBuilder.loadTexts: juniIsisManAreaAddrTable.setDescription('The set of manual area addresses configured on this Intermediate System.') juniIsisManAreaAddrEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 2, 1), ).setIndexNames((0, "Juniper-ISIS-MIB", "juniIsisManAreaAddrSysInstance"), (0, "Juniper-ISIS-MIB", "juniIsisManAreaAddr")) if mibBuilder.loadTexts: juniIsisManAreaAddrEntry.setStatus('current') if mibBuilder.loadTexts: juniIsisManAreaAddrEntry.setDescription('Each entry contains one area address manually configured on this system.') juniIsisManAreaAddrSysInstance = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))) if mibBuilder.loadTexts: juniIsisManAreaAddrSysInstance.setStatus('current') if mibBuilder.loadTexts: juniIsisManAreaAddrSysInstance.setDescription('The unique identifier of the Integrated IS-IS instance to which this row corresponds. This object follows the index behaviour.') juniIsisManAreaAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 2, 1, 2), OSINSAddress()) if mibBuilder.loadTexts: juniIsisManAreaAddr.setStatus('current') if mibBuilder.loadTexts: juniIsisManAreaAddr.setDescription('A manually configured area address for this system. This object follows the index behaviour. Note: an index for the entry {1, {49.0001} active} in this table would be the ordered pair (1, (0x03 0x49 0x00 0x01)), as the length of an octet string is part of the OID.') juniIsisManAreaAddrRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 2, 1, 3), RowStatus().clone('active')).setMaxAccess("readcreate") if mibBuilder.loadTexts: juniIsisManAreaAddrRowStatus.setStatus('current') if mibBuilder.loadTexts: juniIsisManAreaAddrRowStatus.setDescription('The state of the juniIsisManAreaAddrEntry. This object follows the RowStatus behaviour. If an attempt is made to set this object to the value off when the corresponding juniIsisManAreaAddrEntry is the only valid entry for this instance and when the corresponding IS-IS instance has juniIsisSysOperState set to on then the attempt is rejected.') juniIsisSysProtSuppTable = MibTable((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 3), ) if mibBuilder.loadTexts: juniIsisSysProtSuppTable.setStatus('current') if mibBuilder.loadTexts: juniIsisSysProtSuppTable.setDescription('This table contains the manually configured set of protocols supported by each instance of the Integrated ISIS protocol.') juniIsisSysProtSuppEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 3, 1), ).setIndexNames((0, "Juniper-ISIS-MIB", "juniIsisSysProtSuppSysInstance"), (0, "Juniper-ISIS-MIB", "juniIsisSysProtSuppProtocol")) if mibBuilder.loadTexts: juniIsisSysProtSuppEntry.setStatus('current') if mibBuilder.loadTexts: juniIsisSysProtSuppEntry.setDescription('Each entry contains one protocol supported by an instance of the Integrated ISIS protocol.') juniIsisSysProtSuppSysInstance = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))) if mibBuilder.loadTexts: juniIsisSysProtSuppSysInstance.setStatus('current') if mibBuilder.loadTexts: juniIsisSysProtSuppSysInstance.setDescription('The unique identifier of the Integrated IS-IS instance to which this row corresponds. This object follows the index behaviour.') juniIsisSysProtSuppProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 3, 1, 2), SupportedProtocol()) if mibBuilder.loadTexts: juniIsisSysProtSuppProtocol.setStatus('current') if mibBuilder.loadTexts: juniIsisSysProtSuppProtocol.setDescription('One supported protocol. This object follows the index behaviour.') juniIsisSysProtSuppRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 3, 1, 3), RowStatus().clone('active')).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisSysProtSuppRowStatus.setStatus('current') if mibBuilder.loadTexts: juniIsisSysProtSuppRowStatus.setDescription('The state of the juniIsisSysProtSuppEntry. This object follows the RowStatus behavior.') juniIsisSummAddrTable = MibTable((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 4), ) if mibBuilder.loadTexts: juniIsisSummAddrTable.setStatus('current') if mibBuilder.loadTexts: juniIsisSummAddrTable.setDescription('The set of IP summary addresses to use in forming the contents of Level 2 LSPs originated by this level 2 Intermediate System.') juniIsisSummAddrEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 4, 1), ).setIndexNames((0, "Juniper-ISIS-MIB", "juniIsisSummAddrSysInstance"), (0, "Juniper-ISIS-MIB", "juniIsisSummAddress"), (0, "Juniper-ISIS-MIB", "juniIsisSummAddrMask")) if mibBuilder.loadTexts: juniIsisSummAddrEntry.setStatus('current') if mibBuilder.loadTexts: juniIsisSummAddrEntry.setDescription('Each entry contains one IP summary address.') juniIsisSummAddrSysInstance = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))) if mibBuilder.loadTexts: juniIsisSummAddrSysInstance.setStatus('current') if mibBuilder.loadTexts: juniIsisSummAddrSysInstance.setDescription('The unique identifier of the Integrated IS-IS instance to which this row corresponds. This object follows the index behaviours.') juniIsisSummAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 4, 1, 2), IpAddress()) if mibBuilder.loadTexts: juniIsisSummAddress.setStatus('current') if mibBuilder.loadTexts: juniIsisSummAddress.setDescription('The IP Address value for this summary address. This object follows the index behaviour.') juniIsisSummAddrMask = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 4, 1, 3), IpAddress()) if mibBuilder.loadTexts: juniIsisSummAddrMask.setStatus('current') if mibBuilder.loadTexts: juniIsisSummAddrMask.setDescription('The mask value for this summary address. This object follows the index behaviour.') juniIsisSummAddrRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 4, 1, 4), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: juniIsisSummAddrRowStatus.setStatus('current') if mibBuilder.loadTexts: juniIsisSummAddrRowStatus.setDescription('The existence state of this summary address. This object follows the RowStatus behaviour.') juniIsisSummAddrOperState = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 4, 1, 5), OperState()).setMaxAccess("readcreate") if mibBuilder.loadTexts: juniIsisSummAddrOperState.setStatus('current') if mibBuilder.loadTexts: juniIsisSummAddrOperState.setDescription('The operational state of this entry. This object follows the operationalState behaviour. When the operational state changes if this would cause the contents of LSPs originated by the system to change then those new LSPs must be generated and sent as soon as is permitted by the ISIS protocol.') juniIsisSummAddrDefaultMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 4, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 16777214))).setMaxAccess("readcreate") if mibBuilder.loadTexts: juniIsisSummAddrDefaultMetric.setStatus('current') if mibBuilder.loadTexts: juniIsisSummAddrDefaultMetric.setDescription('The default metric value to announce this summary address with in Level 1 or 2 LSPs generated by this system. A Metric value of 0 indicates to use the lowest metric value amongst the routes being summarized. When advertising a metric value into a narrow domain (juniIsisSysL1MetricStyle or juniIsisSysL2MetricStyle is set to juniIsisMetricStyleNarrow) the value will be truncated to 63.') juniIsisSummAddrDelayMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 4, 1, 7), OtherMetric()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisSummAddrDelayMetric.setStatus('current') if mibBuilder.loadTexts: juniIsisSummAddrDelayMetric.setDescription('The delay metric value to announce this summary address with in Level 2 LSPs generated by this system. The value of zero is reserved to indicate that this metric is not supported.') juniIsisSummAddrExpenseMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 4, 1, 8), OtherMetric()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisSummAddrExpenseMetric.setStatus('current') if mibBuilder.loadTexts: juniIsisSummAddrExpenseMetric.setDescription('The expense metric value to announce this summary address with in Level 2 LSPs generated by this system. The value of zero is reserved to indicate that this metric is not supported.') juniIsisSummAddrErrorMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 4, 1, 9), OtherMetric()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisSummAddrErrorMetric.setStatus('current') if mibBuilder.loadTexts: juniIsisSummAddrErrorMetric.setDescription('The error metric value to announce this summary address with in Level n LSPs generated by this system. The value of zero is reserved to indicate that this metric is not supported.') juniIsisSummLevel = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 4, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("level1IS", 1), ("level2IS", 2), ("level1l2IS", 3)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: juniIsisSummLevel.setStatus('current') if mibBuilder.loadTexts: juniIsisSummLevel.setDescription('The level of database at which to annouce this summary.') juniIsisCircTable = MibTable((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1), ) if mibBuilder.loadTexts: juniIsisCircTable.setStatus('current') if mibBuilder.loadTexts: juniIsisCircTable.setDescription('The table of circuits used by each instance of Integrated IS-IS on this system.') juniIsisCircEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1), ).setIndexNames((0, "Juniper-ISIS-MIB", "juniIsisCircSysInstance"), (0, "Juniper-ISIS-MIB", "juniIsisCircIfIndex")) if mibBuilder.loadTexts: juniIsisCircEntry.setStatus('current') if mibBuilder.loadTexts: juniIsisCircEntry.setDescription('An juniIsisCircEntry exists for each circuit used by Integrated IS-IS on this system.') juniIsisCircSysInstance = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))) if mibBuilder.loadTexts: juniIsisCircSysInstance.setStatus('current') if mibBuilder.loadTexts: juniIsisCircSysInstance.setDescription('The unique identifier of the Integrated IS-IS instance to which this row corresponds. This object follows the index behaviour.') juniIsisCircIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))) if mibBuilder.loadTexts: juniIsisCircIfIndex.setStatus('current') if mibBuilder.loadTexts: juniIsisCircIfIndex.setDescription('The value of ifIndex for the interface to which this circuit corresponds.') juniIsisCircLocalID = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisCircLocalID.setStatus('current') if mibBuilder.loadTexts: juniIsisCircLocalID.setDescription('An identification that can be used in protocol packets to identify a circuit. Implementations may devise ways to assure that this value is suitable for the circuit it is used on. LAN packets only have space for 8 bits. Values of juniIsisCircLocalID do not need to be unique. They are only required to differ on LANs where the Intermediate System is the Designated Intermediate System.') juniIsisCircOperState = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 4), OperState().clone('off')).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisCircOperState.setStatus('current') if mibBuilder.loadTexts: juniIsisCircOperState.setDescription('The operational state of the circuit. This object follows the operationalState behaviour.') juniIsisCircRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 5), RowStatus().clone('active')).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisCircRowStatus.setStatus('current') if mibBuilder.loadTexts: juniIsisCircRowStatus.setDescription('The existence state of this circuit. This object follows the RowStatus behaviour.') juniIsisCircType = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("broadcast", 1), ("ptToPt", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisCircType.setReference('ISIS.aoi type (33)') if mibBuilder.loadTexts: juniIsisCircType.setStatus('current') if mibBuilder.loadTexts: juniIsisCircType.setDescription('The type of the circuit. This object follows the replaceOnlyWhileDisabled behaviour. The type specified must be compatible with the type of the interface defined by the value of juniIsisCircIfIndex.') juniIsisCircL1DefaultMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 7), JuniDefaultMetric().clone(10)).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisCircL1DefaultMetric.setReference('ISIS.aoi l1DefaultMetric (35)') if mibBuilder.loadTexts: juniIsisCircL1DefaultMetric.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL1DefaultMetric.setDescription('The default metric value of this circuit for Level 1 traffic.') juniIsisCircL1DelayMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 8), OtherMetric()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisCircL1DelayMetric.setReference('ISIS.aoi l1DelayMetric (36)') if mibBuilder.loadTexts: juniIsisCircL1DelayMetric.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL1DelayMetric.setDescription('The delay metric value of this circuit for Level 1 traffic. The value of zero is reserved to indicate that this metric is not supported.') juniIsisCircL1ExpenseMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 9), OtherMetric()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisCircL1ExpenseMetric.setReference('ISIS.aoi l1ExpenseMetric (37)') if mibBuilder.loadTexts: juniIsisCircL1ExpenseMetric.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL1ExpenseMetric.setDescription('The expense metric value of this circuit for Level 1 traffic. The value of zero is reserved to indicate that this metric is not supported.') juniIsisCircL1ErrorMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 10), OtherMetric()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisCircL1ErrorMetric.setReference('ISIS.aoi l1ErrorMetric (38)') if mibBuilder.loadTexts: juniIsisCircL1ErrorMetric.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL1ErrorMetric.setDescription('The error metric value of this circuit for Level 1 traffic. The value of zero is reserved to indicate that this metric is not supported.') juniIsisCircExtDomain = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 11), TruthValue().clone('false')).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisCircExtDomain.setReference('ISIS.aoi externalDomain (46)') if mibBuilder.loadTexts: juniIsisCircExtDomain.setStatus('current') if mibBuilder.loadTexts: juniIsisCircExtDomain.setDescription('If true, suppress normal transmission of and interpretation of Intra-domain ISIS PDUs on this circuit.') juniIsisCircAdjChanges = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 12), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisCircAdjChanges.setReference('ISIS.aoi changesInAdjacencyState (40)') if mibBuilder.loadTexts: juniIsisCircAdjChanges.setStatus('current') if mibBuilder.loadTexts: juniIsisCircAdjChanges.setDescription('The number of times an adjacency state change has occurred on this circuit.') juniIsisCircInitFails = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 13), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisCircInitFails.setReference('ISIS.aoi initializationFailures (41)') if mibBuilder.loadTexts: juniIsisCircInitFails.setStatus('current') if mibBuilder.loadTexts: juniIsisCircInitFails.setDescription('The number of times initialization of this circuit has failed.') juniIsisCircRejAdjs = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 14), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisCircRejAdjs.setReference('ISIS.aoi rejectedAdjacencies (42)') if mibBuilder.loadTexts: juniIsisCircRejAdjs.setStatus('current') if mibBuilder.loadTexts: juniIsisCircRejAdjs.setDescription('The number of times an adjacency has been rejected on this circuit.') juniIsisCircOutCtrlPDUs = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisCircOutCtrlPDUs.setReference('ISIS.aoi iSISControlPDUsSent (43)') if mibBuilder.loadTexts: juniIsisCircOutCtrlPDUs.setStatus('current') if mibBuilder.loadTexts: juniIsisCircOutCtrlPDUs.setDescription('The number of IS-IS control PDUs sent on this circuit.') juniIsisCircInCtrlPDUs = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisCircInCtrlPDUs.setReference('ISIS.aoi controlPDUsReceived (44)') if mibBuilder.loadTexts: juniIsisCircInCtrlPDUs.setStatus('current') if mibBuilder.loadTexts: juniIsisCircInCtrlPDUs.setDescription('The number of IS-IS control PDUs received on this circuit.') juniIsisCircIDFieldLenMismatches = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisCircIDFieldLenMismatches.setReference('ISIS.aoi iDFieldLengthMismatches (25)') if mibBuilder.loadTexts: juniIsisCircIDFieldLenMismatches.setStatus('current') if mibBuilder.loadTexts: juniIsisCircIDFieldLenMismatches.setDescription('The number of times an IS-IS control PDU with an ID field length different to that for this system has been received.') juniIsisCircL2DefaultMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 18), JuniDefaultMetric().clone(10)).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisCircL2DefaultMetric.setReference('ISIS.aoi l2DefaultMetric (68)') if mibBuilder.loadTexts: juniIsisCircL2DefaultMetric.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL2DefaultMetric.setDescription('The default metric value of this circuit for level 2 traffic.') juniIsisCircL2DelayMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 19), OtherMetric()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisCircL2DelayMetric.setReference('ISIS.aoi l2DelayMetric (69)') if mibBuilder.loadTexts: juniIsisCircL2DelayMetric.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL2DelayMetric.setDescription('The delay metric value of this circuit for level 2 traffic. The value of zero is reserved to indicate that this metric is not supported.') juniIsisCircL2ExpenseMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 20), OtherMetric()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisCircL2ExpenseMetric.setReference('ISIS.aoi l2ExpenseMetric (70)') if mibBuilder.loadTexts: juniIsisCircL2ExpenseMetric.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL2ExpenseMetric.setDescription('The expense metric value of this circuit for level 2 traffic. The value of zero is reserved to indicate that this metric is not supported.') juniIsisCircL2ErrorMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 21), OtherMetric()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisCircL2ErrorMetric.setReference('ISIS.aoi l2ErrorMetric (71)') if mibBuilder.loadTexts: juniIsisCircL2ErrorMetric.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL2ErrorMetric.setDescription('The error metric value of this circuit for level 2 traffic. The value of zero is reserved to indicate that this metric is not supported.') juniIsisCircManL2Only = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 22), TruthValue().clone('false')).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisCircManL2Only.setReference('ISIS.aoi manualL2OnlyMode (72)') if mibBuilder.loadTexts: juniIsisCircManL2Only.setStatus('current') if mibBuilder.loadTexts: juniIsisCircManL2Only.setDescription('When true, indicates that this circuit is to be used only for level 2. This object follows the replaceOnlyWhileDisabled behaviour.') juniIsisCircL1ISPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 23), ISPriority().clone(64)).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisCircL1ISPriority.setReference('ISIS.aoi l1IntermediateSystemPriority (47)') if mibBuilder.loadTexts: juniIsisCircL1ISPriority.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL1ISPriority.setDescription('The priority for becoming LAN Level 1 Deignated Intermediate System on a broadcast circuit.') juniIsisCircL1CircID = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 24), CircuitID()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisCircL1CircID.setReference('ISIS.aoi l1CircuitID (48)') if mibBuilder.loadTexts: juniIsisCircL1CircID.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL1CircID.setDescription('The LAN ID allocated by the LAN Level 1 Designated Intermediate System. Where this system is not aware of the value (because it is not participating in the Level 1 Designated Intermediate System election), this object has the value which would be proposed for this circuit (i.e. the concatenation of the local system ID and the one octet local Circuit ID for this circuit.') juniIsisCircL1DesIS = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 25), SystemID()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisCircL1DesIS.setReference('ISIS.aoi l1DesignatedIntermediateSystem (49)') if mibBuilder.loadTexts: juniIsisCircL1DesIS.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL1DesIS.setDescription('The ID of the LAN Level 1 Designated Intermediate System on this circuit. If, for any reason this system is not partaking in the relevant Designated Intermediate System election process, then the value returned is the zero length OCTET STRING.') juniIsisCircLANL1DesISChanges = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 26), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisCircLANL1DesISChanges.setReference('ISIS.aoi lanL1DesignatedIntermediateSystemChanges (50)') if mibBuilder.loadTexts: juniIsisCircLANL1DesISChanges.setStatus('current') if mibBuilder.loadTexts: juniIsisCircLANL1DesISChanges.setDescription('The number of times the LAN Level 1 Designated Intermediate System has changed.') juniIsisCircL2ISPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 27), ISPriority().clone(64)).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisCircL2ISPriority.setReference('ISIS.aoi l2IntermediateSystemPriority (73)') if mibBuilder.loadTexts: juniIsisCircL2ISPriority.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL2ISPriority.setDescription('The priority for becoming LAN level 2 Designated Intermediate System.') juniIsisCircL2CircID = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 28), CircuitID()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisCircL2CircID.setReference('ISIS.aoi l2CircuitID (74)') if mibBuilder.loadTexts: juniIsisCircL2CircID.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL2CircID.setDescription('The LAN ID allocated by the LAN Level 2 Designated Intermediate System. Where this system is not aware of this value (because it is not participating in the Level 2 Designated Intermediate System election), this object has the value which would be proposed for this circuit (i.e. the concatenation of the local system ID and the one octet local Circuit ID for this circuit.') juniIsisCircL2DesIS = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 29), SystemID()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisCircL2DesIS.setReference('ISIS.aoi l2DesignatedIntermediateSystem (75)') if mibBuilder.loadTexts: juniIsisCircL2DesIS.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL2DesIS.setDescription('The ID of the LAN Level 2 Designated Intermediate System on this circuit. If, for any reason, this system is not partaking in the relevant Designated Intermediate System election process, then the value returned is the zero length OCTET STRING.') juniIsisCircLANL2DesISChanges = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 30), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisCircLANL2DesISChanges.setReference('ISIS.aoi lanL2DesignatedIntermediateSystemChanges (76)') if mibBuilder.loadTexts: juniIsisCircLANL2DesISChanges.setStatus('current') if mibBuilder.loadTexts: juniIsisCircLANL2DesISChanges.setDescription('The number of times the LAN Level 2 Designated Intermediate System has changed.') juniIsisCircMCAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 31), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("group", 1), ("functional", 2))).clone('group')).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisCircMCAddr.setStatus('current') if mibBuilder.loadTexts: juniIsisCircMCAddr.setDescription('Specifies which type of multicast address will be used for sending HELLO PDUs on this circuit.') juniIsisCircPtToPtCircID = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 32), CircuitID()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisCircPtToPtCircID.setReference('ISIS.aoi ptPtCircuitID (51)') if mibBuilder.loadTexts: juniIsisCircPtToPtCircID.setStatus('current') if mibBuilder.loadTexts: juniIsisCircPtToPtCircID.setDescription('The ID of the circuit allocated during initialization. If no value has been negotiated (either because the adjacency is to an End System, or because initialization has not yet successfully completed), this object has the value which would be proposed for this circuit (i.e. the concatenation of the local system ID and the one octet local Circuit ID for this circuit.') juniIsisCircL1HelloTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 33), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)).clone(10)).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisCircL1HelloTimer.setReference('ISIS.aoi iSISHelloTimer (45)') if mibBuilder.loadTexts: juniIsisCircL1HelloTimer.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL1HelloTimer.setDescription('Maximum period, in seconds, between Level 1 IIH PDUs on multiaccess networks. It is also used as the period between Hellos on point to point circuits. This object follows the resettingTimer behaviour.') juniIsisCircL2HelloTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 34), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)).clone(10)).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisCircL2HelloTimer.setReference('ISIS.aoi iSISHelloTimer (45)') if mibBuilder.loadTexts: juniIsisCircL2HelloTimer.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL2HelloTimer.setDescription('Maximum period, in seconds, between Level 1 IIH PDUs on multiaccess networks. This object follows the resettingTimer behaviour.') juniIsisCircL1HelloMultiplier = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 35), Integer32().subtype(subtypeSpec=ValueRangeConstraint(3, 1000)).clone(3)).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisCircL1HelloMultiplier.setReference('ISIS.aoi iSISHelloTimer (45)') if mibBuilder.loadTexts: juniIsisCircL1HelloMultiplier.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL1HelloMultiplier.setDescription('This value is multiplied by the corresponding HelloTimer and the result in seconds (rounded up) is used as the holding time in transmitted hellos, to be used by receivers of hello packets from this IS.') juniIsisCircL2HelloMultiplier = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 36), Integer32().subtype(subtypeSpec=ValueRangeConstraint(3, 1000)).clone(3)).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisCircL2HelloMultiplier.setReference('ISIS.aoi iSISHelloTimer (45)') if mibBuilder.loadTexts: juniIsisCircL2HelloMultiplier.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL2HelloMultiplier.setDescription('This value is multiplied by the corresponding HelloTimer and the result in seconds (rounded up) is used as the holding time in transmitted hellos, to be used by receivers of hello packets from this IS') juniIsisCircMinLSPTransInt = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 37), Unsigned32().clone(33)).setUnits('milliseconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisCircMinLSPTransInt.setReference('ISIS.aoi minimumBroadcastLSPTransmissionInterval (7)') if mibBuilder.loadTexts: juniIsisCircMinLSPTransInt.setStatus('current') if mibBuilder.loadTexts: juniIsisCircMinLSPTransInt.setDescription('Minimum interval, in milliseconds, between transmission of LSPs on a circuit. This object follows the resettingTimer behaviour. This timer shall be capable of a resolution not coarser than 10 milliseconds.') juniIsisCircMinLSPReTransInt = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 38), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)).clone(5)).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisCircMinLSPReTransInt.setReference('ISIS.aoi minimumLSPTransmissionInterval (5)') if mibBuilder.loadTexts: juniIsisCircMinLSPReTransInt.setStatus('current') if mibBuilder.loadTexts: juniIsisCircMinLSPReTransInt.setDescription('Minimum interval, in seconds, between re-transmission of an Level 1 or 2 LSP. This object follows the resettingTimer behaviour.') juniIsisCircL1CSNPInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 39), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)).clone(10)).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisCircL1CSNPInterval.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL1CSNPInterval.setDescription('Interval of time, in seconds, between transmission of Level 1 CSNPs on multiaccess networks if this router is the designated router. On point-to-point networks the default is to not transmit CSNPs. Hence CSNP interval will be 0 for point-to-point networks.') juniIsisCircL2CSNPInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 40), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)).clone(10)).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisCircL2CSNPInterval.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL2CSNPInterval.setDescription('Interval of time, in seconds, between transmission of Level 2 CSNPs on multiaccess networks if this router is the designated router. On point-to-point networks the default is to not transmit CSNPs. Hence CSNP interval will be 0 for point-to-point networks.') juniIsisCircLSPThrottle = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 41), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535)).clone(33)).setUnits('milliseconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisCircLSPThrottle.setStatus('current') if mibBuilder.loadTexts: juniIsisCircLSPThrottle.setDescription('Minimal interval of time, in milliseconds, between retransmissions of LSPs on a point to point interface.') juniIsisCircMeshGroupEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 42), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("inactive", 1), ("blocked", 2), ("set", 3))).clone('inactive')).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisCircMeshGroupEnabled.setStatus('current') if mibBuilder.loadTexts: juniIsisCircMeshGroupEnabled.setDescription('Is this port a member of a mesh group, or blocked? Circuits in the same mesh group act as a virtual multiaccess network. LSPs seen on one circuit in a mesh group will not be flooded to another circuit in the same mesh group.') juniIsisCircMeshGroup = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 43), Unsigned32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisCircMeshGroup.setStatus('current') if mibBuilder.loadTexts: juniIsisCircMeshGroup.setDescription('Circuits in the same mesh group act as a virtual multiaccess network. LSPs seen on one circuit in a mesh group will not be flooded to another circuit in the same mesh group. If juniIsisCircMeshGroupEnabled is false, this value is ignored. Default value returned as 0 has no significance for this variable.') juniIsisCircLevel = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 44), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("level1IS", 0), ("level1l2IS", 1), ("level2Only", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisCircLevel.setReference('ISIS.aoi iSType(2)') if mibBuilder.loadTexts: juniIsisCircLevel.setStatus('current') if mibBuilder.loadTexts: juniIsisCircLevel.setDescription('The type of this circuit. This object follows the replaceOnlyWhileDisabled behavior.') juniIsisCircState = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 45), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("isisCircuitDown", 1), ("isisCircuitUp", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisCircState.setStatus('current') if mibBuilder.loadTexts: juniIsisCircState.setDescription('The operational state of the circuit.') juniIsisCircBFDTable = MibTable((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 4), ) if mibBuilder.loadTexts: juniIsisCircBFDTable.setStatus('current') if mibBuilder.loadTexts: juniIsisCircBFDTable.setDescription('The Juniper ISIS circuit table describes the BFD-specific characteristics of interfaces.') juniIsisCircBFDEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 4, 1), ) juniIsisCircEntry.registerAugmentions(("Juniper-ISIS-MIB", "juniIsisCircBFDEntry")) juniIsisCircBFDEntry.setIndexNames(*juniIsisCircEntry.getIndexNames()) if mibBuilder.loadTexts: juniIsisCircBFDEntry.setStatus('current') if mibBuilder.loadTexts: juniIsisCircBFDEntry.setDescription('The Juniper ISIS circuit table describes the BFD-specific characteristics of one interface.') juniIsisCircBfdEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 4, 1, 1), TruthValue().clone('false')).setMaxAccess("readcreate") if mibBuilder.loadTexts: juniIsisCircBfdEnable.setStatus('current') if mibBuilder.loadTexts: juniIsisCircBfdEnable.setDescription('This variable indicates whether BFD session on the interface is active or not') juniIsisCircBfdMinRxInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(100, 65535)).clone(300)).setMaxAccess("readcreate") if mibBuilder.loadTexts: juniIsisCircBfdMinRxInterval.setStatus('current') if mibBuilder.loadTexts: juniIsisCircBfdMinRxInterval.setDescription('This variable specifies upper-limit on rate local-system requires remote-system to transmit bfd control-packets [milliseconds]') juniIsisCircBfdMinTxInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 4, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(100, 65535)).clone(300)).setMaxAccess("readcreate") if mibBuilder.loadTexts: juniIsisCircBfdMinTxInterval.setStatus('current') if mibBuilder.loadTexts: juniIsisCircBfdMinTxInterval.setDescription('This variable specifies lower-limit on rate local-system requires remote-system to transmit bfd control-packets [milliseconds]') juniIsisCircBfdMultiplier = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 4, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255)).clone(3)).setMaxAccess("readcreate") if mibBuilder.loadTexts: juniIsisCircBfdMultiplier.setStatus('current') if mibBuilder.loadTexts: juniIsisCircBfdMultiplier.setDescription('This variable specifies detection-multiplier ') juniIsisSysHostNameTable = MibTable((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 5), ) if mibBuilder.loadTexts: juniIsisSysHostNameTable.setStatus('current') if mibBuilder.loadTexts: juniIsisSysHostNameTable.setDescription('This table contains the manually configured set of host name to system ID aliases supported by each instance of the Integrated ISIS protocol.') juniIsisSysHostNameEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 5, 1), ).setIndexNames((0, "Juniper-ISIS-MIB", "juniIsisSysHostNameSysInstance"), (0, "Juniper-ISIS-MIB", "juniIsisSysHostNameSysId")) if mibBuilder.loadTexts: juniIsisSysHostNameEntry.setStatus('current') if mibBuilder.loadTexts: juniIsisSysHostNameEntry.setDescription('Each entry contains one name to system ID alias supported by an instance of the Integrated ISIS protocol.') juniIsisSysHostNameSysInstance = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 5, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))) if mibBuilder.loadTexts: juniIsisSysHostNameSysInstance.setStatus('current') if mibBuilder.loadTexts: juniIsisSysHostNameSysInstance.setDescription('The unique identifier of the Integrated IS-IS instance to which this row corresponds. This object follows the index behaviour.') juniIsisSysHostNameSysId = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 5, 1, 2), SystemID()) if mibBuilder.loadTexts: juniIsisSysHostNameSysId.setStatus('current') if mibBuilder.loadTexts: juniIsisSysHostNameSysId.setDescription('The ID for the system which this name will be assigned.') juniIsisSysHostNameAreaAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 5, 1, 3), OSINSAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: juniIsisSysHostNameAreaAddr.setStatus('current') if mibBuilder.loadTexts: juniIsisSysHostNameAreaAddr.setDescription('A configured area address for the system which this name will be assigned. This object follows the index behaviour. Note: an index for the entry {1, {49.0001} active} in this table would be the ordered pair (1, (0x03 0x49 0x00 0x01)), as the length of an Octet string is part of the OID.') juniIsisSysHostNameName = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 5, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysHostNameName.setStatus('current') if mibBuilder.loadTexts: juniIsisSysHostNameName.setDescription('A string to use when displaying system data with this system ID.') juniIsisSysHostNameType = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 5, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("hostNameTypeStatic", 1), ("hostNameTypeDynamic", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisSysHostNameType.setStatus('current') if mibBuilder.loadTexts: juniIsisSysHostNameType.setDescription('The type of host name entry.') juniIsisSysHostNameRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 5, 1, 6), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysHostNameRowStatus.setStatus('current') if mibBuilder.loadTexts: juniIsisSysHostNameRowStatus.setDescription('The status of this host name entry. This object follows the RowStatus behaviour.') juniIsisSysAreaAuthenticationTable = MibTable((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 6), ) if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationTable.setStatus('current') if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationTable.setDescription('This table contains the manually configured set of area authentication keys supported by each instance of the Integrated ISIS protocol.') juniIsisSysAreaAuthenticationEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 6, 1), ).setIndexNames((0, "Juniper-ISIS-MIB", "juniIsisSysAreaAuthenticationSysInstance"), (0, "Juniper-ISIS-MIB", "juniIsisSysAreaAuthenticationKeyId")) if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationEntry.setStatus('current') if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationEntry.setDescription('Each entry contains one area authentication key supported by an instance of the Integrated ISIS protocol.') juniIsisSysAreaAuthenticationSysInstance = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 6, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))) if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationSysInstance.setStatus('current') if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationSysInstance.setDescription('The unique identifier of the Integrated IS-IS instance to which this row corresponds. This object follows the index behaviour.') juniIsisSysAreaAuthenticationKeyId = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 6, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))) if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationKeyId.setStatus('current') if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationKeyId.setDescription('The unique identifier of the instance to which this row corresponds. This object follows the index behaviour.') juniIsisSysAreaAuthenticationPwd = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 6, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 20))).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationPwd.setStatus('current') if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationPwd.setDescription('The value to be used as the Authentication Key in Level 1 Link State Packets whenever the value of juniIsisSysAreaAuthenticationKeyType has a value of plaintext or hmacMd5. A modification of juniIsisSysAreaAuthenticationKeyType does not modify the juniIsisSysAreaAuthenticationPwd value. Reading this object always results in an OCTET STRING of length zero; authentication may not be bypassed by reading the MIB object.') juniIsisSysAreaAuthenticationKeyType = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 6, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("plaintext", 1), ("hmacMd5", 2))).clone('hmacMd5')).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationKeyType.setStatus('current') if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationKeyType.setDescription('What authentication scheme, if any, is used to protect Level 1 Link State packets and sequence number packets') juniIsisSysAreaAuthenticationStartAcceptTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 6, 1, 5), AuthTime()).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationStartAcceptTime.setStatus('current') if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationStartAcceptTime.setDescription('The date and time when this authentication key will start to be used to validate level 1 LSPs and SNPs received. The Default value the start accept time will be the current time when the key was created') juniIsisSysAreaAuthenticationStartGenerateTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 6, 1, 6), AuthTime()).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationStartGenerateTime.setStatus('current') if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationStartGenerateTime.setDescription('The date and time when this authentication key will start to be used to authenticate level 1 LSPs and SNPs transmitted. The Default value the start accept time will be the current time when the key was created + 2 minutes') juniIsisSysAreaAuthenticationStopAcceptTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 6, 1, 7), AuthTime()).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationStopAcceptTime.setStatus('current') if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationStopAcceptTime.setDescription('The date and time when this authentication key will stop being accepted as a valid level 1 LSP and SNP key received. A value of zero indicates the key will never stop being used to authenticate packets.') juniIsisSysAreaAuthenticationStopGenerateTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 6, 1, 8), AuthTime()).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationStopGenerateTime.setStatus('current') if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationStopGenerateTime.setDescription('The date and time when this authentication key will stop being used to authenticate level 1 LSPs and SNPs transmitted. A value of zero indicates the key will never stop being used to authenticate packets.') juniIsisSysAreaAuthenticationRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 6, 1, 9), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationRowStatus.setStatus('current') if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationRowStatus.setDescription('The existence state of this authentication key. This object follows the RowStatus behaviour.') juniIsisSysDomainAuthenticationTable = MibTable((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 7), ) if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationTable.setStatus('current') if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationTable.setDescription('This table contains the manually configured set of domain authentication keys supported by each instance of the Integrated ISIS protocol.') juniIsisSysDomainAuthenticationEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 7, 1), ).setIndexNames((0, "Juniper-ISIS-MIB", "juniIsisSysDomainAuthenticationSysInstance"), (0, "Juniper-ISIS-MIB", "juniIsisSysDomainAuthenticationKeyId")) if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationEntry.setStatus('current') if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationEntry.setDescription('Each entry contains one domain authentication key supported by an instance of the Integrated ISIS protocol.') juniIsisSysDomainAuthenticationSysInstance = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 7, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))) if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationSysInstance.setStatus('current') if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationSysInstance.setDescription('The unique identifier of the Integrated IS-IS instance to which this row corresponds. This object follows the index behaviour.') juniIsisSysDomainAuthenticationKeyId = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 7, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))) if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationKeyId.setStatus('current') if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationKeyId.setDescription('The unique identifier of the instance to which this row corresponds. This object follows the index behaviour.') juniIsisSysDomainAuthenticationPwd = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 7, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 20))).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationPwd.setStatus('current') if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationPwd.setDescription('The value to be used as the Authentication Key in Level 2 Link State Packets whenever the value of juniIsisSysDomainAuthenticationKeyType has a value of plaintext or hmacMd5. A modification of juniIsisSysDomainAuthenticationKeyType does not modify the juniIsisSysDomainAuthenticationPwd value. Reading this object always results in an OCTET STRING of length zero; authentication may not be bypassed by reading the MIB object.') juniIsisSysDomainAuthenticationKeyType = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 7, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("plaintext", 1), ("hmacMd5", 2))).clone('hmacMd5')).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationKeyType.setStatus('current') if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationKeyType.setDescription('What authentication scheme, if any, is used to protect Level 2 Link State packets and Sequence Number packets') juniIsisSysDomainAuthenticationStartAcceptTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 7, 1, 5), AuthTime()).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationStartAcceptTime.setStatus('current') if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationStartAcceptTime.setDescription('The date and time when this authentication key will start to be used to validate level 2 LSPs and SNPs received. The Default value the start accept time will be the current time when the key was created') juniIsisSysDomainAuthenticationStartGenerateTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 7, 1, 6), AuthTime()).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationStartGenerateTime.setStatus('current') if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationStartGenerateTime.setDescription('The date and time when this authentication key will start to be used to authenticate level 2 LSPs and SNPs transmitted. The Default value the start accept time will be the current time when the key was created + 2 minutes') juniIsisSysDomainAuthenticationStopAcceptTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 7, 1, 7), AuthTime()).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationStopAcceptTime.setStatus('current') if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationStopAcceptTime.setDescription('The date and time when this authentication key will stop being accepted as a valid level 2 LSP and SNP key received. A value of zero indicates the key will never stop being used to authenticate packets.') juniIsisSysDomainAuthenticationStopGenerateTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 7, 1, 8), AuthTime()).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationStopGenerateTime.setStatus('current') if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationStopGenerateTime.setDescription('The date and time when this authentication key will stop being used to authenticate level 2 LSPs and SNPs transmitted. A value of zero indicates the key will never stop being used to authenticate packets.') juniIsisSysDomainAuthenticationRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 7, 1, 9), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationRowStatus.setStatus('current') if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationRowStatus.setDescription('The existence state of this authentication key. This object follows the RowStatus behaviour.') juniIsisSysL1CircAuthenticationTable = MibTable((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 2), ) if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationTable.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationTable.setDescription('This table contains the manually configured set of Level 1 Circuit authentication keys supported by each instance of the Integrated ISIS protocol.') juniIsisSysL1CircAuthenticationEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 2, 1), ).setIndexNames((0, "Juniper-ISIS-MIB", "juniIsisSysL1CircAuthenticationSysInstance"), (0, "Juniper-ISIS-MIB", "juniIsisSysL1CircAuthenticationIfIndex"), (0, "Juniper-ISIS-MIB", "juniIsisSysL1CircAuthenticationKeyId")) if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationEntry.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationEntry.setDescription('Each entry contains one Level 1 circuit authentication key supported by an instance of the Integrated ISIS protocol.') juniIsisSysL1CircAuthenticationSysInstance = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))) if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationSysInstance.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationSysInstance.setDescription('The unique identifier of the Integrated IS-IS instance to which this row corresponds. This object follows the index behaviour.') juniIsisSysL1CircAuthenticationIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))) if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationIfIndex.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationIfIndex.setDescription('The value of ifIndex for the interface to which this circuit corresponds.') juniIsisSysL1CircAuthenticationKeyId = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 2, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))) if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationKeyId.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationKeyId.setDescription('The unique identifier of the instance to which this row corresponds. This object follows the index behaviour.') juniIsisSysL1CircAuthenticationPwd = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 2, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 20))).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationPwd.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationPwd.setDescription('The value to be used as the Authentication Key in Level 1 Hello Packets whenever the value of juniIsisSysL1CircAuthenticationKeyType has a value of hmacMd5. A modification of juniIsisSysL1CircAuthenticationKeyType does not modify the juniIsisSysL1CircAuthenticationPwd value. Reading this object always results in an OCTET STRING of length zero; authentication may not be bypassed by reading the MIB object.') juniIsisSysL1CircAuthenticationKeyType = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("plaintext", 1), ("hmacMd5", 2))).clone('hmacMd5')).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationKeyType.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationKeyType.setDescription('What authentication scheme, if any, is used to protect Level 1 hello packets.') juniIsisSysL1CircAuthenticationStartAcceptTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 2, 1, 6), AuthTime()).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationStartAcceptTime.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationStartAcceptTime.setDescription('The date and time when this authentication key will start to be used to validate level 1 IIH packets received. The Default value the start accept time will be the current time when the key was created.') juniIsisSysL1CircAuthenticationStartGenerateTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 2, 1, 7), AuthTime()).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationStartGenerateTime.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationStartGenerateTime.setDescription('The date and time when this authentication key will start to be used to authenticate level 1 IIH packets transmitted. The Default value the start accept time will be the current time when the key was created + 2 minutes.') juniIsisSysL1CircAuthenticationStopAcceptTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 2, 1, 8), AuthTime()).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationStopAcceptTime.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationStopAcceptTime.setDescription('The date and time when this authentication key will stop being accepted as a valid level 1 IIH packets key received. A value of zero indicates the key will never stop being used to authenticate packets.') juniIsisSysL1CircAuthenticationStopGenerateTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 2, 1, 9), AuthTime()).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationStopGenerateTime.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationStopGenerateTime.setDescription('The date and time when this authentication key will stop being used to authenticate level 1 IIH packets transmitted. A value of zero indicates the key will never stop being used to authenticate packets.') juniIsisSysL1CircAuthenticationRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 2, 1, 10), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationRowStatus.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationRowStatus.setDescription('The existence state of this authentication key. This object follows the RowStatus behaviour.') juniIsisSysL2CircAuthenticationTable = MibTable((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 3), ) if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationTable.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationTable.setDescription('This table contains the manually configured set of Level 2 Circuit authentication keys supported by each instance of the Integrated ISIS protocol.') juniIsisSysL2CircAuthenticationEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 3, 1), ).setIndexNames((0, "Juniper-ISIS-MIB", "juniIsisSysL2CircAuthenticationSysInstance"), (0, "Juniper-ISIS-MIB", "juniIsisSysL2CircAuthenticationIfIndex"), (0, "Juniper-ISIS-MIB", "juniIsisSysL2CircAuthenticationKeyId")) if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationEntry.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationEntry.setDescription('Each entry contains one Level 2 circuit authentication key supported by an instance of the Integrated ISIS protocol.') juniIsisSysL2CircAuthenticationSysInstance = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))) if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationSysInstance.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationSysInstance.setDescription('The unique identifier of the Integrated IS-IS instance to which this row corresponds. This object follows the index behaviour.') juniIsisSysL2CircAuthenticationIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 3, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))) if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationIfIndex.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationIfIndex.setDescription('The value of ifIndex for the interface to which this circuit corresponds.') juniIsisSysL2CircAuthenticationKeyId = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 3, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))) if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationKeyId.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationKeyId.setDescription('The unique identifier of the instance to which this row corresponds. This object follows the index behaviour.') juniIsisSysL2CircAuthenticationPwd = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 3, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 20))).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationPwd.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationPwd.setDescription('The value to be used as the Authentication Key in Level 2 Hello Packets whenever the value of juniIsisSysL2CircAuthenticationKeyType has a value of hmacMd5. A modification of juniIsisSysL2CircAuthenticationKeyType does not modify the juniIsisSysL2CircAuthenticationPwd value. Reading this object always results in an OCTET STRING of length zero; authentication may not be bypassed by reading the MIB object.') juniIsisSysL2CircAuthenticationKeyType = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("plaintext", 1), ("hmacMd5", 2))).clone('hmacMd5')).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationKeyType.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationKeyType.setDescription('What authentication scheme, if any, is used to protect Level 2 hello packets.') juniIsisSysL2CircAuthenticationStartAcceptTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 3, 1, 6), AuthTime()).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationStartAcceptTime.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationStartAcceptTime.setDescription('The date and time when this authentication key will start to be used to validate level 2 IIH packets received. The Default value the start accept time will be the current time when the key was created.') juniIsisSysL2CircAuthenticationStartGenerateTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 3, 1, 7), AuthTime()).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationStartGenerateTime.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationStartGenerateTime.setDescription('The date and time when this authentication key will start to be used to authenticate level 2 IIH packets transmitted. The Default value the start accept time will be the current time when the key was created + 2 minutes.') juniIsisSysL2CircAuthenticationStopAcceptTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 3, 1, 8), AuthTime()).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationStopAcceptTime.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationStopAcceptTime.setDescription('The date and time when this authentication key will stop being accepted as a valid level 2 IIH packets key received. A value of zero indicates the key will never stop being used to authenticate packets.') juniIsisSysL2CircAuthenticationStopGenerateTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 3, 1, 9), AuthTime()).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationStopGenerateTime.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationStopGenerateTime.setDescription('The date and time when this authentication key will stop being used to authenticate level 2 IIH packets transmitted. A value of zero indicates the key will never stop being used to authenticate packets.') juniIsisSysL2CircAuthenticationRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 3, 1, 10), RowStatus().clone('active')).setMaxAccess("readwrite") if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationRowStatus.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationRowStatus.setDescription('The existence state of this authentication key. This object follows the RowStatus behaviour.') juniIsisMplsTeTunnelTable = MibTable((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 8), ) if mibBuilder.loadTexts: juniIsisMplsTeTunnelTable.setReference('ISIS.aoi mplsTeTunnels(6)') if mibBuilder.loadTexts: juniIsisMplsTeTunnelTable.setStatus('current') if mibBuilder.loadTexts: juniIsisMplsTeTunnelTable.setDescription('The set of tunnels imported from MPLS.') juniIsisMplsTeTunnelEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 8, 1), ).setIndexNames((0, "Juniper-ISIS-MIB", "juniIsisMplsTeTunnelSysInstance"), (0, "Juniper-ISIS-MIB", "juniIsisMplsNextHopIndex")) if mibBuilder.loadTexts: juniIsisMplsTeTunnelEntry.setStatus('current') if mibBuilder.loadTexts: juniIsisMplsTeTunnelEntry.setDescription('Each entry contains metric details of an MPLS LSP') juniIsisMplsTeTunnelSysInstance = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 8, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))) if mibBuilder.loadTexts: juniIsisMplsTeTunnelSysInstance.setStatus('current') if mibBuilder.loadTexts: juniIsisMplsTeTunnelSysInstance.setDescription('The unique identifier of the Integrated IS-IS instance to which this row corresponds. This object follows the index behaviour.') juniIsisMplsNextHopIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 8, 1, 2), Integer32()) if mibBuilder.loadTexts: juniIsisMplsNextHopIndex.setStatus('current') if mibBuilder.loadTexts: juniIsisMplsNextHopIndex.setDescription('An index to uniquely identify the tunnels.') juniIsisMplsTeSystemId = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 8, 1, 3), SystemID()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisMplsTeSystemId.setStatus('current') if mibBuilder.loadTexts: juniIsisMplsTeSystemId.setDescription("The ID for the instance of the Integrated IS-IS protocol running in the tunnel's end point.") juniIsisMplsTeRouterId = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 8, 1, 4), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisMplsTeRouterId.setStatus('current') if mibBuilder.loadTexts: juniIsisMplsTeRouterId.setDescription("The router ID of the tunnel's end point.") juniIsisMplsTeTunnelMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 8, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisMplsTeTunnelMetric.setStatus('current') if mibBuilder.loadTexts: juniIsisMplsTeTunnelMetric.setDescription('The metric associated with the tunnel.') juniIsisMplsTeTunnelRelMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 8, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisMplsTeTunnelRelMetric.setStatus('current') if mibBuilder.loadTexts: juniIsisMplsTeTunnelRelMetric.setDescription('The metric associated with the tunnel relative to the spf path.') juniIsisMplsTeTunnelName = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 8, 1, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 40))).setMaxAccess("readonly") if mibBuilder.loadTexts: juniIsisMplsTeTunnelName.setStatus('current') if mibBuilder.loadTexts: juniIsisMplsTeTunnelName.setDescription('The name associated with the tunnel.') juniIsisCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 3, 1)) juniIsisMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 3, 2)) juniIsisCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 3, 1, 1)).setObjects(("Juniper-ISIS-MIB", "juniIsisSystemMgmtGroup"), ("Juniper-ISIS-MIB", "juniIsisCircuitMgmtGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniIsisCompliance = juniIsisCompliance.setStatus('obsolete') if mibBuilder.loadTexts: juniIsisCompliance.setDescription('Obsolete compliance statement for systems supporting ISIS functionality. This statement became obsolete when the juniIsisCircState object was added.') juniIsisCompliance2 = ModuleCompliance((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 3, 1, 2)).setObjects(("Juniper-ISIS-MIB", "juniIsisSystemMgmtGroup"), ("Juniper-ISIS-MIB", "juniIsisCircuitMgmtGroup2")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniIsisCompliance2 = juniIsisCompliance2.setStatus('obsolete') if mibBuilder.loadTexts: juniIsisCompliance2.setDescription('Obsolete compliance statement for systems supporting ISIS functionality. This statement became obsolete when MPSL support was added.') juniIsisCompliance3 = ModuleCompliance((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 3, 1, 3)).setObjects(("Juniper-ISIS-MIB", "juniIsisSystemMgmtGroup2"), ("Juniper-ISIS-MIB", "juniIsisCircuitMgmtGroup2")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniIsisCompliance3 = juniIsisCompliance3.setStatus('obsolete') if mibBuilder.loadTexts: juniIsisCompliance3.setDescription('The compliance statement for systems supporting ISIS functionality. This statement became obsolete when juniIsisCircBFDTable is implemented.') juniIsisCompliance4 = ModuleCompliance((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 3, 1, 4)).setObjects(("Juniper-ISIS-MIB", "juniIsisSystemMgmtGroup2"), ("Juniper-ISIS-MIB", "juniIsisCircuitMgmtGroup2"), ("Juniper-ISIS-MIB", "juniIsisCircBFDGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniIsisCompliance4 = juniIsisCompliance4.setStatus('obsolete') if mibBuilder.loadTexts: juniIsisCompliance4.setDescription('The compliance statement for systems supporting ISIS functionality.') juniIsisCompliance5 = ModuleCompliance((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 3, 1, 5)).setObjects(("Juniper-ISIS-MIB", "juniIsisSystemMgmtGroup3"), ("Juniper-ISIS-MIB", "juniIsisCircuitMgmtGroup2"), ("Juniper-ISIS-MIB", "juniIsisCircBFDGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniIsisCompliance5 = juniIsisCompliance5.setStatus('obsolete') if mibBuilder.loadTexts: juniIsisCompliance5.setDescription('The compliance statement for systems supporting ISIS functionality.') juniIsisCompliance6 = ModuleCompliance((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 3, 1, 6)).setObjects(("Juniper-ISIS-MIB", "juniIsisSystemMgmtGroup4"), ("Juniper-ISIS-MIB", "juniIsisCircuitMgmtGroup2"), ("Juniper-ISIS-MIB", "juniIsisCircBFDGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniIsisCompliance6 = juniIsisCompliance6.setStatus('current') if mibBuilder.loadTexts: juniIsisCompliance6.setDescription('The compliance statement for systems supporting ISIS functionality.') juniIsisSystemMgmtGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 3, 2, 1)).setObjects(("Juniper-ISIS-MIB", "juniIsisSysVersion"), ("Juniper-ISIS-MIB", "juniIsisSysType"), ("Juniper-ISIS-MIB", "juniIsisSysID"), ("Juniper-ISIS-MIB", "juniIsisSysMaxPathSplits"), ("Juniper-ISIS-MIB", "juniIsisSysMaxLSPGenInt"), ("Juniper-ISIS-MIB", "juniIsisSysOrigLSPBuffSize"), ("Juniper-ISIS-MIB", "juniIsisSysMaxAreaAddresses"), ("Juniper-ISIS-MIB", "juniIsisSysMinL1LSPGenInt"), ("Juniper-ISIS-MIB", "juniIsisSysMinL2LSPGenInt"), ("Juniper-ISIS-MIB", "juniIsisSysPollESHelloRate"), ("Juniper-ISIS-MIB", "juniIsisSysWaitTime"), ("Juniper-ISIS-MIB", "juniIsisSysOperState"), ("Juniper-ISIS-MIB", "juniIsisSysL1State"), ("Juniper-ISIS-MIB", "juniIsisSysCorrLSPs"), ("Juniper-ISIS-MIB", "juniIsisSysLSPL1DbaseOloads"), ("Juniper-ISIS-MIB", "juniIsisSysManAddrDropFromAreas"), ("Juniper-ISIS-MIB", "juniIsisSysAttmptToExMaxSeqNums"), ("Juniper-ISIS-MIB", "juniIsisSysSeqNumSkips"), ("Juniper-ISIS-MIB", "juniIsisSysOwnLSPPurges"), ("Juniper-ISIS-MIB", "juniIsisSysIDFieldLenMismatches"), ("Juniper-ISIS-MIB", "juniIsisSysMaxAreaAddrMismatches"), ("Juniper-ISIS-MIB", "juniIsisSysL2State"), ("Juniper-ISIS-MIB", "juniIsisSysLSPL2DbaseOloads"), ("Juniper-ISIS-MIB", "juniIsisSysAuthFails"), ("Juniper-ISIS-MIB", "juniIsisSysLSPIgnoreErrors"), ("Juniper-ISIS-MIB", "juniIsisSysMaxAreaCheck"), ("Juniper-ISIS-MIB", "juniIsisSysSetOverloadBit"), ("Juniper-ISIS-MIB", "juniIsisSysSetOverloadBitStartupDuration"), ("Juniper-ISIS-MIB", "juniIsisSysMaxLspLifetime"), ("Juniper-ISIS-MIB", "juniIsisSysL1SpfInterval"), ("Juniper-ISIS-MIB", "juniIsisSysL2SpfInterval"), ("Juniper-ISIS-MIB", "juniIsisSysIshHoldTime"), ("Juniper-ISIS-MIB", "juniIsisSysIshConfigTimer"), ("Juniper-ISIS-MIB", "juniIsisSysDistributeDomainWide"), ("Juniper-ISIS-MIB", "juniIsisSysDistance"), ("Juniper-ISIS-MIB", "juniIsisSysL1MetricStyle"), ("Juniper-ISIS-MIB", "juniIsisSysL2MetricStyle"), ("Juniper-ISIS-MIB", "juniIsisSysIsoRouteTag"), ("Juniper-ISIS-MIB", "juniIsisManAreaAddrRowStatus"), ("Juniper-ISIS-MIB", "juniIsisSysProtSuppRowStatus"), ("Juniper-ISIS-MIB", "juniIsisSummAddrRowStatus"), ("Juniper-ISIS-MIB", "juniIsisSummAddrOperState"), ("Juniper-ISIS-MIB", "juniIsisSummAddrDefaultMetric"), ("Juniper-ISIS-MIB", "juniIsisSummAddrDelayMetric"), ("Juniper-ISIS-MIB", "juniIsisSummAddrExpenseMetric"), ("Juniper-ISIS-MIB", "juniIsisSummAddrErrorMetric"), ("Juniper-ISIS-MIB", "juniIsisSummLevel"), ("Juniper-ISIS-MIB", "juniIsisSysHostNameAreaAddr"), ("Juniper-ISIS-MIB", "juniIsisSysHostNameName"), ("Juniper-ISIS-MIB", "juniIsisSysHostNameType"), ("Juniper-ISIS-MIB", "juniIsisSysHostNameRowStatus"), ("Juniper-ISIS-MIB", "juniIsisSysAreaAuthenticationPwd"), ("Juniper-ISIS-MIB", "juniIsisSysAreaAuthenticationKeyType"), ("Juniper-ISIS-MIB", "juniIsisSysAreaAuthenticationStartAcceptTime"), ("Juniper-ISIS-MIB", "juniIsisSysAreaAuthenticationStartGenerateTime"), ("Juniper-ISIS-MIB", "juniIsisSysAreaAuthenticationStopAcceptTime"), ("Juniper-ISIS-MIB", "juniIsisSysAreaAuthenticationStopGenerateTime"), ("Juniper-ISIS-MIB", "juniIsisSysAreaAuthenticationRowStatus"), ("Juniper-ISIS-MIB", "juniIsisSysDomainAuthenticationPwd"), ("Juniper-ISIS-MIB", "juniIsisSysDomainAuthenticationKeyType"), ("Juniper-ISIS-MIB", "juniIsisSysDomainAuthenticationStartAcceptTime"), ("Juniper-ISIS-MIB", "juniIsisSysDomainAuthenticationStartGenerateTime"), ("Juniper-ISIS-MIB", "juniIsisSysDomainAuthenticationStopAcceptTime"), ("Juniper-ISIS-MIB", "juniIsisSysDomainAuthenticationStopGenerateTime"), ("Juniper-ISIS-MIB", "juniIsisSysDomainAuthenticationRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniIsisSystemMgmtGroup = juniIsisSystemMgmtGroup.setStatus('obsolete') if mibBuilder.loadTexts: juniIsisSystemMgmtGroup.setDescription('Obsolete system level objects for ISIS management functionality. This group became obsolete when the MPLS management objects were added.') juniIsisCircuitMgmtGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 3, 2, 2)).setObjects(("Juniper-ISIS-MIB", "juniIsisCircLocalID"), ("Juniper-ISIS-MIB", "juniIsisCircOperState"), ("Juniper-ISIS-MIB", "juniIsisCircRowStatus"), ("Juniper-ISIS-MIB", "juniIsisCircType"), ("Juniper-ISIS-MIB", "juniIsisCircL1DefaultMetric"), ("Juniper-ISIS-MIB", "juniIsisCircL1DelayMetric"), ("Juniper-ISIS-MIB", "juniIsisCircL1ExpenseMetric"), ("Juniper-ISIS-MIB", "juniIsisCircL1ErrorMetric"), ("Juniper-ISIS-MIB", "juniIsisCircExtDomain"), ("Juniper-ISIS-MIB", "juniIsisCircAdjChanges"), ("Juniper-ISIS-MIB", "juniIsisCircInitFails"), ("Juniper-ISIS-MIB", "juniIsisCircRejAdjs"), ("Juniper-ISIS-MIB", "juniIsisCircOutCtrlPDUs"), ("Juniper-ISIS-MIB", "juniIsisCircInCtrlPDUs"), ("Juniper-ISIS-MIB", "juniIsisCircIDFieldLenMismatches"), ("Juniper-ISIS-MIB", "juniIsisCircL2DefaultMetric"), ("Juniper-ISIS-MIB", "juniIsisCircL2DelayMetric"), ("Juniper-ISIS-MIB", "juniIsisCircL2ExpenseMetric"), ("Juniper-ISIS-MIB", "juniIsisCircL2ErrorMetric"), ("Juniper-ISIS-MIB", "juniIsisCircManL2Only"), ("Juniper-ISIS-MIB", "juniIsisCircL1ISPriority"), ("Juniper-ISIS-MIB", "juniIsisCircL1CircID"), ("Juniper-ISIS-MIB", "juniIsisCircL1DesIS"), ("Juniper-ISIS-MIB", "juniIsisCircLANL1DesISChanges"), ("Juniper-ISIS-MIB", "juniIsisCircL2ISPriority"), ("Juniper-ISIS-MIB", "juniIsisCircL2CircID"), ("Juniper-ISIS-MIB", "juniIsisCircL2DesIS"), ("Juniper-ISIS-MIB", "juniIsisCircLANL2DesISChanges"), ("Juniper-ISIS-MIB", "juniIsisCircMCAddr"), ("Juniper-ISIS-MIB", "juniIsisCircPtToPtCircID"), ("Juniper-ISIS-MIB", "juniIsisCircL1HelloTimer"), ("Juniper-ISIS-MIB", "juniIsisCircL2HelloTimer"), ("Juniper-ISIS-MIB", "juniIsisCircL1HelloMultiplier"), ("Juniper-ISIS-MIB", "juniIsisCircL2HelloMultiplier"), ("Juniper-ISIS-MIB", "juniIsisCircMinLSPTransInt"), ("Juniper-ISIS-MIB", "juniIsisCircMinLSPReTransInt"), ("Juniper-ISIS-MIB", "juniIsisCircL1CSNPInterval"), ("Juniper-ISIS-MIB", "juniIsisCircL2CSNPInterval"), ("Juniper-ISIS-MIB", "juniIsisCircLSPThrottle"), ("Juniper-ISIS-MIB", "juniIsisCircMeshGroupEnabled"), ("Juniper-ISIS-MIB", "juniIsisCircMeshGroup"), ("Juniper-ISIS-MIB", "juniIsisCircLevel"), ("Juniper-ISIS-MIB", "juniIsisSysL1CircAuthenticationPwd"), ("Juniper-ISIS-MIB", "juniIsisSysL1CircAuthenticationKeyType"), ("Juniper-ISIS-MIB", "juniIsisSysL1CircAuthenticationStartAcceptTime"), ("Juniper-ISIS-MIB", "juniIsisSysL1CircAuthenticationStartGenerateTime"), ("Juniper-ISIS-MIB", "juniIsisSysL1CircAuthenticationStopAcceptTime"), ("Juniper-ISIS-MIB", "juniIsisSysL1CircAuthenticationStopGenerateTime"), ("Juniper-ISIS-MIB", "juniIsisSysL1CircAuthenticationRowStatus"), ("Juniper-ISIS-MIB", "juniIsisSysL2CircAuthenticationPwd"), ("Juniper-ISIS-MIB", "juniIsisSysL2CircAuthenticationKeyType"), ("Juniper-ISIS-MIB", "juniIsisSysL2CircAuthenticationStartAcceptTime"), ("Juniper-ISIS-MIB", "juniIsisSysL2CircAuthenticationStartGenerateTime"), ("Juniper-ISIS-MIB", "juniIsisSysL2CircAuthenticationStopAcceptTime"), ("Juniper-ISIS-MIB", "juniIsisSysL2CircAuthenticationStopGenerateTime"), ("Juniper-ISIS-MIB", "juniIsisSysL2CircAuthenticationRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniIsisCircuitMgmtGroup = juniIsisCircuitMgmtGroup.setStatus('obsolete') if mibBuilder.loadTexts: juniIsisCircuitMgmtGroup.setDescription('Obsolete circuit management objects. This group became obsolete when the juniIsisCircState object was added.') juniIsisCircuitMgmtGroup2 = ObjectGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 3, 2, 3)).setObjects(("Juniper-ISIS-MIB", "juniIsisCircLocalID"), ("Juniper-ISIS-MIB", "juniIsisCircOperState"), ("Juniper-ISIS-MIB", "juniIsisCircRowStatus"), ("Juniper-ISIS-MIB", "juniIsisCircType"), ("Juniper-ISIS-MIB", "juniIsisCircL1DefaultMetric"), ("Juniper-ISIS-MIB", "juniIsisCircL1DelayMetric"), ("Juniper-ISIS-MIB", "juniIsisCircL1ExpenseMetric"), ("Juniper-ISIS-MIB", "juniIsisCircL1ErrorMetric"), ("Juniper-ISIS-MIB", "juniIsisCircExtDomain"), ("Juniper-ISIS-MIB", "juniIsisCircAdjChanges"), ("Juniper-ISIS-MIB", "juniIsisCircInitFails"), ("Juniper-ISIS-MIB", "juniIsisCircRejAdjs"), ("Juniper-ISIS-MIB", "juniIsisCircOutCtrlPDUs"), ("Juniper-ISIS-MIB", "juniIsisCircInCtrlPDUs"), ("Juniper-ISIS-MIB", "juniIsisCircIDFieldLenMismatches"), ("Juniper-ISIS-MIB", "juniIsisCircL2DefaultMetric"), ("Juniper-ISIS-MIB", "juniIsisCircL2DelayMetric"), ("Juniper-ISIS-MIB", "juniIsisCircL2ExpenseMetric"), ("Juniper-ISIS-MIB", "juniIsisCircL2ErrorMetric"), ("Juniper-ISIS-MIB", "juniIsisCircManL2Only"), ("Juniper-ISIS-MIB", "juniIsisCircL1ISPriority"), ("Juniper-ISIS-MIB", "juniIsisCircL1CircID"), ("Juniper-ISIS-MIB", "juniIsisCircL1DesIS"), ("Juniper-ISIS-MIB", "juniIsisCircLANL1DesISChanges"), ("Juniper-ISIS-MIB", "juniIsisCircL2ISPriority"), ("Juniper-ISIS-MIB", "juniIsisCircL2CircID"), ("Juniper-ISIS-MIB", "juniIsisCircL2DesIS"), ("Juniper-ISIS-MIB", "juniIsisCircLANL2DesISChanges"), ("Juniper-ISIS-MIB", "juniIsisCircMCAddr"), ("Juniper-ISIS-MIB", "juniIsisCircPtToPtCircID"), ("Juniper-ISIS-MIB", "juniIsisCircL1HelloTimer"), ("Juniper-ISIS-MIB", "juniIsisCircL2HelloTimer"), ("Juniper-ISIS-MIB", "juniIsisCircL1HelloMultiplier"), ("Juniper-ISIS-MIB", "juniIsisCircL2HelloMultiplier"), ("Juniper-ISIS-MIB", "juniIsisCircMinLSPTransInt"), ("Juniper-ISIS-MIB", "juniIsisCircMinLSPReTransInt"), ("Juniper-ISIS-MIB", "juniIsisCircL1CSNPInterval"), ("Juniper-ISIS-MIB", "juniIsisCircL2CSNPInterval"), ("Juniper-ISIS-MIB", "juniIsisCircLSPThrottle"), ("Juniper-ISIS-MIB", "juniIsisCircMeshGroupEnabled"), ("Juniper-ISIS-MIB", "juniIsisCircMeshGroup"), ("Juniper-ISIS-MIB", "juniIsisCircLevel"), ("Juniper-ISIS-MIB", "juniIsisCircState"), ("Juniper-ISIS-MIB", "juniIsisSysL1CircAuthenticationPwd"), ("Juniper-ISIS-MIB", "juniIsisSysL1CircAuthenticationKeyType"), ("Juniper-ISIS-MIB", "juniIsisSysL1CircAuthenticationStartAcceptTime"), ("Juniper-ISIS-MIB", "juniIsisSysL1CircAuthenticationStartGenerateTime"), ("Juniper-ISIS-MIB", "juniIsisSysL1CircAuthenticationStopAcceptTime"), ("Juniper-ISIS-MIB", "juniIsisSysL1CircAuthenticationStopGenerateTime"), ("Juniper-ISIS-MIB", "juniIsisSysL1CircAuthenticationRowStatus"), ("Juniper-ISIS-MIB", "juniIsisSysL2CircAuthenticationPwd"), ("Juniper-ISIS-MIB", "juniIsisSysL2CircAuthenticationKeyType"), ("Juniper-ISIS-MIB", "juniIsisSysL2CircAuthenticationStartAcceptTime"), ("Juniper-ISIS-MIB", "juniIsisSysL2CircAuthenticationStartGenerateTime"), ("Juniper-ISIS-MIB", "juniIsisSysL2CircAuthenticationStopAcceptTime"), ("Juniper-ISIS-MIB", "juniIsisSysL2CircAuthenticationStopGenerateTime"), ("Juniper-ISIS-MIB", "juniIsisSysL2CircAuthenticationRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniIsisCircuitMgmtGroup2 = juniIsisCircuitMgmtGroup2.setStatus('current') if mibBuilder.loadTexts: juniIsisCircuitMgmtGroup2.setDescription('The circuit management objects.') juniIsisSystemMgmtGroup2 = ObjectGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 3, 2, 4)).setObjects(("Juniper-ISIS-MIB", "juniIsisSysVersion"), ("Juniper-ISIS-MIB", "juniIsisSysType"), ("Juniper-ISIS-MIB", "juniIsisSysID"), ("Juniper-ISIS-MIB", "juniIsisSysMaxPathSplits"), ("Juniper-ISIS-MIB", "juniIsisSysMaxLSPGenInt"), ("Juniper-ISIS-MIB", "juniIsisSysOrigLSPBuffSize"), ("Juniper-ISIS-MIB", "juniIsisSysMaxAreaAddresses"), ("Juniper-ISIS-MIB", "juniIsisSysMinL1LSPGenInt"), ("Juniper-ISIS-MIB", "juniIsisSysMinL2LSPGenInt"), ("Juniper-ISIS-MIB", "juniIsisSysPollESHelloRate"), ("Juniper-ISIS-MIB", "juniIsisSysWaitTime"), ("Juniper-ISIS-MIB", "juniIsisSysOperState"), ("Juniper-ISIS-MIB", "juniIsisSysL1State"), ("Juniper-ISIS-MIB", "juniIsisSysCorrLSPs"), ("Juniper-ISIS-MIB", "juniIsisSysLSPL1DbaseOloads"), ("Juniper-ISIS-MIB", "juniIsisSysManAddrDropFromAreas"), ("Juniper-ISIS-MIB", "juniIsisSysAttmptToExMaxSeqNums"), ("Juniper-ISIS-MIB", "juniIsisSysSeqNumSkips"), ("Juniper-ISIS-MIB", "juniIsisSysOwnLSPPurges"), ("Juniper-ISIS-MIB", "juniIsisSysIDFieldLenMismatches"), ("Juniper-ISIS-MIB", "juniIsisSysMaxAreaAddrMismatches"), ("Juniper-ISIS-MIB", "juniIsisSysOrigL2LSPBuffSize"), ("Juniper-ISIS-MIB", "juniIsisSysL2State"), ("Juniper-ISIS-MIB", "juniIsisSysLSPL2DbaseOloads"), ("Juniper-ISIS-MIB", "juniIsisSysAuthFails"), ("Juniper-ISIS-MIB", "juniIsisSysLSPIgnoreErrors"), ("Juniper-ISIS-MIB", "juniIsisSysMaxAreaCheck"), ("Juniper-ISIS-MIB", "juniIsisSysSetOverloadBit"), ("Juniper-ISIS-MIB", "juniIsisSysSetOverloadBitStartupDuration"), ("Juniper-ISIS-MIB", "juniIsisSysMaxLspLifetime"), ("Juniper-ISIS-MIB", "juniIsisSysL1SpfInterval"), ("Juniper-ISIS-MIB", "juniIsisSysL2SpfInterval"), ("Juniper-ISIS-MIB", "juniIsisSysIshHoldTime"), ("Juniper-ISIS-MIB", "juniIsisSysIshConfigTimer"), ("Juniper-ISIS-MIB", "juniIsisSysDistributeDomainWide"), ("Juniper-ISIS-MIB", "juniIsisSysDistance"), ("Juniper-ISIS-MIB", "juniIsisSysL1MetricStyle"), ("Juniper-ISIS-MIB", "juniIsisSysL2MetricStyle"), ("Juniper-ISIS-MIB", "juniIsisSysIsoRouteTag"), ("Juniper-ISIS-MIB", "juniIsisSysMplsTeLevel"), ("Juniper-ISIS-MIB", "juniIsisSysMplsTeRtrIdIfIndex"), ("Juniper-ISIS-MIB", "juniIsisManAreaAddrRowStatus"), ("Juniper-ISIS-MIB", "juniIsisSysProtSuppRowStatus"), ("Juniper-ISIS-MIB", "juniIsisSummAddrRowStatus"), ("Juniper-ISIS-MIB", "juniIsisSummAddrOperState"), ("Juniper-ISIS-MIB", "juniIsisSummAddrDefaultMetric"), ("Juniper-ISIS-MIB", "juniIsisSummAddrDelayMetric"), ("Juniper-ISIS-MIB", "juniIsisSummAddrExpenseMetric"), ("Juniper-ISIS-MIB", "juniIsisSummAddrErrorMetric"), ("Juniper-ISIS-MIB", "juniIsisSummLevel"), ("Juniper-ISIS-MIB", "juniIsisSysHostNameAreaAddr"), ("Juniper-ISIS-MIB", "juniIsisSysHostNameName"), ("Juniper-ISIS-MIB", "juniIsisSysHostNameType"), ("Juniper-ISIS-MIB", "juniIsisSysHostNameRowStatus"), ("Juniper-ISIS-MIB", "juniIsisSysAreaAuthenticationPwd"), ("Juniper-ISIS-MIB", "juniIsisSysAreaAuthenticationKeyType"), ("Juniper-ISIS-MIB", "juniIsisSysAreaAuthenticationStartAcceptTime"), ("Juniper-ISIS-MIB", "juniIsisSysAreaAuthenticationStartGenerateTime"), ("Juniper-ISIS-MIB", "juniIsisSysAreaAuthenticationStopAcceptTime"), ("Juniper-ISIS-MIB", "juniIsisSysAreaAuthenticationStopGenerateTime"), ("Juniper-ISIS-MIB", "juniIsisSysAreaAuthenticationRowStatus"), ("Juniper-ISIS-MIB", "juniIsisSysDomainAuthenticationPwd"), ("Juniper-ISIS-MIB", "juniIsisSysDomainAuthenticationKeyType"), ("Juniper-ISIS-MIB", "juniIsisSysDomainAuthenticationStartAcceptTime"), ("Juniper-ISIS-MIB", "juniIsisSysDomainAuthenticationStartGenerateTime"), ("Juniper-ISIS-MIB", "juniIsisSysDomainAuthenticationStopAcceptTime"), ("Juniper-ISIS-MIB", "juniIsisSysDomainAuthenticationStopGenerateTime"), ("Juniper-ISIS-MIB", "juniIsisSysDomainAuthenticationRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniIsisSystemMgmtGroup2 = juniIsisSystemMgmtGroup2.setStatus('obsolete') if mibBuilder.loadTexts: juniIsisSystemMgmtGroup2.setDescription('Obsolete system level objects for ISIS management functionality. This group became obsolete when the MPLS tunnel table was added.') juniIsisCircBFDGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 3, 2, 5)).setObjects(("Juniper-ISIS-MIB", "juniIsisCircBfdEnable"), ("Juniper-ISIS-MIB", "juniIsisCircBfdMinRxInterval"), ("Juniper-ISIS-MIB", "juniIsisCircBfdMinTxInterval"), ("Juniper-ISIS-MIB", "juniIsisCircBfdMultiplier")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniIsisCircBFDGroup = juniIsisCircBFDGroup.setStatus('current') if mibBuilder.loadTexts: juniIsisCircBFDGroup.setDescription('The circuit level ISIS BFD configuration parameters.') juniIsisSystemMgmtGroup3 = ObjectGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 3, 2, 6)).setObjects(("Juniper-ISIS-MIB", "juniIsisSysVersion"), ("Juniper-ISIS-MIB", "juniIsisSysType"), ("Juniper-ISIS-MIB", "juniIsisSysID"), ("Juniper-ISIS-MIB", "juniIsisSysMaxPathSplits"), ("Juniper-ISIS-MIB", "juniIsisSysMaxLSPGenInt"), ("Juniper-ISIS-MIB", "juniIsisSysOrigLSPBuffSize"), ("Juniper-ISIS-MIB", "juniIsisSysMaxAreaAddresses"), ("Juniper-ISIS-MIB", "juniIsisSysMinL1LSPGenInt"), ("Juniper-ISIS-MIB", "juniIsisSysMinL2LSPGenInt"), ("Juniper-ISIS-MIB", "juniIsisSysPollESHelloRate"), ("Juniper-ISIS-MIB", "juniIsisSysWaitTime"), ("Juniper-ISIS-MIB", "juniIsisSysOperState"), ("Juniper-ISIS-MIB", "juniIsisSysL1State"), ("Juniper-ISIS-MIB", "juniIsisSysCorrLSPs"), ("Juniper-ISIS-MIB", "juniIsisSysLSPL1DbaseOloads"), ("Juniper-ISIS-MIB", "juniIsisSysManAddrDropFromAreas"), ("Juniper-ISIS-MIB", "juniIsisSysAttmptToExMaxSeqNums"), ("Juniper-ISIS-MIB", "juniIsisSysSeqNumSkips"), ("Juniper-ISIS-MIB", "juniIsisSysOwnLSPPurges"), ("Juniper-ISIS-MIB", "juniIsisSysIDFieldLenMismatches"), ("Juniper-ISIS-MIB", "juniIsisSysMaxAreaAddrMismatches"), ("Juniper-ISIS-MIB", "juniIsisSysOrigL2LSPBuffSize"), ("Juniper-ISIS-MIB", "juniIsisSysL2State"), ("Juniper-ISIS-MIB", "juniIsisSysLSPL2DbaseOloads"), ("Juniper-ISIS-MIB", "juniIsisSysAuthFails"), ("Juniper-ISIS-MIB", "juniIsisSysLSPIgnoreErrors"), ("Juniper-ISIS-MIB", "juniIsisSysMaxAreaCheck"), ("Juniper-ISIS-MIB", "juniIsisSysSetOverloadBit"), ("Juniper-ISIS-MIB", "juniIsisSysSetOverloadBitStartupDuration"), ("Juniper-ISIS-MIB", "juniIsisSysMaxLspLifetime"), ("Juniper-ISIS-MIB", "juniIsisSysL1SpfInterval"), ("Juniper-ISIS-MIB", "juniIsisSysL2SpfInterval"), ("Juniper-ISIS-MIB", "juniIsisSysIshHoldTime"), ("Juniper-ISIS-MIB", "juniIsisSysIshConfigTimer"), ("Juniper-ISIS-MIB", "juniIsisSysDistributeDomainWide"), ("Juniper-ISIS-MIB", "juniIsisSysDistance"), ("Juniper-ISIS-MIB", "juniIsisSysL1MetricStyle"), ("Juniper-ISIS-MIB", "juniIsisSysL2MetricStyle"), ("Juniper-ISIS-MIB", "juniIsisSysIsoRouteTag"), ("Juniper-ISIS-MIB", "juniIsisSysMplsTeLevel"), ("Juniper-ISIS-MIB", "juniIsisSysMplsTeRtrIdIfIndex"), ("Juniper-ISIS-MIB", "juniIsisSysMplsTeSpfUseAnyBestPath"), ("Juniper-ISIS-MIB", "juniIsisManAreaAddrRowStatus"), ("Juniper-ISIS-MIB", "juniIsisSysProtSuppRowStatus"), ("Juniper-ISIS-MIB", "juniIsisSummAddrRowStatus"), ("Juniper-ISIS-MIB", "juniIsisSummAddrOperState"), ("Juniper-ISIS-MIB", "juniIsisSummAddrDefaultMetric"), ("Juniper-ISIS-MIB", "juniIsisSummAddrDelayMetric"), ("Juniper-ISIS-MIB", "juniIsisSummAddrExpenseMetric"), ("Juniper-ISIS-MIB", "juniIsisSummAddrErrorMetric"), ("Juniper-ISIS-MIB", "juniIsisSummLevel"), ("Juniper-ISIS-MIB", "juniIsisSysHostNameAreaAddr"), ("Juniper-ISIS-MIB", "juniIsisSysHostNameName"), ("Juniper-ISIS-MIB", "juniIsisSysHostNameType"), ("Juniper-ISIS-MIB", "juniIsisSysHostNameRowStatus"), ("Juniper-ISIS-MIB", "juniIsisSysAreaAuthenticationPwd"), ("Juniper-ISIS-MIB", "juniIsisSysAreaAuthenticationKeyType"), ("Juniper-ISIS-MIB", "juniIsisSysAreaAuthenticationStartAcceptTime"), ("Juniper-ISIS-MIB", "juniIsisSysAreaAuthenticationStartGenerateTime"), ("Juniper-ISIS-MIB", "juniIsisSysAreaAuthenticationStopAcceptTime"), ("Juniper-ISIS-MIB", "juniIsisSysAreaAuthenticationStopGenerateTime"), ("Juniper-ISIS-MIB", "juniIsisSysAreaAuthenticationRowStatus"), ("Juniper-ISIS-MIB", "juniIsisSysDomainAuthenticationPwd"), ("Juniper-ISIS-MIB", "juniIsisSysDomainAuthenticationKeyType"), ("Juniper-ISIS-MIB", "juniIsisSysDomainAuthenticationStartAcceptTime"), ("Juniper-ISIS-MIB", "juniIsisSysDomainAuthenticationStartGenerateTime"), ("Juniper-ISIS-MIB", "juniIsisSysDomainAuthenticationStopAcceptTime"), ("Juniper-ISIS-MIB", "juniIsisSysDomainAuthenticationStopGenerateTime"), ("Juniper-ISIS-MIB", "juniIsisSysDomainAuthenticationRowStatus"), ("Juniper-ISIS-MIB", "juniIsisMplsTeSystemId"), ("Juniper-ISIS-MIB", "juniIsisMplsTeRouterId"), ("Juniper-ISIS-MIB", "juniIsisMplsTeTunnelMetric"), ("Juniper-ISIS-MIB", "juniIsisMplsTeTunnelRelMetric"), ("Juniper-ISIS-MIB", "juniIsisMplsTeTunnelName")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniIsisSystemMgmtGroup3 = juniIsisSystemMgmtGroup3.setStatus('obsolete') if mibBuilder.loadTexts: juniIsisSystemMgmtGroup3.setDescription('Obsolete system level objects for ISIS management functionality. This group became obsolete when the reference bandwidth related variables were added.') juniIsisSystemMgmtGroup4 = ObjectGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 3, 2, 7)).setObjects(("Juniper-ISIS-MIB", "juniIsisSysVersion"), ("Juniper-ISIS-MIB", "juniIsisSysType"), ("Juniper-ISIS-MIB", "juniIsisSysID"), ("Juniper-ISIS-MIB", "juniIsisSysMaxPathSplits"), ("Juniper-ISIS-MIB", "juniIsisSysMaxLSPGenInt"), ("Juniper-ISIS-MIB", "juniIsisSysOrigLSPBuffSize"), ("Juniper-ISIS-MIB", "juniIsisSysMaxAreaAddresses"), ("Juniper-ISIS-MIB", "juniIsisSysMinL1LSPGenInt"), ("Juniper-ISIS-MIB", "juniIsisSysMinL2LSPGenInt"), ("Juniper-ISIS-MIB", "juniIsisSysPollESHelloRate"), ("Juniper-ISIS-MIB", "juniIsisSysWaitTime"), ("Juniper-ISIS-MIB", "juniIsisSysOperState"), ("Juniper-ISIS-MIB", "juniIsisSysL1State"), ("Juniper-ISIS-MIB", "juniIsisSysCorrLSPs"), ("Juniper-ISIS-MIB", "juniIsisSysLSPL1DbaseOloads"), ("Juniper-ISIS-MIB", "juniIsisSysManAddrDropFromAreas"), ("Juniper-ISIS-MIB", "juniIsisSysAttmptToExMaxSeqNums"), ("Juniper-ISIS-MIB", "juniIsisSysSeqNumSkips"), ("Juniper-ISIS-MIB", "juniIsisSysOwnLSPPurges"), ("Juniper-ISIS-MIB", "juniIsisSysIDFieldLenMismatches"), ("Juniper-ISIS-MIB", "juniIsisSysMaxAreaAddrMismatches"), ("Juniper-ISIS-MIB", "juniIsisSysOrigL2LSPBuffSize"), ("Juniper-ISIS-MIB", "juniIsisSysL2State"), ("Juniper-ISIS-MIB", "juniIsisSysLSPL2DbaseOloads"), ("Juniper-ISIS-MIB", "juniIsisSysAuthFails"), ("Juniper-ISIS-MIB", "juniIsisSysLSPIgnoreErrors"), ("Juniper-ISIS-MIB", "juniIsisSysMaxAreaCheck"), ("Juniper-ISIS-MIB", "juniIsisSysSetOverloadBit"), ("Juniper-ISIS-MIB", "juniIsisSysSetOverloadBitStartupDuration"), ("Juniper-ISIS-MIB", "juniIsisSysMaxLspLifetime"), ("Juniper-ISIS-MIB", "juniIsisSysL1SpfInterval"), ("Juniper-ISIS-MIB", "juniIsisSysL2SpfInterval"), ("Juniper-ISIS-MIB", "juniIsisSysIshHoldTime"), ("Juniper-ISIS-MIB", "juniIsisSysIshConfigTimer"), ("Juniper-ISIS-MIB", "juniIsisSysDistributeDomainWide"), ("Juniper-ISIS-MIB", "juniIsisSysDistance"), ("Juniper-ISIS-MIB", "juniIsisSysL1MetricStyle"), ("Juniper-ISIS-MIB", "juniIsisSysL2MetricStyle"), ("Juniper-ISIS-MIB", "juniIsisSysIsoRouteTag"), ("Juniper-ISIS-MIB", "juniIsisSysMplsTeLevel"), ("Juniper-ISIS-MIB", "juniIsisSysMplsTeRtrIdIfIndex"), ("Juniper-ISIS-MIB", "juniIsisSysMplsTeSpfUseAnyBestPath"), ("Juniper-ISIS-MIB", "juniIsisSysReferenceBandwidth"), ("Juniper-ISIS-MIB", "juniIsisSysHighReferenceBandwidth"), ("Juniper-ISIS-MIB", "juniIsisManAreaAddrRowStatus"), ("Juniper-ISIS-MIB", "juniIsisSysProtSuppRowStatus"), ("Juniper-ISIS-MIB", "juniIsisSummAddrRowStatus"), ("Juniper-ISIS-MIB", "juniIsisSummAddrOperState"), ("Juniper-ISIS-MIB", "juniIsisSummAddrDefaultMetric"), ("Juniper-ISIS-MIB", "juniIsisSummAddrDelayMetric"), ("Juniper-ISIS-MIB", "juniIsisSummAddrExpenseMetric"), ("Juniper-ISIS-MIB", "juniIsisSummAddrErrorMetric"), ("Juniper-ISIS-MIB", "juniIsisSummLevel"), ("Juniper-ISIS-MIB", "juniIsisSysHostNameAreaAddr"), ("Juniper-ISIS-MIB", "juniIsisSysHostNameName"), ("Juniper-ISIS-MIB", "juniIsisSysHostNameType"), ("Juniper-ISIS-MIB", "juniIsisSysHostNameRowStatus"), ("Juniper-ISIS-MIB", "juniIsisSysAreaAuthenticationPwd"), ("Juniper-ISIS-MIB", "juniIsisSysAreaAuthenticationKeyType"), ("Juniper-ISIS-MIB", "juniIsisSysAreaAuthenticationStartAcceptTime"), ("Juniper-ISIS-MIB", "juniIsisSysAreaAuthenticationStartGenerateTime"), ("Juniper-ISIS-MIB", "juniIsisSysAreaAuthenticationStopAcceptTime"), ("Juniper-ISIS-MIB", "juniIsisSysAreaAuthenticationStopGenerateTime"), ("Juniper-ISIS-MIB", "juniIsisSysAreaAuthenticationRowStatus"), ("Juniper-ISIS-MIB", "juniIsisSysDomainAuthenticationPwd"), ("Juniper-ISIS-MIB", "juniIsisSysDomainAuthenticationKeyType"), ("Juniper-ISIS-MIB", "juniIsisSysDomainAuthenticationStartAcceptTime"), ("Juniper-ISIS-MIB", "juniIsisSysDomainAuthenticationStartGenerateTime"), ("Juniper-ISIS-MIB", "juniIsisSysDomainAuthenticationStopAcceptTime"), ("Juniper-ISIS-MIB", "juniIsisSysDomainAuthenticationStopGenerateTime"), ("Juniper-ISIS-MIB", "juniIsisSysDomainAuthenticationRowStatus"), ("Juniper-ISIS-MIB", "juniIsisMplsTeSystemId"), ("Juniper-ISIS-MIB", "juniIsisMplsTeRouterId"), ("Juniper-ISIS-MIB", "juniIsisMplsTeTunnelMetric"), ("Juniper-ISIS-MIB", "juniIsisMplsTeTunnelRelMetric"), ("Juniper-ISIS-MIB", "juniIsisMplsTeTunnelName")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniIsisSystemMgmtGroup4 = juniIsisSystemMgmtGroup4.setStatus('current') if mibBuilder.loadTexts: juniIsisSystemMgmtGroup4.setDescription('The system level objects for ISIS management functionality.') mibBuilder.exportSymbols("Juniper-ISIS-MIB", juniIsisSysDomainAuthenticationSysInstance=juniIsisSysDomainAuthenticationSysInstance, juniIsisSysIsoRouteTag=juniIsisSysIsoRouteTag, juniIsisCompliance4=juniIsisCompliance4, juniIsisCircL1DelayMetric=juniIsisCircL1DelayMetric, juniIsisSysL1CircAuthenticationStartGenerateTime=juniIsisSysL1CircAuthenticationStartGenerateTime, juniIsisSysL1SpfInterval=juniIsisSysL1SpfInterval, juniIsisSysL2CircAuthenticationTable=juniIsisSysL2CircAuthenticationTable, CircuitID=CircuitID, juniIsisCompliance2=juniIsisCompliance2, juniIsisSysL2CircAuthenticationRowStatus=juniIsisSysL2CircAuthenticationRowStatus, juniIsisObjects=juniIsisObjects, juniIsisSysLSPIgnoreErrors=juniIsisSysLSPIgnoreErrors, juniIsisMplsTeTunnelEntry=juniIsisMplsTeTunnelEntry, juniIsisSysAreaAuthenticationStopAcceptTime=juniIsisSysAreaAuthenticationStopAcceptTime, juniIsisSysMaxPathSplits=juniIsisSysMaxPathSplits, juniIsisCircBfdMultiplier=juniIsisCircBfdMultiplier, juniIsisSysOrigL2LSPBuffSize=juniIsisSysOrigL2LSPBuffSize, juniIsisCircuitMgmtGroup2=juniIsisCircuitMgmtGroup2, juniIsisSysIDFieldLenMismatches=juniIsisSysIDFieldLenMismatches, juniIsisSysProtSuppRowStatus=juniIsisSysProtSuppRowStatus, juniIsisSummAddrDelayMetric=juniIsisSummAddrDelayMetric, juniIsisCircL2ISPriority=juniIsisCircL2ISPriority, juniIsisSummLevel=juniIsisSummLevel, juniIsisCircLSPThrottle=juniIsisCircLSPThrottle, juniIsisCircL2ErrorMetric=juniIsisCircL2ErrorMetric, juniIsisMplsTeTunnelRelMetric=juniIsisMplsTeTunnelRelMetric, juniIsisCircBfdMinRxInterval=juniIsisCircBfdMinRxInterval, juniIsisCircIDFieldLenMismatches=juniIsisCircIDFieldLenMismatches, juniIsisCircL2CSNPInterval=juniIsisCircL2CSNPInterval, OperState=OperState, juniIsisSysOperState=juniIsisSysOperState, juniIsisSysDomainAuthenticationRowStatus=juniIsisSysDomainAuthenticationRowStatus, juniIsisCircInitFails=juniIsisCircInitFails, JuniDefaultMetric=JuniDefaultMetric, juniIsisSysHostNameAreaAddr=juniIsisSysHostNameAreaAddr, juniIsisCircRowStatus=juniIsisCircRowStatus, juniIsisSysAreaAuthenticationPwd=juniIsisSysAreaAuthenticationPwd, juniIsisCircL1ErrorMetric=juniIsisCircL1ErrorMetric, juniIsisCompliance5=juniIsisCompliance5, juniIsisCircMCAddr=juniIsisCircMCAddr, juniIsisSysDomainAuthenticationPwd=juniIsisSysDomainAuthenticationPwd, juniIsisSysAreaAuthenticationKeyType=juniIsisSysAreaAuthenticationKeyType, juniIsisCompliance6=juniIsisCompliance6, juniIsisCircL2CircID=juniIsisCircL2CircID, juniIsisManAreaAddrSysInstance=juniIsisManAreaAddrSysInstance, PYSNMP_MODULE_ID=juniIsisMIB, juniIsisSysMaxLspLifetime=juniIsisSysMaxLspLifetime, juniIsisSysProtSuppEntry=juniIsisSysProtSuppEntry, juniIsisCircLocalID=juniIsisCircLocalID, juniIsisSummAddrErrorMetric=juniIsisSummAddrErrorMetric, juniIsisSysMplsTeLevel=juniIsisSysMplsTeLevel, juniIsisSysSetOverloadBitStartupDuration=juniIsisSysSetOverloadBitStartupDuration, juniIsisMplsTeTunnelSysInstance=juniIsisMplsTeTunnelSysInstance, juniIsisCircL1CircID=juniIsisCircL1CircID, juniIsisSummAddrRowStatus=juniIsisSummAddrRowStatus, juniIsisSysL1CircAuthenticationIfIndex=juniIsisSysL1CircAuthenticationIfIndex, juniIsisSysHostNameRowStatus=juniIsisSysHostNameRowStatus, juniIsisSysL1MetricStyle=juniIsisSysL1MetricStyle, juniIsisSysAreaAuthenticationTable=juniIsisSysAreaAuthenticationTable, juniIsisSummAddrDefaultMetric=juniIsisSummAddrDefaultMetric, juniIsisSysSeqNumSkips=juniIsisSysSeqNumSkips, juniIsisSysSetOverloadBit=juniIsisSysSetOverloadBit, juniIsisCompliance=juniIsisCompliance, juniIsisCircLANL2DesISChanges=juniIsisCircLANL2DesISChanges, juniIsisMplsNextHopIndex=juniIsisMplsNextHopIndex, SupportedProtocol=SupportedProtocol, OtherMetric=OtherMetric, juniIsisSysMaxLSPGenInt=juniIsisSysMaxLSPGenInt, juniIsisConformance=juniIsisConformance, juniIsisSysMaxAreaAddrMismatches=juniIsisSysMaxAreaAddrMismatches, juniIsisSysDomainAuthenticationKeyType=juniIsisSysDomainAuthenticationKeyType, juniIsisCompliances=juniIsisCompliances, juniIsisSysL1CircAuthenticationKeyType=juniIsisSysL1CircAuthenticationKeyType, juniIsisCircBFDGroup=juniIsisCircBFDGroup, juniIsisSysProtSuppProtocol=juniIsisSysProtSuppProtocol, juniIsisSysEntry=juniIsisSysEntry, juniIsisCircLANL1DesISChanges=juniIsisCircLANL1DesISChanges, juniIsisSysAreaAuthenticationEntry=juniIsisSysAreaAuthenticationEntry, juniIsisCircBFDTable=juniIsisCircBFDTable, juniIsisCircBFDEntry=juniIsisCircBFDEntry, juniIsisSummAddrExpenseMetric=juniIsisSummAddrExpenseMetric, juniIsisSysLSPL2DbaseOloads=juniIsisSysLSPL2DbaseOloads, juniIsisSysMinL2LSPGenInt=juniIsisSysMinL2LSPGenInt, juniIsisSysL2MetricStyle=juniIsisSysL2MetricStyle, juniIsisSysL2State=juniIsisSysL2State, LevelState=LevelState, juniIsisSystemMgmtGroup4=juniIsisSystemMgmtGroup4, juniIsisCircL1ExpenseMetric=juniIsisCircL1ExpenseMetric, juniIsisCircLevel=juniIsisCircLevel, juniIsisCircRejAdjs=juniIsisCircRejAdjs, juniIsisCircMeshGroup=juniIsisCircMeshGroup, juniIsisCompliance3=juniIsisCompliance3, juniIsisCircuitMgmtGroup=juniIsisCircuitMgmtGroup, juniIsisSysMplsTeSpfUseAnyBestPath=juniIsisSysMplsTeSpfUseAnyBestPath, juniIsisCircL1DefaultMetric=juniIsisCircL1DefaultMetric, juniIsisSysAttmptToExMaxSeqNums=juniIsisSysAttmptToExMaxSeqNums, juniIsisSysManAddrDropFromAreas=juniIsisSysManAddrDropFromAreas, juniIsisSysMinL1LSPGenInt=juniIsisSysMinL1LSPGenInt, juniIsisCircTable=juniIsisCircTable, juniIsisSysAreaAuthenticationSysInstance=juniIsisSysAreaAuthenticationSysInstance, juniIsisSysIshConfigTimer=juniIsisSysIshConfigTimer, juniIsisSysDomainAuthenticationTable=juniIsisSysDomainAuthenticationTable, juniIsisCircMeshGroupEnabled=juniIsisCircMeshGroupEnabled, OSINSAddress=OSINSAddress, juniIsisCircuitGroup=juniIsisCircuitGroup, juniIsisSysDomainAuthenticationStopAcceptTime=juniIsisSysDomainAuthenticationStopAcceptTime, juniIsisSysDistance=juniIsisSysDistance, juniIsisSummAddrMask=juniIsisSummAddrMask, juniIsisSysDomainAuthenticationEntry=juniIsisSysDomainAuthenticationEntry, juniIsisSysID=juniIsisSysID, juniIsisSysL2CircAuthenticationKeyType=juniIsisSysL2CircAuthenticationKeyType, juniIsisCircManL2Only=juniIsisCircManL2Only, juniIsisSysInstance=juniIsisSysInstance, juniIsisSysDistributeDomainWide=juniIsisSysDistributeDomainWide, ISPriority=ISPriority, juniIsisSysL2CircAuthenticationStartAcceptTime=juniIsisSysL2CircAuthenticationStartAcceptTime, juniIsisManAreaAddrEntry=juniIsisManAreaAddrEntry, juniIsisSysL1CircAuthenticationEntry=juniIsisSysL1CircAuthenticationEntry, juniIsisCircBfdEnable=juniIsisCircBfdEnable, juniIsisMplsTeSystemId=juniIsisMplsTeSystemId, juniIsisSysHostNameEntry=juniIsisSysHostNameEntry, juniIsisSysPollESHelloRate=juniIsisSysPollESHelloRate, juniIsisSysAreaAuthenticationStopGenerateTime=juniIsisSysAreaAuthenticationStopGenerateTime, juniIsisCircL2ExpenseMetric=juniIsisCircL2ExpenseMetric, juniIsisSysHostNameName=juniIsisSysHostNameName, juniIsisSysMaxAreaAddresses=juniIsisSysMaxAreaAddresses, juniIsisCircMinLSPTransInt=juniIsisCircMinLSPTransInt, juniIsisCircL1ISPriority=juniIsisCircL1ISPriority, juniIsisCircL2DelayMetric=juniIsisCircL2DelayMetric, juniIsisSysL2CircAuthenticationEntry=juniIsisSysL2CircAuthenticationEntry, juniIsisSysAreaAuthenticationStartGenerateTime=juniIsisSysAreaAuthenticationStartGenerateTime, juniIsisCircL1DesIS=juniIsisCircL1DesIS, juniIsisSysHighReferenceBandwidth=juniIsisSysHighReferenceBandwidth, juniIsisSysProtSuppTable=juniIsisSysProtSuppTable, juniIsisSysL2SpfInterval=juniIsisSysL2SpfInterval, juniIsisSysHostNameSysId=juniIsisSysHostNameSysId, juniIsisSysL2CircAuthenticationPwd=juniIsisSysL2CircAuthenticationPwd, juniIsisSysDomainAuthenticationStartGenerateTime=juniIsisSysDomainAuthenticationStartGenerateTime, juniIsisSysMaxAreaCheck=juniIsisSysMaxAreaCheck, juniIsisSysCorrLSPs=juniIsisSysCorrLSPs, juniIsisCircAdjChanges=juniIsisCircAdjChanges, juniIsisSysL1CircAuthenticationKeyId=juniIsisSysL1CircAuthenticationKeyId, juniIsisSysWaitTime=juniIsisSysWaitTime, juniIsisSysReferenceBandwidth=juniIsisSysReferenceBandwidth, juniIsisSysIshHoldTime=juniIsisSysIshHoldTime, juniIsisManAreaAddrRowStatus=juniIsisManAreaAddrRowStatus, juniIsisCircSysInstance=juniIsisCircSysInstance, juniIsisSysOrigLSPBuffSize=juniIsisSysOrigLSPBuffSize, juniIsisSysHostNameType=juniIsisSysHostNameType, juniIsisSysL1CircAuthenticationPwd=juniIsisSysL1CircAuthenticationPwd, juniIsisSysL2CircAuthenticationIfIndex=juniIsisSysL2CircAuthenticationIfIndex, juniIsisCircBfdMinTxInterval=juniIsisCircBfdMinTxInterval, juniIsisManAreaAddr=juniIsisManAreaAddr, juniIsisSysAreaAuthenticationKeyId=juniIsisSysAreaAuthenticationKeyId, juniIsisSummAddress=juniIsisSummAddress, juniIsisMIB=juniIsisMIB, juniIsisCircEntry=juniIsisCircEntry, juniIsisSummAddrSysInstance=juniIsisSummAddrSysInstance, SystemID=SystemID, juniIsisSummAddrOperState=juniIsisSummAddrOperState, juniIsisMIBGroups=juniIsisMIBGroups, juniIsisMplsTeTunnelMetric=juniIsisMplsTeTunnelMetric, juniIsisSysTable=juniIsisSysTable, juniIsisSystemGroup=juniIsisSystemGroup, juniIsisSysProtSuppSysInstance=juniIsisSysProtSuppSysInstance, juniIsisCircOperState=juniIsisCircOperState, juniIsisSysL1CircAuthenticationSysInstance=juniIsisSysL1CircAuthenticationSysInstance, juniIsisManAreaAddrTable=juniIsisManAreaAddrTable, juniIsisCircExtDomain=juniIsisCircExtDomain, juniIsisCircL2DesIS=juniIsisCircL2DesIS, juniIsisSysAreaAuthenticationStartAcceptTime=juniIsisSysAreaAuthenticationStartAcceptTime, juniIsisSysL1CircAuthenticationStopGenerateTime=juniIsisSysL1CircAuthenticationStopGenerateTime, juniIsisCircInCtrlPDUs=juniIsisCircInCtrlPDUs, juniIsisSysL2CircAuthenticationStartGenerateTime=juniIsisSysL2CircAuthenticationStartGenerateTime, juniIsisMplsTeRouterId=juniIsisMplsTeRouterId, juniIsisCircState=juniIsisCircState, juniIsisSystemMgmtGroup3=juniIsisSystemMgmtGroup3, juniIsisSystemMgmtGroup2=juniIsisSystemMgmtGroup2, juniIsisSysDomainAuthenticationKeyId=juniIsisSysDomainAuthenticationKeyId, juniIsisSysAuthFails=juniIsisSysAuthFails, juniIsisSysDomainAuthenticationStopGenerateTime=juniIsisSysDomainAuthenticationStopGenerateTime, juniIsisSysHostNameSysInstance=juniIsisSysHostNameSysInstance, juniIsisSysL1CircAuthenticationTable=juniIsisSysL1CircAuthenticationTable, LSPBuffSize=LSPBuffSize, juniIsisSummAddrTable=juniIsisSummAddrTable, juniIsisSysL2CircAuthenticationStopGenerateTime=juniIsisSysL2CircAuthenticationStopGenerateTime, juniIsisSysL1CircAuthenticationRowStatus=juniIsisSysL1CircAuthenticationRowStatus, juniIsisCircL2DefaultMetric=juniIsisCircL2DefaultMetric, juniIsisCircPtToPtCircID=juniIsisCircPtToPtCircID, juniIsisSysL2CircAuthenticationStopAcceptTime=juniIsisSysL2CircAuthenticationStopAcceptTime, juniIsisCircOutCtrlPDUs=juniIsisCircOutCtrlPDUs, juniIsisSysHostNameTable=juniIsisSysHostNameTable, juniIsisSysL1State=juniIsisSysL1State, juniIsisMplsTeTunnelName=juniIsisMplsTeTunnelName, juniIsisCircL2HelloMultiplier=juniIsisCircL2HelloMultiplier, juniIsisSysL2CircAuthenticationKeyId=juniIsisSysL2CircAuthenticationKeyId, juniIsisSysMplsTeRtrIdIfIndex=juniIsisSysMplsTeRtrIdIfIndex, juniIsisCircL2HelloTimer=juniIsisCircL2HelloTimer, juniIsisSysAreaAuthenticationRowStatus=juniIsisSysAreaAuthenticationRowStatus, juniIsisCircMinLSPReTransInt=juniIsisCircMinLSPReTransInt, juniIsisSysL1CircAuthenticationStopAcceptTime=juniIsisSysL1CircAuthenticationStopAcceptTime, juniIsisCircL1CSNPInterval=juniIsisCircL1CSNPInterval, juniIsisCircIfIndex=juniIsisCircIfIndex, juniIsisSysType=juniIsisSysType, juniIsisCircType=juniIsisCircType, juniIsisCircL1HelloTimer=juniIsisCircL1HelloTimer, juniIsisCircL1HelloMultiplier=juniIsisCircL1HelloMultiplier, juniIsisSysDomainAuthenticationStartAcceptTime=juniIsisSysDomainAuthenticationStartAcceptTime, juniIsisSysL1CircAuthenticationStartAcceptTime=juniIsisSysL1CircAuthenticationStartAcceptTime, juniIsisSysL2CircAuthenticationSysInstance=juniIsisSysL2CircAuthenticationSysInstance, juniIsisSystemMgmtGroup=juniIsisSystemMgmtGroup, juniIsisSysVersion=juniIsisSysVersion, AuthTime=AuthTime, juniIsisSysOwnLSPPurges=juniIsisSysOwnLSPPurges, juniIsisSummAddrEntry=juniIsisSummAddrEntry, juniIsisSysLSPL1DbaseOloads=juniIsisSysLSPL1DbaseOloads, juniIsisMplsTeTunnelTable=juniIsisMplsTeTunnelTable, juniIsisTrapGroup=juniIsisTrapGroup)
(octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_range_constraint, constraints_intersection, constraints_union, single_value_constraint, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'ConstraintsIntersection', 'ConstraintsUnion', 'SingleValueConstraint', 'ValueSizeConstraint') (interface_index_or_zero,) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndexOrZero') (juni_mibs,) = mibBuilder.importSymbols('Juniper-MIBs', 'juniMibs') (notification_group, module_compliance, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance', 'ObjectGroup') (time_ticks, object_identity, notification_type, counter64, unsigned32, integer32, gauge32, iso, bits, mib_scalar, mib_table, mib_table_row, mib_table_column, mib_identifier, module_identity, counter32, ip_address) = mibBuilder.importSymbols('SNMPv2-SMI', 'TimeTicks', 'ObjectIdentity', 'NotificationType', 'Counter64', 'Unsigned32', 'Integer32', 'Gauge32', 'iso', 'Bits', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'MibIdentifier', 'ModuleIdentity', 'Counter32', 'IpAddress') (textual_convention, row_status, display_string, truth_value) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'RowStatus', 'DisplayString', 'TruthValue') juni_isis_mib = module_identity((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38)) juniIsisMIB.setRevisions(('2006-12-13 13:30', '2006-03-01 14:30', '2006-03-01 14:30', '2005-12-26 14:30', '2005-10-21 08:10', '2005-03-29 14:30', '2005-01-17 08:10', '2005-01-06 05:04', '2004-11-02 05:04', '2004-10-18 14:14', '2002-09-16 21:44', '2001-12-10 21:29', '2001-12-07 15:22', '2001-04-17 21:26', '2000-02-22 00:00')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: juniIsisMIB.setRevisionsDescriptions(('Modifiled width of juniIsisMplsTeTunnelName from 32 to 40', 'Added juniIsisSysReferenceBandwidth and juniIsisSysHighReferenceBandwidth to juniIsisSysEntry', 'Added juniIsisSysMplsTeSpfUseAnyBestPath to juniIsisSysEntry. Added juniIsisMplsTeTunnelTable to juniIsisSystemGroup', 'Default value for juniIsisSysLSPIgnoreErrors is changed from false to true. Default value for juniIsisCircMeshGroup =1 is removed', 'L2 Buffer Size is added and is made obsolete.', 'Updated the SystemID TEXTUAL-CONVENTION to be inline with standard - SystemID should now be exactly 6 bytes. - SystemID description modified. All zeros are invalid.', 'Updated the upper bound for Max Split Paths and removed the L2 Buffer Size', 'Modified the default value for the juniIsisSysSetOverloadBitStartupDuration object. This object has a meaning only if the ISIS overload bit is set.', 'Updated the upper bound for Authentication Key Id in Area Authentication, Domain Authentication, L1 Circuit and L2 Circuit Tables.', 'Changed the lower bound value & default value of juniIsisSysSetOverloadBitStartupDuration from 0 to 5.', 'Replaced Unisphere names with Juniper names.', 'Added MPLS support.', 'Added support for simple password protection.', 'Add circuit state object.', 'Initial version of this MIB module, based on draft-ietf-isis-wg-mib.')) if mibBuilder.loadTexts: juniIsisMIB.setLastUpdated('200603131430Z') if mibBuilder.loadTexts: juniIsisMIB.setOrganization('Juniper Networks, Inc.') if mibBuilder.loadTexts: juniIsisMIB.setContactInfo(' Juniper Networks, Inc. Postal: 10 Technology Park Drive Westford, MA 01886-3146 USA Tel: +1 978 589 5800 Email: mib@Juniper.net') if mibBuilder.loadTexts: juniIsisMIB.setDescription('The intermediate system to intermediate system (IS-IS) routing protocol MIB for Juniper Networks E-series products. This MIB provides objects for management of the IS-IS Routing protocol, as described in ISO 10589, when it is used to construct routing tables for IP networks, as described in RFC 1195.') class Osinsaddress(TextualConvention, OctetString): description = 'OSI Network Service Address, e.g. NSAP, Network Entity Title' status = 'current' subtype_spec = OctetString.subtypeSpec + value_size_constraint(0, 20) class Systemid(TextualConvention, OctetString): description = 'A system ID of exactly six bytes. Must not be all zeros.' status = 'current' subtype_spec = OctetString.subtypeSpec + value_size_constraint(6, 6) fixed_length = 6 class Operstate(TextualConvention, Integer32): description = 'Type used in enabling and disabling a row.' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('off', 1), ('on', 2)) class Authtime(TextualConvention, Integer32): description = 'Then number of seconds since Jan. 1 1970.' status = 'current' class Lspbuffsize(TextualConvention, Integer32): description = 'Integer sub range for LSP size.' status = 'current' subtype_spec = Integer32.subtypeSpec + value_range_constraint(512, 9180) class Levelstate(TextualConvention, Integer32): description = 'States of the ISIS protocol.' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3)) named_values = named_values(('off', 1), ('on', 2), ('waiting', 3)) class Supportedprotocol(TextualConvention, Integer32): description = 'Types of network protocol supported by Integrated ISIS. The values for ISO8473 and IP are those registered for these protocols in ISO TR9577.' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(129, 204, 205)) named_values = named_values(('iso8473', 129), ('ip', 204), ('ipV6', 205)) class Junidefaultmetric(TextualConvention, Integer32): description = 'Integer sub-range for default metric for single hop. The value is truncated to 63 when the juniIsisSysL1MetricStyle or juniIsisSysL2MetricStyle is set to juniIsisMetricStyleNarrow ' status = 'current' subtype_spec = Integer32.subtypeSpec + value_range_constraint(0, 16777215) class Othermetric(TextualConvention, Integer32): description = 'Integer sub-range for metrics other than the default metric for single hop.' status = 'current' subtype_spec = Integer32.subtypeSpec + value_range_constraint(0, 63) class Circuitid(TextualConvention, OctetString): description = 'ID for a circuit.' status = 'current' subtype_spec = OctetString.subtypeSpec + value_size_constraint(2, 9) class Ispriority(TextualConvention, Integer32): description = 'Integer sub-range for ISIS priority.' status = 'current' subtype_spec = Integer32.subtypeSpec + value_range_constraint(1, 127) juni_isis_objects = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1)) juni_isis_trap_group = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 2)) juni_isis_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 3)) juni_isis_system_group = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1)) juni_isis_circuit_group = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2)) juni_isis_sys_table = mib_table((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1)) if mibBuilder.loadTexts: juniIsisSysTable.setStatus('current') if mibBuilder.loadTexts: juniIsisSysTable.setDescription('The set of instances of the Integrated IS-IS protocol existing on the system.') juni_isis_sys_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1)).setIndexNames((0, 'Juniper-ISIS-MIB', 'juniIsisSysInstance')) if mibBuilder.loadTexts: juniIsisSysEntry.setReference('ISIS.poi cLNSISISBasic-P (1)') if mibBuilder.loadTexts: juniIsisSysEntry.setStatus('current') if mibBuilder.loadTexts: juniIsisSysEntry.setDescription('Each row defines information specific to a single instance of the protocol existing on the system.') juni_isis_sys_instance = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))) if mibBuilder.loadTexts: juniIsisSysInstance.setStatus('current') if mibBuilder.loadTexts: juniIsisSysInstance.setDescription('The unique identifier of the Integrated IS-IS instance to which this row corresponds. This object follows the index behaviour.') juni_isis_sys_version = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 24))).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisSysVersion.setReference('ISIS.aoi version (1)') if mibBuilder.loadTexts: juniIsisSysVersion.setStatus('current') if mibBuilder.loadTexts: juniIsisSysVersion.setDescription('The version number of the IS-IS protocol to which this instance conforms. This value must be set by the implementation when the row is valid.') juni_isis_sys_type = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('level1IS', 1), ('level1l2IS', 2), ('level2Only', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysType.setReference('ISIS.aoi iSType (2)') if mibBuilder.loadTexts: juniIsisSysType.setStatus('current') if mibBuilder.loadTexts: juniIsisSysType.setDescription('The type of this instance of the Integrated IS-IS protocol. This object follows the replaceOnlyWhileDisabled behaviour.') juni_isis_sys_id = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 4), system_id()).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysID.setReference('ISIS.aoi systemId (119)') if mibBuilder.loadTexts: juniIsisSysID.setStatus('current') if mibBuilder.loadTexts: juniIsisSysID.setDescription("The ID for this instance of the Integrated IS-IS protocol. This value is appended to each of the instance's area addresses to form the Network Entity Titles valid for this instance. The derivation of a value for this object is implementation-specific. Some implementations may assign values and not permit write MAX-ACCESS, others may require the value to be set manually.") juni_isis_sys_max_path_splits = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(1, 16)).clone(4)).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysMaxPathSplits.setReference('ISIS.aoi maximumPathSplits (3)') if mibBuilder.loadTexts: juniIsisSysMaxPathSplits.setStatus('current') if mibBuilder.loadTexts: juniIsisSysMaxPathSplits.setDescription('Maximum number of paths with equal routing metric value which it is permitted to split between. This object follows the replaceOnlyWhileDisabled behaviour.') juni_isis_sys_max_lsp_gen_int = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535)).clone(900)).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysMaxLSPGenInt.setReference('ISIS.aoi maximumLSPGenerationInterval (6)') if mibBuilder.loadTexts: juniIsisSysMaxLSPGenInt.setStatus('current') if mibBuilder.loadTexts: juniIsisSysMaxLSPGenInt.setDescription('Maximum interval, in seconds, between generated LSPs by this instance. This object follows the resettingTimer behaviour.') juni_isis_sys_orig_lsp_buff_size = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 7), lsp_buff_size().clone(1497)).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysOrigLSPBuffSize.setReference('ISIS.aoi originatingLSPBufferSize (9)') if mibBuilder.loadTexts: juniIsisSysOrigLSPBuffSize.setStatus('current') if mibBuilder.loadTexts: juniIsisSysOrigLSPBuffSize.setDescription('The maximum size of LSPs and SNPs originated by this instance. This object follows the replaceOnlyWhileDisabled behaviour.') juni_isis_sys_max_area_addresses = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 254)).clone(3)).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisSysMaxAreaAddresses.setReference('ISIS.aoi maximumAreaAddresses (4)') if mibBuilder.loadTexts: juniIsisSysMaxAreaAddresses.setStatus('current') if mibBuilder.loadTexts: juniIsisSysMaxAreaAddresses.setDescription('The maximum number of area addresses to be permitted for the area in which this instance exists. Note that all Intermediate Systems in the same area must have the same value configured for this attribute if correct operation is to be assumed. This object follows the replaceOnlyWhileDisabled behaviour.') juni_isis_sys_min_l1_lsp_gen_int = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 120)).clone(5)).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysMinL1LSPGenInt.setReference('ISIS.aoi minimumLSPGenerationInterval (11)') if mibBuilder.loadTexts: juniIsisSysMinL1LSPGenInt.setStatus('current') if mibBuilder.loadTexts: juniIsisSysMinL1LSPGenInt.setDescription('Minimum interval, in seconds, between successive generation of L1 LSPs with the same LSPID by this instance. This object follows the resettingTimer behaviour.') juni_isis_sys_min_l2_lsp_gen_int = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 120)).clone(5)).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysMinL2LSPGenInt.setReference('ISIS.aoi minimumLSPGenerationInterval (11)') if mibBuilder.loadTexts: juniIsisSysMinL2LSPGenInt.setStatus('current') if mibBuilder.loadTexts: juniIsisSysMinL2LSPGenInt.setDescription('Minimum interval, in seconds, between successive generation of L2 LSPs with the same LSPID by this instance. This object follows the resettingTimer behaviour.') juni_isis_sys_poll_es_hello_rate = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535)).clone(10)).setUnits('seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisSysPollESHelloRate.setReference('ISIS.aoi pollESHelloRate (13)') if mibBuilder.loadTexts: juniIsisSysPollESHelloRate.setStatus('current') if mibBuilder.loadTexts: juniIsisSysPollESHelloRate.setDescription('The value, in seconds, to be used for the suggested ES configuration timer in ISH PDUs when soliciting the ES configuration.') juni_isis_sys_wait_time = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 12), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535)).clone(60)).setUnits('seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisSysWaitTime.setReference('ISIS.aoi waitingTime (15)') if mibBuilder.loadTexts: juniIsisSysWaitTime.setStatus('current') if mibBuilder.loadTexts: juniIsisSysWaitTime.setDescription('Number of seconds to delay in waiting state before entering on state. This object follows the resettingTimer behaviour.') juni_isis_sys_oper_state = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 13), oper_state().clone('off')).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysOperState.setStatus('current') if mibBuilder.loadTexts: juniIsisSysOperState.setDescription('The operational state of this instance of the Integrated IS-IS protocol. Setting this object to the value on when its current value is off enables operation of this instance of the Integrated IS-IS protocol.') juni_isis_sys_l1_state = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 14), level_state()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisSysL1State.setReference('ISIS.aoi l1State (17)') if mibBuilder.loadTexts: juniIsisSysL1State.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL1State.setDescription('The state of the Level 1 database.') juni_isis_sys_corr_ls_ps = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 15), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisSysCorrLSPs.setReference('ISIS.aoi corruptedLSPsDetected (19)') if mibBuilder.loadTexts: juniIsisSysCorrLSPs.setStatus('current') if mibBuilder.loadTexts: juniIsisSysCorrLSPs.setDescription('Number of corrupted LSPs detected.') juni_isis_sys_lspl1_dbase_oloads = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 16), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisSysLSPL1DbaseOloads.setReference('ISIS.aoi lSPL1DatabaseOverloads (20)') if mibBuilder.loadTexts: juniIsisSysLSPL1DbaseOloads.setStatus('current') if mibBuilder.loadTexts: juniIsisSysLSPL1DbaseOloads.setDescription('Number of times the LSP L1 database has become overloaded.') juni_isis_sys_man_addr_drop_from_areas = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 17), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisSysManAddrDropFromAreas.setReference('ISIS.aoi manualAddressesDroppedFromArea (21)') if mibBuilder.loadTexts: juniIsisSysManAddrDropFromAreas.setStatus('current') if mibBuilder.loadTexts: juniIsisSysManAddrDropFromAreas.setDescription('Number of times a manual address has been dropped from the area.') juni_isis_sys_attmpt_to_ex_max_seq_nums = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 18), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisSysAttmptToExMaxSeqNums.setReference('ISIS.aoi attemptsToExceedmaximumSequenceNumber (22)') if mibBuilder.loadTexts: juniIsisSysAttmptToExMaxSeqNums.setStatus('current') if mibBuilder.loadTexts: juniIsisSysAttmptToExMaxSeqNums.setDescription('Number of times the IS has attempted to exceed the maximum sequence number.') juni_isis_sys_seq_num_skips = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 19), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisSysSeqNumSkips.setReference('ISIS.aoi sequenceNumberSkips (23)') if mibBuilder.loadTexts: juniIsisSysSeqNumSkips.setStatus('current') if mibBuilder.loadTexts: juniIsisSysSeqNumSkips.setDescription('Number of times a sequence number skip has occurred.') juni_isis_sys_own_lsp_purges = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 20), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisSysOwnLSPPurges.setReference('ISIS.aoi ownLSPPurges (24)') if mibBuilder.loadTexts: juniIsisSysOwnLSPPurges.setStatus('current') if mibBuilder.loadTexts: juniIsisSysOwnLSPPurges.setDescription("Number of times a zero-aged copy of the system's own LSP is received from some other node.") juni_isis_sys_id_field_len_mismatches = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 21), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisSysIDFieldLenMismatches.setReference('ISIS.aoi iDFieldLengthMismatches (25)') if mibBuilder.loadTexts: juniIsisSysIDFieldLenMismatches.setStatus('current') if mibBuilder.loadTexts: juniIsisSysIDFieldLenMismatches.setDescription('Number of times a PDU is received with a different value for ID field length to that of the receiving system.') juni_isis_sys_max_area_addr_mismatches = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 22), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisSysMaxAreaAddrMismatches.setReference('ISIS.aoi MaximumAreaAddressesMismatches (118)') if mibBuilder.loadTexts: juniIsisSysMaxAreaAddrMismatches.setStatus('current') if mibBuilder.loadTexts: juniIsisSysMaxAreaAddrMismatches.setDescription('Number of times a PDU is received with a different value for MaximumAreaAddresses from that of the receiving system.') juni_isis_sys_orig_l2_lsp_buff_size = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 23), lsp_buff_size().clone(1497)).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysOrigL2LSPBuffSize.setReference('ISIS.aoi originatingL2LSPBufferSize (26)') if mibBuilder.loadTexts: juniIsisSysOrigL2LSPBuffSize.setStatus('obsolete') if mibBuilder.loadTexts: juniIsisSysOrigL2LSPBuffSize.setDescription('The maximum size of Level 2 LSPs and SNPs originated by this system. This object follows the replaceOnlyWhileDisabled behaviour.') juni_isis_sys_l2_state = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 24), level_state()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisSysL2State.setReference('ISIS.aoi l2State (28)') if mibBuilder.loadTexts: juniIsisSysL2State.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL2State.setDescription('The state of the Level 2 database.') juni_isis_sys_lspl2_dbase_oloads = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 25), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisSysLSPL2DbaseOloads.setReference('ISIS.aoi lSPL2DatabaseOverloads (32)') if mibBuilder.loadTexts: juniIsisSysLSPL2DbaseOloads.setStatus('current') if mibBuilder.loadTexts: juniIsisSysLSPL2DbaseOloads.setDescription('Number of times the Level 2 LSP database has become overloaded.') juni_isis_sys_auth_fails = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 26), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisSysAuthFails.setStatus('current') if mibBuilder.loadTexts: juniIsisSysAuthFails.setDescription('The number of authentication failures recognized by this instance of the protocol.') juni_isis_sys_lsp_ignore_errors = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 27), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysLSPIgnoreErrors.setStatus('current') if mibBuilder.loadTexts: juniIsisSysLSPIgnoreErrors.setDescription('If true, allow the router to ignore IS-IS link state packets (LSPs) that are received with internal checksum errors rather than purging the LSPs.') juni_isis_sys_max_area_check = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 28), truth_value().clone('true')).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisSysMaxAreaCheck.setStatus('current') if mibBuilder.loadTexts: juniIsisSysMaxAreaCheck.setDescription('When on, enables checking of maximum area addresses per IS version of ISO10589.') juni_isis_sys_set_overload_bit = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 29), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysSetOverloadBit.setStatus('current') if mibBuilder.loadTexts: juniIsisSysSetOverloadBit.setDescription('Isis overload bit') juni_isis_sys_set_overload_bit_startup_duration = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 30), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(5, 86400)))).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysSetOverloadBitStartupDuration.setStatus('current') if mibBuilder.loadTexts: juniIsisSysSetOverloadBitStartupDuration.setDescription('Specifies the length in time of seconds to set the overload bit from startup. This object must be set together with juniIsisSysSetOverloadBit, otherwise the agent will return zero. Zero value for this object implies that the overload bit is not set. Zero value does not have any meaning for this object.') juni_isis_sys_max_lsp_lifetime = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 31), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535)).clone(1200)).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysMaxLspLifetime.setStatus('current') if mibBuilder.loadTexts: juniIsisSysMaxLspLifetime.setDescription('Specifies the maximum time (in seconds) a LSP will remain in the box without being refreshed before being considered invalid.') juni_isis_sys_l1_spf_interval = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 32), integer32().subtype(subtypeSpec=value_range_constraint(0, 120)).clone(5)).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysL1SpfInterval.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL1SpfInterval.setDescription('Minimum interval, in seconds, between level 1 SPF calculations.') juni_isis_sys_l2_spf_interval = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 33), integer32().subtype(subtypeSpec=value_range_constraint(0, 120)).clone(5)).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysL2SpfInterval.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL2SpfInterval.setDescription('Minimum interval, in seconds, between level 2 SPF calculations.') juni_isis_sys_ish_hold_time = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 34), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535)).clone(30)).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysIshHoldTime.setStatus('current') if mibBuilder.loadTexts: juniIsisSysIshHoldTime.setDescription('Specify a holdtime advertised in ESH/ISH PDUs.') juni_isis_sys_ish_config_timer = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 35), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535)).clone(10)).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysIshConfigTimer.setStatus('current') if mibBuilder.loadTexts: juniIsisSysIshConfigTimer.setDescription('Specify the rate of transmission for ESH and ISH packets.') juni_isis_sys_distribute_domain_wide = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 36), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysDistributeDomainWide.setStatus('current') if mibBuilder.loadTexts: juniIsisSysDistributeDomainWide.setDescription('When on, enables distribution of prefixes throughout a multi-level domain.') juni_isis_sys_distance = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 37), integer32().subtype(subtypeSpec=value_range_constraint(1, 255)).clone(115)).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysDistance.setStatus('current') if mibBuilder.loadTexts: juniIsisSysDistance.setDescription('The weight applied to IS-IS routes.') juni_isis_sys_l1_metric_style = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 38), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(2, 3, 4, 5, 6))).clone(namedValues=named_values(('juniIsisMetricStyleNarrow', 2), ('juniIsisMetricStyleNarrowTransition', 3), ('juniIsisMetricStyleTransition', 4), ('juniIsisMetricStyleWide', 5), ('juniIsisMetricStyleWideTransition', 6))).clone('juniIsisMetricStyleNarrow')).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysL1MetricStyle.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL1MetricStyle.setDescription('Specifies the type of IP reachability TLV to advertise in level 1 LSPs.') juni_isis_sys_l2_metric_style = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 39), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(2, 3, 4, 5, 6))).clone(namedValues=named_values(('juniIsisMetricStyleNarrow', 2), ('juniIsisMetricStyleNarrowTransition', 3), ('juniIsisMetricStyleTransition', 4), ('juniIsisMetricStyleWide', 5), ('juniIsisMetricStyleWideTransition', 6))).clone('juniIsisMetricStyleNarrow')).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysL2MetricStyle.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL2MetricStyle.setDescription('Specifies the type of IP reachability TLV to advertise in level 2 LSPs.') juni_isis_sys_iso_route_tag = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 40), octet_string().subtype(subtypeSpec=value_size_constraint(1, 19))).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysIsoRouteTag.setStatus('current') if mibBuilder.loadTexts: juniIsisSysIsoRouteTag.setDescription('The ISO routing area tag.') juni_isis_sys_mpls_te_level = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 41), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('levelNone', 0), ('level1', 1), ('level2', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysMplsTeLevel.setStatus('current') if mibBuilder.loadTexts: juniIsisSysMplsTeLevel.setDescription('Select flooding of MPLS traffic engineering link information into the specified ISIS level.') juni_isis_sys_mpls_te_rtr_id_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 42), interface_index_or_zero()).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysMplsTeRtrIdIfIndex.setStatus('current') if mibBuilder.loadTexts: juniIsisSysMplsTeRtrIdIfIndex.setDescription('Configure the stable router interface ID to designate it as TE capable. A value of zero is used to remove any configured router interface ID.') juni_isis_sys_mpls_te_spf_use_any_best_path = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 43), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysMplsTeSpfUseAnyBestPath.setStatus('current') if mibBuilder.loadTexts: juniIsisSysMplsTeSpfUseAnyBestPath.setDescription('Configure whether or not to consider spf paths when alternate tunnel path exists') juni_isis_sys_reference_bandwidth = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 44), gauge32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysReferenceBandwidth.setStatus('current') if mibBuilder.loadTexts: juniIsisSysReferenceBandwidth.setDescription('Configure the reference bandwitdth used to calculate the link cost in bits per second.If the reference bandwidth is greater than the maximum value reportable by this object then this object should report its maximum value (4,294,967,295) and juniIsisSysHighReferenceBandwidth must be used to report the reference bandwidth. ') juni_isis_sys_high_reference_bandwidth = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 1, 1, 45), gauge32().subtype(subtypeSpec=value_range_constraint(1, 1000000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysHighReferenceBandwidth.setStatus('current') if mibBuilder.loadTexts: juniIsisSysHighReferenceBandwidth.setDescription('Configure the reference bandwitdth in mega bits per second. It is used to calculate the link cost.') juni_isis_man_area_addr_table = mib_table((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 2)) if mibBuilder.loadTexts: juniIsisManAreaAddrTable.setReference('ISIS.aoi manualAreaAddresses (10)') if mibBuilder.loadTexts: juniIsisManAreaAddrTable.setStatus('current') if mibBuilder.loadTexts: juniIsisManAreaAddrTable.setDescription('The set of manual area addresses configured on this Intermediate System.') juni_isis_man_area_addr_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 2, 1)).setIndexNames((0, 'Juniper-ISIS-MIB', 'juniIsisManAreaAddrSysInstance'), (0, 'Juniper-ISIS-MIB', 'juniIsisManAreaAddr')) if mibBuilder.loadTexts: juniIsisManAreaAddrEntry.setStatus('current') if mibBuilder.loadTexts: juniIsisManAreaAddrEntry.setDescription('Each entry contains one area address manually configured on this system.') juni_isis_man_area_addr_sys_instance = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))) if mibBuilder.loadTexts: juniIsisManAreaAddrSysInstance.setStatus('current') if mibBuilder.loadTexts: juniIsisManAreaAddrSysInstance.setDescription('The unique identifier of the Integrated IS-IS instance to which this row corresponds. This object follows the index behaviour.') juni_isis_man_area_addr = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 2, 1, 2), osins_address()) if mibBuilder.loadTexts: juniIsisManAreaAddr.setStatus('current') if mibBuilder.loadTexts: juniIsisManAreaAddr.setDescription('A manually configured area address for this system. This object follows the index behaviour. Note: an index for the entry {1, {49.0001} active} in this table would be the ordered pair (1, (0x03 0x49 0x00 0x01)), as the length of an octet string is part of the OID.') juni_isis_man_area_addr_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 2, 1, 3), row_status().clone('active')).setMaxAccess('readcreate') if mibBuilder.loadTexts: juniIsisManAreaAddrRowStatus.setStatus('current') if mibBuilder.loadTexts: juniIsisManAreaAddrRowStatus.setDescription('The state of the juniIsisManAreaAddrEntry. This object follows the RowStatus behaviour. If an attempt is made to set this object to the value off when the corresponding juniIsisManAreaAddrEntry is the only valid entry for this instance and when the corresponding IS-IS instance has juniIsisSysOperState set to on then the attempt is rejected.') juni_isis_sys_prot_supp_table = mib_table((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 3)) if mibBuilder.loadTexts: juniIsisSysProtSuppTable.setStatus('current') if mibBuilder.loadTexts: juniIsisSysProtSuppTable.setDescription('This table contains the manually configured set of protocols supported by each instance of the Integrated ISIS protocol.') juni_isis_sys_prot_supp_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 3, 1)).setIndexNames((0, 'Juniper-ISIS-MIB', 'juniIsisSysProtSuppSysInstance'), (0, 'Juniper-ISIS-MIB', 'juniIsisSysProtSuppProtocol')) if mibBuilder.loadTexts: juniIsisSysProtSuppEntry.setStatus('current') if mibBuilder.loadTexts: juniIsisSysProtSuppEntry.setDescription('Each entry contains one protocol supported by an instance of the Integrated ISIS protocol.') juni_isis_sys_prot_supp_sys_instance = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))) if mibBuilder.loadTexts: juniIsisSysProtSuppSysInstance.setStatus('current') if mibBuilder.loadTexts: juniIsisSysProtSuppSysInstance.setDescription('The unique identifier of the Integrated IS-IS instance to which this row corresponds. This object follows the index behaviour.') juni_isis_sys_prot_supp_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 3, 1, 2), supported_protocol()) if mibBuilder.loadTexts: juniIsisSysProtSuppProtocol.setStatus('current') if mibBuilder.loadTexts: juniIsisSysProtSuppProtocol.setDescription('One supported protocol. This object follows the index behaviour.') juni_isis_sys_prot_supp_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 3, 1, 3), row_status().clone('active')).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisSysProtSuppRowStatus.setStatus('current') if mibBuilder.loadTexts: juniIsisSysProtSuppRowStatus.setDescription('The state of the juniIsisSysProtSuppEntry. This object follows the RowStatus behavior.') juni_isis_summ_addr_table = mib_table((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 4)) if mibBuilder.loadTexts: juniIsisSummAddrTable.setStatus('current') if mibBuilder.loadTexts: juniIsisSummAddrTable.setDescription('The set of IP summary addresses to use in forming the contents of Level 2 LSPs originated by this level 2 Intermediate System.') juni_isis_summ_addr_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 4, 1)).setIndexNames((0, 'Juniper-ISIS-MIB', 'juniIsisSummAddrSysInstance'), (0, 'Juniper-ISIS-MIB', 'juniIsisSummAddress'), (0, 'Juniper-ISIS-MIB', 'juniIsisSummAddrMask')) if mibBuilder.loadTexts: juniIsisSummAddrEntry.setStatus('current') if mibBuilder.loadTexts: juniIsisSummAddrEntry.setDescription('Each entry contains one IP summary address.') juni_isis_summ_addr_sys_instance = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 4, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))) if mibBuilder.loadTexts: juniIsisSummAddrSysInstance.setStatus('current') if mibBuilder.loadTexts: juniIsisSummAddrSysInstance.setDescription('The unique identifier of the Integrated IS-IS instance to which this row corresponds. This object follows the index behaviours.') juni_isis_summ_address = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 4, 1, 2), ip_address()) if mibBuilder.loadTexts: juniIsisSummAddress.setStatus('current') if mibBuilder.loadTexts: juniIsisSummAddress.setDescription('The IP Address value for this summary address. This object follows the index behaviour.') juni_isis_summ_addr_mask = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 4, 1, 3), ip_address()) if mibBuilder.loadTexts: juniIsisSummAddrMask.setStatus('current') if mibBuilder.loadTexts: juniIsisSummAddrMask.setDescription('The mask value for this summary address. This object follows the index behaviour.') juni_isis_summ_addr_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 4, 1, 4), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: juniIsisSummAddrRowStatus.setStatus('current') if mibBuilder.loadTexts: juniIsisSummAddrRowStatus.setDescription('The existence state of this summary address. This object follows the RowStatus behaviour.') juni_isis_summ_addr_oper_state = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 4, 1, 5), oper_state()).setMaxAccess('readcreate') if mibBuilder.loadTexts: juniIsisSummAddrOperState.setStatus('current') if mibBuilder.loadTexts: juniIsisSummAddrOperState.setDescription('The operational state of this entry. This object follows the operationalState behaviour. When the operational state changes if this would cause the contents of LSPs originated by the system to change then those new LSPs must be generated and sent as soon as is permitted by the ISIS protocol.') juni_isis_summ_addr_default_metric = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 4, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 16777214))).setMaxAccess('readcreate') if mibBuilder.loadTexts: juniIsisSummAddrDefaultMetric.setStatus('current') if mibBuilder.loadTexts: juniIsisSummAddrDefaultMetric.setDescription('The default metric value to announce this summary address with in Level 1 or 2 LSPs generated by this system. A Metric value of 0 indicates to use the lowest metric value amongst the routes being summarized. When advertising a metric value into a narrow domain (juniIsisSysL1MetricStyle or juniIsisSysL2MetricStyle is set to juniIsisMetricStyleNarrow) the value will be truncated to 63.') juni_isis_summ_addr_delay_metric = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 4, 1, 7), other_metric()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisSummAddrDelayMetric.setStatus('current') if mibBuilder.loadTexts: juniIsisSummAddrDelayMetric.setDescription('The delay metric value to announce this summary address with in Level 2 LSPs generated by this system. The value of zero is reserved to indicate that this metric is not supported.') juni_isis_summ_addr_expense_metric = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 4, 1, 8), other_metric()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisSummAddrExpenseMetric.setStatus('current') if mibBuilder.loadTexts: juniIsisSummAddrExpenseMetric.setDescription('The expense metric value to announce this summary address with in Level 2 LSPs generated by this system. The value of zero is reserved to indicate that this metric is not supported.') juni_isis_summ_addr_error_metric = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 4, 1, 9), other_metric()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisSummAddrErrorMetric.setStatus('current') if mibBuilder.loadTexts: juniIsisSummAddrErrorMetric.setDescription('The error metric value to announce this summary address with in Level n LSPs generated by this system. The value of zero is reserved to indicate that this metric is not supported.') juni_isis_summ_level = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 4, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('level1IS', 1), ('level2IS', 2), ('level1l2IS', 3)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: juniIsisSummLevel.setStatus('current') if mibBuilder.loadTexts: juniIsisSummLevel.setDescription('The level of database at which to annouce this summary.') juni_isis_circ_table = mib_table((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1)) if mibBuilder.loadTexts: juniIsisCircTable.setStatus('current') if mibBuilder.loadTexts: juniIsisCircTable.setDescription('The table of circuits used by each instance of Integrated IS-IS on this system.') juni_isis_circ_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1)).setIndexNames((0, 'Juniper-ISIS-MIB', 'juniIsisCircSysInstance'), (0, 'Juniper-ISIS-MIB', 'juniIsisCircIfIndex')) if mibBuilder.loadTexts: juniIsisCircEntry.setStatus('current') if mibBuilder.loadTexts: juniIsisCircEntry.setDescription('An juniIsisCircEntry exists for each circuit used by Integrated IS-IS on this system.') juni_isis_circ_sys_instance = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))) if mibBuilder.loadTexts: juniIsisCircSysInstance.setStatus('current') if mibBuilder.loadTexts: juniIsisCircSysInstance.setDescription('The unique identifier of the Integrated IS-IS instance to which this row corresponds. This object follows the index behaviour.') juni_isis_circ_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))) if mibBuilder.loadTexts: juniIsisCircIfIndex.setStatus('current') if mibBuilder.loadTexts: juniIsisCircIfIndex.setDescription('The value of ifIndex for the interface to which this circuit corresponds.') juni_isis_circ_local_id = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisCircLocalID.setStatus('current') if mibBuilder.loadTexts: juniIsisCircLocalID.setDescription('An identification that can be used in protocol packets to identify a circuit. Implementations may devise ways to assure that this value is suitable for the circuit it is used on. LAN packets only have space for 8 bits. Values of juniIsisCircLocalID do not need to be unique. They are only required to differ on LANs where the Intermediate System is the Designated Intermediate System.') juni_isis_circ_oper_state = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 4), oper_state().clone('off')).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisCircOperState.setStatus('current') if mibBuilder.loadTexts: juniIsisCircOperState.setDescription('The operational state of the circuit. This object follows the operationalState behaviour.') juni_isis_circ_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 5), row_status().clone('active')).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisCircRowStatus.setStatus('current') if mibBuilder.loadTexts: juniIsisCircRowStatus.setDescription('The existence state of this circuit. This object follows the RowStatus behaviour.') juni_isis_circ_type = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('broadcast', 1), ('ptToPt', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisCircType.setReference('ISIS.aoi type (33)') if mibBuilder.loadTexts: juniIsisCircType.setStatus('current') if mibBuilder.loadTexts: juniIsisCircType.setDescription('The type of the circuit. This object follows the replaceOnlyWhileDisabled behaviour. The type specified must be compatible with the type of the interface defined by the value of juniIsisCircIfIndex.') juni_isis_circ_l1_default_metric = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 7), juni_default_metric().clone(10)).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisCircL1DefaultMetric.setReference('ISIS.aoi l1DefaultMetric (35)') if mibBuilder.loadTexts: juniIsisCircL1DefaultMetric.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL1DefaultMetric.setDescription('The default metric value of this circuit for Level 1 traffic.') juni_isis_circ_l1_delay_metric = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 8), other_metric()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisCircL1DelayMetric.setReference('ISIS.aoi l1DelayMetric (36)') if mibBuilder.loadTexts: juniIsisCircL1DelayMetric.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL1DelayMetric.setDescription('The delay metric value of this circuit for Level 1 traffic. The value of zero is reserved to indicate that this metric is not supported.') juni_isis_circ_l1_expense_metric = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 9), other_metric()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisCircL1ExpenseMetric.setReference('ISIS.aoi l1ExpenseMetric (37)') if mibBuilder.loadTexts: juniIsisCircL1ExpenseMetric.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL1ExpenseMetric.setDescription('The expense metric value of this circuit for Level 1 traffic. The value of zero is reserved to indicate that this metric is not supported.') juni_isis_circ_l1_error_metric = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 10), other_metric()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisCircL1ErrorMetric.setReference('ISIS.aoi l1ErrorMetric (38)') if mibBuilder.loadTexts: juniIsisCircL1ErrorMetric.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL1ErrorMetric.setDescription('The error metric value of this circuit for Level 1 traffic. The value of zero is reserved to indicate that this metric is not supported.') juni_isis_circ_ext_domain = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 11), truth_value().clone('false')).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisCircExtDomain.setReference('ISIS.aoi externalDomain (46)') if mibBuilder.loadTexts: juniIsisCircExtDomain.setStatus('current') if mibBuilder.loadTexts: juniIsisCircExtDomain.setDescription('If true, suppress normal transmission of and interpretation of Intra-domain ISIS PDUs on this circuit.') juni_isis_circ_adj_changes = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 12), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisCircAdjChanges.setReference('ISIS.aoi changesInAdjacencyState (40)') if mibBuilder.loadTexts: juniIsisCircAdjChanges.setStatus('current') if mibBuilder.loadTexts: juniIsisCircAdjChanges.setDescription('The number of times an adjacency state change has occurred on this circuit.') juni_isis_circ_init_fails = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 13), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisCircInitFails.setReference('ISIS.aoi initializationFailures (41)') if mibBuilder.loadTexts: juniIsisCircInitFails.setStatus('current') if mibBuilder.loadTexts: juniIsisCircInitFails.setDescription('The number of times initialization of this circuit has failed.') juni_isis_circ_rej_adjs = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 14), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisCircRejAdjs.setReference('ISIS.aoi rejectedAdjacencies (42)') if mibBuilder.loadTexts: juniIsisCircRejAdjs.setStatus('current') if mibBuilder.loadTexts: juniIsisCircRejAdjs.setDescription('The number of times an adjacency has been rejected on this circuit.') juni_isis_circ_out_ctrl_pd_us = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 15), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisCircOutCtrlPDUs.setReference('ISIS.aoi iSISControlPDUsSent (43)') if mibBuilder.loadTexts: juniIsisCircOutCtrlPDUs.setStatus('current') if mibBuilder.loadTexts: juniIsisCircOutCtrlPDUs.setDescription('The number of IS-IS control PDUs sent on this circuit.') juni_isis_circ_in_ctrl_pd_us = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 16), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisCircInCtrlPDUs.setReference('ISIS.aoi controlPDUsReceived (44)') if mibBuilder.loadTexts: juniIsisCircInCtrlPDUs.setStatus('current') if mibBuilder.loadTexts: juniIsisCircInCtrlPDUs.setDescription('The number of IS-IS control PDUs received on this circuit.') juni_isis_circ_id_field_len_mismatches = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 17), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisCircIDFieldLenMismatches.setReference('ISIS.aoi iDFieldLengthMismatches (25)') if mibBuilder.loadTexts: juniIsisCircIDFieldLenMismatches.setStatus('current') if mibBuilder.loadTexts: juniIsisCircIDFieldLenMismatches.setDescription('The number of times an IS-IS control PDU with an ID field length different to that for this system has been received.') juni_isis_circ_l2_default_metric = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 18), juni_default_metric().clone(10)).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisCircL2DefaultMetric.setReference('ISIS.aoi l2DefaultMetric (68)') if mibBuilder.loadTexts: juniIsisCircL2DefaultMetric.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL2DefaultMetric.setDescription('The default metric value of this circuit for level 2 traffic.') juni_isis_circ_l2_delay_metric = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 19), other_metric()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisCircL2DelayMetric.setReference('ISIS.aoi l2DelayMetric (69)') if mibBuilder.loadTexts: juniIsisCircL2DelayMetric.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL2DelayMetric.setDescription('The delay metric value of this circuit for level 2 traffic. The value of zero is reserved to indicate that this metric is not supported.') juni_isis_circ_l2_expense_metric = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 20), other_metric()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisCircL2ExpenseMetric.setReference('ISIS.aoi l2ExpenseMetric (70)') if mibBuilder.loadTexts: juniIsisCircL2ExpenseMetric.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL2ExpenseMetric.setDescription('The expense metric value of this circuit for level 2 traffic. The value of zero is reserved to indicate that this metric is not supported.') juni_isis_circ_l2_error_metric = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 21), other_metric()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisCircL2ErrorMetric.setReference('ISIS.aoi l2ErrorMetric (71)') if mibBuilder.loadTexts: juniIsisCircL2ErrorMetric.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL2ErrorMetric.setDescription('The error metric value of this circuit for level 2 traffic. The value of zero is reserved to indicate that this metric is not supported.') juni_isis_circ_man_l2_only = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 22), truth_value().clone('false')).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisCircManL2Only.setReference('ISIS.aoi manualL2OnlyMode (72)') if mibBuilder.loadTexts: juniIsisCircManL2Only.setStatus('current') if mibBuilder.loadTexts: juniIsisCircManL2Only.setDescription('When true, indicates that this circuit is to be used only for level 2. This object follows the replaceOnlyWhileDisabled behaviour.') juni_isis_circ_l1_is_priority = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 23), is_priority().clone(64)).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisCircL1ISPriority.setReference('ISIS.aoi l1IntermediateSystemPriority (47)') if mibBuilder.loadTexts: juniIsisCircL1ISPriority.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL1ISPriority.setDescription('The priority for becoming LAN Level 1 Deignated Intermediate System on a broadcast circuit.') juni_isis_circ_l1_circ_id = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 24), circuit_id()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisCircL1CircID.setReference('ISIS.aoi l1CircuitID (48)') if mibBuilder.loadTexts: juniIsisCircL1CircID.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL1CircID.setDescription('The LAN ID allocated by the LAN Level 1 Designated Intermediate System. Where this system is not aware of the value (because it is not participating in the Level 1 Designated Intermediate System election), this object has the value which would be proposed for this circuit (i.e. the concatenation of the local system ID and the one octet local Circuit ID for this circuit.') juni_isis_circ_l1_des_is = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 25), system_id()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisCircL1DesIS.setReference('ISIS.aoi l1DesignatedIntermediateSystem (49)') if mibBuilder.loadTexts: juniIsisCircL1DesIS.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL1DesIS.setDescription('The ID of the LAN Level 1 Designated Intermediate System on this circuit. If, for any reason this system is not partaking in the relevant Designated Intermediate System election process, then the value returned is the zero length OCTET STRING.') juni_isis_circ_lanl1_des_is_changes = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 26), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisCircLANL1DesISChanges.setReference('ISIS.aoi lanL1DesignatedIntermediateSystemChanges (50)') if mibBuilder.loadTexts: juniIsisCircLANL1DesISChanges.setStatus('current') if mibBuilder.loadTexts: juniIsisCircLANL1DesISChanges.setDescription('The number of times the LAN Level 1 Designated Intermediate System has changed.') juni_isis_circ_l2_is_priority = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 27), is_priority().clone(64)).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisCircL2ISPriority.setReference('ISIS.aoi l2IntermediateSystemPriority (73)') if mibBuilder.loadTexts: juniIsisCircL2ISPriority.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL2ISPriority.setDescription('The priority for becoming LAN level 2 Designated Intermediate System.') juni_isis_circ_l2_circ_id = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 28), circuit_id()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisCircL2CircID.setReference('ISIS.aoi l2CircuitID (74)') if mibBuilder.loadTexts: juniIsisCircL2CircID.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL2CircID.setDescription('The LAN ID allocated by the LAN Level 2 Designated Intermediate System. Where this system is not aware of this value (because it is not participating in the Level 2 Designated Intermediate System election), this object has the value which would be proposed for this circuit (i.e. the concatenation of the local system ID and the one octet local Circuit ID for this circuit.') juni_isis_circ_l2_des_is = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 29), system_id()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisCircL2DesIS.setReference('ISIS.aoi l2DesignatedIntermediateSystem (75)') if mibBuilder.loadTexts: juniIsisCircL2DesIS.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL2DesIS.setDescription('The ID of the LAN Level 2 Designated Intermediate System on this circuit. If, for any reason, this system is not partaking in the relevant Designated Intermediate System election process, then the value returned is the zero length OCTET STRING.') juni_isis_circ_lanl2_des_is_changes = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 30), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisCircLANL2DesISChanges.setReference('ISIS.aoi lanL2DesignatedIntermediateSystemChanges (76)') if mibBuilder.loadTexts: juniIsisCircLANL2DesISChanges.setStatus('current') if mibBuilder.loadTexts: juniIsisCircLANL2DesISChanges.setDescription('The number of times the LAN Level 2 Designated Intermediate System has changed.') juni_isis_circ_mc_addr = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 31), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('group', 1), ('functional', 2))).clone('group')).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisCircMCAddr.setStatus('current') if mibBuilder.loadTexts: juniIsisCircMCAddr.setDescription('Specifies which type of multicast address will be used for sending HELLO PDUs on this circuit.') juni_isis_circ_pt_to_pt_circ_id = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 32), circuit_id()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisCircPtToPtCircID.setReference('ISIS.aoi ptPtCircuitID (51)') if mibBuilder.loadTexts: juniIsisCircPtToPtCircID.setStatus('current') if mibBuilder.loadTexts: juniIsisCircPtToPtCircID.setDescription('The ID of the circuit allocated during initialization. If no value has been negotiated (either because the adjacency is to an End System, or because initialization has not yet successfully completed), this object has the value which would be proposed for this circuit (i.e. the concatenation of the local system ID and the one octet local Circuit ID for this circuit.') juni_isis_circ_l1_hello_timer = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 33), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535)).clone(10)).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisCircL1HelloTimer.setReference('ISIS.aoi iSISHelloTimer (45)') if mibBuilder.loadTexts: juniIsisCircL1HelloTimer.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL1HelloTimer.setDescription('Maximum period, in seconds, between Level 1 IIH PDUs on multiaccess networks. It is also used as the period between Hellos on point to point circuits. This object follows the resettingTimer behaviour.') juni_isis_circ_l2_hello_timer = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 34), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535)).clone(10)).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisCircL2HelloTimer.setReference('ISIS.aoi iSISHelloTimer (45)') if mibBuilder.loadTexts: juniIsisCircL2HelloTimer.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL2HelloTimer.setDescription('Maximum period, in seconds, between Level 1 IIH PDUs on multiaccess networks. This object follows the resettingTimer behaviour.') juni_isis_circ_l1_hello_multiplier = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 35), integer32().subtype(subtypeSpec=value_range_constraint(3, 1000)).clone(3)).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisCircL1HelloMultiplier.setReference('ISIS.aoi iSISHelloTimer (45)') if mibBuilder.loadTexts: juniIsisCircL1HelloMultiplier.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL1HelloMultiplier.setDescription('This value is multiplied by the corresponding HelloTimer and the result in seconds (rounded up) is used as the holding time in transmitted hellos, to be used by receivers of hello packets from this IS.') juni_isis_circ_l2_hello_multiplier = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 36), integer32().subtype(subtypeSpec=value_range_constraint(3, 1000)).clone(3)).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisCircL2HelloMultiplier.setReference('ISIS.aoi iSISHelloTimer (45)') if mibBuilder.loadTexts: juniIsisCircL2HelloMultiplier.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL2HelloMultiplier.setDescription('This value is multiplied by the corresponding HelloTimer and the result in seconds (rounded up) is used as the holding time in transmitted hellos, to be used by receivers of hello packets from this IS') juni_isis_circ_min_lsp_trans_int = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 37), unsigned32().clone(33)).setUnits('milliseconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisCircMinLSPTransInt.setReference('ISIS.aoi minimumBroadcastLSPTransmissionInterval (7)') if mibBuilder.loadTexts: juniIsisCircMinLSPTransInt.setStatus('current') if mibBuilder.loadTexts: juniIsisCircMinLSPTransInt.setDescription('Minimum interval, in milliseconds, between transmission of LSPs on a circuit. This object follows the resettingTimer behaviour. This timer shall be capable of a resolution not coarser than 10 milliseconds.') juni_isis_circ_min_lsp_re_trans_int = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 38), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535)).clone(5)).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisCircMinLSPReTransInt.setReference('ISIS.aoi minimumLSPTransmissionInterval (5)') if mibBuilder.loadTexts: juniIsisCircMinLSPReTransInt.setStatus('current') if mibBuilder.loadTexts: juniIsisCircMinLSPReTransInt.setDescription('Minimum interval, in seconds, between re-transmission of an Level 1 or 2 LSP. This object follows the resettingTimer behaviour.') juni_isis_circ_l1_csnp_interval = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 39), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535)).clone(10)).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisCircL1CSNPInterval.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL1CSNPInterval.setDescription('Interval of time, in seconds, between transmission of Level 1 CSNPs on multiaccess networks if this router is the designated router. On point-to-point networks the default is to not transmit CSNPs. Hence CSNP interval will be 0 for point-to-point networks.') juni_isis_circ_l2_csnp_interval = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 40), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535)).clone(10)).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisCircL2CSNPInterval.setStatus('current') if mibBuilder.loadTexts: juniIsisCircL2CSNPInterval.setDescription('Interval of time, in seconds, between transmission of Level 2 CSNPs on multiaccess networks if this router is the designated router. On point-to-point networks the default is to not transmit CSNPs. Hence CSNP interval will be 0 for point-to-point networks.') juni_isis_circ_lsp_throttle = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 41), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535)).clone(33)).setUnits('milliseconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisCircLSPThrottle.setStatus('current') if mibBuilder.loadTexts: juniIsisCircLSPThrottle.setDescription('Minimal interval of time, in milliseconds, between retransmissions of LSPs on a point to point interface.') juni_isis_circ_mesh_group_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 42), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('inactive', 1), ('blocked', 2), ('set', 3))).clone('inactive')).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisCircMeshGroupEnabled.setStatus('current') if mibBuilder.loadTexts: juniIsisCircMeshGroupEnabled.setDescription('Is this port a member of a mesh group, or blocked? Circuits in the same mesh group act as a virtual multiaccess network. LSPs seen on one circuit in a mesh group will not be flooded to another circuit in the same mesh group.') juni_isis_circ_mesh_group = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 43), unsigned32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisCircMeshGroup.setStatus('current') if mibBuilder.loadTexts: juniIsisCircMeshGroup.setDescription('Circuits in the same mesh group act as a virtual multiaccess network. LSPs seen on one circuit in a mesh group will not be flooded to another circuit in the same mesh group. If juniIsisCircMeshGroupEnabled is false, this value is ignored. Default value returned as 0 has no significance for this variable.') juni_isis_circ_level = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 44), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('level1IS', 0), ('level1l2IS', 1), ('level2Only', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisCircLevel.setReference('ISIS.aoi iSType(2)') if mibBuilder.loadTexts: juniIsisCircLevel.setStatus('current') if mibBuilder.loadTexts: juniIsisCircLevel.setDescription('The type of this circuit. This object follows the replaceOnlyWhileDisabled behavior.') juni_isis_circ_state = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 1, 1, 45), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('isisCircuitDown', 1), ('isisCircuitUp', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisCircState.setStatus('current') if mibBuilder.loadTexts: juniIsisCircState.setDescription('The operational state of the circuit.') juni_isis_circ_bfd_table = mib_table((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 4)) if mibBuilder.loadTexts: juniIsisCircBFDTable.setStatus('current') if mibBuilder.loadTexts: juniIsisCircBFDTable.setDescription('The Juniper ISIS circuit table describes the BFD-specific characteristics of interfaces.') juni_isis_circ_bfd_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 4, 1)) juniIsisCircEntry.registerAugmentions(('Juniper-ISIS-MIB', 'juniIsisCircBFDEntry')) juniIsisCircBFDEntry.setIndexNames(*juniIsisCircEntry.getIndexNames()) if mibBuilder.loadTexts: juniIsisCircBFDEntry.setStatus('current') if mibBuilder.loadTexts: juniIsisCircBFDEntry.setDescription('The Juniper ISIS circuit table describes the BFD-specific characteristics of one interface.') juni_isis_circ_bfd_enable = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 4, 1, 1), truth_value().clone('false')).setMaxAccess('readcreate') if mibBuilder.loadTexts: juniIsisCircBfdEnable.setStatus('current') if mibBuilder.loadTexts: juniIsisCircBfdEnable.setDescription('This variable indicates whether BFD session on the interface is active or not') juni_isis_circ_bfd_min_rx_interval = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 4, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(100, 65535)).clone(300)).setMaxAccess('readcreate') if mibBuilder.loadTexts: juniIsisCircBfdMinRxInterval.setStatus('current') if mibBuilder.loadTexts: juniIsisCircBfdMinRxInterval.setDescription('This variable specifies upper-limit on rate local-system requires remote-system to transmit bfd control-packets [milliseconds]') juni_isis_circ_bfd_min_tx_interval = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 4, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(100, 65535)).clone(300)).setMaxAccess('readcreate') if mibBuilder.loadTexts: juniIsisCircBfdMinTxInterval.setStatus('current') if mibBuilder.loadTexts: juniIsisCircBfdMinTxInterval.setDescription('This variable specifies lower-limit on rate local-system requires remote-system to transmit bfd control-packets [milliseconds]') juni_isis_circ_bfd_multiplier = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 4, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 255)).clone(3)).setMaxAccess('readcreate') if mibBuilder.loadTexts: juniIsisCircBfdMultiplier.setStatus('current') if mibBuilder.loadTexts: juniIsisCircBfdMultiplier.setDescription('This variable specifies detection-multiplier ') juni_isis_sys_host_name_table = mib_table((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 5)) if mibBuilder.loadTexts: juniIsisSysHostNameTable.setStatus('current') if mibBuilder.loadTexts: juniIsisSysHostNameTable.setDescription('This table contains the manually configured set of host name to system ID aliases supported by each instance of the Integrated ISIS protocol.') juni_isis_sys_host_name_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 5, 1)).setIndexNames((0, 'Juniper-ISIS-MIB', 'juniIsisSysHostNameSysInstance'), (0, 'Juniper-ISIS-MIB', 'juniIsisSysHostNameSysId')) if mibBuilder.loadTexts: juniIsisSysHostNameEntry.setStatus('current') if mibBuilder.loadTexts: juniIsisSysHostNameEntry.setDescription('Each entry contains one name to system ID alias supported by an instance of the Integrated ISIS protocol.') juni_isis_sys_host_name_sys_instance = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 5, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))) if mibBuilder.loadTexts: juniIsisSysHostNameSysInstance.setStatus('current') if mibBuilder.loadTexts: juniIsisSysHostNameSysInstance.setDescription('The unique identifier of the Integrated IS-IS instance to which this row corresponds. This object follows the index behaviour.') juni_isis_sys_host_name_sys_id = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 5, 1, 2), system_id()) if mibBuilder.loadTexts: juniIsisSysHostNameSysId.setStatus('current') if mibBuilder.loadTexts: juniIsisSysHostNameSysId.setDescription('The ID for the system which this name will be assigned.') juni_isis_sys_host_name_area_addr = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 5, 1, 3), osins_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: juniIsisSysHostNameAreaAddr.setStatus('current') if mibBuilder.loadTexts: juniIsisSysHostNameAreaAddr.setDescription('A configured area address for the system which this name will be assigned. This object follows the index behaviour. Note: an index for the entry {1, {49.0001} active} in this table would be the ordered pair (1, (0x03 0x49 0x00 0x01)), as the length of an Octet string is part of the OID.') juni_isis_sys_host_name_name = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 5, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysHostNameName.setStatus('current') if mibBuilder.loadTexts: juniIsisSysHostNameName.setDescription('A string to use when displaying system data with this system ID.') juni_isis_sys_host_name_type = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 5, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('hostNameTypeStatic', 1), ('hostNameTypeDynamic', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisSysHostNameType.setStatus('current') if mibBuilder.loadTexts: juniIsisSysHostNameType.setDescription('The type of host name entry.') juni_isis_sys_host_name_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 5, 1, 6), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysHostNameRowStatus.setStatus('current') if mibBuilder.loadTexts: juniIsisSysHostNameRowStatus.setDescription('The status of this host name entry. This object follows the RowStatus behaviour.') juni_isis_sys_area_authentication_table = mib_table((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 6)) if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationTable.setStatus('current') if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationTable.setDescription('This table contains the manually configured set of area authentication keys supported by each instance of the Integrated ISIS protocol.') juni_isis_sys_area_authentication_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 6, 1)).setIndexNames((0, 'Juniper-ISIS-MIB', 'juniIsisSysAreaAuthenticationSysInstance'), (0, 'Juniper-ISIS-MIB', 'juniIsisSysAreaAuthenticationKeyId')) if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationEntry.setStatus('current') if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationEntry.setDescription('Each entry contains one area authentication key supported by an instance of the Integrated ISIS protocol.') juni_isis_sys_area_authentication_sys_instance = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 6, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))) if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationSysInstance.setStatus('current') if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationSysInstance.setDescription('The unique identifier of the Integrated IS-IS instance to which this row corresponds. This object follows the index behaviour.') juni_isis_sys_area_authentication_key_id = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 6, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))) if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationKeyId.setStatus('current') if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationKeyId.setDescription('The unique identifier of the instance to which this row corresponds. This object follows the index behaviour.') juni_isis_sys_area_authentication_pwd = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 6, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(0, 20))).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationPwd.setStatus('current') if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationPwd.setDescription('The value to be used as the Authentication Key in Level 1 Link State Packets whenever the value of juniIsisSysAreaAuthenticationKeyType has a value of plaintext or hmacMd5. A modification of juniIsisSysAreaAuthenticationKeyType does not modify the juniIsisSysAreaAuthenticationPwd value. Reading this object always results in an OCTET STRING of length zero; authentication may not be bypassed by reading the MIB object.') juni_isis_sys_area_authentication_key_type = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 6, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('plaintext', 1), ('hmacMd5', 2))).clone('hmacMd5')).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationKeyType.setStatus('current') if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationKeyType.setDescription('What authentication scheme, if any, is used to protect Level 1 Link State packets and sequence number packets') juni_isis_sys_area_authentication_start_accept_time = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 6, 1, 5), auth_time()).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationStartAcceptTime.setStatus('current') if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationStartAcceptTime.setDescription('The date and time when this authentication key will start to be used to validate level 1 LSPs and SNPs received. The Default value the start accept time will be the current time when the key was created') juni_isis_sys_area_authentication_start_generate_time = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 6, 1, 6), auth_time()).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationStartGenerateTime.setStatus('current') if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationStartGenerateTime.setDescription('The date and time when this authentication key will start to be used to authenticate level 1 LSPs and SNPs transmitted. The Default value the start accept time will be the current time when the key was created + 2 minutes') juni_isis_sys_area_authentication_stop_accept_time = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 6, 1, 7), auth_time()).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationStopAcceptTime.setStatus('current') if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationStopAcceptTime.setDescription('The date and time when this authentication key will stop being accepted as a valid level 1 LSP and SNP key received. A value of zero indicates the key will never stop being used to authenticate packets.') juni_isis_sys_area_authentication_stop_generate_time = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 6, 1, 8), auth_time()).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationStopGenerateTime.setStatus('current') if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationStopGenerateTime.setDescription('The date and time when this authentication key will stop being used to authenticate level 1 LSPs and SNPs transmitted. A value of zero indicates the key will never stop being used to authenticate packets.') juni_isis_sys_area_authentication_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 6, 1, 9), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationRowStatus.setStatus('current') if mibBuilder.loadTexts: juniIsisSysAreaAuthenticationRowStatus.setDescription('The existence state of this authentication key. This object follows the RowStatus behaviour.') juni_isis_sys_domain_authentication_table = mib_table((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 7)) if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationTable.setStatus('current') if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationTable.setDescription('This table contains the manually configured set of domain authentication keys supported by each instance of the Integrated ISIS protocol.') juni_isis_sys_domain_authentication_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 7, 1)).setIndexNames((0, 'Juniper-ISIS-MIB', 'juniIsisSysDomainAuthenticationSysInstance'), (0, 'Juniper-ISIS-MIB', 'juniIsisSysDomainAuthenticationKeyId')) if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationEntry.setStatus('current') if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationEntry.setDescription('Each entry contains one domain authentication key supported by an instance of the Integrated ISIS protocol.') juni_isis_sys_domain_authentication_sys_instance = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 7, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))) if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationSysInstance.setStatus('current') if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationSysInstance.setDescription('The unique identifier of the Integrated IS-IS instance to which this row corresponds. This object follows the index behaviour.') juni_isis_sys_domain_authentication_key_id = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 7, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))) if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationKeyId.setStatus('current') if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationKeyId.setDescription('The unique identifier of the instance to which this row corresponds. This object follows the index behaviour.') juni_isis_sys_domain_authentication_pwd = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 7, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(0, 20))).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationPwd.setStatus('current') if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationPwd.setDescription('The value to be used as the Authentication Key in Level 2 Link State Packets whenever the value of juniIsisSysDomainAuthenticationKeyType has a value of plaintext or hmacMd5. A modification of juniIsisSysDomainAuthenticationKeyType does not modify the juniIsisSysDomainAuthenticationPwd value. Reading this object always results in an OCTET STRING of length zero; authentication may not be bypassed by reading the MIB object.') juni_isis_sys_domain_authentication_key_type = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 7, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('plaintext', 1), ('hmacMd5', 2))).clone('hmacMd5')).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationKeyType.setStatus('current') if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationKeyType.setDescription('What authentication scheme, if any, is used to protect Level 2 Link State packets and Sequence Number packets') juni_isis_sys_domain_authentication_start_accept_time = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 7, 1, 5), auth_time()).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationStartAcceptTime.setStatus('current') if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationStartAcceptTime.setDescription('The date and time when this authentication key will start to be used to validate level 2 LSPs and SNPs received. The Default value the start accept time will be the current time when the key was created') juni_isis_sys_domain_authentication_start_generate_time = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 7, 1, 6), auth_time()).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationStartGenerateTime.setStatus('current') if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationStartGenerateTime.setDescription('The date and time when this authentication key will start to be used to authenticate level 2 LSPs and SNPs transmitted. The Default value the start accept time will be the current time when the key was created + 2 minutes') juni_isis_sys_domain_authentication_stop_accept_time = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 7, 1, 7), auth_time()).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationStopAcceptTime.setStatus('current') if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationStopAcceptTime.setDescription('The date and time when this authentication key will stop being accepted as a valid level 2 LSP and SNP key received. A value of zero indicates the key will never stop being used to authenticate packets.') juni_isis_sys_domain_authentication_stop_generate_time = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 7, 1, 8), auth_time()).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationStopGenerateTime.setStatus('current') if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationStopGenerateTime.setDescription('The date and time when this authentication key will stop being used to authenticate level 2 LSPs and SNPs transmitted. A value of zero indicates the key will never stop being used to authenticate packets.') juni_isis_sys_domain_authentication_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 7, 1, 9), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationRowStatus.setStatus('current') if mibBuilder.loadTexts: juniIsisSysDomainAuthenticationRowStatus.setDescription('The existence state of this authentication key. This object follows the RowStatus behaviour.') juni_isis_sys_l1_circ_authentication_table = mib_table((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 2)) if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationTable.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationTable.setDescription('This table contains the manually configured set of Level 1 Circuit authentication keys supported by each instance of the Integrated ISIS protocol.') juni_isis_sys_l1_circ_authentication_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 2, 1)).setIndexNames((0, 'Juniper-ISIS-MIB', 'juniIsisSysL1CircAuthenticationSysInstance'), (0, 'Juniper-ISIS-MIB', 'juniIsisSysL1CircAuthenticationIfIndex'), (0, 'Juniper-ISIS-MIB', 'juniIsisSysL1CircAuthenticationKeyId')) if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationEntry.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationEntry.setDescription('Each entry contains one Level 1 circuit authentication key supported by an instance of the Integrated ISIS protocol.') juni_isis_sys_l1_circ_authentication_sys_instance = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))) if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationSysInstance.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationSysInstance.setDescription('The unique identifier of the Integrated IS-IS instance to which this row corresponds. This object follows the index behaviour.') juni_isis_sys_l1_circ_authentication_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))) if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationIfIndex.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationIfIndex.setDescription('The value of ifIndex for the interface to which this circuit corresponds.') juni_isis_sys_l1_circ_authentication_key_id = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 2, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))) if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationKeyId.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationKeyId.setDescription('The unique identifier of the instance to which this row corresponds. This object follows the index behaviour.') juni_isis_sys_l1_circ_authentication_pwd = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 2, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(0, 20))).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationPwd.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationPwd.setDescription('The value to be used as the Authentication Key in Level 1 Hello Packets whenever the value of juniIsisSysL1CircAuthenticationKeyType has a value of hmacMd5. A modification of juniIsisSysL1CircAuthenticationKeyType does not modify the juniIsisSysL1CircAuthenticationPwd value. Reading this object always results in an OCTET STRING of length zero; authentication may not be bypassed by reading the MIB object.') juni_isis_sys_l1_circ_authentication_key_type = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('plaintext', 1), ('hmacMd5', 2))).clone('hmacMd5')).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationKeyType.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationKeyType.setDescription('What authentication scheme, if any, is used to protect Level 1 hello packets.') juni_isis_sys_l1_circ_authentication_start_accept_time = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 2, 1, 6), auth_time()).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationStartAcceptTime.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationStartAcceptTime.setDescription('The date and time when this authentication key will start to be used to validate level 1 IIH packets received. The Default value the start accept time will be the current time when the key was created.') juni_isis_sys_l1_circ_authentication_start_generate_time = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 2, 1, 7), auth_time()).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationStartGenerateTime.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationStartGenerateTime.setDescription('The date and time when this authentication key will start to be used to authenticate level 1 IIH packets transmitted. The Default value the start accept time will be the current time when the key was created + 2 minutes.') juni_isis_sys_l1_circ_authentication_stop_accept_time = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 2, 1, 8), auth_time()).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationStopAcceptTime.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationStopAcceptTime.setDescription('The date and time when this authentication key will stop being accepted as a valid level 1 IIH packets key received. A value of zero indicates the key will never stop being used to authenticate packets.') juni_isis_sys_l1_circ_authentication_stop_generate_time = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 2, 1, 9), auth_time()).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationStopGenerateTime.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationStopGenerateTime.setDescription('The date and time when this authentication key will stop being used to authenticate level 1 IIH packets transmitted. A value of zero indicates the key will never stop being used to authenticate packets.') juni_isis_sys_l1_circ_authentication_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 2, 1, 10), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationRowStatus.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL1CircAuthenticationRowStatus.setDescription('The existence state of this authentication key. This object follows the RowStatus behaviour.') juni_isis_sys_l2_circ_authentication_table = mib_table((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 3)) if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationTable.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationTable.setDescription('This table contains the manually configured set of Level 2 Circuit authentication keys supported by each instance of the Integrated ISIS protocol.') juni_isis_sys_l2_circ_authentication_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 3, 1)).setIndexNames((0, 'Juniper-ISIS-MIB', 'juniIsisSysL2CircAuthenticationSysInstance'), (0, 'Juniper-ISIS-MIB', 'juniIsisSysL2CircAuthenticationIfIndex'), (0, 'Juniper-ISIS-MIB', 'juniIsisSysL2CircAuthenticationKeyId')) if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationEntry.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationEntry.setDescription('Each entry contains one Level 2 circuit authentication key supported by an instance of the Integrated ISIS protocol.') juni_isis_sys_l2_circ_authentication_sys_instance = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))) if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationSysInstance.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationSysInstance.setDescription('The unique identifier of the Integrated IS-IS instance to which this row corresponds. This object follows the index behaviour.') juni_isis_sys_l2_circ_authentication_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 3, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))) if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationIfIndex.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationIfIndex.setDescription('The value of ifIndex for the interface to which this circuit corresponds.') juni_isis_sys_l2_circ_authentication_key_id = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 3, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))) if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationKeyId.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationKeyId.setDescription('The unique identifier of the instance to which this row corresponds. This object follows the index behaviour.') juni_isis_sys_l2_circ_authentication_pwd = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 3, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(0, 20))).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationPwd.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationPwd.setDescription('The value to be used as the Authentication Key in Level 2 Hello Packets whenever the value of juniIsisSysL2CircAuthenticationKeyType has a value of hmacMd5. A modification of juniIsisSysL2CircAuthenticationKeyType does not modify the juniIsisSysL2CircAuthenticationPwd value. Reading this object always results in an OCTET STRING of length zero; authentication may not be bypassed by reading the MIB object.') juni_isis_sys_l2_circ_authentication_key_type = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 3, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('plaintext', 1), ('hmacMd5', 2))).clone('hmacMd5')).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationKeyType.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationKeyType.setDescription('What authentication scheme, if any, is used to protect Level 2 hello packets.') juni_isis_sys_l2_circ_authentication_start_accept_time = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 3, 1, 6), auth_time()).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationStartAcceptTime.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationStartAcceptTime.setDescription('The date and time when this authentication key will start to be used to validate level 2 IIH packets received. The Default value the start accept time will be the current time when the key was created.') juni_isis_sys_l2_circ_authentication_start_generate_time = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 3, 1, 7), auth_time()).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationStartGenerateTime.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationStartGenerateTime.setDescription('The date and time when this authentication key will start to be used to authenticate level 2 IIH packets transmitted. The Default value the start accept time will be the current time when the key was created + 2 minutes.') juni_isis_sys_l2_circ_authentication_stop_accept_time = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 3, 1, 8), auth_time()).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationStopAcceptTime.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationStopAcceptTime.setDescription('The date and time when this authentication key will stop being accepted as a valid level 2 IIH packets key received. A value of zero indicates the key will never stop being used to authenticate packets.') juni_isis_sys_l2_circ_authentication_stop_generate_time = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 3, 1, 9), auth_time()).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationStopGenerateTime.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationStopGenerateTime.setDescription('The date and time when this authentication key will stop being used to authenticate level 2 IIH packets transmitted. A value of zero indicates the key will never stop being used to authenticate packets.') juni_isis_sys_l2_circ_authentication_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 2, 3, 1, 10), row_status().clone('active')).setMaxAccess('readwrite') if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationRowStatus.setStatus('current') if mibBuilder.loadTexts: juniIsisSysL2CircAuthenticationRowStatus.setDescription('The existence state of this authentication key. This object follows the RowStatus behaviour.') juni_isis_mpls_te_tunnel_table = mib_table((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 8)) if mibBuilder.loadTexts: juniIsisMplsTeTunnelTable.setReference('ISIS.aoi mplsTeTunnels(6)') if mibBuilder.loadTexts: juniIsisMplsTeTunnelTable.setStatus('current') if mibBuilder.loadTexts: juniIsisMplsTeTunnelTable.setDescription('The set of tunnels imported from MPLS.') juni_isis_mpls_te_tunnel_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 8, 1)).setIndexNames((0, 'Juniper-ISIS-MIB', 'juniIsisMplsTeTunnelSysInstance'), (0, 'Juniper-ISIS-MIB', 'juniIsisMplsNextHopIndex')) if mibBuilder.loadTexts: juniIsisMplsTeTunnelEntry.setStatus('current') if mibBuilder.loadTexts: juniIsisMplsTeTunnelEntry.setDescription('Each entry contains metric details of an MPLS LSP') juni_isis_mpls_te_tunnel_sys_instance = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 8, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))) if mibBuilder.loadTexts: juniIsisMplsTeTunnelSysInstance.setStatus('current') if mibBuilder.loadTexts: juniIsisMplsTeTunnelSysInstance.setDescription('The unique identifier of the Integrated IS-IS instance to which this row corresponds. This object follows the index behaviour.') juni_isis_mpls_next_hop_index = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 8, 1, 2), integer32()) if mibBuilder.loadTexts: juniIsisMplsNextHopIndex.setStatus('current') if mibBuilder.loadTexts: juniIsisMplsNextHopIndex.setDescription('An index to uniquely identify the tunnels.') juni_isis_mpls_te_system_id = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 8, 1, 3), system_id()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisMplsTeSystemId.setStatus('current') if mibBuilder.loadTexts: juniIsisMplsTeSystemId.setDescription("The ID for the instance of the Integrated IS-IS protocol running in the tunnel's end point.") juni_isis_mpls_te_router_id = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 8, 1, 4), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisMplsTeRouterId.setStatus('current') if mibBuilder.loadTexts: juniIsisMplsTeRouterId.setDescription("The router ID of the tunnel's end point.") juni_isis_mpls_te_tunnel_metric = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 8, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisMplsTeTunnelMetric.setStatus('current') if mibBuilder.loadTexts: juniIsisMplsTeTunnelMetric.setDescription('The metric associated with the tunnel.') juni_isis_mpls_te_tunnel_rel_metric = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 8, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisMplsTeTunnelRelMetric.setStatus('current') if mibBuilder.loadTexts: juniIsisMplsTeTunnelRelMetric.setDescription('The metric associated with the tunnel relative to the spf path.') juni_isis_mpls_te_tunnel_name = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 1, 1, 8, 1, 7), octet_string().subtype(subtypeSpec=value_size_constraint(1, 40))).setMaxAccess('readonly') if mibBuilder.loadTexts: juniIsisMplsTeTunnelName.setStatus('current') if mibBuilder.loadTexts: juniIsisMplsTeTunnelName.setDescription('The name associated with the tunnel.') juni_isis_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 3, 1)) juni_isis_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 3, 2)) juni_isis_compliance = module_compliance((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 3, 1, 1)).setObjects(('Juniper-ISIS-MIB', 'juniIsisSystemMgmtGroup'), ('Juniper-ISIS-MIB', 'juniIsisCircuitMgmtGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juni_isis_compliance = juniIsisCompliance.setStatus('obsolete') if mibBuilder.loadTexts: juniIsisCompliance.setDescription('Obsolete compliance statement for systems supporting ISIS functionality. This statement became obsolete when the juniIsisCircState object was added.') juni_isis_compliance2 = module_compliance((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 3, 1, 2)).setObjects(('Juniper-ISIS-MIB', 'juniIsisSystemMgmtGroup'), ('Juniper-ISIS-MIB', 'juniIsisCircuitMgmtGroup2')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juni_isis_compliance2 = juniIsisCompliance2.setStatus('obsolete') if mibBuilder.loadTexts: juniIsisCompliance2.setDescription('Obsolete compliance statement for systems supporting ISIS functionality. This statement became obsolete when MPSL support was added.') juni_isis_compliance3 = module_compliance((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 3, 1, 3)).setObjects(('Juniper-ISIS-MIB', 'juniIsisSystemMgmtGroup2'), ('Juniper-ISIS-MIB', 'juniIsisCircuitMgmtGroup2')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juni_isis_compliance3 = juniIsisCompliance3.setStatus('obsolete') if mibBuilder.loadTexts: juniIsisCompliance3.setDescription('The compliance statement for systems supporting ISIS functionality. This statement became obsolete when juniIsisCircBFDTable is implemented.') juni_isis_compliance4 = module_compliance((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 3, 1, 4)).setObjects(('Juniper-ISIS-MIB', 'juniIsisSystemMgmtGroup2'), ('Juniper-ISIS-MIB', 'juniIsisCircuitMgmtGroup2'), ('Juniper-ISIS-MIB', 'juniIsisCircBFDGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juni_isis_compliance4 = juniIsisCompliance4.setStatus('obsolete') if mibBuilder.loadTexts: juniIsisCompliance4.setDescription('The compliance statement for systems supporting ISIS functionality.') juni_isis_compliance5 = module_compliance((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 3, 1, 5)).setObjects(('Juniper-ISIS-MIB', 'juniIsisSystemMgmtGroup3'), ('Juniper-ISIS-MIB', 'juniIsisCircuitMgmtGroup2'), ('Juniper-ISIS-MIB', 'juniIsisCircBFDGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juni_isis_compliance5 = juniIsisCompliance5.setStatus('obsolete') if mibBuilder.loadTexts: juniIsisCompliance5.setDescription('The compliance statement for systems supporting ISIS functionality.') juni_isis_compliance6 = module_compliance((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 3, 1, 6)).setObjects(('Juniper-ISIS-MIB', 'juniIsisSystemMgmtGroup4'), ('Juniper-ISIS-MIB', 'juniIsisCircuitMgmtGroup2'), ('Juniper-ISIS-MIB', 'juniIsisCircBFDGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juni_isis_compliance6 = juniIsisCompliance6.setStatus('current') if mibBuilder.loadTexts: juniIsisCompliance6.setDescription('The compliance statement for systems supporting ISIS functionality.') juni_isis_system_mgmt_group = object_group((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 3, 2, 1)).setObjects(('Juniper-ISIS-MIB', 'juniIsisSysVersion'), ('Juniper-ISIS-MIB', 'juniIsisSysType'), ('Juniper-ISIS-MIB', 'juniIsisSysID'), ('Juniper-ISIS-MIB', 'juniIsisSysMaxPathSplits'), ('Juniper-ISIS-MIB', 'juniIsisSysMaxLSPGenInt'), ('Juniper-ISIS-MIB', 'juniIsisSysOrigLSPBuffSize'), ('Juniper-ISIS-MIB', 'juniIsisSysMaxAreaAddresses'), ('Juniper-ISIS-MIB', 'juniIsisSysMinL1LSPGenInt'), ('Juniper-ISIS-MIB', 'juniIsisSysMinL2LSPGenInt'), ('Juniper-ISIS-MIB', 'juniIsisSysPollESHelloRate'), ('Juniper-ISIS-MIB', 'juniIsisSysWaitTime'), ('Juniper-ISIS-MIB', 'juniIsisSysOperState'), ('Juniper-ISIS-MIB', 'juniIsisSysL1State'), ('Juniper-ISIS-MIB', 'juniIsisSysCorrLSPs'), ('Juniper-ISIS-MIB', 'juniIsisSysLSPL1DbaseOloads'), ('Juniper-ISIS-MIB', 'juniIsisSysManAddrDropFromAreas'), ('Juniper-ISIS-MIB', 'juniIsisSysAttmptToExMaxSeqNums'), ('Juniper-ISIS-MIB', 'juniIsisSysSeqNumSkips'), ('Juniper-ISIS-MIB', 'juniIsisSysOwnLSPPurges'), ('Juniper-ISIS-MIB', 'juniIsisSysIDFieldLenMismatches'), ('Juniper-ISIS-MIB', 'juniIsisSysMaxAreaAddrMismatches'), ('Juniper-ISIS-MIB', 'juniIsisSysL2State'), ('Juniper-ISIS-MIB', 'juniIsisSysLSPL2DbaseOloads'), ('Juniper-ISIS-MIB', 'juniIsisSysAuthFails'), ('Juniper-ISIS-MIB', 'juniIsisSysLSPIgnoreErrors'), ('Juniper-ISIS-MIB', 'juniIsisSysMaxAreaCheck'), ('Juniper-ISIS-MIB', 'juniIsisSysSetOverloadBit'), ('Juniper-ISIS-MIB', 'juniIsisSysSetOverloadBitStartupDuration'), ('Juniper-ISIS-MIB', 'juniIsisSysMaxLspLifetime'), ('Juniper-ISIS-MIB', 'juniIsisSysL1SpfInterval'), ('Juniper-ISIS-MIB', 'juniIsisSysL2SpfInterval'), ('Juniper-ISIS-MIB', 'juniIsisSysIshHoldTime'), ('Juniper-ISIS-MIB', 'juniIsisSysIshConfigTimer'), ('Juniper-ISIS-MIB', 'juniIsisSysDistributeDomainWide'), ('Juniper-ISIS-MIB', 'juniIsisSysDistance'), ('Juniper-ISIS-MIB', 'juniIsisSysL1MetricStyle'), ('Juniper-ISIS-MIB', 'juniIsisSysL2MetricStyle'), ('Juniper-ISIS-MIB', 'juniIsisSysIsoRouteTag'), ('Juniper-ISIS-MIB', 'juniIsisManAreaAddrRowStatus'), ('Juniper-ISIS-MIB', 'juniIsisSysProtSuppRowStatus'), ('Juniper-ISIS-MIB', 'juniIsisSummAddrRowStatus'), ('Juniper-ISIS-MIB', 'juniIsisSummAddrOperState'), ('Juniper-ISIS-MIB', 'juniIsisSummAddrDefaultMetric'), ('Juniper-ISIS-MIB', 'juniIsisSummAddrDelayMetric'), ('Juniper-ISIS-MIB', 'juniIsisSummAddrExpenseMetric'), ('Juniper-ISIS-MIB', 'juniIsisSummAddrErrorMetric'), ('Juniper-ISIS-MIB', 'juniIsisSummLevel'), ('Juniper-ISIS-MIB', 'juniIsisSysHostNameAreaAddr'), ('Juniper-ISIS-MIB', 'juniIsisSysHostNameName'), ('Juniper-ISIS-MIB', 'juniIsisSysHostNameType'), ('Juniper-ISIS-MIB', 'juniIsisSysHostNameRowStatus'), ('Juniper-ISIS-MIB', 'juniIsisSysAreaAuthenticationPwd'), ('Juniper-ISIS-MIB', 'juniIsisSysAreaAuthenticationKeyType'), ('Juniper-ISIS-MIB', 'juniIsisSysAreaAuthenticationStartAcceptTime'), ('Juniper-ISIS-MIB', 'juniIsisSysAreaAuthenticationStartGenerateTime'), ('Juniper-ISIS-MIB', 'juniIsisSysAreaAuthenticationStopAcceptTime'), ('Juniper-ISIS-MIB', 'juniIsisSysAreaAuthenticationStopGenerateTime'), ('Juniper-ISIS-MIB', 'juniIsisSysAreaAuthenticationRowStatus'), ('Juniper-ISIS-MIB', 'juniIsisSysDomainAuthenticationPwd'), ('Juniper-ISIS-MIB', 'juniIsisSysDomainAuthenticationKeyType'), ('Juniper-ISIS-MIB', 'juniIsisSysDomainAuthenticationStartAcceptTime'), ('Juniper-ISIS-MIB', 'juniIsisSysDomainAuthenticationStartGenerateTime'), ('Juniper-ISIS-MIB', 'juniIsisSysDomainAuthenticationStopAcceptTime'), ('Juniper-ISIS-MIB', 'juniIsisSysDomainAuthenticationStopGenerateTime'), ('Juniper-ISIS-MIB', 'juniIsisSysDomainAuthenticationRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juni_isis_system_mgmt_group = juniIsisSystemMgmtGroup.setStatus('obsolete') if mibBuilder.loadTexts: juniIsisSystemMgmtGroup.setDescription('Obsolete system level objects for ISIS management functionality. This group became obsolete when the MPLS management objects were added.') juni_isis_circuit_mgmt_group = object_group((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 3, 2, 2)).setObjects(('Juniper-ISIS-MIB', 'juniIsisCircLocalID'), ('Juniper-ISIS-MIB', 'juniIsisCircOperState'), ('Juniper-ISIS-MIB', 'juniIsisCircRowStatus'), ('Juniper-ISIS-MIB', 'juniIsisCircType'), ('Juniper-ISIS-MIB', 'juniIsisCircL1DefaultMetric'), ('Juniper-ISIS-MIB', 'juniIsisCircL1DelayMetric'), ('Juniper-ISIS-MIB', 'juniIsisCircL1ExpenseMetric'), ('Juniper-ISIS-MIB', 'juniIsisCircL1ErrorMetric'), ('Juniper-ISIS-MIB', 'juniIsisCircExtDomain'), ('Juniper-ISIS-MIB', 'juniIsisCircAdjChanges'), ('Juniper-ISIS-MIB', 'juniIsisCircInitFails'), ('Juniper-ISIS-MIB', 'juniIsisCircRejAdjs'), ('Juniper-ISIS-MIB', 'juniIsisCircOutCtrlPDUs'), ('Juniper-ISIS-MIB', 'juniIsisCircInCtrlPDUs'), ('Juniper-ISIS-MIB', 'juniIsisCircIDFieldLenMismatches'), ('Juniper-ISIS-MIB', 'juniIsisCircL2DefaultMetric'), ('Juniper-ISIS-MIB', 'juniIsisCircL2DelayMetric'), ('Juniper-ISIS-MIB', 'juniIsisCircL2ExpenseMetric'), ('Juniper-ISIS-MIB', 'juniIsisCircL2ErrorMetric'), ('Juniper-ISIS-MIB', 'juniIsisCircManL2Only'), ('Juniper-ISIS-MIB', 'juniIsisCircL1ISPriority'), ('Juniper-ISIS-MIB', 'juniIsisCircL1CircID'), ('Juniper-ISIS-MIB', 'juniIsisCircL1DesIS'), ('Juniper-ISIS-MIB', 'juniIsisCircLANL1DesISChanges'), ('Juniper-ISIS-MIB', 'juniIsisCircL2ISPriority'), ('Juniper-ISIS-MIB', 'juniIsisCircL2CircID'), ('Juniper-ISIS-MIB', 'juniIsisCircL2DesIS'), ('Juniper-ISIS-MIB', 'juniIsisCircLANL2DesISChanges'), ('Juniper-ISIS-MIB', 'juniIsisCircMCAddr'), ('Juniper-ISIS-MIB', 'juniIsisCircPtToPtCircID'), ('Juniper-ISIS-MIB', 'juniIsisCircL1HelloTimer'), ('Juniper-ISIS-MIB', 'juniIsisCircL2HelloTimer'), ('Juniper-ISIS-MIB', 'juniIsisCircL1HelloMultiplier'), ('Juniper-ISIS-MIB', 'juniIsisCircL2HelloMultiplier'), ('Juniper-ISIS-MIB', 'juniIsisCircMinLSPTransInt'), ('Juniper-ISIS-MIB', 'juniIsisCircMinLSPReTransInt'), ('Juniper-ISIS-MIB', 'juniIsisCircL1CSNPInterval'), ('Juniper-ISIS-MIB', 'juniIsisCircL2CSNPInterval'), ('Juniper-ISIS-MIB', 'juniIsisCircLSPThrottle'), ('Juniper-ISIS-MIB', 'juniIsisCircMeshGroupEnabled'), ('Juniper-ISIS-MIB', 'juniIsisCircMeshGroup'), ('Juniper-ISIS-MIB', 'juniIsisCircLevel'), ('Juniper-ISIS-MIB', 'juniIsisSysL1CircAuthenticationPwd'), ('Juniper-ISIS-MIB', 'juniIsisSysL1CircAuthenticationKeyType'), ('Juniper-ISIS-MIB', 'juniIsisSysL1CircAuthenticationStartAcceptTime'), ('Juniper-ISIS-MIB', 'juniIsisSysL1CircAuthenticationStartGenerateTime'), ('Juniper-ISIS-MIB', 'juniIsisSysL1CircAuthenticationStopAcceptTime'), ('Juniper-ISIS-MIB', 'juniIsisSysL1CircAuthenticationStopGenerateTime'), ('Juniper-ISIS-MIB', 'juniIsisSysL1CircAuthenticationRowStatus'), ('Juniper-ISIS-MIB', 'juniIsisSysL2CircAuthenticationPwd'), ('Juniper-ISIS-MIB', 'juniIsisSysL2CircAuthenticationKeyType'), ('Juniper-ISIS-MIB', 'juniIsisSysL2CircAuthenticationStartAcceptTime'), ('Juniper-ISIS-MIB', 'juniIsisSysL2CircAuthenticationStartGenerateTime'), ('Juniper-ISIS-MIB', 'juniIsisSysL2CircAuthenticationStopAcceptTime'), ('Juniper-ISIS-MIB', 'juniIsisSysL2CircAuthenticationStopGenerateTime'), ('Juniper-ISIS-MIB', 'juniIsisSysL2CircAuthenticationRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juni_isis_circuit_mgmt_group = juniIsisCircuitMgmtGroup.setStatus('obsolete') if mibBuilder.loadTexts: juniIsisCircuitMgmtGroup.setDescription('Obsolete circuit management objects. This group became obsolete when the juniIsisCircState object was added.') juni_isis_circuit_mgmt_group2 = object_group((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 3, 2, 3)).setObjects(('Juniper-ISIS-MIB', 'juniIsisCircLocalID'), ('Juniper-ISIS-MIB', 'juniIsisCircOperState'), ('Juniper-ISIS-MIB', 'juniIsisCircRowStatus'), ('Juniper-ISIS-MIB', 'juniIsisCircType'), ('Juniper-ISIS-MIB', 'juniIsisCircL1DefaultMetric'), ('Juniper-ISIS-MIB', 'juniIsisCircL1DelayMetric'), ('Juniper-ISIS-MIB', 'juniIsisCircL1ExpenseMetric'), ('Juniper-ISIS-MIB', 'juniIsisCircL1ErrorMetric'), ('Juniper-ISIS-MIB', 'juniIsisCircExtDomain'), ('Juniper-ISIS-MIB', 'juniIsisCircAdjChanges'), ('Juniper-ISIS-MIB', 'juniIsisCircInitFails'), ('Juniper-ISIS-MIB', 'juniIsisCircRejAdjs'), ('Juniper-ISIS-MIB', 'juniIsisCircOutCtrlPDUs'), ('Juniper-ISIS-MIB', 'juniIsisCircInCtrlPDUs'), ('Juniper-ISIS-MIB', 'juniIsisCircIDFieldLenMismatches'), ('Juniper-ISIS-MIB', 'juniIsisCircL2DefaultMetric'), ('Juniper-ISIS-MIB', 'juniIsisCircL2DelayMetric'), ('Juniper-ISIS-MIB', 'juniIsisCircL2ExpenseMetric'), ('Juniper-ISIS-MIB', 'juniIsisCircL2ErrorMetric'), ('Juniper-ISIS-MIB', 'juniIsisCircManL2Only'), ('Juniper-ISIS-MIB', 'juniIsisCircL1ISPriority'), ('Juniper-ISIS-MIB', 'juniIsisCircL1CircID'), ('Juniper-ISIS-MIB', 'juniIsisCircL1DesIS'), ('Juniper-ISIS-MIB', 'juniIsisCircLANL1DesISChanges'), ('Juniper-ISIS-MIB', 'juniIsisCircL2ISPriority'), ('Juniper-ISIS-MIB', 'juniIsisCircL2CircID'), ('Juniper-ISIS-MIB', 'juniIsisCircL2DesIS'), ('Juniper-ISIS-MIB', 'juniIsisCircLANL2DesISChanges'), ('Juniper-ISIS-MIB', 'juniIsisCircMCAddr'), ('Juniper-ISIS-MIB', 'juniIsisCircPtToPtCircID'), ('Juniper-ISIS-MIB', 'juniIsisCircL1HelloTimer'), ('Juniper-ISIS-MIB', 'juniIsisCircL2HelloTimer'), ('Juniper-ISIS-MIB', 'juniIsisCircL1HelloMultiplier'), ('Juniper-ISIS-MIB', 'juniIsisCircL2HelloMultiplier'), ('Juniper-ISIS-MIB', 'juniIsisCircMinLSPTransInt'), ('Juniper-ISIS-MIB', 'juniIsisCircMinLSPReTransInt'), ('Juniper-ISIS-MIB', 'juniIsisCircL1CSNPInterval'), ('Juniper-ISIS-MIB', 'juniIsisCircL2CSNPInterval'), ('Juniper-ISIS-MIB', 'juniIsisCircLSPThrottle'), ('Juniper-ISIS-MIB', 'juniIsisCircMeshGroupEnabled'), ('Juniper-ISIS-MIB', 'juniIsisCircMeshGroup'), ('Juniper-ISIS-MIB', 'juniIsisCircLevel'), ('Juniper-ISIS-MIB', 'juniIsisCircState'), ('Juniper-ISIS-MIB', 'juniIsisSysL1CircAuthenticationPwd'), ('Juniper-ISIS-MIB', 'juniIsisSysL1CircAuthenticationKeyType'), ('Juniper-ISIS-MIB', 'juniIsisSysL1CircAuthenticationStartAcceptTime'), ('Juniper-ISIS-MIB', 'juniIsisSysL1CircAuthenticationStartGenerateTime'), ('Juniper-ISIS-MIB', 'juniIsisSysL1CircAuthenticationStopAcceptTime'), ('Juniper-ISIS-MIB', 'juniIsisSysL1CircAuthenticationStopGenerateTime'), ('Juniper-ISIS-MIB', 'juniIsisSysL1CircAuthenticationRowStatus'), ('Juniper-ISIS-MIB', 'juniIsisSysL2CircAuthenticationPwd'), ('Juniper-ISIS-MIB', 'juniIsisSysL2CircAuthenticationKeyType'), ('Juniper-ISIS-MIB', 'juniIsisSysL2CircAuthenticationStartAcceptTime'), ('Juniper-ISIS-MIB', 'juniIsisSysL2CircAuthenticationStartGenerateTime'), ('Juniper-ISIS-MIB', 'juniIsisSysL2CircAuthenticationStopAcceptTime'), ('Juniper-ISIS-MIB', 'juniIsisSysL2CircAuthenticationStopGenerateTime'), ('Juniper-ISIS-MIB', 'juniIsisSysL2CircAuthenticationRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juni_isis_circuit_mgmt_group2 = juniIsisCircuitMgmtGroup2.setStatus('current') if mibBuilder.loadTexts: juniIsisCircuitMgmtGroup2.setDescription('The circuit management objects.') juni_isis_system_mgmt_group2 = object_group((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 3, 2, 4)).setObjects(('Juniper-ISIS-MIB', 'juniIsisSysVersion'), ('Juniper-ISIS-MIB', 'juniIsisSysType'), ('Juniper-ISIS-MIB', 'juniIsisSysID'), ('Juniper-ISIS-MIB', 'juniIsisSysMaxPathSplits'), ('Juniper-ISIS-MIB', 'juniIsisSysMaxLSPGenInt'), ('Juniper-ISIS-MIB', 'juniIsisSysOrigLSPBuffSize'), ('Juniper-ISIS-MIB', 'juniIsisSysMaxAreaAddresses'), ('Juniper-ISIS-MIB', 'juniIsisSysMinL1LSPGenInt'), ('Juniper-ISIS-MIB', 'juniIsisSysMinL2LSPGenInt'), ('Juniper-ISIS-MIB', 'juniIsisSysPollESHelloRate'), ('Juniper-ISIS-MIB', 'juniIsisSysWaitTime'), ('Juniper-ISIS-MIB', 'juniIsisSysOperState'), ('Juniper-ISIS-MIB', 'juniIsisSysL1State'), ('Juniper-ISIS-MIB', 'juniIsisSysCorrLSPs'), ('Juniper-ISIS-MIB', 'juniIsisSysLSPL1DbaseOloads'), ('Juniper-ISIS-MIB', 'juniIsisSysManAddrDropFromAreas'), ('Juniper-ISIS-MIB', 'juniIsisSysAttmptToExMaxSeqNums'), ('Juniper-ISIS-MIB', 'juniIsisSysSeqNumSkips'), ('Juniper-ISIS-MIB', 'juniIsisSysOwnLSPPurges'), ('Juniper-ISIS-MIB', 'juniIsisSysIDFieldLenMismatches'), ('Juniper-ISIS-MIB', 'juniIsisSysMaxAreaAddrMismatches'), ('Juniper-ISIS-MIB', 'juniIsisSysOrigL2LSPBuffSize'), ('Juniper-ISIS-MIB', 'juniIsisSysL2State'), ('Juniper-ISIS-MIB', 'juniIsisSysLSPL2DbaseOloads'), ('Juniper-ISIS-MIB', 'juniIsisSysAuthFails'), ('Juniper-ISIS-MIB', 'juniIsisSysLSPIgnoreErrors'), ('Juniper-ISIS-MIB', 'juniIsisSysMaxAreaCheck'), ('Juniper-ISIS-MIB', 'juniIsisSysSetOverloadBit'), ('Juniper-ISIS-MIB', 'juniIsisSysSetOverloadBitStartupDuration'), ('Juniper-ISIS-MIB', 'juniIsisSysMaxLspLifetime'), ('Juniper-ISIS-MIB', 'juniIsisSysL1SpfInterval'), ('Juniper-ISIS-MIB', 'juniIsisSysL2SpfInterval'), ('Juniper-ISIS-MIB', 'juniIsisSysIshHoldTime'), ('Juniper-ISIS-MIB', 'juniIsisSysIshConfigTimer'), ('Juniper-ISIS-MIB', 'juniIsisSysDistributeDomainWide'), ('Juniper-ISIS-MIB', 'juniIsisSysDistance'), ('Juniper-ISIS-MIB', 'juniIsisSysL1MetricStyle'), ('Juniper-ISIS-MIB', 'juniIsisSysL2MetricStyle'), ('Juniper-ISIS-MIB', 'juniIsisSysIsoRouteTag'), ('Juniper-ISIS-MIB', 'juniIsisSysMplsTeLevel'), ('Juniper-ISIS-MIB', 'juniIsisSysMplsTeRtrIdIfIndex'), ('Juniper-ISIS-MIB', 'juniIsisManAreaAddrRowStatus'), ('Juniper-ISIS-MIB', 'juniIsisSysProtSuppRowStatus'), ('Juniper-ISIS-MIB', 'juniIsisSummAddrRowStatus'), ('Juniper-ISIS-MIB', 'juniIsisSummAddrOperState'), ('Juniper-ISIS-MIB', 'juniIsisSummAddrDefaultMetric'), ('Juniper-ISIS-MIB', 'juniIsisSummAddrDelayMetric'), ('Juniper-ISIS-MIB', 'juniIsisSummAddrExpenseMetric'), ('Juniper-ISIS-MIB', 'juniIsisSummAddrErrorMetric'), ('Juniper-ISIS-MIB', 'juniIsisSummLevel'), ('Juniper-ISIS-MIB', 'juniIsisSysHostNameAreaAddr'), ('Juniper-ISIS-MIB', 'juniIsisSysHostNameName'), ('Juniper-ISIS-MIB', 'juniIsisSysHostNameType'), ('Juniper-ISIS-MIB', 'juniIsisSysHostNameRowStatus'), ('Juniper-ISIS-MIB', 'juniIsisSysAreaAuthenticationPwd'), ('Juniper-ISIS-MIB', 'juniIsisSysAreaAuthenticationKeyType'), ('Juniper-ISIS-MIB', 'juniIsisSysAreaAuthenticationStartAcceptTime'), ('Juniper-ISIS-MIB', 'juniIsisSysAreaAuthenticationStartGenerateTime'), ('Juniper-ISIS-MIB', 'juniIsisSysAreaAuthenticationStopAcceptTime'), ('Juniper-ISIS-MIB', 'juniIsisSysAreaAuthenticationStopGenerateTime'), ('Juniper-ISIS-MIB', 'juniIsisSysAreaAuthenticationRowStatus'), ('Juniper-ISIS-MIB', 'juniIsisSysDomainAuthenticationPwd'), ('Juniper-ISIS-MIB', 'juniIsisSysDomainAuthenticationKeyType'), ('Juniper-ISIS-MIB', 'juniIsisSysDomainAuthenticationStartAcceptTime'), ('Juniper-ISIS-MIB', 'juniIsisSysDomainAuthenticationStartGenerateTime'), ('Juniper-ISIS-MIB', 'juniIsisSysDomainAuthenticationStopAcceptTime'), ('Juniper-ISIS-MIB', 'juniIsisSysDomainAuthenticationStopGenerateTime'), ('Juniper-ISIS-MIB', 'juniIsisSysDomainAuthenticationRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juni_isis_system_mgmt_group2 = juniIsisSystemMgmtGroup2.setStatus('obsolete') if mibBuilder.loadTexts: juniIsisSystemMgmtGroup2.setDescription('Obsolete system level objects for ISIS management functionality. This group became obsolete when the MPLS tunnel table was added.') juni_isis_circ_bfd_group = object_group((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 3, 2, 5)).setObjects(('Juniper-ISIS-MIB', 'juniIsisCircBfdEnable'), ('Juniper-ISIS-MIB', 'juniIsisCircBfdMinRxInterval'), ('Juniper-ISIS-MIB', 'juniIsisCircBfdMinTxInterval'), ('Juniper-ISIS-MIB', 'juniIsisCircBfdMultiplier')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juni_isis_circ_bfd_group = juniIsisCircBFDGroup.setStatus('current') if mibBuilder.loadTexts: juniIsisCircBFDGroup.setDescription('The circuit level ISIS BFD configuration parameters.') juni_isis_system_mgmt_group3 = object_group((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 3, 2, 6)).setObjects(('Juniper-ISIS-MIB', 'juniIsisSysVersion'), ('Juniper-ISIS-MIB', 'juniIsisSysType'), ('Juniper-ISIS-MIB', 'juniIsisSysID'), ('Juniper-ISIS-MIB', 'juniIsisSysMaxPathSplits'), ('Juniper-ISIS-MIB', 'juniIsisSysMaxLSPGenInt'), ('Juniper-ISIS-MIB', 'juniIsisSysOrigLSPBuffSize'), ('Juniper-ISIS-MIB', 'juniIsisSysMaxAreaAddresses'), ('Juniper-ISIS-MIB', 'juniIsisSysMinL1LSPGenInt'), ('Juniper-ISIS-MIB', 'juniIsisSysMinL2LSPGenInt'), ('Juniper-ISIS-MIB', 'juniIsisSysPollESHelloRate'), ('Juniper-ISIS-MIB', 'juniIsisSysWaitTime'), ('Juniper-ISIS-MIB', 'juniIsisSysOperState'), ('Juniper-ISIS-MIB', 'juniIsisSysL1State'), ('Juniper-ISIS-MIB', 'juniIsisSysCorrLSPs'), ('Juniper-ISIS-MIB', 'juniIsisSysLSPL1DbaseOloads'), ('Juniper-ISIS-MIB', 'juniIsisSysManAddrDropFromAreas'), ('Juniper-ISIS-MIB', 'juniIsisSysAttmptToExMaxSeqNums'), ('Juniper-ISIS-MIB', 'juniIsisSysSeqNumSkips'), ('Juniper-ISIS-MIB', 'juniIsisSysOwnLSPPurges'), ('Juniper-ISIS-MIB', 'juniIsisSysIDFieldLenMismatches'), ('Juniper-ISIS-MIB', 'juniIsisSysMaxAreaAddrMismatches'), ('Juniper-ISIS-MIB', 'juniIsisSysOrigL2LSPBuffSize'), ('Juniper-ISIS-MIB', 'juniIsisSysL2State'), ('Juniper-ISIS-MIB', 'juniIsisSysLSPL2DbaseOloads'), ('Juniper-ISIS-MIB', 'juniIsisSysAuthFails'), ('Juniper-ISIS-MIB', 'juniIsisSysLSPIgnoreErrors'), ('Juniper-ISIS-MIB', 'juniIsisSysMaxAreaCheck'), ('Juniper-ISIS-MIB', 'juniIsisSysSetOverloadBit'), ('Juniper-ISIS-MIB', 'juniIsisSysSetOverloadBitStartupDuration'), ('Juniper-ISIS-MIB', 'juniIsisSysMaxLspLifetime'), ('Juniper-ISIS-MIB', 'juniIsisSysL1SpfInterval'), ('Juniper-ISIS-MIB', 'juniIsisSysL2SpfInterval'), ('Juniper-ISIS-MIB', 'juniIsisSysIshHoldTime'), ('Juniper-ISIS-MIB', 'juniIsisSysIshConfigTimer'), ('Juniper-ISIS-MIB', 'juniIsisSysDistributeDomainWide'), ('Juniper-ISIS-MIB', 'juniIsisSysDistance'), ('Juniper-ISIS-MIB', 'juniIsisSysL1MetricStyle'), ('Juniper-ISIS-MIB', 'juniIsisSysL2MetricStyle'), ('Juniper-ISIS-MIB', 'juniIsisSysIsoRouteTag'), ('Juniper-ISIS-MIB', 'juniIsisSysMplsTeLevel'), ('Juniper-ISIS-MIB', 'juniIsisSysMplsTeRtrIdIfIndex'), ('Juniper-ISIS-MIB', 'juniIsisSysMplsTeSpfUseAnyBestPath'), ('Juniper-ISIS-MIB', 'juniIsisManAreaAddrRowStatus'), ('Juniper-ISIS-MIB', 'juniIsisSysProtSuppRowStatus'), ('Juniper-ISIS-MIB', 'juniIsisSummAddrRowStatus'), ('Juniper-ISIS-MIB', 'juniIsisSummAddrOperState'), ('Juniper-ISIS-MIB', 'juniIsisSummAddrDefaultMetric'), ('Juniper-ISIS-MIB', 'juniIsisSummAddrDelayMetric'), ('Juniper-ISIS-MIB', 'juniIsisSummAddrExpenseMetric'), ('Juniper-ISIS-MIB', 'juniIsisSummAddrErrorMetric'), ('Juniper-ISIS-MIB', 'juniIsisSummLevel'), ('Juniper-ISIS-MIB', 'juniIsisSysHostNameAreaAddr'), ('Juniper-ISIS-MIB', 'juniIsisSysHostNameName'), ('Juniper-ISIS-MIB', 'juniIsisSysHostNameType'), ('Juniper-ISIS-MIB', 'juniIsisSysHostNameRowStatus'), ('Juniper-ISIS-MIB', 'juniIsisSysAreaAuthenticationPwd'), ('Juniper-ISIS-MIB', 'juniIsisSysAreaAuthenticationKeyType'), ('Juniper-ISIS-MIB', 'juniIsisSysAreaAuthenticationStartAcceptTime'), ('Juniper-ISIS-MIB', 'juniIsisSysAreaAuthenticationStartGenerateTime'), ('Juniper-ISIS-MIB', 'juniIsisSysAreaAuthenticationStopAcceptTime'), ('Juniper-ISIS-MIB', 'juniIsisSysAreaAuthenticationStopGenerateTime'), ('Juniper-ISIS-MIB', 'juniIsisSysAreaAuthenticationRowStatus'), ('Juniper-ISIS-MIB', 'juniIsisSysDomainAuthenticationPwd'), ('Juniper-ISIS-MIB', 'juniIsisSysDomainAuthenticationKeyType'), ('Juniper-ISIS-MIB', 'juniIsisSysDomainAuthenticationStartAcceptTime'), ('Juniper-ISIS-MIB', 'juniIsisSysDomainAuthenticationStartGenerateTime'), ('Juniper-ISIS-MIB', 'juniIsisSysDomainAuthenticationStopAcceptTime'), ('Juniper-ISIS-MIB', 'juniIsisSysDomainAuthenticationStopGenerateTime'), ('Juniper-ISIS-MIB', 'juniIsisSysDomainAuthenticationRowStatus'), ('Juniper-ISIS-MIB', 'juniIsisMplsTeSystemId'), ('Juniper-ISIS-MIB', 'juniIsisMplsTeRouterId'), ('Juniper-ISIS-MIB', 'juniIsisMplsTeTunnelMetric'), ('Juniper-ISIS-MIB', 'juniIsisMplsTeTunnelRelMetric'), ('Juniper-ISIS-MIB', 'juniIsisMplsTeTunnelName')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juni_isis_system_mgmt_group3 = juniIsisSystemMgmtGroup3.setStatus('obsolete') if mibBuilder.loadTexts: juniIsisSystemMgmtGroup3.setDescription('Obsolete system level objects for ISIS management functionality. This group became obsolete when the reference bandwidth related variables were added.') juni_isis_system_mgmt_group4 = object_group((1, 3, 6, 1, 4, 1, 4874, 2, 2, 38, 3, 2, 7)).setObjects(('Juniper-ISIS-MIB', 'juniIsisSysVersion'), ('Juniper-ISIS-MIB', 'juniIsisSysType'), ('Juniper-ISIS-MIB', 'juniIsisSysID'), ('Juniper-ISIS-MIB', 'juniIsisSysMaxPathSplits'), ('Juniper-ISIS-MIB', 'juniIsisSysMaxLSPGenInt'), ('Juniper-ISIS-MIB', 'juniIsisSysOrigLSPBuffSize'), ('Juniper-ISIS-MIB', 'juniIsisSysMaxAreaAddresses'), ('Juniper-ISIS-MIB', 'juniIsisSysMinL1LSPGenInt'), ('Juniper-ISIS-MIB', 'juniIsisSysMinL2LSPGenInt'), ('Juniper-ISIS-MIB', 'juniIsisSysPollESHelloRate'), ('Juniper-ISIS-MIB', 'juniIsisSysWaitTime'), ('Juniper-ISIS-MIB', 'juniIsisSysOperState'), ('Juniper-ISIS-MIB', 'juniIsisSysL1State'), ('Juniper-ISIS-MIB', 'juniIsisSysCorrLSPs'), ('Juniper-ISIS-MIB', 'juniIsisSysLSPL1DbaseOloads'), ('Juniper-ISIS-MIB', 'juniIsisSysManAddrDropFromAreas'), ('Juniper-ISIS-MIB', 'juniIsisSysAttmptToExMaxSeqNums'), ('Juniper-ISIS-MIB', 'juniIsisSysSeqNumSkips'), ('Juniper-ISIS-MIB', 'juniIsisSysOwnLSPPurges'), ('Juniper-ISIS-MIB', 'juniIsisSysIDFieldLenMismatches'), ('Juniper-ISIS-MIB', 'juniIsisSysMaxAreaAddrMismatches'), ('Juniper-ISIS-MIB', 'juniIsisSysOrigL2LSPBuffSize'), ('Juniper-ISIS-MIB', 'juniIsisSysL2State'), ('Juniper-ISIS-MIB', 'juniIsisSysLSPL2DbaseOloads'), ('Juniper-ISIS-MIB', 'juniIsisSysAuthFails'), ('Juniper-ISIS-MIB', 'juniIsisSysLSPIgnoreErrors'), ('Juniper-ISIS-MIB', 'juniIsisSysMaxAreaCheck'), ('Juniper-ISIS-MIB', 'juniIsisSysSetOverloadBit'), ('Juniper-ISIS-MIB', 'juniIsisSysSetOverloadBitStartupDuration'), ('Juniper-ISIS-MIB', 'juniIsisSysMaxLspLifetime'), ('Juniper-ISIS-MIB', 'juniIsisSysL1SpfInterval'), ('Juniper-ISIS-MIB', 'juniIsisSysL2SpfInterval'), ('Juniper-ISIS-MIB', 'juniIsisSysIshHoldTime'), ('Juniper-ISIS-MIB', 'juniIsisSysIshConfigTimer'), ('Juniper-ISIS-MIB', 'juniIsisSysDistributeDomainWide'), ('Juniper-ISIS-MIB', 'juniIsisSysDistance'), ('Juniper-ISIS-MIB', 'juniIsisSysL1MetricStyle'), ('Juniper-ISIS-MIB', 'juniIsisSysL2MetricStyle'), ('Juniper-ISIS-MIB', 'juniIsisSysIsoRouteTag'), ('Juniper-ISIS-MIB', 'juniIsisSysMplsTeLevel'), ('Juniper-ISIS-MIB', 'juniIsisSysMplsTeRtrIdIfIndex'), ('Juniper-ISIS-MIB', 'juniIsisSysMplsTeSpfUseAnyBestPath'), ('Juniper-ISIS-MIB', 'juniIsisSysReferenceBandwidth'), ('Juniper-ISIS-MIB', 'juniIsisSysHighReferenceBandwidth'), ('Juniper-ISIS-MIB', 'juniIsisManAreaAddrRowStatus'), ('Juniper-ISIS-MIB', 'juniIsisSysProtSuppRowStatus'), ('Juniper-ISIS-MIB', 'juniIsisSummAddrRowStatus'), ('Juniper-ISIS-MIB', 'juniIsisSummAddrOperState'), ('Juniper-ISIS-MIB', 'juniIsisSummAddrDefaultMetric'), ('Juniper-ISIS-MIB', 'juniIsisSummAddrDelayMetric'), ('Juniper-ISIS-MIB', 'juniIsisSummAddrExpenseMetric'), ('Juniper-ISIS-MIB', 'juniIsisSummAddrErrorMetric'), ('Juniper-ISIS-MIB', 'juniIsisSummLevel'), ('Juniper-ISIS-MIB', 'juniIsisSysHostNameAreaAddr'), ('Juniper-ISIS-MIB', 'juniIsisSysHostNameName'), ('Juniper-ISIS-MIB', 'juniIsisSysHostNameType'), ('Juniper-ISIS-MIB', 'juniIsisSysHostNameRowStatus'), ('Juniper-ISIS-MIB', 'juniIsisSysAreaAuthenticationPwd'), ('Juniper-ISIS-MIB', 'juniIsisSysAreaAuthenticationKeyType'), ('Juniper-ISIS-MIB', 'juniIsisSysAreaAuthenticationStartAcceptTime'), ('Juniper-ISIS-MIB', 'juniIsisSysAreaAuthenticationStartGenerateTime'), ('Juniper-ISIS-MIB', 'juniIsisSysAreaAuthenticationStopAcceptTime'), ('Juniper-ISIS-MIB', 'juniIsisSysAreaAuthenticationStopGenerateTime'), ('Juniper-ISIS-MIB', 'juniIsisSysAreaAuthenticationRowStatus'), ('Juniper-ISIS-MIB', 'juniIsisSysDomainAuthenticationPwd'), ('Juniper-ISIS-MIB', 'juniIsisSysDomainAuthenticationKeyType'), ('Juniper-ISIS-MIB', 'juniIsisSysDomainAuthenticationStartAcceptTime'), ('Juniper-ISIS-MIB', 'juniIsisSysDomainAuthenticationStartGenerateTime'), ('Juniper-ISIS-MIB', 'juniIsisSysDomainAuthenticationStopAcceptTime'), ('Juniper-ISIS-MIB', 'juniIsisSysDomainAuthenticationStopGenerateTime'), ('Juniper-ISIS-MIB', 'juniIsisSysDomainAuthenticationRowStatus'), ('Juniper-ISIS-MIB', 'juniIsisMplsTeSystemId'), ('Juniper-ISIS-MIB', 'juniIsisMplsTeRouterId'), ('Juniper-ISIS-MIB', 'juniIsisMplsTeTunnelMetric'), ('Juniper-ISIS-MIB', 'juniIsisMplsTeTunnelRelMetric'), ('Juniper-ISIS-MIB', 'juniIsisMplsTeTunnelName')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juni_isis_system_mgmt_group4 = juniIsisSystemMgmtGroup4.setStatus('current') if mibBuilder.loadTexts: juniIsisSystemMgmtGroup4.setDescription('The system level objects for ISIS management functionality.') mibBuilder.exportSymbols('Juniper-ISIS-MIB', juniIsisSysDomainAuthenticationSysInstance=juniIsisSysDomainAuthenticationSysInstance, juniIsisSysIsoRouteTag=juniIsisSysIsoRouteTag, juniIsisCompliance4=juniIsisCompliance4, juniIsisCircL1DelayMetric=juniIsisCircL1DelayMetric, juniIsisSysL1CircAuthenticationStartGenerateTime=juniIsisSysL1CircAuthenticationStartGenerateTime, juniIsisSysL1SpfInterval=juniIsisSysL1SpfInterval, juniIsisSysL2CircAuthenticationTable=juniIsisSysL2CircAuthenticationTable, CircuitID=CircuitID, juniIsisCompliance2=juniIsisCompliance2, juniIsisSysL2CircAuthenticationRowStatus=juniIsisSysL2CircAuthenticationRowStatus, juniIsisObjects=juniIsisObjects, juniIsisSysLSPIgnoreErrors=juniIsisSysLSPIgnoreErrors, juniIsisMplsTeTunnelEntry=juniIsisMplsTeTunnelEntry, juniIsisSysAreaAuthenticationStopAcceptTime=juniIsisSysAreaAuthenticationStopAcceptTime, juniIsisSysMaxPathSplits=juniIsisSysMaxPathSplits, juniIsisCircBfdMultiplier=juniIsisCircBfdMultiplier, juniIsisSysOrigL2LSPBuffSize=juniIsisSysOrigL2LSPBuffSize, juniIsisCircuitMgmtGroup2=juniIsisCircuitMgmtGroup2, juniIsisSysIDFieldLenMismatches=juniIsisSysIDFieldLenMismatches, juniIsisSysProtSuppRowStatus=juniIsisSysProtSuppRowStatus, juniIsisSummAddrDelayMetric=juniIsisSummAddrDelayMetric, juniIsisCircL2ISPriority=juniIsisCircL2ISPriority, juniIsisSummLevel=juniIsisSummLevel, juniIsisCircLSPThrottle=juniIsisCircLSPThrottle, juniIsisCircL2ErrorMetric=juniIsisCircL2ErrorMetric, juniIsisMplsTeTunnelRelMetric=juniIsisMplsTeTunnelRelMetric, juniIsisCircBfdMinRxInterval=juniIsisCircBfdMinRxInterval, juniIsisCircIDFieldLenMismatches=juniIsisCircIDFieldLenMismatches, juniIsisCircL2CSNPInterval=juniIsisCircL2CSNPInterval, OperState=OperState, juniIsisSysOperState=juniIsisSysOperState, juniIsisSysDomainAuthenticationRowStatus=juniIsisSysDomainAuthenticationRowStatus, juniIsisCircInitFails=juniIsisCircInitFails, JuniDefaultMetric=JuniDefaultMetric, juniIsisSysHostNameAreaAddr=juniIsisSysHostNameAreaAddr, juniIsisCircRowStatus=juniIsisCircRowStatus, juniIsisSysAreaAuthenticationPwd=juniIsisSysAreaAuthenticationPwd, juniIsisCircL1ErrorMetric=juniIsisCircL1ErrorMetric, juniIsisCompliance5=juniIsisCompliance5, juniIsisCircMCAddr=juniIsisCircMCAddr, juniIsisSysDomainAuthenticationPwd=juniIsisSysDomainAuthenticationPwd, juniIsisSysAreaAuthenticationKeyType=juniIsisSysAreaAuthenticationKeyType, juniIsisCompliance6=juniIsisCompliance6, juniIsisCircL2CircID=juniIsisCircL2CircID, juniIsisManAreaAddrSysInstance=juniIsisManAreaAddrSysInstance, PYSNMP_MODULE_ID=juniIsisMIB, juniIsisSysMaxLspLifetime=juniIsisSysMaxLspLifetime, juniIsisSysProtSuppEntry=juniIsisSysProtSuppEntry, juniIsisCircLocalID=juniIsisCircLocalID, juniIsisSummAddrErrorMetric=juniIsisSummAddrErrorMetric, juniIsisSysMplsTeLevel=juniIsisSysMplsTeLevel, juniIsisSysSetOverloadBitStartupDuration=juniIsisSysSetOverloadBitStartupDuration, juniIsisMplsTeTunnelSysInstance=juniIsisMplsTeTunnelSysInstance, juniIsisCircL1CircID=juniIsisCircL1CircID, juniIsisSummAddrRowStatus=juniIsisSummAddrRowStatus, juniIsisSysL1CircAuthenticationIfIndex=juniIsisSysL1CircAuthenticationIfIndex, juniIsisSysHostNameRowStatus=juniIsisSysHostNameRowStatus, juniIsisSysL1MetricStyle=juniIsisSysL1MetricStyle, juniIsisSysAreaAuthenticationTable=juniIsisSysAreaAuthenticationTable, juniIsisSummAddrDefaultMetric=juniIsisSummAddrDefaultMetric, juniIsisSysSeqNumSkips=juniIsisSysSeqNumSkips, juniIsisSysSetOverloadBit=juniIsisSysSetOverloadBit, juniIsisCompliance=juniIsisCompliance, juniIsisCircLANL2DesISChanges=juniIsisCircLANL2DesISChanges, juniIsisMplsNextHopIndex=juniIsisMplsNextHopIndex, SupportedProtocol=SupportedProtocol, OtherMetric=OtherMetric, juniIsisSysMaxLSPGenInt=juniIsisSysMaxLSPGenInt, juniIsisConformance=juniIsisConformance, juniIsisSysMaxAreaAddrMismatches=juniIsisSysMaxAreaAddrMismatches, juniIsisSysDomainAuthenticationKeyType=juniIsisSysDomainAuthenticationKeyType, juniIsisCompliances=juniIsisCompliances, juniIsisSysL1CircAuthenticationKeyType=juniIsisSysL1CircAuthenticationKeyType, juniIsisCircBFDGroup=juniIsisCircBFDGroup, juniIsisSysProtSuppProtocol=juniIsisSysProtSuppProtocol, juniIsisSysEntry=juniIsisSysEntry, juniIsisCircLANL1DesISChanges=juniIsisCircLANL1DesISChanges, juniIsisSysAreaAuthenticationEntry=juniIsisSysAreaAuthenticationEntry, juniIsisCircBFDTable=juniIsisCircBFDTable, juniIsisCircBFDEntry=juniIsisCircBFDEntry, juniIsisSummAddrExpenseMetric=juniIsisSummAddrExpenseMetric, juniIsisSysLSPL2DbaseOloads=juniIsisSysLSPL2DbaseOloads, juniIsisSysMinL2LSPGenInt=juniIsisSysMinL2LSPGenInt, juniIsisSysL2MetricStyle=juniIsisSysL2MetricStyle, juniIsisSysL2State=juniIsisSysL2State, LevelState=LevelState, juniIsisSystemMgmtGroup4=juniIsisSystemMgmtGroup4, juniIsisCircL1ExpenseMetric=juniIsisCircL1ExpenseMetric, juniIsisCircLevel=juniIsisCircLevel, juniIsisCircRejAdjs=juniIsisCircRejAdjs, juniIsisCircMeshGroup=juniIsisCircMeshGroup, juniIsisCompliance3=juniIsisCompliance3, juniIsisCircuitMgmtGroup=juniIsisCircuitMgmtGroup, juniIsisSysMplsTeSpfUseAnyBestPath=juniIsisSysMplsTeSpfUseAnyBestPath, juniIsisCircL1DefaultMetric=juniIsisCircL1DefaultMetric, juniIsisSysAttmptToExMaxSeqNums=juniIsisSysAttmptToExMaxSeqNums, juniIsisSysManAddrDropFromAreas=juniIsisSysManAddrDropFromAreas, juniIsisSysMinL1LSPGenInt=juniIsisSysMinL1LSPGenInt, juniIsisCircTable=juniIsisCircTable, juniIsisSysAreaAuthenticationSysInstance=juniIsisSysAreaAuthenticationSysInstance, juniIsisSysIshConfigTimer=juniIsisSysIshConfigTimer, juniIsisSysDomainAuthenticationTable=juniIsisSysDomainAuthenticationTable, juniIsisCircMeshGroupEnabled=juniIsisCircMeshGroupEnabled, OSINSAddress=OSINSAddress, juniIsisCircuitGroup=juniIsisCircuitGroup, juniIsisSysDomainAuthenticationStopAcceptTime=juniIsisSysDomainAuthenticationStopAcceptTime, juniIsisSysDistance=juniIsisSysDistance, juniIsisSummAddrMask=juniIsisSummAddrMask, juniIsisSysDomainAuthenticationEntry=juniIsisSysDomainAuthenticationEntry, juniIsisSysID=juniIsisSysID, juniIsisSysL2CircAuthenticationKeyType=juniIsisSysL2CircAuthenticationKeyType, juniIsisCircManL2Only=juniIsisCircManL2Only, juniIsisSysInstance=juniIsisSysInstance, juniIsisSysDistributeDomainWide=juniIsisSysDistributeDomainWide, ISPriority=ISPriority, juniIsisSysL2CircAuthenticationStartAcceptTime=juniIsisSysL2CircAuthenticationStartAcceptTime, juniIsisManAreaAddrEntry=juniIsisManAreaAddrEntry, juniIsisSysL1CircAuthenticationEntry=juniIsisSysL1CircAuthenticationEntry, juniIsisCircBfdEnable=juniIsisCircBfdEnable, juniIsisMplsTeSystemId=juniIsisMplsTeSystemId, juniIsisSysHostNameEntry=juniIsisSysHostNameEntry, juniIsisSysPollESHelloRate=juniIsisSysPollESHelloRate, juniIsisSysAreaAuthenticationStopGenerateTime=juniIsisSysAreaAuthenticationStopGenerateTime, juniIsisCircL2ExpenseMetric=juniIsisCircL2ExpenseMetric, juniIsisSysHostNameName=juniIsisSysHostNameName, juniIsisSysMaxAreaAddresses=juniIsisSysMaxAreaAddresses, juniIsisCircMinLSPTransInt=juniIsisCircMinLSPTransInt, juniIsisCircL1ISPriority=juniIsisCircL1ISPriority, juniIsisCircL2DelayMetric=juniIsisCircL2DelayMetric, juniIsisSysL2CircAuthenticationEntry=juniIsisSysL2CircAuthenticationEntry, juniIsisSysAreaAuthenticationStartGenerateTime=juniIsisSysAreaAuthenticationStartGenerateTime, juniIsisCircL1DesIS=juniIsisCircL1DesIS, juniIsisSysHighReferenceBandwidth=juniIsisSysHighReferenceBandwidth, juniIsisSysProtSuppTable=juniIsisSysProtSuppTable, juniIsisSysL2SpfInterval=juniIsisSysL2SpfInterval, juniIsisSysHostNameSysId=juniIsisSysHostNameSysId, juniIsisSysL2CircAuthenticationPwd=juniIsisSysL2CircAuthenticationPwd, juniIsisSysDomainAuthenticationStartGenerateTime=juniIsisSysDomainAuthenticationStartGenerateTime, juniIsisSysMaxAreaCheck=juniIsisSysMaxAreaCheck, juniIsisSysCorrLSPs=juniIsisSysCorrLSPs, juniIsisCircAdjChanges=juniIsisCircAdjChanges, juniIsisSysL1CircAuthenticationKeyId=juniIsisSysL1CircAuthenticationKeyId, juniIsisSysWaitTime=juniIsisSysWaitTime, juniIsisSysReferenceBandwidth=juniIsisSysReferenceBandwidth, juniIsisSysIshHoldTime=juniIsisSysIshHoldTime, juniIsisManAreaAddrRowStatus=juniIsisManAreaAddrRowStatus, juniIsisCircSysInstance=juniIsisCircSysInstance, juniIsisSysOrigLSPBuffSize=juniIsisSysOrigLSPBuffSize, juniIsisSysHostNameType=juniIsisSysHostNameType, juniIsisSysL1CircAuthenticationPwd=juniIsisSysL1CircAuthenticationPwd, juniIsisSysL2CircAuthenticationIfIndex=juniIsisSysL2CircAuthenticationIfIndex, juniIsisCircBfdMinTxInterval=juniIsisCircBfdMinTxInterval, juniIsisManAreaAddr=juniIsisManAreaAddr, juniIsisSysAreaAuthenticationKeyId=juniIsisSysAreaAuthenticationKeyId, juniIsisSummAddress=juniIsisSummAddress, juniIsisMIB=juniIsisMIB, juniIsisCircEntry=juniIsisCircEntry, juniIsisSummAddrSysInstance=juniIsisSummAddrSysInstance, SystemID=SystemID, juniIsisSummAddrOperState=juniIsisSummAddrOperState, juniIsisMIBGroups=juniIsisMIBGroups, juniIsisMplsTeTunnelMetric=juniIsisMplsTeTunnelMetric, juniIsisSysTable=juniIsisSysTable, juniIsisSystemGroup=juniIsisSystemGroup, juniIsisSysProtSuppSysInstance=juniIsisSysProtSuppSysInstance, juniIsisCircOperState=juniIsisCircOperState, juniIsisSysL1CircAuthenticationSysInstance=juniIsisSysL1CircAuthenticationSysInstance, juniIsisManAreaAddrTable=juniIsisManAreaAddrTable, juniIsisCircExtDomain=juniIsisCircExtDomain, juniIsisCircL2DesIS=juniIsisCircL2DesIS, juniIsisSysAreaAuthenticationStartAcceptTime=juniIsisSysAreaAuthenticationStartAcceptTime, juniIsisSysL1CircAuthenticationStopGenerateTime=juniIsisSysL1CircAuthenticationStopGenerateTime, juniIsisCircInCtrlPDUs=juniIsisCircInCtrlPDUs, juniIsisSysL2CircAuthenticationStartGenerateTime=juniIsisSysL2CircAuthenticationStartGenerateTime, juniIsisMplsTeRouterId=juniIsisMplsTeRouterId, juniIsisCircState=juniIsisCircState, juniIsisSystemMgmtGroup3=juniIsisSystemMgmtGroup3, juniIsisSystemMgmtGroup2=juniIsisSystemMgmtGroup2, juniIsisSysDomainAuthenticationKeyId=juniIsisSysDomainAuthenticationKeyId, juniIsisSysAuthFails=juniIsisSysAuthFails, juniIsisSysDomainAuthenticationStopGenerateTime=juniIsisSysDomainAuthenticationStopGenerateTime, juniIsisSysHostNameSysInstance=juniIsisSysHostNameSysInstance, juniIsisSysL1CircAuthenticationTable=juniIsisSysL1CircAuthenticationTable, LSPBuffSize=LSPBuffSize, juniIsisSummAddrTable=juniIsisSummAddrTable, juniIsisSysL2CircAuthenticationStopGenerateTime=juniIsisSysL2CircAuthenticationStopGenerateTime, juniIsisSysL1CircAuthenticationRowStatus=juniIsisSysL1CircAuthenticationRowStatus, juniIsisCircL2DefaultMetric=juniIsisCircL2DefaultMetric, juniIsisCircPtToPtCircID=juniIsisCircPtToPtCircID, juniIsisSysL2CircAuthenticationStopAcceptTime=juniIsisSysL2CircAuthenticationStopAcceptTime, juniIsisCircOutCtrlPDUs=juniIsisCircOutCtrlPDUs, juniIsisSysHostNameTable=juniIsisSysHostNameTable, juniIsisSysL1State=juniIsisSysL1State, juniIsisMplsTeTunnelName=juniIsisMplsTeTunnelName, juniIsisCircL2HelloMultiplier=juniIsisCircL2HelloMultiplier, juniIsisSysL2CircAuthenticationKeyId=juniIsisSysL2CircAuthenticationKeyId, juniIsisSysMplsTeRtrIdIfIndex=juniIsisSysMplsTeRtrIdIfIndex, juniIsisCircL2HelloTimer=juniIsisCircL2HelloTimer, juniIsisSysAreaAuthenticationRowStatus=juniIsisSysAreaAuthenticationRowStatus, juniIsisCircMinLSPReTransInt=juniIsisCircMinLSPReTransInt, juniIsisSysL1CircAuthenticationStopAcceptTime=juniIsisSysL1CircAuthenticationStopAcceptTime, juniIsisCircL1CSNPInterval=juniIsisCircL1CSNPInterval, juniIsisCircIfIndex=juniIsisCircIfIndex, juniIsisSysType=juniIsisSysType, juniIsisCircType=juniIsisCircType, juniIsisCircL1HelloTimer=juniIsisCircL1HelloTimer, juniIsisCircL1HelloMultiplier=juniIsisCircL1HelloMultiplier, juniIsisSysDomainAuthenticationStartAcceptTime=juniIsisSysDomainAuthenticationStartAcceptTime, juniIsisSysL1CircAuthenticationStartAcceptTime=juniIsisSysL1CircAuthenticationStartAcceptTime, juniIsisSysL2CircAuthenticationSysInstance=juniIsisSysL2CircAuthenticationSysInstance, juniIsisSystemMgmtGroup=juniIsisSystemMgmtGroup, juniIsisSysVersion=juniIsisSysVersion, AuthTime=AuthTime, juniIsisSysOwnLSPPurges=juniIsisSysOwnLSPPurges, juniIsisSummAddrEntry=juniIsisSummAddrEntry, juniIsisSysLSPL1DbaseOloads=juniIsisSysLSPL1DbaseOloads, juniIsisMplsTeTunnelTable=juniIsisMplsTeTunnelTable, juniIsisTrapGroup=juniIsisTrapGroup)
env = None pg = None # __pragma__ ('opov') def init(environ): global env, pg env = environ pg = env['pg'] tests = [test_sprite, test_sprite_group] return tests def test_sprite(): Sprite = pg.sprite.Sprite Group = pg.sprite.Group g = [Group() for i in range(20)] sx, rx, i = {}, {}, 10 sx[0] = Sprite() sx[1] = Sprite(*g) sx[2] = Sprite(g) sx[3] = Sprite([]) sx[4] = Sprite(g[0]) sx[5] = Sprite([g[0],g[1]]) sx[6] = Sprite([g]) sx[7] = Sprite([g],g) sx[8] = Sprite(g); sx[8].remove(g[0]); sx[8].remove([g[0],g[1]],g[10]) sx[9] = Sprite(g); sx[9].kill() sx[0+i] = Sprite(); sx[0+i].add() sx[1+i] = Sprite(); sx[1+i].add(*g) sx[2+i] = Sprite(); sx[2+i].add(g) sx[3+i] = Sprite(); sx[3+i].add([]) sx[4+i] = Sprite(); sx[4+i].add(g[0]) sx[5+i] = Sprite(); sx[5+i].add([g[0],g[1]]) sx[6+i] = Sprite(); sx[6+i].add([g]) sx[7+i] = Sprite(); sx[7+i].add([g],g) sx[8+i] = Sprite(); sx[8+i].add(g); sx[8+i].remove(g[0]); sx[8+i].remove([g[0],g[1]],g[10]) sx[9+i] = Sprite(); sx[9+i].add(g); sx[9+i].kill() rx[0] = rx[0+i] = [ 0, False ] rx[1] = rx[1+i] = [ 20, True ] rx[2] = rx[2+i] = [ 20, True ] rx[3] = rx[3+i] = [ 0, False ] rx[4] = rx[4+i] = [ 1, True ] rx[5] = rx[5+i] = [ 2, True ] rx[6] = rx[6+i] = [ 20, True ] rx[7] = rx[7+i] = [ 20, True ] rx[8] = rx[8+i] = [ 17, True ] rx[9] = rx[9+i] = [ 0, False ] for i in range(20): s,r = sx[i],rx[i] assert len(s.groups()) == r[0] assert s.alive() == r[1] def test_sprite_group(): for Group in (pg.sprite.Group, pg.sprite.RenderUpdates, pg.sprite.OrderedUpdates, pg.sprite.LayeredUpdates): Sprite = pg.sprite.Sprite s = [Sprite() for i in range(20)] grp = Group(s) gx, rx, i = {}, {}, 12 gx[0] = Group() gx[1] = Group(*s) gx[2] = Group(s) gx[3] = Group([]) gx[4] = Group(s[0]) gx[5] = Group([s[0],s[1]]) gx[6] = Group([s]) gx[7] = Group([s],s) gx[8] = Group(grp) gx[9] = Group([grp]) gx[10] = Group(s); gx[8].remove(s[0]); gx[8].remove([s[0],s[1]],s[10]) gx[11] = Group(s); gx[9].empty() gx[0+i] = Group(); gx[0+i].add() gx[1+i] = Group(); gx[1+i].add(*s) gx[2+i] = Group(); gx[2+i].add(s) gx[3+i] = Group(); gx[3+i].add([]) gx[4+i] = Group(); gx[4+i].add(s[0]) gx[5+i] = Group(); gx[5+i].add([s[0],s[1]]) gx[6+i] = Group(); gx[6+i].add([s]) gx[7+i] = Group(); gx[7+i].add([s],s) gx[8+i] = Group(); gx[8+i].add(grp) gx[9+i] = Group(); gx[9+i].add([grp]) gx[10+i] = Group(s); gx[10+i].add(s); gx[10+i].remove(s[0]); gx[10+i].remove([s[0],s[1]],s[10]) gx[11+i] = Group(s); gx[11+i].add(s); gx[11+i].empty() rx[0] = rx[0+i] = [ 0, False, False, False ] rx[1] = rx[1+i] = [ 20, True, True, True ] rx[2] = rx[2+i] = [ 20, True, True, True ] rx[3] = rx[3+i] = [ 0, False, False, False ] rx[4] = rx[4+i] = [ 1, True, False, False ] rx[5] = rx[5+i] = [ 2, True, False, False ] rx[6] = rx[6+i] = [ 20, True, True, True ] rx[7] = rx[7+i] = [ 20, True, True, True ] rx[8] = rx[8+i] = [ 20, True, True, True ] rx[9] = rx[9+i] = [ 20, True, True, True ] rx[10] = rx[10+i] = [ 17, False, False, True ] rx[11] = rx[11+i] = [ 0, False, False, False ] for x in range(i*2): g,r = gx[i],rx[i] assert len(g.sprites()) == r[0] assert g.has(s[0]) == r[1] assert g.has([s[0],s[1],s[2]]) == r[2] assert g.has([s[2],s[5]],s[6]) == r[3]
env = None pg = None def init(environ): global env, pg env = environ pg = env['pg'] tests = [test_sprite, test_sprite_group] return tests def test_sprite(): sprite = pg.sprite.Sprite group = pg.sprite.Group g = [group() for i in range(20)] (sx, rx, i) = ({}, {}, 10) sx[0] = sprite() sx[1] = sprite(*g) sx[2] = sprite(g) sx[3] = sprite([]) sx[4] = sprite(g[0]) sx[5] = sprite([g[0], g[1]]) sx[6] = sprite([g]) sx[7] = sprite([g], g) sx[8] = sprite(g) sx[8].remove(g[0]) sx[8].remove([g[0], g[1]], g[10]) sx[9] = sprite(g) sx[9].kill() sx[0 + i] = sprite() sx[0 + i].add() sx[1 + i] = sprite() sx[1 + i].add(*g) sx[2 + i] = sprite() sx[2 + i].add(g) sx[3 + i] = sprite() sx[3 + i].add([]) sx[4 + i] = sprite() sx[4 + i].add(g[0]) sx[5 + i] = sprite() sx[5 + i].add([g[0], g[1]]) sx[6 + i] = sprite() sx[6 + i].add([g]) sx[7 + i] = sprite() sx[7 + i].add([g], g) sx[8 + i] = sprite() sx[8 + i].add(g) sx[8 + i].remove(g[0]) sx[8 + i].remove([g[0], g[1]], g[10]) sx[9 + i] = sprite() sx[9 + i].add(g) sx[9 + i].kill() rx[0] = rx[0 + i] = [0, False] rx[1] = rx[1 + i] = [20, True] rx[2] = rx[2 + i] = [20, True] rx[3] = rx[3 + i] = [0, False] rx[4] = rx[4 + i] = [1, True] rx[5] = rx[5 + i] = [2, True] rx[6] = rx[6 + i] = [20, True] rx[7] = rx[7 + i] = [20, True] rx[8] = rx[8 + i] = [17, True] rx[9] = rx[9 + i] = [0, False] for i in range(20): (s, r) = (sx[i], rx[i]) assert len(s.groups()) == r[0] assert s.alive() == r[1] def test_sprite_group(): for group in (pg.sprite.Group, pg.sprite.RenderUpdates, pg.sprite.OrderedUpdates, pg.sprite.LayeredUpdates): sprite = pg.sprite.Sprite s = [sprite() for i in range(20)] grp = group(s) (gx, rx, i) = ({}, {}, 12) gx[0] = group() gx[1] = group(*s) gx[2] = group(s) gx[3] = group([]) gx[4] = group(s[0]) gx[5] = group([s[0], s[1]]) gx[6] = group([s]) gx[7] = group([s], s) gx[8] = group(grp) gx[9] = group([grp]) gx[10] = group(s) gx[8].remove(s[0]) gx[8].remove([s[0], s[1]], s[10]) gx[11] = group(s) gx[9].empty() gx[0 + i] = group() gx[0 + i].add() gx[1 + i] = group() gx[1 + i].add(*s) gx[2 + i] = group() gx[2 + i].add(s) gx[3 + i] = group() gx[3 + i].add([]) gx[4 + i] = group() gx[4 + i].add(s[0]) gx[5 + i] = group() gx[5 + i].add([s[0], s[1]]) gx[6 + i] = group() gx[6 + i].add([s]) gx[7 + i] = group() gx[7 + i].add([s], s) gx[8 + i] = group() gx[8 + i].add(grp) gx[9 + i] = group() gx[9 + i].add([grp]) gx[10 + i] = group(s) gx[10 + i].add(s) gx[10 + i].remove(s[0]) gx[10 + i].remove([s[0], s[1]], s[10]) gx[11 + i] = group(s) gx[11 + i].add(s) gx[11 + i].empty() rx[0] = rx[0 + i] = [0, False, False, False] rx[1] = rx[1 + i] = [20, True, True, True] rx[2] = rx[2 + i] = [20, True, True, True] rx[3] = rx[3 + i] = [0, False, False, False] rx[4] = rx[4 + i] = [1, True, False, False] rx[5] = rx[5 + i] = [2, True, False, False] rx[6] = rx[6 + i] = [20, True, True, True] rx[7] = rx[7 + i] = [20, True, True, True] rx[8] = rx[8 + i] = [20, True, True, True] rx[9] = rx[9 + i] = [20, True, True, True] rx[10] = rx[10 + i] = [17, False, False, True] rx[11] = rx[11 + i] = [0, False, False, False] for x in range(i * 2): (g, r) = (gx[i], rx[i]) assert len(g.sprites()) == r[0] assert g.has(s[0]) == r[1] assert g.has([s[0], s[1], s[2]]) == r[2] assert g.has([s[2], s[5]], s[6]) == r[3]
# -*- coding: utf-8 -*- def func(comp_list, cr_list): ord_list = sorted(cr_list) return comp_list.count('+'), comp_list.count('-'), ord_list n = int(input()) comp_list = [] cr_list = [] for _ in range(n): comp, cr = map(str, input().split()) comp_list.append(comp) cr_list.append(cr) p_comp, n_comp, cr_ord = func(comp_list, cr_list) for c in cr_ord: print(c) print("Se comportaram: {0} | Nao se comportaram: {1}".format(p_comp, n_comp))
def func(comp_list, cr_list): ord_list = sorted(cr_list) return (comp_list.count('+'), comp_list.count('-'), ord_list) n = int(input()) comp_list = [] cr_list = [] for _ in range(n): (comp, cr) = map(str, input().split()) comp_list.append(comp) cr_list.append(cr) (p_comp, n_comp, cr_ord) = func(comp_list, cr_list) for c in cr_ord: print(c) print('Se comportaram: {0} | Nao se comportaram: {1}'.format(p_comp, n_comp))
a = [] a.append(2) a.append(4) a.append(6) print(a[0:4]) #print(a)
a = [] a.append(2) a.append(4) a.append(6) print(a[0:4])
class Piece(object): ''' two type of players: black and white ''' def __init__(self, player): self.player = player class Grid(object): ''' each grid has one color: W - white / B - black a grid may point to a piece object ''' def __init__(self, color, piece = None): self.color = color self.piece = piece class Board(object): def __init__(self): self.checkerBoard = [[0 for _ in xrange(6)] for _ in xrange(6)] self._create() # OR (conf.BOARDSIZE/2) * (conf.BOARDSIZE/2 - 1) self.white_piece_Num = 6 self.black_piece_Num = 6 def _create(self): ''' initialize a checker board assign grid color and pieces ''' for i in xrange(6): for j in xrange(6): if not i%2 and not j%2: # both even self.checkerBoard[i][j] = Grid("W") elif i%2 and not j%2: # odd, even self.checkerBoard[i][j] = Grid("B") elif not i%2 and j%2: # even, odd self.checkerBoard[i][j] = Grid("B") else: # odd, odd self.checkerBoard[i][j] = Grid("W") if self.checkerBoard[i][j].color == "B": if j<2: self.checkerBoard[i][j].piece = Piece("white") elif 3<j<6: self.checkerBoard[i][j].piece = Piece("black") return def _direction(self, i, j, moveto): ''' calculate coordinates after a move on selected direction return type: tuple ''' return {'UpLeft': lambda: (i-1, j-1), 'UpRight': lambda: (i+1, j-1), 'DownLeft': lambda: (i-1, j+1), 'DownRight': lambda: (i+1, j+1), }.get(moveto)() def _valid_position(self, i, j): ''' check whether given position is valid in checkerBoard return type: bool ''' return (-1 < i < 6) and (-1 < j < 6) def move(self, start, end): ''' move piece from start to end (coordinate) ''' s_i, s_j = start[0], start[1] e_i, e_j = end[0], end[1] self.checkerBoard[e_i][e_j].piece = self.checkerBoard[s_i][s_j].piece self.checkerBoard[s_i][s_j].piece = None def remove(self, piece): ''' remove piece from board ''' i, j = piece[0], piece[1] if self.checkerBoard[i][j].piece.player == "white": self.white_piece_Num -= 1 else: self.black_piece_Num -= 1 self.checkerBoard[i][j].piece = None def check_jump(self, player): ''' return all capture moves for given player return type: list[list, list, ...] ''' jump_list = [] for i in xrange(6): for j in xrange(6): if self.checkerBoard[i][j].piece\ and self.checkerBoard[i][j].piece.player == player: if player == "white": adversary = "black" L_move1 = self._direction(i, j, 'DownLeft') R_move1 = self._direction(i, j, 'DownRight') L_move2 = self._direction(L_move1[0], L_move1[1], 'DownLeft') R_move2 = self._direction(R_move1[0], R_move1[1], 'DownRight') L1_i, L1_j, R1_i, R1_j = L_move1[0], L_move1[1], R_move1[0], R_move1[1] L2_i, L2_j, R2_i, R2_j = L_move2[0], L_move2[1], R_move2[0], R_move2[1] else: adversary = "white" L_move1 = self._direction(i, j, 'UpLeft') R_move1 = self._direction(i, j, 'UpRight') L_move2 = self._direction(L_move1[0], L_move1[1], 'UpLeft') R_move2 = self._direction(R_move1[0], R_move1[1], 'UpRight') L1_i, L1_j, R1_i, R1_j = L_move1[0], L_move1[1], R_move1[0], R_move1[1] L2_i, L2_j, R2_i, R2_j = L_move2[0], L_move2[1], R_move2[0], R_move2[1] if self._valid_position(L2_i, L2_j) or self._valid_position(R2_i, R2_j): if self._valid_position(L2_i, L2_j)\ and self.checkerBoard[L1_i][L1_j].piece\ and self.checkerBoard[L1_i][L1_j].piece.player == adversary\ and self.checkerBoard[L2_i][L2_j].piece is None: jump_list.append([i, j]) if self._valid_position(R2_i, R2_j)\ and self.checkerBoard[R1_i][R1_j].piece\ and self.checkerBoard[R1_i][R1_j].piece.player == adversary\ and self.checkerBoard[R2_i][R2_j].piece is None: jump_list.append([i, j]) return jump_list def valid_moves(self, piece, jump = 0): ''' return all valid moves for selected piece return type: list[list, list, ...] ''' i, j = piece cur_grid = self.checkerBoard[i][j] if cur_grid.piece == None: # if no piece in that grid return [] valid_moves = [] if jump: # if current piece is from another position after one capture move, # then check whether there are other capture moves # robot move if cur_grid.piece.player == "white": adversary = "black" L_move1 = self._direction(i, j, 'DownLeft') R_move1 = self._direction(i, j, 'DownRight') L_move2 = self._direction(L_move1[0], L_move1[1], 'DownLeft') R_move2 = self._direction(R_move1[0], R_move1[1], 'DownRight') L1_i, L1_j, R1_i, R1_j = L_move1[0], L_move1[1], R_move1[0], R_move1[1] L2_i, L2_j, R2_i, R2_j = L_move2[0], L_move2[1], R_move2[0], R_move2[1] # human move else: adversary = "white" L_move1 = self._direction(i, j, 'UpLeft') R_move1 = self._direction(i, j, 'UpRight') L_move2 = self._direction(L_move1[0], L_move1[1], 'UpLeft') R_move2 = self._direction(R_move1[0], R_move1[1], 'UpRight') L1_i, L1_j, R1_i, R1_j = L_move1[0], L_move1[1], R_move1[0], R_move1[1] L2_i, L2_j, R2_i, R2_j = L_move2[0], L_move2[1], R_move2[0], R_move2[1] # check left if (self._valid_position(L2_i, L2_j))\ and self.checkerBoard[L1_i][L1_j].piece\ and self.checkerBoard[L1_i][L1_j].piece.player == adversary\ and self.checkerBoard[L2_i][L2_j].piece is None: # empty valid_moves.append([L2_i, L2_j]) # check right if self._valid_position(R2_i, R2_j)\ and self.checkerBoard[R1_i][R1_j].piece\ and self.checkerBoard[R1_i][R1_j].piece.player == adversary\ and self.checkerBoard[R2_i][R2_j].piece is None: # empty valid_moves.append([R2_i, R2_j]) # if not after a capture move else: # computer move jump_exist = 0 # capture move flag player = cur_grid.piece.player if cur_grid.piece.player == "white": adversary = "black" L_move1 = self._direction(i, j, 'DownLeft') R_move1 = self._direction(i, j, 'DownRight') L_move2 = self._direction(L_move1[0], L_move1[1], 'DownLeft') R_move2 = self._direction(R_move1[0], R_move1[1], 'DownRight') L1_i, L1_j, R1_i, R1_j = L_move1[0], L_move1[1], R_move1[0], R_move1[1] L2_i, L2_j, R2_i, R2_j = L_move2[0], L_move2[1], R_move2[0], R_move2[1] else: adversary = "white" L_move1 = self._direction(i, j, 'UpLeft') R_move1 = self._direction(i, j, 'UpRight') L_move2 = self._direction(L_move1[0], L_move1[1], 'UpLeft') R_move2 = self._direction(R_move1[0], R_move1[1], 'UpRight') L1_i, L1_j, R1_i, R1_j = L_move1[0], L_move1[1], R_move1[0], R_move1[1] L2_i, L2_j, R2_i, R2_j = L_move2[0], L_move2[1], R_move2[0], R_move2[1] # if capture moves exist, return all capture moves if self._valid_position(L2_i, L2_j) or self._valid_position(R2_i, R2_j): if self._valid_position(L2_i, L2_j)\ and self.checkerBoard[L1_i][L1_j].piece\ and self.checkerBoard[L1_i][L1_j].piece.player == adversary\ and self.checkerBoard[L2_i][L2_j].piece is None: jump_exist = 1 valid_moves.append([L2_i, L2_j]) if self._valid_position(R2_i, R2_j)\ and self.checkerBoard[R1_i][R1_j].piece\ and self.checkerBoard[R1_i][R1_j].piece.player == adversary\ and self.checkerBoard[R2_i][R2_j].piece is None: jump_exist = 1 valid_moves.append([R2_i, R2_j]) if jump_exist == 0: # if there is no capture move if self._valid_position(L1_i, L1_j)\ and self.checkerBoard[L1_i][L1_j].piece == None: valid_moves.append([L1_i, L1_j]) if self._valid_position(R1_i, R1_j)\ and self.checkerBoard[R1_i][R1_j].piece == None: valid_moves.append([R1_i, R1_j]) return valid_moves
class Piece(object): """ two type of players: black and white """ def __init__(self, player): self.player = player class Grid(object): """ each grid has one color: W - white / B - black a grid may point to a piece object """ def __init__(self, color, piece=None): self.color = color self.piece = piece class Board(object): def __init__(self): self.checkerBoard = [[0 for _ in xrange(6)] for _ in xrange(6)] self._create() self.white_piece_Num = 6 self.black_piece_Num = 6 def _create(self): """ initialize a checker board assign grid color and pieces """ for i in xrange(6): for j in xrange(6): if not i % 2 and (not j % 2): self.checkerBoard[i][j] = grid('W') elif i % 2 and (not j % 2): self.checkerBoard[i][j] = grid('B') elif not i % 2 and j % 2: self.checkerBoard[i][j] = grid('B') else: self.checkerBoard[i][j] = grid('W') if self.checkerBoard[i][j].color == 'B': if j < 2: self.checkerBoard[i][j].piece = piece('white') elif 3 < j < 6: self.checkerBoard[i][j].piece = piece('black') return def _direction(self, i, j, moveto): """ calculate coordinates after a move on selected direction return type: tuple """ return {'UpLeft': lambda : (i - 1, j - 1), 'UpRight': lambda : (i + 1, j - 1), 'DownLeft': lambda : (i - 1, j + 1), 'DownRight': lambda : (i + 1, j + 1)}.get(moveto)() def _valid_position(self, i, j): """ check whether given position is valid in checkerBoard return type: bool """ return -1 < i < 6 and -1 < j < 6 def move(self, start, end): """ move piece from start to end (coordinate) """ (s_i, s_j) = (start[0], start[1]) (e_i, e_j) = (end[0], end[1]) self.checkerBoard[e_i][e_j].piece = self.checkerBoard[s_i][s_j].piece self.checkerBoard[s_i][s_j].piece = None def remove(self, piece): """ remove piece from board """ (i, j) = (piece[0], piece[1]) if self.checkerBoard[i][j].piece.player == 'white': self.white_piece_Num -= 1 else: self.black_piece_Num -= 1 self.checkerBoard[i][j].piece = None def check_jump(self, player): """ return all capture moves for given player return type: list[list, list, ...] """ jump_list = [] for i in xrange(6): for j in xrange(6): if self.checkerBoard[i][j].piece and self.checkerBoard[i][j].piece.player == player: if player == 'white': adversary = 'black' l_move1 = self._direction(i, j, 'DownLeft') r_move1 = self._direction(i, j, 'DownRight') l_move2 = self._direction(L_move1[0], L_move1[1], 'DownLeft') r_move2 = self._direction(R_move1[0], R_move1[1], 'DownRight') (l1_i, l1_j, r1_i, r1_j) = (L_move1[0], L_move1[1], R_move1[0], R_move1[1]) (l2_i, l2_j, r2_i, r2_j) = (L_move2[0], L_move2[1], R_move2[0], R_move2[1]) else: adversary = 'white' l_move1 = self._direction(i, j, 'UpLeft') r_move1 = self._direction(i, j, 'UpRight') l_move2 = self._direction(L_move1[0], L_move1[1], 'UpLeft') r_move2 = self._direction(R_move1[0], R_move1[1], 'UpRight') (l1_i, l1_j, r1_i, r1_j) = (L_move1[0], L_move1[1], R_move1[0], R_move1[1]) (l2_i, l2_j, r2_i, r2_j) = (L_move2[0], L_move2[1], R_move2[0], R_move2[1]) if self._valid_position(L2_i, L2_j) or self._valid_position(R2_i, R2_j): if self._valid_position(L2_i, L2_j) and self.checkerBoard[L1_i][L1_j].piece and (self.checkerBoard[L1_i][L1_j].piece.player == adversary) and (self.checkerBoard[L2_i][L2_j].piece is None): jump_list.append([i, j]) if self._valid_position(R2_i, R2_j) and self.checkerBoard[R1_i][R1_j].piece and (self.checkerBoard[R1_i][R1_j].piece.player == adversary) and (self.checkerBoard[R2_i][R2_j].piece is None): jump_list.append([i, j]) return jump_list def valid_moves(self, piece, jump=0): """ return all valid moves for selected piece return type: list[list, list, ...] """ (i, j) = piece cur_grid = self.checkerBoard[i][j] if cur_grid.piece == None: return [] valid_moves = [] if jump: if cur_grid.piece.player == 'white': adversary = 'black' l_move1 = self._direction(i, j, 'DownLeft') r_move1 = self._direction(i, j, 'DownRight') l_move2 = self._direction(L_move1[0], L_move1[1], 'DownLeft') r_move2 = self._direction(R_move1[0], R_move1[1], 'DownRight') (l1_i, l1_j, r1_i, r1_j) = (L_move1[0], L_move1[1], R_move1[0], R_move1[1]) (l2_i, l2_j, r2_i, r2_j) = (L_move2[0], L_move2[1], R_move2[0], R_move2[1]) else: adversary = 'white' l_move1 = self._direction(i, j, 'UpLeft') r_move1 = self._direction(i, j, 'UpRight') l_move2 = self._direction(L_move1[0], L_move1[1], 'UpLeft') r_move2 = self._direction(R_move1[0], R_move1[1], 'UpRight') (l1_i, l1_j, r1_i, r1_j) = (L_move1[0], L_move1[1], R_move1[0], R_move1[1]) (l2_i, l2_j, r2_i, r2_j) = (L_move2[0], L_move2[1], R_move2[0], R_move2[1]) if self._valid_position(L2_i, L2_j) and self.checkerBoard[L1_i][L1_j].piece and (self.checkerBoard[L1_i][L1_j].piece.player == adversary) and (self.checkerBoard[L2_i][L2_j].piece is None): valid_moves.append([L2_i, L2_j]) if self._valid_position(R2_i, R2_j) and self.checkerBoard[R1_i][R1_j].piece and (self.checkerBoard[R1_i][R1_j].piece.player == adversary) and (self.checkerBoard[R2_i][R2_j].piece is None): valid_moves.append([R2_i, R2_j]) else: jump_exist = 0 player = cur_grid.piece.player if cur_grid.piece.player == 'white': adversary = 'black' l_move1 = self._direction(i, j, 'DownLeft') r_move1 = self._direction(i, j, 'DownRight') l_move2 = self._direction(L_move1[0], L_move1[1], 'DownLeft') r_move2 = self._direction(R_move1[0], R_move1[1], 'DownRight') (l1_i, l1_j, r1_i, r1_j) = (L_move1[0], L_move1[1], R_move1[0], R_move1[1]) (l2_i, l2_j, r2_i, r2_j) = (L_move2[0], L_move2[1], R_move2[0], R_move2[1]) else: adversary = 'white' l_move1 = self._direction(i, j, 'UpLeft') r_move1 = self._direction(i, j, 'UpRight') l_move2 = self._direction(L_move1[0], L_move1[1], 'UpLeft') r_move2 = self._direction(R_move1[0], R_move1[1], 'UpRight') (l1_i, l1_j, r1_i, r1_j) = (L_move1[0], L_move1[1], R_move1[0], R_move1[1]) (l2_i, l2_j, r2_i, r2_j) = (L_move2[0], L_move2[1], R_move2[0], R_move2[1]) if self._valid_position(L2_i, L2_j) or self._valid_position(R2_i, R2_j): if self._valid_position(L2_i, L2_j) and self.checkerBoard[L1_i][L1_j].piece and (self.checkerBoard[L1_i][L1_j].piece.player == adversary) and (self.checkerBoard[L2_i][L2_j].piece is None): jump_exist = 1 valid_moves.append([L2_i, L2_j]) if self._valid_position(R2_i, R2_j) and self.checkerBoard[R1_i][R1_j].piece and (self.checkerBoard[R1_i][R1_j].piece.player == adversary) and (self.checkerBoard[R2_i][R2_j].piece is None): jump_exist = 1 valid_moves.append([R2_i, R2_j]) if jump_exist == 0: if self._valid_position(L1_i, L1_j) and self.checkerBoard[L1_i][L1_j].piece == None: valid_moves.append([L1_i, L1_j]) if self._valid_position(R1_i, R1_j) and self.checkerBoard[R1_i][R1_j].piece == None: valid_moves.append([R1_i, R1_j]) return valid_moves
#List items are indexed and you can access them by referring to the index number: #Example #Print the second item of the list: thislist = ["apple", "banana", "cherry"] print(thislist[1])
thislist = ['apple', 'banana', 'cherry'] print(thislist[1])
# # PySNMP MIB module EMPIRE-APACHEMOD (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/EMPIRE-APACHEMOD # Produced by pysmi-0.3.4 at Mon Apr 29 18:48:20 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, ConstraintsUnion, ValueSizeConstraint, ValueRangeConstraint, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion", "ValueSizeConstraint", "ValueRangeConstraint", "SingleValueConstraint") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") Counter32, enterprises, ModuleIdentity, ObjectIdentity, TimeTicks, iso, Bits, NotificationType, MibIdentifier, NotificationType, IpAddress, Counter64, MibScalar, MibTable, MibTableRow, MibTableColumn, Gauge32, Integer32, Unsigned32 = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "enterprises", "ModuleIdentity", "ObjectIdentity", "TimeTicks", "iso", "Bits", "NotificationType", "MibIdentifier", "NotificationType", "IpAddress", "Counter64", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Gauge32", "Integer32", "Unsigned32") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") empire = MibIdentifier((1, 3, 6, 1, 4, 1, 546)) applications = MibIdentifier((1, 3, 6, 1, 4, 1, 546, 16)) apacheSrv = MibIdentifier((1, 3, 6, 1, 4, 1, 546, 16, 3)) apacheModVersion = MibScalar((1, 3, 6, 1, 4, 1, 546, 16, 3, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheModVersion.setStatus('mandatory') apacheModMode = MibScalar((1, 3, 6, 1, 4, 1, 546, 16, 3, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("fullMode", 1), ("restrictedMode", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheModMode.setStatus('mandatory') apacheConfigTable = MibTable((1, 3, 6, 1, 4, 1, 546, 16, 3, 10), ) if mibBuilder.loadTexts: apacheConfigTable.setStatus('mandatory') apacheConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1), ).setIndexNames((0, "EMPIRE-APACHEMOD", "apacheConfigPort")) if mibBuilder.loadTexts: apacheConfigEntry.setStatus('mandatory') apacheConfigPort = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheConfigPort.setStatus('mandatory') apacheConfigVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheConfigVersion.setStatus('mandatory') apacheConfigPID = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheConfigPID.setStatus('mandatory') apacheConfigRunMode = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 4), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheConfigRunMode.setStatus('mandatory') apacheConfigUser = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 5), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheConfigUser.setStatus('mandatory') apacheConfigGroup = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 6), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheConfigGroup.setStatus('mandatory') apacheConfigHostname = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 7), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheConfigHostname.setStatus('mandatory') apacheConfigStartProcs = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheConfigStartProcs.setStatus('mandatory') apacheConfigMinIdleProcs = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheConfigMinIdleProcs.setStatus('mandatory') apacheConfigMaxIdleProcs = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheConfigMaxIdleProcs.setStatus('mandatory') apacheConfigMaxProcs = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 11), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheConfigMaxProcs.setStatus('mandatory') apacheConfigRequestsMaxPerChild = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 12), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheConfigRequestsMaxPerChild.setStatus('mandatory') apacheConfigRequestsKeepAlive = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 13), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheConfigRequestsKeepAlive.setStatus('mandatory') apacheConfigRequestsMaxPerConn = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 14), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheConfigRequestsMaxPerConn.setStatus('mandatory') apacheConfigThreadsPerChild = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 15), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheConfigThreadsPerChild.setStatus('mandatory') apacheConfigConnectionTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 16), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheConfigConnectionTimeout.setStatus('mandatory') apacheConfigKeepAliveTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 17), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheConfigKeepAliveTimeout.setStatus('mandatory') apacheConfigServerRoot = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 18), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheConfigServerRoot.setStatus('mandatory') apacheConfigConfigFile = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 19), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheConfigConfigFile.setStatus('mandatory') apacheConfigPIDFile = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 20), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheConfigPIDFile.setStatus('mandatory') apacheConfigScoreboardFile = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 21), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheConfigScoreboardFile.setStatus('mandatory') apacheConfigDocumentRoot = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 22), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheConfigDocumentRoot.setStatus('mandatory') apacheConfigAccessLogFile = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 23), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheConfigAccessLogFile.setStatus('mandatory') apacheConfigErrorLogFile = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 24), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheConfigErrorLogFile.setStatus('mandatory') apacheConfigScriptLogFile = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 25), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheConfigScriptLogFile.setStatus('mandatory') apachePerformance = MibIdentifier((1, 3, 6, 1, 4, 1, 546, 16, 3, 11)) apacheFootprintTable = MibTable((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1), ) if mibBuilder.loadTexts: apacheFootprintTable.setStatus('mandatory') apacheFootprintEntry = MibTableRow((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1), ).setIndexNames((0, "EMPIRE-APACHEMOD", "apacheFootprintPort")) if mibBuilder.loadTexts: apacheFootprintEntry.setStatus('mandatory') apacheFootprintPort = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheFootprintPort.setStatus('mandatory') apacheFootprintCPUTime = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheFootprintCPUTime.setStatus('mandatory') apacheFootprintPercentCPU = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheFootprintPercentCPU.setStatus('mandatory') apacheFootprintTotalMEMSize = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 4), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheFootprintTotalMEMSize.setStatus('mandatory') apacheFootprintTotalRSS = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 5), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheFootprintTotalRSS.setStatus('mandatory') apacheFootprintPercentMEM = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheFootprintPercentMEM.setStatus('mandatory') apacheFootprintNumThreads = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 7), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheFootprintNumThreads.setStatus('mandatory') apacheFootprintInBlks = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheFootprintInBlks.setStatus('mandatory') apacheFootprintOutBlks = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheFootprintOutBlks.setStatus('mandatory') apacheFootprintMsgsSent = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheFootprintMsgsSent.setStatus('mandatory') apacheFootprintMsgsRecv = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheFootprintMsgsRecv.setStatus('mandatory') apacheFootprintSysCalls = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 12), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheFootprintSysCalls.setStatus('mandatory') apacheFootprintMinorPgFlts = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 13), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheFootprintMinorPgFlts.setStatus('mandatory') apacheFootprintMajorPgFlts = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 14), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheFootprintMajorPgFlts.setStatus('mandatory') apacheFootprintNumSwaps = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheFootprintNumSwaps.setStatus('mandatory') apacheFootprintVolCtx = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheFootprintVolCtx.setStatus('mandatory') apacheFootprintInvolCtx = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheFootprintInvolCtx.setStatus('mandatory') apacheFootprintTotalLogSize = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 18), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheFootprintTotalLogSize.setStatus('mandatory') apacheFootprintDocSize = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 19), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheFootprintDocSize.setStatus('mandatory') apacheFootprintTotalDiskSize = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 20), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheFootprintTotalDiskSize.setStatus('mandatory') apacheServerPerfTable = MibTable((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 2), ) if mibBuilder.loadTexts: apacheServerPerfTable.setStatus('mandatory') apacheServerPerfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 2, 1), ).setIndexNames((0, "EMPIRE-APACHEMOD", "apacheServerPerfPort")) if mibBuilder.loadTexts: apacheServerPerfEntry.setStatus('mandatory') apacheServerPerfPort = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheServerPerfPort.setStatus('mandatory') apacheServerPerfUptime = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 2, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheServerPerfUptime.setStatus('mandatory') apacheServerPerfTotalAccesses = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 2, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheServerPerfTotalAccesses.setStatus('mandatory') apacheServerPerfTotalTraffic = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 2, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheServerPerfTotalTraffic.setStatus('mandatory') apacheServerPerfCurrentUsers = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 2, 1, 5), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheServerPerfCurrentUsers.setStatus('mandatory') apacheServerPerfCurrentIdleProcs = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 2, 1, 6), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheServerPerfCurrentIdleProcs.setStatus('mandatory') apacheServerPerfCurrentStartupProcs = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 2, 1, 7), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheServerPerfCurrentStartupProcs.setStatus('mandatory') apacheServerPerfCurrentReadProcs = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 2, 1, 8), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheServerPerfCurrentReadProcs.setStatus('mandatory') apacheServerPerfCurrentReplyProcs = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 2, 1, 9), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheServerPerfCurrentReplyProcs.setStatus('mandatory') apacheServerPerfCurrentKeepAliveProcs = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 2, 1, 10), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheServerPerfCurrentKeepAliveProcs.setStatus('mandatory') apacheServerPerfCurrentDNSProcs = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 2, 1, 11), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheServerPerfCurrentDNSProcs.setStatus('mandatory') apacheServerPerfCurrentLoggingProcs = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 2, 1, 12), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheServerPerfCurrentLoggingProcs.setStatus('mandatory') apacheServerPerfCurrentFinishingProcs = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 2, 1, 13), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheServerPerfCurrentFinishingProcs.setStatus('mandatory') apacheServerPerfCurrentTotalProcs = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 2, 1, 14), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheServerPerfCurrentTotalProcs.setStatus('mandatory') apacheServerPerfCurrentBusyProcs = MibTableColumn((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 2, 1, 15), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apacheServerPerfCurrentBusyProcs.setStatus('mandatory') mibBuilder.exportSymbols("EMPIRE-APACHEMOD", apacheServerPerfUptime=apacheServerPerfUptime, apacheConfigPort=apacheConfigPort, apacheConfigRequestsKeepAlive=apacheConfigRequestsKeepAlive, apacheFootprintEntry=apacheFootprintEntry, apacheFootprintVolCtx=apacheFootprintVolCtx, apacheFootprintPort=apacheFootprintPort, apacheFootprintSysCalls=apacheFootprintSysCalls, apacheFootprintInvolCtx=apacheFootprintInvolCtx, apacheFootprintTotalRSS=apacheFootprintTotalRSS, apacheServerPerfCurrentFinishingProcs=apacheServerPerfCurrentFinishingProcs, apacheConfigVersion=apacheConfigVersion, apacheConfigRequestsMaxPerConn=apacheConfigRequestsMaxPerConn, apacheConfigAccessLogFile=apacheConfigAccessLogFile, apacheConfigConfigFile=apacheConfigConfigFile, apacheConfigDocumentRoot=apacheConfigDocumentRoot, apacheServerPerfCurrentDNSProcs=apacheServerPerfCurrentDNSProcs, apacheFootprintNumSwaps=apacheFootprintNumSwaps, apacheFootprintPercentCPU=apacheFootprintPercentCPU, apacheFootprintTotalLogSize=apacheFootprintTotalLogSize, apacheServerPerfPort=apacheServerPerfPort, apacheFootprintInBlks=apacheFootprintInBlks, apacheConfigScriptLogFile=apacheConfigScriptLogFile, apachePerformance=apachePerformance, apacheConfigThreadsPerChild=apacheConfigThreadsPerChild, apacheFootprintTotalDiskSize=apacheFootprintTotalDiskSize, apacheSrv=apacheSrv, apacheConfigRunMode=apacheConfigRunMode, apacheServerPerfCurrentReplyProcs=apacheServerPerfCurrentReplyProcs, apacheServerPerfEntry=apacheServerPerfEntry, apacheServerPerfCurrentBusyProcs=apacheServerPerfCurrentBusyProcs, apacheConfigUser=apacheConfigUser, apacheFootprintTotalMEMSize=apacheFootprintTotalMEMSize, apacheServerPerfTotalAccesses=apacheServerPerfTotalAccesses, apacheServerPerfTotalTraffic=apacheServerPerfTotalTraffic, apacheConfigRequestsMaxPerChild=apacheConfigRequestsMaxPerChild, empire=empire, apacheFootprintCPUTime=apacheFootprintCPUTime, apacheModVersion=apacheModVersion, apacheConfigEntry=apacheConfigEntry, apacheConfigStartProcs=apacheConfigStartProcs, apacheConfigHostname=apacheConfigHostname, apacheConfigErrorLogFile=apacheConfigErrorLogFile, apacheFootprintNumThreads=apacheFootprintNumThreads, apacheServerPerfCurrentReadProcs=apacheServerPerfCurrentReadProcs, apacheServerPerfCurrentIdleProcs=apacheServerPerfCurrentIdleProcs, apacheFootprintTable=apacheFootprintTable, apacheConfigConnectionTimeout=apacheConfigConnectionTimeout, apacheFootprintMsgsSent=apacheFootprintMsgsSent, apacheConfigTable=apacheConfigTable, apacheModMode=apacheModMode, apacheConfigGroup=apacheConfigGroup, applications=applications, apacheServerPerfCurrentLoggingProcs=apacheServerPerfCurrentLoggingProcs, apacheConfigMaxIdleProcs=apacheConfigMaxIdleProcs, apacheConfigMaxProcs=apacheConfigMaxProcs, apacheFootprintPercentMEM=apacheFootprintPercentMEM, apacheServerPerfTable=apacheServerPerfTable, apacheConfigPID=apacheConfigPID, apacheConfigServerRoot=apacheConfigServerRoot, apacheServerPerfCurrentKeepAliveProcs=apacheServerPerfCurrentKeepAliveProcs, apacheFootprintMinorPgFlts=apacheFootprintMinorPgFlts, apacheFootprintDocSize=apacheFootprintDocSize, apacheServerPerfCurrentStartupProcs=apacheServerPerfCurrentStartupProcs, apacheConfigMinIdleProcs=apacheConfigMinIdleProcs, apacheFootprintMsgsRecv=apacheFootprintMsgsRecv, apacheServerPerfCurrentUsers=apacheServerPerfCurrentUsers, apacheServerPerfCurrentTotalProcs=apacheServerPerfCurrentTotalProcs, apacheConfigKeepAliveTimeout=apacheConfigKeepAliveTimeout, apacheConfigScoreboardFile=apacheConfigScoreboardFile, apacheFootprintMajorPgFlts=apacheFootprintMajorPgFlts, apacheFootprintOutBlks=apacheFootprintOutBlks, apacheConfigPIDFile=apacheConfigPIDFile)
(octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_intersection, constraints_union, value_size_constraint, value_range_constraint, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ConstraintsUnion', 'ValueSizeConstraint', 'ValueRangeConstraint', 'SingleValueConstraint') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (counter32, enterprises, module_identity, object_identity, time_ticks, iso, bits, notification_type, mib_identifier, notification_type, ip_address, counter64, mib_scalar, mib_table, mib_table_row, mib_table_column, gauge32, integer32, unsigned32) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter32', 'enterprises', 'ModuleIdentity', 'ObjectIdentity', 'TimeTicks', 'iso', 'Bits', 'NotificationType', 'MibIdentifier', 'NotificationType', 'IpAddress', 'Counter64', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Gauge32', 'Integer32', 'Unsigned32') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') empire = mib_identifier((1, 3, 6, 1, 4, 1, 546)) applications = mib_identifier((1, 3, 6, 1, 4, 1, 546, 16)) apache_srv = mib_identifier((1, 3, 6, 1, 4, 1, 546, 16, 3)) apache_mod_version = mib_scalar((1, 3, 6, 1, 4, 1, 546, 16, 3, 1), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheModVersion.setStatus('mandatory') apache_mod_mode = mib_scalar((1, 3, 6, 1, 4, 1, 546, 16, 3, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('fullMode', 1), ('restrictedMode', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheModMode.setStatus('mandatory') apache_config_table = mib_table((1, 3, 6, 1, 4, 1, 546, 16, 3, 10)) if mibBuilder.loadTexts: apacheConfigTable.setStatus('mandatory') apache_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1)).setIndexNames((0, 'EMPIRE-APACHEMOD', 'apacheConfigPort')) if mibBuilder.loadTexts: apacheConfigEntry.setStatus('mandatory') apache_config_port = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheConfigPort.setStatus('mandatory') apache_config_version = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheConfigVersion.setStatus('mandatory') apache_config_pid = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheConfigPID.setStatus('mandatory') apache_config_run_mode = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 4), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheConfigRunMode.setStatus('mandatory') apache_config_user = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 5), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheConfigUser.setStatus('mandatory') apache_config_group = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 6), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheConfigGroup.setStatus('mandatory') apache_config_hostname = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 7), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheConfigHostname.setStatus('mandatory') apache_config_start_procs = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheConfigStartProcs.setStatus('mandatory') apache_config_min_idle_procs = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheConfigMinIdleProcs.setStatus('mandatory') apache_config_max_idle_procs = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheConfigMaxIdleProcs.setStatus('mandatory') apache_config_max_procs = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 11), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheConfigMaxProcs.setStatus('mandatory') apache_config_requests_max_per_child = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 12), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheConfigRequestsMaxPerChild.setStatus('mandatory') apache_config_requests_keep_alive = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 13), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheConfigRequestsKeepAlive.setStatus('mandatory') apache_config_requests_max_per_conn = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 14), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheConfigRequestsMaxPerConn.setStatus('mandatory') apache_config_threads_per_child = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 15), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheConfigThreadsPerChild.setStatus('mandatory') apache_config_connection_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 16), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheConfigConnectionTimeout.setStatus('mandatory') apache_config_keep_alive_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 17), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheConfigKeepAliveTimeout.setStatus('mandatory') apache_config_server_root = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 18), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheConfigServerRoot.setStatus('mandatory') apache_config_config_file = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 19), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheConfigConfigFile.setStatus('mandatory') apache_config_pid_file = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 20), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheConfigPIDFile.setStatus('mandatory') apache_config_scoreboard_file = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 21), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheConfigScoreboardFile.setStatus('mandatory') apache_config_document_root = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 22), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheConfigDocumentRoot.setStatus('mandatory') apache_config_access_log_file = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 23), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheConfigAccessLogFile.setStatus('mandatory') apache_config_error_log_file = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 24), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheConfigErrorLogFile.setStatus('mandatory') apache_config_script_log_file = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 10, 1, 25), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheConfigScriptLogFile.setStatus('mandatory') apache_performance = mib_identifier((1, 3, 6, 1, 4, 1, 546, 16, 3, 11)) apache_footprint_table = mib_table((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1)) if mibBuilder.loadTexts: apacheFootprintTable.setStatus('mandatory') apache_footprint_entry = mib_table_row((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1)).setIndexNames((0, 'EMPIRE-APACHEMOD', 'apacheFootprintPort')) if mibBuilder.loadTexts: apacheFootprintEntry.setStatus('mandatory') apache_footprint_port = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheFootprintPort.setStatus('mandatory') apache_footprint_cpu_time = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheFootprintCPUTime.setStatus('mandatory') apache_footprint_percent_cpu = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheFootprintPercentCPU.setStatus('mandatory') apache_footprint_total_mem_size = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 4), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheFootprintTotalMEMSize.setStatus('mandatory') apache_footprint_total_rss = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 5), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheFootprintTotalRSS.setStatus('mandatory') apache_footprint_percent_mem = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheFootprintPercentMEM.setStatus('mandatory') apache_footprint_num_threads = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 7), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheFootprintNumThreads.setStatus('mandatory') apache_footprint_in_blks = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheFootprintInBlks.setStatus('mandatory') apache_footprint_out_blks = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheFootprintOutBlks.setStatus('mandatory') apache_footprint_msgs_sent = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheFootprintMsgsSent.setStatus('mandatory') apache_footprint_msgs_recv = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 11), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheFootprintMsgsRecv.setStatus('mandatory') apache_footprint_sys_calls = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 12), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheFootprintSysCalls.setStatus('mandatory') apache_footprint_minor_pg_flts = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 13), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheFootprintMinorPgFlts.setStatus('mandatory') apache_footprint_major_pg_flts = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 14), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheFootprintMajorPgFlts.setStatus('mandatory') apache_footprint_num_swaps = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 15), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheFootprintNumSwaps.setStatus('mandatory') apache_footprint_vol_ctx = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 16), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheFootprintVolCtx.setStatus('mandatory') apache_footprint_invol_ctx = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 17), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheFootprintInvolCtx.setStatus('mandatory') apache_footprint_total_log_size = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 18), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheFootprintTotalLogSize.setStatus('mandatory') apache_footprint_doc_size = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 19), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheFootprintDocSize.setStatus('mandatory') apache_footprint_total_disk_size = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 1, 1, 20), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheFootprintTotalDiskSize.setStatus('mandatory') apache_server_perf_table = mib_table((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 2)) if mibBuilder.loadTexts: apacheServerPerfTable.setStatus('mandatory') apache_server_perf_entry = mib_table_row((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 2, 1)).setIndexNames((0, 'EMPIRE-APACHEMOD', 'apacheServerPerfPort')) if mibBuilder.loadTexts: apacheServerPerfEntry.setStatus('mandatory') apache_server_perf_port = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheServerPerfPort.setStatus('mandatory') apache_server_perf_uptime = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 2, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheServerPerfUptime.setStatus('mandatory') apache_server_perf_total_accesses = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 2, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheServerPerfTotalAccesses.setStatus('mandatory') apache_server_perf_total_traffic = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 2, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheServerPerfTotalTraffic.setStatus('mandatory') apache_server_perf_current_users = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 2, 1, 5), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheServerPerfCurrentUsers.setStatus('mandatory') apache_server_perf_current_idle_procs = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 2, 1, 6), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheServerPerfCurrentIdleProcs.setStatus('mandatory') apache_server_perf_current_startup_procs = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 2, 1, 7), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheServerPerfCurrentStartupProcs.setStatus('mandatory') apache_server_perf_current_read_procs = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 2, 1, 8), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheServerPerfCurrentReadProcs.setStatus('mandatory') apache_server_perf_current_reply_procs = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 2, 1, 9), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheServerPerfCurrentReplyProcs.setStatus('mandatory') apache_server_perf_current_keep_alive_procs = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 2, 1, 10), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheServerPerfCurrentKeepAliveProcs.setStatus('mandatory') apache_server_perf_current_dns_procs = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 2, 1, 11), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheServerPerfCurrentDNSProcs.setStatus('mandatory') apache_server_perf_current_logging_procs = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 2, 1, 12), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheServerPerfCurrentLoggingProcs.setStatus('mandatory') apache_server_perf_current_finishing_procs = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 2, 1, 13), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheServerPerfCurrentFinishingProcs.setStatus('mandatory') apache_server_perf_current_total_procs = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 2, 1, 14), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheServerPerfCurrentTotalProcs.setStatus('mandatory') apache_server_perf_current_busy_procs = mib_table_column((1, 3, 6, 1, 4, 1, 546, 16, 3, 11, 2, 1, 15), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: apacheServerPerfCurrentBusyProcs.setStatus('mandatory') mibBuilder.exportSymbols('EMPIRE-APACHEMOD', apacheServerPerfUptime=apacheServerPerfUptime, apacheConfigPort=apacheConfigPort, apacheConfigRequestsKeepAlive=apacheConfigRequestsKeepAlive, apacheFootprintEntry=apacheFootprintEntry, apacheFootprintVolCtx=apacheFootprintVolCtx, apacheFootprintPort=apacheFootprintPort, apacheFootprintSysCalls=apacheFootprintSysCalls, apacheFootprintInvolCtx=apacheFootprintInvolCtx, apacheFootprintTotalRSS=apacheFootprintTotalRSS, apacheServerPerfCurrentFinishingProcs=apacheServerPerfCurrentFinishingProcs, apacheConfigVersion=apacheConfigVersion, apacheConfigRequestsMaxPerConn=apacheConfigRequestsMaxPerConn, apacheConfigAccessLogFile=apacheConfigAccessLogFile, apacheConfigConfigFile=apacheConfigConfigFile, apacheConfigDocumentRoot=apacheConfigDocumentRoot, apacheServerPerfCurrentDNSProcs=apacheServerPerfCurrentDNSProcs, apacheFootprintNumSwaps=apacheFootprintNumSwaps, apacheFootprintPercentCPU=apacheFootprintPercentCPU, apacheFootprintTotalLogSize=apacheFootprintTotalLogSize, apacheServerPerfPort=apacheServerPerfPort, apacheFootprintInBlks=apacheFootprintInBlks, apacheConfigScriptLogFile=apacheConfigScriptLogFile, apachePerformance=apachePerformance, apacheConfigThreadsPerChild=apacheConfigThreadsPerChild, apacheFootprintTotalDiskSize=apacheFootprintTotalDiskSize, apacheSrv=apacheSrv, apacheConfigRunMode=apacheConfigRunMode, apacheServerPerfCurrentReplyProcs=apacheServerPerfCurrentReplyProcs, apacheServerPerfEntry=apacheServerPerfEntry, apacheServerPerfCurrentBusyProcs=apacheServerPerfCurrentBusyProcs, apacheConfigUser=apacheConfigUser, apacheFootprintTotalMEMSize=apacheFootprintTotalMEMSize, apacheServerPerfTotalAccesses=apacheServerPerfTotalAccesses, apacheServerPerfTotalTraffic=apacheServerPerfTotalTraffic, apacheConfigRequestsMaxPerChild=apacheConfigRequestsMaxPerChild, empire=empire, apacheFootprintCPUTime=apacheFootprintCPUTime, apacheModVersion=apacheModVersion, apacheConfigEntry=apacheConfigEntry, apacheConfigStartProcs=apacheConfigStartProcs, apacheConfigHostname=apacheConfigHostname, apacheConfigErrorLogFile=apacheConfigErrorLogFile, apacheFootprintNumThreads=apacheFootprintNumThreads, apacheServerPerfCurrentReadProcs=apacheServerPerfCurrentReadProcs, apacheServerPerfCurrentIdleProcs=apacheServerPerfCurrentIdleProcs, apacheFootprintTable=apacheFootprintTable, apacheConfigConnectionTimeout=apacheConfigConnectionTimeout, apacheFootprintMsgsSent=apacheFootprintMsgsSent, apacheConfigTable=apacheConfigTable, apacheModMode=apacheModMode, apacheConfigGroup=apacheConfigGroup, applications=applications, apacheServerPerfCurrentLoggingProcs=apacheServerPerfCurrentLoggingProcs, apacheConfigMaxIdleProcs=apacheConfigMaxIdleProcs, apacheConfigMaxProcs=apacheConfigMaxProcs, apacheFootprintPercentMEM=apacheFootprintPercentMEM, apacheServerPerfTable=apacheServerPerfTable, apacheConfigPID=apacheConfigPID, apacheConfigServerRoot=apacheConfigServerRoot, apacheServerPerfCurrentKeepAliveProcs=apacheServerPerfCurrentKeepAliveProcs, apacheFootprintMinorPgFlts=apacheFootprintMinorPgFlts, apacheFootprintDocSize=apacheFootprintDocSize, apacheServerPerfCurrentStartupProcs=apacheServerPerfCurrentStartupProcs, apacheConfigMinIdleProcs=apacheConfigMinIdleProcs, apacheFootprintMsgsRecv=apacheFootprintMsgsRecv, apacheServerPerfCurrentUsers=apacheServerPerfCurrentUsers, apacheServerPerfCurrentTotalProcs=apacheServerPerfCurrentTotalProcs, apacheConfigKeepAliveTimeout=apacheConfigKeepAliveTimeout, apacheConfigScoreboardFile=apacheConfigScoreboardFile, apacheFootprintMajorPgFlts=apacheFootprintMajorPgFlts, apacheFootprintOutBlks=apacheFootprintOutBlks, apacheConfigPIDFile=apacheConfigPIDFile)
for number in range(4): print(f"The for loop has run for {number} time(s)") print("\n") for number in range(10, 15): print(f"The for loop has run for {number} time(s)") print("\n") for number in range(20, 30, 2): print(f"The for loop has run for {number} time(s)") print("\n") status = False for number in range(1, 5): print(f"Attempt {number}") if status: print("Success!") break else: print("Boom!") else: print("No more chance")
for number in range(4): print(f'The for loop has run for {number} time(s)') print('\n') for number in range(10, 15): print(f'The for loop has run for {number} time(s)') print('\n') for number in range(20, 30, 2): print(f'The for loop has run for {number} time(s)') print('\n') status = False for number in range(1, 5): print(f'Attempt {number}') if status: print('Success!') break else: print('Boom!') else: print('No more chance')
def up(config, database): database.execute('ALTER TABLE ONLY mapped_courses ALTER COLUMN registration_section SET DATA TYPE character varying(255) USING registration_section::varchar(255)') database.execute('ALTER TABLE ONLY mapped_courses ALTER COLUMN mapped_section SET DATA TYPE character varying(255) USING mapped_section::varchar(255)') database.execute('ALTER TABLE ONLY courses_users ALTER COLUMN registration_section SET DATA TYPE character varying(255) USING registration_section::varchar(255)') def down(config, database): database.execute('ALTER TABLE ONLY mapped_courses ALTER COLUMN registration_section SET DATA TYPE integer USING registration_section::integer') database.execute('ALTER TABLE ONLY mapped_courses ALTER COLUMN mapped_section SET DATA TYPE integer USING mapped_section::integer') database.execute('ALTER TABLE ONLY courses_users ALTER COLUMN registration_section SET DATA TYPE integer USING registration_section::integer')
def up(config, database): database.execute('ALTER TABLE ONLY mapped_courses ALTER COLUMN registration_section SET DATA TYPE character varying(255) USING registration_section::varchar(255)') database.execute('ALTER TABLE ONLY mapped_courses ALTER COLUMN mapped_section SET DATA TYPE character varying(255) USING mapped_section::varchar(255)') database.execute('ALTER TABLE ONLY courses_users ALTER COLUMN registration_section SET DATA TYPE character varying(255) USING registration_section::varchar(255)') def down(config, database): database.execute('ALTER TABLE ONLY mapped_courses ALTER COLUMN registration_section SET DATA TYPE integer USING registration_section::integer') database.execute('ALTER TABLE ONLY mapped_courses ALTER COLUMN mapped_section SET DATA TYPE integer USING mapped_section::integer') database.execute('ALTER TABLE ONLY courses_users ALTER COLUMN registration_section SET DATA TYPE integer USING registration_section::integer')
# Write a function that always returns 5 # Sounds easy right? # Just bear in mind that you can't use # any of the following characters: 0123456789*+-/ def unusual_five(): return len('trump')
def unusual_five(): return len('trump')
# code -> {"name": "creaturename", # "desc": "description",} CREATURES = {} SOLO_CREATURES = {} GROUP_CREATURES = {} with open("creatures.csv") as f: lines = f.readlines() for line in lines: if line.strip() == "": continue parts = line.strip().split(",") code = int(''.join(parts[1:5])) if parts[6].strip() == "group": GROUP_CREATURES[code] = {"name": parts[0], "desc": parts[5]} else: SOLO_CREATURES[code] = {"name": parts[0], "desc": parts[5]} CREATURES[code] = {"name": parts[0], "desc": parts[5]}
creatures = {} solo_creatures = {} group_creatures = {} with open('creatures.csv') as f: lines = f.readlines() for line in lines: if line.strip() == '': continue parts = line.strip().split(',') code = int(''.join(parts[1:5])) if parts[6].strip() == 'group': GROUP_CREATURES[code] = {'name': parts[0], 'desc': parts[5]} else: SOLO_CREATURES[code] = {'name': parts[0], 'desc': parts[5]} CREATURES[code] = {'name': parts[0], 'desc': parts[5]}
# Copyright 2020 VMware, Inc. # SPDX-License-Identifier: Apache-2.0 PATH = "path" DESCRIPTOR = "descriptor" BEFORE = "@before" AFTER = "@after" DESCRIPTORS = "@descriptors" PARAMS = "@params" POINTER_SEPARATOR = "/" WS_CURRENT_POINTER = "__crp" WS_ENV = "__env" WS_OUTPUT = "_output"
path = 'path' descriptor = 'descriptor' before = '@before' after = '@after' descriptors = '@descriptors' params = '@params' pointer_separator = '/' ws_current_pointer = '__crp' ws_env = '__env' ws_output = '_output'
kazu = [3, 7, 0, 1, 2, 2] shin_kazu = 1 for ex in range(1, len(kazu), 2): shin_kazu *= kazu[ex] print(shin_kazu)
kazu = [3, 7, 0, 1, 2, 2] shin_kazu = 1 for ex in range(1, len(kazu), 2): shin_kazu *= kazu[ex] print(shin_kazu)
def group(list): groups = [] curr = [] for elem in list: if elem in curr: curr.append(elem) elif len(curr) != 0: groups.append(curr) curr = [] curr.append(elem) elif len(curr) == 0: curr.append(elem) if curr != []: groups.append(curr) return groups def main(): print(group([1, 1, 1, 2, 3, 1, 1])) # Expected output : [[1, 1, 1], [2], [3], [1, 1]] print(group([1, 2, 1, 2, 3, 3])) # Expected output : [[1], [2], [1], [2], [3, 3]] if __name__ == '__main__': main()
def group(list): groups = [] curr = [] for elem in list: if elem in curr: curr.append(elem) elif len(curr) != 0: groups.append(curr) curr = [] curr.append(elem) elif len(curr) == 0: curr.append(elem) if curr != []: groups.append(curr) return groups def main(): print(group([1, 1, 1, 2, 3, 1, 1])) print(group([1, 2, 1, 2, 3, 3])) if __name__ == '__main__': main()
# python3 class Query: def __init__(self, query): self.type = query[0] if self.type == 'check': self.ind = int(query[1]) else: self.s = query[1] class QueryProcessor: _multiplier = 263 _prime = 1000000007 def __init__(self, bucket_count): self.bucket_count = bucket_count self.elems = [None] * bucket_count def _hash_func(self, s): ans = 0 for c in reversed(s): ans = (ans * self._multiplier + ord(c)) % self._prime return ans % self.bucket_count def write_search_result(self, was_found): print('yes' if was_found else 'no') def write_chain(self, chain): if chain is not None: print(' '.join(chain)) else: print(' ') def read_query(self): return Query(input().split()) def process_query(self, query): if query.type == "check": self.write_chain(self.elems[query.ind]) else: hashKey = self._hash_func(query.s) if query.type == 'add': if self.elems[hashKey] == None: self.elems[hashKey] = [query.s] else: if query.s not in self.elems[hashKey]: self.elems[hashKey].insert(0, query.s) elif query.type == 'find': if self.elems[hashKey] is not None and query.s in self.elems[hashKey]: self.write_search_result(True) else: self.write_search_result(False) elif query.type == 'del': if self.elems[hashKey] is not None and query.s in self.elems[hashKey]: self.elems[hashKey].remove(query.s) if len(self.elems[hashKey]) == 0: self.elems[hashKey] = None def process_queries(self): n = int(input()) for i in range(n): self.process_query(self.read_query()) if __name__ == '__main__': bucket_count = int(input()) proc = QueryProcessor(bucket_count) proc.process_queries()
class Query: def __init__(self, query): self.type = query[0] if self.type == 'check': self.ind = int(query[1]) else: self.s = query[1] class Queryprocessor: _multiplier = 263 _prime = 1000000007 def __init__(self, bucket_count): self.bucket_count = bucket_count self.elems = [None] * bucket_count def _hash_func(self, s): ans = 0 for c in reversed(s): ans = (ans * self._multiplier + ord(c)) % self._prime return ans % self.bucket_count def write_search_result(self, was_found): print('yes' if was_found else 'no') def write_chain(self, chain): if chain is not None: print(' '.join(chain)) else: print(' ') def read_query(self): return query(input().split()) def process_query(self, query): if query.type == 'check': self.write_chain(self.elems[query.ind]) else: hash_key = self._hash_func(query.s) if query.type == 'add': if self.elems[hashKey] == None: self.elems[hashKey] = [query.s] elif query.s not in self.elems[hashKey]: self.elems[hashKey].insert(0, query.s) elif query.type == 'find': if self.elems[hashKey] is not None and query.s in self.elems[hashKey]: self.write_search_result(True) else: self.write_search_result(False) elif query.type == 'del': if self.elems[hashKey] is not None and query.s in self.elems[hashKey]: self.elems[hashKey].remove(query.s) if len(self.elems[hashKey]) == 0: self.elems[hashKey] = None def process_queries(self): n = int(input()) for i in range(n): self.process_query(self.read_query()) if __name__ == '__main__': bucket_count = int(input()) proc = query_processor(bucket_count) proc.process_queries()
class Solution: def solve(self, s): s = s.replace('(',' ( ').replace(')',' ) ') tokens = s.split() stack = [] for token in tokens: if token == 'true': if stack and stack[-1] in ['or','and']: if stack[-1] == 'or': stack.pop() stack.append(stack.pop() or True) else: stack.pop() stack.append(stack.pop() and True) else: stack.append(True) elif token == 'false': if stack and stack[-1] in ['or','and']: if stack[-1] == 'or': stack.pop() stack.append(stack.pop() or False) else: stack.pop() stack.append(stack.pop() and False) else: stack.append(False) elif token == '(': stack.append('(') elif token == ')': val = stack.pop() stack.pop() if stack and stack[-1] in ['or','and']: if stack[-1] == 'or': stack.pop() stack.append(stack.pop() or val) else: stack.pop() stack.append(stack.pop() and val) else: stack.append(val) elif token == 'or': stack.append('or') elif token == 'and': stack.append('and') return stack[0]
class Solution: def solve(self, s): s = s.replace('(', ' ( ').replace(')', ' ) ') tokens = s.split() stack = [] for token in tokens: if token == 'true': if stack and stack[-1] in ['or', 'and']: if stack[-1] == 'or': stack.pop() stack.append(stack.pop() or True) else: stack.pop() stack.append(stack.pop() and True) else: stack.append(True) elif token == 'false': if stack and stack[-1] in ['or', 'and']: if stack[-1] == 'or': stack.pop() stack.append(stack.pop() or False) else: stack.pop() stack.append(stack.pop() and False) else: stack.append(False) elif token == '(': stack.append('(') elif token == ')': val = stack.pop() stack.pop() if stack and stack[-1] in ['or', 'and']: if stack[-1] == 'or': stack.pop() stack.append(stack.pop() or val) else: stack.pop() stack.append(stack.pop() and val) else: stack.append(val) elif token == 'or': stack.append('or') elif token == 'and': stack.append('and') return stack[0]
checkpoint_config = dict(interval=20) # yapf:disable log_config = dict( interval=5, hooks=[ dict(type='TextLoggerHook'), dict(type='TensorboardLoggerHook') ]) # yapf:enable custom_hooks = [dict(type='NumClassCheckHook')] dist_params = dict(backend='nccl') log_level = 'INFO' load_from = None resume_from = None workflow = [('train', 1)] class_name = ['0'] # model settings model = dict( type='YOLOV4', backbone=dict( type='YOLOV4Backbone' ), neck=dict( type='YOLOV4Neck', in_channels=[1024, 512, 256], out_channels=[512, 256, 128]), bbox_head=dict( type='YOLOV4Head', num_classes=1, in_channels=[512, 256, 128], out_channels=[1024, 512, 256], anchor_generator=dict( type='YOLOAnchorGenerator', # base_sizes=[[(116, 90), (156, 198), (373, 326)], # [(30, 61), (62, 45), (59, 119)], # [(10, 13), (16, 30), (33, 23)]], # base_sizes=[ # [[30, 28], [33, 17], [21, 25]], # [[24, 17], [18, 17], [14, 21]], # [[20, 12], [12, 15], [11, 11]]], base_sizes=[ [[2*30, 2*28], [2*33, 2*17], [2*21, 2*25]], [[2*24, 2*17], [2*18, 2*17], [2*14, 2*21]], [[2*20, 2*12], [2*12, 2*15], [2*11, 2*11]]], strides=[32, 16, 8]), bbox_coder=dict(type='YOLOBBoxCoder'), featmap_strides=[32, 16, 8], loss_cls=dict( type='CrossEntropyLoss', use_sigmoid=True, loss_weight=1.0, reduction='sum'), loss_conf=dict( type='CrossEntropyLoss', use_sigmoid=True, loss_weight=1.0, reduction='sum'), loss_xy=dict( type='CrossEntropyLoss', use_sigmoid=True, loss_weight=2.0, reduction='sum'), loss_wh=dict(type='MSELoss', loss_weight=2.0, reduction='sum')), # training and testing settings train_cfg=dict( assigner=dict( type='GridAssigner', pos_iou_thr=0.3, neg_iou_thr=0.3, min_pos_iou=0)), test_cfg=dict( nms_pre=1000, min_bbox_size=0, score_thr=0.05, conf_thr=0.005, nms=dict(type='nms', iou_threshold=0.4), max_per_img=100)) # dataset settings dataset_type = 'MyCocoDataset' # data_root = '/Users/kyanchen/Code/mmdetection/data/multi_label' # data_root = r'M:\Tiny_Ship\20211214_All_P_Slice_Data' data_root = '/data/kyanchen/det/data/Tiny_P' img_norm_cfg = dict(mean=[52.27434974492982, 69.82640643452488, 79.01744958336889], std=[2.7533898592345842, 2.634773617140497, 2.172352333590293], to_rgb=True) train_pipeline = [ dict(type='LoadImageFromFile', to_float32=True), dict(type='LoadAnnotations', with_bbox=True), dict( type='Expand', mean=img_norm_cfg['mean'], to_rgb=img_norm_cfg['to_rgb'], ratio_range=(1, 1.2)), dict( type='MinIoURandomCrop', min_ious=(0.01, 0.05, 0.1), min_crop_size=0.7), # dict(type='Resize', img_scale=[(320, 320), (608, 608)], keep_ratio=True), dict(type='Resize', img_scale=[(256, 256)], keep_ratio=False), dict(type='RandomFlip', flip_ratio=0.5, direction=['horizontal', 'vertical']), dict(type='PhotoMetricDistortion', brightness_delta=20, contrast_range=(0.7, 1.3), saturation_range=(0.7, 1.3), hue_delta=15 ), dict(type='Normalize', **img_norm_cfg), # dict(type='Pad', size_divisor=32), dict(type='DefaultFormatBundle'), dict(type='Collect', keys=['img', 'gt_bboxes', 'gt_labels'], meta_keys=('filename', 'ori_filename', 'ori_shape', 'img_shape', 'pad_shape', 'scale_factor', 'img_norm_cfg') ) ] test_pipeline = [ dict(type='LoadImageFromFile'), dict( type='MultiScaleFlipAug', img_scale=(256, 256), flip=False, transforms=[ dict(type='Resize', keep_ratio=False), # dict(type='RandomFlip'), dict(type='Normalize', **img_norm_cfg), # dict(type='Pad', size_divisor=32), dict(type='ImageToTensor', keys=['img']), dict(type='Collect', keys=['img']) ]) ] data = dict( samples_per_gpu=100, workers_per_gpu=8, train=dict( type=dataset_type, ann_file='../data/tiny_ship/tiny_train.json', img_prefix=data_root+'/train', classes=class_name, pipeline=train_pipeline), val=dict( type=dataset_type, ann_file='../data/tiny_ship/tiny_val.json', img_prefix=data_root+'/val', classes=class_name, pipeline=test_pipeline), test=dict( type=dataset_type, ann_file='../data/tiny_ship/tiny_test.json', classes=class_name, img_prefix=data_root+'/test', pipeline=test_pipeline)) # optimizer # AdamW # optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0005) optimizer = dict(type='AdamW', lr=0.01, betas=(0.9, 0.999), eps=1e-8, weight_decay=1e-2) # optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2)) optimizer_config = dict(grad_clip=None) # learning policy # lr_config = dict( # policy='PolyLrUpdaterHook', # warmup='linear', # warmup_iters=2000, # same as burn-in in darknet # warmup_ratio=0.1, # step=[218, 246]) lr_config = dict( policy='Poly', power=0.9, min_lr=0.00001, by_epoch=True, warmup='linear', warmup_iters=15, warmup_ratio=0.1, warmup_by_epoch=True) # runtime settings runner = dict(type='EpochBasedRunner', max_epochs=300) evaluation = dict(interval=1, metric=['bbox'], mode='eval', areaRng=[0, 20, 200]) test = dict(interval=2, metric=['bbox'], mode='test', areaRng=[0, 20, 200])
checkpoint_config = dict(interval=20) log_config = dict(interval=5, hooks=[dict(type='TextLoggerHook'), dict(type='TensorboardLoggerHook')]) custom_hooks = [dict(type='NumClassCheckHook')] dist_params = dict(backend='nccl') log_level = 'INFO' load_from = None resume_from = None workflow = [('train', 1)] class_name = ['0'] model = dict(type='YOLOV4', backbone=dict(type='YOLOV4Backbone'), neck=dict(type='YOLOV4Neck', in_channels=[1024, 512, 256], out_channels=[512, 256, 128]), bbox_head=dict(type='YOLOV4Head', num_classes=1, in_channels=[512, 256, 128], out_channels=[1024, 512, 256], anchor_generator=dict(type='YOLOAnchorGenerator', base_sizes=[[[2 * 30, 2 * 28], [2 * 33, 2 * 17], [2 * 21, 2 * 25]], [[2 * 24, 2 * 17], [2 * 18, 2 * 17], [2 * 14, 2 * 21]], [[2 * 20, 2 * 12], [2 * 12, 2 * 15], [2 * 11, 2 * 11]]], strides=[32, 16, 8]), bbox_coder=dict(type='YOLOBBoxCoder'), featmap_strides=[32, 16, 8], loss_cls=dict(type='CrossEntropyLoss', use_sigmoid=True, loss_weight=1.0, reduction='sum'), loss_conf=dict(type='CrossEntropyLoss', use_sigmoid=True, loss_weight=1.0, reduction='sum'), loss_xy=dict(type='CrossEntropyLoss', use_sigmoid=True, loss_weight=2.0, reduction='sum'), loss_wh=dict(type='MSELoss', loss_weight=2.0, reduction='sum')), train_cfg=dict(assigner=dict(type='GridAssigner', pos_iou_thr=0.3, neg_iou_thr=0.3, min_pos_iou=0)), test_cfg=dict(nms_pre=1000, min_bbox_size=0, score_thr=0.05, conf_thr=0.005, nms=dict(type='nms', iou_threshold=0.4), max_per_img=100)) dataset_type = 'MyCocoDataset' data_root = '/data/kyanchen/det/data/Tiny_P' img_norm_cfg = dict(mean=[52.27434974492982, 69.82640643452488, 79.01744958336889], std=[2.7533898592345842, 2.634773617140497, 2.172352333590293], to_rgb=True) train_pipeline = [dict(type='LoadImageFromFile', to_float32=True), dict(type='LoadAnnotations', with_bbox=True), dict(type='Expand', mean=img_norm_cfg['mean'], to_rgb=img_norm_cfg['to_rgb'], ratio_range=(1, 1.2)), dict(type='MinIoURandomCrop', min_ious=(0.01, 0.05, 0.1), min_crop_size=0.7), dict(type='Resize', img_scale=[(256, 256)], keep_ratio=False), dict(type='RandomFlip', flip_ratio=0.5, direction=['horizontal', 'vertical']), dict(type='PhotoMetricDistortion', brightness_delta=20, contrast_range=(0.7, 1.3), saturation_range=(0.7, 1.3), hue_delta=15), dict(type='Normalize', **img_norm_cfg), dict(type='DefaultFormatBundle'), dict(type='Collect', keys=['img', 'gt_bboxes', 'gt_labels'], meta_keys=('filename', 'ori_filename', 'ori_shape', 'img_shape', 'pad_shape', 'scale_factor', 'img_norm_cfg'))] test_pipeline = [dict(type='LoadImageFromFile'), dict(type='MultiScaleFlipAug', img_scale=(256, 256), flip=False, transforms=[dict(type='Resize', keep_ratio=False), dict(type='Normalize', **img_norm_cfg), dict(type='ImageToTensor', keys=['img']), dict(type='Collect', keys=['img'])])] data = dict(samples_per_gpu=100, workers_per_gpu=8, train=dict(type=dataset_type, ann_file='../data/tiny_ship/tiny_train.json', img_prefix=data_root + '/train', classes=class_name, pipeline=train_pipeline), val=dict(type=dataset_type, ann_file='../data/tiny_ship/tiny_val.json', img_prefix=data_root + '/val', classes=class_name, pipeline=test_pipeline), test=dict(type=dataset_type, ann_file='../data/tiny_ship/tiny_test.json', classes=class_name, img_prefix=data_root + '/test', pipeline=test_pipeline)) optimizer = dict(type='AdamW', lr=0.01, betas=(0.9, 0.999), eps=1e-08, weight_decay=0.01) optimizer_config = dict(grad_clip=None) lr_config = dict(policy='Poly', power=0.9, min_lr=1e-05, by_epoch=True, warmup='linear', warmup_iters=15, warmup_ratio=0.1, warmup_by_epoch=True) runner = dict(type='EpochBasedRunner', max_epochs=300) evaluation = dict(interval=1, metric=['bbox'], mode='eval', areaRng=[0, 20, 200]) test = dict(interval=2, metric=['bbox'], mode='test', areaRng=[0, 20, 200])
######################## #### Initialisation #### ######################## input_ex1 = [] with open("inputs/day6_1.txt") as inputfile: input_ex1 = [int(i) for i in inputfile.readline().strip().split()] ######################## #### Part one #### ######################## def redistribute(memblock): memsize = len(memblock) tracker = memblock.index(max(memblock)) stack = memblock[tracker] memblock[tracker] = 0 tracker += 1 while stack > 0: memblock[tracker % memsize] += 1 stack -= 1 tracker += 1 return memblock # input_ex1 = [0, 2, 7, 0] found_distributions = [] found_distributions.append(input_ex1[::]) new_input = redistribute(input_ex1[::]) steps = 1 while not new_input in found_distributions: found_distributions.append(new_input) new_input = redistribute(new_input[::]) steps += 1 print("It takes {} cycles to enter an infinite loop.".format(steps)) ######################## #### Part two #### ######################## length_of_loop = len(found_distributions) - \ found_distributions.index(new_input) print("The infinite loop contains {} steps".format(length_of_loop))
input_ex1 = [] with open('inputs/day6_1.txt') as inputfile: input_ex1 = [int(i) for i in inputfile.readline().strip().split()] def redistribute(memblock): memsize = len(memblock) tracker = memblock.index(max(memblock)) stack = memblock[tracker] memblock[tracker] = 0 tracker += 1 while stack > 0: memblock[tracker % memsize] += 1 stack -= 1 tracker += 1 return memblock found_distributions = [] found_distributions.append(input_ex1[:]) new_input = redistribute(input_ex1[:]) steps = 1 while not new_input in found_distributions: found_distributions.append(new_input) new_input = redistribute(new_input[:]) steps += 1 print('It takes {} cycles to enter an infinite loop.'.format(steps)) length_of_loop = len(found_distributions) - found_distributions.index(new_input) print('The infinite loop contains {} steps'.format(length_of_loop))
class Solution: def thousandSeparator(self, n: int) -> str: s = str(n)[::-1] return ".".join(s[i : i + 3] for i in range(0, len(s), 3))[::-1]
class Solution: def thousand_separator(self, n: int) -> str: s = str(n)[::-1] return '.'.join((s[i:i + 3] for i in range(0, len(s), 3)))[::-1]
class Solution: def titleToNumber(self, s: str) -> int: length = len(s) num = 0 for i in range(0, length): num += (ord(s[length-i-1]) - ord('A') + 1) * (26 ** i) return num
class Solution: def title_to_number(self, s: str) -> int: length = len(s) num = 0 for i in range(0, length): num += (ord(s[length - i - 1]) - ord('A') + 1) * 26 ** i return num
def get(event, context): return {"body": "GET OK", "statusCode": 200} def put(event, context): return {"body": "PUT OK", "statusCode": 200}
def get(event, context): return {'body': 'GET OK', 'statusCode': 200} def put(event, context): return {'body': 'PUT OK', 'statusCode': 200}
a=input('Enter a srting: ') i=0 for letters in a: if letters=='a' or letters=='e' or letters=='i' or letters=='o' or letters=='u': i+=1 print("Number of vowels:",i)
a = input('Enter a srting: ') i = 0 for letters in a: if letters == 'a' or letters == 'e' or letters == 'i' or (letters == 'o') or (letters == 'u'): i += 1 print('Number of vowels:', i)
class Solution: def lemonadeChange(self, bills: List[int]) -> bool: m5 = 0 m10 = 0 m20 = 0 for b in bills: if b == 5: m5 += 1 elif b == 10: m10 += 1 if m5 >= 1: m5 -= 1 else: return False else: m20 += 1 if m10 >= 1 and m5 >= 1: m10 -= 1 m5 -= 1 elif m5 >= 3: m5 -= 3 else: return False return True
class Solution: def lemonade_change(self, bills: List[int]) -> bool: m5 = 0 m10 = 0 m20 = 0 for b in bills: if b == 5: m5 += 1 elif b == 10: m10 += 1 if m5 >= 1: m5 -= 1 else: return False else: m20 += 1 if m10 >= 1 and m5 >= 1: m10 -= 1 m5 -= 1 elif m5 >= 3: m5 -= 3 else: return False return True
t = input() lines = int(input()) columns = int(input()) result = 0 if t == 'Premiere': result = columns * lines * 12 elif t == 'Normal': result = columns * lines * 7.5 elif t == 'Discount': result = columns * lines * 5 print('{0:.2f} leva'.format(result))
t = input() lines = int(input()) columns = int(input()) result = 0 if t == 'Premiere': result = columns * lines * 12 elif t == 'Normal': result = columns * lines * 7.5 elif t == 'Discount': result = columns * lines * 5 print('{0:.2f} leva'.format(result))
# Ugg, dummy file to make Github not think this site is written in PHP # that's an insult foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar'
foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar' foo = 'bar'
# -*- coding: utf-8 -*- def check_tuple(values): x1,x2,x3 = values try: assert (2*x1 - 4*x2 -x3) == 1 assert (x1 - 3 * x2 + x3) == 1 assert (3*x1 - 5*x2 - 3*x3) == 1 except: return False return True a = (3,1,1,) b = (3,-1,1) c = (13,5,2) d = (13/2,5/2,2) e = (17,7,5) print(check_tuple(a)) print(check_tuple(b)) print(check_tuple(c)) print(check_tuple(d)) print(check_tuple(e))
def check_tuple(values): (x1, x2, x3) = values try: assert 2 * x1 - 4 * x2 - x3 == 1 assert x1 - 3 * x2 + x3 == 1 assert 3 * x1 - 5 * x2 - 3 * x3 == 1 except: return False return True a = (3, 1, 1) b = (3, -1, 1) c = (13, 5, 2) d = (13 / 2, 5 / 2, 2) e = (17, 7, 5) print(check_tuple(a)) print(check_tuple(b)) print(check_tuple(c)) print(check_tuple(d)) print(check_tuple(e))
''' Given a 2D board of characters and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or vertically neighboring. The same letter cell may not be used more than once. For example, given the following board: [ ['A','B','C','E'], ['S','F','C','S'], ['A','D','E','E'] ] exists(board, "ABCCED") returns true, exists(board, "SEE") returns true, exists(board, "ABCB") returns false. ''' DIRECTION = [(0, 1), (1, 0), (0, -1), (-1, 0)] class Board: def __init__(self, board): self.board = board self.N = len(board) self.M = len(board[0]) def _check_exists(self, string, item): if not string: return True is_found = False row, col = item if 0<=row<self.N and 0<=col<self.M \ and self.board[row][col]==string[0]: self.board[row][col] = (string[0],) for mov in DIRECTION: if self._check_exists(string[1:], (row+mov[0], col+mov[1])): is_found = True break self.board[row][col] = string[0] return is_found def exists(self, string): start_points = [] for i in range(self.N): for j in range(self.M): if self.board[i][j]==string[0]: start_points.append((i,j)) for item in start_points: if self._check_exists(string, item): return True return False if __name__ == "__main__": data = [ ["ABCCED", True], ["SEE", True], ["ABCB", False] ] board = Board( [ ['A','B','C','E'], ['S','F','C','S'], ['A','D','E','E'] ]) for d in data: print('input', d[0], 'output', board.exists(d[0]))
""" Given a 2D board of characters and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or vertically neighboring. The same letter cell may not be used more than once. For example, given the following board: [ ['A','B','C','E'], ['S','F','C','S'], ['A','D','E','E'] ] exists(board, "ABCCED") returns true, exists(board, "SEE") returns true, exists(board, "ABCB") returns false. """ direction = [(0, 1), (1, 0), (0, -1), (-1, 0)] class Board: def __init__(self, board): self.board = board self.N = len(board) self.M = len(board[0]) def _check_exists(self, string, item): if not string: return True is_found = False (row, col) = item if 0 <= row < self.N and 0 <= col < self.M and (self.board[row][col] == string[0]): self.board[row][col] = (string[0],) for mov in DIRECTION: if self._check_exists(string[1:], (row + mov[0], col + mov[1])): is_found = True break self.board[row][col] = string[0] return is_found def exists(self, string): start_points = [] for i in range(self.N): for j in range(self.M): if self.board[i][j] == string[0]: start_points.append((i, j)) for item in start_points: if self._check_exists(string, item): return True return False if __name__ == '__main__': data = [['ABCCED', True], ['SEE', True], ['ABCB', False]] board = board([['A', 'B', 'C', 'E'], ['S', 'F', 'C', 'S'], ['A', 'D', 'E', 'E']]) for d in data: print('input', d[0], 'output', board.exists(d[0]))
#Encrypt Function def encrypt(password): password_li = list(password) encrypted_password = "" for i in password_li: ascii_password_li = chr(ord(i) + 5) encrypted_password = encrypted_password + ascii_password_li print("Your encrypted password is: ") print(encrypted_password) #decrypt Function def decrypt(password): password_li = list(password) decrypted_password = "" for i in password_li: ascii_password_li = chr(ord(i) - 5) decrypted_password = decrypted_password + ascii_password_li print("Your decrypted password is: ") print(decrypted_password) option_selected = input("You want to encrypt or decrypt: \n 1: Encrypt \n 2: Decrypt \n") if int(option_selected )== 1 : password = input("Enter you password: ") encrypt(password) else: password = input("Enter you encrypted password which was encrypted by this program only: ") decrypt(password)
def encrypt(password): password_li = list(password) encrypted_password = '' for i in password_li: ascii_password_li = chr(ord(i) + 5) encrypted_password = encrypted_password + ascii_password_li print('Your encrypted password is: ') print(encrypted_password) def decrypt(password): password_li = list(password) decrypted_password = '' for i in password_li: ascii_password_li = chr(ord(i) - 5) decrypted_password = decrypted_password + ascii_password_li print('Your decrypted password is: ') print(decrypted_password) option_selected = input('You want to encrypt or decrypt: \n 1: Encrypt \n 2: Decrypt \n') if int(option_selected) == 1: password = input('Enter you password: ') encrypt(password) else: password = input('Enter you encrypted password which was encrypted by this program only: ') decrypt(password)
film_budget = float(input()) statists = int(input()) dress = float(input()) decor_price = 0.1*film_budget if statists > 150: dress_price = (statists*dress) - 0.1*(statists*dress) else: dress_price = statists*dress if decor_price + dress_price > film_budget: print('Not enough money!') print(f'Wingard needs{(dress_price + decor_price) - film_budget: .2f} leva more.') else: print('Action!') print(f'Wingard starts filming with{film_budget - (dress_price + decor_price): .2f} leva left.')
film_budget = float(input()) statists = int(input()) dress = float(input()) decor_price = 0.1 * film_budget if statists > 150: dress_price = statists * dress - 0.1 * (statists * dress) else: dress_price = statists * dress if decor_price + dress_price > film_budget: print('Not enough money!') print(f'Wingard needs{dress_price + decor_price - film_budget: .2f} leva more.') else: print('Action!') print(f'Wingard starts filming with{film_budget - (dress_price + decor_price): .2f} leva left.')
class UserQueryError(Exception): def __init__(self, msg): Exception.__init__(self, None) self.msg = msg def __str__(self): return 'User query error: %s' % self.msg
class Userqueryerror(Exception): def __init__(self, msg): Exception.__init__(self, None) self.msg = msg def __str__(self): return 'User query error: %s' % self.msg
while True: try: n = int(input()) while n != 0: n -= 1 s = int(input()) array1 = list(map(int, input().split()))[:s] array2 = list(input()) count = 0 for i in range(s): if array2[i] == "J" and array1[i] > 2: count += 1 elif array2[i] == "S" and (array1[i] == 1 or array1[i] == 2): count += 1 print(count) except EOFError: break
while True: try: n = int(input()) while n != 0: n -= 1 s = int(input()) array1 = list(map(int, input().split()))[:s] array2 = list(input()) count = 0 for i in range(s): if array2[i] == 'J' and array1[i] > 2: count += 1 elif array2[i] == 'S' and (array1[i] == 1 or array1[i] == 2): count += 1 print(count) except EOFError: break
class Image: def __init__(self): self.id = 0 self.name = "" self.thumbnail = "" self.url = "" self.upload_time = "" self.upload_user = "" @classmethod def convert_to_images(cls, entity_images): images = [] for entity_image in entity_images: image = Image() image.id = entity_image.id image.name = entity_image.name image.url = entity_image.url image.upload_time = entity_image.upload_time image.upload_user = entity_image.upload_user image.thumbnail = "/api/images/thumbnail{image.id}".format(**locals()) # NOQA images.append(image) return images
class Image: def __init__(self): self.id = 0 self.name = '' self.thumbnail = '' self.url = '' self.upload_time = '' self.upload_user = '' @classmethod def convert_to_images(cls, entity_images): images = [] for entity_image in entity_images: image = image() image.id = entity_image.id image.name = entity_image.name image.url = entity_image.url image.upload_time = entity_image.upload_time image.upload_user = entity_image.upload_user image.thumbnail = '/api/images/thumbnail{image.id}'.format(**locals()) images.append(image) return images
# v. 1.0 # 10.01.2018 # Sergii Mamedov summa = 0 for i in range(3, 1000): if (i % 3 == 0) or (i % 5 == 0): summa += i print(summa)
summa = 0 for i in range(3, 1000): if i % 3 == 0 or i % 5 == 0: summa += i print(summa)
# https://www.hackerrank.com/challenges/circular-array-rotation/problem # Complete the circularArrayRotation function below. def circularArrayRotation(a, k, queries): return [a[(q-k)%len(a)] for q in queries]
def circular_array_rotation(a, k, queries): return [a[(q - k) % len(a)] for q in queries]
word = input("Enter a simple word : ") if word[::-1].upper() == word.upper(): print("This word is a palindrome") elif word[::-1].upper() != word.upper(): print("This word is not a palindrome... It prints", word[::-1].upper(), "when reversed.")
word = input('Enter a simple word : ') if word[::-1].upper() == word.upper(): print('This word is a palindrome') elif word[::-1].upper() != word.upper(): print('This word is not a palindrome... It prints', word[::-1].upper(), 'when reversed.')
def get_cheapest_cost(rootNode): result = float("inf") stack = [] stack.append((rootNode, rootNode.cost)) seen = set() seen.add(rootNode) while stack: current_node, path_sum = stack.pop() if len(current_node.children) == 0: if path_sum < result: result = path_sum else: for child in current_node.children: if child not in seen and path_sum + child.cost <= result: stack.append((child, path_sum + child.cost)) seen.add(child) return result ########################################## # Use the helper code below to implement # # and test your function above # ########################################## # A node class Node: # Constructor to create a new node def __init__(self, cost): self.cost = cost self.children = [] self.parent = None if __name__ == '__main__': root = Node(0) one = Node(5) two = Node(3) three = Node(6) four = Node(4) five = Node(2) six = Node(0) seven = Node(1) eight = Node(5) nine = Node(1) ten = Node(10) eleven = Node(1) root.children.extend([one, two, three]) one.children.append(four) two.children.extend([five, six]) three.children.extend([seven, eight]) five.children.append(nine) six.children.append(ten) nine.children.append(eleven) print(get_cheapest_cost(root))
def get_cheapest_cost(rootNode): result = float('inf') stack = [] stack.append((rootNode, rootNode.cost)) seen = set() seen.add(rootNode) while stack: (current_node, path_sum) = stack.pop() if len(current_node.children) == 0: if path_sum < result: result = path_sum else: for child in current_node.children: if child not in seen and path_sum + child.cost <= result: stack.append((child, path_sum + child.cost)) seen.add(child) return result class Node: def __init__(self, cost): self.cost = cost self.children = [] self.parent = None if __name__ == '__main__': root = node(0) one = node(5) two = node(3) three = node(6) four = node(4) five = node(2) six = node(0) seven = node(1) eight = node(5) nine = node(1) ten = node(10) eleven = node(1) root.children.extend([one, two, three]) one.children.append(four) two.children.extend([five, six]) three.children.extend([seven, eight]) five.children.append(nine) six.children.append(ten) nine.children.append(eleven) print(get_cheapest_cost(root))
# -*- coding: utf-8 -*- class SessionHelper(): def __init__(self, app): self.app = app @property def logged_user_name(self): return self.app.wd.find_element_by_css_selector(".user-info") def open_homepage(self): wd = self.app.wd if wd.current_url.endswith("/mantisbt/my_view_page.php"): return wd.get(self.app.base_url) def login(self, username, password): self.open_homepage() self._type_and_submit_input("username", username) self._type_and_submit_input("password", password) def _type_and_submit_input(self, location, value): wd = self.app.wd wd.find_element_by_name(location).click() wd.find_element_by_name(location).clear() wd.find_element_by_name(location).send_keys(value) wd.find_element_by_css_selector("input[type='submit']").click() def ensure_login(self, username, password): if self.is_logged_in(): if self.is_logged_in_as(username): return self.logout() self.login(username, password) def logout(self): wd = self.app.wd logout_button = wd.find_element_by_css_selector("a[href*='logout_page.php']") if not logout_button.is_displayed(): self.logged_user_name.click() logout_button.click() def ensure_logout(self): if self.is_logged_in(): self.logout() def is_logged_in(self): wd = self.app.wd return len(wd.find_elements_by_css_selector("span.user-info")) > 0 def is_logged_in_as(self, username): wd = self.app.wd return self.get_logged_user() == username def get_logged_user(self): wd = self.app.wd return self.logged_user_name.text
class Sessionhelper: def __init__(self, app): self.app = app @property def logged_user_name(self): return self.app.wd.find_element_by_css_selector('.user-info') def open_homepage(self): wd = self.app.wd if wd.current_url.endswith('/mantisbt/my_view_page.php'): return wd.get(self.app.base_url) def login(self, username, password): self.open_homepage() self._type_and_submit_input('username', username) self._type_and_submit_input('password', password) def _type_and_submit_input(self, location, value): wd = self.app.wd wd.find_element_by_name(location).click() wd.find_element_by_name(location).clear() wd.find_element_by_name(location).send_keys(value) wd.find_element_by_css_selector("input[type='submit']").click() def ensure_login(self, username, password): if self.is_logged_in(): if self.is_logged_in_as(username): return self.logout() self.login(username, password) def logout(self): wd = self.app.wd logout_button = wd.find_element_by_css_selector("a[href*='logout_page.php']") if not logout_button.is_displayed(): self.logged_user_name.click() logout_button.click() def ensure_logout(self): if self.is_logged_in(): self.logout() def is_logged_in(self): wd = self.app.wd return len(wd.find_elements_by_css_selector('span.user-info')) > 0 def is_logged_in_as(self, username): wd = self.app.wd return self.get_logged_user() == username def get_logged_user(self): wd = self.app.wd return self.logged_user_name.text
''' URL: https://leetcode.com/problems/non-decreasing-array/ Difficulty: Medium Description: Non-decreasing Array Given an array nums with n integers, your task is to check if it could become non-decreasing by modifying at most 1 element. We define an array is non-decreasing if nums[i] <= nums[i + 1] holds for every i (0-based) such that (0 <= i <= n - 2). Example 1: Input: nums = [4,2,3] Output: true Explanation: You could modify the first 4 to 1 to get a non-decreasing array. Example 2: Input: nums = [4,2,1] Output: false Explanation: You can't get a non-decreasing array by modify at most one element. Constraints: 1 <= n <= 10 ^ 4 - 10 ^ 5 <= nums[i] <= 10 ^ 5 ''' class Solution: def checkSorted(self, arr): # check if array is sorted in ascending order for i in range(len(arr)-1): if arr[i] > arr[i+1]: return False return True def checkPossibility(self, nums): for i in range(len(nums)): if self.checkSorted(nums[:i] + nums[i+1:]): return True return False
""" URL: https://leetcode.com/problems/non-decreasing-array/ Difficulty: Medium Description: Non-decreasing Array Given an array nums with n integers, your task is to check if it could become non-decreasing by modifying at most 1 element. We define an array is non-decreasing if nums[i] <= nums[i + 1] holds for every i (0-based) such that (0 <= i <= n - 2). Example 1: Input: nums = [4,2,3] Output: true Explanation: You could modify the first 4 to 1 to get a non-decreasing array. Example 2: Input: nums = [4,2,1] Output: false Explanation: You can't get a non-decreasing array by modify at most one element. Constraints: 1 <= n <= 10 ^ 4 - 10 ^ 5 <= nums[i] <= 10 ^ 5 """ class Solution: def check_sorted(self, arr): for i in range(len(arr) - 1): if arr[i] > arr[i + 1]: return False return True def check_possibility(self, nums): for i in range(len(nums)): if self.checkSorted(nums[:i] + nums[i + 1:]): return True return False
class Solution: def matrixReshape(self, nums: List[List[int]], r: int, c: int) -> List[List[int]]: m = len(nums) n = len(nums[0]) if m * n != r * c: return nums ori = [nums[i][j] for i in range(m) for j in range(n)] ans = [] for i in range(0, len(ori), c): ans.append(ori[i:i+c]) return ans
class Solution: def matrix_reshape(self, nums: List[List[int]], r: int, c: int) -> List[List[int]]: m = len(nums) n = len(nums[0]) if m * n != r * c: return nums ori = [nums[i][j] for i in range(m) for j in range(n)] ans = [] for i in range(0, len(ori), c): ans.append(ori[i:i + c]) return ans
class Solution: def reachingPoints(self, sx: int, sy: int, tx: int, ty: int) -> bool: while sx <= tx and sy <= ty: if tx < ty: if sx == tx: return (ty - sy) % sx == 0 else: ty %= tx else: if sy == ty: return (tx - sx) % sy == 0 else: tx %= ty return False
class Solution: def reaching_points(self, sx: int, sy: int, tx: int, ty: int) -> bool: while sx <= tx and sy <= ty: if tx < ty: if sx == tx: return (ty - sy) % sx == 0 else: ty %= tx elif sy == ty: return (tx - sx) % sy == 0 else: tx %= ty return False
datasetFile = open("datasets/rosalind_ba1f.txt", "r") genome = datasetFile.readline().strip() print("Find a Position in a Genome Minimizing the Skew") def minSkew(genome): indices = [0] skew = 0 min = 0 for i in range(len(genome)): if genome[i] == 'G': skew += 1 elif genome[i] == 'C': skew -= 1 if skew < min: indices = [i + 1] min = skew elif skew == min: indices.append(i + 1) return indices solution = " ".join(map(lambda x: str(x), minSkew(genome))) outputFile = open("output/rosalind_ba1f.txt", "a") outputFile.write(solution)
dataset_file = open('datasets/rosalind_ba1f.txt', 'r') genome = datasetFile.readline().strip() print('Find a Position in a Genome Minimizing the Skew') def min_skew(genome): indices = [0] skew = 0 min = 0 for i in range(len(genome)): if genome[i] == 'G': skew += 1 elif genome[i] == 'C': skew -= 1 if skew < min: indices = [i + 1] min = skew elif skew == min: indices.append(i + 1) return indices solution = ' '.join(map(lambda x: str(x), min_skew(genome))) output_file = open('output/rosalind_ba1f.txt', 'a') outputFile.write(solution)
def double_pole_fitness_func(target_len, cart, net): def fitness_func(genes): net.init_weight(genes) return net.evaluate(cart, target_len) return fitness_func
def double_pole_fitness_func(target_len, cart, net): def fitness_func(genes): net.init_weight(genes) return net.evaluate(cart, target_len) return fitness_func
corpus = open('corpuslimpio.txt','r',encoding='utf8') pos = open('pos.txt','w',encoding='utf8') neg = open('neg.txt','w',encoding='utf8') for line in corpus.readlines(): if line[0] == 'P': pos.write(line[2:]) elif line[0] == 'N': neg.write(line[2:]) corpus.close() pos.close() neg.close()
corpus = open('corpuslimpio.txt', 'r', encoding='utf8') pos = open('pos.txt', 'w', encoding='utf8') neg = open('neg.txt', 'w', encoding='utf8') for line in corpus.readlines(): if line[0] == 'P': pos.write(line[2:]) elif line[0] == 'N': neg.write(line[2:]) corpus.close() pos.close() neg.close()
class Node: def __init__(self, value): self.value = value self.left = None self.right = None class BinarySearchTree: def __init__(self): self.root = None def insert(self, value): if self.root is None: self.root = Node(value) else: self._insert(value, self.root) def _insert(self, value, currentNode): if currentNode.value > value: if currentNode.left is None: currentNode.left = Node(value) else: self._insert(value, currentNode.left) elif currentNode.value < value: if currentNode.right is None: currentNode.right = Node(value) else: self._insert(value, currentNode.right) else: print("Node already in tree.") def printInorder(self): level = 0 if self.root: self._printInorder(self.root, level) def printPreorder(self): level = 0 if self.root: self._printPreorder(self.root, level) def printPostorder(self): level = 0 if self.root: self._printPostorder(self.root, level) def _printInorder(self, node, level): if node: self._printInorder(node.left, level + 1) print(' ' * level + str(node.value)) self._printInorder(node.right, level + 1) def _printPreorder(self, node, level): if node: print(' ' * level + str(node.value)) self._printPreorder(node.left, level + 1) self._printPreorder(node.right, level + 1) def _printPostorder(self, node, level): if node: self._printPostorder(node.left, level + 1) self._printPostorder(node.right, level + 1) print(' ' * level + str(node.value))
class Node: def __init__(self, value): self.value = value self.left = None self.right = None class Binarysearchtree: def __init__(self): self.root = None def insert(self, value): if self.root is None: self.root = node(value) else: self._insert(value, self.root) def _insert(self, value, currentNode): if currentNode.value > value: if currentNode.left is None: currentNode.left = node(value) else: self._insert(value, currentNode.left) elif currentNode.value < value: if currentNode.right is None: currentNode.right = node(value) else: self._insert(value, currentNode.right) else: print('Node already in tree.') def print_inorder(self): level = 0 if self.root: self._printInorder(self.root, level) def print_preorder(self): level = 0 if self.root: self._printPreorder(self.root, level) def print_postorder(self): level = 0 if self.root: self._printPostorder(self.root, level) def _print_inorder(self, node, level): if node: self._printInorder(node.left, level + 1) print(' ' * level + str(node.value)) self._printInorder(node.right, level + 1) def _print_preorder(self, node, level): if node: print(' ' * level + str(node.value)) self._printPreorder(node.left, level + 1) self._printPreorder(node.right, level + 1) def _print_postorder(self, node, level): if node: self._printPostorder(node.left, level + 1) self._printPostorder(node.right, level + 1) print(' ' * level + str(node.value))
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def tree2str(self, root: TreeNode) -> str: if not root: return '' s = f'{root.val}' l = self.tree2str(root.left) r = self.tree2str(root.right) if l or r: s += f'({l})' if r: s += f'({r})' return s
class Solution: def tree2str(self, root: TreeNode) -> str: if not root: return '' s = f'{root.val}' l = self.tree2str(root.left) r = self.tree2str(root.right) if l or r: s += f'({l})' if r: s += f'({r})' return s
cust="customer1" my_age=int(input("Hello {}, Please confirm your age:".format(cust))) if my_age<18: print("you are minor, you have no entry") if my_age<18:print("you are minor, you have no entry")
cust = 'customer1' my_age = int(input('Hello {}, Please confirm your age:'.format(cust))) if my_age < 18: print('you are minor, you have no entry') if my_age < 18: print('you are minor, you have no entry')
p = int(input()) q = int(input()) result=[] for i in range(p,q+1,1): k = i**2 r = k % (10 ** len(str(i))) l = k // (10 ** len(str(i))) if i == int(r)+int(l): result.append(i) result= list(set(result)) result.sort() if len(result) == 0: print ('INVALID RANGE') else: print (' '.join([str(i) for i in result]))
p = int(input()) q = int(input()) result = [] for i in range(p, q + 1, 1): k = i ** 2 r = k % 10 ** len(str(i)) l = k // 10 ** len(str(i)) if i == int(r) + int(l): result.append(i) result = list(set(result)) result.sort() if len(result) == 0: print('INVALID RANGE') else: print(' '.join([str(i) for i in result]))
C_ANY = 0 # Any length C_ONE = 2 # Only one C_DEF = 4 # Up to 5 C_SAR = 8 # Up to 7 (shifts and rotates) END = 0x60 LDA = 0xA9 LDX = 0xA2 LDY = 0xA0 BIT = 0x24 CMP = 0xC9 CPX = 0xE0 CPY = 0xC0 OPCODES = { 0x00: (1, C_ANY, 0x00, 'BRK'), 0x01: (2, C_ANY, 0x01, 'ORA (nn,X)'), 0x05: (2, C_ANY, 0x02, 'ORA nn'), 0x06: (2, C_SAR, 0x06, 'ASL nn'), 0x08: (1, C_DEF, 0x08, 'PHP'), 0x09: (2, C_ONE, 0x09, 'ORA #nn'), 0x0A: (1, C_SAR, 0x0A, 'ASL A'), 0x0D: (3, C_ANY, 0x0D, 'ORA nnnn'), 0x0E: (3, C_SAR, 0x0E, 'ASL nnnn'), 0x10: (2, C_ONE, 0x10, 'BPL nnnn'), 0x11: (2, C_ANY, 0x11, 'ORA (nn),Y'), 0x15: (2, C_ANY, 0x15, 'ORA nn,X'), 0x16: (2, C_SAR, 0x16, 'ASL nn,X'), 0x18: (1, C_ONE, 0x18, 'CLC'), 0x19: (3, C_ANY, 0x19, 'ORA nnnn,Y'), 0x1D: (3, C_ANY, 0x1D, 'ORA nnnn,X'), 0x1E: (3, C_SAR, 0x1E, 'ASL nnnn,X'), 0x20: (3, C_ANY, 0x20, 'JSR nnnn'), 0x21: (2, C_ANY, 0x21, 'AND (nn,X)'), 0x24: (2, C_ONE, BIT, 'BIT nn'), 0x25: (2, C_ANY, 0x25, 'AND nn'), 0x26: (2, C_SAR, 0x26, 'ROL nn'), 0x28: (1, C_ONE, 0x28, 'PLP'), 0x29: (2, C_ONE, 0x29, 'AND #nn'), 0x2A: (1, C_SAR, 0x2A, 'ROL A'), 0x2C: (3, C_ONE, BIT, 'BIT nnnn'), 0x2D: (3, C_ANY, 0x2D, 'AND nnnn'), 0x2E: (3, C_SAR, 0x2E, 'ROL nnnn'), 0x30: (2, C_ONE, 0x30, 'BMI nnnn'), 0x31: (2, C_ANY, 0x31, 'AND (nn),Y'), 0x35: (2, C_ANY, 0x35, 'AND nn,X'), 0x36: (2, C_SAR, 0x36, 'ROL nn,X'), 0x38: (1, C_ONE, 0x38, 'SEC'), 0x39: (3, C_ANY, 0x39, 'AND nnnn,Y'), 0x3D: (3, C_ANY, 0x3D, 'AND nnnn,X'), 0x3E: (3, C_SAR, 0x3E, 'ROL nnnn,X'), 0x40: (1, C_ONE, END, 'RTI'), 0x41: (2, C_ANY, 0x41, 'EOR (nn,X)'), 0x45: (2, C_ANY, 0x45, 'EOR nn'), 0x46: (2, C_SAR, 0x46, 'LSR nn'), 0x48: (1, C_DEF, 0x48, 'PHA'), 0x49: (2, C_ONE, 0x49, 'EOR #nn'), 0x4A: (1, C_SAR, 0x4A, 'LSR A'), 0x4C: (3, C_ONE, END, 'JMP nnnn'), 0x4D: (3, C_ANY, 0x4D, 'EOR nnnn'), 0x4E: (3, C_SAR, 0x4E, 'LSR nnnn'), 0x50: (2, C_ONE, 0x50, 'BVC nnnn'), 0x51: (2, C_ANY, 0x51, 'EOR (nn),Y'), 0x55: (2, C_ANY, 0x55, 'EOR nn,X'), 0x56: (2, C_SAR, 0x56, 'LSR nn,X'), 0x58: (1, C_ONE, 0x58, 'CLI'), 0x59: (3, C_ANY, 0x59, 'EOR nnnn,Y'), 0x5D: (3, C_ANY, 0x5D, 'EOR nnnn,X'), 0x5E: (3, C_SAR, 0x5E, 'LSR nnnn,X'), 0x60: (1, C_ONE, END, 'RTS'), 0x61: (2, C_ANY, 0x61, 'ADC (nn,X)'), 0x65: (2, C_ANY, 0x65, 'ADC nn'), 0x66: (2, C_SAR, 0x66, 'ROR nn'), 0x68: (1, C_ONE, 0x68, 'PLA'), 0x69: (2, C_ONE, 0x69, 'ADC #nn'), 0x6A: (1, C_SAR, 0x6A, 'ROR A'), 0x6C: (3, C_ONE, END, 'JMP (nnnn)'), 0x6D: (3, C_ANY, 0x6D, 'ADC nnnn'), 0x6E: (3, C_SAR, 0x6E, 'ROR nnnn'), 0x70: (2, C_ONE, 0x70, 'BVS nnnn'), 0x71: (2, C_ANY, 0x71, 'ADC (nn),Y'), 0x75: (2, C_ANY, 0x75, 'ADC nn,X'), 0x76: (2, C_SAR, 0x76, 'ROR nn,X'), 0x78: (1, C_ONE, 0x78, 'SEI'), 0x79: (3, C_ANY, 0x79, 'ADC nnnn,Y'), 0x7D: (3, C_ANY, 0x7D, 'ADC nnnn,X'), 0x7E: (3, C_SAR, 0x7E, 'ROR nnnn,X'), 0x81: (2, C_ANY, 0x81, 'STA (nn,X)'), 0x84: (2, C_ANY, 0x84, 'STY nn'), 0x85: (2, C_ANY, 0x85, 'STA nn'), 0x86: (2, C_ANY, 0x86, 'STX nn'), 0x88: (1, C_ANY, 0x88, 'DEY'), 0x8A: (1, C_ONE, 0x8A, 'TXA'), 0x8C: (3, C_ANY, 0x8C, 'STY nnnn'), 0x8D: (3, C_ANY, 0x8D, 'STA nnnn'), 0x8E: (3, C_ANY, 0x8E, 'STX nnnn'), 0x90: (2, C_ONE, 0x90, 'BCC nnnn'), 0x91: (2, C_ANY, 0x91, 'STA (nn),Y'), 0x94: (2, C_ANY, 0x94, 'STY nn,X'), 0x95: (2, C_ANY, 0x95, 'STA nn,X'), 0x96: (2, C_ANY, 0x96, 'STX nn,Y'), 0x98: (1, C_ONE, 0x98, 'TYA'), 0x99: (3, C_ANY, 0x99, 'STA nnnn,Y'), 0x9A: (1, C_ONE, 0x9A, 'TXS'), 0x9D: (3, C_ANY, 0x9D, 'STA nnnn,X'), 0xA0: (2, C_ONE, LDY, 'LDY #nn'), 0xA1: (2, C_ONE, LDA, 'LDA (nn,X)'), 0xA2: (2, C_ONE, LDX, 'LDX #nn'), 0xA4: (2, C_ONE, LDY, 'LDY nn'), 0xA5: (2, C_ONE, LDA, 'LDA nn'), 0xA6: (2, C_ONE, LDX, 'LDX nn'), 0xA8: (1, C_ONE, 0xA8, 'TAY'), 0xA9: (2, C_ONE, LDA, 'LDA #nn'), 0xAA: (1, C_ONE, 0xAA, 'TAX'), 0xAC: (3, C_ONE, LDY, 'LDY nnnn'), 0xAD: (3, C_ONE, LDA, 'LDA nnnn'), 0xAE: (3, C_ONE, LDX, 'LDX nnnn'), 0xB0: (2, C_ONE, 0xB0, 'BCS nnnn'), 0xB1: (2, C_ONE, LDA, 'LDA (nn),Y'), 0xB4: (2, C_ONE, LDY, 'LDY nn,X'), 0xB5: (2, C_ONE, LDA, 'LDA nn,X'), 0xB6: (2, C_ONE, LDX, 'LDX nn,Y'), 0xB8: (1, C_ONE, 0xB8, 'CLV'), 0xB9: (3, C_ONE, LDA, 'LDA nnnn,Y'), 0xBA: (1, C_ONE, 0xBA, 'TSX'), 0xBC: (3, C_ONE, LDY, 'LDY nnnn,X'), 0xBD: (3, C_ONE, LDA, 'LDA nnnn,X'), 0xBE: (3, C_ONE, LDX, 'LDX nnnn,Y'), 0xC0: (2, C_ONE, CPY, 'CPY #nn'), 0xC1: (2, C_ONE, CMP, 'CMP (nn,X)'), 0xC4: (2, C_ONE, CPY, 'CPY nn'), 0xC5: (2, C_ONE, CMP, 'CMP nn'), 0xC6: (2, C_ANY, 0xC6, 'DEC nn'), 0xC8: (1, C_ANY, 0xC8, 'INY'), 0xC9: (2, C_ONE, CMP, 'CMP #nn'), 0xCA: (1, C_ANY, 0xCA, 'DEX'), 0xCC: (3, C_ONE, CPY, 'CPY nnnn'), 0xCD: (3, C_ONE, CMP, 'CMP nnnn'), 0xCE: (3, C_ANY, 0xCE, 'DEC nnnn'), 0xD0: (2, C_ONE, 0xD0, 'BNE nnnn'), 0xD1: (2, C_ONE, CMP, 'CMP (nn),Y'), 0xD5: (2, C_ONE, CMP, 'CMP nn,X'), 0xD6: (2, C_ANY, 0xD6, 'DEC nn,X'), 0xD8: (1, C_ONE, 0xD8, 'CLD'), 0xD9: (3, C_ONE, CMP, 'CMP nnnn,Y'), 0xDD: (3, C_ONE, CMP, 'CMP nnnn,X'), 0xDE: (3, C_ANY, 0xDE, 'DEC nnnn,X'), 0xE0: (2, C_ONE, CPX, 'CPX #nn'), 0xE1: (2, C_ANY, 0xE1, 'SBC (nn,X)'), 0xE4: (2, C_ONE, CPX, 'CPX nn'), 0xE5: (2, C_ANY, 0xE5, 'SBC nn'), 0xE6: (2, C_ANY, 0xE6, 'INC nn'), 0xE8: (1, C_ANY, 0xE8, 'INX'), 0xE9: (2, C_ONE, 0xE9, 'SBC #nn'), 0xEA: (1, C_ANY, 0xEA, 'NOP'), 0xEC: (3, C_ONE, CPX, 'CPX nnnn'), 0xED: (3, C_ANY, 0xED, 'SBC nnnn'), 0xEE: (3, C_ANY, 0xEE, 'INC nnnn'), 0xF0: (2, C_ONE, 0xF0, 'BEQ nnnn'), 0xF1: (2, C_ANY, 0xF1, 'SBC (nn),Y'), 0xF5: (2, C_ANY, 0xF5, 'SBC nn,X'), 0xF6: (2, C_ANY, 0xF6, 'INC nn,X'), 0xF8: (1, C_ONE, 0xF8, 'SED'), 0xF9: (3, C_ANY, 0xF9, 'SBC nnnn,Y'), 0xFD: (3, C_ANY, 0xFD, 'SBC nnnn,X'), 0xFE: (3, C_ANY, 0xFE, 'INC nnnn,X') } OP_SIZES = { 0x00: 2, 0x03: 2, 0x04: 2, 0x07: 2, 0x0B: 2, 0x0C: 3, 0x0F: 3, 0x11: 2, 0x13: 2, 0x14: 2, 0x17: 2, 0x1B: 3, 0x1C: 3, 0x1F: 3, 0x80: 2, 0x82: 2, 0x83: 2, 0x87: 2, 0x89: 2, 0x8B: 2, 0x8F: 3, 0x93: 2, 0x94: 2, 0x97: 2, 0x9B: 3, 0x9C: 3, 0x9E: 3, 0x9F: 3 } def _byte(snapshot, addr, size): op_id = 0 for i in range(addr, addr + size): op_id = 256 * op_id + snapshot[i] operation = '.BYTE ' + ','.join(str(v) for v in snapshot[addr:addr + size]) return size, 1, op_id, operation def _opcode(snapshot, addr, value): try: size, max_count, op_id, operation = OPCODES[value] except KeyError: size = OP_SIZES.get(value & 0x9F, 1) return _byte(snapshot, addr, min(size, 65536 - addr)) if addr + size < 65537: return size, max_count, op_id, operation return _byte(snapshot, addr, 65536 - addr) def _decode(snapshot, start, end): addr = start while addr < end: value = snapshot[addr] size, max_count, op_id, operation = _opcode(snapshot, addr, value) yield (addr, size, max_count, op_id, operation) addr += size def _check_text(t_blocks, t_start, t_end, text, min_length, words): if len(text) >= min_length: if words: t_lower = text.lower() for word in words: if word in t_lower: break else: return t_blocks.append((t_start, t_end)) def _get_text_blocks(snapshot, start, end, config, data=True): if data: min_length = config.text_min_length_data else: min_length = config.text_min_length_code t_blocks = [] if end - start >= min_length: text = '' for address in range(start, end): char = chr(snapshot[address]) if char in config.text_chars: if not text: t_start = address text += char elif text: _check_text(t_blocks, t_start, address, text, min_length, config.words) text = '' if text: _check_text(t_blocks, t_start, end, text, min_length, config.words) return t_blocks def _catch_data(ctls, ctl_addr, count, max_count, addr, op_bytes): if count >= max_count > 0: if not ctls or ctls[-1][1] != 'b': ctls.append((ctl_addr, 'b')) return addr return ctl_addr def _get_operation(operations, snapshot, addr): if addr not in operations: operations[addr] = next(_decode(snapshot, addr, addr + 1))[1::3] return operations[addr] def _generate_ctls_without_code_map(snapshot, start, end, config): operations = {} ctls = [] ctl_addr = start prev_max_count, prev_op_id, prev_op, prev_op_bytes = 0, None, None, () count = 1 for addr, size, max_count, op_id, operation in _decode(snapshot, start, end): operations[addr] = (size, operation) op_bytes = snapshot[addr:addr + size] if op_id == END: # Catch data-like sequences that precede a terminal instruction ctl_addr = _catch_data(ctls, ctl_addr, count, prev_max_count, addr, prev_op_bytes) ctls.append((ctl_addr, 'c')) ctl_addr = addr + size prev_max_count, prev_op_id, prev_op, prev_op_bytes = 0, None, None, () count = 1 continue if op_id == prev_op_id: count += 1 elif prev_op: ctl_addr = _catch_data(ctls, ctl_addr, count, prev_max_count, addr, prev_op_bytes) count = 1 prev_max_count, prev_op_id, prev_op, prev_op_bytes = max_count, op_id, operation, op_bytes if not ctls: ctls.append((ctl_addr, 'b')) ctls.append((end, 'i')) ctls = dict(ctls) # Join two adjacent blocks if the first one is code and branches or jumps # to the second edges = sorted(ctls) while 1: done = True while len(edges) > 1: addr, end = edges[0], edges[1] if ctls[addr] == 'c': while addr < end: size, operation = _get_operation(operations, snapshot, addr) if operation.startswith(('BC', 'BE', 'BM', 'BN', 'BP', 'BV')) or (snapshot[addr] == 0x4C and len(snapshot) > addr + 2): if snapshot[addr] == 0x4C: op_addr = snapshot[addr + 1] + 256 * snapshot[addr + 2] else: operand = snapshot[addr + 1] op_addr = addr + 2 + (operand if operand < 128 else operand - 256) if op_addr == end: del ctls[end], edges[1] done = False break addr += size if not done: break del edges[0] else: del edges[0] if done: break # Look for text edges = sorted(ctls) for i in range(len(edges) - 1): start, end = edges[i], edges[i + 1] ctl = ctls[start] text_blocks = _get_text_blocks(snapshot, start, end, config, ctl == 'b') if text_blocks: ctls[start] = 'b' for t_start, t_end in text_blocks: ctls[t_start] = 't' if t_end < end: ctls[t_end] = 'b' if t_end < end: addr = t_end while addr < end: addr += _get_operation(operations, snapshot, addr)[0] ctls[t_end] = ctl if addr == end else 'b' return ctls def generate_ctls(snapshot, start, end, code_map, config): return _generate_ctls_without_code_map(snapshot, start, end, config)
c_any = 0 c_one = 2 c_def = 4 c_sar = 8 end = 96 lda = 169 ldx = 162 ldy = 160 bit = 36 cmp = 201 cpx = 224 cpy = 192 opcodes = {0: (1, C_ANY, 0, 'BRK'), 1: (2, C_ANY, 1, 'ORA (nn,X)'), 5: (2, C_ANY, 2, 'ORA nn'), 6: (2, C_SAR, 6, 'ASL nn'), 8: (1, C_DEF, 8, 'PHP'), 9: (2, C_ONE, 9, 'ORA #nn'), 10: (1, C_SAR, 10, 'ASL A'), 13: (3, C_ANY, 13, 'ORA nnnn'), 14: (3, C_SAR, 14, 'ASL nnnn'), 16: (2, C_ONE, 16, 'BPL nnnn'), 17: (2, C_ANY, 17, 'ORA (nn),Y'), 21: (2, C_ANY, 21, 'ORA nn,X'), 22: (2, C_SAR, 22, 'ASL nn,X'), 24: (1, C_ONE, 24, 'CLC'), 25: (3, C_ANY, 25, 'ORA nnnn,Y'), 29: (3, C_ANY, 29, 'ORA nnnn,X'), 30: (3, C_SAR, 30, 'ASL nnnn,X'), 32: (3, C_ANY, 32, 'JSR nnnn'), 33: (2, C_ANY, 33, 'AND (nn,X)'), 36: (2, C_ONE, BIT, 'BIT nn'), 37: (2, C_ANY, 37, 'AND nn'), 38: (2, C_SAR, 38, 'ROL nn'), 40: (1, C_ONE, 40, 'PLP'), 41: (2, C_ONE, 41, 'AND #nn'), 42: (1, C_SAR, 42, 'ROL A'), 44: (3, C_ONE, BIT, 'BIT nnnn'), 45: (3, C_ANY, 45, 'AND nnnn'), 46: (3, C_SAR, 46, 'ROL nnnn'), 48: (2, C_ONE, 48, 'BMI nnnn'), 49: (2, C_ANY, 49, 'AND (nn),Y'), 53: (2, C_ANY, 53, 'AND nn,X'), 54: (2, C_SAR, 54, 'ROL nn,X'), 56: (1, C_ONE, 56, 'SEC'), 57: (3, C_ANY, 57, 'AND nnnn,Y'), 61: (3, C_ANY, 61, 'AND nnnn,X'), 62: (3, C_SAR, 62, 'ROL nnnn,X'), 64: (1, C_ONE, END, 'RTI'), 65: (2, C_ANY, 65, 'EOR (nn,X)'), 69: (2, C_ANY, 69, 'EOR nn'), 70: (2, C_SAR, 70, 'LSR nn'), 72: (1, C_DEF, 72, 'PHA'), 73: (2, C_ONE, 73, 'EOR #nn'), 74: (1, C_SAR, 74, 'LSR A'), 76: (3, C_ONE, END, 'JMP nnnn'), 77: (3, C_ANY, 77, 'EOR nnnn'), 78: (3, C_SAR, 78, 'LSR nnnn'), 80: (2, C_ONE, 80, 'BVC nnnn'), 81: (2, C_ANY, 81, 'EOR (nn),Y'), 85: (2, C_ANY, 85, 'EOR nn,X'), 86: (2, C_SAR, 86, 'LSR nn,X'), 88: (1, C_ONE, 88, 'CLI'), 89: (3, C_ANY, 89, 'EOR nnnn,Y'), 93: (3, C_ANY, 93, 'EOR nnnn,X'), 94: (3, C_SAR, 94, 'LSR nnnn,X'), 96: (1, C_ONE, END, 'RTS'), 97: (2, C_ANY, 97, 'ADC (nn,X)'), 101: (2, C_ANY, 101, 'ADC nn'), 102: (2, C_SAR, 102, 'ROR nn'), 104: (1, C_ONE, 104, 'PLA'), 105: (2, C_ONE, 105, 'ADC #nn'), 106: (1, C_SAR, 106, 'ROR A'), 108: (3, C_ONE, END, 'JMP (nnnn)'), 109: (3, C_ANY, 109, 'ADC nnnn'), 110: (3, C_SAR, 110, 'ROR nnnn'), 112: (2, C_ONE, 112, 'BVS nnnn'), 113: (2, C_ANY, 113, 'ADC (nn),Y'), 117: (2, C_ANY, 117, 'ADC nn,X'), 118: (2, C_SAR, 118, 'ROR nn,X'), 120: (1, C_ONE, 120, 'SEI'), 121: (3, C_ANY, 121, 'ADC nnnn,Y'), 125: (3, C_ANY, 125, 'ADC nnnn,X'), 126: (3, C_SAR, 126, 'ROR nnnn,X'), 129: (2, C_ANY, 129, 'STA (nn,X)'), 132: (2, C_ANY, 132, 'STY nn'), 133: (2, C_ANY, 133, 'STA nn'), 134: (2, C_ANY, 134, 'STX nn'), 136: (1, C_ANY, 136, 'DEY'), 138: (1, C_ONE, 138, 'TXA'), 140: (3, C_ANY, 140, 'STY nnnn'), 141: (3, C_ANY, 141, 'STA nnnn'), 142: (3, C_ANY, 142, 'STX nnnn'), 144: (2, C_ONE, 144, 'BCC nnnn'), 145: (2, C_ANY, 145, 'STA (nn),Y'), 148: (2, C_ANY, 148, 'STY nn,X'), 149: (2, C_ANY, 149, 'STA nn,X'), 150: (2, C_ANY, 150, 'STX nn,Y'), 152: (1, C_ONE, 152, 'TYA'), 153: (3, C_ANY, 153, 'STA nnnn,Y'), 154: (1, C_ONE, 154, 'TXS'), 157: (3, C_ANY, 157, 'STA nnnn,X'), 160: (2, C_ONE, LDY, 'LDY #nn'), 161: (2, C_ONE, LDA, 'LDA (nn,X)'), 162: (2, C_ONE, LDX, 'LDX #nn'), 164: (2, C_ONE, LDY, 'LDY nn'), 165: (2, C_ONE, LDA, 'LDA nn'), 166: (2, C_ONE, LDX, 'LDX nn'), 168: (1, C_ONE, 168, 'TAY'), 169: (2, C_ONE, LDA, 'LDA #nn'), 170: (1, C_ONE, 170, 'TAX'), 172: (3, C_ONE, LDY, 'LDY nnnn'), 173: (3, C_ONE, LDA, 'LDA nnnn'), 174: (3, C_ONE, LDX, 'LDX nnnn'), 176: (2, C_ONE, 176, 'BCS nnnn'), 177: (2, C_ONE, LDA, 'LDA (nn),Y'), 180: (2, C_ONE, LDY, 'LDY nn,X'), 181: (2, C_ONE, LDA, 'LDA nn,X'), 182: (2, C_ONE, LDX, 'LDX nn,Y'), 184: (1, C_ONE, 184, 'CLV'), 185: (3, C_ONE, LDA, 'LDA nnnn,Y'), 186: (1, C_ONE, 186, 'TSX'), 188: (3, C_ONE, LDY, 'LDY nnnn,X'), 189: (3, C_ONE, LDA, 'LDA nnnn,X'), 190: (3, C_ONE, LDX, 'LDX nnnn,Y'), 192: (2, C_ONE, CPY, 'CPY #nn'), 193: (2, C_ONE, CMP, 'CMP (nn,X)'), 196: (2, C_ONE, CPY, 'CPY nn'), 197: (2, C_ONE, CMP, 'CMP nn'), 198: (2, C_ANY, 198, 'DEC nn'), 200: (1, C_ANY, 200, 'INY'), 201: (2, C_ONE, CMP, 'CMP #nn'), 202: (1, C_ANY, 202, 'DEX'), 204: (3, C_ONE, CPY, 'CPY nnnn'), 205: (3, C_ONE, CMP, 'CMP nnnn'), 206: (3, C_ANY, 206, 'DEC nnnn'), 208: (2, C_ONE, 208, 'BNE nnnn'), 209: (2, C_ONE, CMP, 'CMP (nn),Y'), 213: (2, C_ONE, CMP, 'CMP nn,X'), 214: (2, C_ANY, 214, 'DEC nn,X'), 216: (1, C_ONE, 216, 'CLD'), 217: (3, C_ONE, CMP, 'CMP nnnn,Y'), 221: (3, C_ONE, CMP, 'CMP nnnn,X'), 222: (3, C_ANY, 222, 'DEC nnnn,X'), 224: (2, C_ONE, CPX, 'CPX #nn'), 225: (2, C_ANY, 225, 'SBC (nn,X)'), 228: (2, C_ONE, CPX, 'CPX nn'), 229: (2, C_ANY, 229, 'SBC nn'), 230: (2, C_ANY, 230, 'INC nn'), 232: (1, C_ANY, 232, 'INX'), 233: (2, C_ONE, 233, 'SBC #nn'), 234: (1, C_ANY, 234, 'NOP'), 236: (3, C_ONE, CPX, 'CPX nnnn'), 237: (3, C_ANY, 237, 'SBC nnnn'), 238: (3, C_ANY, 238, 'INC nnnn'), 240: (2, C_ONE, 240, 'BEQ nnnn'), 241: (2, C_ANY, 241, 'SBC (nn),Y'), 245: (2, C_ANY, 245, 'SBC nn,X'), 246: (2, C_ANY, 246, 'INC nn,X'), 248: (1, C_ONE, 248, 'SED'), 249: (3, C_ANY, 249, 'SBC nnnn,Y'), 253: (3, C_ANY, 253, 'SBC nnnn,X'), 254: (3, C_ANY, 254, 'INC nnnn,X')} op_sizes = {0: 2, 3: 2, 4: 2, 7: 2, 11: 2, 12: 3, 15: 3, 17: 2, 19: 2, 20: 2, 23: 2, 27: 3, 28: 3, 31: 3, 128: 2, 130: 2, 131: 2, 135: 2, 137: 2, 139: 2, 143: 3, 147: 2, 148: 2, 151: 2, 155: 3, 156: 3, 158: 3, 159: 3} def _byte(snapshot, addr, size): op_id = 0 for i in range(addr, addr + size): op_id = 256 * op_id + snapshot[i] operation = '.BYTE ' + ','.join((str(v) for v in snapshot[addr:addr + size])) return (size, 1, op_id, operation) def _opcode(snapshot, addr, value): try: (size, max_count, op_id, operation) = OPCODES[value] except KeyError: size = OP_SIZES.get(value & 159, 1) return _byte(snapshot, addr, min(size, 65536 - addr)) if addr + size < 65537: return (size, max_count, op_id, operation) return _byte(snapshot, addr, 65536 - addr) def _decode(snapshot, start, end): addr = start while addr < end: value = snapshot[addr] (size, max_count, op_id, operation) = _opcode(snapshot, addr, value) yield (addr, size, max_count, op_id, operation) addr += size def _check_text(t_blocks, t_start, t_end, text, min_length, words): if len(text) >= min_length: if words: t_lower = text.lower() for word in words: if word in t_lower: break else: return t_blocks.append((t_start, t_end)) def _get_text_blocks(snapshot, start, end, config, data=True): if data: min_length = config.text_min_length_data else: min_length = config.text_min_length_code t_blocks = [] if end - start >= min_length: text = '' for address in range(start, end): char = chr(snapshot[address]) if char in config.text_chars: if not text: t_start = address text += char elif text: _check_text(t_blocks, t_start, address, text, min_length, config.words) text = '' if text: _check_text(t_blocks, t_start, end, text, min_length, config.words) return t_blocks def _catch_data(ctls, ctl_addr, count, max_count, addr, op_bytes): if count >= max_count > 0: if not ctls or ctls[-1][1] != 'b': ctls.append((ctl_addr, 'b')) return addr return ctl_addr def _get_operation(operations, snapshot, addr): if addr not in operations: operations[addr] = next(_decode(snapshot, addr, addr + 1))[1::3] return operations[addr] def _generate_ctls_without_code_map(snapshot, start, end, config): operations = {} ctls = [] ctl_addr = start (prev_max_count, prev_op_id, prev_op, prev_op_bytes) = (0, None, None, ()) count = 1 for (addr, size, max_count, op_id, operation) in _decode(snapshot, start, end): operations[addr] = (size, operation) op_bytes = snapshot[addr:addr + size] if op_id == END: ctl_addr = _catch_data(ctls, ctl_addr, count, prev_max_count, addr, prev_op_bytes) ctls.append((ctl_addr, 'c')) ctl_addr = addr + size (prev_max_count, prev_op_id, prev_op, prev_op_bytes) = (0, None, None, ()) count = 1 continue if op_id == prev_op_id: count += 1 elif prev_op: ctl_addr = _catch_data(ctls, ctl_addr, count, prev_max_count, addr, prev_op_bytes) count = 1 (prev_max_count, prev_op_id, prev_op, prev_op_bytes) = (max_count, op_id, operation, op_bytes) if not ctls: ctls.append((ctl_addr, 'b')) ctls.append((end, 'i')) ctls = dict(ctls) edges = sorted(ctls) while 1: done = True while len(edges) > 1: (addr, end) = (edges[0], edges[1]) if ctls[addr] == 'c': while addr < end: (size, operation) = _get_operation(operations, snapshot, addr) if operation.startswith(('BC', 'BE', 'BM', 'BN', 'BP', 'BV')) or (snapshot[addr] == 76 and len(snapshot) > addr + 2): if snapshot[addr] == 76: op_addr = snapshot[addr + 1] + 256 * snapshot[addr + 2] else: operand = snapshot[addr + 1] op_addr = addr + 2 + (operand if operand < 128 else operand - 256) if op_addr == end: del ctls[end], edges[1] done = False break addr += size if not done: break del edges[0] else: del edges[0] if done: break edges = sorted(ctls) for i in range(len(edges) - 1): (start, end) = (edges[i], edges[i + 1]) ctl = ctls[start] text_blocks = _get_text_blocks(snapshot, start, end, config, ctl == 'b') if text_blocks: ctls[start] = 'b' for (t_start, t_end) in text_blocks: ctls[t_start] = 't' if t_end < end: ctls[t_end] = 'b' if t_end < end: addr = t_end while addr < end: addr += _get_operation(operations, snapshot, addr)[0] ctls[t_end] = ctl if addr == end else 'b' return ctls def generate_ctls(snapshot, start, end, code_map, config): return _generate_ctls_without_code_map(snapshot, start, end, config)
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. _base_ = '../retinanet/retinanet_r50_fpn_1x_coco.py' model = dict( bbox_head=dict( loss_cls=dict( _delete_=True, type='GHMC', bins=30, momentum=0.75, use_sigmoid=True, loss_weight=1.0), loss_bbox=dict( _delete_=True, type='GHMR', mu=0.02, bins=10, momentum=0.7, loss_weight=10.0))) optimizer_config = dict( _delete_=True, grad_clip=dict(max_norm=35, norm_type=2))
_base_ = '../retinanet/retinanet_r50_fpn_1x_coco.py' model = dict(bbox_head=dict(loss_cls=dict(_delete_=True, type='GHMC', bins=30, momentum=0.75, use_sigmoid=True, loss_weight=1.0), loss_bbox=dict(_delete_=True, type='GHMR', mu=0.02, bins=10, momentum=0.7, loss_weight=10.0))) optimizer_config = dict(_delete_=True, grad_clip=dict(max_norm=35, norm_type=2))
''' Merge sort ''' def merge ( lst1 , lst2 ): ''' This function merges 2 lists. :param lst1: :param lst2: :return list 1 merged with list 2: >>> merge ([1, 2, 4, 6] ,[3, 5, 7, 8]) [1, 2, 3, 4, 5, 6, 7, 8] ''' res = [] n1 , n2 = len( lst1 ) , len( lst2 ) i , j = 0 , 0 while i < n1 and j < n2 : if lst1 [ i ] <= lst2 [ j ]: res += [ lst1 [ i ]] i += 1 else : res += [ lst2 [ j ]] j += 1 return res + lst1 [ i :] + lst2 [ j :] def merge_sort ( lst ): ''' :param lst: :return sorted list: Input : list of elements Output : Sorted list of elements >>> merge_sort ([3, 7, 9, 6, 2, 5, 4, 1, 8]) [1, 2, 3, 4, 5, 6, 7, 8, 9] >>> merge_sort ([11, 0, 1, 5, 7, 2]) [0, 1, 2, 5, 7, 11] >>> merge_sort ([10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0]) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] ''' k , n = 1 , len ( lst ) while k < n : nxt = [] for a in range (0 , n , 2* k ): b , c = a + k , a + 2* k nxt += merge ( lst [ a : b ] , lst [ b : c ]) lst = nxt k = 2* k return lst
""" Merge sort """ def merge(lst1, lst2): """ This function merges 2 lists. :param lst1: :param lst2: :return list 1 merged with list 2: >>> merge ([1, 2, 4, 6] ,[3, 5, 7, 8]) [1, 2, 3, 4, 5, 6, 7, 8] """ res = [] (n1, n2) = (len(lst1), len(lst2)) (i, j) = (0, 0) while i < n1 and j < n2: if lst1[i] <= lst2[j]: res += [lst1[i]] i += 1 else: res += [lst2[j]] j += 1 return res + lst1[i:] + lst2[j:] def merge_sort(lst): """ :param lst: :return sorted list: Input : list of elements Output : Sorted list of elements >>> merge_sort ([3, 7, 9, 6, 2, 5, 4, 1, 8]) [1, 2, 3, 4, 5, 6, 7, 8, 9] >>> merge_sort ([11, 0, 1, 5, 7, 2]) [0, 1, 2, 5, 7, 11] >>> merge_sort ([10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0]) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] """ (k, n) = (1, len(lst)) while k < n: nxt = [] for a in range(0, n, 2 * k): (b, c) = (a + k, a + 2 * k) nxt += merge(lst[a:b], lst[b:c]) lst = nxt k = 2 * k return lst
# @Rexhino_Kovaci # hash tables we use dictionaries as it is an array whose indexes are obtained using a hash function on the keys # we use 3 collision handling problems: linear, quadratic, double hashing # we are obliged to use ASCII values and divide it by the element of our array/dictionary # declare a dictionary dict = {'Name': 'Rexhino', 'Age': 19, 'Class': 'CE/IT'} # Accessing the dictionary with its key print( "dict['Name']: ", dict['Name']) print ("dict['Age']: ", dict['Age']) # modify the dictionary dict = {'Name': '', 'Age': 99, 'Class': 'None'} dict['Age'] = 98 # update existing entry dict['School'] = "Canadian Institute of Technology" # add new entry print ("dict['Age']: ", dict['Age']) print ("dict['School']: ", dict['School'])
dict = {'Name': 'Rexhino', 'Age': 19, 'Class': 'CE/IT'} print("dict['Name']: ", dict['Name']) print("dict['Age']: ", dict['Age']) dict = {'Name': '', 'Age': 99, 'Class': 'None'} dict['Age'] = 98 dict['School'] = 'Canadian Institute of Technology' print("dict['Age']: ", dict['Age']) print("dict['School']: ", dict['School'])
heroes = {hero: [] for hero in input().split(", ")} command = input() while command != "End": hero, item, price = command.split("-") if item not in heroes[hero]: heroes[hero] += [item, price] command = input() for hero, items in heroes.items(): price = [int(item) for item in items if item.isdecimal()] print(f"{hero} -> Items: {int(len(items) / 2)}, Cost: {sum(price)}")
heroes = {hero: [] for hero in input().split(', ')} command = input() while command != 'End': (hero, item, price) = command.split('-') if item not in heroes[hero]: heroes[hero] += [item, price] command = input() for (hero, items) in heroes.items(): price = [int(item) for item in items if item.isdecimal()] print(f'{hero} -> Items: {int(len(items) / 2)}, Cost: {sum(price)}')
def fib(n): if n <= 1: return 1 return fib(n-1) + fib(n-2) def fib2(n,cache={}): if n <= 1: return 1 if n not in cache: cache[n] = fib2(n-1,cache) + fib2(n-2,cache) return cache[n] sum=0 for i in range(1,100): if fib2(i) >= 4000000: break if fib2(i) % 2 == 0: sum+= fib2(i) print(sum)
def fib(n): if n <= 1: return 1 return fib(n - 1) + fib(n - 2) def fib2(n, cache={}): if n <= 1: return 1 if n not in cache: cache[n] = fib2(n - 1, cache) + fib2(n - 2, cache) return cache[n] sum = 0 for i in range(1, 100): if fib2(i) >= 4000000: break if fib2(i) % 2 == 0: sum += fib2(i) print(sum)
pw = ph = 500 s = 5 amount = int(pw / s + 4) newPage(pw, ph) translate(pw/2, ph/2) rect(-s, 0, s, s) for i in range(amount): rect(0, 0, s*i, s) rotate(-90) translate(0, s * (i-1)) # saveImage('spiral.jpg')
pw = ph = 500 s = 5 amount = int(pw / s + 4) new_page(pw, ph) translate(pw / 2, ph / 2) rect(-s, 0, s, s) for i in range(amount): rect(0, 0, s * i, s) rotate(-90) translate(0, s * (i - 1))
class Square: def __init__(self, id, x, y, data): self.id = id self.x = x self.y = y self.data = data
class Square: def __init__(self, id, x, y, data): self.id = id self.x = x self.y = y self.data = data
class PaireGraphs: def __init__(self,graphe1, graphe2, matching): self.premierGraphe = graphe1 self.secondGraphe = graphe2 self.matching = matching
class Pairegraphs: def __init__(self, graphe1, graphe2, matching): self.premierGraphe = graphe1 self.secondGraphe = graphe2 self.matching = matching
# Variable declaration myName = 'Dany Sluijk'; myAddress = 'Nijenoord 9'; result = 'Ik ben ' + myName + ' en mijn adres is: ' + myAddress; print(result);
my_name = 'Dany Sluijk' my_address = 'Nijenoord 9' result = 'Ik ben ' + myName + ' en mijn adres is: ' + myAddress print(result)
print("Hello World!!") print() print('-----------------------') print() print(note := 'lets create a string') print(some_string := 'this is a string') try: # index starts from 0 thus len -1 if some_string[len(some_string) - 1] == 'g': print(note := 'this shall be executed') except IndexError: print(note := 'if we have the Index error this shall be executed') else: print('No exception was raised this time, we will execute the else block') finally: print(note := 'finally is always be executed') print() print('-----------------------') print() try: # this will case the index error as we overshoot the length of string if some_string[len(some_string)] == 'g': print(note := 'this shall not be executed') except IndexError: print(note := 'We will get the Index error') else: print('exception was raised this time, we shall not execute the else block') finally: print(note := 'finally is always be executed') print() print('-----------------------') print()
print('Hello World!!') print() print('-----------------------') print() print((note := 'lets create a string')) print((some_string := 'this is a string')) try: if some_string[len(some_string) - 1] == 'g': print((note := 'this shall be executed')) except IndexError: print((note := 'if we have the Index error this shall be executed')) else: print('No exception was raised this time, we will execute the else block') finally: print((note := 'finally is always be executed')) print() print('-----------------------') print() try: if some_string[len(some_string)] == 'g': print((note := 'this shall not be executed')) except IndexError: print((note := 'We will get the Index error')) else: print('exception was raised this time, we shall not execute the else block') finally: print((note := 'finally is always be executed')) print() print('-----------------------') print()
class Solution: def eliminateMaximum(self, dist: List[int], speed: List[int]) -> int: for i, arrivalTime in enumerate(sorted([(d - 1) // s for d, s in zip(dist, speed)])): if i > arrivalTime: return i return len(dist)
class Solution: def eliminate_maximum(self, dist: List[int], speed: List[int]) -> int: for (i, arrival_time) in enumerate(sorted([(d - 1) // s for (d, s) in zip(dist, speed)])): if i > arrivalTime: return i return len(dist)
# GENERATED VERSION FILE # TIME: Tue Dec 28 10:55:50 2021 __version__ = '1.0.0+8da4630' short_version = '1.0.0'
__version__ = '1.0.0+8da4630' short_version = '1.0.0'
def arr2bin(arr): total = 0 for a in arr: if not type(a) == int: return False total += a return '{:b}'.format(total)
def arr2bin(arr): total = 0 for a in arr: if not type(a) == int: return False total += a return '{:b}'.format(total)
num1 = 111 num2 = 222 num3 = 3333333 num4 = 4444
num1 = 111 num2 = 222 num3 = 3333333 num4 = 4444
N, M = map(int, input().split()) if M == 1 or M == 2: print('NEWBIE!') elif 2 < M <= N: print("OLDBIE!") else: print("TLE!")
(n, m) = map(int, input().split()) if M == 1 or M == 2: print('NEWBIE!') elif 2 < M <= N: print('OLDBIE!') else: print('TLE!')
# # Print elements of a tuple or a default message # Used a lot in CodinGame Clash of Code # # Tuple of elements a = tuple(range(5)) # Unpack the elements of a # >>> print(*a) # 0 1 2 3 4 # If a is empty, *a = False # Therefore, unpack the elements inside ["None"], therefore "None" print(*a or ["None"]) # # Transpose a list of list # Used a lot in CodinGame Clash of Code # # List of lists a = [[*range(5)] for _ in range(5)] # Unpack then zip # Unpack : Returns every list in a # >>> print(*a) # [0, 1, 2, 3, 4] [0, 1, 2, 3, 4] [0, 1, 2, 3, 4] [0, 1, 2, 3, 4] [0, 1, 2, 3, 4] # Zip : Get an item from each list of a and puts it inside a tuple of elements # >>> for elem in zip(d.keys(), d.values(), d.items(), d.keys()): # ... print(type(elem), elem) # <class 'tuple'> ('0', 0, ('0', 0), '0') # <class 'tuple'> ('1', 1, ('1', 1), '1') # <class 'tuple'> ('2', 4, ('2', 4), '2') # <class 'tuple'> ('3', 9, ('3', 9), '3') a_t = list(zip(*a)) print(a_t) # # Convert a boolean to another variable # Used a lot in CodinGame Clash of Code # # Boolean b = True # Convert # False : 0, True : 1 res = ("bar", "foo") print(res[b])
a = tuple(range(5)) print(*(a or ['None'])) a = [[*range(5)] for _ in range(5)] a_t = list(zip(*a)) print(a_t) b = True res = ('bar', 'foo') print(res[b])
list = [[],[]] for v in range(1,8): numero = int(input(f"Digite o {v}o. valor: " )) if numero%2 == 0: list[0].append(numero) else: list[1].append(numero) print(f'Os valores pares digitados foram: {sorted(list[0])}') print(f'Os valores impares digitados foram: {sorted(list[1])}')
list = [[], []] for v in range(1, 8): numero = int(input(f'Digite o {v}o. valor: ')) if numero % 2 == 0: list[0].append(numero) else: list[1].append(numero) print(f'Os valores pares digitados foram: {sorted(list[0])}') print(f'Os valores impares digitados foram: {sorted(list[1])}')
def test_docker_running(host): docker = host.service("docker") assert docker.is_enabled assert docker.is_running def test_swarm_is_active(docker_info): assert "Swarm: active" in docker_info
def test_docker_running(host): docker = host.service('docker') assert docker.is_enabled assert docker.is_running def test_swarm_is_active(docker_info): assert 'Swarm: active' in docker_info
# weird string case from codewars 6 kyu # def to_weird_case(string): #TODO new_str = '' word_index = 0 current_index = 0 while current_index != len(string): print(f'word_index: {word_index}, stringval: {string[current_index]} ') if string[current_index] == ' ': new_str += ' ' current_index += 1 word_index = 0 continue elif word_index == 0: new_str += string[current_index].upper() elif word_index == 1: new_str += string[current_index].lower() elif word_index % 2 == 0: new_str += string[current_index].upper() elif word_index %2 == 1: new_str += string[current_index].lower() current_index += 1 word_index += 1 return new_str #edge cases empty string: return '', #0== e 1==odd # #'01234 012345 0123 word index #'Weird String case' #'0123456789... #if word index is 0, 1, even upper, odd: lower ################################################### #set word index, current_index (while is not leng(str)), #while current_index != len(string): #if string[current_index] == ' ': #new_str += ' ' #current_index += 1 #word_index == 0 #continue #elif word_index == 0: #new_str += string[current_index].upper(), #elif word_index == 1: #new_str += string[current_index].lower() #elif word_index % 2 == 0: #new_str += string[current_index].upper() #elif word_index %2 == 1: #new_str += string[current_index].lower() #current_index += 1 #word_index += 1 #123456789abcde c_i #this is a test #0123 01 0 0123 w_i #
def to_weird_case(string): new_str = '' word_index = 0 current_index = 0 while current_index != len(string): print(f'word_index: {word_index}, stringval: {string[current_index]} ') if string[current_index] == ' ': new_str += ' ' current_index += 1 word_index = 0 continue elif word_index == 0: new_str += string[current_index].upper() elif word_index == 1: new_str += string[current_index].lower() elif word_index % 2 == 0: new_str += string[current_index].upper() elif word_index % 2 == 1: new_str += string[current_index].lower() current_index += 1 word_index += 1 return new_str
class QuizBrain: def __init__(self,question_list): self.question_list = question_list self.question_number = 0 self.user_score = 0 def next_question(self): current_question = self.question_list[self.question_number] self.question_number += 1 user_answer = input(f"Q.{self.question_number}: {current_question.text}: (True/False) >>>") self.check_answer(user_answer,current_question.answer) def still_has_question(self): return self.question_number < len(self.question_list) def check_answer(self, user_answer, correct_answer): if user_answer.lower() == correct_answer.lower(): print("You got it. Your answer is correct.") self.user_score += 1 else: print("Your answer is wrong!") print(f"Correct answer is {correct_answer}") print(f"Your current score is {self.user_score}/{self.question_number}") print("\n") if self.question_number == len(self.question_list): print("You have completed the Quiz") print(f"Your final score is {self.user_score}/{self.question_number}")
class Quizbrain: def __init__(self, question_list): self.question_list = question_list self.question_number = 0 self.user_score = 0 def next_question(self): current_question = self.question_list[self.question_number] self.question_number += 1 user_answer = input(f'Q.{self.question_number}: {current_question.text}: (True/False) >>>') self.check_answer(user_answer, current_question.answer) def still_has_question(self): return self.question_number < len(self.question_list) def check_answer(self, user_answer, correct_answer): if user_answer.lower() == correct_answer.lower(): print('You got it. Your answer is correct.') self.user_score += 1 else: print('Your answer is wrong!') print(f'Correct answer is {correct_answer}') print(f'Your current score is {self.user_score}/{self.question_number}') print('\n') if self.question_number == len(self.question_list): print('You have completed the Quiz') print(f'Your final score is {self.user_score}/{self.question_number}')
swagger_file_content = ''' swagger: '2.0' info: description: Estuary agent will run your shell commands via REST API version: 4.4.0 title: estuary-agent contact: name: Catalin Dinuta url: 'https://github.com/dinuta' email: constantin.dinuta@gmail.com license: name: Apache 2.0 url: 'http://www.apache.org/licenses/LICENSE-2.0.html' host: 'localhost:8080' basePath: / tags: - name: estuary-agent description: root paths: /about: get: tags: - estuary-agent summary: Information about the application operationId: aboutGet produces: - application/json parameters: - name: Token in: header description: Token required: false type: string responses: '200': description: Prints the name and version of the application. schema: $ref: '#/definitions/ApiResponse' '401': description: Unauthorized '403': description: Forbidden '404': description: Not Found /command: post: tags: - estuary-agent summary: Starts multiple commands in blocking mode sequentially. Set the client timeout at needed value. operationId: commandPost_1 consumes: - application/json - application/x-www-form-urlencoded - text/plain produces: - application/json parameters: - in: body name: commands description: Commands to run. E.g. ls -lrt required: true schema: type: string - name: Token in: header description: Token required: false type: string responses: '200': description: Commands start success schema: $ref: '#/definitions/ApiResponse' '201': description: Created '401': description: Unauthorized '403': description: Forbidden '404': description: Not Found '500': description: Commands start failure schema: $ref: '#/definitions/ApiResponse' /commanddetached: get: tags: - estuary-agent summary: Gets information about the last command started in detached mode operationId: commandDetachedGet produces: - application/json parameters: - name: Token in: header description: Token required: false type: string responses: '200': description: Get command detached info success schema: $ref: '#/definitions/ApiResponse' '401': description: Unauthorized '403': description: Forbidden '404': description: Not Found '500': description: Get command detached info failure schema: $ref: '#/definitions/ApiResponse' delete: tags: - estuary-agent summary: Stops all commands that were previously started in detached mode operationId: commandDetachedDelete produces: - application/json parameters: - name: Token in: header description: Token required: false type: string responses: '200': description: command detached stop success schema: $ref: '#/definitions/ApiResponse' '204': description: No Content '401': description: Unauthorized '403': description: Forbidden '500': description: command detached stop failure schema: $ref: '#/definitions/ApiResponse' '/commanddetached/{id}': get: tags: - estuary-agent summary: Gets information about the command identified by id started in detached mode operationId: commandDetachedIdGet produces: - application/json parameters: - name: id in: path description: Command detached id set by the user required: true type: string - name: Token in: header description: Token required: false type: string responses: '200': description: Get command detached info success schema: $ref: '#/definitions/ApiResponse' '401': description: Unauthorized '403': description: Forbidden '404': description: Not Found '500': description: Get command detached info failure schema: $ref: '#/definitions/ApiResponse' post: tags: - estuary-agent summary: Starts the shell commands in detached mode and sequentially operationId: commandDetachedIdPost consumes: - application/json - application/x-www-form-urlencoded - text/plain produces: - application/json parameters: - in: body name: commandContent description: List of commands to run one after the other. E.g. make/mvn/sh/npm required: true schema: type: string - name: id in: path description: Command detached id set by the user required: true type: string - name: Token in: header description: Token required: false type: string responses: '200': description: Commands start success schema: $ref: '#/definitions/ApiResponse' '201': description: Created '401': description: Unauthorized '403': description: Forbidden '404': description: Not Found '500': description: Commands start failure schema: $ref: '#/definitions/ApiResponse' delete: tags: - estuary-agent summary: Deletes the associated processes of the shell commands in detached mode operationId: commandDetachedIdDelete produces: - application/json parameters: - name: id in: path description: Command detached id set by the user required: true type: string - name: Token in: header description: Token required: false type: string responses: '200': description: Command delete success schema: $ref: '#/definitions/ApiResponse' '204': description: No Content '401': description: Unauthorized '403': description: Forbidden '500': description: Command delete failure schema: $ref: '#/definitions/ApiResponse' '/commanddetachedyaml/{id}': post: tags: - estuary-agent summary: Starts the commands in detached mode and sequentially. The commands are described by yaml. operationId: commandDetachedIdPostYaml consumes: - application/json - application/x-www-form-urlencoded - text/plain produces: - application/json parameters: - in: body name: commandContent description: List of commands to run one after the other in yaml format. required: true schema: type: string - name: id in: path description: Command detached id set by the user required: true type: string - name: Token in: header description: Token required: false type: string responses: '200': description: Commands start success schema: $ref: '#/definitions/ApiResponse' '201': description: Created '401': description: Unauthorized '403': description: Forbidden '404': description: Not Found '500': description: Commands start failure schema: $ref: '#/definitions/ApiResponse' /commandparallel: post: tags: - estuary-agent summary: Starts multiple commands in blocking mode parallel. Set the client timeout at needed value. operationId: commandPost_2 consumes: - application/json - application/x-www-form-urlencoded - text/plain produces: - application/json parameters: - in: body name: commands description: Commands to run. E.g. ls -lrt required: true schema: type: string - name: Token in: header description: Token required: false type: string responses: '200': description: commands start success schema: $ref: '#/definitions/ApiResponse' '201': description: Created '401': description: Unauthorized '403': description: Forbidden '404': description: Not Found '500': description: commands start failure schema: $ref: '#/definitions/ApiResponse' /commandyaml: post: tags: - estuary-agent summary: Starts multiple commands in blocking mode sequentially. The commands are described in yaml format. Set the client timeout at needed value. operationId: commandPost consumes: - application/json - application/x-www-form-urlencoded - text/plain produces: - application/json parameters: - in: body name: commands description: Commands to run in yaml format required: true schema: type: string - name: Token in: header description: Token required: false type: string responses: '200': description: Commands start success schema: $ref: '#/definitions/ApiResponse' '201': description: Created '401': description: Unauthorized '403': description: Forbidden '404': description: Not Found '500': description: Commands start failure schema: $ref: '#/definitions/ApiResponse' /env: get: tags: - estuary-agent summary: Print all environment variables operationId: envGet produces: - application/json parameters: - name: Token in: header description: Token required: false type: string responses: '200': description: List of the entire environment variables schema: $ref: '#/definitions/ApiResponse' '401': description: Unauthorized '403': description: Forbidden '404': description: Not Found post: tags: - estuary-agent summary: Set environment variables operationId: envPost consumes: - application/json produces: - application/json parameters: - in: body name: envVars description: List of env vars by key-value pair in JSON format required: true schema: type: string - name: Token in: header description: Authentication Token required: false type: string responses: '200': description: Set environment variables success schema: $ref: '#/definitions/ApiResponse' '201': description: Created '401': description: Unauthorized '403': description: Forbidden '404': description: Not Found '500': description: Set environment variables failure schema: $ref: '#/definitions/ApiResponse' delete: tags: - estuary-agent summary: Deletes the custom defined env vars contained in the virtual environment operationId: envDelete produces: - application/json parameters: - name: Token in: header description: Token required: false type: string responses: '200': description: 'Deletes the entire virtual env vars, but keeping system env vars.' schema: $ref: '#/definitions/ApiResponse' '204': description: No Content '401': description: Unauthorized '403': description: Forbidden '/env/{env_name}': get: tags: - estuary-agent summary: Gets the environment variable value from the environment operationId: envEnvNameGet produces: - application/json parameters: - name: env_name in: path description: The name of the env var to get value from required: true type: string - name: Token in: header description: Token required: false type: string responses: '200': description: Get env var success schema: $ref: '#/definitions/ApiResponse' '401': description: Unauthorized '403': description: Forbidden '404': description: Not Found '500': description: Get env var failure schema: $ref: '#/definitions/ApiResponse' /file: get: tags: - estuary-agent summary: Gets the content of the file operationId: fileGet consumes: - application/octet-stream - text/plain produces: - application/json - application/zip parameters: - name: File-Path in: header description: Target file path to get required: false type: string - name: Token in: header description: Token required: false type: string responses: '200': description: 'The content of the file in plain text, success' schema: $ref: '#/definitions/ApiResponse' '401': description: Unauthorized '403': description: Forbidden '404': description: Not Found '500': description: 'Failure, the file content could not be read' schema: $ref: '#/definitions/ApiResponse' post: tags: - estuary-agent summary: Uploads a file no mater the format. Binary or raw operationId: filePost consumes: - application/octet-stream - application/json - application/x-www-form-urlencoded - text/plain produces: - application/json - text/plain parameters: - in: body name: content description: The content of the file required: false schema: type: string format: byte - name: File-Path in: header description: File-Path required: true type: string - name: Token in: header description: Token required: false type: string responses: '200': description: The content of the file was uploaded successfully schema: $ref: '#/definitions/ApiResponse' '201': description: Created '401': description: Unauthorized '403': description: Forbidden '404': description: Not Found '500': description: 'Failure, the file content could not be uploaded' schema: $ref: '#/definitions/ApiResponse' put: tags: - estuary-agent summary: Uploads a file no mater the format. Binary or raw operationId: filePut consumes: - application/octet-stream - application/json - application/x-www-form-urlencoded - text/plain produces: - application/json - text/plain parameters: - in: body name: content description: The content of the file required: false schema: type: string format: byte - name: File-Path in: header description: File-Path required: true type: string - name: Token in: header description: Token required: false type: string responses: '200': description: The content of the file was uploaded successfully schema: $ref: '#/definitions/ApiResponse' '201': description: Created '401': description: Unauthorized '403': description: Forbidden '404': description: Not Found '500': description: 'Failure, the file content could not be uploaded' schema: $ref: '#/definitions/ApiResponse' /folder: get: tags: - estuary-agent summary: Gets the folder as zip archive. Useful to get test results folder operationId: folderGet produces: - application/json - application/zip parameters: - name: Folder-Path in: header description: Target folder path to get as zip required: false type: string - name: Token in: header description: Token required: false type: string responses: '200': description: The content of the folder as zip archive schema: $ref: '#/definitions/ApiResponse' '401': description: Unauthorized '403': description: Forbidden '404': description: Not Found '500': description: The content of the folder could not be obtained schema: $ref: '#/definitions/ApiResponse' /ping: get: tags: - estuary-agent summary: Ping endpoint which replies with pong operationId: pingGet produces: - application/json parameters: - name: Token in: header description: Token required: false type: string responses: '200': description: Ping endpoint which replies with pong. Useful when checking the alive status of the service schema: $ref: '#/definitions/ApiResponse' '401': description: Unauthorized '403': description: Forbidden '404': description: Not Found definitions: ApiResponse: type: object properties: code: type: integer format: int32 description: type: object message: type: string name: type: string path: type: string timestamp: type: string version: type: string title: ApiResponse ApiResponseCommandDescription: type: object properties: code: type: integer format: int32 description: $ref: '#/definitions/CommandDescription' message: type: string name: type: string path: type: string timestamp: type: string version: type: string title: ApiResponseCommandDescription CommandDescription: type: object properties: commands: type: object additionalProperties: $ref: '#/definitions/CommandStatus' duration: type: number format: float finished: type: boolean finishedat: type: string id: type: string pid: type: integer format: int64 processes: type: array items: $ref: '#/definitions/ProcessInfo' started: type: boolean startedat: type: string title: CommandDescription CommandDetails: type: object properties: args: type: array items: type: string code: type: integer format: int64 err: type: string out: type: string pid: type: integer format: int64 title: CommandDetails CommandStatus: type: object properties: details: $ref: '#/definitions/CommandDetails' duration: type: number format: float finishedat: type: string example: 'yyyy-MM-dd HH:mm:ss.SSSSSS' startedat: type: string example: 'yyyy-MM-dd HH:mm:ss.SSSSSS' status: type: string title: CommandStatus ProcessHandle: type: object properties: alive: type: boolean title: ProcessHandle ProcessInfo: type: object properties: arguments: type: array items: type: string children: type: array items: $ref: '#/definitions/ProcessHandle' name: type: string parent: type: integer format: int64 pid: type: integer format: int64 status: type: string username: type: string title: ProcessInfo '''
swagger_file_content = "\nswagger: '2.0'\ninfo:\n description: Estuary agent will run your shell commands via REST API\n version: 4.4.0\n title: estuary-agent\n contact:\n name: Catalin Dinuta\n url: 'https://github.com/dinuta'\n email: constantin.dinuta@gmail.com\n license:\n name: Apache 2.0\n url: 'http://www.apache.org/licenses/LICENSE-2.0.html'\nhost: 'localhost:8080'\nbasePath: /\ntags:\n - name: estuary-agent\n description: root\npaths:\n /about:\n get:\n tags:\n - estuary-agent\n summary: Information about the application\n operationId: aboutGet\n produces:\n - application/json\n parameters:\n - name: Token\n in: header\n description: Token\n required: false\n type: string\n responses:\n '200':\n description: Prints the name and version of the application.\n schema:\n $ref: '#/definitions/ApiResponse'\n '401':\n description: Unauthorized\n '403':\n description: Forbidden\n '404':\n description: Not Found\n /command:\n post:\n tags:\n - estuary-agent\n summary: Starts multiple commands in blocking mode sequentially. Set the client timeout at needed value.\n operationId: commandPost_1\n consumes:\n - application/json\n - application/x-www-form-urlencoded\n - text/plain\n produces:\n - application/json\n parameters:\n - in: body\n name: commands\n description: Commands to run. E.g. ls -lrt\n required: true\n schema:\n type: string\n - name: Token\n in: header\n description: Token\n required: false\n type: string\n responses:\n '200':\n description: Commands start success\n schema:\n $ref: '#/definitions/ApiResponse'\n '201':\n description: Created\n '401':\n description: Unauthorized\n '403':\n description: Forbidden\n '404':\n description: Not Found\n '500':\n description: Commands start failure\n schema:\n $ref: '#/definitions/ApiResponse'\n /commanddetached:\n get:\n tags:\n - estuary-agent\n summary: Gets information about the last command started in detached mode\n operationId: commandDetachedGet\n produces:\n - application/json\n parameters:\n - name: Token\n in: header\n description: Token\n required: false\n type: string\n responses:\n '200':\n description: Get command detached info success\n schema:\n $ref: '#/definitions/ApiResponse'\n '401':\n description: Unauthorized\n '403':\n description: Forbidden\n '404':\n description: Not Found\n '500':\n description: Get command detached info failure\n schema:\n $ref: '#/definitions/ApiResponse'\n delete:\n tags:\n - estuary-agent\n summary: Stops all commands that were previously started in detached mode\n operationId: commandDetachedDelete\n produces:\n - application/json\n parameters:\n - name: Token\n in: header\n description: Token\n required: false\n type: string\n responses:\n '200':\n description: command detached stop success\n schema:\n $ref: '#/definitions/ApiResponse'\n '204':\n description: No Content\n '401':\n description: Unauthorized\n '403':\n description: Forbidden\n '500':\n description: command detached stop failure\n schema:\n $ref: '#/definitions/ApiResponse'\n '/commanddetached/{id}':\n get:\n tags:\n - estuary-agent\n summary: Gets information about the command identified by id started in detached mode\n operationId: commandDetachedIdGet\n produces:\n - application/json\n parameters:\n - name: id\n in: path\n description: Command detached id set by the user\n required: true\n type: string\n - name: Token\n in: header\n description: Token\n required: false\n type: string\n responses:\n '200':\n description: Get command detached info success\n schema:\n $ref: '#/definitions/ApiResponse'\n '401':\n description: Unauthorized\n '403':\n description: Forbidden\n '404':\n description: Not Found\n '500':\n description: Get command detached info failure\n schema:\n $ref: '#/definitions/ApiResponse'\n post:\n tags:\n - estuary-agent\n summary: Starts the shell commands in detached mode and sequentially\n operationId: commandDetachedIdPost\n consumes:\n - application/json\n - application/x-www-form-urlencoded\n - text/plain\n produces:\n - application/json\n parameters:\n - in: body\n name: commandContent\n description: List of commands to run one after the other. E.g. make/mvn/sh/npm\n required: true\n schema:\n type: string\n - name: id\n in: path\n description: Command detached id set by the user\n required: true\n type: string\n - name: Token\n in: header\n description: Token\n required: false\n type: string\n responses:\n '200':\n description: Commands start success\n schema:\n $ref: '#/definitions/ApiResponse'\n '201':\n description: Created\n '401':\n description: Unauthorized\n '403':\n description: Forbidden\n '404':\n description: Not Found\n '500':\n description: Commands start failure\n schema:\n $ref: '#/definitions/ApiResponse'\n delete:\n tags:\n - estuary-agent\n summary: Deletes the associated processes of the shell commands in detached mode\n operationId: commandDetachedIdDelete\n produces:\n - application/json\n parameters:\n - name: id\n in: path\n description: Command detached id set by the user\n required: true\n type: string\n - name: Token\n in: header\n description: Token\n required: false\n type: string\n responses:\n '200':\n description: Command delete success\n schema:\n $ref: '#/definitions/ApiResponse'\n '204':\n description: No Content\n '401':\n description: Unauthorized\n '403':\n description: Forbidden\n '500':\n description: Command delete failure\n schema:\n $ref: '#/definitions/ApiResponse'\n '/commanddetachedyaml/{id}':\n post:\n tags:\n - estuary-agent\n summary: Starts the commands in detached mode and sequentially. The commands are described by yaml.\n operationId: commandDetachedIdPostYaml\n consumes:\n - application/json\n - application/x-www-form-urlencoded\n - text/plain\n produces:\n - application/json\n parameters:\n - in: body\n name: commandContent\n description: List of commands to run one after the other in yaml format.\n required: true\n schema:\n type: string\n - name: id\n in: path\n description: Command detached id set by the user\n required: true\n type: string\n - name: Token\n in: header\n description: Token\n required: false\n type: string\n responses:\n '200':\n description: Commands start success\n schema:\n $ref: '#/definitions/ApiResponse'\n '201':\n description: Created\n '401':\n description: Unauthorized\n '403':\n description: Forbidden\n '404':\n description: Not Found\n '500':\n description: Commands start failure\n schema:\n $ref: '#/definitions/ApiResponse'\n /commandparallel:\n post:\n tags:\n - estuary-agent\n summary: Starts multiple commands in blocking mode parallel. Set the client timeout at needed value.\n operationId: commandPost_2\n consumes:\n - application/json\n - application/x-www-form-urlencoded\n - text/plain\n produces:\n - application/json\n parameters:\n - in: body\n name: commands\n description: Commands to run. E.g. ls -lrt\n required: true\n schema:\n type: string\n - name: Token\n in: header\n description: Token\n required: false\n type: string\n responses:\n '200':\n description: commands start success\n schema:\n $ref: '#/definitions/ApiResponse'\n '201':\n description: Created\n '401':\n description: Unauthorized\n '403':\n description: Forbidden\n '404':\n description: Not Found\n '500':\n description: commands start failure\n schema:\n $ref: '#/definitions/ApiResponse'\n /commandyaml:\n post:\n tags:\n - estuary-agent\n summary: Starts multiple commands in blocking mode sequentially. The commands are described in yaml format. Set the client timeout at needed value.\n operationId: commandPost\n consumes:\n - application/json\n - application/x-www-form-urlencoded\n - text/plain\n produces:\n - application/json\n parameters:\n - in: body\n name: commands\n description: Commands to run in yaml format\n required: true\n schema:\n type: string\n - name: Token\n in: header\n description: Token\n required: false\n type: string\n responses:\n '200':\n description: Commands start success\n schema:\n $ref: '#/definitions/ApiResponse'\n '201':\n description: Created\n '401':\n description: Unauthorized\n '403':\n description: Forbidden\n '404':\n description: Not Found\n '500':\n description: Commands start failure\n schema:\n $ref: '#/definitions/ApiResponse'\n /env:\n get:\n tags:\n - estuary-agent\n summary: Print all environment variables\n operationId: envGet\n produces:\n - application/json\n parameters:\n - name: Token\n in: header\n description: Token\n required: false\n type: string\n responses:\n '200':\n description: List of the entire environment variables\n schema:\n $ref: '#/definitions/ApiResponse'\n '401':\n description: Unauthorized\n '403':\n description: Forbidden\n '404':\n description: Not Found\n post:\n tags:\n - estuary-agent\n summary: Set environment variables\n operationId: envPost\n consumes:\n - application/json\n produces:\n - application/json\n parameters:\n - in: body\n name: envVars\n description: List of env vars by key-value pair in JSON format\n required: true\n schema:\n type: string\n - name: Token\n in: header\n description: Authentication Token\n required: false\n type: string\n responses:\n '200':\n description: Set environment variables success\n schema:\n $ref: '#/definitions/ApiResponse'\n '201':\n description: Created\n '401':\n description: Unauthorized\n '403':\n description: Forbidden\n '404':\n description: Not Found\n '500':\n description: Set environment variables failure\n schema:\n $ref: '#/definitions/ApiResponse'\n delete:\n tags:\n - estuary-agent\n summary: Deletes the custom defined env vars contained in the virtual environment\n operationId: envDelete\n produces:\n - application/json\n parameters:\n - name: Token\n in: header\n description: Token\n required: false\n type: string\n responses:\n '200':\n description: 'Deletes the entire virtual env vars, but keeping system env vars.'\n schema:\n $ref: '#/definitions/ApiResponse'\n '204':\n description: No Content\n '401':\n description: Unauthorized\n '403':\n description: Forbidden\n '/env/{env_name}':\n get:\n tags:\n - estuary-agent\n summary: Gets the environment variable value from the environment\n operationId: envEnvNameGet\n produces:\n - application/json\n parameters:\n - name: env_name\n in: path\n description: The name of the env var to get value from\n required: true\n type: string\n - name: Token\n in: header\n description: Token\n required: false\n type: string\n responses:\n '200':\n description: Get env var success\n schema:\n $ref: '#/definitions/ApiResponse'\n '401':\n description: Unauthorized\n '403':\n description: Forbidden\n '404':\n description: Not Found\n '500':\n description: Get env var failure\n schema:\n $ref: '#/definitions/ApiResponse'\n /file:\n get:\n tags:\n - estuary-agent\n summary: Gets the content of the file\n operationId: fileGet\n consumes:\n - application/octet-stream\n - text/plain\n produces:\n - application/json\n - application/zip\n parameters:\n - name: File-Path\n in: header\n description: Target file path to get\n required: false\n type: string\n - name: Token\n in: header\n description: Token\n required: false\n type: string\n responses:\n '200':\n description: 'The content of the file in plain text, success'\n schema:\n $ref: '#/definitions/ApiResponse'\n '401':\n description: Unauthorized\n '403':\n description: Forbidden\n '404':\n description: Not Found\n '500':\n description: 'Failure, the file content could not be read'\n schema:\n $ref: '#/definitions/ApiResponse'\n post:\n tags:\n - estuary-agent\n summary: Uploads a file no mater the format. Binary or raw\n operationId: filePost\n consumes:\n - application/octet-stream\n - application/json\n - application/x-www-form-urlencoded\n - text/plain\n produces:\n - application/json\n - text/plain\n parameters:\n - in: body\n name: content\n description: The content of the file\n required: false\n schema:\n type: string\n format: byte\n - name: File-Path\n in: header\n description: File-Path\n required: true\n type: string\n - name: Token\n in: header\n description: Token\n required: false\n type: string\n responses:\n '200':\n description: The content of the file was uploaded successfully\n schema:\n $ref: '#/definitions/ApiResponse'\n '201':\n description: Created\n '401':\n description: Unauthorized\n '403':\n description: Forbidden\n '404':\n description: Not Found\n '500':\n description: 'Failure, the file content could not be uploaded'\n schema:\n $ref: '#/definitions/ApiResponse'\n put:\n tags:\n - estuary-agent\n summary: Uploads a file no mater the format. Binary or raw\n operationId: filePut\n consumes:\n - application/octet-stream\n - application/json\n - application/x-www-form-urlencoded\n - text/plain\n produces:\n - application/json\n - text/plain\n parameters:\n - in: body\n name: content\n description: The content of the file\n required: false\n schema:\n type: string\n format: byte\n - name: File-Path\n in: header\n description: File-Path\n required: true\n type: string\n - name: Token\n in: header\n description: Token\n required: false\n type: string\n responses:\n '200':\n description: The content of the file was uploaded successfully\n schema:\n $ref: '#/definitions/ApiResponse'\n '201':\n description: Created\n '401':\n description: Unauthorized\n '403':\n description: Forbidden\n '404':\n description: Not Found\n '500':\n description: 'Failure, the file content could not be uploaded'\n schema:\n $ref: '#/definitions/ApiResponse'\n /folder:\n get:\n tags:\n - estuary-agent\n summary: Gets the folder as zip archive. Useful to get test results folder\n operationId: folderGet\n produces:\n - application/json\n - application/zip\n parameters:\n - name: Folder-Path\n in: header\n description: Target folder path to get as zip\n required: false\n type: string\n - name: Token\n in: header\n description: Token\n required: false\n type: string\n responses:\n '200':\n description: The content of the folder as zip archive\n schema:\n $ref: '#/definitions/ApiResponse'\n '401':\n description: Unauthorized\n '403':\n description: Forbidden\n '404':\n description: Not Found\n '500':\n description: The content of the folder could not be obtained\n schema:\n $ref: '#/definitions/ApiResponse'\n /ping:\n get:\n tags:\n - estuary-agent\n summary: Ping endpoint which replies with pong\n operationId: pingGet\n produces:\n - application/json\n parameters:\n - name: Token\n in: header\n description: Token\n required: false\n type: string\n responses:\n '200':\n description: Ping endpoint which replies with pong. Useful when checking the alive status of the service\n schema:\n $ref: '#/definitions/ApiResponse'\n '401':\n description: Unauthorized\n '403':\n description: Forbidden\n '404':\n description: Not Found\ndefinitions:\n ApiResponse:\n type: object\n properties:\n code:\n type: integer\n format: int32\n description:\n type: object\n message:\n type: string\n name:\n type: string\n path:\n type: string\n timestamp:\n type: string\n version:\n type: string\n title: ApiResponse\n ApiResponseCommandDescription:\n type: object\n properties:\n code:\n type: integer\n format: int32\n description:\n $ref: '#/definitions/CommandDescription'\n message:\n type: string\n name:\n type: string\n path:\n type: string\n timestamp:\n type: string\n version:\n type: string\n title: ApiResponseCommandDescription\n CommandDescription:\n type: object\n properties:\n commands:\n type: object\n additionalProperties:\n $ref: '#/definitions/CommandStatus'\n duration:\n type: number\n format: float\n finished:\n type: boolean\n finishedat:\n type: string\n id:\n type: string\n pid:\n type: integer\n format: int64\n processes:\n type: array\n items:\n $ref: '#/definitions/ProcessInfo'\n started:\n type: boolean\n startedat:\n type: string\n title: CommandDescription\n CommandDetails:\n type: object\n properties:\n args:\n type: array\n items:\n type: string\n code:\n type: integer\n format: int64\n err:\n type: string\n out:\n type: string\n pid:\n type: integer\n format: int64\n title: CommandDetails\n CommandStatus:\n type: object\n properties:\n details:\n $ref: '#/definitions/CommandDetails'\n duration:\n type: number\n format: float\n finishedat:\n type: string\n example: 'yyyy-MM-dd HH:mm:ss.SSSSSS'\n startedat:\n type: string\n example: 'yyyy-MM-dd HH:mm:ss.SSSSSS'\n status:\n type: string\n title: CommandStatus\n ProcessHandle:\n type: object\n properties:\n alive:\n type: boolean\n title: ProcessHandle\n ProcessInfo:\n type: object\n properties:\n arguments:\n type: array\n items:\n type: string\n children:\n type: array\n items:\n $ref: '#/definitions/ProcessHandle'\n name:\n type: string\n parent:\n type: integer\n format: int64\n pid:\n type: integer\n format: int64\n status:\n type: string\n username:\n type: string\n title: ProcessInfo\n"
ip=input().split() key=input() n='' for i in ip: for j in i: if j in key: n+=j l=list(key) s=[[]] for i in range(len(l)+1): for j in range(i+1,len(l)+1): s.append(l[i:j]) print(s)
ip = input().split() key = input() n = '' for i in ip: for j in i: if j in key: n += j l = list(key) s = [[]] for i in range(len(l) + 1): for j in range(i + 1, len(l) + 1): s.append(l[i:j]) print(s)
for i in range(1, 10+1): if i%3==0: print(i)
for i in range(1, 10 + 1): if i % 3 == 0: print(i)
N = int(input()) m = 1000000007 dp = [0] * 10 dp[0] = 1 for _ in range(N): for i in range(8, -1, -1): for j in range(i + 1, 10): dp[j] += dp[i] dp[j] %= m print(sum(dp) % m)
n = int(input()) m = 1000000007 dp = [0] * 10 dp[0] = 1 for _ in range(N): for i in range(8, -1, -1): for j in range(i + 1, 10): dp[j] += dp[i] dp[j] %= m print(sum(dp) % m)
# # PySNMP MIB module HH3C-DLDP2-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HH3C-DLDP2-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:26:06 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, SingleValueConstraint, ValueRangeConstraint, ConstraintsUnion, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsUnion", "ValueSizeConstraint") hh3cCommon, = mibBuilder.importSymbols("HH3C-OID-MIB", "hh3cCommon") ifIndex, ifDescr = mibBuilder.importSymbols("IF-MIB", "ifIndex", "ifDescr") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") Unsigned32, IpAddress, ObjectIdentity, Bits, ModuleIdentity, Counter32, Integer32, Gauge32, MibIdentifier, NotificationType, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter64, iso, TimeTicks = mibBuilder.importSymbols("SNMPv2-SMI", "Unsigned32", "IpAddress", "ObjectIdentity", "Bits", "ModuleIdentity", "Counter32", "Integer32", "Gauge32", "MibIdentifier", "NotificationType", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter64", "iso", "TimeTicks") TruthValue, DisplayString, MacAddress, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "TruthValue", "DisplayString", "MacAddress", "TextualConvention") hh3cDldp2 = ModuleIdentity((1, 3, 6, 1, 4, 1, 25506, 2, 117)) hh3cDldp2.setRevisions(('2011-12-26 15:30',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: hh3cDldp2.setRevisionsDescriptions(('Initial version of this MIB module.',)) if mibBuilder.loadTexts: hh3cDldp2.setLastUpdated('201112261530Z') if mibBuilder.loadTexts: hh3cDldp2.setOrganization('Hangzhou H3C Technologies. Co., Ltd.') if mibBuilder.loadTexts: hh3cDldp2.setContactInfo('Platform Team Hangzhou H3C Technologies. Co., Ltd. Hai-Dian District Beijing P.R. China http://www.h3c.com Zip: 100085') if mibBuilder.loadTexts: hh3cDldp2.setDescription('Device Link Detection Protocol (DLDP) MIB. Device Link Detection Protocol is a private Layer 2 protocol, which can be used to detect and shut down unidirectional links (fiber or copper links) to avoid network problems.') hh3cDldp2ScalarGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 25506, 2, 117, 1)) hh3cDldp2GlobalEnable = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 117, 1, 1), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cDldp2GlobalEnable.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2GlobalEnable.setDescription('Enable(true) or disable(false) DLDP on the device.') hh3cDldp2Interval = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 117, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 100)).clone(5)).setUnits('second').setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cDldp2Interval.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2Interval.setDescription('Indicates the advertisement packet sending interval.') hh3cDldp2AuthMode = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 117, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("unknown", 1), ("none", 2), ("simple", 3), ("md5", 4))).clone('none')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cDldp2AuthMode.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2AuthMode.setDescription('Indicates the authentication mode. unknown: cannot be determined for some reason. none: not authenticated. simple: authenticated by a clear text password. md5: authenticated by MD5 digest.') hh3cDldp2AuthPassword = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 117, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cDldp2AuthPassword.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2AuthPassword.setDescription('Indicates the authentication password. Setting the password to a zero-length octet string means deleting the password. When read, it always returns a zero-length octet string.') hh3cDldp2UniShutdown = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 117, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("unknown", 1), ("auto", 2), ("manual", 3))).clone('auto')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cDldp2UniShutdown.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2UniShutdown.setDescription('Indicates the shutdown mode when a unidirectional link has been detected. unknown: cannot be determined for some reason. auto: the port will be shutdown automatically. manual: the port must be shut down manually.') hh3cDldp2TableGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 25506, 2, 117, 2)) hh3cDldp2PortConfigTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 117, 2, 1), ) if mibBuilder.loadTexts: hh3cDldp2PortConfigTable.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2PortConfigTable.setDescription('This table contains all ports that support DLDP.') hh3cDldp2PortConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 117, 2, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hh3cDldp2PortConfigEntry.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2PortConfigEntry.setDescription('This entry describes a port that supports DLDP.') hh3cDldp2PortEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 117, 2, 1, 1, 1), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cDldp2PortEnable.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2PortEnable.setDescription('Enable(true) or disable(false) DLDP on a port.') hh3cDldp2PortStatusTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 117, 2, 2), ) if mibBuilder.loadTexts: hh3cDldp2PortStatusTable.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2PortStatusTable.setDescription('This table contains all ports enabled with DLDP.') hh3cDldp2PortStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 117, 2, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hh3cDldp2PortStatusEntry.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2PortStatusEntry.setDescription('This entry describes a port enabled with DLDP.') hh3cDldp2PortOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 117, 2, 2, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("unknown", 1), ("initial", 2), ("inactive", 3), ("unidirectional", 4), ("bidirectional", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cDldp2PortOperStatus.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2PortOperStatus.setDescription("Indicates the DLDP operating status on the port. unknown: cannot be determined for some reason. initial: DLDP is not globally enabled. inactive: physical status of the port is down. unidirectional: all neighbors of the port are in 'unconfirmed' status. bidirectional: more than one neighbor of the port is in 'confirmed' status.") hh3cDldp2PortLinkStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 117, 2, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("unknown", 1), ("down", 2), ("up", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cDldp2PortLinkStatus.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2PortLinkStatus.setDescription("Indicates the DLDP link status of the port. unknown: cannot be determined for some reason. down: the DLDP link status of the port is down. up: the DLDP link status of the port is up. If the port operating status is not 'inactive', 'unidirectional', or 'bidirectional', it always returns 'unknown'.") hh3cDldp2NeighborTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 117, 2, 3), ) if mibBuilder.loadTexts: hh3cDldp2NeighborTable.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2NeighborTable.setDescription("This table contains all port's neighbors.") hh3cDldp2NeighborEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 117, 2, 3, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "HH3C-DLDP2-MIB", "hh3cDldp2NeighborBridgeMac"), (0, "HH3C-DLDP2-MIB", "hh3cDldp2NeighborPortIndex")) if mibBuilder.loadTexts: hh3cDldp2NeighborEntry.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2NeighborEntry.setDescription("This entry describes a port's neighbors.") hh3cDldp2NeighborBridgeMac = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 117, 2, 3, 1, 1), MacAddress()) if mibBuilder.loadTexts: hh3cDldp2NeighborBridgeMac.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2NeighborBridgeMac.setDescription('Indicates the bridge MAC address of a neighbor.') hh3cDldp2NeighborPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 117, 2, 3, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))) if mibBuilder.loadTexts: hh3cDldp2NeighborPortIndex.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2NeighborPortIndex.setDescription('Indicates the port index of a neighbor.') hh3cDldp2NeighborStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 117, 2, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("unknown", 1), ("unconfirmed", 2), ("confirmed", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cDldp2NeighborStatus.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2NeighborStatus.setDescription('Indicates the status of a neighbor. unknown: cannot be determined for some reason. unconfirmed: unidirectional communication between the port and its neighbor. confirmed: bidirectional communication between the port and its neighbor.') hh3cDldp2NeighborAgingTime = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 117, 2, 3, 1, 4), Integer32()).setUnits('second').setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cDldp2NeighborAgingTime.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2NeighborAgingTime.setDescription("Indicates the aging time of a neighbor. If the neighbor status is not 'confirmed', it always returns 0.") hh3cDldp2TrapBindObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 25506, 2, 117, 3)) hh3cDldp2Trap = MibIdentifier((1, 3, 6, 1, 4, 1, 25506, 2, 117, 4)) hh3cDldp2TrapPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 25506, 2, 117, 4, 0)) hh3cDldp2TrapUniLink = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 117, 4, 0, 1)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr")) if mibBuilder.loadTexts: hh3cDldp2TrapUniLink.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2TrapUniLink.setDescription('This trap is generated when DLDP detects a unidirectional link, ifIndex and ifDescr identify the port.') hh3cDldp2TrapBidLink = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 117, 4, 0, 2)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr")) if mibBuilder.loadTexts: hh3cDldp2TrapBidLink.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2TrapBidLink.setDescription('This trap is generated when DLDP detects a bidirectional link, ifIndex and ifDescr identify the port.') mibBuilder.exportSymbols("HH3C-DLDP2-MIB", hh3cDldp2PortOperStatus=hh3cDldp2PortOperStatus, hh3cDldp2UniShutdown=hh3cDldp2UniShutdown, hh3cDldp2NeighborStatus=hh3cDldp2NeighborStatus, hh3cDldp2TrapBidLink=hh3cDldp2TrapBidLink, hh3cDldp2PortConfigTable=hh3cDldp2PortConfigTable, hh3cDldp2TrapPrefix=hh3cDldp2TrapPrefix, hh3cDldp2PortEnable=hh3cDldp2PortEnable, hh3cDldp2GlobalEnable=hh3cDldp2GlobalEnable, hh3cDldp2NeighborAgingTime=hh3cDldp2NeighborAgingTime, hh3cDldp2PortStatusEntry=hh3cDldp2PortStatusEntry, PYSNMP_MODULE_ID=hh3cDldp2, hh3cDldp2NeighborEntry=hh3cDldp2NeighborEntry, hh3cDldp2=hh3cDldp2, hh3cDldp2PortConfigEntry=hh3cDldp2PortConfigEntry, hh3cDldp2NeighborTable=hh3cDldp2NeighborTable, hh3cDldp2NeighborPortIndex=hh3cDldp2NeighborPortIndex, hh3cDldp2Trap=hh3cDldp2Trap, hh3cDldp2PortLinkStatus=hh3cDldp2PortLinkStatus, hh3cDldp2NeighborBridgeMac=hh3cDldp2NeighborBridgeMac, hh3cDldp2TrapBindObjects=hh3cDldp2TrapBindObjects, hh3cDldp2AuthMode=hh3cDldp2AuthMode, hh3cDldp2PortStatusTable=hh3cDldp2PortStatusTable, hh3cDldp2ScalarGroup=hh3cDldp2ScalarGroup, hh3cDldp2AuthPassword=hh3cDldp2AuthPassword, hh3cDldp2Interval=hh3cDldp2Interval, hh3cDldp2TableGroup=hh3cDldp2TableGroup, hh3cDldp2TrapUniLink=hh3cDldp2TrapUniLink)
(octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_intersection, single_value_constraint, value_range_constraint, constraints_union, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'SingleValueConstraint', 'ValueRangeConstraint', 'ConstraintsUnion', 'ValueSizeConstraint') (hh3c_common,) = mibBuilder.importSymbols('HH3C-OID-MIB', 'hh3cCommon') (if_index, if_descr) = mibBuilder.importSymbols('IF-MIB', 'ifIndex', 'ifDescr') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (unsigned32, ip_address, object_identity, bits, module_identity, counter32, integer32, gauge32, mib_identifier, notification_type, mib_scalar, mib_table, mib_table_row, mib_table_column, counter64, iso, time_ticks) = mibBuilder.importSymbols('SNMPv2-SMI', 'Unsigned32', 'IpAddress', 'ObjectIdentity', 'Bits', 'ModuleIdentity', 'Counter32', 'Integer32', 'Gauge32', 'MibIdentifier', 'NotificationType', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter64', 'iso', 'TimeTicks') (truth_value, display_string, mac_address, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'TruthValue', 'DisplayString', 'MacAddress', 'TextualConvention') hh3c_dldp2 = module_identity((1, 3, 6, 1, 4, 1, 25506, 2, 117)) hh3cDldp2.setRevisions(('2011-12-26 15:30',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: hh3cDldp2.setRevisionsDescriptions(('Initial version of this MIB module.',)) if mibBuilder.loadTexts: hh3cDldp2.setLastUpdated('201112261530Z') if mibBuilder.loadTexts: hh3cDldp2.setOrganization('Hangzhou H3C Technologies. Co., Ltd.') if mibBuilder.loadTexts: hh3cDldp2.setContactInfo('Platform Team Hangzhou H3C Technologies. Co., Ltd. Hai-Dian District Beijing P.R. China http://www.h3c.com Zip: 100085') if mibBuilder.loadTexts: hh3cDldp2.setDescription('Device Link Detection Protocol (DLDP) MIB. Device Link Detection Protocol is a private Layer 2 protocol, which can be used to detect and shut down unidirectional links (fiber or copper links) to avoid network problems.') hh3c_dldp2_scalar_group = mib_identifier((1, 3, 6, 1, 4, 1, 25506, 2, 117, 1)) hh3c_dldp2_global_enable = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 117, 1, 1), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cDldp2GlobalEnable.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2GlobalEnable.setDescription('Enable(true) or disable(false) DLDP on the device.') hh3c_dldp2_interval = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 117, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 100)).clone(5)).setUnits('second').setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cDldp2Interval.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2Interval.setDescription('Indicates the advertisement packet sending interval.') hh3c_dldp2_auth_mode = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 117, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('unknown', 1), ('none', 2), ('simple', 3), ('md5', 4))).clone('none')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cDldp2AuthMode.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2AuthMode.setDescription('Indicates the authentication mode. unknown: cannot be determined for some reason. none: not authenticated. simple: authenticated by a clear text password. md5: authenticated by MD5 digest.') hh3c_dldp2_auth_password = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 117, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cDldp2AuthPassword.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2AuthPassword.setDescription('Indicates the authentication password. Setting the password to a zero-length octet string means deleting the password. When read, it always returns a zero-length octet string.') hh3c_dldp2_uni_shutdown = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 117, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('unknown', 1), ('auto', 2), ('manual', 3))).clone('auto')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cDldp2UniShutdown.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2UniShutdown.setDescription('Indicates the shutdown mode when a unidirectional link has been detected. unknown: cannot be determined for some reason. auto: the port will be shutdown automatically. manual: the port must be shut down manually.') hh3c_dldp2_table_group = mib_identifier((1, 3, 6, 1, 4, 1, 25506, 2, 117, 2)) hh3c_dldp2_port_config_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 117, 2, 1)) if mibBuilder.loadTexts: hh3cDldp2PortConfigTable.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2PortConfigTable.setDescription('This table contains all ports that support DLDP.') hh3c_dldp2_port_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 117, 2, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hh3cDldp2PortConfigEntry.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2PortConfigEntry.setDescription('This entry describes a port that supports DLDP.') hh3c_dldp2_port_enable = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 117, 2, 1, 1, 1), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cDldp2PortEnable.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2PortEnable.setDescription('Enable(true) or disable(false) DLDP on a port.') hh3c_dldp2_port_status_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 117, 2, 2)) if mibBuilder.loadTexts: hh3cDldp2PortStatusTable.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2PortStatusTable.setDescription('This table contains all ports enabled with DLDP.') hh3c_dldp2_port_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 117, 2, 2, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hh3cDldp2PortStatusEntry.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2PortStatusEntry.setDescription('This entry describes a port enabled with DLDP.') hh3c_dldp2_port_oper_status = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 117, 2, 2, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('unknown', 1), ('initial', 2), ('inactive', 3), ('unidirectional', 4), ('bidirectional', 5)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cDldp2PortOperStatus.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2PortOperStatus.setDescription("Indicates the DLDP operating status on the port. unknown: cannot be determined for some reason. initial: DLDP is not globally enabled. inactive: physical status of the port is down. unidirectional: all neighbors of the port are in 'unconfirmed' status. bidirectional: more than one neighbor of the port is in 'confirmed' status.") hh3c_dldp2_port_link_status = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 117, 2, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('unknown', 1), ('down', 2), ('up', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cDldp2PortLinkStatus.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2PortLinkStatus.setDescription("Indicates the DLDP link status of the port. unknown: cannot be determined for some reason. down: the DLDP link status of the port is down. up: the DLDP link status of the port is up. If the port operating status is not 'inactive', 'unidirectional', or 'bidirectional', it always returns 'unknown'.") hh3c_dldp2_neighbor_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 117, 2, 3)) if mibBuilder.loadTexts: hh3cDldp2NeighborTable.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2NeighborTable.setDescription("This table contains all port's neighbors.") hh3c_dldp2_neighbor_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 117, 2, 3, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'HH3C-DLDP2-MIB', 'hh3cDldp2NeighborBridgeMac'), (0, 'HH3C-DLDP2-MIB', 'hh3cDldp2NeighborPortIndex')) if mibBuilder.loadTexts: hh3cDldp2NeighborEntry.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2NeighborEntry.setDescription("This entry describes a port's neighbors.") hh3c_dldp2_neighbor_bridge_mac = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 117, 2, 3, 1, 1), mac_address()) if mibBuilder.loadTexts: hh3cDldp2NeighborBridgeMac.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2NeighborBridgeMac.setDescription('Indicates the bridge MAC address of a neighbor.') hh3c_dldp2_neighbor_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 117, 2, 3, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))) if mibBuilder.loadTexts: hh3cDldp2NeighborPortIndex.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2NeighborPortIndex.setDescription('Indicates the port index of a neighbor.') hh3c_dldp2_neighbor_status = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 117, 2, 3, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('unknown', 1), ('unconfirmed', 2), ('confirmed', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cDldp2NeighborStatus.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2NeighborStatus.setDescription('Indicates the status of a neighbor. unknown: cannot be determined for some reason. unconfirmed: unidirectional communication between the port and its neighbor. confirmed: bidirectional communication between the port and its neighbor.') hh3c_dldp2_neighbor_aging_time = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 117, 2, 3, 1, 4), integer32()).setUnits('second').setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cDldp2NeighborAgingTime.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2NeighborAgingTime.setDescription("Indicates the aging time of a neighbor. If the neighbor status is not 'confirmed', it always returns 0.") hh3c_dldp2_trap_bind_objects = mib_identifier((1, 3, 6, 1, 4, 1, 25506, 2, 117, 3)) hh3c_dldp2_trap = mib_identifier((1, 3, 6, 1, 4, 1, 25506, 2, 117, 4)) hh3c_dldp2_trap_prefix = mib_identifier((1, 3, 6, 1, 4, 1, 25506, 2, 117, 4, 0)) hh3c_dldp2_trap_uni_link = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 117, 4, 0, 1)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr')) if mibBuilder.loadTexts: hh3cDldp2TrapUniLink.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2TrapUniLink.setDescription('This trap is generated when DLDP detects a unidirectional link, ifIndex and ifDescr identify the port.') hh3c_dldp2_trap_bid_link = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 117, 4, 0, 2)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr')) if mibBuilder.loadTexts: hh3cDldp2TrapBidLink.setStatus('current') if mibBuilder.loadTexts: hh3cDldp2TrapBidLink.setDescription('This trap is generated when DLDP detects a bidirectional link, ifIndex and ifDescr identify the port.') mibBuilder.exportSymbols('HH3C-DLDP2-MIB', hh3cDldp2PortOperStatus=hh3cDldp2PortOperStatus, hh3cDldp2UniShutdown=hh3cDldp2UniShutdown, hh3cDldp2NeighborStatus=hh3cDldp2NeighborStatus, hh3cDldp2TrapBidLink=hh3cDldp2TrapBidLink, hh3cDldp2PortConfigTable=hh3cDldp2PortConfigTable, hh3cDldp2TrapPrefix=hh3cDldp2TrapPrefix, hh3cDldp2PortEnable=hh3cDldp2PortEnable, hh3cDldp2GlobalEnable=hh3cDldp2GlobalEnable, hh3cDldp2NeighborAgingTime=hh3cDldp2NeighborAgingTime, hh3cDldp2PortStatusEntry=hh3cDldp2PortStatusEntry, PYSNMP_MODULE_ID=hh3cDldp2, hh3cDldp2NeighborEntry=hh3cDldp2NeighborEntry, hh3cDldp2=hh3cDldp2, hh3cDldp2PortConfigEntry=hh3cDldp2PortConfigEntry, hh3cDldp2NeighborTable=hh3cDldp2NeighborTable, hh3cDldp2NeighborPortIndex=hh3cDldp2NeighborPortIndex, hh3cDldp2Trap=hh3cDldp2Trap, hh3cDldp2PortLinkStatus=hh3cDldp2PortLinkStatus, hh3cDldp2NeighborBridgeMac=hh3cDldp2NeighborBridgeMac, hh3cDldp2TrapBindObjects=hh3cDldp2TrapBindObjects, hh3cDldp2AuthMode=hh3cDldp2AuthMode, hh3cDldp2PortStatusTable=hh3cDldp2PortStatusTable, hh3cDldp2ScalarGroup=hh3cDldp2ScalarGroup, hh3cDldp2AuthPassword=hh3cDldp2AuthPassword, hh3cDldp2Interval=hh3cDldp2Interval, hh3cDldp2TableGroup=hh3cDldp2TableGroup, hh3cDldp2TrapUniLink=hh3cDldp2TrapUniLink)
# # PySNMP MIB module KEEPALIVED-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/KEEPALIVED-MIB # Produced by pysmi-0.3.4 at Wed May 1 14:04:49 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, ValueRangeConstraint, ConstraintsIntersection, SingleValueConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsIntersection", "SingleValueConstraint", "ConstraintsUnion") ifIndex, InterfaceIndex = mibBuilder.importSymbols("IF-MIB", "ifIndex", "InterfaceIndex") InetPortNumber, InetAddressPrefixLength, InetAddress, InetAddressType, InetScopeType = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetPortNumber", "InetAddressPrefixLength", "InetAddress", "InetAddressType", "InetScopeType") ObjectGroup, ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "ModuleCompliance", "NotificationGroup") ModuleIdentity, IpAddress, Gauge32, Counter64, ObjectIdentity, enterprises, NotificationType, iso, Integer32, Counter32, MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, MibIdentifier, Unsigned32, Bits = mibBuilder.importSymbols("SNMPv2-SMI", "ModuleIdentity", "IpAddress", "Gauge32", "Counter64", "ObjectIdentity", "enterprises", "NotificationType", "iso", "Integer32", "Counter32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks", "MibIdentifier", "Unsigned32", "Bits") TextualConvention, DisplayString, TruthValue = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString", "TruthValue") keepalived = ModuleIdentity((1, 3, 6, 1, 4, 1, 9586, 100, 5)) keepalived.setRevisions(('2009-04-08 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: keepalived.setRevisionsDescriptions(('Initial revision',)) if mibBuilder.loadTexts: keepalived.setLastUpdated('200904080000Z') if mibBuilder.loadTexts: keepalived.setOrganization('Keepalived') if mibBuilder.loadTexts: keepalived.setContactInfo('http://www.keepalived.org') if mibBuilder.loadTexts: keepalived.setDescription('This MIB describes objects used by keepalived, both for VRRP and health checker.') debian = MibIdentifier((1, 3, 6, 1, 4, 1, 9586)) project = MibIdentifier((1, 3, 6, 1, 4, 1, 9586, 100)) class VrrpState(TextualConvention, Integer32): description = 'Represents a VRRP state.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4)) namedValues = NamedValues(("init", 0), ("backup", 1), ("master", 2), ("fault", 3), ("unknown", 4)) pysmi_global = MibIdentifier((1, 3, 6, 1, 4, 1, 9586, 100, 5, 1)).setLabel("global") vrrp = MibIdentifier((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2)) check = MibIdentifier((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3)) conformance = MibIdentifier((1, 3, 6, 1, 4, 1, 9586, 100, 5, 4)) version = MibScalar((1, 3, 6, 1, 4, 1, 9586, 100, 5, 1, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: version.setStatus('current') if mibBuilder.loadTexts: version.setDescription('Version of keepalived') routerId = MibScalar((1, 3, 6, 1, 4, 1, 9586, 100, 5, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: routerId.setStatus('current') if mibBuilder.loadTexts: routerId.setDescription('Router ID') mail = MibIdentifier((1, 3, 6, 1, 4, 1, 9586, 100, 5, 1, 3)) smtpServerAddressType = MibScalar((1, 3, 6, 1, 4, 1, 9586, 100, 5, 1, 3, 1), InetAddressType()).setMaxAccess("readonly") if mibBuilder.loadTexts: smtpServerAddressType.setStatus('current') if mibBuilder.loadTexts: smtpServerAddressType.setDescription('Address type for SMTP server.') smtpServerAddress = MibScalar((1, 3, 6, 1, 4, 1, 9586, 100, 5, 1, 3, 2), InetAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: smtpServerAddress.setStatus('current') if mibBuilder.loadTexts: smtpServerAddress.setDescription('Address of SMTP server.') smtpServerTimeout = MibScalar((1, 3, 6, 1, 4, 1, 9586, 100, 5, 1, 3, 3), Unsigned32()).setUnits('seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: smtpServerTimeout.setStatus('current') if mibBuilder.loadTexts: smtpServerTimeout.setDescription('SMTP server connection timeout.') emailFrom = MibScalar((1, 3, 6, 1, 4, 1, 9586, 100, 5, 1, 3, 4), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: emailFrom.setStatus('current') if mibBuilder.loadTexts: emailFrom.setDescription('Email address for the From field.') emailTable = MibTable((1, 3, 6, 1, 4, 1, 9586, 100, 5, 1, 3, 5), ) if mibBuilder.loadTexts: emailTable.setStatus('current') if mibBuilder.loadTexts: emailTable.setDescription('Table of email notification addresses.') emailEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9586, 100, 5, 1, 3, 5, 1), ).setIndexNames((0, "KEEPALIVED-MIB", "emailIndex")) if mibBuilder.loadTexts: emailEntry.setStatus('current') if mibBuilder.loadTexts: emailEntry.setDescription('Email address to be notified with an alert.') emailIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 1, 3, 5, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))) if mibBuilder.loadTexts: emailIndex.setStatus('current') if mibBuilder.loadTexts: emailIndex.setDescription('Index for the email address.') emailAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 1, 3, 5, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: emailAddress.setStatus('current') if mibBuilder.loadTexts: emailAddress.setDescription('Email address to be notified when an alert is raised.') trapEnable = MibScalar((1, 3, 6, 1, 4, 1, 9586, 100, 5, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: trapEnable.setStatus('current') if mibBuilder.loadTexts: trapEnable.setDescription('Indicate whether traps should be sent for various events.') linkBeat = MibScalar((1, 3, 6, 1, 4, 1, 9586, 100, 5, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("netlink", 1), ("polling", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: linkBeat.setStatus('current') if mibBuilder.loadTexts: linkBeat.setDescription('Indicate which method is used to check if a link is up or down. netlink(1) means that the kernel will push a link state change while polling(2) means that the status of the link is checked periodically.') vrrpSyncGroupTable = MibTable((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 1), ) if mibBuilder.loadTexts: vrrpSyncGroupTable.setStatus('current') if mibBuilder.loadTexts: vrrpSyncGroupTable.setDescription('Table of sync groups') vrrpSyncGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 1, 1), ).setIndexNames((0, "KEEPALIVED-MIB", "vrrpSyncGroupIndex")) if mibBuilder.loadTexts: vrrpSyncGroupEntry.setStatus('current') if mibBuilder.loadTexts: vrrpSyncGroupEntry.setDescription('Information describing a sync group') vrrpSyncGroupIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))) if mibBuilder.loadTexts: vrrpSyncGroupIndex.setStatus('current') if mibBuilder.loadTexts: vrrpSyncGroupIndex.setDescription('Index of the synchronisation group.') vrrpSyncGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpSyncGroupName.setStatus('current') if mibBuilder.loadTexts: vrrpSyncGroupName.setDescription('Name of the synchronisation group.') vrrpSyncGroupState = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 1, 1, 3), VrrpState()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpSyncGroupState.setStatus('current') if mibBuilder.loadTexts: vrrpSyncGroupState.setDescription('Current state of the synchronisation group.') vrrpSyncGroupSmtpAlert = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpSyncGroupSmtpAlert.setStatus('current') if mibBuilder.loadTexts: vrrpSyncGroupSmtpAlert.setDescription('Will SMTP alert be sent for this synchronisation group?') vrrpSyncGroupNotifyExec = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpSyncGroupNotifyExec.setStatus('current') if mibBuilder.loadTexts: vrrpSyncGroupNotifyExec.setDescription('Will we execute notification script for this group?') vrrpSyncGroupScriptMaster = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 1, 1, 6), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpSyncGroupScriptMaster.setStatus('current') if mibBuilder.loadTexts: vrrpSyncGroupScriptMaster.setDescription('Script to execute when the group becomes master.') vrrpSyncGroupScriptBackup = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 1, 1, 7), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpSyncGroupScriptBackup.setStatus('current') if mibBuilder.loadTexts: vrrpSyncGroupScriptBackup.setDescription('Script to execute when the group becomes backup.') vrrpSyncGroupScriptFault = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 1, 1, 8), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpSyncGroupScriptFault.setStatus('current') if mibBuilder.loadTexts: vrrpSyncGroupScriptFault.setDescription('Script to execute when the group is in fault state.') vrrpSyncGroupScript = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 1, 1, 9), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpSyncGroupScript.setStatus('current') if mibBuilder.loadTexts: vrrpSyncGroupScript.setDescription('Script to execute whenever a state change occurs.') vrrpSyncGroupMemberTable = MibTable((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 2), ) if mibBuilder.loadTexts: vrrpSyncGroupMemberTable.setStatus('current') if mibBuilder.loadTexts: vrrpSyncGroupMemberTable.setDescription('Table of instances contained in sync groups') vrrpSyncGroupMemberEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 2, 1), ).setIndexNames((0, "KEEPALIVED-MIB", "vrrpSyncGroupIndex"), (0, "KEEPALIVED-MIB", "vrrpSyncGroupMemberInstanceIndex")) if mibBuilder.loadTexts: vrrpSyncGroupMemberEntry.setStatus('current') if mibBuilder.loadTexts: vrrpSyncGroupMemberEntry.setDescription('Information describing a member of a sync group') vrrpSyncGroupMemberInstanceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))) if mibBuilder.loadTexts: vrrpSyncGroupMemberInstanceIndex.setStatus('current') if mibBuilder.loadTexts: vrrpSyncGroupMemberInstanceIndex.setDescription('Index of an instance in a synchronisation group. There is no relation with this index and the index of the corresponding instance in vrrpInstanceTable. Use the name to find out the corresponding instance.') vrrpSyncGroupMemberName = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 2, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpSyncGroupMemberName.setStatus('current') if mibBuilder.loadTexts: vrrpSyncGroupMemberName.setDescription('Name of the instance contained in the synchronisation group.') vrrpInstanceTable = MibTable((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3), ) if mibBuilder.loadTexts: vrrpInstanceTable.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceTable.setDescription('Table of VRRP instances') vrrpInstanceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1), ).setIndexNames((0, "KEEPALIVED-MIB", "vrrpInstanceIndex")) if mibBuilder.loadTexts: vrrpInstanceEntry.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceEntry.setDescription('Information describing a sync group') vrrpInstanceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0))).clone(namedValues=NamedValues(("static", 0)))) if mibBuilder.loadTexts: vrrpInstanceIndex.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceIndex.setDescription('Index of the VRRP instance. Instance 0 is for static IP and static routes.') vrrpInstanceName = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpInstanceName.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceName.setDescription('Name of the VRRP instance.') vrrpInstanceVirtualRouterId = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 3), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpInstanceVirtualRouterId.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceVirtualRouterId.setDescription('Virtual Router ID (VRID) for this VRRP instance.') vrrpInstanceState = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 4), VrrpState()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpInstanceState.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceState.setDescription('Current state of this VRRP instance.') vrrpInstanceInitialState = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 5), VrrpState()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpInstanceInitialState.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceInitialState.setDescription('Initial state of this VRRP instance.') vrrpInstanceWantedState = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 6), VrrpState()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpInstanceWantedState.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceWantedState.setDescription('State wanted by the operator for this VRRP instance.') vrrpInstanceBasePriority = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrrpInstanceBasePriority.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceBasePriority.setDescription('Base priority (as defined in the configuration file) for this VRRP instance. This value can be modified to force the virtual router instance to become backup or master. ') vrrpInstanceEffectivePriority = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpInstanceEffectivePriority.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceEffectivePriority.setDescription('Effective priority for this VRRP instance. Status of interfaces and script results are used to compute this value from the base priority.') vrrpInstanceVipsStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("allSet", 1), ("notAllSet", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpInstanceVipsStatus.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceVipsStatus.setDescription('Are all VIP of this VRRP instance enabled?') vrrpInstancePrimaryInterface = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 10), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpInstancePrimaryInterface.setStatus('current') if mibBuilder.loadTexts: vrrpInstancePrimaryInterface.setDescription('Primary interface of this VRRP instance.') vrrpInstanceTrackPrimaryIf = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("tracked", 1), ("notTracked", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpInstanceTrackPrimaryIf.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceTrackPrimaryIf.setDescription('Do we track the status of the primary interface?') vrrpInstanceAdvertisementsInt = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 12), Unsigned32()).setUnits('seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpInstanceAdvertisementsInt.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceAdvertisementsInt.setDescription('Delay in seconds between two VRRP advertisements.') vrrpInstancePreempt = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("preempt", 1), ("noPreempt", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrrpInstancePreempt.setStatus('current') if mibBuilder.loadTexts: vrrpInstancePreempt.setDescription('Will a higher priority advertisement preempt a lower instance?') vrrpInstancePreemptDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 14), Unsigned32()).setUnits('seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpInstancePreemptDelay.setStatus('current') if mibBuilder.loadTexts: vrrpInstancePreemptDelay.setDescription('Delay after startup until preemption can happen. 0 means that there is no delay.') vrrpInstanceAuthType = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("password", 1), ("ah", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpInstanceAuthType.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceAuthType.setDescription('Authentication method to authenticate other peers.') vrrpInstanceLvsSyncDaemon = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpInstanceLvsSyncDaemon.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceLvsSyncDaemon.setDescription('Is LVS sync daemon enabled for this VRRP instance?') vrrpInstanceLvsSyncInterface = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 17), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpInstanceLvsSyncInterface.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceLvsSyncInterface.setDescription('If LVS sync daemon is enabled, which interface to use for syncing?') vrrpInstanceSyncGroup = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 18), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpInstanceSyncGroup.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceSyncGroup.setDescription('Name of the synchronisation group this VRRP instance belongs, if any.') vrrpInstanceGarpDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 19), Unsigned32()).setUnits('seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpInstanceGarpDelay.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceGarpDelay.setDescription('Delay to launch gratuitous ARP (GARP).') vrrpInstanceSmtpAlert = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 20), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpInstanceSmtpAlert.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceSmtpAlert.setDescription('Will SMTP alert be sent for this VRRP instance?') vrrpInstanceNotifyExec = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 21), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpInstanceNotifyExec.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceNotifyExec.setDescription('Will we execute notification script for this instance?') vrrpInstanceScriptMaster = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 22), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpInstanceScriptMaster.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceScriptMaster.setDescription('Script to execute when the instance becomes master.') vrrpInstanceScriptBackup = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 23), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpInstanceScriptBackup.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceScriptBackup.setDescription('Script to execute when the instance becomes backup.') vrrpInstanceScriptFault = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 24), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpInstanceScriptFault.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceScriptFault.setDescription('Script to execute when the instance is in fault state.') vrrpInstanceScriptStop = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 25), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpInstanceScriptStop.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceScriptStop.setDescription('Script to execute when the instance is stopped.') vrrpInstanceScript = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 26), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpInstanceScript.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceScript.setDescription('Script to execute whenever a state change occurs.') vrrpTrackedInterfaceTable = MibTable((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 4), ) if mibBuilder.loadTexts: vrrpTrackedInterfaceTable.setStatus('current') if mibBuilder.loadTexts: vrrpTrackedInterfaceTable.setDescription('Table of tracked interfaces for each VRRP instance.') vrrpTrackedInterfaceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 4, 1), ).setIndexNames((0, "KEEPALIVED-MIB", "vrrpInstanceIndex"), (0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: vrrpTrackedInterfaceEntry.setStatus('current') if mibBuilder.loadTexts: vrrpTrackedInterfaceEntry.setDescription('Information describing a tracked interface') vrrpTrackedInterfaceName = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 4, 1, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpTrackedInterfaceName.setStatus('current') if mibBuilder.loadTexts: vrrpTrackedInterfaceName.setDescription('Name of the tracked interface.') vrrpTrackedInterfaceWeight = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 4, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpTrackedInterfaceWeight.setStatus('current') if mibBuilder.loadTexts: vrrpTrackedInterfaceWeight.setDescription('Weight of the tracked interface.') vrrpTrackedScriptTable = MibTable((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 5), ) if mibBuilder.loadTexts: vrrpTrackedScriptTable.setStatus('current') if mibBuilder.loadTexts: vrrpTrackedScriptTable.setDescription('Table of tracked interfaces for each VRRP instance.') vrrpTrackedScriptEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 5, 1), ).setIndexNames((0, "KEEPALIVED-MIB", "vrrpInstanceIndex"), (0, "KEEPALIVED-MIB", "vrrpTrackedScriptIndex")) if mibBuilder.loadTexts: vrrpTrackedScriptEntry.setStatus('current') if mibBuilder.loadTexts: vrrpTrackedScriptEntry.setDescription('Information describing a tracked script') vrrpTrackedScriptIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 5, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))) if mibBuilder.loadTexts: vrrpTrackedScriptIndex.setStatus('current') if mibBuilder.loadTexts: vrrpTrackedScriptIndex.setDescription('Index of the tracked script in the set of tracked scripts for the given VRRP instance. This index has no relation with the index of vrrpScriptTable.') vrrpTrackedScriptName = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 5, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpTrackedScriptName.setStatus('current') if mibBuilder.loadTexts: vrrpTrackedScriptName.setDescription('Name of the tracked interface.') vrrpTrackedScriptWeight = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 5, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpTrackedScriptWeight.setStatus('current') if mibBuilder.loadTexts: vrrpTrackedScriptWeight.setDescription('Weight of the tracked interface.') vrrpAddressTable = MibTable((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 6), ) if mibBuilder.loadTexts: vrrpAddressTable.setStatus('current') if mibBuilder.loadTexts: vrrpAddressTable.setDescription('Table of static and virtual addresses') vrrpAddressEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 6, 1), ).setIndexNames((0, "KEEPALIVED-MIB", "vrrpInstanceIndex"), (0, "KEEPALIVED-MIB", "vrrpAddressIndex")) if mibBuilder.loadTexts: vrrpAddressEntry.setStatus('current') if mibBuilder.loadTexts: vrrpAddressEntry.setDescription('Information describing an address. This can be a static address or a virtual address. In case of static address, the VRRP instance index is 0.') vrrpAddressIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 6, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))) if mibBuilder.loadTexts: vrrpAddressIndex.setStatus('current') if mibBuilder.loadTexts: vrrpAddressIndex.setDescription('Address index.') vrrpAddressType = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 6, 1, 2), InetAddressType()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpAddressType.setStatus('current') if mibBuilder.loadTexts: vrrpAddressType.setDescription('A value that represents a type of Internet address.') vrrpAddressValue = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 6, 1, 3), InetAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpAddressValue.setStatus('current') if mibBuilder.loadTexts: vrrpAddressValue.setDescription('Actual IP address.') vrrpAddressBroadcast = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 6, 1, 4), InetAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpAddressBroadcast.setStatus('current') if mibBuilder.loadTexts: vrrpAddressBroadcast.setDescription('Broadcast address associated with the IP address.') vrrpAddressMask = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 6, 1, 5), InetAddressPrefixLength()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpAddressMask.setStatus('current') if mibBuilder.loadTexts: vrrpAddressMask.setDescription('Address mask.') vrrpAddressScope = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 6, 1, 6), InetScopeType()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpAddressScope.setStatus('current') if mibBuilder.loadTexts: vrrpAddressScope.setDescription('Address scope.') vrrpAddressIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 6, 1, 7), InterfaceIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpAddressIfIndex.setStatus('current') if mibBuilder.loadTexts: vrrpAddressIfIndex.setDescription('Index of the interface to which the IP address is linked to.') vrrpAddressIfName = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 6, 1, 8), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpAddressIfName.setStatus('current') if mibBuilder.loadTexts: vrrpAddressIfName.setDescription('Name of the interface to which the IP address is linked to.') vrrpAddressIfAlias = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 6, 1, 9), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpAddressIfAlias.setStatus('current') if mibBuilder.loadTexts: vrrpAddressIfAlias.setDescription('Alias name of the interface.') vrrpAddressStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 6, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("set", 1), ("unset", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpAddressStatus.setStatus('current') if mibBuilder.loadTexts: vrrpAddressStatus.setDescription('Is the IP address set?') vrrpAddressAdvertising = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 6, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("advertised", 1), ("notAdvertised", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpAddressAdvertising.setStatus('current') if mibBuilder.loadTexts: vrrpAddressAdvertising.setDescription('Status of VRRP advertising for this IP address.') vrrpRouteTable = MibTable((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 7), ) if mibBuilder.loadTexts: vrrpRouteTable.setStatus('current') if mibBuilder.loadTexts: vrrpRouteTable.setDescription('Table of static and virtual routes.') vrrpRouteEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 7, 1), ).setIndexNames((0, "KEEPALIVED-MIB", "vrrpInstanceIndex"), (0, "KEEPALIVED-MIB", "vrrpRouteIndex")) if mibBuilder.loadTexts: vrrpRouteEntry.setStatus('current') if mibBuilder.loadTexts: vrrpRouteEntry.setDescription('Information describing a route. In case of a static route, the instance index is 0.') vrrpRouteIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 7, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))) if mibBuilder.loadTexts: vrrpRouteIndex.setStatus('current') if mibBuilder.loadTexts: vrrpRouteIndex.setDescription('Route index.') vrrpRouteAddressType = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 7, 1, 2), InetAddressType()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpRouteAddressType.setStatus('current') if mibBuilder.loadTexts: vrrpRouteAddressType.setDescription('Route type of internet address.') vrrpRouteDestination = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 7, 1, 3), InetAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpRouteDestination.setStatus('current') if mibBuilder.loadTexts: vrrpRouteDestination.setDescription('Route destination.') vrrpRouteDestinationMask = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 7, 1, 4), InetAddressPrefixLength()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpRouteDestinationMask.setStatus('current') if mibBuilder.loadTexts: vrrpRouteDestinationMask.setDescription('Route destination mask.') vrrpRouteGateway = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 7, 1, 5), InetAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpRouteGateway.setStatus('current') if mibBuilder.loadTexts: vrrpRouteGateway.setDescription('Gateway for the given destination.') vrrpRouteSecondaryGateway = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 7, 1, 6), InetAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpRouteSecondaryGateway.setStatus('current') if mibBuilder.loadTexts: vrrpRouteSecondaryGateway.setDescription('An optional second gateway for the given destination.') vrrpRouteSource = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 7, 1, 7), InetAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpRouteSource.setStatus('current') if mibBuilder.loadTexts: vrrpRouteSource.setDescription('Which source IP address to use with this route.') vrrpRouteMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 7, 1, 8), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpRouteMetric.setStatus('current') if mibBuilder.loadTexts: vrrpRouteMetric.setDescription('Metric of this route.') vrrpRouteScope = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 7, 1, 9), InetScopeType()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpRouteScope.setStatus('current') if mibBuilder.loadTexts: vrrpRouteScope.setDescription('Scope of this route.') vrrpRouteType = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 7, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("normal", 1), ("ecmp", 2), ("blackhole", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpRouteType.setStatus('current') if mibBuilder.loadTexts: vrrpRouteType.setDescription('Kind of route.') vrrpRouteIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 7, 1, 11), InterfaceIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpRouteIfIndex.setStatus('current') if mibBuilder.loadTexts: vrrpRouteIfIndex.setDescription('Interface attached to this route.') vrrpRouteIfName = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 7, 1, 12), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpRouteIfName.setStatus('current') if mibBuilder.loadTexts: vrrpRouteIfName.setDescription('Name of the interface of attached to this route.') vrrpRouteRoutingTable = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 7, 1, 13), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpRouteRoutingTable.setStatus('current') if mibBuilder.loadTexts: vrrpRouteRoutingTable.setDescription('Routing table where to route should be inserted.') vrrpRouteStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 7, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("set", 1), ("unset", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpRouteStatus.setStatus('current') if mibBuilder.loadTexts: vrrpRouteStatus.setDescription('Is this route set in the kernel?') vrrpScriptTable = MibTable((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 8), ) if mibBuilder.loadTexts: vrrpScriptTable.setStatus('current') if mibBuilder.loadTexts: vrrpScriptTable.setDescription('Table of VRRP scripts') vrrpScriptEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 8, 1), ).setIndexNames((0, "KEEPALIVED-MIB", "vrrpScriptIndex")) if mibBuilder.loadTexts: vrrpScriptEntry.setStatus('current') if mibBuilder.loadTexts: vrrpScriptEntry.setDescription('Information describing a VRRP script') vrrpScriptIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 8, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))) if mibBuilder.loadTexts: vrrpScriptIndex.setStatus('current') if mibBuilder.loadTexts: vrrpScriptIndex.setDescription('Script index.') vrrpScriptName = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 8, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpScriptName.setStatus('current') if mibBuilder.loadTexts: vrrpScriptName.setDescription('Symbolic name of the script.') vrrpScriptCommand = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 8, 1, 3), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpScriptCommand.setStatus('current') if mibBuilder.loadTexts: vrrpScriptCommand.setDescription('Command executed when running the script.') vrrpScriptInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 8, 1, 4), Integer32()).setUnits('seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpScriptInterval.setStatus('current') if mibBuilder.loadTexts: vrrpScriptInterval.setDescription('Interval between two runs of the script.') vrrpScriptWeight = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 8, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpScriptWeight.setStatus('current') if mibBuilder.loadTexts: vrrpScriptWeight.setDescription('Weight of the script if successful.') vrrpScriptResult = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 8, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4))).clone(namedValues=NamedValues(("disabled", 0), ("init", 1), ("bad", 2), ("good", 3), ("initgood", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpScriptResult.setStatus('current') if mibBuilder.loadTexts: vrrpScriptResult.setDescription('Current status of the script.') vrrpScriptRise = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 8, 1, 7), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpScriptRise.setStatus('current') if mibBuilder.loadTexts: vrrpScriptRise.setDescription('How many times the script should succeed before OK.') vrrpScriptFall = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 8, 1, 8), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrrpScriptFall.setStatus('current') if mibBuilder.loadTexts: vrrpScriptFall.setDescription('How many times the script should fail before KO.') vrrpTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 9)) vrrpTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 9, 0)) vrrpTrapControl = MibIdentifier((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 9, 1)) vrrpSyncGroupStateChange = NotificationType((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 9, 0, 1)).setObjects(("KEEPALIVED-MIB", "vrrpSyncGroupName"), ("KEEPALIVED-MIB", "vrrpSyncGroupState")) if mibBuilder.loadTexts: vrrpSyncGroupStateChange.setStatus('current') if mibBuilder.loadTexts: vrrpSyncGroupStateChange.setDescription('This trap signifies that the state of the whole vrrp sync group changed.') vrrpInstanceStateChange = NotificationType((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 9, 0, 2)).setObjects(("KEEPALIVED-MIB", "vrrpInstanceName"), ("KEEPALIVED-MIB", "vrrpInstanceState"), ("KEEPALIVED-MIB", "vrrpInstanceInitialState")) if mibBuilder.loadTexts: vrrpInstanceStateChange.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceStateChange.setDescription('This trap signifies that the state of a vrrp instance changed.') virtualServerGroupTable = MibTable((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 1), ) if mibBuilder.loadTexts: virtualServerGroupTable.setStatus('current') if mibBuilder.loadTexts: virtualServerGroupTable.setDescription('Table of virtual server groups.') virtualServerGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 1, 1), ).setIndexNames((0, "KEEPALIVED-MIB", "virtualServerGroupIndex")) if mibBuilder.loadTexts: virtualServerGroupEntry.setStatus('current') if mibBuilder.loadTexts: virtualServerGroupEntry.setDescription('Information describing a virtual server group.') virtualServerGroupIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))) if mibBuilder.loadTexts: virtualServerGroupIndex.setStatus('current') if mibBuilder.loadTexts: virtualServerGroupIndex.setDescription('Index of the virtual server group.') virtualServerGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerGroupName.setStatus('current') if mibBuilder.loadTexts: virtualServerGroupName.setDescription('Name of the virtual server group.') virtualServerGroupMemberTable = MibTable((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 2), ) if mibBuilder.loadTexts: virtualServerGroupMemberTable.setStatus('current') if mibBuilder.loadTexts: virtualServerGroupMemberTable.setDescription('Table of members of a virtual server group.') virtualServerGroupMemberEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 2, 1), ).setIndexNames((0, "KEEPALIVED-MIB", "virtualServerGroupIndex"), (0, "KEEPALIVED-MIB", "virtualServerGroupMemberIndex")) if mibBuilder.loadTexts: virtualServerGroupMemberEntry.setStatus('current') if mibBuilder.loadTexts: virtualServerGroupMemberEntry.setDescription('Description of a member of a virtual server group.') virtualServerGroupMemberIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))) if mibBuilder.loadTexts: virtualServerGroupMemberIndex.setStatus('current') if mibBuilder.loadTexts: virtualServerGroupMemberIndex.setDescription('Index of the member into virtual server group.') virtualServerGroupMemberType = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("fwmark", 1), ("ip", 2), ("iprange", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerGroupMemberType.setStatus('current') if mibBuilder.loadTexts: virtualServerGroupMemberType.setDescription('Kind of entry: firewall mark, address with port or range of addresses with port.') virtualServerGroupMemberFwMark = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 2, 1, 3), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerGroupMemberFwMark.setStatus('current') if mibBuilder.loadTexts: virtualServerGroupMemberFwMark.setDescription('Firewall mark for this member. If the kind of this member is not fwmark(1), then this entry should not exist for the current row.') virtualServerGroupMemberAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 2, 1, 4), InetAddressType()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerGroupMemberAddrType.setStatus('current') if mibBuilder.loadTexts: virtualServerGroupMemberAddrType.setDescription('Type of IP address for this member. If the kind of this member is neither address(2) or range(3), then this entry should not exist for the current row.') virtualServerGroupMemberAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 2, 1, 5), InetAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerGroupMemberAddress.setStatus('current') if mibBuilder.loadTexts: virtualServerGroupMemberAddress.setDescription('IP address of this member. If the kind of this member is not address(2), then this entry should not exist for the current row.') virtualServerGroupMemberAddr1 = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 2, 1, 6), InetAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerGroupMemberAddr1.setStatus('current') if mibBuilder.loadTexts: virtualServerGroupMemberAddr1.setDescription('First IP address of the range for this member. If the kind of this member is not range(3), then this entry should not exist for the current row.') virtualServerGroupMemberAddr2 = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 2, 1, 7), InetAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerGroupMemberAddr2.setStatus('current') if mibBuilder.loadTexts: virtualServerGroupMemberAddr2.setDescription('Second IP address of the range for this member. If the kind of this member is not range(3), then this entry should not exist for the current row.') virtualServerGroupMemberPort = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 2, 1, 8), InetPortNumber()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerGroupMemberPort.setStatus('current') if mibBuilder.loadTexts: virtualServerGroupMemberPort.setDescription('V port for this member. If the kind of this member is neither address(2) nor range(3), then this entry should not exist for the current row.') virtualServerTable = MibTable((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3), ) if mibBuilder.loadTexts: virtualServerTable.setStatus('current') if mibBuilder.loadTexts: virtualServerTable.setDescription('Table of virtual servers.') virtualServerEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1), ).setIndexNames((0, "KEEPALIVED-MIB", "virtualServerIndex")) if mibBuilder.loadTexts: virtualServerEntry.setStatus('current') if mibBuilder.loadTexts: virtualServerEntry.setDescription('Information describing a virtual server.') virtualServerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))) if mibBuilder.loadTexts: virtualServerIndex.setStatus('current') if mibBuilder.loadTexts: virtualServerIndex.setDescription('Index of the virtual server.') virtualServerType = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("fwmark", 1), ("ip", 2), ("group", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerType.setStatus('current') if mibBuilder.loadTexts: virtualServerType.setDescription('Type of virtual server. A virtual server can either be defined from a firewall mark, an IP and a port or from a virtual server group.') virtualServerNameOfGroup = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 3), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerNameOfGroup.setStatus('current') if mibBuilder.loadTexts: virtualServerNameOfGroup.setDescription('If the virtual is defined from a group, this is the name of the group.') virtualServerFwMark = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerFwMark.setStatus('current') if mibBuilder.loadTexts: virtualServerFwMark.setDescription('If the virtual server is defined from a firewall mark, this is the value of the mark. Otherwise, this column should not exist in the current row.') virtualServerAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 5), InetAddressType()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerAddrType.setStatus('current') if mibBuilder.loadTexts: virtualServerAddrType.setDescription('If the virtual server is defined from an IP, this is the address family. Otherwise, this column should not exist in the current row.') virtualServerAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 6), InetAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerAddress.setStatus('current') if mibBuilder.loadTexts: virtualServerAddress.setDescription('If the virtual server is defined from an IP address, this is the value of the IP. Otherwise, this column should not exist in the current row.') virtualServerPort = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 7), InetPortNumber()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerPort.setStatus('current') if mibBuilder.loadTexts: virtualServerPort.setDescription('If the virtual server is defined from an IP, this is the value of the port to listen for requests. Otherwise, this column should not exist in the current row.') virtualServerProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("tcp", 1), ("udp", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerProtocol.setStatus('current') if mibBuilder.loadTexts: virtualServerProtocol.setDescription('Which transport protocol should be used for this virtual server.') virtualServerLoadBalancingAlgo = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 99))).clone(namedValues=NamedValues(("rr", 1), ("wrr", 2), ("lc", 3), ("wlc", 4), ("lblc", 5), ("lblcr", 6), ("dh", 7), ("sh", 8), ("sed", 9), ("nq", 10), ("unknown", 99)))).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerLoadBalancingAlgo.setStatus('current') if mibBuilder.loadTexts: virtualServerLoadBalancingAlgo.setDescription('Which load balancing algorithm (or scheduler) should be used for this virtual server.') virtualServerLoadBalancingKind = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("nat", 1), ("dr", 2), ("tun", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerLoadBalancingKind.setStatus('current') if mibBuilder.loadTexts: virtualServerLoadBalancingKind.setDescription('Forwarding method to use for this virtual server.') virtualServerStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("alive", 1), ("dead", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerStatus.setStatus('current') if mibBuilder.loadTexts: virtualServerStatus.setDescription('Current status of this virtual server.') virtualServerVirtualHost = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 12), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerVirtualHost.setStatus('current') if mibBuilder.loadTexts: virtualServerVirtualHost.setDescription('Virtualhost of this server for HTTP like requests.') virtualServerPersist = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerPersist.setStatus('current') if mibBuilder.loadTexts: virtualServerPersist.setDescription('Is the virtual service persistence enabled?') virtualServerPersistTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 14), Unsigned32()).setUnits('seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerPersistTimeout.setStatus('current') if mibBuilder.loadTexts: virtualServerPersistTimeout.setDescription('If this virtual service is persistence, what is the timeout.') virtualServerPersistGranularity = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 15), InetAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerPersistGranularity.setStatus('current') if mibBuilder.loadTexts: virtualServerPersistGranularity.setDescription('Netmask specifying the granularity of the persistence mechanism.') virtualServerDelayLoop = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 16), Unsigned32()).setUnits('seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerDelayLoop.setStatus('current') if mibBuilder.loadTexts: virtualServerDelayLoop.setDescription('Delay in seconds between two checks.') virtualServerHaSuspend = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 17), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerHaSuspend.setStatus('current') if mibBuilder.loadTexts: virtualServerHaSuspend.setDescription('If set to true(1), checks will be suspended if the IP of the virtual server is currently not set.') virtualServerAlpha = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerAlpha.setStatus('current') if mibBuilder.loadTexts: virtualServerAlpha.setDescription('Is alpha mode enabled?') virtualServerOmega = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerOmega.setStatus('current') if mibBuilder.loadTexts: virtualServerOmega.setDescription('Is omega mode enabled?') virtualServerRealServersTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 20), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerRealServersTotal.setStatus('current') if mibBuilder.loadTexts: virtualServerRealServersTotal.setDescription('Total number of real servers for this virtual server.') virtualServerRealServersUp = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 21), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerRealServersUp.setStatus('current') if mibBuilder.loadTexts: virtualServerRealServersUp.setDescription('Real servers actually up for this virtual server.') virtualServerQuorum = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 22), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerQuorum.setStatus('current') if mibBuilder.loadTexts: virtualServerQuorum.setDescription('Quorum to get amond real servers to consider this virtual server up.') virtualServerQuorumStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 23), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("met", 1), ("notMet", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerQuorumStatus.setStatus('current') if mibBuilder.loadTexts: virtualServerQuorumStatus.setDescription('Current status of the quorum for this virtual server.') virtualServerQuorumUp = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 24), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerQuorumUp.setStatus('current') if mibBuilder.loadTexts: virtualServerQuorumUp.setDescription('Command to execute when the quorum is met.') virtualServerQuorumDown = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 25), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerQuorumDown.setStatus('current') if mibBuilder.loadTexts: virtualServerQuorumDown.setDescription('Command to execute when the quorum is not met.') virtualServerHysteresis = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 26), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerHysteresis.setStatus('current') if mibBuilder.loadTexts: virtualServerHysteresis.setDescription('Hysteresis with respect to quorum count.') virtualServerStatsConns = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 27), Gauge32()).setUnits('connections').setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerStatsConns.setStatus('current') if mibBuilder.loadTexts: virtualServerStatsConns.setDescription('Total number of connections scheduled for this virtual server.') virtualServerStatsInPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 28), Counter32()).setUnits('packets').setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerStatsInPkts.setStatus('current') if mibBuilder.loadTexts: virtualServerStatsInPkts.setDescription('Total number of incoming packets for this virtual server.') virtualServerStatsOutPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 29), Counter32()).setUnits('packets').setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerStatsOutPkts.setStatus('current') if mibBuilder.loadTexts: virtualServerStatsOutPkts.setDescription('Total number of outgoing packets for this virtual server.') virtualServerStatsInBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 30), Counter64()).setUnits('bytes').setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerStatsInBytes.setStatus('current') if mibBuilder.loadTexts: virtualServerStatsInBytes.setDescription('Total number of incoming bytes for this virtual server.') virtualServerStatsOutBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 31), Counter64()).setUnits('bytes').setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerStatsOutBytes.setStatus('current') if mibBuilder.loadTexts: virtualServerStatsOutBytes.setDescription('Total number of outgoing bytes for this virtual server.') virtualServerRateCps = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 32), Gauge32()).setUnits('connections/s').setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerRateCps.setStatus('current') if mibBuilder.loadTexts: virtualServerRateCps.setDescription('Current connection rate for this virtual server.') virtualServerRateInPPS = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 33), Gauge32()).setUnits('packets/s').setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerRateInPPS.setStatus('current') if mibBuilder.loadTexts: virtualServerRateInPPS.setDescription('Current in packet rate for this virtual server.') virtualServerRateOutPPS = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 34), Gauge32()).setUnits('packets/s').setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerRateOutPPS.setStatus('current') if mibBuilder.loadTexts: virtualServerRateOutPPS.setDescription('Current out packet rate for this virtual server.') virtualServerRateInBPS = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 35), Gauge32()).setUnits('bytes/s').setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerRateInBPS.setStatus('current') if mibBuilder.loadTexts: virtualServerRateInBPS.setDescription('Current incoming rate for this virtual server.') virtualServerRateOutBPS = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 36), Gauge32()).setUnits('bytes/s').setMaxAccess("readonly") if mibBuilder.loadTexts: virtualServerRateOutBPS.setStatus('current') if mibBuilder.loadTexts: virtualServerRateOutBPS.setDescription('Current outgoing rate for this virtual server.') realServerTable = MibTable((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4), ) if mibBuilder.loadTexts: realServerTable.setStatus('current') if mibBuilder.loadTexts: realServerTable.setDescription('Table of real servers. This includes regular real servers and sorry servers.') realServerEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1), ).setIndexNames((0, "KEEPALIVED-MIB", "virtualServerIndex"), (0, "KEEPALIVED-MIB", "realServerIndex")) if mibBuilder.loadTexts: realServerEntry.setStatus('current') if mibBuilder.loadTexts: realServerEntry.setDescription('Information describing a real server.') realServerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))) if mibBuilder.loadTexts: realServerIndex.setStatus('current') if mibBuilder.loadTexts: realServerIndex.setDescription('Index of the real server.') realServerType = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("regular", 1), ("sorry", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: realServerType.setStatus('current') if mibBuilder.loadTexts: realServerType.setDescription('Type of real server: either a regular real server or a sorry server.') realServerAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 3), InetAddressType()).setMaxAccess("readonly") if mibBuilder.loadTexts: realServerAddrType.setStatus('current') if mibBuilder.loadTexts: realServerAddrType.setDescription('Address family for this real server.') realServerAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 4), InetAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: realServerAddress.setStatus('current') if mibBuilder.loadTexts: realServerAddress.setDescription('IP address of this real server.') realServerPort = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 5), InetPortNumber()).setMaxAccess("readonly") if mibBuilder.loadTexts: realServerPort.setStatus('current') if mibBuilder.loadTexts: realServerPort.setDescription('Port of the service.') realServerStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("alive", 1), ("dead", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: realServerStatus.setStatus('current') if mibBuilder.loadTexts: realServerStatus.setDescription('Status of this real server.') realServerWeight = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: realServerWeight.setStatus('current') if mibBuilder.loadTexts: realServerWeight.setDescription('Weight of this real server. This value can be set to 0 to disable the real server.') realServerUpperConnectionLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 8), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: realServerUpperConnectionLimit.setStatus('current') if mibBuilder.loadTexts: realServerUpperConnectionLimit.setDescription('Maximum number of connections for this real server.') realServerLowerConnectionLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 9), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: realServerLowerConnectionLimit.setStatus('current') if mibBuilder.loadTexts: realServerLowerConnectionLimit.setDescription('Minimum number of connections for this real server.') realServerActionWhenDown = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("remove", 1), ("inhibit", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: realServerActionWhenDown.setStatus('current') if mibBuilder.loadTexts: realServerActionWhenDown.setDescription('What action is performed when this server is down. Its weight can be set to 0 (inhibit) or it can be removed from the pool.') realServerNotifyUp = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 11), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: realServerNotifyUp.setStatus('current') if mibBuilder.loadTexts: realServerNotifyUp.setDescription('Command to execute when this server becomes alive.') realServerNotifyDown = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 12), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: realServerNotifyDown.setStatus('current') if mibBuilder.loadTexts: realServerNotifyDown.setDescription('Command to execute when this server becomes dead.') realServerFailedChecks = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 13), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: realServerFailedChecks.setStatus('current') if mibBuilder.loadTexts: realServerFailedChecks.setDescription('How many failed checks for this real server.') realServerStatsConns = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 14), Gauge32()).setUnits('connections').setMaxAccess("readonly") if mibBuilder.loadTexts: realServerStatsConns.setStatus('current') if mibBuilder.loadTexts: realServerStatsConns.setDescription('Total number of connections scheduled for this real server.') realServerStatsActiveConns = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 15), Gauge32()).setUnits('connections').setMaxAccess("readonly") if mibBuilder.loadTexts: realServerStatsActiveConns.setStatus('current') if mibBuilder.loadTexts: realServerStatsActiveConns.setDescription('Current active connections for this real server.') realServerStatsInactiveConns = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 16), Gauge32()).setUnits('connections').setMaxAccess("readonly") if mibBuilder.loadTexts: realServerStatsInactiveConns.setStatus('current') if mibBuilder.loadTexts: realServerStatsInactiveConns.setDescription('Current inactive connections for this real server.') realServerStatsPersistentConns = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 17), Gauge32()).setUnits('connections').setMaxAccess("readonly") if mibBuilder.loadTexts: realServerStatsPersistentConns.setStatus('current') if mibBuilder.loadTexts: realServerStatsPersistentConns.setDescription('Current persistent connections for this real server.') realServerStatsInPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 18), Counter32()).setUnits('packets').setMaxAccess("readonly") if mibBuilder.loadTexts: realServerStatsInPkts.setStatus('current') if mibBuilder.loadTexts: realServerStatsInPkts.setDescription('Total number of incoming packets for this real server.') realServerStatsOutPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 19), Counter32()).setUnits('packets').setMaxAccess("readonly") if mibBuilder.loadTexts: realServerStatsOutPkts.setStatus('current') if mibBuilder.loadTexts: realServerStatsOutPkts.setDescription('Total number of outgoing packets for this real server.') realServerStatsInBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 20), Counter64()).setUnits('bytes').setMaxAccess("readonly") if mibBuilder.loadTexts: realServerStatsInBytes.setStatus('current') if mibBuilder.loadTexts: realServerStatsInBytes.setDescription('Total number of incoming bytes for this real server.') realServerStatsOutBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 21), Counter64()).setUnits('bytes').setMaxAccess("readonly") if mibBuilder.loadTexts: realServerStatsOutBytes.setStatus('current') if mibBuilder.loadTexts: realServerStatsOutBytes.setDescription('Total number of outgoing bytes for this real server.') realServerRateCps = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 22), Gauge32()).setUnits('connections/s').setMaxAccess("readonly") if mibBuilder.loadTexts: realServerRateCps.setStatus('current') if mibBuilder.loadTexts: realServerRateCps.setDescription('Current connection rate for this real server.') realServerRateInPPS = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 23), Gauge32()).setUnits('packets/s').setMaxAccess("readonly") if mibBuilder.loadTexts: realServerRateInPPS.setStatus('current') if mibBuilder.loadTexts: realServerRateInPPS.setDescription('Current in packet rate for this real server.') realServerRateOutPPS = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 24), Gauge32()).setUnits('packets/s').setMaxAccess("readonly") if mibBuilder.loadTexts: realServerRateOutPPS.setStatus('current') if mibBuilder.loadTexts: realServerRateOutPPS.setDescription('Current out packet rate for this real server.') realServerRateInBPS = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 25), Gauge32()).setUnits('bytes/s').setMaxAccess("readonly") if mibBuilder.loadTexts: realServerRateInBPS.setStatus('current') if mibBuilder.loadTexts: realServerRateInBPS.setDescription('Current incoming rate for this real server.') realServerRateOutBPS = MibTableColumn((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 26), Gauge32()).setUnits('bytes/s').setMaxAccess("readonly") if mibBuilder.loadTexts: realServerRateOutBPS.setStatus('current') if mibBuilder.loadTexts: realServerRateOutBPS.setDescription('Current outgoing rate for this real server.') checkTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 5)) checkTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 5, 0)) checkTrapControl = MibIdentifier((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 5, 1)) realServerStateChange = NotificationType((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 5, 0, 1)).setObjects(("KEEPALIVED-MIB", "realServerAddrType"), ("KEEPALIVED-MIB", "realServerAddress"), ("KEEPALIVED-MIB", "realServerPort"), ("KEEPALIVED-MIB", "realServerStatus"), ("KEEPALIVED-MIB", "virtualServerType"), ("KEEPALIVED-MIB", "virtualServerProtocol"), ("KEEPALIVED-MIB", "virtualServerRealServersUp"), ("KEEPALIVED-MIB", "virtualServerRealServersTotal")) if mibBuilder.loadTexts: realServerStateChange.setStatus('current') if mibBuilder.loadTexts: realServerStateChange.setDescription('This trap signifies that the state of a real server has changed. Additional varbinds will be added depending on the value of virtualServerType: virtualServerNameOfGroup, virtualServerFwMark, virtualServerAddrType, virtualServerAddress, virtualServerPort.') virtualServerQuorumStateChange = NotificationType((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 5, 0, 2)).setObjects(("KEEPALIVED-MIB", "virtualServerType"), ("KEEPALIVED-MIB", "virtualServerProtocol"), ("KEEPALIVED-MIB", "virtualServerQuorumStatus"), ("KEEPALIVED-MIB", "virtualServerQuorum"), ("KEEPALIVED-MIB", "virtualServerRealServersUp"), ("KEEPALIVED-MIB", "virtualServerRealServersTotal")) if mibBuilder.loadTexts: virtualServerQuorumStateChange.setStatus('current') if mibBuilder.loadTexts: virtualServerQuorumStateChange.setDescription('This trap signifies that the quorum of a virtual server has changed. Additional varbinds will be added depending on the value of virtualServerType: virtualServerNameOfGroup, virtualServerFwMark, virtualServerAddrType, virtualServerAddress, virtualServerPort.') compliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9586, 100, 5, 4, 1)) groups = MibIdentifier((1, 3, 6, 1, 4, 1, 9586, 100, 5, 4, 2)) globalCompliances = ModuleCompliance((1, 3, 6, 1, 4, 1, 9586, 100, 5, 4, 1, 1)).setObjects(("KEEPALIVED-MIB", "globalGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): globalCompliances = globalCompliances.setStatus('current') if mibBuilder.loadTexts: globalCompliances.setDescription('Compliance statement for global data') vrrpCompliances = ModuleCompliance((1, 3, 6, 1, 4, 1, 9586, 100, 5, 4, 1, 2)).setObjects(("KEEPALIVED-MIB", "vrrpScriptGroup"), ("KEEPALIVED-MIB", "vrrpSyncGroup"), ("KEEPALIVED-MIB", "vrrpInstanceGroup"), ("KEEPALIVED-MIB", "vrrpTrapsGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): vrrpCompliances = vrrpCompliances.setStatus('current') if mibBuilder.loadTexts: vrrpCompliances.setDescription('The VRRP compliance statement') checkCompliances = ModuleCompliance((1, 3, 6, 1, 4, 1, 9586, 100, 5, 4, 1, 3)).setObjects(("KEEPALIVED-MIB", "virtualServerGroupGroup"), ("KEEPALIVED-MIB", "virtualServerGroup"), ("KEEPALIVED-MIB", "realServerGroup"), ("KEEPALIVED-MIB", "checkTrapsGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): checkCompliances = checkCompliances.setStatus('current') if mibBuilder.loadTexts: checkCompliances.setDescription('The check compliance statement') globalGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9586, 100, 5, 4, 2, 1)).setObjects(("KEEPALIVED-MIB", "version"), ("KEEPALIVED-MIB", "routerId"), ("KEEPALIVED-MIB", "smtpServerAddressType"), ("KEEPALIVED-MIB", "smtpServerAddress"), ("KEEPALIVED-MIB", "smtpServerTimeout"), ("KEEPALIVED-MIB", "emailFrom"), ("KEEPALIVED-MIB", "emailAddress"), ("KEEPALIVED-MIB", "trapEnable"), ("KEEPALIVED-MIB", "linkBeat")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): globalGroup = globalGroup.setStatus('current') if mibBuilder.loadTexts: globalGroup.setDescription('Conformance group for global data.') vrrpGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9586, 100, 5, 4, 2, 2)) vrrpSyncGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9586, 100, 5, 4, 2, 2, 1)).setObjects(("KEEPALIVED-MIB", "vrrpSyncGroupName"), ("KEEPALIVED-MIB", "vrrpSyncGroupState"), ("KEEPALIVED-MIB", "vrrpSyncGroupSmtpAlert"), ("KEEPALIVED-MIB", "vrrpSyncGroupNotifyExec"), ("KEEPALIVED-MIB", "vrrpSyncGroupScriptMaster"), ("KEEPALIVED-MIB", "vrrpSyncGroupScriptBackup"), ("KEEPALIVED-MIB", "vrrpSyncGroupScriptFault"), ("KEEPALIVED-MIB", "vrrpSyncGroupScript"), ("KEEPALIVED-MIB", "vrrpSyncGroupMemberName")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): vrrpSyncGroup = vrrpSyncGroup.setStatus('current') if mibBuilder.loadTexts: vrrpSyncGroup.setDescription('Conformance group for synchronisation groups.') vrrpInstanceGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9586, 100, 5, 4, 2, 2, 2)).setObjects(("KEEPALIVED-MIB", "vrrpInstanceName"), ("KEEPALIVED-MIB", "vrrpInstanceVirtualRouterId"), ("KEEPALIVED-MIB", "vrrpInstanceState"), ("KEEPALIVED-MIB", "vrrpInstanceInitialState"), ("KEEPALIVED-MIB", "vrrpInstanceWantedState"), ("KEEPALIVED-MIB", "vrrpInstanceBasePriority"), ("KEEPALIVED-MIB", "vrrpInstanceEffectivePriority"), ("KEEPALIVED-MIB", "vrrpInstanceVipsStatus"), ("KEEPALIVED-MIB", "vrrpInstancePrimaryInterface"), ("KEEPALIVED-MIB", "vrrpInstanceTrackPrimaryIf"), ("KEEPALIVED-MIB", "vrrpInstanceAdvertisementsInt"), ("KEEPALIVED-MIB", "vrrpInstancePreempt"), ("KEEPALIVED-MIB", "vrrpInstancePreemptDelay"), ("KEEPALIVED-MIB", "vrrpInstanceAuthType"), ("KEEPALIVED-MIB", "vrrpInstanceLvsSyncDaemon"), ("KEEPALIVED-MIB", "vrrpInstanceLvsSyncInterface"), ("KEEPALIVED-MIB", "vrrpInstanceSyncGroup"), ("KEEPALIVED-MIB", "vrrpInstanceGarpDelay"), ("KEEPALIVED-MIB", "vrrpInstanceSmtpAlert"), ("KEEPALIVED-MIB", "vrrpInstanceNotifyExec"), ("KEEPALIVED-MIB", "vrrpInstanceScriptMaster"), ("KEEPALIVED-MIB", "vrrpInstanceScriptBackup"), ("KEEPALIVED-MIB", "vrrpInstanceScriptFault"), ("KEEPALIVED-MIB", "vrrpInstanceScriptStop"), ("KEEPALIVED-MIB", "vrrpInstanceScript"), ("KEEPALIVED-MIB", "vrrpTrackedInterfaceName"), ("KEEPALIVED-MIB", "vrrpTrackedInterfaceWeight"), ("KEEPALIVED-MIB", "vrrpTrackedScriptName"), ("KEEPALIVED-MIB", "vrrpTrackedScriptWeight"), ("KEEPALIVED-MIB", "vrrpAddressType"), ("KEEPALIVED-MIB", "vrrpAddressValue"), ("KEEPALIVED-MIB", "vrrpAddressBroadcast"), ("KEEPALIVED-MIB", "vrrpAddressMask"), ("KEEPALIVED-MIB", "vrrpAddressScope"), ("KEEPALIVED-MIB", "vrrpAddressIfIndex"), ("KEEPALIVED-MIB", "vrrpAddressIfName"), ("KEEPALIVED-MIB", "vrrpAddressIfAlias"), ("KEEPALIVED-MIB", "vrrpAddressStatus"), ("KEEPALIVED-MIB", "vrrpAddressAdvertising"), ("KEEPALIVED-MIB", "vrrpRouteAddressType"), ("KEEPALIVED-MIB", "vrrpRouteDestination"), ("KEEPALIVED-MIB", "vrrpRouteDestinationMask"), ("KEEPALIVED-MIB", "vrrpRouteGateway"), ("KEEPALIVED-MIB", "vrrpRouteSecondaryGateway"), ("KEEPALIVED-MIB", "vrrpRouteSource"), ("KEEPALIVED-MIB", "vrrpRouteMetric"), ("KEEPALIVED-MIB", "vrrpRouteScope"), ("KEEPALIVED-MIB", "vrrpRouteType"), ("KEEPALIVED-MIB", "vrrpRouteIfIndex"), ("KEEPALIVED-MIB", "vrrpRouteIfName"), ("KEEPALIVED-MIB", "vrrpRouteRoutingTable"), ("KEEPALIVED-MIB", "vrrpRouteStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): vrrpInstanceGroup = vrrpInstanceGroup.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceGroup.setDescription('Conformance group for VRRP instances.') vrrpScriptGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9586, 100, 5, 4, 2, 2, 3)).setObjects(("KEEPALIVED-MIB", "vrrpScriptName"), ("KEEPALIVED-MIB", "vrrpScriptCommand"), ("KEEPALIVED-MIB", "vrrpScriptInterval"), ("KEEPALIVED-MIB", "vrrpScriptWeight"), ("KEEPALIVED-MIB", "vrrpScriptResult"), ("KEEPALIVED-MIB", "vrrpScriptRise"), ("KEEPALIVED-MIB", "vrrpScriptFall")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): vrrpScriptGroup = vrrpScriptGroup.setStatus('current') if mibBuilder.loadTexts: vrrpScriptGroup.setDescription('Conformance group for VRRP scripts.') vrrpTrapsGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 9586, 100, 5, 4, 2, 2, 4)).setObjects(("KEEPALIVED-MIB", "vrrpSyncGroupStateChange"), ("KEEPALIVED-MIB", "vrrpInstanceStateChange")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): vrrpTrapsGroup = vrrpTrapsGroup.setStatus('current') if mibBuilder.loadTexts: vrrpTrapsGroup.setDescription('Conformance group for VRRP traps.') checkGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9586, 100, 5, 4, 2, 3)) virtualServerGroupGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9586, 100, 5, 4, 2, 3, 1)).setObjects(("KEEPALIVED-MIB", "virtualServerGroupName"), ("KEEPALIVED-MIB", "virtualServerGroupMemberType"), ("KEEPALIVED-MIB", "virtualServerGroupMemberFwMark"), ("KEEPALIVED-MIB", "virtualServerGroupMemberAddrType"), ("KEEPALIVED-MIB", "virtualServerGroupMemberAddress"), ("KEEPALIVED-MIB", "virtualServerGroupMemberAddr1"), ("KEEPALIVED-MIB", "virtualServerGroupMemberAddr2"), ("KEEPALIVED-MIB", "virtualServerGroupMemberPort")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): virtualServerGroupGroup = virtualServerGroupGroup.setStatus('current') if mibBuilder.loadTexts: virtualServerGroupGroup.setDescription('Conformance group for virtual server groups.') virtualServerGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9586, 100, 5, 4, 2, 3, 2)).setObjects(("KEEPALIVED-MIB", "virtualServerType"), ("KEEPALIVED-MIB", "virtualServerNameOfGroup"), ("KEEPALIVED-MIB", "virtualServerFwMark"), ("KEEPALIVED-MIB", "virtualServerAddrType"), ("KEEPALIVED-MIB", "virtualServerAddress"), ("KEEPALIVED-MIB", "virtualServerPort"), ("KEEPALIVED-MIB", "virtualServerProtocol"), ("KEEPALIVED-MIB", "virtualServerLoadBalancingAlgo"), ("KEEPALIVED-MIB", "virtualServerLoadBalancingKind"), ("KEEPALIVED-MIB", "virtualServerStatus"), ("KEEPALIVED-MIB", "virtualServerVirtualHost"), ("KEEPALIVED-MIB", "virtualServerPersist"), ("KEEPALIVED-MIB", "virtualServerPersistTimeout"), ("KEEPALIVED-MIB", "virtualServerPersistGranularity"), ("KEEPALIVED-MIB", "virtualServerDelayLoop"), ("KEEPALIVED-MIB", "virtualServerHaSuspend"), ("KEEPALIVED-MIB", "virtualServerAlpha"), ("KEEPALIVED-MIB", "virtualServerOmega"), ("KEEPALIVED-MIB", "virtualServerRealServersTotal"), ("KEEPALIVED-MIB", "virtualServerRealServersUp"), ("KEEPALIVED-MIB", "virtualServerQuorum"), ("KEEPALIVED-MIB", "virtualServerQuorumStatus"), ("KEEPALIVED-MIB", "virtualServerQuorumUp"), ("KEEPALIVED-MIB", "virtualServerQuorumDown"), ("KEEPALIVED-MIB", "virtualServerHysteresis"), ("KEEPALIVED-MIB", "virtualServerStatsConns"), ("KEEPALIVED-MIB", "virtualServerStatsInPkts"), ("KEEPALIVED-MIB", "virtualServerStatsOutPkts"), ("KEEPALIVED-MIB", "virtualServerStatsInBytes"), ("KEEPALIVED-MIB", "virtualServerStatsOutBytes"), ("KEEPALIVED-MIB", "virtualServerRateCps"), ("KEEPALIVED-MIB", "virtualServerRateInPPS"), ("KEEPALIVED-MIB", "virtualServerRateOutPPS"), ("KEEPALIVED-MIB", "virtualServerRateInBPS"), ("KEEPALIVED-MIB", "virtualServerRateOutBPS")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): virtualServerGroup = virtualServerGroup.setStatus('current') if mibBuilder.loadTexts: virtualServerGroup.setDescription('Conformance group for virtual servers.') realServerGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9586, 100, 5, 4, 2, 3, 3)).setObjects(("KEEPALIVED-MIB", "realServerType"), ("KEEPALIVED-MIB", "realServerAddrType"), ("KEEPALIVED-MIB", "realServerAddress"), ("KEEPALIVED-MIB", "realServerPort"), ("KEEPALIVED-MIB", "realServerStatus"), ("KEEPALIVED-MIB", "realServerWeight"), ("KEEPALIVED-MIB", "realServerUpperConnectionLimit"), ("KEEPALIVED-MIB", "realServerLowerConnectionLimit"), ("KEEPALIVED-MIB", "realServerActionWhenDown"), ("KEEPALIVED-MIB", "realServerNotifyUp"), ("KEEPALIVED-MIB", "realServerNotifyDown"), ("KEEPALIVED-MIB", "realServerFailedChecks"), ("KEEPALIVED-MIB", "realServerStatsConns"), ("KEEPALIVED-MIB", "realServerStatsActiveConns"), ("KEEPALIVED-MIB", "realServerStatsInactiveConns"), ("KEEPALIVED-MIB", "realServerStatsPersistentConns"), ("KEEPALIVED-MIB", "realServerStatsInPkts"), ("KEEPALIVED-MIB", "realServerStatsOutPkts"), ("KEEPALIVED-MIB", "realServerStatsInBytes"), ("KEEPALIVED-MIB", "realServerStatsOutBytes"), ("KEEPALIVED-MIB", "realServerRateCps"), ("KEEPALIVED-MIB", "realServerRateInPPS"), ("KEEPALIVED-MIB", "realServerRateOutPPS"), ("KEEPALIVED-MIB", "realServerRateInBPS"), ("KEEPALIVED-MIB", "realServerRateOutBPS")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): realServerGroup = realServerGroup.setStatus('current') if mibBuilder.loadTexts: realServerGroup.setDescription('Conformance group for real servers.') checkTrapsGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 9586, 100, 5, 4, 2, 3, 4)).setObjects(("KEEPALIVED-MIB", "realServerStateChange"), ("KEEPALIVED-MIB", "virtualServerQuorumStateChange")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): checkTrapsGroup = checkTrapsGroup.setStatus('current') if mibBuilder.loadTexts: checkTrapsGroup.setDescription('Conformance group for check traps.') mibBuilder.exportSymbols("KEEPALIVED-MIB", vrrpInstanceVirtualRouterId=vrrpInstanceVirtualRouterId, virtualServerGroupMemberAddr2=virtualServerGroupMemberAddr2, vrrpTrackedInterfaceName=vrrpTrackedInterfaceName, realServerStatsInPkts=realServerStatsInPkts, smtpServerTimeout=smtpServerTimeout, PYSNMP_MODULE_ID=keepalived, virtualServerType=virtualServerType, realServerLowerConnectionLimit=realServerLowerConnectionLimit, routerId=routerId, virtualServerGroupMemberTable=virtualServerGroupMemberTable, vrrpAddressIfAlias=vrrpAddressIfAlias, check=check, vrrpInstanceAuthType=vrrpInstanceAuthType, virtualServerPort=virtualServerPort, virtualServerDelayLoop=virtualServerDelayLoop, vrrpInstanceStateChange=vrrpInstanceStateChange, realServerGroup=realServerGroup, vrrpScriptFall=vrrpScriptFall, realServerEntry=realServerEntry, realServerActionWhenDown=realServerActionWhenDown, emailIndex=emailIndex, groups=groups, vrrpScriptResult=vrrpScriptResult, vrrpInstanceGroup=vrrpInstanceGroup, vrrpInstanceSyncGroup=vrrpInstanceSyncGroup, virtualServerLoadBalancingAlgo=virtualServerLoadBalancingAlgo, vrrpScriptWeight=vrrpScriptWeight, vrrpSyncGroupMemberTable=vrrpSyncGroupMemberTable, virtualServerGroupMemberPort=virtualServerGroupMemberPort, virtualServerRateOutBPS=virtualServerRateOutBPS, vrrpInstanceTable=vrrpInstanceTable, checkTrapControl=checkTrapControl, vrrpInstanceTrackPrimaryIf=vrrpInstanceTrackPrimaryIf, checkTrapsGroup=checkTrapsGroup, vrrpRouteStatus=vrrpRouteStatus, vrrpTraps=vrrpTraps, virtualServerPersist=virtualServerPersist, virtualServerRateOutPPS=virtualServerRateOutPPS, pysmi_global=pysmi_global, compliances=compliances, vrrpTrackedScriptName=vrrpTrackedScriptName, realServerStateChange=realServerStateChange, virtualServerGroupMemberAddr1=virtualServerGroupMemberAddr1, vrrpSyncGroupScriptBackup=vrrpSyncGroupScriptBackup, virtualServerQuorumDown=virtualServerQuorumDown, vrrpSyncGroupEntry=vrrpSyncGroupEntry, vrrpInstanceScriptMaster=vrrpInstanceScriptMaster, vrrpScriptGroup=vrrpScriptGroup, vrrpSyncGroupName=vrrpSyncGroupName, virtualServerStatsOutPkts=virtualServerStatsOutPkts, vrrpRouteMetric=vrrpRouteMetric, realServerStatsActiveConns=realServerStatsActiveConns, vrrpRouteSecondaryGateway=vrrpRouteSecondaryGateway, realServerStatsPersistentConns=realServerStatsPersistentConns, vrrpScriptName=vrrpScriptName, vrrpInstanceInitialState=vrrpInstanceInitialState, vrrpRouteDestination=vrrpRouteDestination, vrrpScriptEntry=vrrpScriptEntry, vrrpInstanceSmtpAlert=vrrpInstanceSmtpAlert, vrrpAddressType=vrrpAddressType, virtualServerQuorumStatus=virtualServerQuorumStatus, realServerType=realServerType, virtualServerQuorumStateChange=virtualServerQuorumStateChange, vrrpRouteIfName=vrrpRouteIfName, virtualServerGroupMemberFwMark=virtualServerGroupMemberFwMark, virtualServerStatsInBytes=virtualServerStatsInBytes, vrrpSyncGroupNotifyExec=vrrpSyncGroupNotifyExec, vrrpInstanceLvsSyncDaemon=vrrpInstanceLvsSyncDaemon, vrrpAddressIndex=vrrpAddressIndex, vrrpRouteIfIndex=vrrpRouteIfIndex, realServerStatsOutPkts=realServerStatsOutPkts, vrrpAddressTable=vrrpAddressTable, realServerTable=realServerTable, realServerFailedChecks=realServerFailedChecks, checkCompliances=checkCompliances, vrrpSyncGroupTable=vrrpSyncGroupTable, vrrpInstancePreempt=vrrpInstancePreempt, vrrpSyncGroupStateChange=vrrpSyncGroupStateChange, virtualServerGroupMemberType=virtualServerGroupMemberType, virtualServerOmega=virtualServerOmega, virtualServerRealServersTotal=virtualServerRealServersTotal, virtualServerStatsInPkts=virtualServerStatsInPkts, realServerRateOutPPS=realServerRateOutPPS, virtualServerGroupGroup=virtualServerGroupGroup, vrrpAddressBroadcast=vrrpAddressBroadcast, vrrpInstanceState=vrrpInstanceState, vrrpInstanceName=vrrpInstanceName, vrrpSyncGroupSmtpAlert=vrrpSyncGroupSmtpAlert, realServerWeight=realServerWeight, vrrpScriptRise=vrrpScriptRise, virtualServerGroupTable=virtualServerGroupTable, virtualServerPersistGranularity=virtualServerPersistGranularity, vrrpAddressScope=vrrpAddressScope, vrrpScriptIndex=vrrpScriptIndex, keepalived=keepalived, trapEnable=trapEnable, virtualServerAddress=virtualServerAddress, emailAddress=emailAddress, vrrpRouteGateway=vrrpRouteGateway, emailFrom=emailFrom, linkBeat=linkBeat, virtualServerAddrType=virtualServerAddrType, vrrpSyncGroupScriptFault=vrrpSyncGroupScriptFault, checkTraps=checkTraps, vrrpInstanceNotifyExec=vrrpInstanceNotifyExec, vrrpAddressMask=vrrpAddressMask, vrrpAddressAdvertising=vrrpAddressAdvertising, virtualServerEntry=virtualServerEntry, vrrpInstanceBasePriority=vrrpInstanceBasePriority, vrrpTrackedInterfaceWeight=vrrpTrackedInterfaceWeight, virtualServerQuorumUp=virtualServerQuorumUp, vrrpTrapControl=vrrpTrapControl, vrrpSyncGroupState=vrrpSyncGroupState, vrrpTrap=vrrpTrap, vrrpSyncGroupIndex=vrrpSyncGroupIndex, virtualServerRealServersUp=virtualServerRealServersUp, project=project, vrrpRouteRoutingTable=vrrpRouteRoutingTable, smtpServerAddressType=smtpServerAddressType, vrrpAddressEntry=vrrpAddressEntry, debian=debian, vrrpRouteSource=vrrpRouteSource, vrrpTrackedScriptIndex=vrrpTrackedScriptIndex, vrrpSyncGroupMemberEntry=vrrpSyncGroupMemberEntry, virtualServerGroupMemberAddrType=virtualServerGroupMemberAddrType, virtualServerNameOfGroup=virtualServerNameOfGroup, virtualServerRateInBPS=virtualServerRateInBPS, globalGroup=globalGroup, virtualServerVirtualHost=virtualServerVirtualHost, vrrpTrackedScriptWeight=vrrpTrackedScriptWeight, virtualServerStatus=virtualServerStatus, virtualServerQuorum=virtualServerQuorum, realServerUpperConnectionLimit=realServerUpperConnectionLimit, globalCompliances=globalCompliances, vrrpScriptCommand=vrrpScriptCommand, vrrpInstanceScriptBackup=vrrpInstanceScriptBackup, vrrpAddressIfIndex=vrrpAddressIfIndex, virtualServerGroupMemberEntry=virtualServerGroupMemberEntry, vrrpInstanceVipsStatus=vrrpInstanceVipsStatus, realServerStatsOutBytes=realServerStatsOutBytes, vrrpTrackedScriptTable=vrrpTrackedScriptTable, vrrpInstanceAdvertisementsInt=vrrpInstanceAdvertisementsInt, realServerNotifyDown=realServerNotifyDown, realServerStatsConns=realServerStatsConns, virtualServerRateCps=virtualServerRateCps, realServerIndex=realServerIndex, vrrpRouteTable=vrrpRouteTable, smtpServerAddress=smtpServerAddress, virtualServerIndex=virtualServerIndex, realServerRateCps=realServerRateCps, vrrpSyncGroupScript=vrrpSyncGroupScript, vrrpSyncGroupMemberName=vrrpSyncGroupMemberName, virtualServerProtocol=virtualServerProtocol, virtualServerLoadBalancingKind=virtualServerLoadBalancingKind, vrrpInstanceIndex=vrrpInstanceIndex, vrrpRouteType=vrrpRouteType, vrrpCompliances=vrrpCompliances, vrrpTrackedInterfaceTable=vrrpTrackedInterfaceTable, virtualServerHysteresis=virtualServerHysteresis, vrrpRouteDestinationMask=vrrpRouteDestinationMask, vrrpInstanceEffectivePriority=vrrpInstanceEffectivePriority, virtualServerGroupMemberAddress=virtualServerGroupMemberAddress, virtualServerPersistTimeout=virtualServerPersistTimeout, vrrpRouteScope=vrrpRouteScope, vrrpTrackedScriptEntry=vrrpTrackedScriptEntry, vrrpSyncGroup=vrrpSyncGroup, vrrpAddressValue=vrrpAddressValue, checkGroups=checkGroups, realServerStatsInBytes=realServerStatsInBytes, VrrpState=VrrpState, vrrpInstanceLvsSyncInterface=vrrpInstanceLvsSyncInterface, vrrpAddressStatus=vrrpAddressStatus, vrrpInstanceGarpDelay=vrrpInstanceGarpDelay, emailTable=emailTable, vrrpSyncGroupScriptMaster=vrrpSyncGroupScriptMaster, virtualServerGroup=virtualServerGroup, vrrpInstanceScript=vrrpInstanceScript, virtualServerGroupMemberIndex=virtualServerGroupMemberIndex, virtualServerGroupIndex=virtualServerGroupIndex, vrrpSyncGroupMemberInstanceIndex=vrrpSyncGroupMemberInstanceIndex, vrrpTrackedInterfaceEntry=vrrpTrackedInterfaceEntry, virtualServerRateInPPS=virtualServerRateInPPS, virtualServerFwMark=virtualServerFwMark, vrrpRouteAddressType=vrrpRouteAddressType, virtualServerHaSuspend=virtualServerHaSuspend, checkTrap=checkTrap, virtualServerStatsOutBytes=virtualServerStatsOutBytes, realServerNotifyUp=realServerNotifyUp, realServerRateInBPS=realServerRateInBPS, realServerStatus=realServerStatus, vrrpScriptInterval=vrrpScriptInterval, emailEntry=emailEntry, vrrpInstancePrimaryInterface=vrrpInstancePrimaryInterface, virtualServerGroupEntry=virtualServerGroupEntry, realServerAddress=realServerAddress, virtualServerAlpha=virtualServerAlpha, realServerRateOutBPS=realServerRateOutBPS, vrrpRouteIndex=vrrpRouteIndex, vrrp=vrrp, vrrpGroups=vrrpGroups, vrrpAddressIfName=vrrpAddressIfName, version=version, realServerStatsInactiveConns=realServerStatsInactiveConns, vrrpInstanceWantedState=vrrpInstanceWantedState, realServerPort=realServerPort, mail=mail, vrrpInstanceScriptFault=vrrpInstanceScriptFault, virtualServerStatsConns=virtualServerStatsConns, vrrpRouteEntry=vrrpRouteEntry, realServerAddrType=realServerAddrType, virtualServerGroupName=virtualServerGroupName, vrrpTrapsGroup=vrrpTrapsGroup, virtualServerTable=virtualServerTable, vrrpInstancePreemptDelay=vrrpInstancePreemptDelay, vrrpInstanceScriptStop=vrrpInstanceScriptStop, conformance=conformance, realServerRateInPPS=realServerRateInPPS, vrrpScriptTable=vrrpScriptTable, vrrpInstanceEntry=vrrpInstanceEntry)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, value_range_constraint, constraints_intersection, single_value_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsIntersection', 'SingleValueConstraint', 'ConstraintsUnion') (if_index, interface_index) = mibBuilder.importSymbols('IF-MIB', 'ifIndex', 'InterfaceIndex') (inet_port_number, inet_address_prefix_length, inet_address, inet_address_type, inet_scope_type) = mibBuilder.importSymbols('INET-ADDRESS-MIB', 'InetPortNumber', 'InetAddressPrefixLength', 'InetAddress', 'InetAddressType', 'InetScopeType') (object_group, module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ObjectGroup', 'ModuleCompliance', 'NotificationGroup') (module_identity, ip_address, gauge32, counter64, object_identity, enterprises, notification_type, iso, integer32, counter32, mib_scalar, mib_table, mib_table_row, mib_table_column, time_ticks, mib_identifier, unsigned32, bits) = mibBuilder.importSymbols('SNMPv2-SMI', 'ModuleIdentity', 'IpAddress', 'Gauge32', 'Counter64', 'ObjectIdentity', 'enterprises', 'NotificationType', 'iso', 'Integer32', 'Counter32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'TimeTicks', 'MibIdentifier', 'Unsigned32', 'Bits') (textual_convention, display_string, truth_value) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString', 'TruthValue') keepalived = module_identity((1, 3, 6, 1, 4, 1, 9586, 100, 5)) keepalived.setRevisions(('2009-04-08 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: keepalived.setRevisionsDescriptions(('Initial revision',)) if mibBuilder.loadTexts: keepalived.setLastUpdated('200904080000Z') if mibBuilder.loadTexts: keepalived.setOrganization('Keepalived') if mibBuilder.loadTexts: keepalived.setContactInfo('http://www.keepalived.org') if mibBuilder.loadTexts: keepalived.setDescription('This MIB describes objects used by keepalived, both for VRRP and health checker.') debian = mib_identifier((1, 3, 6, 1, 4, 1, 9586)) project = mib_identifier((1, 3, 6, 1, 4, 1, 9586, 100)) class Vrrpstate(TextualConvention, Integer32): description = 'Represents a VRRP state.' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2, 3, 4)) named_values = named_values(('init', 0), ('backup', 1), ('master', 2), ('fault', 3), ('unknown', 4)) pysmi_global = mib_identifier((1, 3, 6, 1, 4, 1, 9586, 100, 5, 1)).setLabel('global') vrrp = mib_identifier((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2)) check = mib_identifier((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3)) conformance = mib_identifier((1, 3, 6, 1, 4, 1, 9586, 100, 5, 4)) version = mib_scalar((1, 3, 6, 1, 4, 1, 9586, 100, 5, 1, 1), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: version.setStatus('current') if mibBuilder.loadTexts: version.setDescription('Version of keepalived') router_id = mib_scalar((1, 3, 6, 1, 4, 1, 9586, 100, 5, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: routerId.setStatus('current') if mibBuilder.loadTexts: routerId.setDescription('Router ID') mail = mib_identifier((1, 3, 6, 1, 4, 1, 9586, 100, 5, 1, 3)) smtp_server_address_type = mib_scalar((1, 3, 6, 1, 4, 1, 9586, 100, 5, 1, 3, 1), inet_address_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: smtpServerAddressType.setStatus('current') if mibBuilder.loadTexts: smtpServerAddressType.setDescription('Address type for SMTP server.') smtp_server_address = mib_scalar((1, 3, 6, 1, 4, 1, 9586, 100, 5, 1, 3, 2), inet_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: smtpServerAddress.setStatus('current') if mibBuilder.loadTexts: smtpServerAddress.setDescription('Address of SMTP server.') smtp_server_timeout = mib_scalar((1, 3, 6, 1, 4, 1, 9586, 100, 5, 1, 3, 3), unsigned32()).setUnits('seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: smtpServerTimeout.setStatus('current') if mibBuilder.loadTexts: smtpServerTimeout.setDescription('SMTP server connection timeout.') email_from = mib_scalar((1, 3, 6, 1, 4, 1, 9586, 100, 5, 1, 3, 4), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: emailFrom.setStatus('current') if mibBuilder.loadTexts: emailFrom.setDescription('Email address for the From field.') email_table = mib_table((1, 3, 6, 1, 4, 1, 9586, 100, 5, 1, 3, 5)) if mibBuilder.loadTexts: emailTable.setStatus('current') if mibBuilder.loadTexts: emailTable.setDescription('Table of email notification addresses.') email_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9586, 100, 5, 1, 3, 5, 1)).setIndexNames((0, 'KEEPALIVED-MIB', 'emailIndex')) if mibBuilder.loadTexts: emailEntry.setStatus('current') if mibBuilder.loadTexts: emailEntry.setDescription('Email address to be notified with an alert.') email_index = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 1, 3, 5, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))) if mibBuilder.loadTexts: emailIndex.setStatus('current') if mibBuilder.loadTexts: emailIndex.setDescription('Index for the email address.') email_address = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 1, 3, 5, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: emailAddress.setStatus('current') if mibBuilder.loadTexts: emailAddress.setDescription('Email address to be notified when an alert is raised.') trap_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9586, 100, 5, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: trapEnable.setStatus('current') if mibBuilder.loadTexts: trapEnable.setDescription('Indicate whether traps should be sent for various events.') link_beat = mib_scalar((1, 3, 6, 1, 4, 1, 9586, 100, 5, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('netlink', 1), ('polling', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: linkBeat.setStatus('current') if mibBuilder.loadTexts: linkBeat.setDescription('Indicate which method is used to check if a link is up or down. netlink(1) means that the kernel will push a link state change while polling(2) means that the status of the link is checked periodically.') vrrp_sync_group_table = mib_table((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 1)) if mibBuilder.loadTexts: vrrpSyncGroupTable.setStatus('current') if mibBuilder.loadTexts: vrrpSyncGroupTable.setDescription('Table of sync groups') vrrp_sync_group_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 1, 1)).setIndexNames((0, 'KEEPALIVED-MIB', 'vrrpSyncGroupIndex')) if mibBuilder.loadTexts: vrrpSyncGroupEntry.setStatus('current') if mibBuilder.loadTexts: vrrpSyncGroupEntry.setDescription('Information describing a sync group') vrrp_sync_group_index = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))) if mibBuilder.loadTexts: vrrpSyncGroupIndex.setStatus('current') if mibBuilder.loadTexts: vrrpSyncGroupIndex.setDescription('Index of the synchronisation group.') vrrp_sync_group_name = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 1, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpSyncGroupName.setStatus('current') if mibBuilder.loadTexts: vrrpSyncGroupName.setDescription('Name of the synchronisation group.') vrrp_sync_group_state = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 1, 1, 3), vrrp_state()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpSyncGroupState.setStatus('current') if mibBuilder.loadTexts: vrrpSyncGroupState.setDescription('Current state of the synchronisation group.') vrrp_sync_group_smtp_alert = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpSyncGroupSmtpAlert.setStatus('current') if mibBuilder.loadTexts: vrrpSyncGroupSmtpAlert.setDescription('Will SMTP alert be sent for this synchronisation group?') vrrp_sync_group_notify_exec = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpSyncGroupNotifyExec.setStatus('current') if mibBuilder.loadTexts: vrrpSyncGroupNotifyExec.setDescription('Will we execute notification script for this group?') vrrp_sync_group_script_master = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 1, 1, 6), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpSyncGroupScriptMaster.setStatus('current') if mibBuilder.loadTexts: vrrpSyncGroupScriptMaster.setDescription('Script to execute when the group becomes master.') vrrp_sync_group_script_backup = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 1, 1, 7), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpSyncGroupScriptBackup.setStatus('current') if mibBuilder.loadTexts: vrrpSyncGroupScriptBackup.setDescription('Script to execute when the group becomes backup.') vrrp_sync_group_script_fault = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 1, 1, 8), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpSyncGroupScriptFault.setStatus('current') if mibBuilder.loadTexts: vrrpSyncGroupScriptFault.setDescription('Script to execute when the group is in fault state.') vrrp_sync_group_script = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 1, 1, 9), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpSyncGroupScript.setStatus('current') if mibBuilder.loadTexts: vrrpSyncGroupScript.setDescription('Script to execute whenever a state change occurs.') vrrp_sync_group_member_table = mib_table((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 2)) if mibBuilder.loadTexts: vrrpSyncGroupMemberTable.setStatus('current') if mibBuilder.loadTexts: vrrpSyncGroupMemberTable.setDescription('Table of instances contained in sync groups') vrrp_sync_group_member_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 2, 1)).setIndexNames((0, 'KEEPALIVED-MIB', 'vrrpSyncGroupIndex'), (0, 'KEEPALIVED-MIB', 'vrrpSyncGroupMemberInstanceIndex')) if mibBuilder.loadTexts: vrrpSyncGroupMemberEntry.setStatus('current') if mibBuilder.loadTexts: vrrpSyncGroupMemberEntry.setDescription('Information describing a member of a sync group') vrrp_sync_group_member_instance_index = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))) if mibBuilder.loadTexts: vrrpSyncGroupMemberInstanceIndex.setStatus('current') if mibBuilder.loadTexts: vrrpSyncGroupMemberInstanceIndex.setDescription('Index of an instance in a synchronisation group. There is no relation with this index and the index of the corresponding instance in vrrpInstanceTable. Use the name to find out the corresponding instance.') vrrp_sync_group_member_name = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 2, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpSyncGroupMemberName.setStatus('current') if mibBuilder.loadTexts: vrrpSyncGroupMemberName.setDescription('Name of the instance contained in the synchronisation group.') vrrp_instance_table = mib_table((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3)) if mibBuilder.loadTexts: vrrpInstanceTable.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceTable.setDescription('Table of VRRP instances') vrrp_instance_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1)).setIndexNames((0, 'KEEPALIVED-MIB', 'vrrpInstanceIndex')) if mibBuilder.loadTexts: vrrpInstanceEntry.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceEntry.setDescription('Information describing a sync group') vrrp_instance_index = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0))).clone(namedValues=named_values(('static', 0)))) if mibBuilder.loadTexts: vrrpInstanceIndex.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceIndex.setDescription('Index of the VRRP instance. Instance 0 is for static IP and static routes.') vrrp_instance_name = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpInstanceName.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceName.setDescription('Name of the VRRP instance.') vrrp_instance_virtual_router_id = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 3), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpInstanceVirtualRouterId.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceVirtualRouterId.setDescription('Virtual Router ID (VRID) for this VRRP instance.') vrrp_instance_state = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 4), vrrp_state()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpInstanceState.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceState.setDescription('Current state of this VRRP instance.') vrrp_instance_initial_state = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 5), vrrp_state()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpInstanceInitialState.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceInitialState.setDescription('Initial state of this VRRP instance.') vrrp_instance_wanted_state = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 6), vrrp_state()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpInstanceWantedState.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceWantedState.setDescription('State wanted by the operator for this VRRP instance.') vrrp_instance_base_priority = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 7), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrrpInstanceBasePriority.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceBasePriority.setDescription('Base priority (as defined in the configuration file) for this VRRP instance. This value can be modified to force the virtual router instance to become backup or master. ') vrrp_instance_effective_priority = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpInstanceEffectivePriority.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceEffectivePriority.setDescription('Effective priority for this VRRP instance. Status of interfaces and script results are used to compute this value from the base priority.') vrrp_instance_vips_status = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('allSet', 1), ('notAllSet', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpInstanceVipsStatus.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceVipsStatus.setDescription('Are all VIP of this VRRP instance enabled?') vrrp_instance_primary_interface = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 10), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpInstancePrimaryInterface.setStatus('current') if mibBuilder.loadTexts: vrrpInstancePrimaryInterface.setDescription('Primary interface of this VRRP instance.') vrrp_instance_track_primary_if = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('tracked', 1), ('notTracked', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpInstanceTrackPrimaryIf.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceTrackPrimaryIf.setDescription('Do we track the status of the primary interface?') vrrp_instance_advertisements_int = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 12), unsigned32()).setUnits('seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpInstanceAdvertisementsInt.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceAdvertisementsInt.setDescription('Delay in seconds between two VRRP advertisements.') vrrp_instance_preempt = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('preempt', 1), ('noPreempt', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrrpInstancePreempt.setStatus('current') if mibBuilder.loadTexts: vrrpInstancePreempt.setDescription('Will a higher priority advertisement preempt a lower instance?') vrrp_instance_preempt_delay = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 14), unsigned32()).setUnits('seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpInstancePreemptDelay.setStatus('current') if mibBuilder.loadTexts: vrrpInstancePreemptDelay.setDescription('Delay after startup until preemption can happen. 0 means that there is no delay.') vrrp_instance_auth_type = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 15), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('password', 1), ('ah', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpInstanceAuthType.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceAuthType.setDescription('Authentication method to authenticate other peers.') vrrp_instance_lvs_sync_daemon = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 16), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpInstanceLvsSyncDaemon.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceLvsSyncDaemon.setDescription('Is LVS sync daemon enabled for this VRRP instance?') vrrp_instance_lvs_sync_interface = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 17), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpInstanceLvsSyncInterface.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceLvsSyncInterface.setDescription('If LVS sync daemon is enabled, which interface to use for syncing?') vrrp_instance_sync_group = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 18), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpInstanceSyncGroup.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceSyncGroup.setDescription('Name of the synchronisation group this VRRP instance belongs, if any.') vrrp_instance_garp_delay = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 19), unsigned32()).setUnits('seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpInstanceGarpDelay.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceGarpDelay.setDescription('Delay to launch gratuitous ARP (GARP).') vrrp_instance_smtp_alert = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 20), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpInstanceSmtpAlert.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceSmtpAlert.setDescription('Will SMTP alert be sent for this VRRP instance?') vrrp_instance_notify_exec = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 21), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpInstanceNotifyExec.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceNotifyExec.setDescription('Will we execute notification script for this instance?') vrrp_instance_script_master = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 22), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpInstanceScriptMaster.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceScriptMaster.setDescription('Script to execute when the instance becomes master.') vrrp_instance_script_backup = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 23), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpInstanceScriptBackup.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceScriptBackup.setDescription('Script to execute when the instance becomes backup.') vrrp_instance_script_fault = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 24), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpInstanceScriptFault.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceScriptFault.setDescription('Script to execute when the instance is in fault state.') vrrp_instance_script_stop = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 25), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpInstanceScriptStop.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceScriptStop.setDescription('Script to execute when the instance is stopped.') vrrp_instance_script = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 3, 1, 26), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpInstanceScript.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceScript.setDescription('Script to execute whenever a state change occurs.') vrrp_tracked_interface_table = mib_table((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 4)) if mibBuilder.loadTexts: vrrpTrackedInterfaceTable.setStatus('current') if mibBuilder.loadTexts: vrrpTrackedInterfaceTable.setDescription('Table of tracked interfaces for each VRRP instance.') vrrp_tracked_interface_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 4, 1)).setIndexNames((0, 'KEEPALIVED-MIB', 'vrrpInstanceIndex'), (0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: vrrpTrackedInterfaceEntry.setStatus('current') if mibBuilder.loadTexts: vrrpTrackedInterfaceEntry.setDescription('Information describing a tracked interface') vrrp_tracked_interface_name = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 4, 1, 1), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpTrackedInterfaceName.setStatus('current') if mibBuilder.loadTexts: vrrpTrackedInterfaceName.setDescription('Name of the tracked interface.') vrrp_tracked_interface_weight = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 4, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpTrackedInterfaceWeight.setStatus('current') if mibBuilder.loadTexts: vrrpTrackedInterfaceWeight.setDescription('Weight of the tracked interface.') vrrp_tracked_script_table = mib_table((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 5)) if mibBuilder.loadTexts: vrrpTrackedScriptTable.setStatus('current') if mibBuilder.loadTexts: vrrpTrackedScriptTable.setDescription('Table of tracked interfaces for each VRRP instance.') vrrp_tracked_script_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 5, 1)).setIndexNames((0, 'KEEPALIVED-MIB', 'vrrpInstanceIndex'), (0, 'KEEPALIVED-MIB', 'vrrpTrackedScriptIndex')) if mibBuilder.loadTexts: vrrpTrackedScriptEntry.setStatus('current') if mibBuilder.loadTexts: vrrpTrackedScriptEntry.setDescription('Information describing a tracked script') vrrp_tracked_script_index = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 5, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))) if mibBuilder.loadTexts: vrrpTrackedScriptIndex.setStatus('current') if mibBuilder.loadTexts: vrrpTrackedScriptIndex.setDescription('Index of the tracked script in the set of tracked scripts for the given VRRP instance. This index has no relation with the index of vrrpScriptTable.') vrrp_tracked_script_name = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 5, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpTrackedScriptName.setStatus('current') if mibBuilder.loadTexts: vrrpTrackedScriptName.setDescription('Name of the tracked interface.') vrrp_tracked_script_weight = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 5, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpTrackedScriptWeight.setStatus('current') if mibBuilder.loadTexts: vrrpTrackedScriptWeight.setDescription('Weight of the tracked interface.') vrrp_address_table = mib_table((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 6)) if mibBuilder.loadTexts: vrrpAddressTable.setStatus('current') if mibBuilder.loadTexts: vrrpAddressTable.setDescription('Table of static and virtual addresses') vrrp_address_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 6, 1)).setIndexNames((0, 'KEEPALIVED-MIB', 'vrrpInstanceIndex'), (0, 'KEEPALIVED-MIB', 'vrrpAddressIndex')) if mibBuilder.loadTexts: vrrpAddressEntry.setStatus('current') if mibBuilder.loadTexts: vrrpAddressEntry.setDescription('Information describing an address. This can be a static address or a virtual address. In case of static address, the VRRP instance index is 0.') vrrp_address_index = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 6, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))) if mibBuilder.loadTexts: vrrpAddressIndex.setStatus('current') if mibBuilder.loadTexts: vrrpAddressIndex.setDescription('Address index.') vrrp_address_type = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 6, 1, 2), inet_address_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpAddressType.setStatus('current') if mibBuilder.loadTexts: vrrpAddressType.setDescription('A value that represents a type of Internet address.') vrrp_address_value = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 6, 1, 3), inet_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpAddressValue.setStatus('current') if mibBuilder.loadTexts: vrrpAddressValue.setDescription('Actual IP address.') vrrp_address_broadcast = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 6, 1, 4), inet_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpAddressBroadcast.setStatus('current') if mibBuilder.loadTexts: vrrpAddressBroadcast.setDescription('Broadcast address associated with the IP address.') vrrp_address_mask = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 6, 1, 5), inet_address_prefix_length()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpAddressMask.setStatus('current') if mibBuilder.loadTexts: vrrpAddressMask.setDescription('Address mask.') vrrp_address_scope = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 6, 1, 6), inet_scope_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpAddressScope.setStatus('current') if mibBuilder.loadTexts: vrrpAddressScope.setDescription('Address scope.') vrrp_address_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 6, 1, 7), interface_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpAddressIfIndex.setStatus('current') if mibBuilder.loadTexts: vrrpAddressIfIndex.setDescription('Index of the interface to which the IP address is linked to.') vrrp_address_if_name = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 6, 1, 8), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpAddressIfName.setStatus('current') if mibBuilder.loadTexts: vrrpAddressIfName.setDescription('Name of the interface to which the IP address is linked to.') vrrp_address_if_alias = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 6, 1, 9), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpAddressIfAlias.setStatus('current') if mibBuilder.loadTexts: vrrpAddressIfAlias.setDescription('Alias name of the interface.') vrrp_address_status = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 6, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('set', 1), ('unset', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpAddressStatus.setStatus('current') if mibBuilder.loadTexts: vrrpAddressStatus.setDescription('Is the IP address set?') vrrp_address_advertising = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 6, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('advertised', 1), ('notAdvertised', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpAddressAdvertising.setStatus('current') if mibBuilder.loadTexts: vrrpAddressAdvertising.setDescription('Status of VRRP advertising for this IP address.') vrrp_route_table = mib_table((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 7)) if mibBuilder.loadTexts: vrrpRouteTable.setStatus('current') if mibBuilder.loadTexts: vrrpRouteTable.setDescription('Table of static and virtual routes.') vrrp_route_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 7, 1)).setIndexNames((0, 'KEEPALIVED-MIB', 'vrrpInstanceIndex'), (0, 'KEEPALIVED-MIB', 'vrrpRouteIndex')) if mibBuilder.loadTexts: vrrpRouteEntry.setStatus('current') if mibBuilder.loadTexts: vrrpRouteEntry.setDescription('Information describing a route. In case of a static route, the instance index is 0.') vrrp_route_index = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 7, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))) if mibBuilder.loadTexts: vrrpRouteIndex.setStatus('current') if mibBuilder.loadTexts: vrrpRouteIndex.setDescription('Route index.') vrrp_route_address_type = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 7, 1, 2), inet_address_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpRouteAddressType.setStatus('current') if mibBuilder.loadTexts: vrrpRouteAddressType.setDescription('Route type of internet address.') vrrp_route_destination = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 7, 1, 3), inet_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpRouteDestination.setStatus('current') if mibBuilder.loadTexts: vrrpRouteDestination.setDescription('Route destination.') vrrp_route_destination_mask = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 7, 1, 4), inet_address_prefix_length()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpRouteDestinationMask.setStatus('current') if mibBuilder.loadTexts: vrrpRouteDestinationMask.setDescription('Route destination mask.') vrrp_route_gateway = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 7, 1, 5), inet_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpRouteGateway.setStatus('current') if mibBuilder.loadTexts: vrrpRouteGateway.setDescription('Gateway for the given destination.') vrrp_route_secondary_gateway = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 7, 1, 6), inet_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpRouteSecondaryGateway.setStatus('current') if mibBuilder.loadTexts: vrrpRouteSecondaryGateway.setDescription('An optional second gateway for the given destination.') vrrp_route_source = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 7, 1, 7), inet_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpRouteSource.setStatus('current') if mibBuilder.loadTexts: vrrpRouteSource.setDescription('Which source IP address to use with this route.') vrrp_route_metric = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 7, 1, 8), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpRouteMetric.setStatus('current') if mibBuilder.loadTexts: vrrpRouteMetric.setDescription('Metric of this route.') vrrp_route_scope = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 7, 1, 9), inet_scope_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpRouteScope.setStatus('current') if mibBuilder.loadTexts: vrrpRouteScope.setDescription('Scope of this route.') vrrp_route_type = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 7, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('normal', 1), ('ecmp', 2), ('blackhole', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpRouteType.setStatus('current') if mibBuilder.loadTexts: vrrpRouteType.setDescription('Kind of route.') vrrp_route_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 7, 1, 11), interface_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpRouteIfIndex.setStatus('current') if mibBuilder.loadTexts: vrrpRouteIfIndex.setDescription('Interface attached to this route.') vrrp_route_if_name = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 7, 1, 12), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpRouteIfName.setStatus('current') if mibBuilder.loadTexts: vrrpRouteIfName.setDescription('Name of the interface of attached to this route.') vrrp_route_routing_table = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 7, 1, 13), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpRouteRoutingTable.setStatus('current') if mibBuilder.loadTexts: vrrpRouteRoutingTable.setDescription('Routing table where to route should be inserted.') vrrp_route_status = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 7, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('set', 1), ('unset', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpRouteStatus.setStatus('current') if mibBuilder.loadTexts: vrrpRouteStatus.setDescription('Is this route set in the kernel?') vrrp_script_table = mib_table((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 8)) if mibBuilder.loadTexts: vrrpScriptTable.setStatus('current') if mibBuilder.loadTexts: vrrpScriptTable.setDescription('Table of VRRP scripts') vrrp_script_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 8, 1)).setIndexNames((0, 'KEEPALIVED-MIB', 'vrrpScriptIndex')) if mibBuilder.loadTexts: vrrpScriptEntry.setStatus('current') if mibBuilder.loadTexts: vrrpScriptEntry.setDescription('Information describing a VRRP script') vrrp_script_index = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 8, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))) if mibBuilder.loadTexts: vrrpScriptIndex.setStatus('current') if mibBuilder.loadTexts: vrrpScriptIndex.setDescription('Script index.') vrrp_script_name = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 8, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpScriptName.setStatus('current') if mibBuilder.loadTexts: vrrpScriptName.setDescription('Symbolic name of the script.') vrrp_script_command = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 8, 1, 3), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpScriptCommand.setStatus('current') if mibBuilder.loadTexts: vrrpScriptCommand.setDescription('Command executed when running the script.') vrrp_script_interval = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 8, 1, 4), integer32()).setUnits('seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpScriptInterval.setStatus('current') if mibBuilder.loadTexts: vrrpScriptInterval.setDescription('Interval between two runs of the script.') vrrp_script_weight = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 8, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpScriptWeight.setStatus('current') if mibBuilder.loadTexts: vrrpScriptWeight.setDescription('Weight of the script if successful.') vrrp_script_result = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 8, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4))).clone(namedValues=named_values(('disabled', 0), ('init', 1), ('bad', 2), ('good', 3), ('initgood', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpScriptResult.setStatus('current') if mibBuilder.loadTexts: vrrpScriptResult.setDescription('Current status of the script.') vrrp_script_rise = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 8, 1, 7), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpScriptRise.setStatus('current') if mibBuilder.loadTexts: vrrpScriptRise.setDescription('How many times the script should succeed before OK.') vrrp_script_fall = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 8, 1, 8), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrrpScriptFall.setStatus('current') if mibBuilder.loadTexts: vrrpScriptFall.setDescription('How many times the script should fail before KO.') vrrp_trap = mib_identifier((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 9)) vrrp_traps = mib_identifier((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 9, 0)) vrrp_trap_control = mib_identifier((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 9, 1)) vrrp_sync_group_state_change = notification_type((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 9, 0, 1)).setObjects(('KEEPALIVED-MIB', 'vrrpSyncGroupName'), ('KEEPALIVED-MIB', 'vrrpSyncGroupState')) if mibBuilder.loadTexts: vrrpSyncGroupStateChange.setStatus('current') if mibBuilder.loadTexts: vrrpSyncGroupStateChange.setDescription('This trap signifies that the state of the whole vrrp sync group changed.') vrrp_instance_state_change = notification_type((1, 3, 6, 1, 4, 1, 9586, 100, 5, 2, 9, 0, 2)).setObjects(('KEEPALIVED-MIB', 'vrrpInstanceName'), ('KEEPALIVED-MIB', 'vrrpInstanceState'), ('KEEPALIVED-MIB', 'vrrpInstanceInitialState')) if mibBuilder.loadTexts: vrrpInstanceStateChange.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceStateChange.setDescription('This trap signifies that the state of a vrrp instance changed.') virtual_server_group_table = mib_table((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 1)) if mibBuilder.loadTexts: virtualServerGroupTable.setStatus('current') if mibBuilder.loadTexts: virtualServerGroupTable.setDescription('Table of virtual server groups.') virtual_server_group_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 1, 1)).setIndexNames((0, 'KEEPALIVED-MIB', 'virtualServerGroupIndex')) if mibBuilder.loadTexts: virtualServerGroupEntry.setStatus('current') if mibBuilder.loadTexts: virtualServerGroupEntry.setDescription('Information describing a virtual server group.') virtual_server_group_index = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))) if mibBuilder.loadTexts: virtualServerGroupIndex.setStatus('current') if mibBuilder.loadTexts: virtualServerGroupIndex.setDescription('Index of the virtual server group.') virtual_server_group_name = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 1, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerGroupName.setStatus('current') if mibBuilder.loadTexts: virtualServerGroupName.setDescription('Name of the virtual server group.') virtual_server_group_member_table = mib_table((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 2)) if mibBuilder.loadTexts: virtualServerGroupMemberTable.setStatus('current') if mibBuilder.loadTexts: virtualServerGroupMemberTable.setDescription('Table of members of a virtual server group.') virtual_server_group_member_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 2, 1)).setIndexNames((0, 'KEEPALIVED-MIB', 'virtualServerGroupIndex'), (0, 'KEEPALIVED-MIB', 'virtualServerGroupMemberIndex')) if mibBuilder.loadTexts: virtualServerGroupMemberEntry.setStatus('current') if mibBuilder.loadTexts: virtualServerGroupMemberEntry.setDescription('Description of a member of a virtual server group.') virtual_server_group_member_index = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))) if mibBuilder.loadTexts: virtualServerGroupMemberIndex.setStatus('current') if mibBuilder.loadTexts: virtualServerGroupMemberIndex.setDescription('Index of the member into virtual server group.') virtual_server_group_member_type = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('fwmark', 1), ('ip', 2), ('iprange', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerGroupMemberType.setStatus('current') if mibBuilder.loadTexts: virtualServerGroupMemberType.setDescription('Kind of entry: firewall mark, address with port or range of addresses with port.') virtual_server_group_member_fw_mark = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 2, 1, 3), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerGroupMemberFwMark.setStatus('current') if mibBuilder.loadTexts: virtualServerGroupMemberFwMark.setDescription('Firewall mark for this member. If the kind of this member is not fwmark(1), then this entry should not exist for the current row.') virtual_server_group_member_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 2, 1, 4), inet_address_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerGroupMemberAddrType.setStatus('current') if mibBuilder.loadTexts: virtualServerGroupMemberAddrType.setDescription('Type of IP address for this member. If the kind of this member is neither address(2) or range(3), then this entry should not exist for the current row.') virtual_server_group_member_address = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 2, 1, 5), inet_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerGroupMemberAddress.setStatus('current') if mibBuilder.loadTexts: virtualServerGroupMemberAddress.setDescription('IP address of this member. If the kind of this member is not address(2), then this entry should not exist for the current row.') virtual_server_group_member_addr1 = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 2, 1, 6), inet_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerGroupMemberAddr1.setStatus('current') if mibBuilder.loadTexts: virtualServerGroupMemberAddr1.setDescription('First IP address of the range for this member. If the kind of this member is not range(3), then this entry should not exist for the current row.') virtual_server_group_member_addr2 = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 2, 1, 7), inet_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerGroupMemberAddr2.setStatus('current') if mibBuilder.loadTexts: virtualServerGroupMemberAddr2.setDescription('Second IP address of the range for this member. If the kind of this member is not range(3), then this entry should not exist for the current row.') virtual_server_group_member_port = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 2, 1, 8), inet_port_number()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerGroupMemberPort.setStatus('current') if mibBuilder.loadTexts: virtualServerGroupMemberPort.setDescription('V port for this member. If the kind of this member is neither address(2) nor range(3), then this entry should not exist for the current row.') virtual_server_table = mib_table((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3)) if mibBuilder.loadTexts: virtualServerTable.setStatus('current') if mibBuilder.loadTexts: virtualServerTable.setDescription('Table of virtual servers.') virtual_server_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1)).setIndexNames((0, 'KEEPALIVED-MIB', 'virtualServerIndex')) if mibBuilder.loadTexts: virtualServerEntry.setStatus('current') if mibBuilder.loadTexts: virtualServerEntry.setDescription('Information describing a virtual server.') virtual_server_index = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))) if mibBuilder.loadTexts: virtualServerIndex.setStatus('current') if mibBuilder.loadTexts: virtualServerIndex.setDescription('Index of the virtual server.') virtual_server_type = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('fwmark', 1), ('ip', 2), ('group', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerType.setStatus('current') if mibBuilder.loadTexts: virtualServerType.setDescription('Type of virtual server. A virtual server can either be defined from a firewall mark, an IP and a port or from a virtual server group.') virtual_server_name_of_group = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 3), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerNameOfGroup.setStatus('current') if mibBuilder.loadTexts: virtualServerNameOfGroup.setDescription('If the virtual is defined from a group, this is the name of the group.') virtual_server_fw_mark = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 4), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerFwMark.setStatus('current') if mibBuilder.loadTexts: virtualServerFwMark.setDescription('If the virtual server is defined from a firewall mark, this is the value of the mark. Otherwise, this column should not exist in the current row.') virtual_server_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 5), inet_address_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerAddrType.setStatus('current') if mibBuilder.loadTexts: virtualServerAddrType.setDescription('If the virtual server is defined from an IP, this is the address family. Otherwise, this column should not exist in the current row.') virtual_server_address = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 6), inet_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerAddress.setStatus('current') if mibBuilder.loadTexts: virtualServerAddress.setDescription('If the virtual server is defined from an IP address, this is the value of the IP. Otherwise, this column should not exist in the current row.') virtual_server_port = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 7), inet_port_number()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerPort.setStatus('current') if mibBuilder.loadTexts: virtualServerPort.setDescription('If the virtual server is defined from an IP, this is the value of the port to listen for requests. Otherwise, this column should not exist in the current row.') virtual_server_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('tcp', 1), ('udp', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerProtocol.setStatus('current') if mibBuilder.loadTexts: virtualServerProtocol.setDescription('Which transport protocol should be used for this virtual server.') virtual_server_load_balancing_algo = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 99))).clone(namedValues=named_values(('rr', 1), ('wrr', 2), ('lc', 3), ('wlc', 4), ('lblc', 5), ('lblcr', 6), ('dh', 7), ('sh', 8), ('sed', 9), ('nq', 10), ('unknown', 99)))).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerLoadBalancingAlgo.setStatus('current') if mibBuilder.loadTexts: virtualServerLoadBalancingAlgo.setDescription('Which load balancing algorithm (or scheduler) should be used for this virtual server.') virtual_server_load_balancing_kind = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('nat', 1), ('dr', 2), ('tun', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerLoadBalancingKind.setStatus('current') if mibBuilder.loadTexts: virtualServerLoadBalancingKind.setDescription('Forwarding method to use for this virtual server.') virtual_server_status = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('alive', 1), ('dead', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerStatus.setStatus('current') if mibBuilder.loadTexts: virtualServerStatus.setDescription('Current status of this virtual server.') virtual_server_virtual_host = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 12), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerVirtualHost.setStatus('current') if mibBuilder.loadTexts: virtualServerVirtualHost.setDescription('Virtualhost of this server for HTTP like requests.') virtual_server_persist = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerPersist.setStatus('current') if mibBuilder.loadTexts: virtualServerPersist.setDescription('Is the virtual service persistence enabled?') virtual_server_persist_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 14), unsigned32()).setUnits('seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerPersistTimeout.setStatus('current') if mibBuilder.loadTexts: virtualServerPersistTimeout.setDescription('If this virtual service is persistence, what is the timeout.') virtual_server_persist_granularity = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 15), inet_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerPersistGranularity.setStatus('current') if mibBuilder.loadTexts: virtualServerPersistGranularity.setDescription('Netmask specifying the granularity of the persistence mechanism.') virtual_server_delay_loop = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 16), unsigned32()).setUnits('seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerDelayLoop.setStatus('current') if mibBuilder.loadTexts: virtualServerDelayLoop.setDescription('Delay in seconds between two checks.') virtual_server_ha_suspend = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 17), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerHaSuspend.setStatus('current') if mibBuilder.loadTexts: virtualServerHaSuspend.setDescription('If set to true(1), checks will be suspended if the IP of the virtual server is currently not set.') virtual_server_alpha = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerAlpha.setStatus('current') if mibBuilder.loadTexts: virtualServerAlpha.setDescription('Is alpha mode enabled?') virtual_server_omega = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 19), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerOmega.setStatus('current') if mibBuilder.loadTexts: virtualServerOmega.setDescription('Is omega mode enabled?') virtual_server_real_servers_total = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 20), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerRealServersTotal.setStatus('current') if mibBuilder.loadTexts: virtualServerRealServersTotal.setDescription('Total number of real servers for this virtual server.') virtual_server_real_servers_up = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 21), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerRealServersUp.setStatus('current') if mibBuilder.loadTexts: virtualServerRealServersUp.setDescription('Real servers actually up for this virtual server.') virtual_server_quorum = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 22), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerQuorum.setStatus('current') if mibBuilder.loadTexts: virtualServerQuorum.setDescription('Quorum to get amond real servers to consider this virtual server up.') virtual_server_quorum_status = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 23), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('met', 1), ('notMet', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerQuorumStatus.setStatus('current') if mibBuilder.loadTexts: virtualServerQuorumStatus.setDescription('Current status of the quorum for this virtual server.') virtual_server_quorum_up = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 24), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerQuorumUp.setStatus('current') if mibBuilder.loadTexts: virtualServerQuorumUp.setDescription('Command to execute when the quorum is met.') virtual_server_quorum_down = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 25), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerQuorumDown.setStatus('current') if mibBuilder.loadTexts: virtualServerQuorumDown.setDescription('Command to execute when the quorum is not met.') virtual_server_hysteresis = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 26), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerHysteresis.setStatus('current') if mibBuilder.loadTexts: virtualServerHysteresis.setDescription('Hysteresis with respect to quorum count.') virtual_server_stats_conns = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 27), gauge32()).setUnits('connections').setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerStatsConns.setStatus('current') if mibBuilder.loadTexts: virtualServerStatsConns.setDescription('Total number of connections scheduled for this virtual server.') virtual_server_stats_in_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 28), counter32()).setUnits('packets').setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerStatsInPkts.setStatus('current') if mibBuilder.loadTexts: virtualServerStatsInPkts.setDescription('Total number of incoming packets for this virtual server.') virtual_server_stats_out_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 29), counter32()).setUnits('packets').setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerStatsOutPkts.setStatus('current') if mibBuilder.loadTexts: virtualServerStatsOutPkts.setDescription('Total number of outgoing packets for this virtual server.') virtual_server_stats_in_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 30), counter64()).setUnits('bytes').setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerStatsInBytes.setStatus('current') if mibBuilder.loadTexts: virtualServerStatsInBytes.setDescription('Total number of incoming bytes for this virtual server.') virtual_server_stats_out_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 31), counter64()).setUnits('bytes').setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerStatsOutBytes.setStatus('current') if mibBuilder.loadTexts: virtualServerStatsOutBytes.setDescription('Total number of outgoing bytes for this virtual server.') virtual_server_rate_cps = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 32), gauge32()).setUnits('connections/s').setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerRateCps.setStatus('current') if mibBuilder.loadTexts: virtualServerRateCps.setDescription('Current connection rate for this virtual server.') virtual_server_rate_in_pps = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 33), gauge32()).setUnits('packets/s').setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerRateInPPS.setStatus('current') if mibBuilder.loadTexts: virtualServerRateInPPS.setDescription('Current in packet rate for this virtual server.') virtual_server_rate_out_pps = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 34), gauge32()).setUnits('packets/s').setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerRateOutPPS.setStatus('current') if mibBuilder.loadTexts: virtualServerRateOutPPS.setDescription('Current out packet rate for this virtual server.') virtual_server_rate_in_bps = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 35), gauge32()).setUnits('bytes/s').setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerRateInBPS.setStatus('current') if mibBuilder.loadTexts: virtualServerRateInBPS.setDescription('Current incoming rate for this virtual server.') virtual_server_rate_out_bps = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 3, 1, 36), gauge32()).setUnits('bytes/s').setMaxAccess('readonly') if mibBuilder.loadTexts: virtualServerRateOutBPS.setStatus('current') if mibBuilder.loadTexts: virtualServerRateOutBPS.setDescription('Current outgoing rate for this virtual server.') real_server_table = mib_table((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4)) if mibBuilder.loadTexts: realServerTable.setStatus('current') if mibBuilder.loadTexts: realServerTable.setDescription('Table of real servers. This includes regular real servers and sorry servers.') real_server_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1)).setIndexNames((0, 'KEEPALIVED-MIB', 'virtualServerIndex'), (0, 'KEEPALIVED-MIB', 'realServerIndex')) if mibBuilder.loadTexts: realServerEntry.setStatus('current') if mibBuilder.loadTexts: realServerEntry.setDescription('Information describing a real server.') real_server_index = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))) if mibBuilder.loadTexts: realServerIndex.setStatus('current') if mibBuilder.loadTexts: realServerIndex.setDescription('Index of the real server.') real_server_type = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('regular', 1), ('sorry', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: realServerType.setStatus('current') if mibBuilder.loadTexts: realServerType.setDescription('Type of real server: either a regular real server or a sorry server.') real_server_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 3), inet_address_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: realServerAddrType.setStatus('current') if mibBuilder.loadTexts: realServerAddrType.setDescription('Address family for this real server.') real_server_address = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 4), inet_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: realServerAddress.setStatus('current') if mibBuilder.loadTexts: realServerAddress.setDescription('IP address of this real server.') real_server_port = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 5), inet_port_number()).setMaxAccess('readonly') if mibBuilder.loadTexts: realServerPort.setStatus('current') if mibBuilder.loadTexts: realServerPort.setDescription('Port of the service.') real_server_status = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('alive', 1), ('dead', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: realServerStatus.setStatus('current') if mibBuilder.loadTexts: realServerStatus.setDescription('Status of this real server.') real_server_weight = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 7), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: realServerWeight.setStatus('current') if mibBuilder.loadTexts: realServerWeight.setDescription('Weight of this real server. This value can be set to 0 to disable the real server.') real_server_upper_connection_limit = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 8), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: realServerUpperConnectionLimit.setStatus('current') if mibBuilder.loadTexts: realServerUpperConnectionLimit.setDescription('Maximum number of connections for this real server.') real_server_lower_connection_limit = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 9), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: realServerLowerConnectionLimit.setStatus('current') if mibBuilder.loadTexts: realServerLowerConnectionLimit.setDescription('Minimum number of connections for this real server.') real_server_action_when_down = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('remove', 1), ('inhibit', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: realServerActionWhenDown.setStatus('current') if mibBuilder.loadTexts: realServerActionWhenDown.setDescription('What action is performed when this server is down. Its weight can be set to 0 (inhibit) or it can be removed from the pool.') real_server_notify_up = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 11), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: realServerNotifyUp.setStatus('current') if mibBuilder.loadTexts: realServerNotifyUp.setDescription('Command to execute when this server becomes alive.') real_server_notify_down = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 12), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: realServerNotifyDown.setStatus('current') if mibBuilder.loadTexts: realServerNotifyDown.setDescription('Command to execute when this server becomes dead.') real_server_failed_checks = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 13), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: realServerFailedChecks.setStatus('current') if mibBuilder.loadTexts: realServerFailedChecks.setDescription('How many failed checks for this real server.') real_server_stats_conns = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 14), gauge32()).setUnits('connections').setMaxAccess('readonly') if mibBuilder.loadTexts: realServerStatsConns.setStatus('current') if mibBuilder.loadTexts: realServerStatsConns.setDescription('Total number of connections scheduled for this real server.') real_server_stats_active_conns = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 15), gauge32()).setUnits('connections').setMaxAccess('readonly') if mibBuilder.loadTexts: realServerStatsActiveConns.setStatus('current') if mibBuilder.loadTexts: realServerStatsActiveConns.setDescription('Current active connections for this real server.') real_server_stats_inactive_conns = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 16), gauge32()).setUnits('connections').setMaxAccess('readonly') if mibBuilder.loadTexts: realServerStatsInactiveConns.setStatus('current') if mibBuilder.loadTexts: realServerStatsInactiveConns.setDescription('Current inactive connections for this real server.') real_server_stats_persistent_conns = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 17), gauge32()).setUnits('connections').setMaxAccess('readonly') if mibBuilder.loadTexts: realServerStatsPersistentConns.setStatus('current') if mibBuilder.loadTexts: realServerStatsPersistentConns.setDescription('Current persistent connections for this real server.') real_server_stats_in_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 18), counter32()).setUnits('packets').setMaxAccess('readonly') if mibBuilder.loadTexts: realServerStatsInPkts.setStatus('current') if mibBuilder.loadTexts: realServerStatsInPkts.setDescription('Total number of incoming packets for this real server.') real_server_stats_out_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 19), counter32()).setUnits('packets').setMaxAccess('readonly') if mibBuilder.loadTexts: realServerStatsOutPkts.setStatus('current') if mibBuilder.loadTexts: realServerStatsOutPkts.setDescription('Total number of outgoing packets for this real server.') real_server_stats_in_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 20), counter64()).setUnits('bytes').setMaxAccess('readonly') if mibBuilder.loadTexts: realServerStatsInBytes.setStatus('current') if mibBuilder.loadTexts: realServerStatsInBytes.setDescription('Total number of incoming bytes for this real server.') real_server_stats_out_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 21), counter64()).setUnits('bytes').setMaxAccess('readonly') if mibBuilder.loadTexts: realServerStatsOutBytes.setStatus('current') if mibBuilder.loadTexts: realServerStatsOutBytes.setDescription('Total number of outgoing bytes for this real server.') real_server_rate_cps = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 22), gauge32()).setUnits('connections/s').setMaxAccess('readonly') if mibBuilder.loadTexts: realServerRateCps.setStatus('current') if mibBuilder.loadTexts: realServerRateCps.setDescription('Current connection rate for this real server.') real_server_rate_in_pps = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 23), gauge32()).setUnits('packets/s').setMaxAccess('readonly') if mibBuilder.loadTexts: realServerRateInPPS.setStatus('current') if mibBuilder.loadTexts: realServerRateInPPS.setDescription('Current in packet rate for this real server.') real_server_rate_out_pps = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 24), gauge32()).setUnits('packets/s').setMaxAccess('readonly') if mibBuilder.loadTexts: realServerRateOutPPS.setStatus('current') if mibBuilder.loadTexts: realServerRateOutPPS.setDescription('Current out packet rate for this real server.') real_server_rate_in_bps = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 25), gauge32()).setUnits('bytes/s').setMaxAccess('readonly') if mibBuilder.loadTexts: realServerRateInBPS.setStatus('current') if mibBuilder.loadTexts: realServerRateInBPS.setDescription('Current incoming rate for this real server.') real_server_rate_out_bps = mib_table_column((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 4, 1, 26), gauge32()).setUnits('bytes/s').setMaxAccess('readonly') if mibBuilder.loadTexts: realServerRateOutBPS.setStatus('current') if mibBuilder.loadTexts: realServerRateOutBPS.setDescription('Current outgoing rate for this real server.') check_trap = mib_identifier((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 5)) check_traps = mib_identifier((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 5, 0)) check_trap_control = mib_identifier((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 5, 1)) real_server_state_change = notification_type((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 5, 0, 1)).setObjects(('KEEPALIVED-MIB', 'realServerAddrType'), ('KEEPALIVED-MIB', 'realServerAddress'), ('KEEPALIVED-MIB', 'realServerPort'), ('KEEPALIVED-MIB', 'realServerStatus'), ('KEEPALIVED-MIB', 'virtualServerType'), ('KEEPALIVED-MIB', 'virtualServerProtocol'), ('KEEPALIVED-MIB', 'virtualServerRealServersUp'), ('KEEPALIVED-MIB', 'virtualServerRealServersTotal')) if mibBuilder.loadTexts: realServerStateChange.setStatus('current') if mibBuilder.loadTexts: realServerStateChange.setDescription('This trap signifies that the state of a real server has changed. Additional varbinds will be added depending on the value of virtualServerType: virtualServerNameOfGroup, virtualServerFwMark, virtualServerAddrType, virtualServerAddress, virtualServerPort.') virtual_server_quorum_state_change = notification_type((1, 3, 6, 1, 4, 1, 9586, 100, 5, 3, 5, 0, 2)).setObjects(('KEEPALIVED-MIB', 'virtualServerType'), ('KEEPALIVED-MIB', 'virtualServerProtocol'), ('KEEPALIVED-MIB', 'virtualServerQuorumStatus'), ('KEEPALIVED-MIB', 'virtualServerQuorum'), ('KEEPALIVED-MIB', 'virtualServerRealServersUp'), ('KEEPALIVED-MIB', 'virtualServerRealServersTotal')) if mibBuilder.loadTexts: virtualServerQuorumStateChange.setStatus('current') if mibBuilder.loadTexts: virtualServerQuorumStateChange.setDescription('This trap signifies that the quorum of a virtual server has changed. Additional varbinds will be added depending on the value of virtualServerType: virtualServerNameOfGroup, virtualServerFwMark, virtualServerAddrType, virtualServerAddress, virtualServerPort.') compliances = mib_identifier((1, 3, 6, 1, 4, 1, 9586, 100, 5, 4, 1)) groups = mib_identifier((1, 3, 6, 1, 4, 1, 9586, 100, 5, 4, 2)) global_compliances = module_compliance((1, 3, 6, 1, 4, 1, 9586, 100, 5, 4, 1, 1)).setObjects(('KEEPALIVED-MIB', 'globalGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): global_compliances = globalCompliances.setStatus('current') if mibBuilder.loadTexts: globalCompliances.setDescription('Compliance statement for global data') vrrp_compliances = module_compliance((1, 3, 6, 1, 4, 1, 9586, 100, 5, 4, 1, 2)).setObjects(('KEEPALIVED-MIB', 'vrrpScriptGroup'), ('KEEPALIVED-MIB', 'vrrpSyncGroup'), ('KEEPALIVED-MIB', 'vrrpInstanceGroup'), ('KEEPALIVED-MIB', 'vrrpTrapsGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): vrrp_compliances = vrrpCompliances.setStatus('current') if mibBuilder.loadTexts: vrrpCompliances.setDescription('The VRRP compliance statement') check_compliances = module_compliance((1, 3, 6, 1, 4, 1, 9586, 100, 5, 4, 1, 3)).setObjects(('KEEPALIVED-MIB', 'virtualServerGroupGroup'), ('KEEPALIVED-MIB', 'virtualServerGroup'), ('KEEPALIVED-MIB', 'realServerGroup'), ('KEEPALIVED-MIB', 'checkTrapsGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): check_compliances = checkCompliances.setStatus('current') if mibBuilder.loadTexts: checkCompliances.setDescription('The check compliance statement') global_group = object_group((1, 3, 6, 1, 4, 1, 9586, 100, 5, 4, 2, 1)).setObjects(('KEEPALIVED-MIB', 'version'), ('KEEPALIVED-MIB', 'routerId'), ('KEEPALIVED-MIB', 'smtpServerAddressType'), ('KEEPALIVED-MIB', 'smtpServerAddress'), ('KEEPALIVED-MIB', 'smtpServerTimeout'), ('KEEPALIVED-MIB', 'emailFrom'), ('KEEPALIVED-MIB', 'emailAddress'), ('KEEPALIVED-MIB', 'trapEnable'), ('KEEPALIVED-MIB', 'linkBeat')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): global_group = globalGroup.setStatus('current') if mibBuilder.loadTexts: globalGroup.setDescription('Conformance group for global data.') vrrp_groups = mib_identifier((1, 3, 6, 1, 4, 1, 9586, 100, 5, 4, 2, 2)) vrrp_sync_group = object_group((1, 3, 6, 1, 4, 1, 9586, 100, 5, 4, 2, 2, 1)).setObjects(('KEEPALIVED-MIB', 'vrrpSyncGroupName'), ('KEEPALIVED-MIB', 'vrrpSyncGroupState'), ('KEEPALIVED-MIB', 'vrrpSyncGroupSmtpAlert'), ('KEEPALIVED-MIB', 'vrrpSyncGroupNotifyExec'), ('KEEPALIVED-MIB', 'vrrpSyncGroupScriptMaster'), ('KEEPALIVED-MIB', 'vrrpSyncGroupScriptBackup'), ('KEEPALIVED-MIB', 'vrrpSyncGroupScriptFault'), ('KEEPALIVED-MIB', 'vrrpSyncGroupScript'), ('KEEPALIVED-MIB', 'vrrpSyncGroupMemberName')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): vrrp_sync_group = vrrpSyncGroup.setStatus('current') if mibBuilder.loadTexts: vrrpSyncGroup.setDescription('Conformance group for synchronisation groups.') vrrp_instance_group = object_group((1, 3, 6, 1, 4, 1, 9586, 100, 5, 4, 2, 2, 2)).setObjects(('KEEPALIVED-MIB', 'vrrpInstanceName'), ('KEEPALIVED-MIB', 'vrrpInstanceVirtualRouterId'), ('KEEPALIVED-MIB', 'vrrpInstanceState'), ('KEEPALIVED-MIB', 'vrrpInstanceInitialState'), ('KEEPALIVED-MIB', 'vrrpInstanceWantedState'), ('KEEPALIVED-MIB', 'vrrpInstanceBasePriority'), ('KEEPALIVED-MIB', 'vrrpInstanceEffectivePriority'), ('KEEPALIVED-MIB', 'vrrpInstanceVipsStatus'), ('KEEPALIVED-MIB', 'vrrpInstancePrimaryInterface'), ('KEEPALIVED-MIB', 'vrrpInstanceTrackPrimaryIf'), ('KEEPALIVED-MIB', 'vrrpInstanceAdvertisementsInt'), ('KEEPALIVED-MIB', 'vrrpInstancePreempt'), ('KEEPALIVED-MIB', 'vrrpInstancePreemptDelay'), ('KEEPALIVED-MIB', 'vrrpInstanceAuthType'), ('KEEPALIVED-MIB', 'vrrpInstanceLvsSyncDaemon'), ('KEEPALIVED-MIB', 'vrrpInstanceLvsSyncInterface'), ('KEEPALIVED-MIB', 'vrrpInstanceSyncGroup'), ('KEEPALIVED-MIB', 'vrrpInstanceGarpDelay'), ('KEEPALIVED-MIB', 'vrrpInstanceSmtpAlert'), ('KEEPALIVED-MIB', 'vrrpInstanceNotifyExec'), ('KEEPALIVED-MIB', 'vrrpInstanceScriptMaster'), ('KEEPALIVED-MIB', 'vrrpInstanceScriptBackup'), ('KEEPALIVED-MIB', 'vrrpInstanceScriptFault'), ('KEEPALIVED-MIB', 'vrrpInstanceScriptStop'), ('KEEPALIVED-MIB', 'vrrpInstanceScript'), ('KEEPALIVED-MIB', 'vrrpTrackedInterfaceName'), ('KEEPALIVED-MIB', 'vrrpTrackedInterfaceWeight'), ('KEEPALIVED-MIB', 'vrrpTrackedScriptName'), ('KEEPALIVED-MIB', 'vrrpTrackedScriptWeight'), ('KEEPALIVED-MIB', 'vrrpAddressType'), ('KEEPALIVED-MIB', 'vrrpAddressValue'), ('KEEPALIVED-MIB', 'vrrpAddressBroadcast'), ('KEEPALIVED-MIB', 'vrrpAddressMask'), ('KEEPALIVED-MIB', 'vrrpAddressScope'), ('KEEPALIVED-MIB', 'vrrpAddressIfIndex'), ('KEEPALIVED-MIB', 'vrrpAddressIfName'), ('KEEPALIVED-MIB', 'vrrpAddressIfAlias'), ('KEEPALIVED-MIB', 'vrrpAddressStatus'), ('KEEPALIVED-MIB', 'vrrpAddressAdvertising'), ('KEEPALIVED-MIB', 'vrrpRouteAddressType'), ('KEEPALIVED-MIB', 'vrrpRouteDestination'), ('KEEPALIVED-MIB', 'vrrpRouteDestinationMask'), ('KEEPALIVED-MIB', 'vrrpRouteGateway'), ('KEEPALIVED-MIB', 'vrrpRouteSecondaryGateway'), ('KEEPALIVED-MIB', 'vrrpRouteSource'), ('KEEPALIVED-MIB', 'vrrpRouteMetric'), ('KEEPALIVED-MIB', 'vrrpRouteScope'), ('KEEPALIVED-MIB', 'vrrpRouteType'), ('KEEPALIVED-MIB', 'vrrpRouteIfIndex'), ('KEEPALIVED-MIB', 'vrrpRouteIfName'), ('KEEPALIVED-MIB', 'vrrpRouteRoutingTable'), ('KEEPALIVED-MIB', 'vrrpRouteStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): vrrp_instance_group = vrrpInstanceGroup.setStatus('current') if mibBuilder.loadTexts: vrrpInstanceGroup.setDescription('Conformance group for VRRP instances.') vrrp_script_group = object_group((1, 3, 6, 1, 4, 1, 9586, 100, 5, 4, 2, 2, 3)).setObjects(('KEEPALIVED-MIB', 'vrrpScriptName'), ('KEEPALIVED-MIB', 'vrrpScriptCommand'), ('KEEPALIVED-MIB', 'vrrpScriptInterval'), ('KEEPALIVED-MIB', 'vrrpScriptWeight'), ('KEEPALIVED-MIB', 'vrrpScriptResult'), ('KEEPALIVED-MIB', 'vrrpScriptRise'), ('KEEPALIVED-MIB', 'vrrpScriptFall')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): vrrp_script_group = vrrpScriptGroup.setStatus('current') if mibBuilder.loadTexts: vrrpScriptGroup.setDescription('Conformance group for VRRP scripts.') vrrp_traps_group = notification_group((1, 3, 6, 1, 4, 1, 9586, 100, 5, 4, 2, 2, 4)).setObjects(('KEEPALIVED-MIB', 'vrrpSyncGroupStateChange'), ('KEEPALIVED-MIB', 'vrrpInstanceStateChange')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): vrrp_traps_group = vrrpTrapsGroup.setStatus('current') if mibBuilder.loadTexts: vrrpTrapsGroup.setDescription('Conformance group for VRRP traps.') check_groups = mib_identifier((1, 3, 6, 1, 4, 1, 9586, 100, 5, 4, 2, 3)) virtual_server_group_group = object_group((1, 3, 6, 1, 4, 1, 9586, 100, 5, 4, 2, 3, 1)).setObjects(('KEEPALIVED-MIB', 'virtualServerGroupName'), ('KEEPALIVED-MIB', 'virtualServerGroupMemberType'), ('KEEPALIVED-MIB', 'virtualServerGroupMemberFwMark'), ('KEEPALIVED-MIB', 'virtualServerGroupMemberAddrType'), ('KEEPALIVED-MIB', 'virtualServerGroupMemberAddress'), ('KEEPALIVED-MIB', 'virtualServerGroupMemberAddr1'), ('KEEPALIVED-MIB', 'virtualServerGroupMemberAddr2'), ('KEEPALIVED-MIB', 'virtualServerGroupMemberPort')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): virtual_server_group_group = virtualServerGroupGroup.setStatus('current') if mibBuilder.loadTexts: virtualServerGroupGroup.setDescription('Conformance group for virtual server groups.') virtual_server_group = object_group((1, 3, 6, 1, 4, 1, 9586, 100, 5, 4, 2, 3, 2)).setObjects(('KEEPALIVED-MIB', 'virtualServerType'), ('KEEPALIVED-MIB', 'virtualServerNameOfGroup'), ('KEEPALIVED-MIB', 'virtualServerFwMark'), ('KEEPALIVED-MIB', 'virtualServerAddrType'), ('KEEPALIVED-MIB', 'virtualServerAddress'), ('KEEPALIVED-MIB', 'virtualServerPort'), ('KEEPALIVED-MIB', 'virtualServerProtocol'), ('KEEPALIVED-MIB', 'virtualServerLoadBalancingAlgo'), ('KEEPALIVED-MIB', 'virtualServerLoadBalancingKind'), ('KEEPALIVED-MIB', 'virtualServerStatus'), ('KEEPALIVED-MIB', 'virtualServerVirtualHost'), ('KEEPALIVED-MIB', 'virtualServerPersist'), ('KEEPALIVED-MIB', 'virtualServerPersistTimeout'), ('KEEPALIVED-MIB', 'virtualServerPersistGranularity'), ('KEEPALIVED-MIB', 'virtualServerDelayLoop'), ('KEEPALIVED-MIB', 'virtualServerHaSuspend'), ('KEEPALIVED-MIB', 'virtualServerAlpha'), ('KEEPALIVED-MIB', 'virtualServerOmega'), ('KEEPALIVED-MIB', 'virtualServerRealServersTotal'), ('KEEPALIVED-MIB', 'virtualServerRealServersUp'), ('KEEPALIVED-MIB', 'virtualServerQuorum'), ('KEEPALIVED-MIB', 'virtualServerQuorumStatus'), ('KEEPALIVED-MIB', 'virtualServerQuorumUp'), ('KEEPALIVED-MIB', 'virtualServerQuorumDown'), ('KEEPALIVED-MIB', 'virtualServerHysteresis'), ('KEEPALIVED-MIB', 'virtualServerStatsConns'), ('KEEPALIVED-MIB', 'virtualServerStatsInPkts'), ('KEEPALIVED-MIB', 'virtualServerStatsOutPkts'), ('KEEPALIVED-MIB', 'virtualServerStatsInBytes'), ('KEEPALIVED-MIB', 'virtualServerStatsOutBytes'), ('KEEPALIVED-MIB', 'virtualServerRateCps'), ('KEEPALIVED-MIB', 'virtualServerRateInPPS'), ('KEEPALIVED-MIB', 'virtualServerRateOutPPS'), ('KEEPALIVED-MIB', 'virtualServerRateInBPS'), ('KEEPALIVED-MIB', 'virtualServerRateOutBPS')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): virtual_server_group = virtualServerGroup.setStatus('current') if mibBuilder.loadTexts: virtualServerGroup.setDescription('Conformance group for virtual servers.') real_server_group = object_group((1, 3, 6, 1, 4, 1, 9586, 100, 5, 4, 2, 3, 3)).setObjects(('KEEPALIVED-MIB', 'realServerType'), ('KEEPALIVED-MIB', 'realServerAddrType'), ('KEEPALIVED-MIB', 'realServerAddress'), ('KEEPALIVED-MIB', 'realServerPort'), ('KEEPALIVED-MIB', 'realServerStatus'), ('KEEPALIVED-MIB', 'realServerWeight'), ('KEEPALIVED-MIB', 'realServerUpperConnectionLimit'), ('KEEPALIVED-MIB', 'realServerLowerConnectionLimit'), ('KEEPALIVED-MIB', 'realServerActionWhenDown'), ('KEEPALIVED-MIB', 'realServerNotifyUp'), ('KEEPALIVED-MIB', 'realServerNotifyDown'), ('KEEPALIVED-MIB', 'realServerFailedChecks'), ('KEEPALIVED-MIB', 'realServerStatsConns'), ('KEEPALIVED-MIB', 'realServerStatsActiveConns'), ('KEEPALIVED-MIB', 'realServerStatsInactiveConns'), ('KEEPALIVED-MIB', 'realServerStatsPersistentConns'), ('KEEPALIVED-MIB', 'realServerStatsInPkts'), ('KEEPALIVED-MIB', 'realServerStatsOutPkts'), ('KEEPALIVED-MIB', 'realServerStatsInBytes'), ('KEEPALIVED-MIB', 'realServerStatsOutBytes'), ('KEEPALIVED-MIB', 'realServerRateCps'), ('KEEPALIVED-MIB', 'realServerRateInPPS'), ('KEEPALIVED-MIB', 'realServerRateOutPPS'), ('KEEPALIVED-MIB', 'realServerRateInBPS'), ('KEEPALIVED-MIB', 'realServerRateOutBPS')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): real_server_group = realServerGroup.setStatus('current') if mibBuilder.loadTexts: realServerGroup.setDescription('Conformance group for real servers.') check_traps_group = notification_group((1, 3, 6, 1, 4, 1, 9586, 100, 5, 4, 2, 3, 4)).setObjects(('KEEPALIVED-MIB', 'realServerStateChange'), ('KEEPALIVED-MIB', 'virtualServerQuorumStateChange')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): check_traps_group = checkTrapsGroup.setStatus('current') if mibBuilder.loadTexts: checkTrapsGroup.setDescription('Conformance group for check traps.') mibBuilder.exportSymbols('KEEPALIVED-MIB', vrrpInstanceVirtualRouterId=vrrpInstanceVirtualRouterId, virtualServerGroupMemberAddr2=virtualServerGroupMemberAddr2, vrrpTrackedInterfaceName=vrrpTrackedInterfaceName, realServerStatsInPkts=realServerStatsInPkts, smtpServerTimeout=smtpServerTimeout, PYSNMP_MODULE_ID=keepalived, virtualServerType=virtualServerType, realServerLowerConnectionLimit=realServerLowerConnectionLimit, routerId=routerId, virtualServerGroupMemberTable=virtualServerGroupMemberTable, vrrpAddressIfAlias=vrrpAddressIfAlias, check=check, vrrpInstanceAuthType=vrrpInstanceAuthType, virtualServerPort=virtualServerPort, virtualServerDelayLoop=virtualServerDelayLoop, vrrpInstanceStateChange=vrrpInstanceStateChange, realServerGroup=realServerGroup, vrrpScriptFall=vrrpScriptFall, realServerEntry=realServerEntry, realServerActionWhenDown=realServerActionWhenDown, emailIndex=emailIndex, groups=groups, vrrpScriptResult=vrrpScriptResult, vrrpInstanceGroup=vrrpInstanceGroup, vrrpInstanceSyncGroup=vrrpInstanceSyncGroup, virtualServerLoadBalancingAlgo=virtualServerLoadBalancingAlgo, vrrpScriptWeight=vrrpScriptWeight, vrrpSyncGroupMemberTable=vrrpSyncGroupMemberTable, virtualServerGroupMemberPort=virtualServerGroupMemberPort, virtualServerRateOutBPS=virtualServerRateOutBPS, vrrpInstanceTable=vrrpInstanceTable, checkTrapControl=checkTrapControl, vrrpInstanceTrackPrimaryIf=vrrpInstanceTrackPrimaryIf, checkTrapsGroup=checkTrapsGroup, vrrpRouteStatus=vrrpRouteStatus, vrrpTraps=vrrpTraps, virtualServerPersist=virtualServerPersist, virtualServerRateOutPPS=virtualServerRateOutPPS, pysmi_global=pysmi_global, compliances=compliances, vrrpTrackedScriptName=vrrpTrackedScriptName, realServerStateChange=realServerStateChange, virtualServerGroupMemberAddr1=virtualServerGroupMemberAddr1, vrrpSyncGroupScriptBackup=vrrpSyncGroupScriptBackup, virtualServerQuorumDown=virtualServerQuorumDown, vrrpSyncGroupEntry=vrrpSyncGroupEntry, vrrpInstanceScriptMaster=vrrpInstanceScriptMaster, vrrpScriptGroup=vrrpScriptGroup, vrrpSyncGroupName=vrrpSyncGroupName, virtualServerStatsOutPkts=virtualServerStatsOutPkts, vrrpRouteMetric=vrrpRouteMetric, realServerStatsActiveConns=realServerStatsActiveConns, vrrpRouteSecondaryGateway=vrrpRouteSecondaryGateway, realServerStatsPersistentConns=realServerStatsPersistentConns, vrrpScriptName=vrrpScriptName, vrrpInstanceInitialState=vrrpInstanceInitialState, vrrpRouteDestination=vrrpRouteDestination, vrrpScriptEntry=vrrpScriptEntry, vrrpInstanceSmtpAlert=vrrpInstanceSmtpAlert, vrrpAddressType=vrrpAddressType, virtualServerQuorumStatus=virtualServerQuorumStatus, realServerType=realServerType, virtualServerQuorumStateChange=virtualServerQuorumStateChange, vrrpRouteIfName=vrrpRouteIfName, virtualServerGroupMemberFwMark=virtualServerGroupMemberFwMark, virtualServerStatsInBytes=virtualServerStatsInBytes, vrrpSyncGroupNotifyExec=vrrpSyncGroupNotifyExec, vrrpInstanceLvsSyncDaemon=vrrpInstanceLvsSyncDaemon, vrrpAddressIndex=vrrpAddressIndex, vrrpRouteIfIndex=vrrpRouteIfIndex, realServerStatsOutPkts=realServerStatsOutPkts, vrrpAddressTable=vrrpAddressTable, realServerTable=realServerTable, realServerFailedChecks=realServerFailedChecks, checkCompliances=checkCompliances, vrrpSyncGroupTable=vrrpSyncGroupTable, vrrpInstancePreempt=vrrpInstancePreempt, vrrpSyncGroupStateChange=vrrpSyncGroupStateChange, virtualServerGroupMemberType=virtualServerGroupMemberType, virtualServerOmega=virtualServerOmega, virtualServerRealServersTotal=virtualServerRealServersTotal, virtualServerStatsInPkts=virtualServerStatsInPkts, realServerRateOutPPS=realServerRateOutPPS, virtualServerGroupGroup=virtualServerGroupGroup, vrrpAddressBroadcast=vrrpAddressBroadcast, vrrpInstanceState=vrrpInstanceState, vrrpInstanceName=vrrpInstanceName, vrrpSyncGroupSmtpAlert=vrrpSyncGroupSmtpAlert, realServerWeight=realServerWeight, vrrpScriptRise=vrrpScriptRise, virtualServerGroupTable=virtualServerGroupTable, virtualServerPersistGranularity=virtualServerPersistGranularity, vrrpAddressScope=vrrpAddressScope, vrrpScriptIndex=vrrpScriptIndex, keepalived=keepalived, trapEnable=trapEnable, virtualServerAddress=virtualServerAddress, emailAddress=emailAddress, vrrpRouteGateway=vrrpRouteGateway, emailFrom=emailFrom, linkBeat=linkBeat, virtualServerAddrType=virtualServerAddrType, vrrpSyncGroupScriptFault=vrrpSyncGroupScriptFault, checkTraps=checkTraps, vrrpInstanceNotifyExec=vrrpInstanceNotifyExec, vrrpAddressMask=vrrpAddressMask, vrrpAddressAdvertising=vrrpAddressAdvertising, virtualServerEntry=virtualServerEntry, vrrpInstanceBasePriority=vrrpInstanceBasePriority, vrrpTrackedInterfaceWeight=vrrpTrackedInterfaceWeight, virtualServerQuorumUp=virtualServerQuorumUp, vrrpTrapControl=vrrpTrapControl, vrrpSyncGroupState=vrrpSyncGroupState, vrrpTrap=vrrpTrap, vrrpSyncGroupIndex=vrrpSyncGroupIndex, virtualServerRealServersUp=virtualServerRealServersUp, project=project, vrrpRouteRoutingTable=vrrpRouteRoutingTable, smtpServerAddressType=smtpServerAddressType, vrrpAddressEntry=vrrpAddressEntry, debian=debian, vrrpRouteSource=vrrpRouteSource, vrrpTrackedScriptIndex=vrrpTrackedScriptIndex, vrrpSyncGroupMemberEntry=vrrpSyncGroupMemberEntry, virtualServerGroupMemberAddrType=virtualServerGroupMemberAddrType, virtualServerNameOfGroup=virtualServerNameOfGroup, virtualServerRateInBPS=virtualServerRateInBPS, globalGroup=globalGroup, virtualServerVirtualHost=virtualServerVirtualHost, vrrpTrackedScriptWeight=vrrpTrackedScriptWeight, virtualServerStatus=virtualServerStatus, virtualServerQuorum=virtualServerQuorum, realServerUpperConnectionLimit=realServerUpperConnectionLimit, globalCompliances=globalCompliances, vrrpScriptCommand=vrrpScriptCommand, vrrpInstanceScriptBackup=vrrpInstanceScriptBackup, vrrpAddressIfIndex=vrrpAddressIfIndex, virtualServerGroupMemberEntry=virtualServerGroupMemberEntry, vrrpInstanceVipsStatus=vrrpInstanceVipsStatus, realServerStatsOutBytes=realServerStatsOutBytes, vrrpTrackedScriptTable=vrrpTrackedScriptTable, vrrpInstanceAdvertisementsInt=vrrpInstanceAdvertisementsInt, realServerNotifyDown=realServerNotifyDown, realServerStatsConns=realServerStatsConns, virtualServerRateCps=virtualServerRateCps, realServerIndex=realServerIndex, vrrpRouteTable=vrrpRouteTable, smtpServerAddress=smtpServerAddress, virtualServerIndex=virtualServerIndex, realServerRateCps=realServerRateCps, vrrpSyncGroupScript=vrrpSyncGroupScript, vrrpSyncGroupMemberName=vrrpSyncGroupMemberName, virtualServerProtocol=virtualServerProtocol, virtualServerLoadBalancingKind=virtualServerLoadBalancingKind, vrrpInstanceIndex=vrrpInstanceIndex, vrrpRouteType=vrrpRouteType, vrrpCompliances=vrrpCompliances, vrrpTrackedInterfaceTable=vrrpTrackedInterfaceTable, virtualServerHysteresis=virtualServerHysteresis, vrrpRouteDestinationMask=vrrpRouteDestinationMask, vrrpInstanceEffectivePriority=vrrpInstanceEffectivePriority, virtualServerGroupMemberAddress=virtualServerGroupMemberAddress, virtualServerPersistTimeout=virtualServerPersistTimeout, vrrpRouteScope=vrrpRouteScope, vrrpTrackedScriptEntry=vrrpTrackedScriptEntry, vrrpSyncGroup=vrrpSyncGroup, vrrpAddressValue=vrrpAddressValue, checkGroups=checkGroups, realServerStatsInBytes=realServerStatsInBytes, VrrpState=VrrpState, vrrpInstanceLvsSyncInterface=vrrpInstanceLvsSyncInterface, vrrpAddressStatus=vrrpAddressStatus, vrrpInstanceGarpDelay=vrrpInstanceGarpDelay, emailTable=emailTable, vrrpSyncGroupScriptMaster=vrrpSyncGroupScriptMaster, virtualServerGroup=virtualServerGroup, vrrpInstanceScript=vrrpInstanceScript, virtualServerGroupMemberIndex=virtualServerGroupMemberIndex, virtualServerGroupIndex=virtualServerGroupIndex, vrrpSyncGroupMemberInstanceIndex=vrrpSyncGroupMemberInstanceIndex, vrrpTrackedInterfaceEntry=vrrpTrackedInterfaceEntry, virtualServerRateInPPS=virtualServerRateInPPS, virtualServerFwMark=virtualServerFwMark, vrrpRouteAddressType=vrrpRouteAddressType, virtualServerHaSuspend=virtualServerHaSuspend, checkTrap=checkTrap, virtualServerStatsOutBytes=virtualServerStatsOutBytes, realServerNotifyUp=realServerNotifyUp, realServerRateInBPS=realServerRateInBPS, realServerStatus=realServerStatus, vrrpScriptInterval=vrrpScriptInterval, emailEntry=emailEntry, vrrpInstancePrimaryInterface=vrrpInstancePrimaryInterface, virtualServerGroupEntry=virtualServerGroupEntry, realServerAddress=realServerAddress, virtualServerAlpha=virtualServerAlpha, realServerRateOutBPS=realServerRateOutBPS, vrrpRouteIndex=vrrpRouteIndex, vrrp=vrrp, vrrpGroups=vrrpGroups, vrrpAddressIfName=vrrpAddressIfName, version=version, realServerStatsInactiveConns=realServerStatsInactiveConns, vrrpInstanceWantedState=vrrpInstanceWantedState, realServerPort=realServerPort, mail=mail, vrrpInstanceScriptFault=vrrpInstanceScriptFault, virtualServerStatsConns=virtualServerStatsConns, vrrpRouteEntry=vrrpRouteEntry, realServerAddrType=realServerAddrType, virtualServerGroupName=virtualServerGroupName, vrrpTrapsGroup=vrrpTrapsGroup, virtualServerTable=virtualServerTable, vrrpInstancePreemptDelay=vrrpInstancePreemptDelay, vrrpInstanceScriptStop=vrrpInstanceScriptStop, conformance=conformance, realServerRateInPPS=realServerRateInPPS, vrrpScriptTable=vrrpScriptTable, vrrpInstanceEntry=vrrpInstanceEntry)
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def isSymmetric(self, root: TreeNode) -> bool: return self.isSymmetricRecu(root,root) def isSymmetricRecu(self,root1,root2): if root1 is None and root2 is None: return True if root1 is None or root2 is None: return False return root1.val == root2.val and self.isSymmetricRecu(root1.right,root2.left) and self.isSymmetricRecu(root1.left,root2.right) Time: O(n) Space:O(n)
class Solution: def is_symmetric(self, root: TreeNode) -> bool: return self.isSymmetricRecu(root, root) def is_symmetric_recu(self, root1, root2): if root1 is None and root2 is None: return True if root1 is None or root2 is None: return False return root1.val == root2.val and self.isSymmetricRecu(root1.right, root2.left) and self.isSymmetricRecu(root1.left, root2.right) time: o(n) space: o(n)
# Variable score contains the user's answers score = 0 # Function contains the Intro to the program def intro(): print("How much money do you owe the IRS? Find out with this short quiz!") print("Respond with the number of each answer.") print("Entering anything other than a number will break the program!") print("-----------------------------------------------------------") # Before the quiz starts, the user will be given the option to choose to go right ahead into the questions, # OR optionally see "cheat codes" for the answers. print("Ready to get started?") print("1. Start quiz") print("2. Show cheat codes") answer = int(input(">")) if answer == 1: brandsOne() elif answer == 2: cheatCodes() # Function contains "cheat codes" for how to get the various results in this quiz def cheatCodes(): print("For result #1 - answer the questions in this order.") print("=====================") # This is the cheatcode for getting the "you owe $52,189" result print("3,5,11,14,20,24,27,32") print("") print("For result #2 - answer the questions in this order.") print("=====================") # This is the cheatcode for getting the "you owe $176,092" result print("4,6,9,16,17,22,25,29") print("") # This is the cheatcode for getting the "you owe nothing" result print("For result #3 - find a way to dodge the selected answers OR enter 0 for each question.") print("-----------------------------------------------------------") # Present the user with the option to begin the quiz after they've been given the chance to review the codes print("Ready to get started?") print("1. Start quiz") answer = int(input(">")) if answer == 1: brandsOne() # Function contains question one # Because I'm using functions, I've set the score variable as global for each of the question's functions. # This prevents the score variable from being rewritten as an entirely new variable each time def brandsOne(): global score print("") print("Which of the following?") print("") print("1. Adidas") print("2. Nike") print("3. Skechers") print("4. Crocs") answer = int(input(">")) if answer == 3: score = 10 + score brandsTwo() elif answer == 4: score = 15 + score brandsTwo() else: score = 0 + score brandsTwo() # Function contains question two def brandsTwo(): global score print("") print("Which of the following?") print("5. American Eagle") print("6. Holister Co.") print("7. Gap") print("8. Hot Topic") answer = int(input(">")) if answer == 5: score = 100 + score brandsThree() elif answer == 6: score = 150 + score brandsThree() else: score = 10 + score brandsThree() # Function contains question three def brandsThree(): global score print("") print("Which of the following?") print("9. Abercromie and Fitch") print("10. Footlocker") print("11. Old Navy") print("12. Champion") answer = int(input(">")) if answer == 11: score = 1000 + score brandsFour() elif answer == 9: score = 1500 + score brandsFour() else: score = 100 + score brandsFour() # Function contains question four def brandsFour(): global score print("") print("Which of the following?") print("13. Hermes") print("14. Gucci") print("15. Louis Vuitton") print("16. Calvin Klein") answer = int(input(">")) if answer == 14: score = 1 + score brandsFive() elif answer == 16: score = 2 + score brandsFive() else: score = 0 + score brandsFive() # Function contains question five def brandsFive(): global score print("") print("Which of the following?") print("17. Armani Exchange") print("18. Tommy Hilfiger") print("19. Pacific Sunwear") print("20. Under Armour") answer = int(input(">")) if answer == 20: score = 1 + score brandsSix() elif answer == 17: score = 2 + score brandsSix() else: score = 0 + score brandsSix() # Function contains question six def brandsSix(): global score print("") print("Which of the following?") print("21. Disney") print("22. H&M") print("23. Jordan") print("24. L.L Bean") answer = int(input(">")) if answer == 24: score = 1 + score brandsSeven() elif answer == 22: score = 2 + score brandsSeven() else: score = 0 + score brandsSeven() # Function contains question seven def brandsSeven(): global score print("") print("Which of the following?") print("25. K-Swiss") print("26. Merrell") print("27. Clarks") print("28. Coach") answer = int(input(">")) if answer == 27: score = 1 + score brandsEight() elif answer == 25: score = 2 + score brandsEight() else: score = 0 + score brandsEight() # Function contains question eight def brandsEight(): global score print("") print("Which of the following?") print("29. CeCe") print("30. Chaser") print("31. Eileen West") print("32. Fuzzi") answer = int(input(">")) if answer == 32: score = 1 + score scoreCounter() elif answer == 29: score = 2 + score scoreCounter() else: score = 0 + score scoreCounter() # Function takes the value of score and prints a result based on the user's answers def scoreCounter(): global score if score == 110: print("The End! After calculating your results.. you owe the IRS.. nothing!") elif score == 1115: print("The End! After calculating your results.. you owe the IRS $52,189") elif score == 1675: print("The End! After calculating your results.. you owe the IRS $176,092") # Will print a generic answer for any combination of numbers that were not already calculated above. else: print("The End! Afrer calculating your results.. you owe the IRS $1,484,036") # Starts the program intro()
score = 0 def intro(): print('How much money do you owe the IRS? Find out with this short quiz!') print('Respond with the number of each answer.') print('Entering anything other than a number will break the program!') print('-----------------------------------------------------------') print('Ready to get started?') print('1. Start quiz') print('2. Show cheat codes') answer = int(input('>')) if answer == 1: brands_one() elif answer == 2: cheat_codes() def cheat_codes(): print('For result #1 - answer the questions in this order.') print('=====================') print('3,5,11,14,20,24,27,32') print('') print('For result #2 - answer the questions in this order.') print('=====================') print('4,6,9,16,17,22,25,29') print('') print('For result #3 - find a way to dodge the selected answers OR enter 0 for each question.') print('-----------------------------------------------------------') print('Ready to get started?') print('1. Start quiz') answer = int(input('>')) if answer == 1: brands_one() def brands_one(): global score print('') print('Which of the following?') print('') print('1. Adidas') print('2. Nike') print('3. Skechers') print('4. Crocs') answer = int(input('>')) if answer == 3: score = 10 + score brands_two() elif answer == 4: score = 15 + score brands_two() else: score = 0 + score brands_two() def brands_two(): global score print('') print('Which of the following?') print('5. American Eagle') print('6. Holister Co.') print('7. Gap') print('8. Hot Topic') answer = int(input('>')) if answer == 5: score = 100 + score brands_three() elif answer == 6: score = 150 + score brands_three() else: score = 10 + score brands_three() def brands_three(): global score print('') print('Which of the following?') print('9. Abercromie and Fitch') print('10. Footlocker') print('11. Old Navy') print('12. Champion') answer = int(input('>')) if answer == 11: score = 1000 + score brands_four() elif answer == 9: score = 1500 + score brands_four() else: score = 100 + score brands_four() def brands_four(): global score print('') print('Which of the following?') print('13. Hermes') print('14. Gucci') print('15. Louis Vuitton') print('16. Calvin Klein') answer = int(input('>')) if answer == 14: score = 1 + score brands_five() elif answer == 16: score = 2 + score brands_five() else: score = 0 + score brands_five() def brands_five(): global score print('') print('Which of the following?') print('17. Armani Exchange') print('18. Tommy Hilfiger') print('19. Pacific Sunwear') print('20. Under Armour') answer = int(input('>')) if answer == 20: score = 1 + score brands_six() elif answer == 17: score = 2 + score brands_six() else: score = 0 + score brands_six() def brands_six(): global score print('') print('Which of the following?') print('21. Disney') print('22. H&M') print('23. Jordan') print('24. L.L Bean') answer = int(input('>')) if answer == 24: score = 1 + score brands_seven() elif answer == 22: score = 2 + score brands_seven() else: score = 0 + score brands_seven() def brands_seven(): global score print('') print('Which of the following?') print('25. K-Swiss') print('26. Merrell') print('27. Clarks') print('28. Coach') answer = int(input('>')) if answer == 27: score = 1 + score brands_eight() elif answer == 25: score = 2 + score brands_eight() else: score = 0 + score brands_eight() def brands_eight(): global score print('') print('Which of the following?') print('29. CeCe') print('30. Chaser') print('31. Eileen West') print('32. Fuzzi') answer = int(input('>')) if answer == 32: score = 1 + score score_counter() elif answer == 29: score = 2 + score score_counter() else: score = 0 + score score_counter() def score_counter(): global score if score == 110: print('The End! After calculating your results.. you owe the IRS.. nothing!') elif score == 1115: print('The End! After calculating your results.. you owe the IRS $52,189') elif score == 1675: print('The End! After calculating your results.. you owe the IRS $176,092') else: print('The End! Afrer calculating your results.. you owe the IRS $1,484,036') intro()